@getlupa/vue 0.1.9 → 0.2.1

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.
@@ -1716,7 +1716,21 @@ const escapeHtml = (value) => {
1716
1716
  if (!value) {
1717
1717
  return "";
1718
1718
  }
1719
- return value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
1719
+ let output = "";
1720
+ let isSkip = false;
1721
+ value.split(/(<del>.*?<\/del>)/g).forEach((segment) => {
1722
+ if (segment.startsWith("<del>") && segment.endsWith("</del>")) {
1723
+ output += segment;
1724
+ isSkip = true;
1725
+ }
1726
+ if (!isSkip) {
1727
+ output += segment.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
1728
+ }
1729
+ if (isSkip) {
1730
+ isSkip = false;
1731
+ }
1732
+ });
1733
+ return output;
1720
1734
  };
1721
1735
  const initAnalyticsTracking = (analyticsOptions) => {
1722
1736
  try {
@@ -2996,8 +3010,8 @@ const useSearchBoxStore = defineStore("searchBox", () => {
2996
3010
  resetHighlightIndex
2997
3011
  };
2998
3012
  });
2999
- const _hoisted_1$13 = { id: "lupa-search-box-input-container" };
3000
- const _hoisted_2$J = { class: "lupa-input-clear" };
3013
+ const _hoisted_1$12 = { id: "lupa-search-box-input-container" };
3014
+ const _hoisted_2$I = { class: "lupa-input-clear" };
3001
3015
  const _hoisted_3$v = { id: "lupa-search-box-input" };
3002
3016
  const _hoisted_4$o = ["value"];
3003
3017
  const _hoisted_5$c = ["placeholder"];
@@ -3005,7 +3019,7 @@ const _hoisted_6$6 = {
3005
3019
  key: 0,
3006
3020
  class: "lupa-close-label"
3007
3021
  };
3008
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
3022
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
3009
3023
  __name: "SearchBoxInput",
3010
3024
  props: {
3011
3025
  options: {},
@@ -3082,8 +3096,8 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
3082
3096
  };
3083
3097
  __expose({ focus });
3084
3098
  return (_ctx, _cache) => {
3085
- return openBlock(), createElementBlock("div", _hoisted_1$13, [
3086
- createElementVNode("div", _hoisted_2$J, [
3099
+ return openBlock(), createElementBlock("div", _hoisted_1$12, [
3100
+ createElementVNode("div", _hoisted_2$I, [
3087
3101
  createElementVNode("div", {
3088
3102
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
3089
3103
  onClick: clear
@@ -3122,7 +3136,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
3122
3136
  };
3123
3137
  }
3124
3138
  });
3125
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
3139
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
3126
3140
  __name: "SearchBoxMoreResults",
3127
3141
  props: {
3128
3142
  labels: {},
@@ -3154,9 +3168,9 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
3154
3168
  };
3155
3169
  }
3156
3170
  });
3157
- const _hoisted_1$12 = { class: "lupa-search-box-history-item" };
3158
- const _hoisted_2$I = { class: "lupa-search-box-history-item-content" };
3159
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
3171
+ const _hoisted_1$11 = { class: "lupa-search-box-history-item" };
3172
+ const _hoisted_2$H = { class: "lupa-search-box-history-item-content" };
3173
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
3160
3174
  __name: "SearchBoxHistoryItem",
3161
3175
  props: {
3162
3176
  item: {},
@@ -3172,8 +3186,8 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
3172
3186
  emit("click", { query: props.item });
3173
3187
  };
3174
3188
  return (_ctx, _cache) => {
3175
- return openBlock(), createElementBlock("div", _hoisted_1$12, [
3176
- createElementVNode("div", _hoisted_2$I, [
3189
+ return openBlock(), createElementBlock("div", _hoisted_1$11, [
3190
+ createElementVNode("div", _hoisted_2$H, [
3177
3191
  createElementVNode("div", {
3178
3192
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
3179
3193
  onClick: click2
@@ -3187,11 +3201,11 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
3187
3201
  };
3188
3202
  }
3189
3203
  });
3190
- const _hoisted_1$11 = {
3204
+ const _hoisted_1$10 = {
3191
3205
  key: 0,
3192
3206
  class: "lupa-search-box-history-panel"
3193
3207
  };
3194
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
3208
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
3195
3209
  __name: "SearchBoxHistoryPanel",
3196
3210
  props: {
3197
3211
  options: {}
@@ -3232,9 +3246,9 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
3232
3246
  }
3233
3247
  };
3234
3248
  return (_ctx, _cache) => {
3235
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$11, [
3249
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$10, [
3236
3250
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
3237
- return openBlock(), createBlock(_sfc_main$19, {
3251
+ return openBlock(), createBlock(_sfc_main$18, {
3238
3252
  key: item,
3239
3253
  item,
3240
3254
  highlighted: index === highlightIndex.value,
@@ -3250,8 +3264,8 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
3250
3264
  };
3251
3265
  }
3252
3266
  });
3253
- const _hoisted_1$10 = ["innerHTML"];
3254
- const _hoisted_2$H = {
3267
+ const _hoisted_1$$ = ["innerHTML"];
3268
+ const _hoisted_2$G = {
3255
3269
  key: 1,
3256
3270
  "data-cy": "lupa-suggestion-value",
3257
3271
  class: "lupa-suggestion-value"
@@ -3269,7 +3283,7 @@ const _hoisted_5$b = {
3269
3283
  class: "lupa-suggestion-facet-value",
3270
3284
  "data-cy": "lupa-suggestion-facet-value"
3271
3285
  };
3272
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
3286
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
3273
3287
  __name: "SearchBoxSuggestion",
3274
3288
  props: {
3275
3289
  suggestion: {},
@@ -3305,7 +3319,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
3305
3319
  class: "lupa-suggestion-value",
3306
3320
  "data-cy": "lupa-suggestion-value",
3307
3321
  innerHTML: _ctx.suggestion.displayHighlight
3308
- }, null, 8, _hoisted_1$10)) : (openBlock(), createElementBlock("div", _hoisted_2$H, toDisplayString(_ctx.suggestion.display), 1)),
3322
+ }, null, 8, _hoisted_1$$)) : (openBlock(), createElementBlock("div", _hoisted_2$G, toDisplayString(_ctx.suggestion.display), 1)),
3309
3323
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
3310
3324
  createElementVNode("span", _hoisted_4$n, toDisplayString(facetLabel.value), 1),
3311
3325
  createElementVNode("span", _hoisted_5$b, toDisplayString(_ctx.suggestion.facet.title), 1)
@@ -3314,11 +3328,11 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
3314
3328
  };
3315
3329
  }
3316
3330
  });
3317
- const _hoisted_1$$ = {
3331
+ const _hoisted_1$_ = {
3318
3332
  id: "lupa-search-box-suggestions",
3319
3333
  "data-cy": "lupa-search-box-suggestions"
3320
3334
  };
3321
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
3335
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
3322
3336
  __name: "SearchBoxSuggestions",
3323
3337
  props: {
3324
3338
  items: {},
@@ -3378,9 +3392,9 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
3378
3392
  });
3379
3393
  });
3380
3394
  return (_ctx, _cache) => {
3381
- return openBlock(), createElementBlock("div", _hoisted_1$$, [
3395
+ return openBlock(), createElementBlock("div", _hoisted_1$_, [
3382
3396
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
3383
- return openBlock(), createBlock(_sfc_main$17, {
3397
+ return openBlock(), createBlock(_sfc_main$16, {
3384
3398
  key: getSuggestionKey(item),
3385
3399
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
3386
3400
  suggestion: item,
@@ -3408,7 +3422,7 @@ const debounce$1 = (func, timeout) => {
3408
3422
  }, timeout);
3409
3423
  };
3410
3424
  };
3411
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
3425
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
3412
3426
  __name: "SearchBoxSuggestionsWrapper",
3413
3427
  props: {
3414
3428
  panel: {},
@@ -3449,7 +3463,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
3449
3463
  };
3450
3464
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
3451
3465
  return (_ctx, _cache) => {
3452
- return openBlock(), createBlock(_sfc_main$16, {
3466
+ return openBlock(), createBlock(_sfc_main$15, {
3453
3467
  items: searchResult.value,
3454
3468
  highlight: _ctx.panel.highlight,
3455
3469
  queryKey: _ctx.panel.queryKey,
@@ -3527,8 +3541,8 @@ const useDynamicDataStore = defineStore("dynamicData", () => {
3527
3541
  });
3528
3542
  return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
3529
3543
  });
3530
- const _hoisted_1$_ = ["src"];
3531
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
3544
+ const _hoisted_1$Z = ["src"];
3545
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
3532
3546
  __name: "ProductImage",
3533
3547
  props: {
3534
3548
  item: {},
@@ -3576,12 +3590,12 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
3576
3590
  class: normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
3577
3591
  src: finalUrl.value,
3578
3592
  onError: replaceWithPlaceholder
3579
- }, null, 42, _hoisted_1$_)
3593
+ }, null, 42, _hoisted_1$Z)
3580
3594
  ], 2);
3581
3595
  };
3582
3596
  }
3583
3597
  });
3584
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
3598
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
3585
3599
  __name: "SearchBoxProductImage",
3586
3600
  props: {
3587
3601
  item: {},
@@ -3589,7 +3603,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
3589
3603
  },
3590
3604
  setup(__props) {
3591
3605
  return (_ctx, _cache) => {
3592
- return openBlock(), createBlock(_sfc_main$14, {
3606
+ return openBlock(), createBlock(_sfc_main$13, {
3593
3607
  item: _ctx.item,
3594
3608
  options: _ctx.options,
3595
3609
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -3598,12 +3612,12 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
3598
3612
  };
3599
3613
  }
3600
3614
  });
3601
- const _hoisted_1$Z = ["innerHTML"];
3602
- const _hoisted_2$G = {
3615
+ const _hoisted_1$Y = ["innerHTML"];
3616
+ const _hoisted_2$F = {
3603
3617
  key: 1,
3604
3618
  class: "lupa-search-box-product-title"
3605
3619
  };
3606
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
3620
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
3607
3621
  __name: "SearchBoxProductTitle",
3608
3622
  props: {
3609
3623
  item: {},
@@ -3623,18 +3637,18 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
3623
3637
  key: 0,
3624
3638
  class: "lupa-search-box-product-title",
3625
3639
  innerHTML: title.value
3626
- }, null, 8, _hoisted_1$Z)) : (openBlock(), createElementBlock("div", _hoisted_2$G, [
3640
+ }, null, 8, _hoisted_1$Y)) : (openBlock(), createElementBlock("div", _hoisted_2$F, [
3627
3641
  createElementVNode("strong", null, toDisplayString(title.value), 1)
3628
3642
  ]));
3629
3643
  };
3630
3644
  }
3631
3645
  });
3632
- const _hoisted_1$Y = ["innerHTML"];
3633
- const _hoisted_2$F = {
3646
+ const _hoisted_1$X = ["innerHTML"];
3647
+ const _hoisted_2$E = {
3634
3648
  key: 1,
3635
3649
  class: "lupa-search-box-product-description"
3636
3650
  };
3637
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
3651
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
3638
3652
  __name: "SearchBoxProductDescription",
3639
3653
  props: {
3640
3654
  item: {},
@@ -3654,12 +3668,12 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
3654
3668
  key: 0,
3655
3669
  class: "lupa-search-box-product-description",
3656
3670
  innerHTML: description.value
3657
- }, null, 8, _hoisted_1$Y)) : (openBlock(), createElementBlock("div", _hoisted_2$F, toDisplayString(description.value), 1));
3671
+ }, null, 8, _hoisted_1$X)) : (openBlock(), createElementBlock("div", _hoisted_2$E, toDisplayString(description.value), 1));
3658
3672
  };
3659
3673
  }
3660
3674
  });
3661
- const _hoisted_1$X = { class: "lupa-search-box-product-price" };
3662
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
3675
+ const _hoisted_1$W = { class: "lupa-search-box-product-price" };
3676
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
3663
3677
  __name: "SearchBoxProductPrice",
3664
3678
  props: {
3665
3679
  item: {},
@@ -3677,14 +3691,14 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
3677
3691
  );
3678
3692
  });
3679
3693
  return (_ctx, _cache) => {
3680
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
3694
+ return openBlock(), createElementBlock("div", _hoisted_1$W, [
3681
3695
  createElementVNode("strong", null, toDisplayString(price.value), 1)
3682
3696
  ]);
3683
3697
  };
3684
3698
  }
3685
3699
  });
3686
- const _hoisted_1$W = { class: "lupa-search-box-product-regular-price" };
3687
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
3700
+ const _hoisted_1$V = { class: "lupa-search-box-product-regular-price" };
3701
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
3688
3702
  __name: "SearchBoxProductRegularPrice",
3689
3703
  props: {
3690
3704
  item: {},
@@ -3702,16 +3716,16 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
3702
3716
  );
3703
3717
  });
3704
3718
  return (_ctx, _cache) => {
3705
- return openBlock(), createElementBlock("div", _hoisted_1$W, toDisplayString(price.value), 1);
3719
+ return openBlock(), createElementBlock("div", _hoisted_1$V, toDisplayString(price.value), 1);
3706
3720
  };
3707
3721
  }
3708
3722
  });
3709
- const _hoisted_1$V = ["innerHTML"];
3710
- const _hoisted_2$E = { key: 0 };
3723
+ const _hoisted_1$U = ["innerHTML"];
3724
+ const _hoisted_2$D = { key: 0 };
3711
3725
  const _hoisted_3$t = { key: 1 };
3712
3726
  const _hoisted_4$m = { class: "lupa-search-box-custom-label" };
3713
3727
  const _hoisted_5$a = { class: "lupa-search-box-custom-text" };
3714
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
3728
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
3715
3729
  __name: "SearchBoxProductCustom",
3716
3730
  props: {
3717
3731
  item: {},
@@ -3737,11 +3751,11 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
3737
3751
  key: 0,
3738
3752
  class: [className.value, "lupa-search-box-product-custom"],
3739
3753
  innerHTML: text.value
3740
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$V)) : (openBlock(), createElementBlock("div", mergeProps({
3754
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$U)) : (openBlock(), createElementBlock("div", mergeProps({
3741
3755
  key: 1,
3742
3756
  class: [className.value, "lupa-search-box-product-custom"]
3743
3757
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
3744
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$E, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
3758
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$D, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
3745
3759
  createElementVNode("div", _hoisted_4$m, toDisplayString(label.value), 1),
3746
3760
  createElementVNode("div", _hoisted_5$a, toDisplayString(text.value), 1)
3747
3761
  ]))
@@ -3749,8 +3763,8 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
3749
3763
  };
3750
3764
  }
3751
3765
  });
3752
- const _hoisted_1$U = ["innerHTML"];
3753
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
3766
+ const _hoisted_1$T = ["innerHTML"];
3767
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
3754
3768
  __name: "SearchBoxProductCustomHtml",
3755
3769
  props: {
3756
3770
  item: {},
@@ -3770,7 +3784,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
3770
3784
  return openBlock(), createElementBlock("div", mergeProps({
3771
3785
  class: className.value,
3772
3786
  innerHTML: text.value
3773
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$U);
3787
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$T);
3774
3788
  };
3775
3789
  }
3776
3790
  });
@@ -3965,10 +3979,10 @@ const useSearchResultStore = defineStore("searchResult", () => {
3965
3979
  setLoading
3966
3980
  };
3967
3981
  });
3968
- const _hoisted_1$T = { class: "lupa-search-box-add-to-cart-wrapper" };
3969
- const _hoisted_2$D = { class: "lupa-search-box-product-addtocart" };
3982
+ const _hoisted_1$S = { class: "lupa-search-box-add-to-cart-wrapper" };
3983
+ const _hoisted_2$C = { class: "lupa-search-box-product-addtocart" };
3970
3984
  const _hoisted_3$s = ["onClick", "disabled"];
3971
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
3985
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
3972
3986
  __name: "SearchBoxProductAddToCart",
3973
3987
  props: {
3974
3988
  item: {},
@@ -3995,8 +4009,8 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
3995
4009
  loading.value = false;
3996
4010
  });
3997
4011
  return (_ctx, _cache) => {
3998
- return openBlock(), createElementBlock("div", _hoisted_1$T, [
3999
- createElementVNode("div", _hoisted_2$D, [
4012
+ return openBlock(), createElementBlock("div", _hoisted_1$S, [
4013
+ createElementVNode("div", _hoisted_2$C, [
4000
4014
  createElementVNode("button", {
4001
4015
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
4002
4016
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
@@ -4011,17 +4025,17 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
4011
4025
  });
4012
4026
  const __default__$4 = {
4013
4027
  components: {
4014
- SearchBoxProductImage: _sfc_main$13,
4015
- SearchBoxProductTitle: _sfc_main$12,
4016
- SearchBoxProductDescription: _sfc_main$11,
4017
- SearchBoxProductPrice: _sfc_main$10,
4018
- SearchBoxProductRegularPrice: _sfc_main$$,
4019
- SearchBoxProductCustom: _sfc_main$_,
4020
- SearchBoxProductCustomHtml: _sfc_main$Z,
4021
- SearchBoxProductAddToCart: _sfc_main$Y
4028
+ SearchBoxProductImage: _sfc_main$12,
4029
+ SearchBoxProductTitle: _sfc_main$11,
4030
+ SearchBoxProductDescription: _sfc_main$10,
4031
+ SearchBoxProductPrice: _sfc_main$$,
4032
+ SearchBoxProductRegularPrice: _sfc_main$_,
4033
+ SearchBoxProductCustom: _sfc_main$Z,
4034
+ SearchBoxProductCustomHtml: _sfc_main$Y,
4035
+ SearchBoxProductAddToCart: _sfc_main$X
4022
4036
  }
4023
4037
  };
4024
- const _sfc_main$X = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$4), {
4038
+ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$4), {
4025
4039
  __name: "SearchBoxProductElement",
4026
4040
  props: {
4027
4041
  item: {},
@@ -4135,14 +4149,14 @@ const useTrackingStore = defineStore("tracking", () => {
4135
4149
  };
4136
4150
  return { trackSearch, trackResults, trackEvent };
4137
4151
  });
4138
- const _hoisted_1$S = ["href"];
4139
- const _hoisted_2$C = { class: "lupa-search-box-product-image-section" };
4152
+ const _hoisted_1$R = ["href"];
4153
+ const _hoisted_2$B = { class: "lupa-search-box-product-image-section" };
4140
4154
  const _hoisted_3$r = { class: "lupa-search-box-product-details-section" };
4141
4155
  const _hoisted_4$l = {
4142
4156
  key: 0,
4143
4157
  class: "lupa-search-box-product-add-to-cart-section"
4144
4158
  };
4145
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
4159
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
4146
4160
  __name: "SearchBoxProduct",
4147
4161
  props: {
4148
4162
  item: {},
@@ -4235,9 +4249,9 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
4235
4249
  href: link.value,
4236
4250
  onClick: handleClick
4237
4251
  }, [
4238
- createElementVNode("div", _hoisted_2$C, [
4252
+ createElementVNode("div", _hoisted_2$B, [
4239
4253
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
4240
- return openBlock(), createBlock(_sfc_main$X, {
4254
+ return openBlock(), createBlock(_sfc_main$W, {
4241
4255
  class: "lupa-search-box-product-element",
4242
4256
  item: _ctx.item,
4243
4257
  element,
@@ -4249,7 +4263,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
4249
4263
  ]),
4250
4264
  createElementVNode("div", _hoisted_3$r, [
4251
4265
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
4252
- return openBlock(), createBlock(_sfc_main$X, {
4266
+ return openBlock(), createBlock(_sfc_main$W, {
4253
4267
  class: "lupa-search-box-product-element",
4254
4268
  item: _ctx.item,
4255
4269
  element,
@@ -4260,7 +4274,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
4260
4274
  }), 128))
4261
4275
  ]),
4262
4276
  addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$l, [
4263
- createVNode(_sfc_main$X, {
4277
+ createVNode(_sfc_main$W, {
4264
4278
  class: "lupa-search-box-product-element",
4265
4279
  item: _ctx.item,
4266
4280
  element: addToCartElement.value,
@@ -4269,12 +4283,12 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
4269
4283
  isInStock: isInStock.value
4270
4284
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
4271
4285
  ])) : createCommentVNode("", true)
4272
- ], 10, _hoisted_1$S);
4286
+ ], 10, _hoisted_1$R);
4273
4287
  };
4274
4288
  }
4275
4289
  });
4276
- const _hoisted_1$R = { id: "lupa-search-box-products" };
4277
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
4290
+ const _hoisted_1$Q = { id: "lupa-search-box-products" };
4291
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
4278
4292
  __name: "SearchBoxProducts",
4279
4293
  props: {
4280
4294
  items: {},
@@ -4294,7 +4308,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
4294
4308
  return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
4295
4309
  });
4296
4310
  return (_ctx, _cache) => {
4297
- return openBlock(), createElementBlock("div", _hoisted_1$R, [
4311
+ return openBlock(), createElementBlock("div", _hoisted_1$Q, [
4298
4312
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
4299
4313
  return renderSlot(_ctx.$slots, "productCard", {
4300
4314
  key: index,
@@ -4306,7 +4320,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
4306
4320
  onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
4307
4321
  });
4308
4322
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
4309
- return openBlock(), createBlock(_sfc_main$W, {
4323
+ return openBlock(), createBlock(_sfc_main$V, {
4310
4324
  key: index,
4311
4325
  item,
4312
4326
  panelOptions: _ctx.panelOptions,
@@ -4320,7 +4334,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
4320
4334
  };
4321
4335
  }
4322
4336
  });
4323
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
4337
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
4324
4338
  __name: "SearchBoxProductsWrapper",
4325
4339
  props: {
4326
4340
  panel: {},
@@ -4372,7 +4386,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
4372
4386
  const getItemsDebounced = debounce$1(getItems, props.debounce);
4373
4387
  return (_ctx, _cache) => {
4374
4388
  var _a, _b;
4375
- return openBlock(), createBlock(_sfc_main$V, {
4389
+ return openBlock(), createBlock(_sfc_main$U, {
4376
4390
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
4377
4391
  panelOptions: _ctx.panel,
4378
4392
  labels: _ctx.labels,
@@ -4390,11 +4404,11 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
4390
4404
  };
4391
4405
  }
4392
4406
  });
4393
- const _hoisted_1$Q = {
4407
+ const _hoisted_1$P = {
4394
4408
  key: 0,
4395
4409
  id: "lupa-search-box-panel"
4396
4410
  };
4397
- const _hoisted_2$B = {
4411
+ const _hoisted_2$A = {
4398
4412
  class: "lupa-main-panel",
4399
4413
  "data-cy": "lupa-main-panel"
4400
4414
  };
@@ -4405,11 +4419,11 @@ const _hoisted_4$k = {
4405
4419
  };
4406
4420
  const __default__$3 = {
4407
4421
  components: {
4408
- SearchBoxSuggestionsWrapper: _sfc_main$15,
4409
- SearchBoxProductsWrapper: _sfc_main$U
4422
+ SearchBoxSuggestionsWrapper: _sfc_main$14,
4423
+ SearchBoxProductsWrapper: _sfc_main$T
4410
4424
  }
4411
4425
  };
4412
- const _sfc_main$T = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$3), {
4426
+ const _sfc_main$S = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$3), {
4413
4427
  __name: "SearchBoxMainPanel",
4414
4428
  props: {
4415
4429
  options: {},
@@ -4523,8 +4537,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
4523
4537
  ref_key: "panelContainer",
4524
4538
  ref: panelContainer
4525
4539
  }, [
4526
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
4527
- createElementVNode("div", _hoisted_2$B, [
4540
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$P, [
4541
+ createElementVNode("div", _hoisted_2$A, [
4528
4542
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayPanels.value, (panel, index) => {
4529
4543
  return openBlock(), createElementBlock("div", {
4530
4544
  key: index,
@@ -4556,13 +4570,13 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
4556
4570
  ], 10, _hoisted_3$q);
4557
4571
  }), 128))
4558
4572
  ]),
4559
- createVNode(_sfc_main$1a, {
4573
+ createVNode(_sfc_main$19, {
4560
4574
  labels: labels.value,
4561
4575
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
4562
4576
  onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
4563
4577
  }, null, 8, ["labels", "showTotalCount"])
4564
4578
  ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$k, [
4565
- createVNode(_sfc_main$18, {
4579
+ createVNode(_sfc_main$17, {
4566
4580
  options: _ctx.options.history,
4567
4581
  history: history.value,
4568
4582
  onGoToResults: handleGoToResults,
@@ -4587,9 +4601,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
4587
4601
  const elements = getElements(triggers);
4588
4602
  elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
4589
4603
  };
4590
- const _hoisted_1$P = { id: "lupa-search-box" };
4591
- const _hoisted_2$A = { class: "lupa-search-box-wrapper" };
4592
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
4604
+ const _hoisted_1$O = { id: "lupa-search-box" };
4605
+ const _hoisted_2$z = { class: "lupa-search-box-wrapper" };
4606
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
4593
4607
  __name: "SearchBox",
4594
4608
  props: {
4595
4609
  options: {},
@@ -4682,8 +4696,9 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
4682
4696
  }
4683
4697
  };
4684
4698
  const handleInput = (value) => {
4699
+ var _a2;
4685
4700
  opened.value = true;
4686
- inputValue.value = value.replace(/\s+$/, "");
4701
+ inputValue.value = (_a2 = value == null ? void 0 : value.replace(/\s+$/, "")) != null ? _a2 : "";
4687
4702
  suggestedValue.value = defaultSuggestedValue;
4688
4703
  trackSearchQuery(value);
4689
4704
  if (props.isSearchContainer) {
@@ -4821,9 +4836,9 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
4821
4836
  };
4822
4837
  return (_ctx, _cache) => {
4823
4838
  var _a2;
4824
- return openBlock(), createElementBlock("div", _hoisted_1$P, [
4825
- createElementVNode("div", _hoisted_2$A, [
4826
- createVNode(_sfc_main$1b, {
4839
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
4840
+ createElementVNode("div", _hoisted_2$z, [
4841
+ createVNode(_sfc_main$1a, {
4827
4842
  options: inputOptions.value,
4828
4843
  suggestedValue: suggestedValue.value,
4829
4844
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -4834,7 +4849,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
4834
4849
  onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
4835
4850
  onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
4836
4851
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
4837
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$T, {
4852
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$S, {
4838
4853
  key: 0,
4839
4854
  options: panelOptions.value,
4840
4855
  inputValue: inputValue.value,
@@ -4937,11 +4952,11 @@ const getInitialSearchResults = (options, defaultData) => __async(void 0, null,
4937
4952
  options.options.onError(e);
4938
4953
  }
4939
4954
  });
4940
- const _hoisted_1$O = {
4955
+ const _hoisted_1$N = {
4941
4956
  key: 0,
4942
4957
  id: "lupa-search-results-did-you-mean"
4943
4958
  };
4944
- const _hoisted_2$z = {
4959
+ const _hoisted_2$y = {
4945
4960
  key: 0,
4946
4961
  "data-cy": "suggested-search-text-label"
4947
4962
  };
@@ -4950,7 +4965,7 @@ const _hoisted_3$p = {
4950
4965
  "data-cy": "did-you-mean-label"
4951
4966
  };
4952
4967
  const _hoisted_4$j = { key: 1 };
4953
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
4968
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
4954
4969
  __name: "SearchResultsDidYouMean",
4955
4970
  props: {
4956
4971
  labels: {}
@@ -4982,8 +4997,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
4982
4997
  paramStore.goToResults({ searchText, facet });
4983
4998
  };
4984
4999
  return (_ctx, _cache) => {
4985
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$O, [
4986
- unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
5000
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
5001
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
4987
5002
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
4988
5003
  return openBlock(), createElementBlock("span", { key: index }, [
4989
5004
  createElementVNode("span", {
@@ -5008,12 +5023,12 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
5008
5023
  };
5009
5024
  }
5010
5025
  });
5011
- const _hoisted_1$N = {
5026
+ const _hoisted_1$M = {
5012
5027
  key: 0,
5013
5028
  class: "lupa-search-results-summary"
5014
5029
  };
5015
- const _hoisted_2$y = ["innerHTML"];
5016
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
5030
+ const _hoisted_2$x = ["innerHTML"];
5031
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
5017
5032
  __name: "SearchResultsSummary",
5018
5033
  props: {
5019
5034
  label: {},
@@ -5028,8 +5043,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
5028
5043
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
5029
5044
  });
5030
5045
  return (_ctx, _cache) => {
5031
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
5032
- createElementVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$y),
5046
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
5047
+ createElementVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$x),
5033
5048
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
5034
5049
  key: 0,
5035
5050
  class: "lupa-filter-clear",
@@ -5040,18 +5055,18 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
5040
5055
  };
5041
5056
  }
5042
5057
  });
5043
- const _hoisted_1$M = {
5058
+ const _hoisted_1$L = {
5044
5059
  key: 0,
5045
5060
  class: "lupa-result-page-title",
5046
5061
  "data-cy": "lupa-result-page-title"
5047
5062
  };
5048
- const _hoisted_2$x = { key: 0 };
5063
+ const _hoisted_2$w = { key: 0 };
5049
5064
  const _hoisted_3$o = {
5050
5065
  key: 1,
5051
5066
  class: "lupa-results-total-count"
5052
5067
  };
5053
5068
  const _hoisted_4$i = ["innerHTML"];
5054
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
5069
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
5055
5070
  __name: "SearchResultsTitle",
5056
5071
  props: {
5057
5072
  options: {},
@@ -5086,12 +5101,12 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
5086
5101
  });
5087
5102
  return (_ctx, _cache) => {
5088
5103
  return openBlock(), createElementBlock("div", null, [
5089
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$M, [
5104
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$L, [
5090
5105
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
5091
- queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$x, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
5106
+ queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$w, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
5092
5107
  showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$o, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
5093
5108
  ])) : createCommentVNode("", true),
5094
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Q, {
5109
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$P, {
5095
5110
  key: 1,
5096
5111
  label: summaryLabel.value
5097
5112
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -5104,8 +5119,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
5104
5119
  };
5105
5120
  }
5106
5121
  });
5107
- const _hoisted_1$L = { class: "lupa-search-result-filter-value" };
5108
- const _hoisted_2$w = {
5122
+ const _hoisted_1$K = { class: "lupa-search-result-filter-value" };
5123
+ const _hoisted_2$v = {
5109
5124
  class: "lupa-current-filter-label",
5110
5125
  "data-cy": "lupa-current-filter-label"
5111
5126
  };
@@ -5113,7 +5128,7 @@ const _hoisted_3$n = {
5113
5128
  class: "lupa-current-filter-value",
5114
5129
  "data-cy": "lupa-current-filter-value"
5115
5130
  };
5116
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
5131
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
5117
5132
  __name: "CurrentFilterDisplay",
5118
5133
  props: {
5119
5134
  filter: {}
@@ -5125,19 +5140,19 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
5125
5140
  emit("remove", { filter: props.filter });
5126
5141
  };
5127
5142
  return (_ctx, _cache) => {
5128
- return openBlock(), createElementBlock("div", _hoisted_1$L, [
5143
+ return openBlock(), createElementBlock("div", _hoisted_1$K, [
5129
5144
  createElementVNode("div", {
5130
5145
  class: "lupa-current-filter-action",
5131
5146
  onClick: handleClick
5132
5147
  }, "⨉"),
5133
- createElementVNode("div", _hoisted_2$w, toDisplayString(_ctx.filter.label) + ": ", 1),
5148
+ createElementVNode("div", _hoisted_2$v, toDisplayString(_ctx.filter.label) + ": ", 1),
5134
5149
  createElementVNode("div", _hoisted_3$n, toDisplayString(_ctx.filter.value), 1)
5135
5150
  ]);
5136
5151
  };
5137
5152
  }
5138
5153
  });
5139
- const _hoisted_1$K = { class: "lupa-filter-title-text" };
5140
- const _hoisted_2$v = {
5154
+ const _hoisted_1$J = { class: "lupa-filter-title-text" };
5155
+ const _hoisted_2$u = {
5141
5156
  key: 0,
5142
5157
  class: "lupa-filter-count"
5143
5158
  };
@@ -5146,7 +5161,7 @@ const _hoisted_3$m = {
5146
5161
  class: "filter-values"
5147
5162
  };
5148
5163
  const _hoisted_4$h = { class: "lupa-current-filter-list" };
5149
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
5164
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
5150
5165
  __name: "CurrentFilters",
5151
5166
  props: {
5152
5167
  options: {},
@@ -5201,9 +5216,9 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
5201
5216
  class: "lupa-current-filter-title",
5202
5217
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
5203
5218
  }, [
5204
- createElementVNode("div", _hoisted_1$K, [
5219
+ createElementVNode("div", _hoisted_1$J, [
5205
5220
  createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
5206
- _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$v, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
5221
+ _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$u, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
5207
5222
  ]),
5208
5223
  _ctx.expandable ? (openBlock(), createElementBlock("div", {
5209
5224
  key: 0,
@@ -5213,7 +5228,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
5213
5228
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$m, [
5214
5229
  createElementVNode("div", _hoisted_4$h, [
5215
5230
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
5216
- return openBlock(), createBlock(_sfc_main$O, {
5231
+ return openBlock(), createBlock(_sfc_main$N, {
5217
5232
  key: filter.key + "_" + filter.value,
5218
5233
  filter,
5219
5234
  onRemove: handleRemove
@@ -5230,8 +5245,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
5230
5245
  };
5231
5246
  }
5232
5247
  });
5233
- const _hoisted_1$J = ["href"];
5234
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
5248
+ const _hoisted_1$I = ["href"];
5249
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
5235
5250
  __name: "CategoryFilterItem",
5236
5251
  props: {
5237
5252
  options: {},
@@ -5268,20 +5283,20 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
5268
5283
  "data-cy": "lupa-child-category-item",
5269
5284
  href: urlLink.value,
5270
5285
  onClick: handleNavigation
5271
- }, toDisplayString(title.value), 9, _hoisted_1$J)
5286
+ }, toDisplayString(title.value), 9, _hoisted_1$I)
5272
5287
  ], 2);
5273
5288
  };
5274
5289
  }
5275
5290
  });
5276
- const _hoisted_1$I = {
5291
+ const _hoisted_1$H = {
5277
5292
  class: "lupa-category-filter",
5278
5293
  "data-cy": "lupa-category-filter"
5279
5294
  };
5280
- const _hoisted_2$u = { class: "lupa-category-back" };
5295
+ const _hoisted_2$t = { class: "lupa-category-back" };
5281
5296
  const _hoisted_3$l = ["href"];
5282
5297
  const _hoisted_4$g = ["href"];
5283
5298
  const _hoisted_5$9 = { class: "lupa-child-category-list" };
5284
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
5299
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
5285
5300
  __name: "CategoryFilter",
5286
5301
  props: {
5287
5302
  options: {}
@@ -5367,8 +5382,8 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
5367
5382
  };
5368
5383
  __expose({ fetch: fetch2 });
5369
5384
  return (_ctx, _cache) => {
5370
- return openBlock(), createElementBlock("div", _hoisted_1$I, [
5371
- createElementVNode("div", _hoisted_2$u, [
5385
+ return openBlock(), createElementBlock("div", _hoisted_1$H, [
5386
+ createElementVNode("div", _hoisted_2$t, [
5372
5387
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
5373
5388
  key: 0,
5374
5389
  "data-cy": "lupa-category-back",
@@ -5388,7 +5403,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
5388
5403
  ], 2),
5389
5404
  createElementVNode("div", _hoisted_5$9, [
5390
5405
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
5391
- return openBlock(), createBlock(_sfc_main$M, {
5406
+ return openBlock(), createBlock(_sfc_main$L, {
5392
5407
  key: getCategoryKey(child),
5393
5408
  item: child,
5394
5409
  options: _ctx.options
@@ -5399,23 +5414,23 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
5399
5414
  };
5400
5415
  }
5401
5416
  });
5402
- const _hoisted_1$H = {
5417
+ const _hoisted_1$G = {
5403
5418
  class: "lupa-search-result-facet-term-values",
5404
5419
  "data-cy": "lupa-search-result-facet-term-values"
5405
5420
  };
5406
- const _hoisted_2$t = ["placeholder"];
5421
+ const _hoisted_2$s = ["placeholder"];
5407
5422
  const _hoisted_3$k = { class: "lupa-terms-list" };
5408
5423
  const _hoisted_4$f = ["onClick"];
5409
5424
  const _hoisted_5$8 = { class: "lupa-term-checkbox-wrapper" };
5410
5425
  const _hoisted_6$5 = { class: "lupa-term-checkbox-label" };
5411
5426
  const _hoisted_7$5 = { class: "lupa-term-label" };
5412
- const _hoisted_8$2 = {
5427
+ const _hoisted_8$1 = {
5413
5428
  key: 0,
5414
5429
  class: "lupa-term-count"
5415
5430
  };
5416
5431
  const _hoisted_9$1 = { key: 0 };
5417
5432
  const _hoisted_10$1 = { key: 1 };
5418
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
5433
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
5419
5434
  __name: "TermFacet",
5420
5435
  props: {
5421
5436
  options: {},
@@ -5484,14 +5499,14 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
5484
5499
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
5485
5500
  };
5486
5501
  return (_ctx, _cache) => {
5487
- return openBlock(), createElementBlock("div", _hoisted_1$H, [
5502
+ return openBlock(), createElementBlock("div", _hoisted_1$G, [
5488
5503
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
5489
5504
  key: 0,
5490
5505
  class: "lupa-term-filter",
5491
5506
  "data-cy": "lupa-term-filter",
5492
5507
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
5493
5508
  placeholder: _ctx.options.labels.facetFilter
5494
- }, null, 8, _hoisted_2$t)), [
5509
+ }, null, 8, _hoisted_2$s)), [
5495
5510
  [vModelText, termFilter.value]
5496
5511
  ]) : createCommentVNode("", true),
5497
5512
  createElementVNode("div", _hoisted_3$k, [
@@ -5509,7 +5524,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
5509
5524
  ]),
5510
5525
  createElementVNode("div", _hoisted_6$5, [
5511
5526
  createElementVNode("span", _hoisted_7$5, toDisplayString(item.title), 1),
5512
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
5527
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
5513
5528
  ])
5514
5529
  ], 10, _hoisted_4$f);
5515
5530
  }), 128))
@@ -6502,8 +6517,8 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
6502
6517
  m.render = function(e, t, r, i, n, o) {
6503
6518
  return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
6504
6519
  }, m.__file = "src/Slider.vue";
6505
- const _hoisted_1$G = { class: "lupa-search-result-facet-stats-values" };
6506
- const _hoisted_2$s = {
6520
+ const _hoisted_1$F = { class: "lupa-search-result-facet-stats-values" };
6521
+ const _hoisted_2$r = {
6507
6522
  key: 0,
6508
6523
  class: "lupa-stats-facet-summary"
6509
6524
  };
@@ -6518,7 +6533,7 @@ const _hoisted_4$e = {
6518
6533
  const _hoisted_5$7 = { class: "lupa-stats-from" };
6519
6534
  const _hoisted_6$4 = ["max", "min", "pattern"];
6520
6535
  const _hoisted_7$4 = { key: 0 };
6521
- const _hoisted_8$1 = /* @__PURE__ */ createElementVNode("div", { class: "lupa-stats-separator" }, null, -1);
6536
+ const _hoisted_8 = /* @__PURE__ */ createElementVNode("div", { class: "lupa-stats-separator" }, null, -1);
6522
6537
  const _hoisted_9 = {
6523
6538
  key: 0,
6524
6539
  class: "lupa-stats-range-label"
@@ -6530,7 +6545,7 @@ const _hoisted_13 = {
6530
6545
  key: 2,
6531
6546
  class: "lupa-stats-slider-wrapper"
6532
6547
  };
6533
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
6548
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
6534
6549
  __name: "StatsFacet",
6535
6550
  props: {
6536
6551
  options: {},
@@ -6678,8 +6693,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
6678
6693
  innerSliderRange.value = value;
6679
6694
  };
6680
6695
  return (_ctx, _cache) => {
6681
- return openBlock(), createElementBlock("div", _hoisted_1$G, [
6682
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$s, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$j, [
6696
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
6697
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$j, [
6683
6698
  createElementVNode("div", null, [
6684
6699
  rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
6685
6700
  createElementVNode("div", _hoisted_5$7, [
@@ -6701,7 +6716,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
6701
6716
  isPrice.value ? (openBlock(), createElementBlock("span", _hoisted_7$4, toDisplayString(currency.value), 1)) : createCommentVNode("", true)
6702
6717
  ])
6703
6718
  ]),
6704
- _hoisted_8$1,
6719
+ _hoisted_8,
6705
6720
  createElementVNode("div", null, [
6706
6721
  rangeLabelTo.value ? (openBlock(), createElementBlock("div", _hoisted_9, toDisplayString(rangeLabelTo.value), 1)) : createCommentVNode("", true),
6707
6722
  createElementVNode("div", _hoisted_10, [
@@ -6742,8 +6757,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
6742
6757
  };
6743
6758
  }
6744
6759
  });
6745
- const _hoisted_1$F = { class: "lupa-term-checkbox-wrapper" };
6746
- const _hoisted_2$r = { class: "lupa-term-checkbox-label" };
6760
+ const _hoisted_1$E = { class: "lupa-term-checkbox-wrapper" };
6761
+ const _hoisted_2$q = { class: "lupa-term-checkbox-label" };
6747
6762
  const _hoisted_3$i = { class: "lupa-term-label" };
6748
6763
  const _hoisted_4$d = {
6749
6764
  key: 0,
@@ -6753,7 +6768,7 @@ const _hoisted_5$6 = {
6753
6768
  key: 0,
6754
6769
  class: "lupa-facet-level"
6755
6770
  };
6756
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
6771
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
6757
6772
  __name: "HierarchyFacetLevel",
6758
6773
  props: {
6759
6774
  options: {},
@@ -6799,12 +6814,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
6799
6814
  "data-cy": "lupa-facet-term",
6800
6815
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
6801
6816
  }, [
6802
- createElementVNode("div", _hoisted_1$F, [
6817
+ createElementVNode("div", _hoisted_1$E, [
6803
6818
  createElementVNode("span", {
6804
6819
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
6805
6820
  }, null, 2)
6806
6821
  ]),
6807
- createElementVNode("div", _hoisted_2$r, [
6822
+ createElementVNode("div", _hoisted_2$q, [
6808
6823
  createElementVNode("span", _hoisted_3$i, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
6809
6824
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$d, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
6810
6825
  ])
@@ -6825,13 +6840,13 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
6825
6840
  };
6826
6841
  }
6827
6842
  });
6828
- const _hoisted_1$E = {
6843
+ const _hoisted_1$D = {
6829
6844
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
6830
6845
  "data-cy": "lupa-search-result-facet-term-values"
6831
6846
  };
6832
- const _hoisted_2$q = { key: 0 };
6847
+ const _hoisted_2$p = { key: 0 };
6833
6848
  const _hoisted_3$h = ["placeholder"];
6834
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
6849
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
6835
6850
  __name: "HierarchyFacet",
6836
6851
  props: {
6837
6852
  options: {},
@@ -6881,8 +6896,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
6881
6896
  showAll.value = true;
6882
6897
  };
6883
6898
  return (_ctx, _cache) => {
6884
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
6885
- isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$q, [
6899
+ return openBlock(), createElementBlock("div", _hoisted_1$D, [
6900
+ isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, [
6886
6901
  withDirectives(createElementVNode("input", {
6887
6902
  class: "lupa-term-filter",
6888
6903
  "data-cy": "lupa-term-filter",
@@ -6893,7 +6908,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
6893
6908
  ])
6894
6909
  ])) : createCommentVNode("", true),
6895
6910
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
6896
- return openBlock(), createBlock(_sfc_main$I, {
6911
+ return openBlock(), createBlock(_sfc_main$H, {
6897
6912
  key: item.title,
6898
6913
  options: _ctx.options,
6899
6914
  item,
@@ -6913,20 +6928,20 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
6913
6928
  };
6914
6929
  }
6915
6930
  });
6916
- const _hoisted_1$D = { class: "lupa-facet-label-text" };
6917
- const _hoisted_2$p = {
6931
+ const _hoisted_1$C = { class: "lupa-facet-label-text" };
6932
+ const _hoisted_2$o = {
6918
6933
  key: 0,
6919
6934
  class: "lupa-facet-content",
6920
6935
  "data-cy": "lupa-facet-content"
6921
6936
  };
6922
6937
  const __default__$2 = {
6923
6938
  components: {
6924
- TermFacet: _sfc_main$K,
6925
- StatsFacet: _sfc_main$J,
6926
- HierarchyFacet: _sfc_main$H
6939
+ TermFacet: _sfc_main$J,
6940
+ StatsFacet: _sfc_main$I,
6941
+ HierarchyFacet: _sfc_main$G
6927
6942
  }
6928
6943
  };
6929
- const _sfc_main$G = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$2), {
6944
+ const _sfc_main$F = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$2), {
6930
6945
  __name: "FacetDisplay",
6931
6946
  props: {
6932
6947
  options: {},
@@ -7037,12 +7052,12 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
7037
7052
  "data-cy": "lupa-search-result-facet-label",
7038
7053
  onClick: toggleFacet
7039
7054
  }, [
7040
- createElementVNode("div", _hoisted_1$D, toDisplayString(facet.value.label), 1),
7055
+ createElementVNode("div", _hoisted_1$C, toDisplayString(facet.value.label), 1),
7041
7056
  createElementVNode("div", {
7042
7057
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
7043
7058
  }, null, 2)
7044
7059
  ], 2),
7045
- isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, [
7060
+ isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$o, [
7046
7061
  (openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
7047
7062
  facet: facet.value,
7048
7063
  currentFilters: currentFilters.value[facet.value.key],
@@ -7060,12 +7075,12 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
7060
7075
  };
7061
7076
  }
7062
7077
  }));
7063
- const _hoisted_1$C = { class: "lupa-search-result-facet-section" };
7064
- const _hoisted_2$o = {
7078
+ const _hoisted_1$B = { class: "lupa-search-result-facet-section" };
7079
+ const _hoisted_2$n = {
7065
7080
  key: 0,
7066
7081
  class: "lupa-facets-title"
7067
7082
  };
7068
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
7083
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
7069
7084
  __name: "FacetList",
7070
7085
  props: {
7071
7086
  options: {},
@@ -7099,14 +7114,14 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
7099
7114
  };
7100
7115
  return (_ctx, _cache) => {
7101
7116
  var _a;
7102
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
7103
- _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$o, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
7117
+ return openBlock(), createElementBlock("div", _hoisted_1$B, [
7118
+ _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
7104
7119
  createElementVNode("div", {
7105
7120
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
7106
7121
  }, [
7107
7122
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
7108
7123
  var _a2;
7109
- return openBlock(), createBlock(_sfc_main$G, {
7124
+ return openBlock(), createBlock(_sfc_main$F, {
7110
7125
  key: facet.key,
7111
7126
  facet,
7112
7127
  currentFilters: currentFiltersValue.value,
@@ -7121,8 +7136,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
7121
7136
  };
7122
7137
  }
7123
7138
  });
7124
- const _hoisted_1$B = { class: "lupa-search-result-facets" };
7125
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
7139
+ const _hoisted_1$A = { class: "lupa-search-result-facets" };
7140
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
7126
7141
  __name: "Facets",
7127
7142
  props: {
7128
7143
  options: {},
@@ -7168,8 +7183,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
7168
7183
  paramStore.removeParameters({ paramsToRemove: [param] });
7169
7184
  };
7170
7185
  return (_ctx, _cache) => {
7171
- return openBlock(), createElementBlock("div", _hoisted_1$B, [
7172
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$F, {
7186
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
7187
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$E, {
7173
7188
  key: 0,
7174
7189
  options: _ctx.options,
7175
7190
  facets: regularFacets.value,
@@ -7183,11 +7198,11 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
7183
7198
  };
7184
7199
  }
7185
7200
  });
7186
- const _hoisted_1$A = {
7201
+ const _hoisted_1$z = {
7187
7202
  id: "lupa-search-result-filters",
7188
7203
  class: "lupa-search-result-filters"
7189
7204
  };
7190
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
7205
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
7191
7206
  __name: "SearchResultsFilters",
7192
7207
  props: {
7193
7208
  options: {},
@@ -7216,19 +7231,19 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
7216
7231
  __expose({ fetch: fetch2 });
7217
7232
  return (_ctx, _cache) => {
7218
7233
  var _a;
7219
- return openBlock(), createElementBlock("div", _hoisted_1$A, [
7220
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$N, {
7234
+ return openBlock(), createElementBlock("div", _hoisted_1$z, [
7235
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$M, {
7221
7236
  key: 0,
7222
7237
  options: _ctx.options.currentFilters,
7223
7238
  expandable: (_a = _ctx.expandable) != null ? _a : false
7224
7239
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
7225
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$L, {
7240
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$K, {
7226
7241
  key: 1,
7227
7242
  options: _ctx.options.categories,
7228
7243
  ref_key: "categoryFilters",
7229
7244
  ref: categoryFilters
7230
7245
  }, null, 8, ["options"])) : createCommentVNode("", true),
7231
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$E, {
7246
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$D, {
7232
7247
  key: 2,
7233
7248
  options: _ctx.options.facets
7234
7249
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -7236,11 +7251,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
7236
7251
  };
7237
7252
  }
7238
7253
  });
7239
- const _hoisted_1$z = {
7254
+ const _hoisted_1$y = {
7240
7255
  key: 0,
7241
7256
  class: "lupa-mobile-filter-sidebar"
7242
7257
  };
7243
- const _hoisted_2$n = ["onClick"];
7258
+ const _hoisted_2$m = ["onClick"];
7244
7259
  const _hoisted_3$g = { class: "lupa-mobile-sidebar-content" };
7245
7260
  const _hoisted_4$c = { class: "lupa-sidebar-top" };
7246
7261
  const _hoisted_5$5 = { class: "lupa-sidebar-title" };
@@ -7249,7 +7264,7 @@ const _hoisted_6$3 = {
7249
7264
  class: "lupa-sidebar-filter-count"
7250
7265
  };
7251
7266
  const _hoisted_7$3 = { class: "lupa-sidebar-filter-options" };
7252
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
7267
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
7253
7268
  __name: "MobileFilterSidebar",
7254
7269
  props: {
7255
7270
  options: {}
@@ -7275,11 +7290,11 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
7275
7290
  searchResultStore.setSidebarState({ visible: false });
7276
7291
  };
7277
7292
  return (_ctx, _cache) => {
7278
- return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$z, [
7293
+ return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
7279
7294
  createElementVNode("div", {
7280
7295
  class: "lupa-sidebar-close",
7281
7296
  onClick: withModifiers(handleMobileToggle, ["stop"])
7282
- }, null, 8, _hoisted_2$n),
7297
+ }, null, 8, _hoisted_2$m),
7283
7298
  createElementVNode("div", _hoisted_3$g, [
7284
7299
  createElementVNode("div", _hoisted_4$c, [
7285
7300
  createElementVNode("div", _hoisted_5$5, [
@@ -7292,7 +7307,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
7292
7307
  })
7293
7308
  ]),
7294
7309
  createElementVNode("div", _hoisted_7$3, [
7295
- createVNode(_sfc_main$D, {
7310
+ createVNode(_sfc_main$C, {
7296
7311
  options: _ctx.options,
7297
7312
  expandable: isActiveFiltersExpanded.value
7298
7313
  }, null, 8, ["options", "expandable"])
@@ -7302,14 +7317,14 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
7302
7317
  };
7303
7318
  }
7304
7319
  });
7305
- const _hoisted_1$y = { id: "lupa-search-results-breadcrumbs" };
7306
- const _hoisted_2$m = ["href", "onClick"];
7320
+ const _hoisted_1$x = { id: "lupa-search-results-breadcrumbs" };
7321
+ const _hoisted_2$l = ["href", "onClick"];
7307
7322
  const _hoisted_3$f = {
7308
7323
  key: 1,
7309
7324
  class: "lupa-search-results-breadcrumb-text"
7310
7325
  };
7311
7326
  const _hoisted_4$b = { key: 2 };
7312
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
7327
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
7313
7328
  __name: "SearchResultsBreadcrumbs",
7314
7329
  props: {
7315
7330
  breadcrumbs: {}
@@ -7334,7 +7349,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
7334
7349
  handleRoutingEvent(link, event, hasEventRouting.value);
7335
7350
  };
7336
7351
  return (_ctx, _cache) => {
7337
- return openBlock(), createElementBlock("div", _hoisted_1$y, [
7352
+ return openBlock(), createElementBlock("div", _hoisted_1$x, [
7338
7353
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
7339
7354
  return openBlock(), createElementBlock("span", {
7340
7355
  class: "lupa-search-results-breadcrumb",
@@ -7348,7 +7363,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
7348
7363
  var _a;
7349
7364
  return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
7350
7365
  }
7351
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$m)) : (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(getLabel(breadcrumb.label)), 1)),
7366
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$l)) : (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(getLabel(breadcrumb.label)), 1)),
7352
7367
  index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$b, " / ")) : createCommentVNode("", true)
7353
7368
  ]);
7354
7369
  }), 128))
@@ -7356,11 +7371,11 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
7356
7371
  };
7357
7372
  }
7358
7373
  });
7359
- const _hoisted_1$x = {
7374
+ const _hoisted_1$w = {
7360
7375
  id: "lupa-search-result-filters",
7361
7376
  class: "lupa-search-result-filters"
7362
7377
  };
7363
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
7378
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
7364
7379
  __name: "FiltersTopDropdown",
7365
7380
  props: {
7366
7381
  options: {}
@@ -7368,8 +7383,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
7368
7383
  setup(__props) {
7369
7384
  return (_ctx, _cache) => {
7370
7385
  var _a;
7371
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
7372
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$E, {
7386
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
7387
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$D, {
7373
7388
  key: 0,
7374
7389
  options: _ctx.options.facets,
7375
7390
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -7379,8 +7394,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
7379
7394
  };
7380
7395
  }
7381
7396
  });
7382
- const _hoisted_1$w = { id: "lupa-search-results-layout-selection" };
7383
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
7397
+ const _hoisted_1$v = { id: "lupa-search-results-layout-selection" };
7398
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
7384
7399
  __name: "SearchResultsLayoutSelection",
7385
7400
  setup(__props) {
7386
7401
  const searchResultStore = useSearchResultStore();
@@ -7391,7 +7406,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
7391
7406
  searchResultStore.setLayout(layout2);
7392
7407
  };
7393
7408
  return (_ctx, _cache) => {
7394
- return openBlock(), createElementBlock("div", _hoisted_1$w, [
7409
+ return openBlock(), createElementBlock("div", _hoisted_1$v, [
7395
7410
  createElementVNode("div", {
7396
7411
  class: normalizeClass([
7397
7412
  "lupa-layout-selection-grid",
@@ -7413,11 +7428,11 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
7413
7428
  };
7414
7429
  }
7415
7430
  });
7416
- const _hoisted_1$v = {
7431
+ const _hoisted_1$u = {
7417
7432
  key: 0,
7418
7433
  class: "lupa-mobile-toggle-filter-count"
7419
7434
  };
7420
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
7435
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
7421
7436
  __name: "SearchResultsMobileToggle",
7422
7437
  props: {
7423
7438
  label: {},
@@ -7435,17 +7450,17 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
7435
7450
  onClick: handleMobileToggle
7436
7451
  }, [
7437
7452
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
7438
- _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$v, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
7453
+ _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$u, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
7439
7454
  ], 2);
7440
7455
  };
7441
7456
  }
7442
7457
  });
7443
- const _hoisted_1$u = {
7458
+ const _hoisted_1$t = {
7444
7459
  key: 0,
7445
7460
  id: "lupa-search-results-page-select",
7446
7461
  "data-cy": "lupa-search-results-page-select"
7447
7462
  };
7448
- const _hoisted_2$l = {
7463
+ const _hoisted_2$k = {
7449
7464
  key: 0,
7450
7465
  class: "lupa-page-number-separator"
7451
7466
  };
@@ -7454,7 +7469,7 @@ const _hoisted_4$a = {
7454
7469
  key: 0,
7455
7470
  class: "lupa-page-number-separator"
7456
7471
  };
7457
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
7472
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
7458
7473
  __name: "SearchResultsPageSelect",
7459
7474
  props: {
7460
7475
  lastPageLabel: {},
@@ -7516,7 +7531,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
7516
7531
  }
7517
7532
  };
7518
7533
  return (_ctx, _cache) => {
7519
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$u, [
7534
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$t, [
7520
7535
  showBack.value ? (openBlock(), createElementBlock("div", {
7521
7536
  key: 0,
7522
7537
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -7527,7 +7542,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
7527
7542
  class: "lupa-page-number lupa-page-number-first",
7528
7543
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
7529
7544
  }, " 1 "),
7530
- showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, "...")) : createCommentVNode("", true)
7545
+ showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$k, "...")) : createCommentVNode("", true)
7531
7546
  ], 64)) : createCommentVNode("", true),
7532
7547
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
7533
7548
  return openBlock(), createElementBlock("div", {
@@ -7560,13 +7575,13 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
7560
7575
  };
7561
7576
  }
7562
7577
  });
7563
- const _hoisted_1$t = {
7578
+ const _hoisted_1$s = {
7564
7579
  id: "lupa-search-results-page-size",
7565
7580
  "data-cy": "lupa-search-results-page-size"
7566
7581
  };
7567
- const _hoisted_2$k = { id: "lupa-select" };
7582
+ const _hoisted_2$j = { id: "lupa-select" };
7568
7583
  const _hoisted_3$d = { class: "lupa-select-label" };
7569
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
7584
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
7570
7585
  __name: "SearchResultsPageSize",
7571
7586
  props: {
7572
7587
  label: {},
@@ -7583,8 +7598,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
7583
7598
  });
7584
7599
  };
7585
7600
  return (_ctx, _cache) => {
7586
- return openBlock(), createElementBlock("div", _hoisted_1$t, [
7587
- createElementVNode("div", _hoisted_2$k, [
7601
+ return openBlock(), createElementBlock("div", _hoisted_1$s, [
7602
+ createElementVNode("div", _hoisted_2$j, [
7588
7603
  createElementVNode("label", _hoisted_3$d, toDisplayString(_ctx.label), 1),
7589
7604
  createElementVNode("select", {
7590
7605
  class: "lupa-select-dropdown",
@@ -7602,14 +7617,14 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
7602
7617
  };
7603
7618
  }
7604
7619
  });
7605
- const _hoisted_1$s = {
7620
+ const _hoisted_1$r = {
7606
7621
  id: "lupa-search-results-sort",
7607
7622
  class: "lupa-search-results-sort"
7608
7623
  };
7609
- const _hoisted_2$j = { id: "lupa-select" };
7624
+ const _hoisted_2$i = { id: "lupa-select" };
7610
7625
  const _hoisted_3$c = { class: "lupa-select-label" };
7611
7626
  const _hoisted_4$9 = ["value"];
7612
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
7627
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
7613
7628
  __name: "SearchResultsSort",
7614
7629
  props: {
7615
7630
  options: {}
@@ -7651,8 +7666,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
7651
7666
  });
7652
7667
  };
7653
7668
  return (_ctx, _cache) => {
7654
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
7655
- createElementVNode("div", _hoisted_2$j, [
7669
+ return openBlock(), createElementBlock("div", _hoisted_1$r, [
7670
+ createElementVNode("div", _hoisted_2$i, [
7656
7671
  createElementVNode("label", _hoisted_3$c, toDisplayString(_ctx.options.label), 1),
7657
7672
  withDirectives(createElementVNode("select", {
7658
7673
  class: "lupa-select-dropdown",
@@ -7675,14 +7690,14 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
7675
7690
  };
7676
7691
  }
7677
7692
  });
7678
- const _hoisted_1$r = { class: "lupa-toolbar-left" };
7679
- const _hoisted_2$i = { key: 1 };
7693
+ const _hoisted_1$q = { class: "lupa-toolbar-left" };
7694
+ const _hoisted_2$h = { key: 1 };
7680
7695
  const _hoisted_3$b = { key: 3 };
7681
7696
  const _hoisted_4$8 = { key: 5 };
7682
7697
  const _hoisted_5$4 = { class: "lupa-toolbar-right" };
7683
7698
  const _hoisted_6$2 = { key: 1 };
7684
7699
  const _hoisted_7$2 = { key: 3 };
7685
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
7700
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
7686
7701
  __name: "SearchResultsToolbar",
7687
7702
  props: {
7688
7703
  options: {},
@@ -7779,15 +7794,15 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
7779
7794
  id: "lupa-search-results-toolbar",
7780
7795
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
7781
7796
  }, [
7782
- createElementVNode("div", _hoisted_1$r, [
7783
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$z, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$i)),
7784
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Q, {
7797
+ createElementVNode("div", _hoisted_1$q, [
7798
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$y, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$h)),
7799
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$P, {
7785
7800
  key: 2,
7786
7801
  label: searchSummaryLabel.value,
7787
7802
  clearable: unref(hasAnyFilter) && showFilterClear.value,
7788
7803
  onClear: handleClearAll
7789
7804
  }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$b)),
7790
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$x, {
7805
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$w, {
7791
7806
  key: 4,
7792
7807
  options: paginationOptions.value.pageSelect,
7793
7808
  "last-page-label": paginationOptions.value.labels.showMore,
@@ -7795,16 +7810,16 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
7795
7810
  }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$8))
7796
7811
  ]),
7797
7812
  createElementVNode("div", _hoisted_5$4, [
7798
- createVNode(_sfc_main$y, {
7813
+ createVNode(_sfc_main$x, {
7799
7814
  label: optionsValue.value.labels.mobileFilterButton,
7800
7815
  "show-filter-count": showMobileFilterCount.value
7801
7816
  }, null, 8, ["label", "show-filter-count"]),
7802
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$w, {
7817
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$v, {
7803
7818
  key: 0,
7804
7819
  options: paginationOptions.value.pageSize,
7805
7820
  label: paginationOptions.value.labels.pageSize
7806
7821
  }, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$2)),
7807
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$v, {
7822
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$u, {
7808
7823
  key: 2,
7809
7824
  options: sortOptions.value
7810
7825
  }, null, 8, ["options"])) : (openBlock(), createElementBlock("div", _hoisted_7$2))
@@ -7813,14 +7828,14 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
7813
7828
  };
7814
7829
  }
7815
7830
  });
7816
- const _hoisted_1$q = { class: "lupa-badge-title" };
7817
- const _hoisted_2$h = ["src"];
7831
+ const _hoisted_1$p = { class: "lupa-badge-title" };
7832
+ const _hoisted_2$g = ["src"];
7818
7833
  const _hoisted_3$a = { key: 1 };
7819
7834
  const _hoisted_4$7 = {
7820
7835
  key: 0,
7821
7836
  class: "lupa-badge-full-text"
7822
7837
  };
7823
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
7838
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
7824
7839
  __name: "SearchResultGeneratedBadge",
7825
7840
  props: {
7826
7841
  options: {},
@@ -7853,11 +7868,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
7853
7868
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
7854
7869
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
7855
7870
  }, [
7856
- createElementVNode("span", _hoisted_1$q, [
7871
+ createElementVNode("span", _hoisted_1$p, [
7857
7872
  image.value ? (openBlock(), createElementBlock("img", {
7858
7873
  key: 0,
7859
7874
  src: image.value
7860
- }, null, 8, _hoisted_2$h)) : createCommentVNode("", true),
7875
+ }, null, 8, _hoisted_2$g)) : createCommentVNode("", true),
7861
7876
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$a, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
7862
7877
  ]),
7863
7878
  hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$7, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
@@ -7865,8 +7880,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
7865
7880
  };
7866
7881
  }
7867
7882
  });
7868
- const _hoisted_1$p = { class: "lupa-generated-badges" };
7869
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
7883
+ const _hoisted_1$o = { class: "lupa-generated-badges" };
7884
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
7870
7885
  __name: "SearchResultGeneratedBadges",
7871
7886
  props: {
7872
7887
  options: {}
@@ -7892,9 +7907,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
7892
7907
  })).filter((b) => Boolean(b.id));
7893
7908
  });
7894
7909
  return (_ctx, _cache) => {
7895
- return openBlock(), createElementBlock("div", _hoisted_1$p, [
7910
+ return openBlock(), createElementBlock("div", _hoisted_1$o, [
7896
7911
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
7897
- return openBlock(), createBlock(_sfc_main$t, {
7912
+ return openBlock(), createBlock(_sfc_main$s, {
7898
7913
  key: badge.id,
7899
7914
  badge,
7900
7915
  options: _ctx.options
@@ -7904,8 +7919,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
7904
7919
  };
7905
7920
  }
7906
7921
  });
7907
- const _hoisted_1$o = ["innerHTML"];
7908
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
7922
+ const _hoisted_1$n = ["innerHTML"];
7923
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
7909
7924
  __name: "CustomBadge",
7910
7925
  props: {
7911
7926
  badge: {}
@@ -7924,12 +7939,12 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
7924
7939
  return openBlock(), createElementBlock("div", {
7925
7940
  class: normalizeClass(className.value),
7926
7941
  innerHTML: text.value
7927
- }, null, 10, _hoisted_1$o);
7942
+ }, null, 10, _hoisted_1$n);
7928
7943
  };
7929
7944
  }
7930
7945
  });
7931
- const _hoisted_1$n = { class: "lupa-text-badges" };
7932
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
7946
+ const _hoisted_1$m = { class: "lupa-text-badges" };
7947
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
7933
7948
  __name: "TextBadge",
7934
7949
  props: {
7935
7950
  badge: {}
@@ -7944,7 +7959,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
7944
7959
  return badges.value.slice(0, props.badge.maxItems);
7945
7960
  });
7946
7961
  return (_ctx, _cache) => {
7947
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
7962
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
7948
7963
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
7949
7964
  return openBlock(), createElementBlock("div", {
7950
7965
  class: "lupa-badge lupa-text-badge",
@@ -7955,9 +7970,9 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
7955
7970
  };
7956
7971
  }
7957
7972
  });
7958
- const _hoisted_1$m = { class: "lupa-image-badges" };
7959
- const _hoisted_2$g = ["src"];
7960
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
7973
+ const _hoisted_1$l = { class: "lupa-image-badges" };
7974
+ const _hoisted_2$f = ["src"];
7975
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
7961
7976
  __name: "ImageBadge",
7962
7977
  props: {
7963
7978
  badge: {}
@@ -7977,7 +7992,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
7977
7992
  return `${props.badge.rootImageUrl}${src}`;
7978
7993
  };
7979
7994
  return (_ctx, _cache) => {
7980
- return openBlock(), createElementBlock("div", _hoisted_1$m, [
7995
+ return openBlock(), createElementBlock("div", _hoisted_1$l, [
7981
7996
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
7982
7997
  return openBlock(), createElementBlock("div", {
7983
7998
  class: "lupa-badge lupa-image-badge",
@@ -7985,22 +8000,22 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
7985
8000
  }, [
7986
8001
  createElementVNode("img", {
7987
8002
  src: getImageUrl(item)
7988
- }, null, 8, _hoisted_2$g)
8003
+ }, null, 8, _hoisted_2$f)
7989
8004
  ]);
7990
8005
  }), 128))
7991
8006
  ]);
7992
8007
  };
7993
8008
  }
7994
8009
  });
7995
- const _hoisted_1$l = { id: "lupa-search-results-badges" };
8010
+ const _hoisted_1$k = { id: "lupa-search-results-badges" };
7996
8011
  const __default__$1 = {
7997
8012
  components: {
7998
- CustomBadge: _sfc_main$r,
7999
- TextBadge: _sfc_main$q,
8000
- ImageBadge: _sfc_main$p
8013
+ CustomBadge: _sfc_main$q,
8014
+ TextBadge: _sfc_main$p,
8015
+ ImageBadge: _sfc_main$o
8001
8016
  }
8002
8017
  };
8003
- const _sfc_main$o = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$1), {
8018
+ const _sfc_main$n = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$1), {
8004
8019
  __name: "SearchResultsBadgeWrapper",
8005
8020
  props: {
8006
8021
  position: {},
@@ -8046,7 +8061,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
8046
8061
  }
8047
8062
  };
8048
8063
  return (_ctx, _cache) => {
8049
- return openBlock(), createElementBlock("div", _hoisted_1$l, [
8064
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
8050
8065
  createElementVNode("div", {
8051
8066
  id: "lupa-badges",
8052
8067
  class: normalizeClass(anchorPosition.value)
@@ -8057,7 +8072,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
8057
8072
  badge
8058
8073
  }, null, 8, ["badge"]);
8059
8074
  }), 128)),
8060
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$s, {
8075
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$r, {
8061
8076
  key: 0,
8062
8077
  options: _ctx.options
8063
8078
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -8066,7 +8081,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
8066
8081
  };
8067
8082
  }
8068
8083
  }));
8069
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
8084
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
8070
8085
  __name: "SearchResultsProductImage",
8071
8086
  props: {
8072
8087
  item: {},
@@ -8074,7 +8089,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
8074
8089
  },
8075
8090
  setup(__props) {
8076
8091
  return (_ctx, _cache) => {
8077
- return openBlock(), createBlock(_sfc_main$14, {
8092
+ return openBlock(), createBlock(_sfc_main$13, {
8078
8093
  item: _ctx.item,
8079
8094
  options: _ctx.options,
8080
8095
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -8083,14 +8098,14 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
8083
8098
  };
8084
8099
  }
8085
8100
  });
8086
- const _hoisted_1$k = ["innerHTML"];
8087
- const _hoisted_2$f = ["title"];
8101
+ const _hoisted_1$j = ["innerHTML"];
8102
+ const _hoisted_2$e = ["title"];
8088
8103
  const _hoisted_3$9 = {
8089
8104
  key: 0,
8090
8105
  class: "lupa-search-results-product-title-text"
8091
8106
  };
8092
8107
  const _hoisted_4$6 = ["href"];
8093
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
8108
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
8094
8109
  __name: "SearchResultsProductTitle",
8095
8110
  props: {
8096
8111
  item: {},
@@ -8123,7 +8138,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
8123
8138
  class: "lupa-search-results-product-title",
8124
8139
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
8125
8140
  innerHTML: title.value
8126
- }, null, 12, _hoisted_1$k)) : (openBlock(), createElementBlock("div", {
8141
+ }, null, 12, _hoisted_1$j)) : (openBlock(), createElementBlock("div", {
8127
8142
  key: 1,
8128
8143
  class: "lupa-search-results-product-title",
8129
8144
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -8136,12 +8151,12 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
8136
8151
  class: "lupa-search-results-product-title-text lupa-title-link",
8137
8152
  onClick: handleNavigation
8138
8153
  }, toDisplayString(title.value), 9, _hoisted_4$6)) : createCommentVNode("", true)
8139
- ], 12, _hoisted_2$f));
8154
+ ], 12, _hoisted_2$e));
8140
8155
  };
8141
8156
  }
8142
8157
  });
8143
- const _hoisted_1$j = ["innerHTML"];
8144
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
8158
+ const _hoisted_1$i = ["innerHTML"];
8159
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
8145
8160
  __name: "SearchResultsProductDescription",
8146
8161
  props: {
8147
8162
  item: {},
@@ -8165,7 +8180,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
8165
8180
  class: "lupa-search-results-product-description",
8166
8181
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
8167
8182
  innerHTML: description.value
8168
- }, null, 12, _hoisted_1$j)) : (openBlock(), createElementBlock("div", {
8183
+ }, null, 12, _hoisted_1$i)) : (openBlock(), createElementBlock("div", {
8169
8184
  key: 1,
8170
8185
  class: "lupa-search-results-product-description",
8171
8186
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -8173,15 +8188,15 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
8173
8188
  };
8174
8189
  }
8175
8190
  });
8176
- const _hoisted_1$i = { id: "lupa-search-results-rating" };
8177
- const _hoisted_2$e = { class: "lupa-ratings" };
8191
+ const _hoisted_1$h = { id: "lupa-search-results-rating" };
8192
+ const _hoisted_2$d = { class: "lupa-ratings" };
8178
8193
  const _hoisted_3$8 = { class: "lupa-ratings-base" };
8179
8194
  const _hoisted_4$5 = ["innerHTML"];
8180
8195
  const _hoisted_5$3 = { class: "lupa-rating-wrapper" };
8181
8196
  const _hoisted_6$1 = ["innerHTML"];
8182
8197
  const _hoisted_7$1 = ["href"];
8183
8198
  const STAR_COUNT = 5;
8184
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
8199
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
8185
8200
  __name: "SearchResultsProductRating",
8186
8201
  props: {
8187
8202
  item: {},
@@ -8212,8 +8227,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
8212
8227
  return generateLink(props.options.links.ratingDetails, props.item);
8213
8228
  });
8214
8229
  return (_ctx, _cache) => {
8215
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
8216
- createElementVNode("div", _hoisted_2$e, [
8230
+ return openBlock(), createElementBlock("div", _hoisted_1$h, [
8231
+ createElementVNode("div", _hoisted_2$d, [
8217
8232
  createElementVNode("div", _hoisted_3$8, [
8218
8233
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
8219
8234
  return openBlock(), createElementBlock("div", {
@@ -8246,11 +8261,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
8246
8261
  };
8247
8262
  }
8248
8263
  });
8249
- const _hoisted_1$h = {
8264
+ const _hoisted_1$g = {
8250
8265
  class: "lupa-search-results-product-regular-price",
8251
8266
  "data-cy": "lupa-search-results-product-regular-price"
8252
8267
  };
8253
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
8268
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
8254
8269
  __name: "SearchResultsProductRegularPrice",
8255
8270
  props: {
8256
8271
  item: {},
@@ -8268,15 +8283,15 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
8268
8283
  );
8269
8284
  });
8270
8285
  return (_ctx, _cache) => {
8271
- return openBlock(), createElementBlock("div", _hoisted_1$h, toDisplayString(price.value), 1);
8286
+ return openBlock(), createElementBlock("div", _hoisted_1$g, toDisplayString(price.value), 1);
8272
8287
  };
8273
8288
  }
8274
8289
  });
8275
- const _hoisted_1$g = {
8290
+ const _hoisted_1$f = {
8276
8291
  class: "lupa-search-results-product-price",
8277
8292
  "data-cy": "lupa-search-results-product-price"
8278
8293
  };
8279
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
8294
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
8280
8295
  __name: "SearchResultsProductPrice",
8281
8296
  props: {
8282
8297
  item: {},
@@ -8294,16 +8309,16 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
8294
8309
  );
8295
8310
  });
8296
8311
  return (_ctx, _cache) => {
8297
- return openBlock(), createElementBlock("div", _hoisted_1$g, [
8312
+ return openBlock(), createElementBlock("div", _hoisted_1$f, [
8298
8313
  createElementVNode("strong", null, toDisplayString(price.value), 1)
8299
8314
  ]);
8300
8315
  };
8301
8316
  }
8302
8317
  });
8303
- const _hoisted_1$f = { class: "lupa-search-results-add-to-cart-wrapper" };
8304
- const _hoisted_2$d = { class: "lupa-search-results-product-addtocart" };
8318
+ const _hoisted_1$e = { class: "lupa-search-results-add-to-cart-wrapper" };
8319
+ const _hoisted_2$c = { class: "lupa-search-results-product-addtocart" };
8305
8320
  const _hoisted_3$7 = ["onClick", "disabled"];
8306
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
8321
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
8307
8322
  __name: "SearchResultsProductAddToCart",
8308
8323
  props: {
8309
8324
  item: {},
@@ -8330,8 +8345,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
8330
8345
  loading.value = false;
8331
8346
  });
8332
8347
  return (_ctx, _cache) => {
8333
- return openBlock(), createElementBlock("div", _hoisted_1$f, [
8334
- createElementVNode("div", _hoisted_2$d, [
8348
+ return openBlock(), createElementBlock("div", _hoisted_1$e, [
8349
+ createElementVNode("div", _hoisted_2$c, [
8335
8350
  createElementVNode("button", {
8336
8351
  onClick: withModifiers(handleClick, ["stop"]),
8337
8352
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
@@ -8343,12 +8358,12 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
8343
8358
  };
8344
8359
  }
8345
8360
  });
8346
- const _hoisted_1$e = ["innerHTML"];
8347
- const _hoisted_2$c = { key: 0 };
8361
+ const _hoisted_1$d = ["innerHTML"];
8362
+ const _hoisted_2$b = { key: 0 };
8348
8363
  const _hoisted_3$6 = { key: 1 };
8349
8364
  const _hoisted_4$4 = { class: "lupa-search-box-custom-label" };
8350
8365
  const _hoisted_5$2 = { class: "lupa-search-box-custom-text" };
8351
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
8366
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
8352
8367
  __name: "SearchResultsProductCustom",
8353
8368
  props: {
8354
8369
  item: {},
@@ -8386,11 +8401,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
8386
8401
  key: 0,
8387
8402
  class: className.value,
8388
8403
  innerHTML: text.value
8389
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$e)) : (openBlock(), createElementBlock("div", mergeProps({
8404
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$d)) : (openBlock(), createElementBlock("div", mergeProps({
8390
8405
  key: 1,
8391
8406
  class: className.value
8392
8407
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
8393
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$c, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$6, [
8408
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$b, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$6, [
8394
8409
  createElementVNode("div", _hoisted_4$4, toDisplayString(label.value), 1),
8395
8410
  createElementVNode("div", _hoisted_5$2, toDisplayString(text.value), 1)
8396
8411
  ]))
@@ -8398,8 +8413,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
8398
8413
  };
8399
8414
  }
8400
8415
  });
8401
- const _hoisted_1$d = ["innerHTML"];
8402
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
8416
+ const _hoisted_1$c = ["innerHTML"];
8417
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
8403
8418
  __name: "SearchResultsProductCustomHtmlElement",
8404
8419
  props: {
8405
8420
  item: {},
@@ -8423,15 +8438,15 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
8423
8438
  return openBlock(), createElementBlock("div", mergeProps({
8424
8439
  class: className.value,
8425
8440
  innerHTML: text.value
8426
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$d);
8441
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$c);
8427
8442
  };
8428
8443
  }
8429
8444
  });
8430
- const _hoisted_1$c = { id: "lupa-search-results-rating" };
8431
- const _hoisted_2$b = ["innerHTML"];
8445
+ const _hoisted_1$b = { id: "lupa-search-results-rating" };
8446
+ const _hoisted_2$a = ["innerHTML"];
8432
8447
  const _hoisted_3$5 = { class: "lupa-ratings" };
8433
8448
  const _hoisted_4$3 = ["href"];
8434
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
8449
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
8435
8450
  __name: "SearchResultsProductSingleStarRating",
8436
8451
  props: {
8437
8452
  item: {},
@@ -8459,11 +8474,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
8459
8474
  return RATING_STAR_HTML;
8460
8475
  });
8461
8476
  return (_ctx, _cache) => {
8462
- return openBlock(), createElementBlock("div", _hoisted_1$c, [
8477
+ return openBlock(), createElementBlock("div", _hoisted_1$b, [
8463
8478
  createElementVNode("div", {
8464
8479
  innerHTML: star.value,
8465
8480
  class: "lupa-rating lupa-rating-highlighted"
8466
- }, null, 8, _hoisted_2$b),
8481
+ }, null, 8, _hoisted_2$a),
8467
8482
  createElementVNode("div", _hoisted_3$5, toDisplayString(rating.value), 1),
8468
8483
  createElementVNode("a", {
8469
8484
  href: ratingLink.value,
@@ -8475,19 +8490,19 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
8475
8490
  });
8476
8491
  const __default__ = {
8477
8492
  components: {
8478
- SearchResultsProductImage: _sfc_main$n,
8479
- SearchResultsProductTitle: _sfc_main$m,
8480
- SearchResultsProductDescription: _sfc_main$l,
8481
- SearchResultsProductRating: _sfc_main$k,
8482
- SearchResultsProductRegularPrice: _sfc_main$j,
8483
- SearchResultsProductPrice: _sfc_main$i,
8484
- SearchResultsProductAddToCart: _sfc_main$h,
8485
- SearchResultsProductCustom: _sfc_main$g,
8486
- SearchResultsProductCustomHtmlElement: _sfc_main$f,
8487
- SearchResultsProductSingleStarRating: _sfc_main$e
8488
- }
8489
- };
8490
- const _sfc_main$d = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__), {
8493
+ SearchResultsProductImage: _sfc_main$m,
8494
+ SearchResultsProductTitle: _sfc_main$l,
8495
+ SearchResultsProductDescription: _sfc_main$k,
8496
+ SearchResultsProductRating: _sfc_main$j,
8497
+ SearchResultsProductRegularPrice: _sfc_main$i,
8498
+ SearchResultsProductPrice: _sfc_main$h,
8499
+ SearchResultsProductAddToCart: _sfc_main$g,
8500
+ SearchResultsProductCustom: _sfc_main$f,
8501
+ SearchResultsProductCustomHtmlElement: _sfc_main$e,
8502
+ SearchResultsProductSingleStarRating: _sfc_main$d
8503
+ }
8504
+ };
8505
+ const _sfc_main$c = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__), {
8491
8506
  __name: "SearchResultsProductCardElement",
8492
8507
  props: {
8493
8508
  item: {},
@@ -8557,13 +8572,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
8557
8572
  };
8558
8573
  }
8559
8574
  }));
8560
- const _hoisted_1$b = ["href"];
8561
- const _hoisted_2$a = {
8575
+ const _hoisted_1$a = ["href"];
8576
+ const _hoisted_2$9 = {
8562
8577
  key: 0,
8563
8578
  class: "lupa-out-of-stock"
8564
8579
  };
8565
8580
  const _hoisted_3$4 = { class: "lupa-search-result-product-details-section" };
8566
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
8581
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
8567
8582
  __name: "SearchResultsProductCard",
8568
8583
  props: {
8569
8584
  product: {},
@@ -8708,7 +8723,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
8708
8723
  class: normalizeClass(["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]),
8709
8724
  onClick: handleClick
8710
8725
  }, [
8711
- createVNode(_sfc_main$o, { options: badgesOptions.value }, null, 8, ["options"]),
8726
+ createVNode(_sfc_main$n, { options: badgesOptions.value }, null, 8, ["options"]),
8712
8727
  createElementVNode("div", {
8713
8728
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
8714
8729
  }, [
@@ -8718,7 +8733,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
8718
8733
  onClick: handleNavigation
8719
8734
  }, [
8720
8735
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
8721
- return openBlock(), createBlock(_sfc_main$d, {
8736
+ return openBlock(), createBlock(_sfc_main$c, {
8722
8737
  class: "lupa-search-results-product-element",
8723
8738
  item: _ctx.product,
8724
8739
  element,
@@ -8728,16 +8743,16 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
8728
8743
  link: link.value
8729
8744
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
8730
8745
  }), 128)),
8731
- createVNode(_sfc_main$o, {
8746
+ createVNode(_sfc_main$n, {
8732
8747
  options: badgesOptions.value,
8733
8748
  position: "image",
8734
8749
  class: "lupa-image-badges"
8735
8750
  }, null, 8, ["options"]),
8736
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
8737
- ], 8, _hoisted_1$b),
8751
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
8752
+ ], 8, _hoisted_1$a),
8738
8753
  createElementVNode("div", _hoisted_3$4, [
8739
8754
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
8740
- return openBlock(), createBlock(_sfc_main$d, {
8755
+ return openBlock(), createBlock(_sfc_main$c, {
8741
8756
  class: "lupa-search-results-product-element",
8742
8757
  item: _ctx.product,
8743
8758
  element,
@@ -8755,7 +8770,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
8755
8770
  class: normalizeClass("lupa-element-group-" + group)
8756
8771
  }, [
8757
8772
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
8758
- return openBlock(), createBlock(_sfc_main$d, {
8773
+ return openBlock(), createBlock(_sfc_main$c, {
8759
8774
  class: "lupa-search-results-product-element",
8760
8775
  item: _ctx.product,
8761
8776
  element,
@@ -8773,42 +8788,6 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
8773
8788
  };
8774
8789
  }
8775
8790
  });
8776
- const _hoisted_1$a = { id: "lupa-similar-query-text-component" };
8777
- const _hoisted_2$9 = ["data-cy"];
8778
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
8779
- __name: "SimilarQueryText",
8780
- props: {
8781
- similarQuery: {},
8782
- label: {}
8783
- },
8784
- setup(__props) {
8785
- const props = __props;
8786
- const searchResultStore = useSearchResultStore();
8787
- const { searchResult } = storeToRefs(searchResultStore);
8788
- const searchText = computed(() => searchResult.value.searchText);
8789
- const count = computed(() => {
8790
- return props.similarQuery.count;
8791
- });
8792
- const insertValue = (text, query) => {
8793
- return text.includes("{1}") ? addParamsToLabel(text, query).split(" ") : text.split(" ");
8794
- };
8795
- const getStyle = (text) => {
8796
- return !props.similarQuery.query.includes(text) ? "lupa-similar-query-crossed" : "";
8797
- };
8798
- return (_ctx, _cache) => {
8799
- return openBlock(), createElementBlock("span", _hoisted_1$a, [
8800
- (openBlock(true), createElementBlock(Fragment, null, renderList(insertValue(_ctx.label, searchText.value), (text, index) => {
8801
- return openBlock(), createElementBlock("span", {
8802
- key: index,
8803
- class: normalizeClass(getStyle(text)),
8804
- "data-cy": getStyle(text)
8805
- }, toDisplayString(text) + " ", 11, _hoisted_2$9);
8806
- }), 128)),
8807
- createTextVNode("(" + toDisplayString(count.value) + ") ", 1)
8808
- ]);
8809
- };
8810
- }
8811
- });
8812
8791
  const _hoisted_1$9 = {
8813
8792
  id: "lupa-search-results-similar-queries",
8814
8793
  "data-cy": "lupa-search-results-similar-queries"
@@ -8819,10 +8798,9 @@ const _hoisted_3$3 = {
8819
8798
  "data-cy": "lupa-similar-query-label"
8820
8799
  };
8821
8800
  const _hoisted_4$2 = ["onClick"];
8822
- const _hoisted_5$1 = { key: 1 };
8823
- const _hoisted_6 = { key: 1 };
8824
- const _hoisted_7 = { class: "lupa-similar-query-value" };
8825
- const _hoisted_8 = {
8801
+ const _hoisted_5$1 = ["innerHTML"];
8802
+ const _hoisted_6 = { key: 0 };
8803
+ const _hoisted_7 = {
8826
8804
  class: "lupa-products",
8827
8805
  "data-cy": "lupa-products"
8828
8806
  };
@@ -8842,6 +8820,13 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
8842
8820
  const getDocumentKey = (index, product) => {
8843
8821
  return getProductKey(`${index}`, product, props.productCardOptions.idKey);
8844
8822
  };
8823
+ const similarQueryLabel = computed(() => {
8824
+ var _a, _b;
8825
+ return (_b = (_a = props.labels.similarQuery) == null ? void 0 : _a.replace("{1}", "")) != null ? _b : "";
8826
+ });
8827
+ const getSimilarQueryContent = (displayQuery) => {
8828
+ return escapeHtml(displayQuery);
8829
+ };
8845
8830
  const goToResults = ({
8846
8831
  searchText,
8847
8832
  facet
@@ -8854,27 +8839,22 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
8854
8839
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
8855
8840
  return openBlock(), createElementBlock("div", { key: index }, [
8856
8841
  createElementVNode("div", _hoisted_3$3, [
8857
- !similarQuery.aiSuggestions ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.labels.similarQuery.split(" "), (label, index2) => {
8858
- return openBlock(), createElementBlock("span", { key: index2 }, [
8859
- label.includes("{1}") ? (openBlock(), createElementBlock("span", {
8860
- key: 0,
8861
- onClick: ($event) => goToResults({ searchText: similarQuery.query }),
8862
- class: "lupa-similar-query-value lupa-similar-query-link",
8863
- "data-cy": "lupa-similar-query-value"
8864
- }, [
8865
- createVNode(_sfc_main$b, {
8866
- label,
8867
- similarQuery
8868
- }, null, 8, ["label", "similarQuery"])
8869
- ], 8, _hoisted_4$2)) : (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(label) + " ", 1))
8870
- ]);
8871
- }), 128)) : (openBlock(), createElementBlock("span", _hoisted_6, [
8872
- createElementVNode("span", _hoisted_7, toDisplayString(_ctx.labels.aiSuggestions), 1)
8873
- ]))
8842
+ createElementVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
8843
+ createElementVNode("span", {
8844
+ id: "lupa-similar-query-text-component",
8845
+ class: "lupa-similar-query-value lupa-similar-query-link",
8846
+ onClick: ($event) => goToResults({ searchText: similarQuery.query }),
8847
+ "data-cy": "lupa-similar-query-value"
8848
+ }, [
8849
+ createElementVNode("span", {
8850
+ innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
8851
+ }, null, 8, _hoisted_5$1),
8852
+ similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
8853
+ ], 8, _hoisted_4$2)
8874
8854
  ]),
8875
- createElementVNode("div", _hoisted_8, [
8855
+ createElementVNode("div", _hoisted_7, [
8876
8856
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
8877
- return openBlock(), createBlock(_sfc_main$c, {
8857
+ return openBlock(), createBlock(_sfc_main$b, {
8878
8858
  style: normalizeStyle(_ctx.columnSize),
8879
8859
  key: getDocumentKey(index2, product),
8880
8860
  product,
@@ -8971,7 +8951,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
8971
8951
  return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$8, [
8972
8952
  createElementVNode("div", _hoisted_2$7, [
8973
8953
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
8974
- return openBlock(), createBlock(_sfc_main$c, {
8954
+ return openBlock(), createBlock(_sfc_main$b, {
8975
8955
  key: index,
8976
8956
  product: item,
8977
8957
  options: _ctx.panel,
@@ -9155,17 +9135,17 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
9155
9135
  class: "lupa-loader"
9156
9136
  })) : createCommentVNode("", true),
9157
9137
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
9158
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$A, {
9138
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$z, {
9159
9139
  key: 0,
9160
9140
  options: (_a = _ctx.options.filters) != null ? _a : {}
9161
9141
  }, null, 8, ["options"])) : createCommentVNode("", true),
9162
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$u, {
9142
+ showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$t, {
9163
9143
  key: 1,
9164
9144
  class: "lupa-toolbar-mobile",
9165
9145
  options: _ctx.options,
9166
9146
  "pagination-location": "top"
9167
9147
  }, null, 8, ["options"])) : createCommentVNode("", true),
9168
- currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$N, {
9148
+ currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$M, {
9169
9149
  key: 2,
9170
9150
  class: normalizeClass(currentFiltersClass.value),
9171
9151
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -9179,7 +9159,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
9179
9159
  sdkOptions: _ctx.options.options
9180
9160
  }, null, 8, ["options", "sdkOptions"]),
9181
9161
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
9182
- createVNode(_sfc_main$u, {
9162
+ createVNode(_sfc_main$t, {
9183
9163
  class: "lupa-toolbar-top",
9184
9164
  options: _ctx.options,
9185
9165
  "pagination-location": "top"
@@ -9193,7 +9173,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
9193
9173
  options: productCardOptions.value
9194
9174
  });
9195
9175
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
9196
- return openBlock(), createBlock(_sfc_main$c, {
9176
+ return openBlock(), createBlock(_sfc_main$b, {
9197
9177
  style: normalizeStyle(columnSize.value),
9198
9178
  key: getProductKeyAction(index, product),
9199
9179
  product,
@@ -9209,7 +9189,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
9209
9189
  onClick: goToFirstPage
9210
9190
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
9211
9191
  ])) : createCommentVNode("", true),
9212
- createVNode(_sfc_main$u, {
9192
+ createVNode(_sfc_main$t, {
9213
9193
  class: "lupa-toolbar-bottom",
9214
9194
  options: _ctx.options,
9215
9195
  "pagination-location": "bottom"
@@ -9281,7 +9261,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
9281
9261
  onClick: handleNavigationBack
9282
9262
  }, toDisplayString(backTitle.value), 9, _hoisted_3$1)
9283
9263
  ])) : createCommentVNode("", true),
9284
- createVNode(_sfc_main$u, {
9264
+ createVNode(_sfc_main$t, {
9285
9265
  class: "lupa-toolbar-mobile",
9286
9266
  "pagination-location": "top",
9287
9267
  options: _ctx.options
@@ -9492,8 +9472,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
9492
9472
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
9493
9473
  }, [
9494
9474
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
9495
- createVNode(_sfc_main$R, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
9496
- createVNode(_sfc_main$P, {
9475
+ createVNode(_sfc_main$Q, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
9476
+ createVNode(_sfc_main$O, {
9497
9477
  "show-summary": true,
9498
9478
  options: _ctx.options,
9499
9479
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -9503,24 +9483,24 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
9503
9483
  key: 1,
9504
9484
  options: _ctx.options
9505
9485
  }, null, 8, ["options"])) : createCommentVNode("", true),
9506
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$C, {
9486
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$B, {
9507
9487
  key: 2,
9508
9488
  options: _ctx.options.filters
9509
9489
  }, null, 8, ["options"])) : createCommentVNode("", true),
9510
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$B, {
9490
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$A, {
9511
9491
  key: 3,
9512
9492
  breadcrumbs: _ctx.options.breadcrumbs
9513
9493
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
9514
9494
  isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
9515
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$D, {
9495
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$C, {
9516
9496
  key: 0,
9517
9497
  options: (_b = _ctx.options.filters) != null ? _b : {},
9518
9498
  ref_key: "searchResultsFilters",
9519
9499
  ref: searchResultsFilters
9520
9500
  }, null, 8, ["options"])) : createCommentVNode("", true),
9521
9501
  createElementVNode("div", _hoisted_3, [
9522
- createVNode(_sfc_main$R, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
9523
- createVNode(_sfc_main$P, {
9502
+ createVNode(_sfc_main$Q, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
9503
+ createVNode(_sfc_main$O, {
9524
9504
  options: _ctx.options,
9525
9505
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
9526
9506
  }, null, 8, ["options", "is-product-list"]),
@@ -9535,13 +9515,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
9535
9515
  }, 8, ["options", "ssr"])
9536
9516
  ])
9537
9517
  ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
9538
- createVNode(_sfc_main$R, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
9539
- createVNode(_sfc_main$P, {
9518
+ createVNode(_sfc_main$Q, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
9519
+ createVNode(_sfc_main$O, {
9540
9520
  options: _ctx.options,
9541
9521
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
9542
9522
  }, null, 8, ["options", "is-product-list"]),
9543
9523
  createElementVNode("div", _hoisted_4, [
9544
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$D, {
9524
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$C, {
9545
9525
  key: 0,
9546
9526
  options: (_e = _ctx.options.filters) != null ? _e : {},
9547
9527
  ref_key: "searchResultsFilters",
@@ -15169,7 +15149,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
15169
15149
  onClick: withModifiers(innerClick, ["stop"])
15170
15150
  }, [
15171
15151
  createElementVNode("div", _hoisted_2$1, [
15172
- createVNode(_sfc_main$S, {
15152
+ createVNode(_sfc_main$R, {
15173
15153
  options: fullSearchBoxOptions.value,
15174
15154
  "is-search-container": true,
15175
15155
  ref_key: "searchBox",
@@ -15991,7 +15971,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15991
15971
  key: getProductKeyAction(index, product)
15992
15972
  }, {
15993
15973
  default: withCtx(() => [
15994
- createVNode(_sfc_main$c, {
15974
+ createVNode(_sfc_main$b, {
15995
15975
  product,
15996
15976
  options: _ctx.options,
15997
15977
  "click-tracking-settings": clickTrackingSettings.value
@@ -16035,7 +16015,7 @@ export {
16035
16015
  LupaSearch,
16036
16016
  _sfc_main$2 as ProductList,
16037
16017
  _sfc_main as Recommendations,
16038
- _sfc_main$S as SearchBox,
16018
+ _sfc_main$R as SearchBox,
16039
16019
  SearchBoxPanelType,
16040
16020
  _sfc_main$1 as SearchContainer,
16041
16021
  _sfc_main$4 as SearchResults,