@getlupa/client 1.4.3 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lupaSearch.iife.js +491 -434
- package/dist/lupaSearch.js +491 -434
- package/dist/lupaSearch.mjs +491 -434
- package/dist/lupaSearch.umd.js +491 -434
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/lupaSearch.iife.js
CHANGED
|
@@ -6666,7 +6666,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6666
6666
|
noResultsSuggestion: "No results found for this query: {1}",
|
|
6667
6667
|
didYouMean: "Did you mean to search: {1}",
|
|
6668
6668
|
similarQuery: "Search results for phrase {1}",
|
|
6669
|
-
similarQueries: "Similar queries:"
|
|
6669
|
+
similarQueries: "Similar queries:",
|
|
6670
|
+
similarResultsLabel: "Related to your query:"
|
|
6670
6671
|
},
|
|
6671
6672
|
grid: {
|
|
6672
6673
|
columns: {
|
|
@@ -7676,16 +7677,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7676
7677
|
resetHighlightIndex
|
|
7677
7678
|
};
|
|
7678
7679
|
});
|
|
7679
|
-
const _hoisted_1$
|
|
7680
|
-
const _hoisted_2$
|
|
7681
|
-
const _hoisted_3$
|
|
7680
|
+
const _hoisted_1$1c = { id: "lupa-search-box-input-container" };
|
|
7681
|
+
const _hoisted_2$P = { class: "lupa-input-clear" };
|
|
7682
|
+
const _hoisted_3$B = { id: "lupa-search-box-input" };
|
|
7682
7683
|
const _hoisted_4$q = ["value"];
|
|
7683
7684
|
const _hoisted_5$f = ["placeholder"];
|
|
7684
|
-
const _hoisted_6$
|
|
7685
|
+
const _hoisted_6$9 = {
|
|
7685
7686
|
key: 0,
|
|
7686
7687
|
class: "lupa-close-label"
|
|
7687
7688
|
};
|
|
7688
|
-
const _sfc_main$
|
|
7689
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
7689
7690
|
__name: "SearchBoxInput",
|
|
7690
7691
|
props: {
|
|
7691
7692
|
options: {},
|
|
@@ -7762,14 +7763,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7762
7763
|
};
|
|
7763
7764
|
__expose({ focus });
|
|
7764
7765
|
return (_ctx, _cache) => {
|
|
7765
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7766
|
-
createBaseVNode("div", _hoisted_2$
|
|
7766
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
7767
|
+
createBaseVNode("div", _hoisted_2$P, [
|
|
7767
7768
|
createBaseVNode("div", {
|
|
7768
7769
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
7769
7770
|
onClick: clear2
|
|
7770
7771
|
}, null, 2)
|
|
7771
7772
|
]),
|
|
7772
|
-
createBaseVNode("div", _hoisted_3$
|
|
7773
|
+
createBaseVNode("div", _hoisted_3$B, [
|
|
7773
7774
|
createBaseVNode("input", {
|
|
7774
7775
|
class: "lupa-hint",
|
|
7775
7776
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
@@ -7796,13 +7797,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7796
7797
|
class: "lupa-close-search-container",
|
|
7797
7798
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
7798
7799
|
}, [
|
|
7799
|
-
labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
7800
|
+
labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$9, toDisplayString(labels.value.close), 1)) : createCommentVNode("", true)
|
|
7800
7801
|
])) : createCommentVNode("", true)
|
|
7801
7802
|
]);
|
|
7802
7803
|
};
|
|
7803
7804
|
}
|
|
7804
7805
|
});
|
|
7805
|
-
const _sfc_main$
|
|
7806
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
7806
7807
|
__name: "SearchBoxMoreResults",
|
|
7807
7808
|
props: {
|
|
7808
7809
|
labels: {},
|
|
@@ -7834,9 +7835,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7834
7835
|
};
|
|
7835
7836
|
}
|
|
7836
7837
|
});
|
|
7837
|
-
const _hoisted_1$
|
|
7838
|
-
const _hoisted_2$
|
|
7839
|
-
const _sfc_main$
|
|
7838
|
+
const _hoisted_1$1b = { class: "lupa-search-box-history-item" };
|
|
7839
|
+
const _hoisted_2$O = { class: "lupa-search-box-history-item-content" };
|
|
7840
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
7840
7841
|
__name: "SearchBoxHistoryItem",
|
|
7841
7842
|
props: {
|
|
7842
7843
|
item: {},
|
|
@@ -7852,8 +7853,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7852
7853
|
emit2("click", { query: props.item });
|
|
7853
7854
|
};
|
|
7854
7855
|
return (_ctx, _cache) => {
|
|
7855
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7856
|
-
createBaseVNode("div", _hoisted_2$
|
|
7856
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1b, [
|
|
7857
|
+
createBaseVNode("div", _hoisted_2$O, [
|
|
7857
7858
|
createBaseVNode("div", {
|
|
7858
7859
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
7859
7860
|
onClick: click2
|
|
@@ -7867,11 +7868,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7867
7868
|
};
|
|
7868
7869
|
}
|
|
7869
7870
|
});
|
|
7870
|
-
const _hoisted_1$
|
|
7871
|
+
const _hoisted_1$1a = {
|
|
7871
7872
|
key: 0,
|
|
7872
7873
|
class: "lupa-search-box-history-panel"
|
|
7873
7874
|
};
|
|
7874
|
-
const _sfc_main$
|
|
7875
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
7875
7876
|
__name: "SearchBoxHistoryPanel",
|
|
7876
7877
|
props: {
|
|
7877
7878
|
options: {}
|
|
@@ -7912,9 +7913,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7912
7913
|
}
|
|
7913
7914
|
};
|
|
7914
7915
|
return (_ctx, _cache) => {
|
|
7915
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7916
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1a, [
|
|
7916
7917
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
7917
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7918
|
+
return openBlock(), createBlock(_sfc_main$1i, {
|
|
7918
7919
|
key: item,
|
|
7919
7920
|
item,
|
|
7920
7921
|
highlighted: index === highlightIndex.value,
|
|
@@ -7930,25 +7931,25 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7930
7931
|
};
|
|
7931
7932
|
}
|
|
7932
7933
|
});
|
|
7933
|
-
const _hoisted_1$
|
|
7934
|
-
const _sfc_main$
|
|
7934
|
+
const _hoisted_1$19 = { class: "lupa-search-box-no-results" };
|
|
7935
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
7935
7936
|
__name: "SearchBoxNoResults",
|
|
7936
7937
|
props: {
|
|
7937
7938
|
labels: {}
|
|
7938
7939
|
},
|
|
7939
7940
|
setup(__props) {
|
|
7940
7941
|
return (_ctx, _cache) => {
|
|
7941
|
-
return openBlock(), createElementBlock("p", _hoisted_1$
|
|
7942
|
+
return openBlock(), createElementBlock("p", _hoisted_1$19, toDisplayString(_ctx.labels.noResults), 1);
|
|
7942
7943
|
};
|
|
7943
7944
|
}
|
|
7944
7945
|
});
|
|
7945
|
-
const _hoisted_1$
|
|
7946
|
-
const _hoisted_2$
|
|
7946
|
+
const _hoisted_1$18 = ["innerHTML"];
|
|
7947
|
+
const _hoisted_2$N = {
|
|
7947
7948
|
key: 1,
|
|
7948
7949
|
"data-cy": "lupa-suggestion-value",
|
|
7949
7950
|
class: "lupa-suggestion-value"
|
|
7950
7951
|
};
|
|
7951
|
-
const _hoisted_3$
|
|
7952
|
+
const _hoisted_3$A = {
|
|
7952
7953
|
key: 2,
|
|
7953
7954
|
class: "lupa-suggestion-facet",
|
|
7954
7955
|
"data-cy": "lupa-suggestion-facet"
|
|
@@ -7961,7 +7962,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7961
7962
|
class: "lupa-suggestion-facet-value",
|
|
7962
7963
|
"data-cy": "lupa-suggestion-facet-value"
|
|
7963
7964
|
};
|
|
7964
|
-
const _sfc_main$
|
|
7965
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
7965
7966
|
__name: "SearchBoxSuggestion",
|
|
7966
7967
|
props: {
|
|
7967
7968
|
suggestion: {},
|
|
@@ -7997,8 +7998,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7997
7998
|
class: "lupa-suggestion-value",
|
|
7998
7999
|
"data-cy": "lupa-suggestion-value",
|
|
7999
8000
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
8000
|
-
}, null, 8, _hoisted_1$
|
|
8001
|
-
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
8001
|
+
}, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8002
|
+
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
8002
8003
|
createBaseVNode("span", _hoisted_4$p, toDisplayString(facetLabel.value), 1),
|
|
8003
8004
|
createBaseVNode("span", _hoisted_5$e, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8004
8005
|
])) : createCommentVNode("", true)
|
|
@@ -8006,11 +8007,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8006
8007
|
};
|
|
8007
8008
|
}
|
|
8008
8009
|
});
|
|
8009
|
-
const _hoisted_1$
|
|
8010
|
+
const _hoisted_1$17 = {
|
|
8010
8011
|
id: "lupa-search-box-suggestions",
|
|
8011
8012
|
"data-cy": "lupa-search-box-suggestions"
|
|
8012
8013
|
};
|
|
8013
|
-
const _sfc_main$
|
|
8014
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
8014
8015
|
__name: "SearchBoxSuggestions",
|
|
8015
8016
|
props: {
|
|
8016
8017
|
items: {},
|
|
@@ -8070,9 +8071,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8070
8071
|
});
|
|
8071
8072
|
});
|
|
8072
8073
|
return (_ctx, _cache) => {
|
|
8073
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8074
|
+
return openBlock(), createElementBlock("div", _hoisted_1$17, [
|
|
8074
8075
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
8075
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8076
|
+
return openBlock(), createBlock(_sfc_main$1f, {
|
|
8076
8077
|
key: getSuggestionKey(item),
|
|
8077
8078
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
8078
8079
|
suggestion: item,
|
|
@@ -8100,7 +8101,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8100
8101
|
}, timeout);
|
|
8101
8102
|
};
|
|
8102
8103
|
};
|
|
8103
|
-
const _sfc_main$
|
|
8104
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
8104
8105
|
__name: "SearchBoxSuggestionsWrapper",
|
|
8105
8106
|
props: {
|
|
8106
8107
|
panel: {},
|
|
@@ -8141,7 +8142,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8141
8142
|
};
|
|
8142
8143
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
8143
8144
|
return (_ctx, _cache) => {
|
|
8144
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8145
|
+
return openBlock(), createBlock(_sfc_main$1e, {
|
|
8145
8146
|
items: searchResult.value,
|
|
8146
8147
|
highlight: _ctx.panel.highlight,
|
|
8147
8148
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -8219,8 +8220,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8219
8220
|
});
|
|
8220
8221
|
return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
|
|
8221
8222
|
});
|
|
8222
|
-
const _hoisted_1$
|
|
8223
|
-
const _sfc_main$
|
|
8223
|
+
const _hoisted_1$16 = ["src"];
|
|
8224
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
8224
8225
|
__name: "ProductImage",
|
|
8225
8226
|
props: {
|
|
8226
8227
|
item: {},
|
|
@@ -8268,12 +8269,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8268
8269
|
class: normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
|
|
8269
8270
|
src: finalUrl.value,
|
|
8270
8271
|
onError: replaceWithPlaceholder
|
|
8271
|
-
}, null, 42, _hoisted_1$
|
|
8272
|
+
}, null, 42, _hoisted_1$16)
|
|
8272
8273
|
], 2);
|
|
8273
8274
|
};
|
|
8274
8275
|
}
|
|
8275
8276
|
});
|
|
8276
|
-
const _sfc_main$
|
|
8277
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
8277
8278
|
__name: "SearchBoxProductImage",
|
|
8278
8279
|
props: {
|
|
8279
8280
|
item: {},
|
|
@@ -8281,7 +8282,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8281
8282
|
},
|
|
8282
8283
|
setup(__props) {
|
|
8283
8284
|
return (_ctx, _cache) => {
|
|
8284
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8285
|
+
return openBlock(), createBlock(_sfc_main$1c, {
|
|
8285
8286
|
item: _ctx.item,
|
|
8286
8287
|
options: _ctx.options,
|
|
8287
8288
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -8290,12 +8291,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8290
8291
|
};
|
|
8291
8292
|
}
|
|
8292
8293
|
});
|
|
8293
|
-
const _hoisted_1$
|
|
8294
|
-
const _hoisted_2$
|
|
8294
|
+
const _hoisted_1$15 = ["innerHTML"];
|
|
8295
|
+
const _hoisted_2$M = {
|
|
8295
8296
|
key: 1,
|
|
8296
8297
|
class: "lupa-search-box-product-title"
|
|
8297
8298
|
};
|
|
8298
|
-
const _sfc_main$
|
|
8299
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
8299
8300
|
__name: "SearchBoxProductTitle",
|
|
8300
8301
|
props: {
|
|
8301
8302
|
item: {},
|
|
@@ -8315,18 +8316,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8315
8316
|
key: 0,
|
|
8316
8317
|
class: "lupa-search-box-product-title",
|
|
8317
8318
|
innerHTML: title.value
|
|
8318
|
-
}, null, 8, _hoisted_1$
|
|
8319
|
+
}, null, 8, _hoisted_1$15)) : (openBlock(), createElementBlock("div", _hoisted_2$M, [
|
|
8319
8320
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
8320
8321
|
]));
|
|
8321
8322
|
};
|
|
8322
8323
|
}
|
|
8323
8324
|
});
|
|
8324
|
-
const _hoisted_1$
|
|
8325
|
-
const _hoisted_2$
|
|
8325
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
8326
|
+
const _hoisted_2$L = {
|
|
8326
8327
|
key: 1,
|
|
8327
8328
|
class: "lupa-search-box-product-description"
|
|
8328
8329
|
};
|
|
8329
|
-
const _sfc_main$
|
|
8330
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
8330
8331
|
__name: "SearchBoxProductDescription",
|
|
8331
8332
|
props: {
|
|
8332
8333
|
item: {},
|
|
@@ -8346,12 +8347,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8346
8347
|
key: 0,
|
|
8347
8348
|
class: "lupa-search-box-product-description",
|
|
8348
8349
|
innerHTML: description.value
|
|
8349
|
-
}, null, 8, _hoisted_1$
|
|
8350
|
+
}, null, 8, _hoisted_1$14)) : (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString(description.value), 1));
|
|
8350
8351
|
};
|
|
8351
8352
|
}
|
|
8352
8353
|
});
|
|
8353
|
-
const _hoisted_1$
|
|
8354
|
-
const _sfc_main$
|
|
8354
|
+
const _hoisted_1$13 = { class: "lupa-search-box-product-price" };
|
|
8355
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
8355
8356
|
__name: "SearchBoxProductPrice",
|
|
8356
8357
|
props: {
|
|
8357
8358
|
item: {},
|
|
@@ -8369,14 +8370,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8369
8370
|
);
|
|
8370
8371
|
});
|
|
8371
8372
|
return (_ctx, _cache) => {
|
|
8372
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8373
|
+
return openBlock(), createElementBlock("div", _hoisted_1$13, [
|
|
8373
8374
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
8374
8375
|
]);
|
|
8375
8376
|
};
|
|
8376
8377
|
}
|
|
8377
8378
|
});
|
|
8378
|
-
const _hoisted_1$
|
|
8379
|
-
const _sfc_main$
|
|
8379
|
+
const _hoisted_1$12 = { class: "lupa-search-box-product-regular-price" };
|
|
8380
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
8380
8381
|
__name: "SearchBoxProductRegularPrice",
|
|
8381
8382
|
props: {
|
|
8382
8383
|
item: {},
|
|
@@ -8394,16 +8395,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8394
8395
|
);
|
|
8395
8396
|
});
|
|
8396
8397
|
return (_ctx, _cache) => {
|
|
8397
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8398
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, toDisplayString(price.value), 1);
|
|
8398
8399
|
};
|
|
8399
8400
|
}
|
|
8400
8401
|
});
|
|
8401
|
-
const _hoisted_1$
|
|
8402
|
-
const _hoisted_2$
|
|
8403
|
-
const _hoisted_3$
|
|
8402
|
+
const _hoisted_1$11 = ["innerHTML"];
|
|
8403
|
+
const _hoisted_2$K = { key: 0 };
|
|
8404
|
+
const _hoisted_3$z = { key: 1 };
|
|
8404
8405
|
const _hoisted_4$o = { class: "lupa-search-box-custom-label" };
|
|
8405
8406
|
const _hoisted_5$d = { class: "lupa-search-box-custom-text" };
|
|
8406
|
-
const _sfc_main$
|
|
8407
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
8407
8408
|
__name: "SearchBoxProductCustom",
|
|
8408
8409
|
props: {
|
|
8409
8410
|
item: {},
|
|
@@ -8429,11 +8430,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8429
8430
|
key: 0,
|
|
8430
8431
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
8431
8432
|
innerHTML: text.value
|
|
8432
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
8433
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$11)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
8433
8434
|
key: 1,
|
|
8434
8435
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
8435
8436
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
8436
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
8437
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
8437
8438
|
createBaseVNode("div", _hoisted_4$o, toDisplayString(label.value), 1),
|
|
8438
8439
|
createBaseVNode("div", _hoisted_5$d, toDisplayString(text.value), 1)
|
|
8439
8440
|
]))
|
|
@@ -8441,8 +8442,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8441
8442
|
};
|
|
8442
8443
|
}
|
|
8443
8444
|
});
|
|
8444
|
-
const _hoisted_1
|
|
8445
|
-
const _sfc_main$
|
|
8445
|
+
const _hoisted_1$10 = ["innerHTML"];
|
|
8446
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
8446
8447
|
__name: "SearchBoxProductCustomHtml",
|
|
8447
8448
|
props: {
|
|
8448
8449
|
item: {},
|
|
@@ -8462,7 +8463,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8462
8463
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
8463
8464
|
class: className.value,
|
|
8464
8465
|
innerHTML: text.value
|
|
8465
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1
|
|
8466
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$10);
|
|
8466
8467
|
};
|
|
8467
8468
|
}
|
|
8468
8469
|
});
|
|
@@ -8657,10 +8658,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8657
8658
|
setLoading
|
|
8658
8659
|
};
|
|
8659
8660
|
});
|
|
8660
|
-
const _hoisted_1
|
|
8661
|
-
const _hoisted_2$
|
|
8662
|
-
const _hoisted_3$
|
|
8663
|
-
const _sfc_main$
|
|
8661
|
+
const _hoisted_1$$ = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
8662
|
+
const _hoisted_2$J = { class: "lupa-search-box-product-addtocart" };
|
|
8663
|
+
const _hoisted_3$y = ["onClick", "disabled"];
|
|
8664
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
8664
8665
|
__name: "SearchBoxProductAddToCart",
|
|
8665
8666
|
props: {
|
|
8666
8667
|
item: {},
|
|
@@ -8687,15 +8688,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8687
8688
|
loading.value = false;
|
|
8688
8689
|
});
|
|
8689
8690
|
return (_ctx, _cache) => {
|
|
8690
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
8691
|
-
createBaseVNode("div", _hoisted_2$
|
|
8691
|
+
return openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
8692
|
+
createBaseVNode("div", _hoisted_2$J, [
|
|
8692
8693
|
createBaseVNode("button", {
|
|
8693
8694
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
8694
8695
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
8695
8696
|
"data-cy": "lupa-add-to-cart",
|
|
8696
8697
|
type: "button",
|
|
8697
8698
|
disabled: !inStockValue.value || loading.value
|
|
8698
|
-
}, toDisplayString(label.value), 11, _hoisted_3$
|
|
8699
|
+
}, toDisplayString(label.value), 11, _hoisted_3$y)
|
|
8699
8700
|
])
|
|
8700
8701
|
]);
|
|
8701
8702
|
};
|
|
@@ -8703,17 +8704,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8703
8704
|
});
|
|
8704
8705
|
const __default__$4 = {
|
|
8705
8706
|
components: {
|
|
8706
|
-
SearchBoxProductImage: _sfc_main$
|
|
8707
|
-
SearchBoxProductTitle: _sfc_main$
|
|
8708
|
-
SearchBoxProductDescription: _sfc_main$
|
|
8709
|
-
SearchBoxProductPrice: _sfc_main$
|
|
8710
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
8711
|
-
SearchBoxProductCustom: _sfc_main$
|
|
8712
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
8713
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
8707
|
+
SearchBoxProductImage: _sfc_main$1b,
|
|
8708
|
+
SearchBoxProductTitle: _sfc_main$1a,
|
|
8709
|
+
SearchBoxProductDescription: _sfc_main$19,
|
|
8710
|
+
SearchBoxProductPrice: _sfc_main$18,
|
|
8711
|
+
SearchBoxProductRegularPrice: _sfc_main$17,
|
|
8712
|
+
SearchBoxProductCustom: _sfc_main$16,
|
|
8713
|
+
SearchBoxProductCustomHtml: _sfc_main$15,
|
|
8714
|
+
SearchBoxProductAddToCart: _sfc_main$14
|
|
8714
8715
|
}
|
|
8715
8716
|
};
|
|
8716
|
-
const _sfc_main$
|
|
8717
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
8717
8718
|
__name: "SearchBoxProductElement",
|
|
8718
8719
|
props: {
|
|
8719
8720
|
item: {},
|
|
@@ -8827,14 +8828,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8827
8828
|
};
|
|
8828
8829
|
return { trackSearch, trackResults, trackEvent };
|
|
8829
8830
|
});
|
|
8830
|
-
const _hoisted_1$
|
|
8831
|
-
const _hoisted_2$
|
|
8832
|
-
const _hoisted_3$
|
|
8831
|
+
const _hoisted_1$_ = ["href"];
|
|
8832
|
+
const _hoisted_2$I = { class: "lupa-search-box-product-image-section" };
|
|
8833
|
+
const _hoisted_3$x = { class: "lupa-search-box-product-details-section" };
|
|
8833
8834
|
const _hoisted_4$n = {
|
|
8834
8835
|
key: 0,
|
|
8835
8836
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
8836
8837
|
};
|
|
8837
|
-
const _sfc_main$
|
|
8838
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
8838
8839
|
__name: "SearchBoxProduct",
|
|
8839
8840
|
props: {
|
|
8840
8841
|
item: {},
|
|
@@ -8927,9 +8928,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8927
8928
|
href: link.value,
|
|
8928
8929
|
onClick: handleClick
|
|
8929
8930
|
}, [
|
|
8930
|
-
createBaseVNode("div", _hoisted_2$
|
|
8931
|
+
createBaseVNode("div", _hoisted_2$I, [
|
|
8931
8932
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
8932
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8933
|
+
return openBlock(), createBlock(_sfc_main$13, {
|
|
8933
8934
|
class: "lupa-search-box-product-element",
|
|
8934
8935
|
item: _ctx.item,
|
|
8935
8936
|
element,
|
|
@@ -8939,9 +8940,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8939
8940
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
8940
8941
|
}), 128))
|
|
8941
8942
|
]),
|
|
8942
|
-
createBaseVNode("div", _hoisted_3$
|
|
8943
|
+
createBaseVNode("div", _hoisted_3$x, [
|
|
8943
8944
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
8944
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8945
|
+
return openBlock(), createBlock(_sfc_main$13, {
|
|
8945
8946
|
class: "lupa-search-box-product-element",
|
|
8946
8947
|
item: _ctx.item,
|
|
8947
8948
|
element,
|
|
@@ -8952,7 +8953,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8952
8953
|
}), 128))
|
|
8953
8954
|
]),
|
|
8954
8955
|
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
|
|
8955
|
-
createVNode(_sfc_main$
|
|
8956
|
+
createVNode(_sfc_main$13, {
|
|
8956
8957
|
class: "lupa-search-box-product-element",
|
|
8957
8958
|
item: _ctx.item,
|
|
8958
8959
|
element: addToCartElement.value,
|
|
@@ -8961,12 +8962,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8961
8962
|
isInStock: isInStock.value
|
|
8962
8963
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
8963
8964
|
])) : createCommentVNode("", true)
|
|
8964
|
-
], 10, _hoisted_1$
|
|
8965
|
+
], 10, _hoisted_1$_);
|
|
8965
8966
|
};
|
|
8966
8967
|
}
|
|
8967
8968
|
});
|
|
8968
|
-
const _hoisted_1$
|
|
8969
|
-
const _sfc_main$
|
|
8969
|
+
const _hoisted_1$Z = { id: "lupa-search-box-products" };
|
|
8970
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
8970
8971
|
__name: "SearchBoxProducts",
|
|
8971
8972
|
props: {
|
|
8972
8973
|
items: {},
|
|
@@ -8986,7 +8987,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8986
8987
|
return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
|
|
8987
8988
|
});
|
|
8988
8989
|
return (_ctx, _cache) => {
|
|
8989
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8990
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
8990
8991
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
8991
8992
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
8992
8993
|
key: index,
|
|
@@ -8998,7 +8999,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8998
8999
|
onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
|
|
8999
9000
|
});
|
|
9000
9001
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
9001
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9002
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
9002
9003
|
key: index,
|
|
9003
9004
|
item,
|
|
9004
9005
|
panelOptions: _ctx.panelOptions,
|
|
@@ -9012,7 +9013,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9012
9013
|
};
|
|
9013
9014
|
}
|
|
9014
9015
|
});
|
|
9015
|
-
const _sfc_main
|
|
9016
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
9016
9017
|
__name: "SearchBoxProductsWrapper",
|
|
9017
9018
|
props: {
|
|
9018
9019
|
panel: {},
|
|
@@ -9064,7 +9065,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9064
9065
|
const getItemsDebounced = debounce$1(getItems, props.debounce);
|
|
9065
9066
|
return (_ctx, _cache) => {
|
|
9066
9067
|
var _a, _b;
|
|
9067
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9068
|
+
return openBlock(), createBlock(_sfc_main$11, {
|
|
9068
9069
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
9069
9070
|
panelOptions: _ctx.panel,
|
|
9070
9071
|
labels: _ctx.labels,
|
|
@@ -9082,22 +9083,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9082
9083
|
};
|
|
9083
9084
|
}
|
|
9084
9085
|
});
|
|
9085
|
-
const _hoisted_1$
|
|
9086
|
+
const _hoisted_1$Y = {
|
|
9086
9087
|
key: 0,
|
|
9087
9088
|
id: "lupa-search-box-panel"
|
|
9088
9089
|
};
|
|
9089
|
-
const _hoisted_2$
|
|
9090
|
-
const _hoisted_3$
|
|
9090
|
+
const _hoisted_2$H = ["data-cy"];
|
|
9091
|
+
const _hoisted_3$w = {
|
|
9091
9092
|
key: 1,
|
|
9092
9093
|
id: "lupa-search-box-panel"
|
|
9093
9094
|
};
|
|
9094
9095
|
const __default__$3 = {
|
|
9095
9096
|
components: {
|
|
9096
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
9097
|
-
SearchBoxProductsWrapper: _sfc_main
|
|
9097
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1d,
|
|
9098
|
+
SearchBoxProductsWrapper: _sfc_main$10
|
|
9098
9099
|
}
|
|
9099
9100
|
};
|
|
9100
|
-
const _sfc_main
|
|
9101
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
9101
9102
|
__name: "SearchBoxMainPanel",
|
|
9102
9103
|
props: {
|
|
9103
9104
|
options: {},
|
|
@@ -9217,7 +9218,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9217
9218
|
ref_key: "panelContainer",
|
|
9218
9219
|
ref: panelContainer
|
|
9219
9220
|
}, [
|
|
9220
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9221
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$Y, [
|
|
9221
9222
|
createBaseVNode("div", {
|
|
9222
9223
|
class: "lupa-main-panel",
|
|
9223
9224
|
style: normalizeStyle(expandOnSinglePanel.value ? { display: "block" } : {}),
|
|
@@ -9251,21 +9252,21 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9251
9252
|
key: "0"
|
|
9252
9253
|
} : void 0
|
|
9253
9254
|
]), 1064, ["panel", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
9254
|
-
], 10, _hoisted_2$
|
|
9255
|
+
], 10, _hoisted_2$H);
|
|
9255
9256
|
}), 128))
|
|
9256
9257
|
], 4),
|
|
9257
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
9258
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1g, {
|
|
9258
9259
|
key: 0,
|
|
9259
9260
|
labels: labels.value
|
|
9260
9261
|
}, null, 8, ["labels"])) : createCommentVNode("", true),
|
|
9261
|
-
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$
|
|
9262
|
+
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1j, {
|
|
9262
9263
|
key: 1,
|
|
9263
9264
|
labels: labels.value,
|
|
9264
9265
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
9265
9266
|
onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
|
|
9266
9267
|
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
9267
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9268
|
-
createVNode(_sfc_main$
|
|
9268
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
|
|
9269
|
+
createVNode(_sfc_main$1h, {
|
|
9269
9270
|
options: _ctx.options.history,
|
|
9270
9271
|
history: history.value,
|
|
9271
9272
|
onGoToResults: handleGoToResults,
|
|
@@ -9290,9 +9291,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9290
9291
|
const elements = getElements(triggers);
|
|
9291
9292
|
elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
|
|
9292
9293
|
};
|
|
9293
|
-
const _hoisted_1$
|
|
9294
|
-
const _hoisted_2$
|
|
9295
|
-
const _sfc_main$
|
|
9294
|
+
const _hoisted_1$X = { id: "lupa-search-box" };
|
|
9295
|
+
const _hoisted_2$G = { class: "lupa-search-box-wrapper" };
|
|
9296
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
9296
9297
|
__name: "SearchBox",
|
|
9297
9298
|
props: {
|
|
9298
9299
|
options: {},
|
|
@@ -9528,9 +9529,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9528
9529
|
};
|
|
9529
9530
|
return (_ctx, _cache) => {
|
|
9530
9531
|
var _a2;
|
|
9531
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9532
|
-
createBaseVNode("div", _hoisted_2$
|
|
9533
|
-
createVNode(_sfc_main$
|
|
9532
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
9533
|
+
createBaseVNode("div", _hoisted_2$G, [
|
|
9534
|
+
createVNode(_sfc_main$1k, {
|
|
9534
9535
|
options: inputOptions.value,
|
|
9535
9536
|
suggestedValue: suggestedValue.value,
|
|
9536
9537
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -9541,7 +9542,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9541
9542
|
onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
|
|
9542
9543
|
onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
9543
9544
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
9544
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main
|
|
9545
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$$, {
|
|
9545
9546
|
key: 0,
|
|
9546
9547
|
options: panelOptions.value,
|
|
9547
9548
|
inputValue: inputValue.value,
|
|
@@ -9628,20 +9629,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9628
9629
|
}
|
|
9629
9630
|
return searchParams;
|
|
9630
9631
|
};
|
|
9631
|
-
const _hoisted_1$
|
|
9632
|
+
const _hoisted_1$W = {
|
|
9632
9633
|
key: 0,
|
|
9633
9634
|
id: "lupa-search-results-did-you-mean"
|
|
9634
9635
|
};
|
|
9635
|
-
const _hoisted_2$
|
|
9636
|
+
const _hoisted_2$F = {
|
|
9636
9637
|
key: 0,
|
|
9637
9638
|
"data-cy": "suggested-search-text-label"
|
|
9638
9639
|
};
|
|
9639
|
-
const _hoisted_3$
|
|
9640
|
+
const _hoisted_3$v = {
|
|
9640
9641
|
key: 1,
|
|
9641
9642
|
"data-cy": "did-you-mean-label"
|
|
9642
9643
|
};
|
|
9643
9644
|
const _hoisted_4$m = { key: 1 };
|
|
9644
|
-
const _sfc_main$
|
|
9645
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
9645
9646
|
__name: "SearchResultsDidYouMean",
|
|
9646
9647
|
props: {
|
|
9647
9648
|
labels: {}
|
|
@@ -9673,8 +9674,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9673
9674
|
paramStore.goToResults({ searchText, facet });
|
|
9674
9675
|
};
|
|
9675
9676
|
return (_ctx, _cache) => {
|
|
9676
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9677
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9677
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
9678
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$F, [
|
|
9678
9679
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
9679
9680
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
9680
9681
|
createBaseVNode("span", {
|
|
@@ -9683,7 +9684,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9683
9684
|
]);
|
|
9684
9685
|
}), 128))
|
|
9685
9686
|
])) : createCommentVNode("", true),
|
|
9686
|
-
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9687
|
+
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
|
|
9687
9688
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
9688
9689
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
9689
9690
|
label.includes("{1}") ? (openBlock(), createElementBlock("span", {
|
|
@@ -9699,12 +9700,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9699
9700
|
};
|
|
9700
9701
|
}
|
|
9701
9702
|
});
|
|
9702
|
-
const _hoisted_1$
|
|
9703
|
+
const _hoisted_1$V = {
|
|
9703
9704
|
key: 0,
|
|
9704
9705
|
class: "lupa-search-results-summary"
|
|
9705
9706
|
};
|
|
9706
|
-
const _hoisted_2$
|
|
9707
|
-
const _sfc_main$
|
|
9707
|
+
const _hoisted_2$E = ["innerHTML"];
|
|
9708
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
9708
9709
|
__name: "SearchResultsSummary",
|
|
9709
9710
|
props: {
|
|
9710
9711
|
label: {},
|
|
@@ -9719,8 +9720,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9719
9720
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
9720
9721
|
});
|
|
9721
9722
|
return (_ctx, _cache) => {
|
|
9722
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9723
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
9723
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
9724
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$E),
|
|
9724
9725
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
9725
9726
|
key: 0,
|
|
9726
9727
|
class: "lupa-filter-clear",
|
|
@@ -9731,18 +9732,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9731
9732
|
};
|
|
9732
9733
|
}
|
|
9733
9734
|
});
|
|
9734
|
-
const _hoisted_1$
|
|
9735
|
+
const _hoisted_1$U = {
|
|
9735
9736
|
key: 0,
|
|
9736
9737
|
class: "lupa-result-page-title",
|
|
9737
9738
|
"data-cy": "lupa-result-page-title"
|
|
9738
9739
|
};
|
|
9739
|
-
const _hoisted_2$
|
|
9740
|
-
const _hoisted_3$
|
|
9740
|
+
const _hoisted_2$D = { key: 0 };
|
|
9741
|
+
const _hoisted_3$u = {
|
|
9741
9742
|
key: 1,
|
|
9742
9743
|
class: "lupa-results-total-count"
|
|
9743
9744
|
};
|
|
9744
9745
|
const _hoisted_4$l = ["innerHTML"];
|
|
9745
|
-
const _sfc_main$
|
|
9746
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
9746
9747
|
__name: "SearchResultsTitle",
|
|
9747
9748
|
props: {
|
|
9748
9749
|
options: {},
|
|
@@ -9777,12 +9778,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9777
9778
|
});
|
|
9778
9779
|
return (_ctx, _cache) => {
|
|
9779
9780
|
return openBlock(), createElementBlock("div", null, [
|
|
9780
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
9781
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$U, [
|
|
9781
9782
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
9782
|
-
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9783
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
9783
|
+
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$D, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
9784
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$u, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
|
|
9784
9785
|
])) : createCommentVNode("", true),
|
|
9785
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
9786
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Y, {
|
|
9786
9787
|
key: 1,
|
|
9787
9788
|
label: summaryLabel.value
|
|
9788
9789
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -9795,16 +9796,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9795
9796
|
};
|
|
9796
9797
|
}
|
|
9797
9798
|
});
|
|
9798
|
-
const _hoisted_1$
|
|
9799
|
-
const _hoisted_2$
|
|
9799
|
+
const _hoisted_1$T = { class: "lupa-search-result-filter-value" };
|
|
9800
|
+
const _hoisted_2$C = {
|
|
9800
9801
|
class: "lupa-current-filter-label",
|
|
9801
9802
|
"data-cy": "lupa-current-filter-label"
|
|
9802
9803
|
};
|
|
9803
|
-
const _hoisted_3$
|
|
9804
|
+
const _hoisted_3$t = {
|
|
9804
9805
|
class: "lupa-current-filter-value",
|
|
9805
9806
|
"data-cy": "lupa-current-filter-value"
|
|
9806
9807
|
};
|
|
9807
|
-
const _sfc_main$
|
|
9808
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
9808
9809
|
__name: "CurrentFilterDisplay",
|
|
9809
9810
|
props: {
|
|
9810
9811
|
filter: {}
|
|
@@ -9816,28 +9817,28 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9816
9817
|
emit2("remove", { filter: props.filter });
|
|
9817
9818
|
};
|
|
9818
9819
|
return (_ctx, _cache) => {
|
|
9819
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9820
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
9820
9821
|
createBaseVNode("div", {
|
|
9821
9822
|
class: "lupa-current-filter-action",
|
|
9822
9823
|
onClick: handleClick
|
|
9823
9824
|
}, "⨉"),
|
|
9824
|
-
createBaseVNode("div", _hoisted_2$
|
|
9825
|
-
createBaseVNode("div", _hoisted_3$
|
|
9825
|
+
createBaseVNode("div", _hoisted_2$C, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
9826
|
+
createBaseVNode("div", _hoisted_3$t, toDisplayString(_ctx.filter.value), 1)
|
|
9826
9827
|
]);
|
|
9827
9828
|
};
|
|
9828
9829
|
}
|
|
9829
9830
|
});
|
|
9830
|
-
const _hoisted_1$
|
|
9831
|
-
const _hoisted_2$
|
|
9831
|
+
const _hoisted_1$S = { class: "lupa-filter-title-text" };
|
|
9832
|
+
const _hoisted_2$B = {
|
|
9832
9833
|
key: 0,
|
|
9833
9834
|
class: "lupa-filter-count"
|
|
9834
9835
|
};
|
|
9835
|
-
const _hoisted_3$
|
|
9836
|
+
const _hoisted_3$s = {
|
|
9836
9837
|
key: 0,
|
|
9837
9838
|
class: "filter-values"
|
|
9838
9839
|
};
|
|
9839
9840
|
const _hoisted_4$k = { class: "lupa-current-filter-list" };
|
|
9840
|
-
const _sfc_main$
|
|
9841
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
9841
9842
|
__name: "CurrentFilters",
|
|
9842
9843
|
props: {
|
|
9843
9844
|
options: {},
|
|
@@ -9892,19 +9893,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9892
9893
|
class: "lupa-current-filter-title",
|
|
9893
9894
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
9894
9895
|
}, [
|
|
9895
|
-
createBaseVNode("div", _hoisted_1$
|
|
9896
|
+
createBaseVNode("div", _hoisted_1$S, [
|
|
9896
9897
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
9897
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9898
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$B, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
9898
9899
|
]),
|
|
9899
9900
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
9900
9901
|
key: 0,
|
|
9901
9902
|
class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
9902
9903
|
}, null, 2)) : createCommentVNode("", true)
|
|
9903
9904
|
]),
|
|
9904
|
-
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9905
|
+
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$s, [
|
|
9905
9906
|
createBaseVNode("div", _hoisted_4$k, [
|
|
9906
9907
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
|
|
9907
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9908
|
+
return openBlock(), createBlock(_sfc_main$W, {
|
|
9908
9909
|
key: filter.key + "_" + filter.value,
|
|
9909
9910
|
filter,
|
|
9910
9911
|
onRemove: handleRemove
|
|
@@ -9921,8 +9922,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9921
9922
|
};
|
|
9922
9923
|
}
|
|
9923
9924
|
});
|
|
9924
|
-
const _hoisted_1$
|
|
9925
|
-
const _sfc_main$
|
|
9925
|
+
const _hoisted_1$R = ["href"];
|
|
9926
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
9926
9927
|
__name: "CategoryFilterItem",
|
|
9927
9928
|
props: {
|
|
9928
9929
|
options: {},
|
|
@@ -9959,20 +9960,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9959
9960
|
"data-cy": "lupa-child-category-item",
|
|
9960
9961
|
href: urlLink.value,
|
|
9961
9962
|
onClick: handleNavigation
|
|
9962
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
9963
|
+
}, toDisplayString(title.value), 9, _hoisted_1$R)
|
|
9963
9964
|
], 2);
|
|
9964
9965
|
};
|
|
9965
9966
|
}
|
|
9966
9967
|
});
|
|
9967
|
-
const _hoisted_1$
|
|
9968
|
+
const _hoisted_1$Q = {
|
|
9968
9969
|
class: "lupa-category-filter",
|
|
9969
9970
|
"data-cy": "lupa-category-filter"
|
|
9970
9971
|
};
|
|
9971
|
-
const _hoisted_2$
|
|
9972
|
-
const _hoisted_3$
|
|
9972
|
+
const _hoisted_2$A = { class: "lupa-category-back" };
|
|
9973
|
+
const _hoisted_3$r = ["href"];
|
|
9973
9974
|
const _hoisted_4$j = ["href"];
|
|
9974
9975
|
const _hoisted_5$c = { class: "lupa-child-category-list" };
|
|
9975
|
-
const _sfc_main$
|
|
9976
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
9976
9977
|
__name: "CategoryFilter",
|
|
9977
9978
|
props: {
|
|
9978
9979
|
options: {}
|
|
@@ -10058,14 +10059,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10058
10059
|
};
|
|
10059
10060
|
__expose({ fetch: fetch2 });
|
|
10060
10061
|
return (_ctx, _cache) => {
|
|
10061
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10062
|
-
createBaseVNode("div", _hoisted_2$
|
|
10062
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
10063
|
+
createBaseVNode("div", _hoisted_2$A, [
|
|
10063
10064
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
10064
10065
|
key: 0,
|
|
10065
10066
|
"data-cy": "lupa-category-back",
|
|
10066
10067
|
href: backUrlLink.value,
|
|
10067
10068
|
onClick: handleNavigationBack
|
|
10068
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
10069
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$r)) : createCommentVNode("", true)
|
|
10069
10070
|
]),
|
|
10070
10071
|
createBaseVNode("div", {
|
|
10071
10072
|
class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -10079,7 +10080,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10079
10080
|
], 2),
|
|
10080
10081
|
createBaseVNode("div", _hoisted_5$c, [
|
|
10081
10082
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
10082
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10083
|
+
return openBlock(), createBlock(_sfc_main$U, {
|
|
10083
10084
|
key: getCategoryKey(child),
|
|
10084
10085
|
item: child,
|
|
10085
10086
|
options: _ctx.options
|
|
@@ -10090,15 +10091,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10090
10091
|
};
|
|
10091
10092
|
}
|
|
10092
10093
|
});
|
|
10093
|
-
const _hoisted_1$
|
|
10094
|
+
const _hoisted_1$P = {
|
|
10094
10095
|
class: "lupa-search-result-facet-term-values",
|
|
10095
10096
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
10096
10097
|
};
|
|
10097
|
-
const _hoisted_2$
|
|
10098
|
-
const _hoisted_3$
|
|
10098
|
+
const _hoisted_2$z = ["placeholder"];
|
|
10099
|
+
const _hoisted_3$q = { class: "lupa-terms-list" };
|
|
10099
10100
|
const _hoisted_4$i = ["onClick"];
|
|
10100
10101
|
const _hoisted_5$b = { class: "lupa-term-checkbox-wrapper" };
|
|
10101
|
-
const _hoisted_6$
|
|
10102
|
+
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
10102
10103
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
10103
10104
|
const _hoisted_8$1 = {
|
|
10104
10105
|
key: 0,
|
|
@@ -10106,7 +10107,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10106
10107
|
};
|
|
10107
10108
|
const _hoisted_9$1 = { key: 0 };
|
|
10108
10109
|
const _hoisted_10$1 = { key: 1 };
|
|
10109
|
-
const _sfc_main$
|
|
10110
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
10110
10111
|
__name: "TermFacet",
|
|
10111
10112
|
props: {
|
|
10112
10113
|
options: {},
|
|
@@ -10175,17 +10176,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10175
10176
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
10176
10177
|
};
|
|
10177
10178
|
return (_ctx, _cache) => {
|
|
10178
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10179
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
10179
10180
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
10180
10181
|
key: 0,
|
|
10181
10182
|
class: "lupa-term-filter",
|
|
10182
10183
|
"data-cy": "lupa-term-filter",
|
|
10183
10184
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
10184
10185
|
placeholder: _ctx.options.labels.facetFilter
|
|
10185
|
-
}, null, 8, _hoisted_2$
|
|
10186
|
+
}, null, 8, _hoisted_2$z)), [
|
|
10186
10187
|
[vModelText, termFilter.value]
|
|
10187
10188
|
]) : createCommentVNode("", true),
|
|
10188
|
-
createBaseVNode("div", _hoisted_3$
|
|
10189
|
+
createBaseVNode("div", _hoisted_3$q, [
|
|
10189
10190
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
10190
10191
|
return openBlock(), createElementBlock("div", {
|
|
10191
10192
|
class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -10198,7 +10199,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10198
10199
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
10199
10200
|
}, null, 2)
|
|
10200
10201
|
]),
|
|
10201
|
-
createBaseVNode("div", _hoisted_6$
|
|
10202
|
+
createBaseVNode("div", _hoisted_6$8, [
|
|
10202
10203
|
createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
|
|
10203
10204
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
10204
10205
|
])
|
|
@@ -11193,12 +11194,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11193
11194
|
m.render = function(e, t, r, i, n, o) {
|
|
11194
11195
|
return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
|
|
11195
11196
|
}, m.__file = "src/Slider.vue";
|
|
11196
|
-
const _hoisted_1$
|
|
11197
|
-
const _hoisted_2$
|
|
11197
|
+
const _hoisted_1$O = { class: "lupa-search-result-facet-stats-values" };
|
|
11198
|
+
const _hoisted_2$y = {
|
|
11198
11199
|
key: 0,
|
|
11199
11200
|
class: "lupa-stats-facet-summary"
|
|
11200
11201
|
};
|
|
11201
|
-
const _hoisted_3$
|
|
11202
|
+
const _hoisted_3$p = {
|
|
11202
11203
|
key: 1,
|
|
11203
11204
|
class: "lupa-stats-facet-summary-input"
|
|
11204
11205
|
};
|
|
@@ -11207,7 +11208,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11207
11208
|
class: "lupa-stats-range-label"
|
|
11208
11209
|
};
|
|
11209
11210
|
const _hoisted_5$a = { class: "lupa-stats-from" };
|
|
11210
|
-
const _hoisted_6$
|
|
11211
|
+
const _hoisted_6$7 = ["max", "min", "pattern"];
|
|
11211
11212
|
const _hoisted_7$5 = { key: 0 };
|
|
11212
11213
|
const _hoisted_8 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
11213
11214
|
const _hoisted_9 = {
|
|
@@ -11221,7 +11222,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11221
11222
|
key: 2,
|
|
11222
11223
|
class: "lupa-stats-slider-wrapper"
|
|
11223
11224
|
};
|
|
11224
|
-
const _sfc_main$
|
|
11225
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
11225
11226
|
__name: "StatsFacet",
|
|
11226
11227
|
props: {
|
|
11227
11228
|
options: {},
|
|
@@ -11369,8 +11370,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11369
11370
|
innerSliderRange.value = value;
|
|
11370
11371
|
};
|
|
11371
11372
|
return (_ctx, _cache) => {
|
|
11372
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11373
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11373
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
11374
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$p, [
|
|
11374
11375
|
createBaseVNode("div", null, [
|
|
11375
11376
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
11376
11377
|
createBaseVNode("div", _hoisted_5$a, [
|
|
@@ -11381,7 +11382,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11381
11382
|
max: facetMax.value,
|
|
11382
11383
|
min: facetMin.value,
|
|
11383
11384
|
pattern: sliderInputFormat.value
|
|
11384
|
-
}, null, 8, _hoisted_6$
|
|
11385
|
+
}, null, 8, _hoisted_6$7), [
|
|
11385
11386
|
[
|
|
11386
11387
|
vModelText,
|
|
11387
11388
|
fromValue.value,
|
|
@@ -11433,9 +11434,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11433
11434
|
};
|
|
11434
11435
|
}
|
|
11435
11436
|
});
|
|
11436
|
-
const _hoisted_1$
|
|
11437
|
-
const _hoisted_2$
|
|
11438
|
-
const _hoisted_3$
|
|
11437
|
+
const _hoisted_1$N = { class: "lupa-term-checkbox-wrapper" };
|
|
11438
|
+
const _hoisted_2$x = { class: "lupa-term-checkbox-label" };
|
|
11439
|
+
const _hoisted_3$o = { class: "lupa-term-label" };
|
|
11439
11440
|
const _hoisted_4$g = {
|
|
11440
11441
|
key: 0,
|
|
11441
11442
|
class: "lupa-term-count"
|
|
@@ -11444,7 +11445,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11444
11445
|
key: 0,
|
|
11445
11446
|
class: "lupa-facet-level"
|
|
11446
11447
|
};
|
|
11447
|
-
const _sfc_main$
|
|
11448
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
11448
11449
|
__name: "HierarchyFacetLevel",
|
|
11449
11450
|
props: {
|
|
11450
11451
|
options: {},
|
|
@@ -11490,13 +11491,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11490
11491
|
"data-cy": "lupa-facet-term",
|
|
11491
11492
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
11492
11493
|
}, [
|
|
11493
|
-
createBaseVNode("div", _hoisted_1$
|
|
11494
|
+
createBaseVNode("div", _hoisted_1$N, [
|
|
11494
11495
|
createBaseVNode("span", {
|
|
11495
11496
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
11496
11497
|
}, null, 2)
|
|
11497
11498
|
]),
|
|
11498
|
-
createBaseVNode("div", _hoisted_2$
|
|
11499
|
-
createBaseVNode("span", _hoisted_3$
|
|
11499
|
+
createBaseVNode("div", _hoisted_2$x, [
|
|
11500
|
+
createBaseVNode("span", _hoisted_3$o, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
11500
11501
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
11501
11502
|
])
|
|
11502
11503
|
]),
|
|
@@ -11516,13 +11517,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11516
11517
|
};
|
|
11517
11518
|
}
|
|
11518
11519
|
});
|
|
11519
|
-
const _hoisted_1$
|
|
11520
|
+
const _hoisted_1$M = {
|
|
11520
11521
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
11521
11522
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
11522
11523
|
};
|
|
11523
|
-
const _hoisted_2$
|
|
11524
|
-
const _hoisted_3$
|
|
11525
|
-
const _sfc_main$
|
|
11524
|
+
const _hoisted_2$w = { key: 0 };
|
|
11525
|
+
const _hoisted_3$n = ["placeholder"];
|
|
11526
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
11526
11527
|
__name: "HierarchyFacet",
|
|
11527
11528
|
props: {
|
|
11528
11529
|
options: {},
|
|
@@ -11572,19 +11573,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11572
11573
|
showAll.value = true;
|
|
11573
11574
|
};
|
|
11574
11575
|
return (_ctx, _cache) => {
|
|
11575
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11576
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11576
|
+
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
11577
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
|
|
11577
11578
|
withDirectives(createBaseVNode("input", {
|
|
11578
11579
|
class: "lupa-term-filter",
|
|
11579
11580
|
"data-cy": "lupa-term-filter",
|
|
11580
11581
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
11581
11582
|
placeholder: _ctx.options.labels.facetFilter
|
|
11582
|
-
}, null, 8, _hoisted_3$
|
|
11583
|
+
}, null, 8, _hoisted_3$n), [
|
|
11583
11584
|
[vModelText, termFilter.value]
|
|
11584
11585
|
])
|
|
11585
11586
|
])) : createCommentVNode("", true),
|
|
11586
11587
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
11587
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11588
|
+
return openBlock(), createBlock(_sfc_main$Q, {
|
|
11588
11589
|
key: item.title,
|
|
11589
11590
|
options: _ctx.options,
|
|
11590
11591
|
item,
|
|
@@ -11604,20 +11605,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11604
11605
|
};
|
|
11605
11606
|
}
|
|
11606
11607
|
});
|
|
11607
|
-
const _hoisted_1$
|
|
11608
|
-
const _hoisted_2$
|
|
11608
|
+
const _hoisted_1$L = { class: "lupa-facet-label-text" };
|
|
11609
|
+
const _hoisted_2$v = {
|
|
11609
11610
|
key: 0,
|
|
11610
11611
|
class: "lupa-facet-content",
|
|
11611
11612
|
"data-cy": "lupa-facet-content"
|
|
11612
11613
|
};
|
|
11613
11614
|
const __default__$2 = {
|
|
11614
11615
|
components: {
|
|
11615
|
-
TermFacet: _sfc_main$
|
|
11616
|
-
StatsFacet: _sfc_main$
|
|
11617
|
-
HierarchyFacet: _sfc_main$
|
|
11616
|
+
TermFacet: _sfc_main$S,
|
|
11617
|
+
StatsFacet: _sfc_main$R,
|
|
11618
|
+
HierarchyFacet: _sfc_main$P
|
|
11618
11619
|
}
|
|
11619
11620
|
};
|
|
11620
|
-
const _sfc_main$
|
|
11621
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
11621
11622
|
__name: "FacetDisplay",
|
|
11622
11623
|
props: {
|
|
11623
11624
|
options: {},
|
|
@@ -11728,12 +11729,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11728
11729
|
"data-cy": "lupa-search-result-facet-label",
|
|
11729
11730
|
onClick: toggleFacet
|
|
11730
11731
|
}, [
|
|
11731
|
-
createBaseVNode("div", _hoisted_1$
|
|
11732
|
+
createBaseVNode("div", _hoisted_1$L, toDisplayString(facet.value.label), 1),
|
|
11732
11733
|
createBaseVNode("div", {
|
|
11733
11734
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
11734
11735
|
}, null, 2)
|
|
11735
11736
|
], 2),
|
|
11736
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11737
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
|
|
11737
11738
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
11738
11739
|
facet: facet.value,
|
|
11739
11740
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -11751,12 +11752,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11751
11752
|
};
|
|
11752
11753
|
}
|
|
11753
11754
|
}));
|
|
11754
|
-
const _hoisted_1$
|
|
11755
|
-
const _hoisted_2$
|
|
11755
|
+
const _hoisted_1$K = { class: "lupa-search-result-facet-section" };
|
|
11756
|
+
const _hoisted_2$u = {
|
|
11756
11757
|
key: 0,
|
|
11757
11758
|
class: "lupa-facets-title"
|
|
11758
11759
|
};
|
|
11759
|
-
const _sfc_main$
|
|
11760
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
11760
11761
|
__name: "FacetList",
|
|
11761
11762
|
props: {
|
|
11762
11763
|
options: {},
|
|
@@ -11790,14 +11791,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11790
11791
|
};
|
|
11791
11792
|
return (_ctx, _cache) => {
|
|
11792
11793
|
var _a;
|
|
11793
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11794
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11794
|
+
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
11795
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$u, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
11795
11796
|
createBaseVNode("div", {
|
|
11796
11797
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
11797
11798
|
}, [
|
|
11798
11799
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
11799
11800
|
var _a2;
|
|
11800
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11801
|
+
return openBlock(), createBlock(_sfc_main$O, {
|
|
11801
11802
|
key: facet.key,
|
|
11802
11803
|
facet,
|
|
11803
11804
|
currentFilters: currentFiltersValue.value,
|
|
@@ -11812,8 +11813,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11812
11813
|
};
|
|
11813
11814
|
}
|
|
11814
11815
|
});
|
|
11815
|
-
const _hoisted_1$
|
|
11816
|
-
const _sfc_main$
|
|
11816
|
+
const _hoisted_1$J = { class: "lupa-search-result-facets" };
|
|
11817
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
11817
11818
|
__name: "Facets",
|
|
11818
11819
|
props: {
|
|
11819
11820
|
options: {},
|
|
@@ -11859,8 +11860,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11859
11860
|
paramStore.removeParameters({ paramsToRemove: [param] });
|
|
11860
11861
|
};
|
|
11861
11862
|
return (_ctx, _cache) => {
|
|
11862
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11863
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
11863
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
11864
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$N, {
|
|
11864
11865
|
key: 0,
|
|
11865
11866
|
options: _ctx.options,
|
|
11866
11867
|
facets: regularFacets.value,
|
|
@@ -11874,11 +11875,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11874
11875
|
};
|
|
11875
11876
|
}
|
|
11876
11877
|
});
|
|
11877
|
-
const _hoisted_1$
|
|
11878
|
+
const _hoisted_1$I = {
|
|
11878
11879
|
id: "lupa-search-result-filters",
|
|
11879
11880
|
class: "lupa-search-result-filters"
|
|
11880
11881
|
};
|
|
11881
|
-
const _sfc_main$
|
|
11882
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
11882
11883
|
__name: "SearchResultsFilters",
|
|
11883
11884
|
props: {
|
|
11884
11885
|
options: {},
|
|
@@ -11907,19 +11908,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11907
11908
|
__expose({ fetch: fetch2 });
|
|
11908
11909
|
return (_ctx, _cache) => {
|
|
11909
11910
|
var _a;
|
|
11910
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11911
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
11911
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
11912
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$V, {
|
|
11912
11913
|
key: 0,
|
|
11913
11914
|
options: _ctx.options.currentFilters,
|
|
11914
11915
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
11915
11916
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
11916
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
11917
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$T, {
|
|
11917
11918
|
key: 1,
|
|
11918
11919
|
options: _ctx.options.categories,
|
|
11919
11920
|
ref_key: "categoryFilters",
|
|
11920
11921
|
ref: categoryFilters
|
|
11921
11922
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
11922
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
11923
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
|
|
11923
11924
|
key: 2,
|
|
11924
11925
|
options: _ctx.options.facets
|
|
11925
11926
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -11927,20 +11928,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11927
11928
|
};
|
|
11928
11929
|
}
|
|
11929
11930
|
});
|
|
11930
|
-
const _hoisted_1$
|
|
11931
|
+
const _hoisted_1$H = {
|
|
11931
11932
|
key: 0,
|
|
11932
11933
|
class: "lupa-mobile-filter-sidebar"
|
|
11933
11934
|
};
|
|
11934
|
-
const _hoisted_2$
|
|
11935
|
-
const _hoisted_3$
|
|
11935
|
+
const _hoisted_2$t = ["onClick"];
|
|
11936
|
+
const _hoisted_3$m = { class: "lupa-mobile-sidebar-content" };
|
|
11936
11937
|
const _hoisted_4$f = { class: "lupa-sidebar-top" };
|
|
11937
11938
|
const _hoisted_5$8 = { class: "lupa-sidebar-title" };
|
|
11938
|
-
const _hoisted_6$
|
|
11939
|
+
const _hoisted_6$6 = {
|
|
11939
11940
|
key: 0,
|
|
11940
11941
|
class: "lupa-sidebar-filter-count"
|
|
11941
11942
|
};
|
|
11942
11943
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
11943
|
-
const _sfc_main$
|
|
11944
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
11944
11945
|
__name: "MobileFilterSidebar",
|
|
11945
11946
|
props: {
|
|
11946
11947
|
options: {}
|
|
@@ -11966,16 +11967,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11966
11967
|
searchResultStore.setSidebarState({ visible: false });
|
|
11967
11968
|
};
|
|
11968
11969
|
return (_ctx, _cache) => {
|
|
11969
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11970
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
11970
11971
|
createBaseVNode("div", {
|
|
11971
11972
|
class: "lupa-sidebar-close",
|
|
11972
11973
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
11973
|
-
}, null, 8, _hoisted_2$
|
|
11974
|
-
createBaseVNode("div", _hoisted_3$
|
|
11974
|
+
}, null, 8, _hoisted_2$t),
|
|
11975
|
+
createBaseVNode("div", _hoisted_3$m, [
|
|
11975
11976
|
createBaseVNode("div", _hoisted_4$f, [
|
|
11976
11977
|
createBaseVNode("div", _hoisted_5$8, [
|
|
11977
11978
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
11978
|
-
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
11979
|
+
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
11979
11980
|
]),
|
|
11980
11981
|
createBaseVNode("div", {
|
|
11981
11982
|
class: "lupa-filter-toggle-mobile",
|
|
@@ -11983,7 +11984,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11983
11984
|
})
|
|
11984
11985
|
]),
|
|
11985
11986
|
createBaseVNode("div", _hoisted_7$4, [
|
|
11986
|
-
createVNode(_sfc_main$
|
|
11987
|
+
createVNode(_sfc_main$L, {
|
|
11987
11988
|
options: _ctx.options,
|
|
11988
11989
|
expandable: isActiveFiltersExpanded.value
|
|
11989
11990
|
}, null, 8, ["options", "expandable"])
|
|
@@ -11993,14 +11994,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11993
11994
|
};
|
|
11994
11995
|
}
|
|
11995
11996
|
});
|
|
11996
|
-
const _hoisted_1$
|
|
11997
|
-
const _hoisted_2$
|
|
11998
|
-
const _hoisted_3$
|
|
11997
|
+
const _hoisted_1$G = { id: "lupa-search-results-breadcrumbs" };
|
|
11998
|
+
const _hoisted_2$s = ["href", "onClick"];
|
|
11999
|
+
const _hoisted_3$l = {
|
|
11999
12000
|
key: 1,
|
|
12000
12001
|
class: "lupa-search-results-breadcrumb-text"
|
|
12001
12002
|
};
|
|
12002
12003
|
const _hoisted_4$e = { key: 2 };
|
|
12003
|
-
const _sfc_main$
|
|
12004
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
12004
12005
|
__name: "SearchResultsBreadcrumbs",
|
|
12005
12006
|
props: {
|
|
12006
12007
|
breadcrumbs: {}
|
|
@@ -12025,7 +12026,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12025
12026
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
12026
12027
|
};
|
|
12027
12028
|
return (_ctx, _cache) => {
|
|
12028
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12029
|
+
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
12029
12030
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
12030
12031
|
return openBlock(), createElementBlock("span", {
|
|
12031
12032
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -12039,7 +12040,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12039
12040
|
var _a;
|
|
12040
12041
|
return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
12041
12042
|
}
|
|
12042
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
12043
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$l, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
12043
12044
|
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
|
|
12044
12045
|
]);
|
|
12045
12046
|
}), 128))
|
|
@@ -12047,11 +12048,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12047
12048
|
};
|
|
12048
12049
|
}
|
|
12049
12050
|
});
|
|
12050
|
-
const _hoisted_1$
|
|
12051
|
+
const _hoisted_1$F = {
|
|
12051
12052
|
id: "lupa-search-result-filters",
|
|
12052
12053
|
class: "lupa-search-result-filters"
|
|
12053
12054
|
};
|
|
12054
|
-
const _sfc_main$
|
|
12055
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
12055
12056
|
__name: "FiltersTopDropdown",
|
|
12056
12057
|
props: {
|
|
12057
12058
|
options: {}
|
|
@@ -12059,8 +12060,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12059
12060
|
setup(__props) {
|
|
12060
12061
|
return (_ctx, _cache) => {
|
|
12061
12062
|
var _a;
|
|
12062
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12063
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
12063
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
12064
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
|
|
12064
12065
|
key: 0,
|
|
12065
12066
|
options: _ctx.options.facets,
|
|
12066
12067
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -12070,8 +12071,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12070
12071
|
};
|
|
12071
12072
|
}
|
|
12072
12073
|
});
|
|
12073
|
-
const _hoisted_1$
|
|
12074
|
-
const _sfc_main$
|
|
12074
|
+
const _hoisted_1$E = { id: "lupa-search-results-layout-selection" };
|
|
12075
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
12075
12076
|
__name: "SearchResultsLayoutSelection",
|
|
12076
12077
|
setup(__props) {
|
|
12077
12078
|
const searchResultStore = useSearchResultStore();
|
|
@@ -12082,7 +12083,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12082
12083
|
searchResultStore.setLayout(layout2);
|
|
12083
12084
|
};
|
|
12084
12085
|
return (_ctx, _cache) => {
|
|
12085
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12086
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
12086
12087
|
createBaseVNode("div", {
|
|
12087
12088
|
class: normalizeClass([
|
|
12088
12089
|
"lupa-layout-selection-grid",
|
|
@@ -12104,11 +12105,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12104
12105
|
};
|
|
12105
12106
|
}
|
|
12106
12107
|
});
|
|
12107
|
-
const _hoisted_1$
|
|
12108
|
+
const _hoisted_1$D = {
|
|
12108
12109
|
key: 0,
|
|
12109
12110
|
class: "lupa-mobile-toggle-filter-count"
|
|
12110
12111
|
};
|
|
12111
|
-
const _sfc_main$
|
|
12112
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
12112
12113
|
__name: "SearchResultsMobileToggle",
|
|
12113
12114
|
props: {
|
|
12114
12115
|
label: {},
|
|
@@ -12126,26 +12127,26 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12126
12127
|
onClick: handleMobileToggle
|
|
12127
12128
|
}, [
|
|
12128
12129
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
12129
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
12130
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$D, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
12130
12131
|
], 2);
|
|
12131
12132
|
};
|
|
12132
12133
|
}
|
|
12133
12134
|
});
|
|
12134
|
-
const _hoisted_1$
|
|
12135
|
+
const _hoisted_1$C = {
|
|
12135
12136
|
key: 0,
|
|
12136
12137
|
id: "lupa-search-results-page-select",
|
|
12137
12138
|
"data-cy": "lupa-search-results-page-select"
|
|
12138
12139
|
};
|
|
12139
|
-
const _hoisted_2$
|
|
12140
|
+
const _hoisted_2$r = {
|
|
12140
12141
|
key: 0,
|
|
12141
12142
|
class: "lupa-page-number-separator"
|
|
12142
12143
|
};
|
|
12143
|
-
const _hoisted_3$
|
|
12144
|
+
const _hoisted_3$k = ["onClick"];
|
|
12144
12145
|
const _hoisted_4$d = {
|
|
12145
12146
|
key: 0,
|
|
12146
12147
|
class: "lupa-page-number-separator"
|
|
12147
12148
|
};
|
|
12148
|
-
const _sfc_main$
|
|
12149
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
12149
12150
|
__name: "SearchResultsPageSelect",
|
|
12150
12151
|
props: {
|
|
12151
12152
|
lastPageLabel: {},
|
|
@@ -12207,7 +12208,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12207
12208
|
}
|
|
12208
12209
|
};
|
|
12209
12210
|
return (_ctx, _cache) => {
|
|
12210
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
12211
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
12211
12212
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
12212
12213
|
key: 0,
|
|
12213
12214
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -12218,7 +12219,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12218
12219
|
class: "lupa-page-number lupa-page-number-first",
|
|
12219
12220
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
12220
12221
|
}, " 1 "),
|
|
12221
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12222
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, "...")) : createCommentVNode("", true)
|
|
12222
12223
|
], 64)) : createCommentVNode("", true),
|
|
12223
12224
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
12224
12225
|
return openBlock(), createElementBlock("div", {
|
|
@@ -12229,7 +12230,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12229
12230
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
12230
12231
|
]),
|
|
12231
12232
|
"data-cy": "lupa-page-number"
|
|
12232
|
-
}, toDisplayString(page), 11, _hoisted_3$
|
|
12233
|
+
}, toDisplayString(page), 11, _hoisted_3$k);
|
|
12233
12234
|
}), 128)),
|
|
12234
12235
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
12235
12236
|
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$d, "...")) : createCommentVNode("", true),
|
|
@@ -12251,13 +12252,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12251
12252
|
};
|
|
12252
12253
|
}
|
|
12253
12254
|
});
|
|
12254
|
-
const _hoisted_1$
|
|
12255
|
+
const _hoisted_1$B = {
|
|
12255
12256
|
id: "lupa-search-results-page-size",
|
|
12256
12257
|
"data-cy": "lupa-search-results-page-size"
|
|
12257
12258
|
};
|
|
12258
|
-
const _hoisted_2$
|
|
12259
|
-
const _hoisted_3$
|
|
12260
|
-
const _sfc_main$
|
|
12259
|
+
const _hoisted_2$q = { id: "lupa-select" };
|
|
12260
|
+
const _hoisted_3$j = { class: "lupa-select-label" };
|
|
12261
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
12261
12262
|
__name: "SearchResultsPageSize",
|
|
12262
12263
|
props: {
|
|
12263
12264
|
label: {},
|
|
@@ -12274,9 +12275,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12274
12275
|
});
|
|
12275
12276
|
};
|
|
12276
12277
|
return (_ctx, _cache) => {
|
|
12277
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12278
|
-
createBaseVNode("div", _hoisted_2$
|
|
12279
|
-
createBaseVNode("label", _hoisted_3$
|
|
12278
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
12279
|
+
createBaseVNode("div", _hoisted_2$q, [
|
|
12280
|
+
createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.label), 1),
|
|
12280
12281
|
createBaseVNode("select", {
|
|
12281
12282
|
class: "lupa-select-dropdown",
|
|
12282
12283
|
"data-cy": "lupa-page-size-select-dropdown",
|
|
@@ -12293,14 +12294,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12293
12294
|
};
|
|
12294
12295
|
}
|
|
12295
12296
|
});
|
|
12296
|
-
const _hoisted_1$
|
|
12297
|
+
const _hoisted_1$A = {
|
|
12297
12298
|
id: "lupa-search-results-sort",
|
|
12298
12299
|
class: "lupa-search-results-sort"
|
|
12299
12300
|
};
|
|
12300
|
-
const _hoisted_2$
|
|
12301
|
-
const _hoisted_3$
|
|
12301
|
+
const _hoisted_2$p = { id: "lupa-select" };
|
|
12302
|
+
const _hoisted_3$i = { class: "lupa-select-label" };
|
|
12302
12303
|
const _hoisted_4$c = ["value"];
|
|
12303
|
-
const _sfc_main$
|
|
12304
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
12304
12305
|
__name: "SearchResultsSort",
|
|
12305
12306
|
props: {
|
|
12306
12307
|
options: {},
|
|
@@ -12347,9 +12348,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12347
12348
|
previousKey.value = selectedKey.value;
|
|
12348
12349
|
};
|
|
12349
12350
|
return (_ctx, _cache) => {
|
|
12350
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12351
|
-
createBaseVNode("div", _hoisted_2$
|
|
12352
|
-
createBaseVNode("label", _hoisted_3$
|
|
12351
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
12352
|
+
createBaseVNode("div", _hoisted_2$p, [
|
|
12353
|
+
createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.options.label), 1),
|
|
12353
12354
|
withDirectives(createBaseVNode("select", {
|
|
12354
12355
|
class: "lupa-select-dropdown",
|
|
12355
12356
|
"data-cy": "lupa-sort-select-dropdown",
|
|
@@ -12371,14 +12372,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12371
12372
|
};
|
|
12372
12373
|
}
|
|
12373
12374
|
});
|
|
12374
|
-
const _hoisted_1$
|
|
12375
|
-
const _hoisted_2$
|
|
12376
|
-
const _hoisted_3$
|
|
12375
|
+
const _hoisted_1$z = { class: "lupa-toolbar-left" };
|
|
12376
|
+
const _hoisted_2$o = { key: 1 };
|
|
12377
|
+
const _hoisted_3$h = { key: 3 };
|
|
12377
12378
|
const _hoisted_4$b = { key: 5 };
|
|
12378
12379
|
const _hoisted_5$7 = { class: "lupa-toolbar-right" };
|
|
12379
|
-
const _hoisted_6$
|
|
12380
|
+
const _hoisted_6$5 = { key: 1 };
|
|
12380
12381
|
const _hoisted_7$3 = { key: 3 };
|
|
12381
|
-
const _sfc_main$
|
|
12382
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
12382
12383
|
__name: "SearchResultsToolbar",
|
|
12383
12384
|
props: {
|
|
12384
12385
|
options: {},
|
|
@@ -12477,15 +12478,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12477
12478
|
id: "lupa-search-results-toolbar",
|
|
12478
12479
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
12479
12480
|
}, [
|
|
12480
|
-
createBaseVNode("div", _hoisted_1$
|
|
12481
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
12482
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
12481
|
+
createBaseVNode("div", _hoisted_1$z, [
|
|
12482
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$H, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$o)),
|
|
12483
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Y, {
|
|
12483
12484
|
key: 2,
|
|
12484
12485
|
label: searchSummaryLabel.value,
|
|
12485
12486
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
12486
12487
|
onClear: handleClearAll
|
|
12487
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
12488
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
12488
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$h)),
|
|
12489
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$F, {
|
|
12489
12490
|
key: 4,
|
|
12490
12491
|
options: paginationOptions.value.pageSelect,
|
|
12491
12492
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
@@ -12493,16 +12494,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12493
12494
|
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$b))
|
|
12494
12495
|
]),
|
|
12495
12496
|
createBaseVNode("div", _hoisted_5$7, [
|
|
12496
|
-
createVNode(_sfc_main$
|
|
12497
|
+
createVNode(_sfc_main$G, {
|
|
12497
12498
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
12498
12499
|
"show-filter-count": showMobileFilterCount.value
|
|
12499
12500
|
}, null, 8, ["label", "show-filter-count"]),
|
|
12500
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
12501
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$E, {
|
|
12501
12502
|
key: 0,
|
|
12502
12503
|
options: paginationOptions.value.pageSize,
|
|
12503
12504
|
label: paginationOptions.value.labels.pageSize
|
|
12504
|
-
}, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$
|
|
12505
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
12505
|
+
}, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$5)),
|
|
12506
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$D, {
|
|
12506
12507
|
key: 2,
|
|
12507
12508
|
options: sortOptions.value,
|
|
12508
12509
|
callbacks: callbacks.value
|
|
@@ -12512,14 +12513,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12512
12513
|
};
|
|
12513
12514
|
}
|
|
12514
12515
|
});
|
|
12515
|
-
const _hoisted_1$
|
|
12516
|
-
const _hoisted_2$
|
|
12517
|
-
const _hoisted_3$
|
|
12516
|
+
const _hoisted_1$y = { class: "lupa-badge-title" };
|
|
12517
|
+
const _hoisted_2$n = ["src"];
|
|
12518
|
+
const _hoisted_3$g = { key: 1 };
|
|
12518
12519
|
const _hoisted_4$a = {
|
|
12519
12520
|
key: 0,
|
|
12520
12521
|
class: "lupa-badge-full-text"
|
|
12521
12522
|
};
|
|
12522
|
-
const _sfc_main$
|
|
12523
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
12523
12524
|
__name: "SearchResultGeneratedBadge",
|
|
12524
12525
|
props: {
|
|
12525
12526
|
options: {},
|
|
@@ -12552,20 +12553,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12552
12553
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
12553
12554
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
12554
12555
|
}, [
|
|
12555
|
-
createBaseVNode("span", _hoisted_1$
|
|
12556
|
+
createBaseVNode("span", _hoisted_1$y, [
|
|
12556
12557
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
12557
12558
|
key: 0,
|
|
12558
12559
|
src: image.value
|
|
12559
|
-
}, null, 8, _hoisted_2$
|
|
12560
|
-
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
12560
|
+
}, null, 8, _hoisted_2$n)) : createCommentVNode("", true),
|
|
12561
|
+
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$g, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
12561
12562
|
]),
|
|
12562
12563
|
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$a, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
12563
12564
|
], 6);
|
|
12564
12565
|
};
|
|
12565
12566
|
}
|
|
12566
12567
|
});
|
|
12567
|
-
const _hoisted_1$
|
|
12568
|
-
const _sfc_main$
|
|
12568
|
+
const _hoisted_1$x = { class: "lupa-generated-badges" };
|
|
12569
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
12569
12570
|
__name: "SearchResultGeneratedBadges",
|
|
12570
12571
|
props: {
|
|
12571
12572
|
options: {}
|
|
@@ -12591,9 +12592,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12591
12592
|
})).filter((b) => Boolean(b.id));
|
|
12592
12593
|
});
|
|
12593
12594
|
return (_ctx, _cache) => {
|
|
12594
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12595
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
12595
12596
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
12596
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12597
|
+
return openBlock(), createBlock(_sfc_main$B, {
|
|
12597
12598
|
key: badge.id,
|
|
12598
12599
|
badge,
|
|
12599
12600
|
options: _ctx.options
|
|
@@ -12603,8 +12604,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12603
12604
|
};
|
|
12604
12605
|
}
|
|
12605
12606
|
});
|
|
12606
|
-
const _hoisted_1$
|
|
12607
|
-
const _sfc_main$
|
|
12607
|
+
const _hoisted_1$w = ["innerHTML"];
|
|
12608
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
12608
12609
|
__name: "CustomBadge",
|
|
12609
12610
|
props: {
|
|
12610
12611
|
badge: {}
|
|
@@ -12623,12 +12624,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12623
12624
|
return openBlock(), createElementBlock("div", {
|
|
12624
12625
|
class: normalizeClass(className.value),
|
|
12625
12626
|
innerHTML: text.value
|
|
12626
|
-
}, null, 10, _hoisted_1$
|
|
12627
|
+
}, null, 10, _hoisted_1$w);
|
|
12627
12628
|
};
|
|
12628
12629
|
}
|
|
12629
12630
|
});
|
|
12630
|
-
const _hoisted_1$
|
|
12631
|
-
const _sfc_main$
|
|
12631
|
+
const _hoisted_1$v = { class: "lupa-text-badges" };
|
|
12632
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
12632
12633
|
__name: "TextBadge",
|
|
12633
12634
|
props: {
|
|
12634
12635
|
badge: {}
|
|
@@ -12643,7 +12644,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12643
12644
|
return badges.value.slice(0, props.badge.maxItems);
|
|
12644
12645
|
});
|
|
12645
12646
|
return (_ctx, _cache) => {
|
|
12646
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12647
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
12647
12648
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
12648
12649
|
return openBlock(), createElementBlock("div", {
|
|
12649
12650
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -12654,9 +12655,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12654
12655
|
};
|
|
12655
12656
|
}
|
|
12656
12657
|
});
|
|
12657
|
-
const _hoisted_1$
|
|
12658
|
-
const _hoisted_2$
|
|
12659
|
-
const _sfc_main$
|
|
12658
|
+
const _hoisted_1$u = { class: "lupa-image-badges" };
|
|
12659
|
+
const _hoisted_2$m = ["src"];
|
|
12660
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
12660
12661
|
__name: "ImageBadge",
|
|
12661
12662
|
props: {
|
|
12662
12663
|
badge: {}
|
|
@@ -12676,7 +12677,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12676
12677
|
return `${props.badge.rootImageUrl}${src}`;
|
|
12677
12678
|
};
|
|
12678
12679
|
return (_ctx, _cache) => {
|
|
12679
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12680
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
12680
12681
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
12681
12682
|
return openBlock(), createElementBlock("div", {
|
|
12682
12683
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -12684,22 +12685,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12684
12685
|
}, [
|
|
12685
12686
|
createBaseVNode("img", {
|
|
12686
12687
|
src: getImageUrl(item)
|
|
12687
|
-
}, null, 8, _hoisted_2$
|
|
12688
|
+
}, null, 8, _hoisted_2$m)
|
|
12688
12689
|
]);
|
|
12689
12690
|
}), 128))
|
|
12690
12691
|
]);
|
|
12691
12692
|
};
|
|
12692
12693
|
}
|
|
12693
12694
|
});
|
|
12694
|
-
const _hoisted_1$
|
|
12695
|
+
const _hoisted_1$t = { id: "lupa-search-results-badges" };
|
|
12695
12696
|
const __default__$1 = {
|
|
12696
12697
|
components: {
|
|
12697
|
-
CustomBadge: _sfc_main$
|
|
12698
|
-
TextBadge: _sfc_main$
|
|
12699
|
-
ImageBadge: _sfc_main$
|
|
12698
|
+
CustomBadge: _sfc_main$z,
|
|
12699
|
+
TextBadge: _sfc_main$y,
|
|
12700
|
+
ImageBadge: _sfc_main$x
|
|
12700
12701
|
}
|
|
12701
12702
|
};
|
|
12702
|
-
const _sfc_main$
|
|
12703
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
12703
12704
|
__name: "SearchResultsBadgeWrapper",
|
|
12704
12705
|
props: {
|
|
12705
12706
|
position: {},
|
|
@@ -12745,7 +12746,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12745
12746
|
}
|
|
12746
12747
|
};
|
|
12747
12748
|
return (_ctx, _cache) => {
|
|
12748
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12749
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
12749
12750
|
createBaseVNode("div", {
|
|
12750
12751
|
id: "lupa-badges",
|
|
12751
12752
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -12756,7 +12757,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12756
12757
|
badge
|
|
12757
12758
|
}, null, 8, ["badge"]);
|
|
12758
12759
|
}), 128)),
|
|
12759
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
12760
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$A, {
|
|
12760
12761
|
key: 0,
|
|
12761
12762
|
options: _ctx.options
|
|
12762
12763
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -12765,7 +12766,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12765
12766
|
};
|
|
12766
12767
|
}
|
|
12767
12768
|
}));
|
|
12768
|
-
const _sfc_main$
|
|
12769
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
12769
12770
|
__name: "SearchResultsProductImage",
|
|
12770
12771
|
props: {
|
|
12771
12772
|
item: {},
|
|
@@ -12773,7 +12774,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12773
12774
|
},
|
|
12774
12775
|
setup(__props) {
|
|
12775
12776
|
return (_ctx, _cache) => {
|
|
12776
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12777
|
+
return openBlock(), createBlock(_sfc_main$1c, {
|
|
12777
12778
|
item: _ctx.item,
|
|
12778
12779
|
options: _ctx.options,
|
|
12779
12780
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -12782,14 +12783,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12782
12783
|
};
|
|
12783
12784
|
}
|
|
12784
12785
|
});
|
|
12785
|
-
const _hoisted_1$
|
|
12786
|
-
const _hoisted_2$
|
|
12787
|
-
const _hoisted_3$
|
|
12786
|
+
const _hoisted_1$s = ["innerHTML"];
|
|
12787
|
+
const _hoisted_2$l = ["title"];
|
|
12788
|
+
const _hoisted_3$f = {
|
|
12788
12789
|
key: 0,
|
|
12789
12790
|
class: "lupa-search-results-product-title-text"
|
|
12790
12791
|
};
|
|
12791
12792
|
const _hoisted_4$9 = ["href"];
|
|
12792
|
-
const _sfc_main$
|
|
12793
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
12793
12794
|
__name: "SearchResultsProductTitle",
|
|
12794
12795
|
props: {
|
|
12795
12796
|
item: {},
|
|
@@ -12822,25 +12823,25 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12822
12823
|
class: "lupa-search-results-product-title",
|
|
12823
12824
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12824
12825
|
innerHTML: title.value
|
|
12825
|
-
}, null, 12, _hoisted_1$
|
|
12826
|
+
}, null, 12, _hoisted_1$s)) : (openBlock(), createElementBlock("div", {
|
|
12826
12827
|
key: 1,
|
|
12827
12828
|
class: "lupa-search-results-product-title",
|
|
12828
12829
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12829
12830
|
title: title.value
|
|
12830
12831
|
}, [
|
|
12831
|
-
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
12832
|
+
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
12832
12833
|
_ctx.options.link ? (openBlock(), createElementBlock("a", {
|
|
12833
12834
|
key: 1,
|
|
12834
12835
|
href: _ctx.link,
|
|
12835
12836
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
12836
12837
|
onClick: handleNavigation
|
|
12837
12838
|
}, toDisplayString(title.value), 9, _hoisted_4$9)) : createCommentVNode("", true)
|
|
12838
|
-
], 12, _hoisted_2$
|
|
12839
|
+
], 12, _hoisted_2$l));
|
|
12839
12840
|
};
|
|
12840
12841
|
}
|
|
12841
12842
|
});
|
|
12842
|
-
const _hoisted_1$
|
|
12843
|
-
const _sfc_main$
|
|
12843
|
+
const _hoisted_1$r = ["innerHTML"];
|
|
12844
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
12844
12845
|
__name: "SearchResultsProductDescription",
|
|
12845
12846
|
props: {
|
|
12846
12847
|
item: {},
|
|
@@ -12864,7 +12865,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12864
12865
|
class: "lupa-search-results-product-description",
|
|
12865
12866
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12866
12867
|
innerHTML: description.value
|
|
12867
|
-
}, null, 12, _hoisted_1$
|
|
12868
|
+
}, null, 12, _hoisted_1$r)) : (openBlock(), createElementBlock("div", {
|
|
12868
12869
|
key: 1,
|
|
12869
12870
|
class: "lupa-search-results-product-description",
|
|
12870
12871
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -12872,15 +12873,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12872
12873
|
};
|
|
12873
12874
|
}
|
|
12874
12875
|
});
|
|
12875
|
-
const _hoisted_1$
|
|
12876
|
-
const _hoisted_2$
|
|
12877
|
-
const _hoisted_3$
|
|
12876
|
+
const _hoisted_1$q = { id: "lupa-search-results-rating" };
|
|
12877
|
+
const _hoisted_2$k = { class: "lupa-ratings" };
|
|
12878
|
+
const _hoisted_3$e = { class: "lupa-ratings-base" };
|
|
12878
12879
|
const _hoisted_4$8 = ["innerHTML"];
|
|
12879
12880
|
const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
|
|
12880
|
-
const _hoisted_6$
|
|
12881
|
+
const _hoisted_6$4 = ["innerHTML"];
|
|
12881
12882
|
const _hoisted_7$2 = ["href"];
|
|
12882
12883
|
const STAR_COUNT = 5;
|
|
12883
|
-
const _sfc_main$
|
|
12884
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
12884
12885
|
__name: "SearchResultsProductRating",
|
|
12885
12886
|
props: {
|
|
12886
12887
|
item: {},
|
|
@@ -12911,9 +12912,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12911
12912
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
12912
12913
|
});
|
|
12913
12914
|
return (_ctx, _cache) => {
|
|
12914
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12915
|
-
createBaseVNode("div", _hoisted_2$
|
|
12916
|
-
createBaseVNode("div", _hoisted_3$
|
|
12915
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
12916
|
+
createBaseVNode("div", _hoisted_2$k, [
|
|
12917
|
+
createBaseVNode("div", _hoisted_3$e, [
|
|
12917
12918
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
12918
12919
|
return openBlock(), createElementBlock("div", {
|
|
12919
12920
|
key: index,
|
|
@@ -12932,7 +12933,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12932
12933
|
key: index,
|
|
12933
12934
|
innerHTML: star,
|
|
12934
12935
|
class: "lupa-rating lupa-rating-highlighted"
|
|
12935
|
-
}, null, 8, _hoisted_6$
|
|
12936
|
+
}, null, 8, _hoisted_6$4);
|
|
12936
12937
|
}), 128))
|
|
12937
12938
|
], 4)
|
|
12938
12939
|
])
|
|
@@ -12945,11 +12946,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12945
12946
|
};
|
|
12946
12947
|
}
|
|
12947
12948
|
});
|
|
12948
|
-
const _hoisted_1$
|
|
12949
|
+
const _hoisted_1$p = {
|
|
12949
12950
|
class: "lupa-search-results-product-regular-price",
|
|
12950
12951
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
12951
12952
|
};
|
|
12952
|
-
const _sfc_main$
|
|
12953
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
12953
12954
|
__name: "SearchResultsProductRegularPrice",
|
|
12954
12955
|
props: {
|
|
12955
12956
|
item: {},
|
|
@@ -12967,15 +12968,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12967
12968
|
);
|
|
12968
12969
|
});
|
|
12969
12970
|
return (_ctx, _cache) => {
|
|
12970
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12971
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, toDisplayString(price.value), 1);
|
|
12971
12972
|
};
|
|
12972
12973
|
}
|
|
12973
12974
|
});
|
|
12974
|
-
const _hoisted_1$
|
|
12975
|
+
const _hoisted_1$o = {
|
|
12975
12976
|
class: "lupa-search-results-product-price",
|
|
12976
12977
|
"data-cy": "lupa-search-results-product-price"
|
|
12977
12978
|
};
|
|
12978
|
-
const _sfc_main$
|
|
12979
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
12979
12980
|
__name: "SearchResultsProductPrice",
|
|
12980
12981
|
props: {
|
|
12981
12982
|
item: {},
|
|
@@ -12993,16 +12994,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12993
12994
|
);
|
|
12994
12995
|
});
|
|
12995
12996
|
return (_ctx, _cache) => {
|
|
12996
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12997
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
12997
12998
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
12998
12999
|
]);
|
|
12999
13000
|
};
|
|
13000
13001
|
}
|
|
13001
13002
|
});
|
|
13002
|
-
const _hoisted_1$
|
|
13003
|
-
const _hoisted_2$
|
|
13004
|
-
const _hoisted_3$
|
|
13005
|
-
const _sfc_main$
|
|
13003
|
+
const _hoisted_1$n = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
13004
|
+
const _hoisted_2$j = { class: "lupa-search-results-product-addtocart" };
|
|
13005
|
+
const _hoisted_3$d = ["onClick", "disabled"];
|
|
13006
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
13006
13007
|
__name: "SearchResultsProductAddToCart",
|
|
13007
13008
|
props: {
|
|
13008
13009
|
item: {},
|
|
@@ -13029,25 +13030,25 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13029
13030
|
loading.value = false;
|
|
13030
13031
|
});
|
|
13031
13032
|
return (_ctx, _cache) => {
|
|
13032
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13033
|
-
createBaseVNode("div", _hoisted_2$
|
|
13033
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
13034
|
+
createBaseVNode("div", _hoisted_2$j, [
|
|
13034
13035
|
createBaseVNode("button", {
|
|
13035
13036
|
onClick: withModifiers(handleClick, ["stop"]),
|
|
13036
13037
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
13037
13038
|
"data-cy": "lupa-add-to-cart",
|
|
13038
13039
|
disabled: !inStockValue.value || loading.value
|
|
13039
|
-
}, toDisplayString(label.value), 11, _hoisted_3$
|
|
13040
|
+
}, toDisplayString(label.value), 11, _hoisted_3$d)
|
|
13040
13041
|
])
|
|
13041
13042
|
]);
|
|
13042
13043
|
};
|
|
13043
13044
|
}
|
|
13044
13045
|
});
|
|
13045
|
-
const _hoisted_1$
|
|
13046
|
-
const _hoisted_2$
|
|
13047
|
-
const _hoisted_3$
|
|
13046
|
+
const _hoisted_1$m = ["innerHTML"];
|
|
13047
|
+
const _hoisted_2$i = { key: 0 };
|
|
13048
|
+
const _hoisted_3$c = { key: 1 };
|
|
13048
13049
|
const _hoisted_4$7 = { class: "lupa-search-box-custom-label" };
|
|
13049
13050
|
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
13050
|
-
const _sfc_main$
|
|
13051
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
13051
13052
|
__name: "SearchResultsProductCustom",
|
|
13052
13053
|
props: {
|
|
13053
13054
|
item: {},
|
|
@@ -13085,11 +13086,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13085
13086
|
key: 0,
|
|
13086
13087
|
class: className.value,
|
|
13087
13088
|
innerHTML: text.value
|
|
13088
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
13089
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$m)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
13089
13090
|
key: 1,
|
|
13090
13091
|
class: className.value
|
|
13091
13092
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
13092
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13093
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$c, [
|
|
13093
13094
|
createBaseVNode("div", _hoisted_4$7, toDisplayString(label.value), 1),
|
|
13094
13095
|
createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
|
|
13095
13096
|
]))
|
|
@@ -13097,8 +13098,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13097
13098
|
};
|
|
13098
13099
|
}
|
|
13099
13100
|
});
|
|
13100
|
-
const _hoisted_1$
|
|
13101
|
-
const _sfc_main$
|
|
13101
|
+
const _hoisted_1$l = ["innerHTML"];
|
|
13102
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
13102
13103
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
13103
13104
|
props: {
|
|
13104
13105
|
item: {},
|
|
@@ -13122,15 +13123,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13122
13123
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
13123
13124
|
class: className.value,
|
|
13124
13125
|
innerHTML: text.value
|
|
13125
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
13126
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$l);
|
|
13126
13127
|
};
|
|
13127
13128
|
}
|
|
13128
13129
|
});
|
|
13129
|
-
const _hoisted_1$
|
|
13130
|
-
const _hoisted_2$
|
|
13131
|
-
const _hoisted_3$
|
|
13130
|
+
const _hoisted_1$k = { id: "lupa-search-results-rating" };
|
|
13131
|
+
const _hoisted_2$h = ["innerHTML"];
|
|
13132
|
+
const _hoisted_3$b = { class: "lupa-ratings" };
|
|
13132
13133
|
const _hoisted_4$6 = ["href"];
|
|
13133
|
-
const _sfc_main$
|
|
13134
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
13134
13135
|
__name: "SearchResultsProductSingleStarRating",
|
|
13135
13136
|
props: {
|
|
13136
13137
|
item: {},
|
|
@@ -13158,12 +13159,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13158
13159
|
return RATING_STAR_HTML;
|
|
13159
13160
|
});
|
|
13160
13161
|
return (_ctx, _cache) => {
|
|
13161
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13162
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
13162
13163
|
createBaseVNode("div", {
|
|
13163
13164
|
innerHTML: star.value,
|
|
13164
13165
|
class: "lupa-rating lupa-rating-highlighted"
|
|
13165
|
-
}, null, 8, _hoisted_2$
|
|
13166
|
-
createBaseVNode("div", _hoisted_3$
|
|
13166
|
+
}, null, 8, _hoisted_2$h),
|
|
13167
|
+
createBaseVNode("div", _hoisted_3$b, toDisplayString(rating.value), 1),
|
|
13167
13168
|
createBaseVNode("a", {
|
|
13168
13169
|
href: ratingLink.value,
|
|
13169
13170
|
class: "lupa-total-ratings"
|
|
@@ -13174,19 +13175,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13174
13175
|
});
|
|
13175
13176
|
const __default__ = {
|
|
13176
13177
|
components: {
|
|
13177
|
-
SearchResultsProductImage: _sfc_main$
|
|
13178
|
-
SearchResultsProductTitle: _sfc_main$
|
|
13179
|
-
SearchResultsProductDescription: _sfc_main$
|
|
13180
|
-
SearchResultsProductRating: _sfc_main$
|
|
13181
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
13182
|
-
SearchResultsProductPrice: _sfc_main$
|
|
13183
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
13184
|
-
SearchResultsProductCustom: _sfc_main$
|
|
13185
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
13186
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
13187
|
-
}
|
|
13188
|
-
};
|
|
13189
|
-
const _sfc_main$
|
|
13178
|
+
SearchResultsProductImage: _sfc_main$v,
|
|
13179
|
+
SearchResultsProductTitle: _sfc_main$u,
|
|
13180
|
+
SearchResultsProductDescription: _sfc_main$t,
|
|
13181
|
+
SearchResultsProductRating: _sfc_main$s,
|
|
13182
|
+
SearchResultsProductRegularPrice: _sfc_main$r,
|
|
13183
|
+
SearchResultsProductPrice: _sfc_main$q,
|
|
13184
|
+
SearchResultsProductAddToCart: _sfc_main$p,
|
|
13185
|
+
SearchResultsProductCustom: _sfc_main$o,
|
|
13186
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$n,
|
|
13187
|
+
SearchResultsProductSingleStarRating: _sfc_main$m
|
|
13188
|
+
}
|
|
13189
|
+
};
|
|
13190
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
13190
13191
|
__name: "SearchResultsProductCardElement",
|
|
13191
13192
|
props: {
|
|
13192
13193
|
item: {},
|
|
@@ -13256,13 +13257,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13256
13257
|
};
|
|
13257
13258
|
}
|
|
13258
13259
|
}));
|
|
13259
|
-
const _hoisted_1$
|
|
13260
|
-
const _hoisted_2$
|
|
13260
|
+
const _hoisted_1$j = ["href"];
|
|
13261
|
+
const _hoisted_2$g = {
|
|
13261
13262
|
key: 0,
|
|
13262
13263
|
class: "lupa-out-of-stock"
|
|
13263
13264
|
};
|
|
13264
|
-
const _hoisted_3$
|
|
13265
|
-
const _sfc_main$
|
|
13265
|
+
const _hoisted_3$a = { class: "lupa-search-result-product-details-section" };
|
|
13266
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
13266
13267
|
__name: "SearchResultsProductCard",
|
|
13267
13268
|
props: {
|
|
13268
13269
|
product: {},
|
|
@@ -13407,7 +13408,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13407
13408
|
class: normalizeClass(["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]),
|
|
13408
13409
|
onClick: handleClick
|
|
13409
13410
|
}, [
|
|
13410
|
-
createVNode(_sfc_main$
|
|
13411
|
+
createVNode(_sfc_main$w, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
13411
13412
|
createBaseVNode("div", {
|
|
13412
13413
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
13413
13414
|
}, [
|
|
@@ -13417,7 +13418,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13417
13418
|
onClick: handleNavigation
|
|
13418
13419
|
}, [
|
|
13419
13420
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
13420
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13421
|
+
return openBlock(), createBlock(_sfc_main$l, {
|
|
13421
13422
|
class: "lupa-search-results-product-element",
|
|
13422
13423
|
item: _ctx.product,
|
|
13423
13424
|
element,
|
|
@@ -13427,16 +13428,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13427
13428
|
link: link.value
|
|
13428
13429
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
13429
13430
|
}), 128)),
|
|
13430
|
-
createVNode(_sfc_main$
|
|
13431
|
+
createVNode(_sfc_main$w, {
|
|
13431
13432
|
options: badgesOptions.value,
|
|
13432
13433
|
position: "image",
|
|
13433
13434
|
class: "lupa-image-badges"
|
|
13434
13435
|
}, null, 8, ["options"]),
|
|
13435
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13436
|
-
], 8, _hoisted_1$
|
|
13437
|
-
createBaseVNode("div", _hoisted_3$
|
|
13436
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
13437
|
+
], 8, _hoisted_1$j),
|
|
13438
|
+
createBaseVNode("div", _hoisted_3$a, [
|
|
13438
13439
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
13439
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13440
|
+
return openBlock(), createBlock(_sfc_main$l, {
|
|
13440
13441
|
class: "lupa-search-results-product-element",
|
|
13441
13442
|
item: _ctx.product,
|
|
13442
13443
|
element,
|
|
@@ -13454,7 +13455,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13454
13455
|
class: normalizeClass("lupa-element-group-" + group)
|
|
13455
13456
|
}, [
|
|
13456
13457
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
13457
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13458
|
+
return openBlock(), createBlock(_sfc_main$l, {
|
|
13458
13459
|
class: "lupa-search-results-product-element",
|
|
13459
13460
|
item: _ctx.product,
|
|
13460
13461
|
element,
|
|
@@ -13472,23 +13473,23 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13472
13473
|
};
|
|
13473
13474
|
}
|
|
13474
13475
|
});
|
|
13475
|
-
const _hoisted_1$
|
|
13476
|
+
const _hoisted_1$i = {
|
|
13476
13477
|
id: "lupa-search-results-similar-queries",
|
|
13477
13478
|
"data-cy": "lupa-search-results-similar-queries"
|
|
13478
13479
|
};
|
|
13479
|
-
const _hoisted_2$
|
|
13480
|
-
const _hoisted_3$
|
|
13480
|
+
const _hoisted_2$f = { class: "lupa-similar-queries-label" };
|
|
13481
|
+
const _hoisted_3$9 = {
|
|
13481
13482
|
class: "lupa-similar-query-label",
|
|
13482
13483
|
"data-cy": "lupa-similar-query-label"
|
|
13483
13484
|
};
|
|
13484
13485
|
const _hoisted_4$5 = ["onClick"];
|
|
13485
13486
|
const _hoisted_5$4 = ["innerHTML"];
|
|
13486
|
-
const _hoisted_6$
|
|
13487
|
+
const _hoisted_6$3 = { key: 0 };
|
|
13487
13488
|
const _hoisted_7$1 = {
|
|
13488
13489
|
class: "lupa-products",
|
|
13489
13490
|
"data-cy": "lupa-products"
|
|
13490
13491
|
};
|
|
13491
|
-
const _sfc_main$
|
|
13492
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
13492
13493
|
__name: "SearchResultsSimilarQueries",
|
|
13493
13494
|
props: {
|
|
13494
13495
|
labels: {},
|
|
@@ -13518,11 +13519,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13518
13519
|
paramsStore.goToResults({ searchText, facet });
|
|
13519
13520
|
};
|
|
13520
13521
|
return (_ctx, _cache) => {
|
|
13521
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13522
|
-
createBaseVNode("div", _hoisted_2$
|
|
13522
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
13523
|
+
createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
13523
13524
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
13524
13525
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
13525
|
-
createBaseVNode("div", _hoisted_3$
|
|
13526
|
+
createBaseVNode("div", _hoisted_3$9, [
|
|
13526
13527
|
createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
|
|
13527
13528
|
createBaseVNode("span", {
|
|
13528
13529
|
id: "lupa-similar-query-text-component",
|
|
@@ -13533,12 +13534,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13533
13534
|
createBaseVNode("span", {
|
|
13534
13535
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
13535
13536
|
}, null, 8, _hoisted_5$4),
|
|
13536
|
-
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
13537
|
+
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$3, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
13537
13538
|
], 8, _hoisted_4$5)
|
|
13538
13539
|
]),
|
|
13539
13540
|
createBaseVNode("div", _hoisted_7$1, [
|
|
13540
13541
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
13541
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13542
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13542
13543
|
style: normalizeStyle(_ctx.columnSize),
|
|
13543
13544
|
key: getDocumentKey(index2, product),
|
|
13544
13545
|
product,
|
|
@@ -13552,15 +13553,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13552
13553
|
};
|
|
13553
13554
|
}
|
|
13554
13555
|
});
|
|
13555
|
-
const _hoisted_1$
|
|
13556
|
+
const _hoisted_1$h = {
|
|
13556
13557
|
key: 0,
|
|
13557
13558
|
class: "lupa-results-additional-panel"
|
|
13558
13559
|
};
|
|
13559
|
-
const _hoisted_2$
|
|
13560
|
+
const _hoisted_2$e = {
|
|
13560
13561
|
class: "lupa-results-additional-panel-items",
|
|
13561
13562
|
"data-cy": "lupa-results-additional-panel-items"
|
|
13562
13563
|
};
|
|
13563
|
-
const _sfc_main$
|
|
13564
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
13564
13565
|
__name: "AdditionalPanel",
|
|
13565
13566
|
props: {
|
|
13566
13567
|
panel: {},
|
|
@@ -13632,10 +13633,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13632
13633
|
handleQueryChange();
|
|
13633
13634
|
});
|
|
13634
13635
|
return (_ctx, _cache) => {
|
|
13635
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13636
|
-
createBaseVNode("div", _hoisted_2$
|
|
13636
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
13637
|
+
createBaseVNode("div", _hoisted_2$e, [
|
|
13637
13638
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
13638
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13639
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13639
13640
|
key: index,
|
|
13640
13641
|
product: item,
|
|
13641
13642
|
options: _ctx.panel,
|
|
@@ -13653,11 +13654,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13653
13654
|
};
|
|
13654
13655
|
}
|
|
13655
13656
|
});
|
|
13656
|
-
const _hoisted_1$
|
|
13657
|
+
const _hoisted_1$g = {
|
|
13657
13658
|
key: 0,
|
|
13658
13659
|
class: "lupa-results-additional-panels"
|
|
13659
13660
|
};
|
|
13660
|
-
const _sfc_main$
|
|
13661
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
13661
13662
|
__name: "AdditionalPanels",
|
|
13662
13663
|
props: {
|
|
13663
13664
|
options: {},
|
|
@@ -13674,9 +13675,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13674
13675
|
return locationPanels.value.length > 0;
|
|
13675
13676
|
});
|
|
13676
13677
|
return (_ctx, _cache) => {
|
|
13677
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13678
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
13678
13679
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
13679
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13680
|
+
return openBlock(), createBlock(_sfc_main$i, {
|
|
13680
13681
|
key: panel.queryKey,
|
|
13681
13682
|
panel,
|
|
13682
13683
|
options: _ctx.sdkOptions
|
|
@@ -13693,19 +13694,60 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13693
13694
|
}
|
|
13694
13695
|
return target;
|
|
13695
13696
|
};
|
|
13696
|
-
const _sfc_main$
|
|
13697
|
-
const _hoisted_1$
|
|
13698
|
-
const _hoisted_2$
|
|
13697
|
+
const _sfc_main$g = {};
|
|
13698
|
+
const _hoisted_1$f = { class: "lupa-spinner-wrapper" };
|
|
13699
|
+
const _hoisted_2$d = { class: "lupa-spinner" };
|
|
13699
13700
|
function _sfc_render(_ctx, _cache) {
|
|
13700
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13701
|
-
createBaseVNode("div", _hoisted_2$
|
|
13701
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
13702
|
+
createBaseVNode("div", _hoisted_2$d, [
|
|
13702
13703
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
|
|
13703
13704
|
return createBaseVNode("div", { key: x });
|
|
13704
13705
|
}), 64))
|
|
13705
13706
|
])
|
|
13706
13707
|
]);
|
|
13707
13708
|
}
|
|
13708
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13709
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render]]);
|
|
13710
|
+
const _hoisted_1$e = {
|
|
13711
|
+
id: "lupa-search-results-similar-results",
|
|
13712
|
+
"data-cy": "lupa-search-results-similar-results"
|
|
13713
|
+
};
|
|
13714
|
+
const _hoisted_2$c = { class: "lupa-similar-results-label" };
|
|
13715
|
+
const _hoisted_3$8 = {
|
|
13716
|
+
class: "lupa-products",
|
|
13717
|
+
"data-cy": "lupa-products"
|
|
13718
|
+
};
|
|
13719
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
13720
|
+
__name: "SearchResultsSimilarResults",
|
|
13721
|
+
props: {
|
|
13722
|
+
columnSize: {},
|
|
13723
|
+
labels: {},
|
|
13724
|
+
productCardOptions: {}
|
|
13725
|
+
},
|
|
13726
|
+
setup(__props) {
|
|
13727
|
+
const props = __props;
|
|
13728
|
+
const searchResultStore = useSearchResultStore();
|
|
13729
|
+
const { searchResult } = storeToRefs(searchResultStore);
|
|
13730
|
+
const similarResults = computed(() => searchResult.value.similarResults);
|
|
13731
|
+
const getDocumentKey = (index, product) => {
|
|
13732
|
+
return getProductKey(`${index}`, product, props.productCardOptions.idKey);
|
|
13733
|
+
};
|
|
13734
|
+
return (_ctx, _cache) => {
|
|
13735
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
13736
|
+
createBaseVNode("div", _hoisted_2$c, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
13737
|
+
createBaseVNode("div", _hoisted_3$8, [
|
|
13738
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
13739
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13740
|
+
style: normalizeStyle(_ctx.columnSize),
|
|
13741
|
+
key: getDocumentKey(index, product),
|
|
13742
|
+
product,
|
|
13743
|
+
options: _ctx.productCardOptions
|
|
13744
|
+
}, null, 8, ["style", "product", "options"]);
|
|
13745
|
+
}), 128))
|
|
13746
|
+
])
|
|
13747
|
+
]);
|
|
13748
|
+
};
|
|
13749
|
+
}
|
|
13750
|
+
});
|
|
13709
13751
|
const _hoisted_1$d = { id: "lupa-search-results-products" };
|
|
13710
13752
|
const _hoisted_2$b = {
|
|
13711
13753
|
class: "lupa-products",
|
|
@@ -13722,6 +13764,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13722
13764
|
"data-cy": "lupa-no-results"
|
|
13723
13765
|
};
|
|
13724
13766
|
const _hoisted_5$3 = { key: 4 };
|
|
13767
|
+
const _hoisted_6$2 = { key: 5 };
|
|
13725
13768
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
13726
13769
|
__name: "SearchResultsProducts",
|
|
13727
13770
|
props: {
|
|
@@ -13759,6 +13802,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13759
13802
|
const similarQueriesLabels = computed(() => {
|
|
13760
13803
|
return props.options.labels;
|
|
13761
13804
|
});
|
|
13805
|
+
const similarResultsLabels = computed(() => {
|
|
13806
|
+
return props.options.labels;
|
|
13807
|
+
});
|
|
13762
13808
|
const showTopFilters = computed(() => {
|
|
13763
13809
|
var _a, _b, _c;
|
|
13764
13810
|
return ((_c = (_b = (_a = props.options.filters) == null ? void 0 : _a.facets) == null ? void 0 : _b.style) == null ? void 0 : _c.type) === "top-dropdown";
|
|
@@ -13801,7 +13847,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13801
13847
|
});
|
|
13802
13848
|
const hasSimilarQueries = computed(() => {
|
|
13803
13849
|
var _a;
|
|
13804
|
-
return (_a = searchResult.value.similarQueries) == null ? void 0 : _a.length;
|
|
13850
|
+
return Boolean((_a = searchResult.value.similarQueries) == null ? void 0 : _a.length);
|
|
13851
|
+
});
|
|
13852
|
+
const hasSimilarResults = computed(() => {
|
|
13853
|
+
var _a, _b;
|
|
13854
|
+
return Boolean((_b = (_a = searchResult.value.similarResults) == null ? void 0 : _a.items) == null ? void 0 : _b.length);
|
|
13805
13855
|
});
|
|
13806
13856
|
const getProductKeyAction = (index, product) => {
|
|
13807
13857
|
return getProductKey(`${index}`, product, props.options.idKey);
|
|
@@ -13819,17 +13869,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13819
13869
|
class: "lupa-loader"
|
|
13820
13870
|
})) : createCommentVNode("", true),
|
|
13821
13871
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
13822
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13872
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$I, {
|
|
13823
13873
|
key: 0,
|
|
13824
13874
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
13825
13875
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13826
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13876
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$C, {
|
|
13827
13877
|
key: 1,
|
|
13828
13878
|
class: "lupa-toolbar-mobile",
|
|
13829
13879
|
options: _ctx.options,
|
|
13830
13880
|
"pagination-location": "top"
|
|
13831
13881
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13832
|
-
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
13882
|
+
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$V, {
|
|
13833
13883
|
key: 2,
|
|
13834
13884
|
class: normalizeClass(currentFiltersClass.value),
|
|
13835
13885
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -13837,13 +13887,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13837
13887
|
expandable: !desktopFiltersExpanded.value
|
|
13838
13888
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
13839
13889
|
], 64)) : createCommentVNode("", true),
|
|
13840
|
-
createVNode(_sfc_main$
|
|
13890
|
+
createVNode(_sfc_main$h, {
|
|
13841
13891
|
options: _ctx.options,
|
|
13842
13892
|
location: "top",
|
|
13843
13893
|
sdkOptions: _ctx.options.options
|
|
13844
13894
|
}, null, 8, ["options", "sdkOptions"]),
|
|
13845
13895
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
13846
|
-
createVNode(_sfc_main$
|
|
13896
|
+
createVNode(_sfc_main$C, {
|
|
13847
13897
|
class: "lupa-toolbar-top",
|
|
13848
13898
|
options: _ctx.options,
|
|
13849
13899
|
"pagination-location": "top"
|
|
@@ -13857,7 +13907,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13857
13907
|
options: productCardOptions.value
|
|
13858
13908
|
});
|
|
13859
13909
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
13860
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13910
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13861
13911
|
style: normalizeStyle(columnSize.value),
|
|
13862
13912
|
key: getProductKeyAction(index, product),
|
|
13863
13913
|
product,
|
|
@@ -13873,12 +13923,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13873
13923
|
onClick: goToFirstPage
|
|
13874
13924
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
13875
13925
|
])) : createCommentVNode("", true),
|
|
13876
|
-
createVNode(_sfc_main$
|
|
13926
|
+
createVNode(_sfc_main$C, {
|
|
13877
13927
|
class: "lupa-toolbar-bottom",
|
|
13878
13928
|
options: _ctx.options,
|
|
13879
13929
|
"pagination-location": "bottom"
|
|
13880
13930
|
}, null, 8, ["options"]),
|
|
13881
|
-
createVNode(_sfc_main$
|
|
13931
|
+
createVNode(_sfc_main$h, {
|
|
13882
13932
|
options: _ctx.options,
|
|
13883
13933
|
location: "bottom",
|
|
13884
13934
|
sdkOptions: _ctx.options.options
|
|
@@ -13888,12 +13938,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13888
13938
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
13889
13939
|
])) : createCommentVNode("", true),
|
|
13890
13940
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
13891
|
-
createVNode(_sfc_main$
|
|
13941
|
+
createVNode(_sfc_main$j, {
|
|
13892
13942
|
labels: similarQueriesLabels.value,
|
|
13893
13943
|
columnSize: columnSize.value,
|
|
13894
13944
|
productCardOptions: productCardOptions.value
|
|
13895
13945
|
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
13896
13946
|
])) : createCommentVNode("", true),
|
|
13947
|
+
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
13948
|
+
createVNode(_sfc_main$f, {
|
|
13949
|
+
labels: similarResultsLabels.value,
|
|
13950
|
+
columnSize: columnSize.value,
|
|
13951
|
+
productCardOptions: productCardOptions.value
|
|
13952
|
+
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
13953
|
+
])) : createCommentVNode("", true),
|
|
13897
13954
|
renderSlot(_ctx.$slots, "append")
|
|
13898
13955
|
]);
|
|
13899
13956
|
};
|
|
@@ -13945,7 +14002,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13945
14002
|
onClick: handleNavigationBack
|
|
13946
14003
|
}, toDisplayString(backTitle.value), 9, _hoisted_3$6)
|
|
13947
14004
|
])) : createCommentVNode("", true),
|
|
13948
|
-
createVNode(_sfc_main$
|
|
14005
|
+
createVNode(_sfc_main$C, {
|
|
13949
14006
|
class: "lupa-toolbar-mobile",
|
|
13950
14007
|
"pagination-location": "top",
|
|
13951
14008
|
options: _ctx.options
|
|
@@ -14163,8 +14220,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14163
14220
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
14164
14221
|
}, [
|
|
14165
14222
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
14166
|
-
createVNode(_sfc_main$
|
|
14167
|
-
createVNode(_sfc_main$
|
|
14223
|
+
createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14224
|
+
createVNode(_sfc_main$X, {
|
|
14168
14225
|
"show-summary": true,
|
|
14169
14226
|
options: _ctx.options,
|
|
14170
14227
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
@@ -14174,24 +14231,24 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14174
14231
|
key: 1,
|
|
14175
14232
|
options: _ctx.options
|
|
14176
14233
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14177
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
14234
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$K, {
|
|
14178
14235
|
key: 2,
|
|
14179
14236
|
options: _ctx.options.filters
|
|
14180
14237
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14181
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
14238
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$J, {
|
|
14182
14239
|
key: 3,
|
|
14183
14240
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
14184
14241
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
14185
14242
|
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
14186
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14243
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
14187
14244
|
key: 0,
|
|
14188
14245
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
14189
14246
|
ref_key: "searchResultsFilters",
|
|
14190
14247
|
ref: searchResultsFilters
|
|
14191
14248
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14192
14249
|
createBaseVNode("div", _hoisted_3$5, [
|
|
14193
|
-
createVNode(_sfc_main$
|
|
14194
|
-
createVNode(_sfc_main$
|
|
14250
|
+
createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14251
|
+
createVNode(_sfc_main$X, {
|
|
14195
14252
|
options: _ctx.options,
|
|
14196
14253
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
14197
14254
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -14206,13 +14263,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14206
14263
|
}, 8, ["options", "ssr"])
|
|
14207
14264
|
])
|
|
14208
14265
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
14209
|
-
createVNode(_sfc_main$
|
|
14210
|
-
createVNode(_sfc_main$
|
|
14266
|
+
createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14267
|
+
createVNode(_sfc_main$X, {
|
|
14211
14268
|
options: _ctx.options,
|
|
14212
14269
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
14213
14270
|
}, null, 8, ["options", "is-product-list"]),
|
|
14214
14271
|
createBaseVNode("div", _hoisted_4$3, [
|
|
14215
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14272
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
14216
14273
|
key: 0,
|
|
14217
14274
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
14218
14275
|
ref_key: "searchResultsFilters",
|
|
@@ -19840,7 +19897,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
19840
19897
|
onClick: withModifiers(innerClick, ["stop"])
|
|
19841
19898
|
}, [
|
|
19842
19899
|
createBaseVNode("div", _hoisted_2$7, [
|
|
19843
|
-
createVNode(_sfc_main$
|
|
19900
|
+
createVNode(_sfc_main$_, {
|
|
19844
19901
|
options: fullSearchBoxOptions.value,
|
|
19845
19902
|
"is-search-container": true,
|
|
19846
19903
|
ref_key: "searchBox",
|
|
@@ -20661,7 +20718,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20661
20718
|
key: getProductKeyAction(index, product)
|
|
20662
20719
|
}, {
|
|
20663
20720
|
default: withCtx(() => [
|
|
20664
|
-
createVNode(_sfc_main$
|
|
20721
|
+
createVNode(_sfc_main$k, {
|
|
20665
20722
|
product,
|
|
20666
20723
|
options: _ctx.options,
|
|
20667
20724
|
"click-tracking-settings": clickTrackingSettings.value
|
|
@@ -20925,7 +20982,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20925
20982
|
return (_ctx, _cache) => {
|
|
20926
20983
|
return openBlock(), createElementBlock("section", _hoisted_1$5, [
|
|
20927
20984
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
20928
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20985
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
20929
20986
|
class: "lupa-chat-product-card",
|
|
20930
20987
|
key: getProductKeyAction(index, product),
|
|
20931
20988
|
product,
|
|
@@ -21241,7 +21298,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21241
21298
|
class: "lupa-chat-spinner-main"
|
|
21242
21299
|
};
|
|
21243
21300
|
const _hoisted_5 = { class: "lupasearch-chat-input" };
|
|
21244
|
-
const _sfc_main$
|
|
21301
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
21245
21302
|
__name: "ChatContainer",
|
|
21246
21303
|
props: {
|
|
21247
21304
|
options: {}
|
|
@@ -26882,7 +26939,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26882
26939
|
};
|
|
26883
26940
|
__expose({ fetch: fetch2 });
|
|
26884
26941
|
return (_ctx, _cache) => {
|
|
26885
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26942
|
+
return openBlock(), createBlock(unref(_sfc_main$_), {
|
|
26886
26943
|
options: fullSearchBoxOptions.value,
|
|
26887
26944
|
ref_key: "searchBox",
|
|
26888
26945
|
ref: searchBox2
|
|
@@ -27357,7 +27414,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
27357
27414
|
}
|
|
27358
27415
|
return;
|
|
27359
27416
|
}
|
|
27360
|
-
const instance = createVue(options.displayOptions.containerSelector, _sfc_main$
|
|
27417
|
+
const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1l, {
|
|
27361
27418
|
options
|
|
27362
27419
|
});
|
|
27363
27420
|
if (!instance) {
|