@getlupa/client 1.14.13 → 1.14.14
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.
- package/dist/lupaSearch.iife.js +119 -97
- package/dist/lupaSearch.js +119 -97
- package/dist/lupaSearch.mjs +119 -97
- package/dist/lupaSearch.umd.js +119 -97
- package/package.json +2 -2
package/dist/lupaSearch.mjs
CHANGED
|
@@ -8596,7 +8596,7 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
8596
8596
|
const _hoisted_1$1g = { id: "lupa-search-box-input-container" };
|
|
8597
8597
|
const _hoisted_2$U = { class: "lupa-input-clear" };
|
|
8598
8598
|
const _hoisted_3$D = { id: "lupa-search-box-input" };
|
|
8599
|
-
const _hoisted_4$
|
|
8599
|
+
const _hoisted_4$s = ["value"];
|
|
8600
8600
|
const _hoisted_5$j = ["aria-label", "placeholder"];
|
|
8601
8601
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
8602
8602
|
const _hoisted_7$7 = [
|
|
@@ -8703,7 +8703,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
8703
8703
|
"aria-hidden": "true",
|
|
8704
8704
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
8705
8705
|
disabled: ""
|
|
8706
|
-
}, null, 8, _hoisted_4$
|
|
8706
|
+
}, null, 8, _hoisted_4$s),
|
|
8707
8707
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
8708
8708
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
8709
8709
|
}, inputAttributes.value, {
|
|
@@ -8915,7 +8915,7 @@ const _hoisted_3$C = {
|
|
|
8915
8915
|
class: "lupa-suggestion-facet",
|
|
8916
8916
|
"data-cy": "lupa-suggestion-facet"
|
|
8917
8917
|
};
|
|
8918
|
-
const _hoisted_4$
|
|
8918
|
+
const _hoisted_4$r = {
|
|
8919
8919
|
class: "lupa-suggestion-facet-label",
|
|
8920
8920
|
"data-cy": "lupa-suggestion-facet-label"
|
|
8921
8921
|
};
|
|
@@ -8961,7 +8961,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
8961
8961
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
8962
8962
|
}, null, 8, _hoisted_1$1c)) : (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8963
8963
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
|
|
8964
|
-
createBaseVNode("span", _hoisted_4$
|
|
8964
|
+
createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
|
|
8965
8965
|
createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8966
8966
|
])) : createCommentVNode("", true)
|
|
8967
8967
|
]);
|
|
@@ -18477,7 +18477,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
18477
18477
|
const _hoisted_1$16 = ["innerHTML"];
|
|
18478
18478
|
const _hoisted_2$O = { key: 0 };
|
|
18479
18479
|
const _hoisted_3$B = { key: 1 };
|
|
18480
|
-
const _hoisted_4$
|
|
18480
|
+
const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
|
|
18481
18481
|
const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
|
|
18482
18482
|
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
18483
18483
|
__name: "SearchBoxProductCustom",
|
|
@@ -18510,7 +18510,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
18510
18510
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
18511
18511
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
18512
18512
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$O, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$B, [
|
|
18513
|
-
createBaseVNode("div", _hoisted_4$
|
|
18513
|
+
createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
|
|
18514
18514
|
createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
|
|
18515
18515
|
]))
|
|
18516
18516
|
], 16));
|
|
@@ -18923,7 +18923,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
18923
18923
|
const _hoisted_1$12 = { class: "lupa-badge-title" };
|
|
18924
18924
|
const _hoisted_2$M = ["src"];
|
|
18925
18925
|
const _hoisted_3$z = { key: 1 };
|
|
18926
|
-
const _hoisted_4$
|
|
18926
|
+
const _hoisted_4$p = {
|
|
18927
18927
|
key: 0,
|
|
18928
18928
|
class: "lupa-badge-full-text"
|
|
18929
18929
|
};
|
|
@@ -18967,7 +18967,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
18967
18967
|
}, null, 8, _hoisted_2$M)) : createCommentVNode("", true),
|
|
18968
18968
|
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
18969
18969
|
]),
|
|
18970
|
-
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
18970
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
18971
18971
|
], 6);
|
|
18972
18972
|
};
|
|
18973
18973
|
}
|
|
@@ -19767,7 +19767,7 @@ const _hoisted_3$x = {
|
|
|
19767
19767
|
key: 0,
|
|
19768
19768
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
19769
19769
|
};
|
|
19770
|
-
const _hoisted_4$
|
|
19770
|
+
const _hoisted_4$o = {
|
|
19771
19771
|
key: 1,
|
|
19772
19772
|
class: "lupa-panel-title"
|
|
19773
19773
|
};
|
|
@@ -19961,7 +19961,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
19961
19961
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
19962
19962
|
}, [
|
|
19963
19963
|
((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$x, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
|
|
19964
|
-
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
19964
|
+
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$o, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
19965
19965
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
19966
19966
|
key: 2,
|
|
19967
19967
|
panel,
|
|
@@ -20400,7 +20400,7 @@ const _hoisted_3$w = {
|
|
|
20400
20400
|
key: 1,
|
|
20401
20401
|
"data-cy": "did-you-mean-label"
|
|
20402
20402
|
};
|
|
20403
|
-
const _hoisted_4$
|
|
20403
|
+
const _hoisted_4$n = { key: 1 };
|
|
20404
20404
|
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
20405
20405
|
__name: "SearchResultsDidYouMean",
|
|
20406
20406
|
props: {
|
|
@@ -20451,7 +20451,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
20451
20451
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
20452
20452
|
"data-cy": "did-you-mean-value",
|
|
20453
20453
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
20454
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
20454
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
|
|
20455
20455
|
]);
|
|
20456
20456
|
}), 128))
|
|
20457
20457
|
])) : createCommentVNode("", true)
|
|
@@ -20501,7 +20501,7 @@ const _hoisted_3$v = {
|
|
|
20501
20501
|
key: 1,
|
|
20502
20502
|
class: "lupa-results-total-count"
|
|
20503
20503
|
};
|
|
20504
|
-
const _hoisted_4$
|
|
20504
|
+
const _hoisted_4$m = { class: "lupa-results-total-count-number" };
|
|
20505
20505
|
const _hoisted_5$f = ["innerHTML"];
|
|
20506
20506
|
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
20507
20507
|
__name: "SearchResultsTitle",
|
|
@@ -20547,7 +20547,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
20547
20547
|
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$E, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
20548
20548
|
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$v, [
|
|
20549
20549
|
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
20550
|
-
createBaseVNode("span", _hoisted_4$
|
|
20550
|
+
createBaseVNode("span", _hoisted_4$m, toDisplayString(unref(totalItems)), 1),
|
|
20551
20551
|
createTextVNode(")")
|
|
20552
20552
|
])) : createCommentVNode("", true)
|
|
20553
20553
|
])) : createCommentVNode("", true),
|
|
@@ -20605,7 +20605,7 @@ const _hoisted_3$t = {
|
|
|
20605
20605
|
key: 0,
|
|
20606
20606
|
class: "filter-values"
|
|
20607
20607
|
};
|
|
20608
|
-
const _hoisted_4$
|
|
20608
|
+
const _hoisted_4$l = { class: "lupa-current-filter-list" };
|
|
20609
20609
|
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
20610
20610
|
__name: "CurrentFilters",
|
|
20611
20611
|
props: {
|
|
@@ -20689,7 +20689,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
20689
20689
|
}, null, 2)) : createCommentVNode("", true)
|
|
20690
20690
|
]),
|
|
20691
20691
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
20692
|
-
createBaseVNode("div", _hoisted_4$
|
|
20692
|
+
createBaseVNode("div", _hoisted_4$l, [
|
|
20693
20693
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
|
|
20694
20694
|
return openBlock(), createBlock(_sfc_main$V, {
|
|
20695
20695
|
key: filter2.key + "_" + filter2.value,
|
|
@@ -20757,7 +20757,7 @@ const _hoisted_1$N = {
|
|
|
20757
20757
|
};
|
|
20758
20758
|
const _hoisted_2$B = { class: "lupa-category-back" };
|
|
20759
20759
|
const _hoisted_3$s = ["href"];
|
|
20760
|
-
const _hoisted_4$
|
|
20760
|
+
const _hoisted_4$k = ["href"];
|
|
20761
20761
|
const _hoisted_5$e = { class: "lupa-child-category-list" };
|
|
20762
20762
|
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
20763
20763
|
__name: "CategoryFilter",
|
|
@@ -20864,7 +20864,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
20864
20864
|
href: parentUrlLink.value,
|
|
20865
20865
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
20866
20866
|
onClick: handleNavigationParent
|
|
20867
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
20867
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
|
|
20868
20868
|
], 2),
|
|
20869
20869
|
createBaseVNode("div", _hoisted_5$e, [
|
|
20870
20870
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
@@ -20885,7 +20885,7 @@ const _hoisted_1$M = {
|
|
|
20885
20885
|
};
|
|
20886
20886
|
const _hoisted_2$A = ["placeholder"];
|
|
20887
20887
|
const _hoisted_3$r = { class: "lupa-terms-list" };
|
|
20888
|
-
const _hoisted_4$
|
|
20888
|
+
const _hoisted_4$j = ["onClick"];
|
|
20889
20889
|
const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
|
|
20890
20890
|
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
20891
20891
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
@@ -20993,7 +20993,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
20993
20993
|
createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
|
|
20994
20994
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
20995
20995
|
])
|
|
20996
|
-
], 10, _hoisted_4$
|
|
20996
|
+
], 10, _hoisted_4$j);
|
|
20997
20997
|
}), 128))
|
|
20998
20998
|
]),
|
|
20999
20999
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -21993,7 +21993,7 @@ const _hoisted_3$q = {
|
|
|
21993
21993
|
key: 1,
|
|
21994
21994
|
class: "lupa-stats-facet-summary-input"
|
|
21995
21995
|
};
|
|
21996
|
-
const _hoisted_4$
|
|
21996
|
+
const _hoisted_4$i = {
|
|
21997
21997
|
key: 0,
|
|
21998
21998
|
class: "lupa-stats-range-label"
|
|
21999
21999
|
};
|
|
@@ -22188,7 +22188,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
22188
22188
|
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
22189
22189
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
|
|
22190
22190
|
createBaseVNode("div", null, [
|
|
22191
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
22191
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
22192
22192
|
createBaseVNode("div", _hoisted_5$c, [
|
|
22193
22193
|
withDirectives(createBaseVNode("input", {
|
|
22194
22194
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
@@ -22255,7 +22255,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
22255
22255
|
const _hoisted_1$K = { class: "lupa-term-checkbox-wrapper" };
|
|
22256
22256
|
const _hoisted_2$y = { class: "lupa-term-checkbox-label" };
|
|
22257
22257
|
const _hoisted_3$p = { class: "lupa-term-label" };
|
|
22258
|
-
const _hoisted_4$
|
|
22258
|
+
const _hoisted_4$h = {
|
|
22259
22259
|
key: 0,
|
|
22260
22260
|
class: "lupa-term-count"
|
|
22261
22261
|
};
|
|
@@ -22316,7 +22316,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
22316
22316
|
]),
|
|
22317
22317
|
createBaseVNode("div", _hoisted_2$y, [
|
|
22318
22318
|
createBaseVNode("span", _hoisted_3$p, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
22319
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
22319
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
22320
22320
|
])
|
|
22321
22321
|
]),
|
|
22322
22322
|
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
|
|
@@ -22828,7 +22828,7 @@ const _hoisted_1$D = {
|
|
|
22828
22828
|
};
|
|
22829
22829
|
const _hoisted_2$t = ["onClick"];
|
|
22830
22830
|
const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
|
|
22831
|
-
const _hoisted_4$
|
|
22831
|
+
const _hoisted_4$g = { class: "lupa-sidebar-top" };
|
|
22832
22832
|
const _hoisted_5$a = { class: "lupa-sidebar-title" };
|
|
22833
22833
|
const _hoisted_6$6 = {
|
|
22834
22834
|
key: 0,
|
|
@@ -22872,7 +22872,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
22872
22872
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
22873
22873
|
}, null, 8, _hoisted_2$t),
|
|
22874
22874
|
createBaseVNode("div", _hoisted_3$n, [
|
|
22875
|
-
createBaseVNode("div", _hoisted_4$
|
|
22875
|
+
createBaseVNode("div", _hoisted_4$g, [
|
|
22876
22876
|
createBaseVNode("div", _hoisted_5$a, [
|
|
22877
22877
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
22878
22878
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
@@ -22900,7 +22900,7 @@ const _hoisted_3$m = {
|
|
|
22900
22900
|
key: 1,
|
|
22901
22901
|
class: "lupa-search-results-breadcrumb-text"
|
|
22902
22902
|
};
|
|
22903
|
-
const _hoisted_4$
|
|
22903
|
+
const _hoisted_4$f = { key: 2 };
|
|
22904
22904
|
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
22905
22905
|
__name: "SearchResultsBreadcrumbs",
|
|
22906
22906
|
props: {
|
|
@@ -22941,7 +22941,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
22941
22941
|
return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
22942
22942
|
}
|
|
22943
22943
|
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
22944
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
22944
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
|
|
22945
22945
|
]);
|
|
22946
22946
|
}), 128))
|
|
22947
22947
|
]);
|
|
@@ -23047,7 +23047,7 @@ const _hoisted_2$r = {
|
|
|
23047
23047
|
class: "lupa-page-number-separator"
|
|
23048
23048
|
};
|
|
23049
23049
|
const _hoisted_3$l = ["onClick"];
|
|
23050
|
-
const _hoisted_4$
|
|
23050
|
+
const _hoisted_4$e = {
|
|
23051
23051
|
key: 0,
|
|
23052
23052
|
class: "lupa-page-number-separator"
|
|
23053
23053
|
};
|
|
@@ -23153,7 +23153,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
23153
23153
|
}, toDisplayString(page), 11, _hoisted_3$l);
|
|
23154
23154
|
}), 128)),
|
|
23155
23155
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
23156
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23156
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
|
|
23157
23157
|
createBaseVNode("div", {
|
|
23158
23158
|
class: "lupa-page-number lupa-page-number-last",
|
|
23159
23159
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -23178,7 +23178,7 @@ const _hoisted_1$x = {
|
|
|
23178
23178
|
};
|
|
23179
23179
|
const _hoisted_2$q = { id: "lupa-select" };
|
|
23180
23180
|
const _hoisted_3$k = { class: "lupa-select-label" };
|
|
23181
|
-
const _hoisted_4$
|
|
23181
|
+
const _hoisted_4$d = ["aria-label"];
|
|
23182
23182
|
const _hoisted_5$9 = ["value"];
|
|
23183
23183
|
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
23184
23184
|
__name: "SearchResultsPageSize",
|
|
@@ -23225,7 +23225,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
23225
23225
|
value: option
|
|
23226
23226
|
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$9);
|
|
23227
23227
|
}), 128))
|
|
23228
|
-
], 40, _hoisted_4$
|
|
23228
|
+
], 40, _hoisted_4$d)
|
|
23229
23229
|
])
|
|
23230
23230
|
]);
|
|
23231
23231
|
};
|
|
@@ -23237,7 +23237,7 @@ const _hoisted_1$w = {
|
|
|
23237
23237
|
};
|
|
23238
23238
|
const _hoisted_2$p = { id: "lupa-select" };
|
|
23239
23239
|
const _hoisted_3$j = { class: "lupa-select-label" };
|
|
23240
|
-
const _hoisted_4$
|
|
23240
|
+
const _hoisted_4$c = ["aria-label"];
|
|
23241
23241
|
const _hoisted_5$8 = ["value"];
|
|
23242
23242
|
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
23243
23243
|
__name: "SearchResultsSort",
|
|
@@ -23305,7 +23305,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
23305
23305
|
value: option.key
|
|
23306
23306
|
}, toDisplayString(option.label), 9, _hoisted_5$8);
|
|
23307
23307
|
}), 128))
|
|
23308
|
-
], 40, _hoisted_4$
|
|
23308
|
+
], 40, _hoisted_4$c), [
|
|
23309
23309
|
[vModelSelect, selectedKey.value]
|
|
23310
23310
|
])
|
|
23311
23311
|
])
|
|
@@ -23319,7 +23319,7 @@ const _hoisted_2$o = {
|
|
|
23319
23319
|
class: "lupa-toolbar-right-title"
|
|
23320
23320
|
};
|
|
23321
23321
|
const _hoisted_3$i = { key: 2 };
|
|
23322
|
-
const _hoisted_4$
|
|
23322
|
+
const _hoisted_4$b = { key: 4 };
|
|
23323
23323
|
const _hoisted_5$7 = { key: 6 };
|
|
23324
23324
|
const _hoisted_6$5 = { class: "lupa-toolbar-right" };
|
|
23325
23325
|
const _hoisted_7$3 = {
|
|
@@ -23443,7 +23443,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
23443
23443
|
label: searchSummaryLabel.value,
|
|
23444
23444
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
23445
23445
|
onClear: handleClearAll
|
|
23446
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23446
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
|
|
23447
23447
|
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$D, {
|
|
23448
23448
|
key: 5,
|
|
23449
23449
|
options: paginationOptions.value.pageSelect,
|
|
@@ -23492,7 +23492,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
23492
23492
|
const _hoisted_1$u = ["title", "innerHTML"];
|
|
23493
23493
|
const _hoisted_2$n = ["title"];
|
|
23494
23494
|
const _hoisted_3$h = ["href", "innerHTML"];
|
|
23495
|
-
const _hoisted_4$
|
|
23495
|
+
const _hoisted_4$a = ["title"];
|
|
23496
23496
|
const _hoisted_5$6 = {
|
|
23497
23497
|
key: 0,
|
|
23498
23498
|
class: "lupa-search-results-product-title-text"
|
|
@@ -23560,7 +23560,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
23560
23560
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
23561
23561
|
onClick: handleNavigation
|
|
23562
23562
|
}, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
|
|
23563
|
-
], 12, _hoisted_4$
|
|
23563
|
+
], 12, _hoisted_4$a));
|
|
23564
23564
|
};
|
|
23565
23565
|
}
|
|
23566
23566
|
});
|
|
@@ -23603,7 +23603,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
23603
23603
|
const _hoisted_1$s = { id: "lupa-search-results-rating" };
|
|
23604
23604
|
const _hoisted_2$m = { class: "lupa-ratings" };
|
|
23605
23605
|
const _hoisted_3$g = { class: "lupa-ratings-base" };
|
|
23606
|
-
const _hoisted_4$
|
|
23606
|
+
const _hoisted_4$9 = ["innerHTML"];
|
|
23607
23607
|
const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
|
|
23608
23608
|
const _hoisted_6$3 = ["innerHTML"];
|
|
23609
23609
|
const _hoisted_7$2 = ["href"];
|
|
@@ -23653,7 +23653,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
23653
23653
|
key: index,
|
|
23654
23654
|
innerHTML: star,
|
|
23655
23655
|
class: "lupa-rating lupa-rating-not-highlighted"
|
|
23656
|
-
}, null, 8, _hoisted_4$
|
|
23656
|
+
}, null, 8, _hoisted_4$9);
|
|
23657
23657
|
}), 128))
|
|
23658
23658
|
]),
|
|
23659
23659
|
createBaseVNode("div", _hoisted_5$5, [
|
|
@@ -23793,7 +23793,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
23793
23793
|
const _hoisted_1$p = ["innerHTML"];
|
|
23794
23794
|
const _hoisted_2$k = { key: 0 };
|
|
23795
23795
|
const _hoisted_3$e = { key: 1 };
|
|
23796
|
-
const _hoisted_4$
|
|
23796
|
+
const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
|
|
23797
23797
|
const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
|
|
23798
23798
|
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
23799
23799
|
__name: "SearchResultsProductCustom",
|
|
@@ -23838,7 +23838,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23838
23838
|
class: className.value
|
|
23839
23839
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
23840
23840
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$k, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
|
|
23841
|
-
createBaseVNode("div", _hoisted_4$
|
|
23841
|
+
createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
|
|
23842
23842
|
createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
|
|
23843
23843
|
]))
|
|
23844
23844
|
], 16));
|
|
@@ -23884,7 +23884,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
23884
23884
|
const _hoisted_1$n = { id: "lupa-search-results-rating" };
|
|
23885
23885
|
const _hoisted_2$j = ["innerHTML"];
|
|
23886
23886
|
const _hoisted_3$d = { class: "lupa-ratings" };
|
|
23887
|
-
const _hoisted_4$
|
|
23887
|
+
const _hoisted_4$7 = ["href"];
|
|
23888
23888
|
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
23889
23889
|
__name: "SearchResultsProductSingleStarRating",
|
|
23890
23890
|
props: {
|
|
@@ -23922,7 +23922,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
23922
23922
|
createBaseVNode("a", {
|
|
23923
23923
|
href: ratingLink.value,
|
|
23924
23924
|
class: "lupa-total-ratings"
|
|
23925
|
-
}, toDisplayString(totalRatings.value), 9, _hoisted_4$
|
|
23925
|
+
}, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
|
|
23926
23926
|
]);
|
|
23927
23927
|
};
|
|
23928
23928
|
}
|
|
@@ -24250,7 +24250,7 @@ const _hoisted_3$b = {
|
|
|
24250
24250
|
class: "lupa-similar-query-label",
|
|
24251
24251
|
"data-cy": "lupa-similar-query-label"
|
|
24252
24252
|
};
|
|
24253
|
-
const _hoisted_4$
|
|
24253
|
+
const _hoisted_4$6 = ["onClick"];
|
|
24254
24254
|
const _hoisted_5$3 = ["innerHTML"];
|
|
24255
24255
|
const _hoisted_6$2 = { key: 0 };
|
|
24256
24256
|
const _hoisted_7$1 = {
|
|
@@ -24303,7 +24303,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
24303
24303
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
24304
24304
|
}, null, 8, _hoisted_5$3),
|
|
24305
24305
|
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
24306
|
-
], 8, _hoisted_4$
|
|
24306
|
+
], 8, _hoisted_4$6)
|
|
24307
24307
|
]),
|
|
24308
24308
|
createBaseVNode("div", _hoisted_7$1, [
|
|
24309
24309
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
@@ -24543,7 +24543,7 @@ const extractRelatedSource = (source, searchResults2) => {
|
|
|
24543
24543
|
const _hoisted_1$g = { class: "lupa-related-query-item" };
|
|
24544
24544
|
const _hoisted_2$d = { class: "lupa-related-query-image" };
|
|
24545
24545
|
const _hoisted_3$9 = { class: "lupa-related-query-label" };
|
|
24546
|
-
const _hoisted_4$
|
|
24546
|
+
const _hoisted_4$5 = { class: "lupa-related-query-title" };
|
|
24547
24547
|
const _hoisted_5$2 = {
|
|
24548
24548
|
key: 0,
|
|
24549
24549
|
class: "lupa-related-query-count"
|
|
@@ -24629,7 +24629,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
24629
24629
|
}, null, 8, ["item", "options"])) : createCommentVNode("", true)
|
|
24630
24630
|
]),
|
|
24631
24631
|
createBaseVNode("div", _hoisted_3$9, [
|
|
24632
|
-
createBaseVNode("span", _hoisted_4$
|
|
24632
|
+
createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
|
|
24633
24633
|
((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
24634
24634
|
])
|
|
24635
24635
|
]);
|
|
@@ -24699,7 +24699,7 @@ const _hoisted_3$7 = {
|
|
|
24699
24699
|
class: "lupa-empty-results",
|
|
24700
24700
|
"data-cy": "lupa-no-results-in-page"
|
|
24701
24701
|
};
|
|
24702
|
-
const _hoisted_4$
|
|
24702
|
+
const _hoisted_4$4 = {
|
|
24703
24703
|
key: 3,
|
|
24704
24704
|
class: "lupa-empty-results",
|
|
24705
24705
|
"data-cy": "lupa-no-results"
|
|
@@ -24894,7 +24894,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
24894
24894
|
location: "bottom",
|
|
24895
24895
|
sdkOptions: _ctx.options.options
|
|
24896
24896
|
}, null, 8, ["options", "sdkOptions"])
|
|
24897
|
-
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
24897
|
+
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
24898
24898
|
createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
|
|
24899
24899
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
24900
24900
|
])) : createCommentVNode("", true),
|
|
@@ -24923,7 +24923,7 @@ const _hoisted_2$a = {
|
|
|
24923
24923
|
class: "lupa-category-back"
|
|
24924
24924
|
};
|
|
24925
24925
|
const _hoisted_3$6 = ["href"];
|
|
24926
|
-
const _hoisted_4$
|
|
24926
|
+
const _hoisted_4$3 = { class: "lupa-child-category-list" };
|
|
24927
24927
|
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
24928
24928
|
__name: "CategoryTopFilters",
|
|
24929
24929
|
props: {
|
|
@@ -24973,7 +24973,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
24973
24973
|
onClick: handleNavigationBack
|
|
24974
24974
|
}, toDisplayString(backTitle.value), 9, _hoisted_3$6)
|
|
24975
24975
|
])) : createCommentVNode("", true),
|
|
24976
|
-
createBaseVNode("div", _hoisted_4$
|
|
24976
|
+
createBaseVNode("div", _hoisted_4$3, [
|
|
24977
24977
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
24978
24978
|
return openBlock(), createBlock(_sfc_main$T, {
|
|
24979
24979
|
key: getCategoryKey(child),
|
|
@@ -25002,7 +25002,7 @@ const _hoisted_2$9 = {
|
|
|
25002
25002
|
class: "top-layout-wrapper"
|
|
25003
25003
|
};
|
|
25004
25004
|
const _hoisted_3$5 = { class: "search-content" };
|
|
25005
|
-
const _hoisted_4$
|
|
25005
|
+
const _hoisted_4$2 = { id: "lupa-search-results" };
|
|
25006
25006
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
25007
25007
|
__name: "SearchResults",
|
|
25008
25008
|
props: {
|
|
@@ -25265,7 +25265,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
25265
25265
|
options: _ctx.options,
|
|
25266
25266
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
25267
25267
|
}, null, 8, ["options", "is-product-list"]),
|
|
25268
|
-
createBaseVNode("div", _hoisted_4$
|
|
25268
|
+
createBaseVNode("div", _hoisted_4$2, [
|
|
25269
25269
|
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
|
|
25270
25270
|
key: 0,
|
|
25271
25271
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
@@ -31674,19 +31674,15 @@ var Slide = defineComponent({
|
|
|
31674
31674
|
}
|
|
31675
31675
|
});
|
|
31676
31676
|
const _hoisted_1$9 = {
|
|
31677
|
-
key: 0,
|
|
31678
|
-
class: "lupa-search-product-recommendations-wrapper"
|
|
31679
|
-
};
|
|
31680
|
-
const _hoisted_2$6 = {
|
|
31681
31677
|
key: 0,
|
|
31682
31678
|
class: "lupa-recommendation-section-title"
|
|
31683
31679
|
};
|
|
31684
|
-
const
|
|
31680
|
+
const _hoisted_2$6 = {
|
|
31685
31681
|
key: 1,
|
|
31686
31682
|
class: "lupa-recommended-products",
|
|
31687
31683
|
"data-cy": "lupa-recommended-products"
|
|
31688
31684
|
};
|
|
31689
|
-
const
|
|
31685
|
+
const _hoisted_3$4 = {
|
|
31690
31686
|
key: 1,
|
|
31691
31687
|
class: "lupa-products",
|
|
31692
31688
|
"data-cy": "lupa-products"
|
|
@@ -31707,6 +31703,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
31707
31703
|
"recommendations_lupasearch"
|
|
31708
31704
|
);
|
|
31709
31705
|
const loading = ref(true);
|
|
31706
|
+
const rootElement = ref(null);
|
|
31707
|
+
let observer = null;
|
|
31710
31708
|
const carouselOptions = computed(() => {
|
|
31711
31709
|
var _a;
|
|
31712
31710
|
return (_a = props.options.carousel) != null ? _a : {};
|
|
@@ -31730,15 +31728,33 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
31730
31728
|
const hasRecommendations = computed(() => {
|
|
31731
31729
|
return recommendations2.value.length > 0;
|
|
31732
31730
|
});
|
|
31731
|
+
const initIntersectionObserver = () => {
|
|
31732
|
+
if (rootElement.value) {
|
|
31733
|
+
observer = new IntersectionObserver((entries) => {
|
|
31734
|
+
if (entries[0].isIntersecting) {
|
|
31735
|
+
loadRecommendations();
|
|
31736
|
+
observer.unobserve(entries[0].target);
|
|
31737
|
+
}
|
|
31738
|
+
});
|
|
31739
|
+
observer.observe(rootElement.value);
|
|
31740
|
+
}
|
|
31741
|
+
};
|
|
31733
31742
|
onMounted(() => {
|
|
31734
|
-
loadRecommendations();
|
|
31735
|
-
window.addEventListener("resize", handleResize);
|
|
31736
31743
|
handleResize();
|
|
31737
31744
|
optionsStore.setSearchResultOptions({
|
|
31738
31745
|
options: props.options
|
|
31739
31746
|
});
|
|
31747
|
+
if (props.options.lazyLoad) {
|
|
31748
|
+
initIntersectionObserver();
|
|
31749
|
+
} else {
|
|
31750
|
+
loadRecommendations();
|
|
31751
|
+
}
|
|
31752
|
+
window.addEventListener("resize", handleResize);
|
|
31740
31753
|
});
|
|
31741
31754
|
onBeforeUnmount(() => {
|
|
31755
|
+
if (observer) {
|
|
31756
|
+
observer.disconnect();
|
|
31757
|
+
}
|
|
31742
31758
|
window.removeEventListener("resize", handleResize);
|
|
31743
31759
|
});
|
|
31744
31760
|
const getProductKeyAction = (index, product) => {
|
|
@@ -31807,43 +31823,49 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
31807
31823
|
});
|
|
31808
31824
|
__expose({ fetch: fetch2 });
|
|
31809
31825
|
return (_ctx, _cache) => {
|
|
31810
|
-
return
|
|
31811
|
-
|
|
31812
|
-
|
|
31813
|
-
|
|
31814
|
-
|
|
31815
|
-
|
|
31816
|
-
|
|
31817
|
-
|
|
31826
|
+
return openBlock(), createElementBlock("div", {
|
|
31827
|
+
class: "lupa-search-product-recommendations-wrapper",
|
|
31828
|
+
ref_key: "rootElement",
|
|
31829
|
+
ref: rootElement
|
|
31830
|
+
}, [
|
|
31831
|
+
hasRecommendations.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
31832
|
+
title.value ? (openBlock(), createElementBlock("h2", _hoisted_1$9, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
31833
|
+
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
|
|
31834
|
+
layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": true }), {
|
|
31835
|
+
addons: withCtx(() => [
|
|
31836
|
+
createVNode(unref(Navigation))
|
|
31837
|
+
]),
|
|
31838
|
+
default: withCtx(() => [
|
|
31839
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
31840
|
+
return openBlock(), createBlock(unref(Slide), {
|
|
31841
|
+
key: getProductKeyAction(index, product)
|
|
31842
|
+
}, {
|
|
31843
|
+
default: withCtx(() => [
|
|
31844
|
+
createVNode(_sfc_main$o, {
|
|
31845
|
+
product,
|
|
31846
|
+
options: _ctx.options,
|
|
31847
|
+
"click-tracking-settings": clickTrackingSettings.value
|
|
31848
|
+
}, null, 8, ["product", "options", "click-tracking-settings"])
|
|
31849
|
+
]),
|
|
31850
|
+
_: 2
|
|
31851
|
+
}, 1024);
|
|
31852
|
+
}), 128))
|
|
31853
|
+
]),
|
|
31854
|
+
_: 1
|
|
31855
|
+
}, 16)) : (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
31818
31856
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
31819
|
-
return openBlock(), createBlock(
|
|
31820
|
-
|
|
31821
|
-
|
|
31822
|
-
|
|
31823
|
-
|
|
31824
|
-
|
|
31825
|
-
|
|
31826
|
-
"click-tracking-settings": clickTrackingSettings.value
|
|
31827
|
-
}, null, 8, ["product", "options", "click-tracking-settings"])
|
|
31828
|
-
]),
|
|
31829
|
-
_: 2
|
|
31830
|
-
}, 1024);
|
|
31857
|
+
return openBlock(), createBlock(_sfc_main$o, {
|
|
31858
|
+
style: normalizeStyle(columnSize.value),
|
|
31859
|
+
key: getProductKeyAction(index, product),
|
|
31860
|
+
product,
|
|
31861
|
+
options: _ctx.options,
|
|
31862
|
+
"lupa-click-tracking-type": `recommendedItemClick`
|
|
31863
|
+
}, null, 8, ["style", "product", "options"]);
|
|
31831
31864
|
}), 128))
|
|
31832
|
-
])
|
|
31833
|
-
|
|
31834
|
-
|
|
31835
|
-
|
|
31836
|
-
return openBlock(), createBlock(_sfc_main$o, {
|
|
31837
|
-
style: normalizeStyle(columnSize.value),
|
|
31838
|
-
key: getProductKeyAction(index, product),
|
|
31839
|
-
product,
|
|
31840
|
-
options: _ctx.options,
|
|
31841
|
-
"lupa-click-tracking-type": `recommendedItemClick`
|
|
31842
|
-
}, null, 8, ["style", "product", "options"]);
|
|
31843
|
-
}), 128))
|
|
31844
|
-
]))
|
|
31845
|
-
])) : createCommentVNode("", true)
|
|
31846
|
-
])) : createCommentVNode("", true);
|
|
31865
|
+
]))
|
|
31866
|
+
])) : createCommentVNode("", true)
|
|
31867
|
+
], 64)) : createCommentVNode("", true)
|
|
31868
|
+
], 512);
|
|
31847
31869
|
};
|
|
31848
31870
|
}
|
|
31849
31871
|
});
|