@getlupa/client 1.4.3 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lupaSearch.iife.js +502 -437
- package/dist/lupaSearch.js +502 -437
- package/dist/lupaSearch.mjs +502 -437
- package/dist/lupaSearch.umd.js +502 -437
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/lupaSearch.umd.js
CHANGED
|
@@ -6668,7 +6668,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6668
6668
|
noResultsSuggestion: "No results found for this query: {1}",
|
|
6669
6669
|
didYouMean: "Did you mean to search: {1}",
|
|
6670
6670
|
similarQuery: "Search results for phrase {1}",
|
|
6671
|
-
similarQueries: "Similar queries:"
|
|
6671
|
+
similarQueries: "Similar queries:",
|
|
6672
|
+
similarResultsLabel: "Related to your query:"
|
|
6672
6673
|
},
|
|
6673
6674
|
grid: {
|
|
6674
6675
|
columns: {
|
|
@@ -7350,6 +7351,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7350
7351
|
var _a;
|
|
7351
7352
|
return (_a = params.value.filters) != null ? _a : {};
|
|
7352
7353
|
});
|
|
7354
|
+
const navigate = (url) => {
|
|
7355
|
+
var _a, _b, _c;
|
|
7356
|
+
window.history.pushState("", "Append params", url.pathname + url.search);
|
|
7357
|
+
const params2 = parseParams(url.searchParams);
|
|
7358
|
+
(_c = (_b = (_a = optionsStore == null ? void 0 : optionsStore.searchBoxOptions) == null ? void 0 : _a.callbacks) == null ? void 0 : _b.onSearchResultsNavigate) == null ? void 0 : _c.call(_b, {
|
|
7359
|
+
params: params2
|
|
7360
|
+
});
|
|
7361
|
+
};
|
|
7353
7362
|
const add2 = (newParams, ssr) => {
|
|
7354
7363
|
if (!newParams) {
|
|
7355
7364
|
return { params: params.value };
|
|
@@ -7362,7 +7371,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7362
7371
|
const url = getPageUrl();
|
|
7363
7372
|
const paramsToRemove = Array.from(url.searchParams.keys()).filter(isFacetKey);
|
|
7364
7373
|
removeParams(url, paramsToRemove);
|
|
7365
|
-
|
|
7374
|
+
navigate(url);
|
|
7366
7375
|
params.value = parseParams(url.searchParams);
|
|
7367
7376
|
searchString.value = url.search;
|
|
7368
7377
|
};
|
|
@@ -7373,7 +7382,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7373
7382
|
const url = getPageUrl();
|
|
7374
7383
|
paramsToRemove = getRemovableParams(url, paramsToRemove);
|
|
7375
7384
|
removeParams(url, paramsToRemove);
|
|
7376
|
-
|
|
7385
|
+
navigate(url);
|
|
7377
7386
|
if (!save) {
|
|
7378
7387
|
return;
|
|
7379
7388
|
}
|
|
@@ -7435,7 +7444,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7435
7444
|
paramsToRemove = getRemovableParams(url, paramsToRemove);
|
|
7436
7445
|
removeParams(url, paramsToRemove);
|
|
7437
7446
|
newParams.forEach((p2) => appendParam(url, p2, encode));
|
|
7438
|
-
|
|
7447
|
+
navigate(url);
|
|
7439
7448
|
if (!save) {
|
|
7440
7449
|
return;
|
|
7441
7450
|
}
|
|
@@ -7678,16 +7687,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7678
7687
|
resetHighlightIndex
|
|
7679
7688
|
};
|
|
7680
7689
|
});
|
|
7681
|
-
const _hoisted_1$
|
|
7682
|
-
const _hoisted_2$
|
|
7683
|
-
const _hoisted_3$
|
|
7690
|
+
const _hoisted_1$1c = { id: "lupa-search-box-input-container" };
|
|
7691
|
+
const _hoisted_2$P = { class: "lupa-input-clear" };
|
|
7692
|
+
const _hoisted_3$B = { id: "lupa-search-box-input" };
|
|
7684
7693
|
const _hoisted_4$q = ["value"];
|
|
7685
7694
|
const _hoisted_5$f = ["placeholder"];
|
|
7686
|
-
const _hoisted_6$
|
|
7695
|
+
const _hoisted_6$9 = {
|
|
7687
7696
|
key: 0,
|
|
7688
7697
|
class: "lupa-close-label"
|
|
7689
7698
|
};
|
|
7690
|
-
const _sfc_main$
|
|
7699
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
7691
7700
|
__name: "SearchBoxInput",
|
|
7692
7701
|
props: {
|
|
7693
7702
|
options: {},
|
|
@@ -7764,14 +7773,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7764
7773
|
};
|
|
7765
7774
|
__expose({ focus });
|
|
7766
7775
|
return (_ctx, _cache) => {
|
|
7767
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7768
|
-
createBaseVNode("div", _hoisted_2$
|
|
7776
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
7777
|
+
createBaseVNode("div", _hoisted_2$P, [
|
|
7769
7778
|
createBaseVNode("div", {
|
|
7770
7779
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
7771
7780
|
onClick: clear2
|
|
7772
7781
|
}, null, 2)
|
|
7773
7782
|
]),
|
|
7774
|
-
createBaseVNode("div", _hoisted_3$
|
|
7783
|
+
createBaseVNode("div", _hoisted_3$B, [
|
|
7775
7784
|
createBaseVNode("input", {
|
|
7776
7785
|
class: "lupa-hint",
|
|
7777
7786
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
@@ -7798,13 +7807,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7798
7807
|
class: "lupa-close-search-container",
|
|
7799
7808
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
7800
7809
|
}, [
|
|
7801
|
-
labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
7810
|
+
labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$9, toDisplayString(labels.value.close), 1)) : createCommentVNode("", true)
|
|
7802
7811
|
])) : createCommentVNode("", true)
|
|
7803
7812
|
]);
|
|
7804
7813
|
};
|
|
7805
7814
|
}
|
|
7806
7815
|
});
|
|
7807
|
-
const _sfc_main$
|
|
7816
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
7808
7817
|
__name: "SearchBoxMoreResults",
|
|
7809
7818
|
props: {
|
|
7810
7819
|
labels: {},
|
|
@@ -7836,9 +7845,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7836
7845
|
};
|
|
7837
7846
|
}
|
|
7838
7847
|
});
|
|
7839
|
-
const _hoisted_1$
|
|
7840
|
-
const _hoisted_2$
|
|
7841
|
-
const _sfc_main$
|
|
7848
|
+
const _hoisted_1$1b = { class: "lupa-search-box-history-item" };
|
|
7849
|
+
const _hoisted_2$O = { class: "lupa-search-box-history-item-content" };
|
|
7850
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
7842
7851
|
__name: "SearchBoxHistoryItem",
|
|
7843
7852
|
props: {
|
|
7844
7853
|
item: {},
|
|
@@ -7854,8 +7863,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7854
7863
|
emit2("click", { query: props.item });
|
|
7855
7864
|
};
|
|
7856
7865
|
return (_ctx, _cache) => {
|
|
7857
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7858
|
-
createBaseVNode("div", _hoisted_2$
|
|
7866
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1b, [
|
|
7867
|
+
createBaseVNode("div", _hoisted_2$O, [
|
|
7859
7868
|
createBaseVNode("div", {
|
|
7860
7869
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
7861
7870
|
onClick: click2
|
|
@@ -7869,11 +7878,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7869
7878
|
};
|
|
7870
7879
|
}
|
|
7871
7880
|
});
|
|
7872
|
-
const _hoisted_1$
|
|
7881
|
+
const _hoisted_1$1a = {
|
|
7873
7882
|
key: 0,
|
|
7874
7883
|
class: "lupa-search-box-history-panel"
|
|
7875
7884
|
};
|
|
7876
|
-
const _sfc_main$
|
|
7885
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
7877
7886
|
__name: "SearchBoxHistoryPanel",
|
|
7878
7887
|
props: {
|
|
7879
7888
|
options: {}
|
|
@@ -7914,9 +7923,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7914
7923
|
}
|
|
7915
7924
|
};
|
|
7916
7925
|
return (_ctx, _cache) => {
|
|
7917
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7926
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1a, [
|
|
7918
7927
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
7919
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7928
|
+
return openBlock(), createBlock(_sfc_main$1i, {
|
|
7920
7929
|
key: item,
|
|
7921
7930
|
item,
|
|
7922
7931
|
highlighted: index === highlightIndex.value,
|
|
@@ -7932,25 +7941,25 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7932
7941
|
};
|
|
7933
7942
|
}
|
|
7934
7943
|
});
|
|
7935
|
-
const _hoisted_1$
|
|
7936
|
-
const _sfc_main$
|
|
7944
|
+
const _hoisted_1$19 = { class: "lupa-search-box-no-results" };
|
|
7945
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
7937
7946
|
__name: "SearchBoxNoResults",
|
|
7938
7947
|
props: {
|
|
7939
7948
|
labels: {}
|
|
7940
7949
|
},
|
|
7941
7950
|
setup(__props) {
|
|
7942
7951
|
return (_ctx, _cache) => {
|
|
7943
|
-
return openBlock(), createElementBlock("p", _hoisted_1$
|
|
7952
|
+
return openBlock(), createElementBlock("p", _hoisted_1$19, toDisplayString(_ctx.labels.noResults), 1);
|
|
7944
7953
|
};
|
|
7945
7954
|
}
|
|
7946
7955
|
});
|
|
7947
|
-
const _hoisted_1$
|
|
7948
|
-
const _hoisted_2$
|
|
7956
|
+
const _hoisted_1$18 = ["innerHTML"];
|
|
7957
|
+
const _hoisted_2$N = {
|
|
7949
7958
|
key: 1,
|
|
7950
7959
|
"data-cy": "lupa-suggestion-value",
|
|
7951
7960
|
class: "lupa-suggestion-value"
|
|
7952
7961
|
};
|
|
7953
|
-
const _hoisted_3$
|
|
7962
|
+
const _hoisted_3$A = {
|
|
7954
7963
|
key: 2,
|
|
7955
7964
|
class: "lupa-suggestion-facet",
|
|
7956
7965
|
"data-cy": "lupa-suggestion-facet"
|
|
@@ -7963,7 +7972,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7963
7972
|
class: "lupa-suggestion-facet-value",
|
|
7964
7973
|
"data-cy": "lupa-suggestion-facet-value"
|
|
7965
7974
|
};
|
|
7966
|
-
const _sfc_main$
|
|
7975
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
7967
7976
|
__name: "SearchBoxSuggestion",
|
|
7968
7977
|
props: {
|
|
7969
7978
|
suggestion: {},
|
|
@@ -7999,8 +8008,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7999
8008
|
class: "lupa-suggestion-value",
|
|
8000
8009
|
"data-cy": "lupa-suggestion-value",
|
|
8001
8010
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
8002
|
-
}, null, 8, _hoisted_1$
|
|
8003
|
-
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
8011
|
+
}, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8012
|
+
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
8004
8013
|
createBaseVNode("span", _hoisted_4$p, toDisplayString(facetLabel.value), 1),
|
|
8005
8014
|
createBaseVNode("span", _hoisted_5$e, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8006
8015
|
])) : createCommentVNode("", true)
|
|
@@ -8008,11 +8017,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8008
8017
|
};
|
|
8009
8018
|
}
|
|
8010
8019
|
});
|
|
8011
|
-
const _hoisted_1$
|
|
8020
|
+
const _hoisted_1$17 = {
|
|
8012
8021
|
id: "lupa-search-box-suggestions",
|
|
8013
8022
|
"data-cy": "lupa-search-box-suggestions"
|
|
8014
8023
|
};
|
|
8015
|
-
const _sfc_main$
|
|
8024
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
8016
8025
|
__name: "SearchBoxSuggestions",
|
|
8017
8026
|
props: {
|
|
8018
8027
|
items: {},
|
|
@@ -8072,9 +8081,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8072
8081
|
});
|
|
8073
8082
|
});
|
|
8074
8083
|
return (_ctx, _cache) => {
|
|
8075
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8084
|
+
return openBlock(), createElementBlock("div", _hoisted_1$17, [
|
|
8076
8085
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
8077
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8086
|
+
return openBlock(), createBlock(_sfc_main$1f, {
|
|
8078
8087
|
key: getSuggestionKey(item),
|
|
8079
8088
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
8080
8089
|
suggestion: item,
|
|
@@ -8102,7 +8111,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8102
8111
|
}, timeout);
|
|
8103
8112
|
};
|
|
8104
8113
|
};
|
|
8105
|
-
const _sfc_main$
|
|
8114
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
8106
8115
|
__name: "SearchBoxSuggestionsWrapper",
|
|
8107
8116
|
props: {
|
|
8108
8117
|
panel: {},
|
|
@@ -8143,7 +8152,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8143
8152
|
};
|
|
8144
8153
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
8145
8154
|
return (_ctx, _cache) => {
|
|
8146
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8155
|
+
return openBlock(), createBlock(_sfc_main$1e, {
|
|
8147
8156
|
items: searchResult.value,
|
|
8148
8157
|
highlight: _ctx.panel.highlight,
|
|
8149
8158
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -8221,8 +8230,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8221
8230
|
});
|
|
8222
8231
|
return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
|
|
8223
8232
|
});
|
|
8224
|
-
const _hoisted_1$
|
|
8225
|
-
const _sfc_main$
|
|
8233
|
+
const _hoisted_1$16 = ["src"];
|
|
8234
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
8226
8235
|
__name: "ProductImage",
|
|
8227
8236
|
props: {
|
|
8228
8237
|
item: {},
|
|
@@ -8270,12 +8279,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8270
8279
|
class: normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
|
|
8271
8280
|
src: finalUrl.value,
|
|
8272
8281
|
onError: replaceWithPlaceholder
|
|
8273
|
-
}, null, 42, _hoisted_1$
|
|
8282
|
+
}, null, 42, _hoisted_1$16)
|
|
8274
8283
|
], 2);
|
|
8275
8284
|
};
|
|
8276
8285
|
}
|
|
8277
8286
|
});
|
|
8278
|
-
const _sfc_main$
|
|
8287
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
8279
8288
|
__name: "SearchBoxProductImage",
|
|
8280
8289
|
props: {
|
|
8281
8290
|
item: {},
|
|
@@ -8283,7 +8292,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8283
8292
|
},
|
|
8284
8293
|
setup(__props) {
|
|
8285
8294
|
return (_ctx, _cache) => {
|
|
8286
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8295
|
+
return openBlock(), createBlock(_sfc_main$1c, {
|
|
8287
8296
|
item: _ctx.item,
|
|
8288
8297
|
options: _ctx.options,
|
|
8289
8298
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -8292,12 +8301,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8292
8301
|
};
|
|
8293
8302
|
}
|
|
8294
8303
|
});
|
|
8295
|
-
const _hoisted_1$
|
|
8296
|
-
const _hoisted_2$
|
|
8304
|
+
const _hoisted_1$15 = ["innerHTML"];
|
|
8305
|
+
const _hoisted_2$M = {
|
|
8297
8306
|
key: 1,
|
|
8298
8307
|
class: "lupa-search-box-product-title"
|
|
8299
8308
|
};
|
|
8300
|
-
const _sfc_main$
|
|
8309
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
8301
8310
|
__name: "SearchBoxProductTitle",
|
|
8302
8311
|
props: {
|
|
8303
8312
|
item: {},
|
|
@@ -8317,18 +8326,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8317
8326
|
key: 0,
|
|
8318
8327
|
class: "lupa-search-box-product-title",
|
|
8319
8328
|
innerHTML: title.value
|
|
8320
|
-
}, null, 8, _hoisted_1$
|
|
8329
|
+
}, null, 8, _hoisted_1$15)) : (openBlock(), createElementBlock("div", _hoisted_2$M, [
|
|
8321
8330
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
8322
8331
|
]));
|
|
8323
8332
|
};
|
|
8324
8333
|
}
|
|
8325
8334
|
});
|
|
8326
|
-
const _hoisted_1$
|
|
8327
|
-
const _hoisted_2$
|
|
8335
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
8336
|
+
const _hoisted_2$L = {
|
|
8328
8337
|
key: 1,
|
|
8329
8338
|
class: "lupa-search-box-product-description"
|
|
8330
8339
|
};
|
|
8331
|
-
const _sfc_main$
|
|
8340
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
8332
8341
|
__name: "SearchBoxProductDescription",
|
|
8333
8342
|
props: {
|
|
8334
8343
|
item: {},
|
|
@@ -8348,12 +8357,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8348
8357
|
key: 0,
|
|
8349
8358
|
class: "lupa-search-box-product-description",
|
|
8350
8359
|
innerHTML: description.value
|
|
8351
|
-
}, null, 8, _hoisted_1$
|
|
8360
|
+
}, null, 8, _hoisted_1$14)) : (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString(description.value), 1));
|
|
8352
8361
|
};
|
|
8353
8362
|
}
|
|
8354
8363
|
});
|
|
8355
|
-
const _hoisted_1$
|
|
8356
|
-
const _sfc_main$
|
|
8364
|
+
const _hoisted_1$13 = { class: "lupa-search-box-product-price" };
|
|
8365
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
8357
8366
|
__name: "SearchBoxProductPrice",
|
|
8358
8367
|
props: {
|
|
8359
8368
|
item: {},
|
|
@@ -8371,14 +8380,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8371
8380
|
);
|
|
8372
8381
|
});
|
|
8373
8382
|
return (_ctx, _cache) => {
|
|
8374
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8383
|
+
return openBlock(), createElementBlock("div", _hoisted_1$13, [
|
|
8375
8384
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
8376
8385
|
]);
|
|
8377
8386
|
};
|
|
8378
8387
|
}
|
|
8379
8388
|
});
|
|
8380
|
-
const _hoisted_1$
|
|
8381
|
-
const _sfc_main$
|
|
8389
|
+
const _hoisted_1$12 = { class: "lupa-search-box-product-regular-price" };
|
|
8390
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
8382
8391
|
__name: "SearchBoxProductRegularPrice",
|
|
8383
8392
|
props: {
|
|
8384
8393
|
item: {},
|
|
@@ -8396,16 +8405,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8396
8405
|
);
|
|
8397
8406
|
});
|
|
8398
8407
|
return (_ctx, _cache) => {
|
|
8399
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8408
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, toDisplayString(price.value), 1);
|
|
8400
8409
|
};
|
|
8401
8410
|
}
|
|
8402
8411
|
});
|
|
8403
|
-
const _hoisted_1$
|
|
8404
|
-
const _hoisted_2$
|
|
8405
|
-
const _hoisted_3$
|
|
8412
|
+
const _hoisted_1$11 = ["innerHTML"];
|
|
8413
|
+
const _hoisted_2$K = { key: 0 };
|
|
8414
|
+
const _hoisted_3$z = { key: 1 };
|
|
8406
8415
|
const _hoisted_4$o = { class: "lupa-search-box-custom-label" };
|
|
8407
8416
|
const _hoisted_5$d = { class: "lupa-search-box-custom-text" };
|
|
8408
|
-
const _sfc_main$
|
|
8417
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
8409
8418
|
__name: "SearchBoxProductCustom",
|
|
8410
8419
|
props: {
|
|
8411
8420
|
item: {},
|
|
@@ -8431,11 +8440,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8431
8440
|
key: 0,
|
|
8432
8441
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
8433
8442
|
innerHTML: text.value
|
|
8434
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
8443
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$11)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
8435
8444
|
key: 1,
|
|
8436
8445
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
8437
8446
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
8438
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
8447
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
8439
8448
|
createBaseVNode("div", _hoisted_4$o, toDisplayString(label.value), 1),
|
|
8440
8449
|
createBaseVNode("div", _hoisted_5$d, toDisplayString(text.value), 1)
|
|
8441
8450
|
]))
|
|
@@ -8443,8 +8452,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8443
8452
|
};
|
|
8444
8453
|
}
|
|
8445
8454
|
});
|
|
8446
|
-
const _hoisted_1
|
|
8447
|
-
const _sfc_main$
|
|
8455
|
+
const _hoisted_1$10 = ["innerHTML"];
|
|
8456
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
8448
8457
|
__name: "SearchBoxProductCustomHtml",
|
|
8449
8458
|
props: {
|
|
8450
8459
|
item: {},
|
|
@@ -8464,7 +8473,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8464
8473
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
8465
8474
|
class: className.value,
|
|
8466
8475
|
innerHTML: text.value
|
|
8467
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1
|
|
8476
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$10);
|
|
8468
8477
|
};
|
|
8469
8478
|
}
|
|
8470
8479
|
});
|
|
@@ -8659,10 +8668,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8659
8668
|
setLoading
|
|
8660
8669
|
};
|
|
8661
8670
|
});
|
|
8662
|
-
const _hoisted_1
|
|
8663
|
-
const _hoisted_2$
|
|
8664
|
-
const _hoisted_3$
|
|
8665
|
-
const _sfc_main$
|
|
8671
|
+
const _hoisted_1$$ = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
8672
|
+
const _hoisted_2$J = { class: "lupa-search-box-product-addtocart" };
|
|
8673
|
+
const _hoisted_3$y = ["onClick", "disabled"];
|
|
8674
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
8666
8675
|
__name: "SearchBoxProductAddToCart",
|
|
8667
8676
|
props: {
|
|
8668
8677
|
item: {},
|
|
@@ -8689,15 +8698,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8689
8698
|
loading.value = false;
|
|
8690
8699
|
});
|
|
8691
8700
|
return (_ctx, _cache) => {
|
|
8692
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
8693
|
-
createBaseVNode("div", _hoisted_2$
|
|
8701
|
+
return openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
8702
|
+
createBaseVNode("div", _hoisted_2$J, [
|
|
8694
8703
|
createBaseVNode("button", {
|
|
8695
8704
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
8696
8705
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
8697
8706
|
"data-cy": "lupa-add-to-cart",
|
|
8698
8707
|
type: "button",
|
|
8699
8708
|
disabled: !inStockValue.value || loading.value
|
|
8700
|
-
}, toDisplayString(label.value), 11, _hoisted_3$
|
|
8709
|
+
}, toDisplayString(label.value), 11, _hoisted_3$y)
|
|
8701
8710
|
])
|
|
8702
8711
|
]);
|
|
8703
8712
|
};
|
|
@@ -8705,17 +8714,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8705
8714
|
});
|
|
8706
8715
|
const __default__$4 = {
|
|
8707
8716
|
components: {
|
|
8708
|
-
SearchBoxProductImage: _sfc_main$
|
|
8709
|
-
SearchBoxProductTitle: _sfc_main$
|
|
8710
|
-
SearchBoxProductDescription: _sfc_main$
|
|
8711
|
-
SearchBoxProductPrice: _sfc_main$
|
|
8712
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
8713
|
-
SearchBoxProductCustom: _sfc_main$
|
|
8714
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
8715
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
8717
|
+
SearchBoxProductImage: _sfc_main$1b,
|
|
8718
|
+
SearchBoxProductTitle: _sfc_main$1a,
|
|
8719
|
+
SearchBoxProductDescription: _sfc_main$19,
|
|
8720
|
+
SearchBoxProductPrice: _sfc_main$18,
|
|
8721
|
+
SearchBoxProductRegularPrice: _sfc_main$17,
|
|
8722
|
+
SearchBoxProductCustom: _sfc_main$16,
|
|
8723
|
+
SearchBoxProductCustomHtml: _sfc_main$15,
|
|
8724
|
+
SearchBoxProductAddToCart: _sfc_main$14
|
|
8716
8725
|
}
|
|
8717
8726
|
};
|
|
8718
|
-
const _sfc_main$
|
|
8727
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
8719
8728
|
__name: "SearchBoxProductElement",
|
|
8720
8729
|
props: {
|
|
8721
8730
|
item: {},
|
|
@@ -8829,14 +8838,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8829
8838
|
};
|
|
8830
8839
|
return { trackSearch, trackResults, trackEvent };
|
|
8831
8840
|
});
|
|
8832
|
-
const _hoisted_1$
|
|
8833
|
-
const _hoisted_2$
|
|
8834
|
-
const _hoisted_3$
|
|
8841
|
+
const _hoisted_1$_ = ["href"];
|
|
8842
|
+
const _hoisted_2$I = { class: "lupa-search-box-product-image-section" };
|
|
8843
|
+
const _hoisted_3$x = { class: "lupa-search-box-product-details-section" };
|
|
8835
8844
|
const _hoisted_4$n = {
|
|
8836
8845
|
key: 0,
|
|
8837
8846
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
8838
8847
|
};
|
|
8839
|
-
const _sfc_main$
|
|
8848
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
8840
8849
|
__name: "SearchBoxProduct",
|
|
8841
8850
|
props: {
|
|
8842
8851
|
item: {},
|
|
@@ -8929,9 +8938,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8929
8938
|
href: link.value,
|
|
8930
8939
|
onClick: handleClick
|
|
8931
8940
|
}, [
|
|
8932
|
-
createBaseVNode("div", _hoisted_2$
|
|
8941
|
+
createBaseVNode("div", _hoisted_2$I, [
|
|
8933
8942
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
8934
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8943
|
+
return openBlock(), createBlock(_sfc_main$13, {
|
|
8935
8944
|
class: "lupa-search-box-product-element",
|
|
8936
8945
|
item: _ctx.item,
|
|
8937
8946
|
element,
|
|
@@ -8941,9 +8950,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8941
8950
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
8942
8951
|
}), 128))
|
|
8943
8952
|
]),
|
|
8944
|
-
createBaseVNode("div", _hoisted_3$
|
|
8953
|
+
createBaseVNode("div", _hoisted_3$x, [
|
|
8945
8954
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
8946
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8955
|
+
return openBlock(), createBlock(_sfc_main$13, {
|
|
8947
8956
|
class: "lupa-search-box-product-element",
|
|
8948
8957
|
item: _ctx.item,
|
|
8949
8958
|
element,
|
|
@@ -8954,7 +8963,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8954
8963
|
}), 128))
|
|
8955
8964
|
]),
|
|
8956
8965
|
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
|
|
8957
|
-
createVNode(_sfc_main$
|
|
8966
|
+
createVNode(_sfc_main$13, {
|
|
8958
8967
|
class: "lupa-search-box-product-element",
|
|
8959
8968
|
item: _ctx.item,
|
|
8960
8969
|
element: addToCartElement.value,
|
|
@@ -8963,12 +8972,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8963
8972
|
isInStock: isInStock.value
|
|
8964
8973
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
8965
8974
|
])) : createCommentVNode("", true)
|
|
8966
|
-
], 10, _hoisted_1$
|
|
8975
|
+
], 10, _hoisted_1$_);
|
|
8967
8976
|
};
|
|
8968
8977
|
}
|
|
8969
8978
|
});
|
|
8970
|
-
const _hoisted_1$
|
|
8971
|
-
const _sfc_main$
|
|
8979
|
+
const _hoisted_1$Z = { id: "lupa-search-box-products" };
|
|
8980
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
8972
8981
|
__name: "SearchBoxProducts",
|
|
8973
8982
|
props: {
|
|
8974
8983
|
items: {},
|
|
@@ -8988,7 +8997,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8988
8997
|
return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
|
|
8989
8998
|
});
|
|
8990
8999
|
return (_ctx, _cache) => {
|
|
8991
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9000
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
8992
9001
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
8993
9002
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
8994
9003
|
key: index,
|
|
@@ -9000,7 +9009,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9000
9009
|
onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
|
|
9001
9010
|
});
|
|
9002
9011
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
9003
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9012
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
9004
9013
|
key: index,
|
|
9005
9014
|
item,
|
|
9006
9015
|
panelOptions: _ctx.panelOptions,
|
|
@@ -9014,7 +9023,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9014
9023
|
};
|
|
9015
9024
|
}
|
|
9016
9025
|
});
|
|
9017
|
-
const _sfc_main
|
|
9026
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
9018
9027
|
__name: "SearchBoxProductsWrapper",
|
|
9019
9028
|
props: {
|
|
9020
9029
|
panel: {},
|
|
@@ -9066,7 +9075,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9066
9075
|
const getItemsDebounced = debounce$1(getItems, props.debounce);
|
|
9067
9076
|
return (_ctx, _cache) => {
|
|
9068
9077
|
var _a, _b;
|
|
9069
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9078
|
+
return openBlock(), createBlock(_sfc_main$11, {
|
|
9070
9079
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
9071
9080
|
panelOptions: _ctx.panel,
|
|
9072
9081
|
labels: _ctx.labels,
|
|
@@ -9084,22 +9093,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9084
9093
|
};
|
|
9085
9094
|
}
|
|
9086
9095
|
});
|
|
9087
|
-
const _hoisted_1$
|
|
9096
|
+
const _hoisted_1$Y = {
|
|
9088
9097
|
key: 0,
|
|
9089
9098
|
id: "lupa-search-box-panel"
|
|
9090
9099
|
};
|
|
9091
|
-
const _hoisted_2$
|
|
9092
|
-
const _hoisted_3$
|
|
9100
|
+
const _hoisted_2$H = ["data-cy"];
|
|
9101
|
+
const _hoisted_3$w = {
|
|
9093
9102
|
key: 1,
|
|
9094
9103
|
id: "lupa-search-box-panel"
|
|
9095
9104
|
};
|
|
9096
9105
|
const __default__$3 = {
|
|
9097
9106
|
components: {
|
|
9098
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
9099
|
-
SearchBoxProductsWrapper: _sfc_main
|
|
9107
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1d,
|
|
9108
|
+
SearchBoxProductsWrapper: _sfc_main$10
|
|
9100
9109
|
}
|
|
9101
9110
|
};
|
|
9102
|
-
const _sfc_main
|
|
9111
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
9103
9112
|
__name: "SearchBoxMainPanel",
|
|
9104
9113
|
props: {
|
|
9105
9114
|
options: {},
|
|
@@ -9219,7 +9228,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9219
9228
|
ref_key: "panelContainer",
|
|
9220
9229
|
ref: panelContainer
|
|
9221
9230
|
}, [
|
|
9222
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9231
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$Y, [
|
|
9223
9232
|
createBaseVNode("div", {
|
|
9224
9233
|
class: "lupa-main-panel",
|
|
9225
9234
|
style: normalizeStyle(expandOnSinglePanel.value ? { display: "block" } : {}),
|
|
@@ -9253,21 +9262,21 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9253
9262
|
key: "0"
|
|
9254
9263
|
} : void 0
|
|
9255
9264
|
]), 1064, ["panel", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
9256
|
-
], 10, _hoisted_2$
|
|
9265
|
+
], 10, _hoisted_2$H);
|
|
9257
9266
|
}), 128))
|
|
9258
9267
|
], 4),
|
|
9259
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
9268
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1g, {
|
|
9260
9269
|
key: 0,
|
|
9261
9270
|
labels: labels.value
|
|
9262
9271
|
}, null, 8, ["labels"])) : createCommentVNode("", true),
|
|
9263
|
-
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$
|
|
9272
|
+
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1j, {
|
|
9264
9273
|
key: 1,
|
|
9265
9274
|
labels: labels.value,
|
|
9266
9275
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
9267
9276
|
onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
|
|
9268
9277
|
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
9269
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9270
|
-
createVNode(_sfc_main$
|
|
9278
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
|
|
9279
|
+
createVNode(_sfc_main$1h, {
|
|
9271
9280
|
options: _ctx.options.history,
|
|
9272
9281
|
history: history.value,
|
|
9273
9282
|
onGoToResults: handleGoToResults,
|
|
@@ -9292,9 +9301,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9292
9301
|
const elements = getElements(triggers);
|
|
9293
9302
|
elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
|
|
9294
9303
|
};
|
|
9295
|
-
const _hoisted_1$
|
|
9296
|
-
const _hoisted_2$
|
|
9297
|
-
const _sfc_main$
|
|
9304
|
+
const _hoisted_1$X = { id: "lupa-search-box" };
|
|
9305
|
+
const _hoisted_2$G = { class: "lupa-search-box-wrapper" };
|
|
9306
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
9298
9307
|
__name: "SearchBox",
|
|
9299
9308
|
props: {
|
|
9300
9309
|
options: {},
|
|
@@ -9530,9 +9539,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9530
9539
|
};
|
|
9531
9540
|
return (_ctx, _cache) => {
|
|
9532
9541
|
var _a2;
|
|
9533
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9534
|
-
createBaseVNode("div", _hoisted_2$
|
|
9535
|
-
createVNode(_sfc_main$
|
|
9542
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
9543
|
+
createBaseVNode("div", _hoisted_2$G, [
|
|
9544
|
+
createVNode(_sfc_main$1k, {
|
|
9536
9545
|
options: inputOptions.value,
|
|
9537
9546
|
suggestedValue: suggestedValue.value,
|
|
9538
9547
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -9543,7 +9552,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9543
9552
|
onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
|
|
9544
9553
|
onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
9545
9554
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
9546
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main
|
|
9555
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$$, {
|
|
9547
9556
|
key: 0,
|
|
9548
9557
|
options: panelOptions.value,
|
|
9549
9558
|
inputValue: inputValue.value,
|
|
@@ -9630,20 +9639,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9630
9639
|
}
|
|
9631
9640
|
return searchParams;
|
|
9632
9641
|
};
|
|
9633
|
-
const _hoisted_1$
|
|
9642
|
+
const _hoisted_1$W = {
|
|
9634
9643
|
key: 0,
|
|
9635
9644
|
id: "lupa-search-results-did-you-mean"
|
|
9636
9645
|
};
|
|
9637
|
-
const _hoisted_2$
|
|
9646
|
+
const _hoisted_2$F = {
|
|
9638
9647
|
key: 0,
|
|
9639
9648
|
"data-cy": "suggested-search-text-label"
|
|
9640
9649
|
};
|
|
9641
|
-
const _hoisted_3$
|
|
9650
|
+
const _hoisted_3$v = {
|
|
9642
9651
|
key: 1,
|
|
9643
9652
|
"data-cy": "did-you-mean-label"
|
|
9644
9653
|
};
|
|
9645
9654
|
const _hoisted_4$m = { key: 1 };
|
|
9646
|
-
const _sfc_main$
|
|
9655
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
9647
9656
|
__name: "SearchResultsDidYouMean",
|
|
9648
9657
|
props: {
|
|
9649
9658
|
labels: {}
|
|
@@ -9675,8 +9684,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9675
9684
|
paramStore.goToResults({ searchText, facet });
|
|
9676
9685
|
};
|
|
9677
9686
|
return (_ctx, _cache) => {
|
|
9678
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9679
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9687
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
9688
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$F, [
|
|
9680
9689
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
9681
9690
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
9682
9691
|
createBaseVNode("span", {
|
|
@@ -9685,7 +9694,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9685
9694
|
]);
|
|
9686
9695
|
}), 128))
|
|
9687
9696
|
])) : createCommentVNode("", true),
|
|
9688
|
-
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9697
|
+
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
|
|
9689
9698
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
9690
9699
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
9691
9700
|
label.includes("{1}") ? (openBlock(), createElementBlock("span", {
|
|
@@ -9701,12 +9710,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9701
9710
|
};
|
|
9702
9711
|
}
|
|
9703
9712
|
});
|
|
9704
|
-
const _hoisted_1$
|
|
9713
|
+
const _hoisted_1$V = {
|
|
9705
9714
|
key: 0,
|
|
9706
9715
|
class: "lupa-search-results-summary"
|
|
9707
9716
|
};
|
|
9708
|
-
const _hoisted_2$
|
|
9709
|
-
const _sfc_main$
|
|
9717
|
+
const _hoisted_2$E = ["innerHTML"];
|
|
9718
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
9710
9719
|
__name: "SearchResultsSummary",
|
|
9711
9720
|
props: {
|
|
9712
9721
|
label: {},
|
|
@@ -9721,8 +9730,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9721
9730
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
9722
9731
|
});
|
|
9723
9732
|
return (_ctx, _cache) => {
|
|
9724
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9725
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
9733
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
9734
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$E),
|
|
9726
9735
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
9727
9736
|
key: 0,
|
|
9728
9737
|
class: "lupa-filter-clear",
|
|
@@ -9733,18 +9742,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9733
9742
|
};
|
|
9734
9743
|
}
|
|
9735
9744
|
});
|
|
9736
|
-
const _hoisted_1$
|
|
9745
|
+
const _hoisted_1$U = {
|
|
9737
9746
|
key: 0,
|
|
9738
9747
|
class: "lupa-result-page-title",
|
|
9739
9748
|
"data-cy": "lupa-result-page-title"
|
|
9740
9749
|
};
|
|
9741
|
-
const _hoisted_2$
|
|
9742
|
-
const _hoisted_3$
|
|
9750
|
+
const _hoisted_2$D = { key: 0 };
|
|
9751
|
+
const _hoisted_3$u = {
|
|
9743
9752
|
key: 1,
|
|
9744
9753
|
class: "lupa-results-total-count"
|
|
9745
9754
|
};
|
|
9746
9755
|
const _hoisted_4$l = ["innerHTML"];
|
|
9747
|
-
const _sfc_main$
|
|
9756
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
9748
9757
|
__name: "SearchResultsTitle",
|
|
9749
9758
|
props: {
|
|
9750
9759
|
options: {},
|
|
@@ -9779,12 +9788,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9779
9788
|
});
|
|
9780
9789
|
return (_ctx, _cache) => {
|
|
9781
9790
|
return openBlock(), createElementBlock("div", null, [
|
|
9782
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
9791
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$U, [
|
|
9783
9792
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
9784
|
-
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9785
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
9793
|
+
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$D, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
9794
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$u, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
|
|
9786
9795
|
])) : createCommentVNode("", true),
|
|
9787
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
9796
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Y, {
|
|
9788
9797
|
key: 1,
|
|
9789
9798
|
label: summaryLabel.value
|
|
9790
9799
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -9797,16 +9806,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9797
9806
|
};
|
|
9798
9807
|
}
|
|
9799
9808
|
});
|
|
9800
|
-
const _hoisted_1$
|
|
9801
|
-
const _hoisted_2$
|
|
9809
|
+
const _hoisted_1$T = { class: "lupa-search-result-filter-value" };
|
|
9810
|
+
const _hoisted_2$C = {
|
|
9802
9811
|
class: "lupa-current-filter-label",
|
|
9803
9812
|
"data-cy": "lupa-current-filter-label"
|
|
9804
9813
|
};
|
|
9805
|
-
const _hoisted_3$
|
|
9814
|
+
const _hoisted_3$t = {
|
|
9806
9815
|
class: "lupa-current-filter-value",
|
|
9807
9816
|
"data-cy": "lupa-current-filter-value"
|
|
9808
9817
|
};
|
|
9809
|
-
const _sfc_main$
|
|
9818
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
9810
9819
|
__name: "CurrentFilterDisplay",
|
|
9811
9820
|
props: {
|
|
9812
9821
|
filter: {}
|
|
@@ -9818,28 +9827,28 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9818
9827
|
emit2("remove", { filter: props.filter });
|
|
9819
9828
|
};
|
|
9820
9829
|
return (_ctx, _cache) => {
|
|
9821
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9830
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
9822
9831
|
createBaseVNode("div", {
|
|
9823
9832
|
class: "lupa-current-filter-action",
|
|
9824
9833
|
onClick: handleClick
|
|
9825
9834
|
}, "⨉"),
|
|
9826
|
-
createBaseVNode("div", _hoisted_2$
|
|
9827
|
-
createBaseVNode("div", _hoisted_3$
|
|
9835
|
+
createBaseVNode("div", _hoisted_2$C, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
9836
|
+
createBaseVNode("div", _hoisted_3$t, toDisplayString(_ctx.filter.value), 1)
|
|
9828
9837
|
]);
|
|
9829
9838
|
};
|
|
9830
9839
|
}
|
|
9831
9840
|
});
|
|
9832
|
-
const _hoisted_1$
|
|
9833
|
-
const _hoisted_2$
|
|
9841
|
+
const _hoisted_1$S = { class: "lupa-filter-title-text" };
|
|
9842
|
+
const _hoisted_2$B = {
|
|
9834
9843
|
key: 0,
|
|
9835
9844
|
class: "lupa-filter-count"
|
|
9836
9845
|
};
|
|
9837
|
-
const _hoisted_3$
|
|
9846
|
+
const _hoisted_3$s = {
|
|
9838
9847
|
key: 0,
|
|
9839
9848
|
class: "filter-values"
|
|
9840
9849
|
};
|
|
9841
9850
|
const _hoisted_4$k = { class: "lupa-current-filter-list" };
|
|
9842
|
-
const _sfc_main$
|
|
9851
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
9843
9852
|
__name: "CurrentFilters",
|
|
9844
9853
|
props: {
|
|
9845
9854
|
options: {},
|
|
@@ -9894,19 +9903,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9894
9903
|
class: "lupa-current-filter-title",
|
|
9895
9904
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
9896
9905
|
}, [
|
|
9897
|
-
createBaseVNode("div", _hoisted_1$
|
|
9906
|
+
createBaseVNode("div", _hoisted_1$S, [
|
|
9898
9907
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
9899
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9908
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$B, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
9900
9909
|
]),
|
|
9901
9910
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
9902
9911
|
key: 0,
|
|
9903
9912
|
class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
9904
9913
|
}, null, 2)) : createCommentVNode("", true)
|
|
9905
9914
|
]),
|
|
9906
|
-
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9915
|
+
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$s, [
|
|
9907
9916
|
createBaseVNode("div", _hoisted_4$k, [
|
|
9908
9917
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
|
|
9909
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9918
|
+
return openBlock(), createBlock(_sfc_main$W, {
|
|
9910
9919
|
key: filter.key + "_" + filter.value,
|
|
9911
9920
|
filter,
|
|
9912
9921
|
onRemove: handleRemove
|
|
@@ -9923,8 +9932,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9923
9932
|
};
|
|
9924
9933
|
}
|
|
9925
9934
|
});
|
|
9926
|
-
const _hoisted_1$
|
|
9927
|
-
const _sfc_main$
|
|
9935
|
+
const _hoisted_1$R = ["href"];
|
|
9936
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
9928
9937
|
__name: "CategoryFilterItem",
|
|
9929
9938
|
props: {
|
|
9930
9939
|
options: {},
|
|
@@ -9961,20 +9970,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9961
9970
|
"data-cy": "lupa-child-category-item",
|
|
9962
9971
|
href: urlLink.value,
|
|
9963
9972
|
onClick: handleNavigation
|
|
9964
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
9973
|
+
}, toDisplayString(title.value), 9, _hoisted_1$R)
|
|
9965
9974
|
], 2);
|
|
9966
9975
|
};
|
|
9967
9976
|
}
|
|
9968
9977
|
});
|
|
9969
|
-
const _hoisted_1$
|
|
9978
|
+
const _hoisted_1$Q = {
|
|
9970
9979
|
class: "lupa-category-filter",
|
|
9971
9980
|
"data-cy": "lupa-category-filter"
|
|
9972
9981
|
};
|
|
9973
|
-
const _hoisted_2$
|
|
9974
|
-
const _hoisted_3$
|
|
9982
|
+
const _hoisted_2$A = { class: "lupa-category-back" };
|
|
9983
|
+
const _hoisted_3$r = ["href"];
|
|
9975
9984
|
const _hoisted_4$j = ["href"];
|
|
9976
9985
|
const _hoisted_5$c = { class: "lupa-child-category-list" };
|
|
9977
|
-
const _sfc_main$
|
|
9986
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
9978
9987
|
__name: "CategoryFilter",
|
|
9979
9988
|
props: {
|
|
9980
9989
|
options: {}
|
|
@@ -10060,14 +10069,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10060
10069
|
};
|
|
10061
10070
|
__expose({ fetch: fetch2 });
|
|
10062
10071
|
return (_ctx, _cache) => {
|
|
10063
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10064
|
-
createBaseVNode("div", _hoisted_2$
|
|
10072
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
10073
|
+
createBaseVNode("div", _hoisted_2$A, [
|
|
10065
10074
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
10066
10075
|
key: 0,
|
|
10067
10076
|
"data-cy": "lupa-category-back",
|
|
10068
10077
|
href: backUrlLink.value,
|
|
10069
10078
|
onClick: handleNavigationBack
|
|
10070
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
10079
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$r)) : createCommentVNode("", true)
|
|
10071
10080
|
]),
|
|
10072
10081
|
createBaseVNode("div", {
|
|
10073
10082
|
class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -10081,7 +10090,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10081
10090
|
], 2),
|
|
10082
10091
|
createBaseVNode("div", _hoisted_5$c, [
|
|
10083
10092
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
10084
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10093
|
+
return openBlock(), createBlock(_sfc_main$U, {
|
|
10085
10094
|
key: getCategoryKey(child),
|
|
10086
10095
|
item: child,
|
|
10087
10096
|
options: _ctx.options
|
|
@@ -10092,15 +10101,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10092
10101
|
};
|
|
10093
10102
|
}
|
|
10094
10103
|
});
|
|
10095
|
-
const _hoisted_1$
|
|
10104
|
+
const _hoisted_1$P = {
|
|
10096
10105
|
class: "lupa-search-result-facet-term-values",
|
|
10097
10106
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
10098
10107
|
};
|
|
10099
|
-
const _hoisted_2$
|
|
10100
|
-
const _hoisted_3$
|
|
10108
|
+
const _hoisted_2$z = ["placeholder"];
|
|
10109
|
+
const _hoisted_3$q = { class: "lupa-terms-list" };
|
|
10101
10110
|
const _hoisted_4$i = ["onClick"];
|
|
10102
10111
|
const _hoisted_5$b = { class: "lupa-term-checkbox-wrapper" };
|
|
10103
|
-
const _hoisted_6$
|
|
10112
|
+
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
10104
10113
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
10105
10114
|
const _hoisted_8$1 = {
|
|
10106
10115
|
key: 0,
|
|
@@ -10108,7 +10117,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10108
10117
|
};
|
|
10109
10118
|
const _hoisted_9$1 = { key: 0 };
|
|
10110
10119
|
const _hoisted_10$1 = { key: 1 };
|
|
10111
|
-
const _sfc_main$
|
|
10120
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
10112
10121
|
__name: "TermFacet",
|
|
10113
10122
|
props: {
|
|
10114
10123
|
options: {},
|
|
@@ -10177,17 +10186,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10177
10186
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
10178
10187
|
};
|
|
10179
10188
|
return (_ctx, _cache) => {
|
|
10180
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10189
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
10181
10190
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
10182
10191
|
key: 0,
|
|
10183
10192
|
class: "lupa-term-filter",
|
|
10184
10193
|
"data-cy": "lupa-term-filter",
|
|
10185
10194
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
10186
10195
|
placeholder: _ctx.options.labels.facetFilter
|
|
10187
|
-
}, null, 8, _hoisted_2$
|
|
10196
|
+
}, null, 8, _hoisted_2$z)), [
|
|
10188
10197
|
[vModelText, termFilter.value]
|
|
10189
10198
|
]) : createCommentVNode("", true),
|
|
10190
|
-
createBaseVNode("div", _hoisted_3$
|
|
10199
|
+
createBaseVNode("div", _hoisted_3$q, [
|
|
10191
10200
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
10192
10201
|
return openBlock(), createElementBlock("div", {
|
|
10193
10202
|
class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -10200,7 +10209,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10200
10209
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
10201
10210
|
}, null, 2)
|
|
10202
10211
|
]),
|
|
10203
|
-
createBaseVNode("div", _hoisted_6$
|
|
10212
|
+
createBaseVNode("div", _hoisted_6$8, [
|
|
10204
10213
|
createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
|
|
10205
10214
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
10206
10215
|
])
|
|
@@ -11195,12 +11204,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11195
11204
|
m.render = function(e, t, r, i, n, o) {
|
|
11196
11205
|
return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
|
|
11197
11206
|
}, m.__file = "src/Slider.vue";
|
|
11198
|
-
const _hoisted_1$
|
|
11199
|
-
const _hoisted_2$
|
|
11207
|
+
const _hoisted_1$O = { class: "lupa-search-result-facet-stats-values" };
|
|
11208
|
+
const _hoisted_2$y = {
|
|
11200
11209
|
key: 0,
|
|
11201
11210
|
class: "lupa-stats-facet-summary"
|
|
11202
11211
|
};
|
|
11203
|
-
const _hoisted_3$
|
|
11212
|
+
const _hoisted_3$p = {
|
|
11204
11213
|
key: 1,
|
|
11205
11214
|
class: "lupa-stats-facet-summary-input"
|
|
11206
11215
|
};
|
|
@@ -11209,7 +11218,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11209
11218
|
class: "lupa-stats-range-label"
|
|
11210
11219
|
};
|
|
11211
11220
|
const _hoisted_5$a = { class: "lupa-stats-from" };
|
|
11212
|
-
const _hoisted_6$
|
|
11221
|
+
const _hoisted_6$7 = ["max", "min", "pattern"];
|
|
11213
11222
|
const _hoisted_7$5 = { key: 0 };
|
|
11214
11223
|
const _hoisted_8 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
11215
11224
|
const _hoisted_9 = {
|
|
@@ -11223,7 +11232,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11223
11232
|
key: 2,
|
|
11224
11233
|
class: "lupa-stats-slider-wrapper"
|
|
11225
11234
|
};
|
|
11226
|
-
const _sfc_main$
|
|
11235
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
11227
11236
|
__name: "StatsFacet",
|
|
11228
11237
|
props: {
|
|
11229
11238
|
options: {},
|
|
@@ -11371,8 +11380,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11371
11380
|
innerSliderRange.value = value;
|
|
11372
11381
|
};
|
|
11373
11382
|
return (_ctx, _cache) => {
|
|
11374
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11375
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11383
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
11384
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$p, [
|
|
11376
11385
|
createBaseVNode("div", null, [
|
|
11377
11386
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
11378
11387
|
createBaseVNode("div", _hoisted_5$a, [
|
|
@@ -11383,7 +11392,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11383
11392
|
max: facetMax.value,
|
|
11384
11393
|
min: facetMin.value,
|
|
11385
11394
|
pattern: sliderInputFormat.value
|
|
11386
|
-
}, null, 8, _hoisted_6$
|
|
11395
|
+
}, null, 8, _hoisted_6$7), [
|
|
11387
11396
|
[
|
|
11388
11397
|
vModelText,
|
|
11389
11398
|
fromValue.value,
|
|
@@ -11435,9 +11444,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11435
11444
|
};
|
|
11436
11445
|
}
|
|
11437
11446
|
});
|
|
11438
|
-
const _hoisted_1$
|
|
11439
|
-
const _hoisted_2$
|
|
11440
|
-
const _hoisted_3$
|
|
11447
|
+
const _hoisted_1$N = { class: "lupa-term-checkbox-wrapper" };
|
|
11448
|
+
const _hoisted_2$x = { class: "lupa-term-checkbox-label" };
|
|
11449
|
+
const _hoisted_3$o = { class: "lupa-term-label" };
|
|
11441
11450
|
const _hoisted_4$g = {
|
|
11442
11451
|
key: 0,
|
|
11443
11452
|
class: "lupa-term-count"
|
|
@@ -11446,7 +11455,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11446
11455
|
key: 0,
|
|
11447
11456
|
class: "lupa-facet-level"
|
|
11448
11457
|
};
|
|
11449
|
-
const _sfc_main$
|
|
11458
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
11450
11459
|
__name: "HierarchyFacetLevel",
|
|
11451
11460
|
props: {
|
|
11452
11461
|
options: {},
|
|
@@ -11492,13 +11501,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11492
11501
|
"data-cy": "lupa-facet-term",
|
|
11493
11502
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
11494
11503
|
}, [
|
|
11495
|
-
createBaseVNode("div", _hoisted_1$
|
|
11504
|
+
createBaseVNode("div", _hoisted_1$N, [
|
|
11496
11505
|
createBaseVNode("span", {
|
|
11497
11506
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
11498
11507
|
}, null, 2)
|
|
11499
11508
|
]),
|
|
11500
|
-
createBaseVNode("div", _hoisted_2$
|
|
11501
|
-
createBaseVNode("span", _hoisted_3$
|
|
11509
|
+
createBaseVNode("div", _hoisted_2$x, [
|
|
11510
|
+
createBaseVNode("span", _hoisted_3$o, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
11502
11511
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
11503
11512
|
])
|
|
11504
11513
|
]),
|
|
@@ -11518,13 +11527,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11518
11527
|
};
|
|
11519
11528
|
}
|
|
11520
11529
|
});
|
|
11521
|
-
const _hoisted_1$
|
|
11530
|
+
const _hoisted_1$M = {
|
|
11522
11531
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
11523
11532
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
11524
11533
|
};
|
|
11525
|
-
const _hoisted_2$
|
|
11526
|
-
const _hoisted_3$
|
|
11527
|
-
const _sfc_main$
|
|
11534
|
+
const _hoisted_2$w = { key: 0 };
|
|
11535
|
+
const _hoisted_3$n = ["placeholder"];
|
|
11536
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
11528
11537
|
__name: "HierarchyFacet",
|
|
11529
11538
|
props: {
|
|
11530
11539
|
options: {},
|
|
@@ -11574,19 +11583,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11574
11583
|
showAll.value = true;
|
|
11575
11584
|
};
|
|
11576
11585
|
return (_ctx, _cache) => {
|
|
11577
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11578
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11586
|
+
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
11587
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
|
|
11579
11588
|
withDirectives(createBaseVNode("input", {
|
|
11580
11589
|
class: "lupa-term-filter",
|
|
11581
11590
|
"data-cy": "lupa-term-filter",
|
|
11582
11591
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
11583
11592
|
placeholder: _ctx.options.labels.facetFilter
|
|
11584
|
-
}, null, 8, _hoisted_3$
|
|
11593
|
+
}, null, 8, _hoisted_3$n), [
|
|
11585
11594
|
[vModelText, termFilter.value]
|
|
11586
11595
|
])
|
|
11587
11596
|
])) : createCommentVNode("", true),
|
|
11588
11597
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
11589
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11598
|
+
return openBlock(), createBlock(_sfc_main$Q, {
|
|
11590
11599
|
key: item.title,
|
|
11591
11600
|
options: _ctx.options,
|
|
11592
11601
|
item,
|
|
@@ -11606,20 +11615,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11606
11615
|
};
|
|
11607
11616
|
}
|
|
11608
11617
|
});
|
|
11609
|
-
const _hoisted_1$
|
|
11610
|
-
const _hoisted_2$
|
|
11618
|
+
const _hoisted_1$L = { class: "lupa-facet-label-text" };
|
|
11619
|
+
const _hoisted_2$v = {
|
|
11611
11620
|
key: 0,
|
|
11612
11621
|
class: "lupa-facet-content",
|
|
11613
11622
|
"data-cy": "lupa-facet-content"
|
|
11614
11623
|
};
|
|
11615
11624
|
const __default__$2 = {
|
|
11616
11625
|
components: {
|
|
11617
|
-
TermFacet: _sfc_main$
|
|
11618
|
-
StatsFacet: _sfc_main$
|
|
11619
|
-
HierarchyFacet: _sfc_main$
|
|
11626
|
+
TermFacet: _sfc_main$S,
|
|
11627
|
+
StatsFacet: _sfc_main$R,
|
|
11628
|
+
HierarchyFacet: _sfc_main$P
|
|
11620
11629
|
}
|
|
11621
11630
|
};
|
|
11622
|
-
const _sfc_main$
|
|
11631
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
11623
11632
|
__name: "FacetDisplay",
|
|
11624
11633
|
props: {
|
|
11625
11634
|
options: {},
|
|
@@ -11730,12 +11739,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11730
11739
|
"data-cy": "lupa-search-result-facet-label",
|
|
11731
11740
|
onClick: toggleFacet
|
|
11732
11741
|
}, [
|
|
11733
|
-
createBaseVNode("div", _hoisted_1$
|
|
11742
|
+
createBaseVNode("div", _hoisted_1$L, toDisplayString(facet.value.label), 1),
|
|
11734
11743
|
createBaseVNode("div", {
|
|
11735
11744
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
11736
11745
|
}, null, 2)
|
|
11737
11746
|
], 2),
|
|
11738
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11747
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
|
|
11739
11748
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
11740
11749
|
facet: facet.value,
|
|
11741
11750
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -11753,12 +11762,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11753
11762
|
};
|
|
11754
11763
|
}
|
|
11755
11764
|
}));
|
|
11756
|
-
const _hoisted_1$
|
|
11757
|
-
const _hoisted_2$
|
|
11765
|
+
const _hoisted_1$K = { class: "lupa-search-result-facet-section" };
|
|
11766
|
+
const _hoisted_2$u = {
|
|
11758
11767
|
key: 0,
|
|
11759
11768
|
class: "lupa-facets-title"
|
|
11760
11769
|
};
|
|
11761
|
-
const _sfc_main$
|
|
11770
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
11762
11771
|
__name: "FacetList",
|
|
11763
11772
|
props: {
|
|
11764
11773
|
options: {},
|
|
@@ -11792,14 +11801,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11792
11801
|
};
|
|
11793
11802
|
return (_ctx, _cache) => {
|
|
11794
11803
|
var _a;
|
|
11795
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11796
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11804
|
+
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
11805
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$u, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
11797
11806
|
createBaseVNode("div", {
|
|
11798
11807
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
11799
11808
|
}, [
|
|
11800
11809
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
11801
11810
|
var _a2;
|
|
11802
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11811
|
+
return openBlock(), createBlock(_sfc_main$O, {
|
|
11803
11812
|
key: facet.key,
|
|
11804
11813
|
facet,
|
|
11805
11814
|
currentFilters: currentFiltersValue.value,
|
|
@@ -11814,8 +11823,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11814
11823
|
};
|
|
11815
11824
|
}
|
|
11816
11825
|
});
|
|
11817
|
-
const _hoisted_1$
|
|
11818
|
-
const _sfc_main$
|
|
11826
|
+
const _hoisted_1$J = { class: "lupa-search-result-facets" };
|
|
11827
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
11819
11828
|
__name: "Facets",
|
|
11820
11829
|
props: {
|
|
11821
11830
|
options: {},
|
|
@@ -11861,8 +11870,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11861
11870
|
paramStore.removeParameters({ paramsToRemove: [param] });
|
|
11862
11871
|
};
|
|
11863
11872
|
return (_ctx, _cache) => {
|
|
11864
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11865
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
11873
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
11874
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$N, {
|
|
11866
11875
|
key: 0,
|
|
11867
11876
|
options: _ctx.options,
|
|
11868
11877
|
facets: regularFacets.value,
|
|
@@ -11876,11 +11885,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11876
11885
|
};
|
|
11877
11886
|
}
|
|
11878
11887
|
});
|
|
11879
|
-
const _hoisted_1$
|
|
11888
|
+
const _hoisted_1$I = {
|
|
11880
11889
|
id: "lupa-search-result-filters",
|
|
11881
11890
|
class: "lupa-search-result-filters"
|
|
11882
11891
|
};
|
|
11883
|
-
const _sfc_main$
|
|
11892
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
11884
11893
|
__name: "SearchResultsFilters",
|
|
11885
11894
|
props: {
|
|
11886
11895
|
options: {},
|
|
@@ -11909,19 +11918,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11909
11918
|
__expose({ fetch: fetch2 });
|
|
11910
11919
|
return (_ctx, _cache) => {
|
|
11911
11920
|
var _a;
|
|
11912
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11913
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
11921
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
11922
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$V, {
|
|
11914
11923
|
key: 0,
|
|
11915
11924
|
options: _ctx.options.currentFilters,
|
|
11916
11925
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
11917
11926
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
11918
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
11927
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$T, {
|
|
11919
11928
|
key: 1,
|
|
11920
11929
|
options: _ctx.options.categories,
|
|
11921
11930
|
ref_key: "categoryFilters",
|
|
11922
11931
|
ref: categoryFilters
|
|
11923
11932
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
11924
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
11933
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
|
|
11925
11934
|
key: 2,
|
|
11926
11935
|
options: _ctx.options.facets
|
|
11927
11936
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -11929,20 +11938,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11929
11938
|
};
|
|
11930
11939
|
}
|
|
11931
11940
|
});
|
|
11932
|
-
const _hoisted_1$
|
|
11941
|
+
const _hoisted_1$H = {
|
|
11933
11942
|
key: 0,
|
|
11934
11943
|
class: "lupa-mobile-filter-sidebar"
|
|
11935
11944
|
};
|
|
11936
|
-
const _hoisted_2$
|
|
11937
|
-
const _hoisted_3$
|
|
11945
|
+
const _hoisted_2$t = ["onClick"];
|
|
11946
|
+
const _hoisted_3$m = { class: "lupa-mobile-sidebar-content" };
|
|
11938
11947
|
const _hoisted_4$f = { class: "lupa-sidebar-top" };
|
|
11939
11948
|
const _hoisted_5$8 = { class: "lupa-sidebar-title" };
|
|
11940
|
-
const _hoisted_6$
|
|
11949
|
+
const _hoisted_6$6 = {
|
|
11941
11950
|
key: 0,
|
|
11942
11951
|
class: "lupa-sidebar-filter-count"
|
|
11943
11952
|
};
|
|
11944
11953
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
11945
|
-
const _sfc_main$
|
|
11954
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
11946
11955
|
__name: "MobileFilterSidebar",
|
|
11947
11956
|
props: {
|
|
11948
11957
|
options: {}
|
|
@@ -11968,16 +11977,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11968
11977
|
searchResultStore.setSidebarState({ visible: false });
|
|
11969
11978
|
};
|
|
11970
11979
|
return (_ctx, _cache) => {
|
|
11971
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11980
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
11972
11981
|
createBaseVNode("div", {
|
|
11973
11982
|
class: "lupa-sidebar-close",
|
|
11974
11983
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
11975
|
-
}, null, 8, _hoisted_2$
|
|
11976
|
-
createBaseVNode("div", _hoisted_3$
|
|
11984
|
+
}, null, 8, _hoisted_2$t),
|
|
11985
|
+
createBaseVNode("div", _hoisted_3$m, [
|
|
11977
11986
|
createBaseVNode("div", _hoisted_4$f, [
|
|
11978
11987
|
createBaseVNode("div", _hoisted_5$8, [
|
|
11979
11988
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
11980
|
-
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
11989
|
+
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
11981
11990
|
]),
|
|
11982
11991
|
createBaseVNode("div", {
|
|
11983
11992
|
class: "lupa-filter-toggle-mobile",
|
|
@@ -11985,7 +11994,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11985
11994
|
})
|
|
11986
11995
|
]),
|
|
11987
11996
|
createBaseVNode("div", _hoisted_7$4, [
|
|
11988
|
-
createVNode(_sfc_main$
|
|
11997
|
+
createVNode(_sfc_main$L, {
|
|
11989
11998
|
options: _ctx.options,
|
|
11990
11999
|
expandable: isActiveFiltersExpanded.value
|
|
11991
12000
|
}, null, 8, ["options", "expandable"])
|
|
@@ -11995,14 +12004,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11995
12004
|
};
|
|
11996
12005
|
}
|
|
11997
12006
|
});
|
|
11998
|
-
const _hoisted_1$
|
|
11999
|
-
const _hoisted_2$
|
|
12000
|
-
const _hoisted_3$
|
|
12007
|
+
const _hoisted_1$G = { id: "lupa-search-results-breadcrumbs" };
|
|
12008
|
+
const _hoisted_2$s = ["href", "onClick"];
|
|
12009
|
+
const _hoisted_3$l = {
|
|
12001
12010
|
key: 1,
|
|
12002
12011
|
class: "lupa-search-results-breadcrumb-text"
|
|
12003
12012
|
};
|
|
12004
12013
|
const _hoisted_4$e = { key: 2 };
|
|
12005
|
-
const _sfc_main$
|
|
12014
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
12006
12015
|
__name: "SearchResultsBreadcrumbs",
|
|
12007
12016
|
props: {
|
|
12008
12017
|
breadcrumbs: {}
|
|
@@ -12027,7 +12036,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12027
12036
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
12028
12037
|
};
|
|
12029
12038
|
return (_ctx, _cache) => {
|
|
12030
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12039
|
+
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
12031
12040
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
12032
12041
|
return openBlock(), createElementBlock("span", {
|
|
12033
12042
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -12041,7 +12050,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12041
12050
|
var _a;
|
|
12042
12051
|
return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
12043
12052
|
}
|
|
12044
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
12053
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$l, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
12045
12054
|
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
|
|
12046
12055
|
]);
|
|
12047
12056
|
}), 128))
|
|
@@ -12049,11 +12058,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12049
12058
|
};
|
|
12050
12059
|
}
|
|
12051
12060
|
});
|
|
12052
|
-
const _hoisted_1$
|
|
12061
|
+
const _hoisted_1$F = {
|
|
12053
12062
|
id: "lupa-search-result-filters",
|
|
12054
12063
|
class: "lupa-search-result-filters"
|
|
12055
12064
|
};
|
|
12056
|
-
const _sfc_main$
|
|
12065
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
12057
12066
|
__name: "FiltersTopDropdown",
|
|
12058
12067
|
props: {
|
|
12059
12068
|
options: {}
|
|
@@ -12061,8 +12070,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12061
12070
|
setup(__props) {
|
|
12062
12071
|
return (_ctx, _cache) => {
|
|
12063
12072
|
var _a;
|
|
12064
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12065
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
12073
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
12074
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
|
|
12066
12075
|
key: 0,
|
|
12067
12076
|
options: _ctx.options.facets,
|
|
12068
12077
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -12072,8 +12081,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12072
12081
|
};
|
|
12073
12082
|
}
|
|
12074
12083
|
});
|
|
12075
|
-
const _hoisted_1$
|
|
12076
|
-
const _sfc_main$
|
|
12084
|
+
const _hoisted_1$E = { id: "lupa-search-results-layout-selection" };
|
|
12085
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
12077
12086
|
__name: "SearchResultsLayoutSelection",
|
|
12078
12087
|
setup(__props) {
|
|
12079
12088
|
const searchResultStore = useSearchResultStore();
|
|
@@ -12084,7 +12093,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12084
12093
|
searchResultStore.setLayout(layout2);
|
|
12085
12094
|
};
|
|
12086
12095
|
return (_ctx, _cache) => {
|
|
12087
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12096
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
12088
12097
|
createBaseVNode("div", {
|
|
12089
12098
|
class: normalizeClass([
|
|
12090
12099
|
"lupa-layout-selection-grid",
|
|
@@ -12106,11 +12115,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12106
12115
|
};
|
|
12107
12116
|
}
|
|
12108
12117
|
});
|
|
12109
|
-
const _hoisted_1$
|
|
12118
|
+
const _hoisted_1$D = {
|
|
12110
12119
|
key: 0,
|
|
12111
12120
|
class: "lupa-mobile-toggle-filter-count"
|
|
12112
12121
|
};
|
|
12113
|
-
const _sfc_main$
|
|
12122
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
12114
12123
|
__name: "SearchResultsMobileToggle",
|
|
12115
12124
|
props: {
|
|
12116
12125
|
label: {},
|
|
@@ -12128,26 +12137,26 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12128
12137
|
onClick: handleMobileToggle
|
|
12129
12138
|
}, [
|
|
12130
12139
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
12131
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
12140
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$D, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
12132
12141
|
], 2);
|
|
12133
12142
|
};
|
|
12134
12143
|
}
|
|
12135
12144
|
});
|
|
12136
|
-
const _hoisted_1$
|
|
12145
|
+
const _hoisted_1$C = {
|
|
12137
12146
|
key: 0,
|
|
12138
12147
|
id: "lupa-search-results-page-select",
|
|
12139
12148
|
"data-cy": "lupa-search-results-page-select"
|
|
12140
12149
|
};
|
|
12141
|
-
const _hoisted_2$
|
|
12150
|
+
const _hoisted_2$r = {
|
|
12142
12151
|
key: 0,
|
|
12143
12152
|
class: "lupa-page-number-separator"
|
|
12144
12153
|
};
|
|
12145
|
-
const _hoisted_3$
|
|
12154
|
+
const _hoisted_3$k = ["onClick"];
|
|
12146
12155
|
const _hoisted_4$d = {
|
|
12147
12156
|
key: 0,
|
|
12148
12157
|
class: "lupa-page-number-separator"
|
|
12149
12158
|
};
|
|
12150
|
-
const _sfc_main$
|
|
12159
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
12151
12160
|
__name: "SearchResultsPageSelect",
|
|
12152
12161
|
props: {
|
|
12153
12162
|
lastPageLabel: {},
|
|
@@ -12209,7 +12218,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12209
12218
|
}
|
|
12210
12219
|
};
|
|
12211
12220
|
return (_ctx, _cache) => {
|
|
12212
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
12221
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
12213
12222
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
12214
12223
|
key: 0,
|
|
12215
12224
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -12220,7 +12229,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12220
12229
|
class: "lupa-page-number lupa-page-number-first",
|
|
12221
12230
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
12222
12231
|
}, " 1 "),
|
|
12223
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12232
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, "...")) : createCommentVNode("", true)
|
|
12224
12233
|
], 64)) : createCommentVNode("", true),
|
|
12225
12234
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
12226
12235
|
return openBlock(), createElementBlock("div", {
|
|
@@ -12231,7 +12240,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12231
12240
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
12232
12241
|
]),
|
|
12233
12242
|
"data-cy": "lupa-page-number"
|
|
12234
|
-
}, toDisplayString(page), 11, _hoisted_3$
|
|
12243
|
+
}, toDisplayString(page), 11, _hoisted_3$k);
|
|
12235
12244
|
}), 128)),
|
|
12236
12245
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
12237
12246
|
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$d, "...")) : createCommentVNode("", true),
|
|
@@ -12253,13 +12262,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12253
12262
|
};
|
|
12254
12263
|
}
|
|
12255
12264
|
});
|
|
12256
|
-
const _hoisted_1$
|
|
12265
|
+
const _hoisted_1$B = {
|
|
12257
12266
|
id: "lupa-search-results-page-size",
|
|
12258
12267
|
"data-cy": "lupa-search-results-page-size"
|
|
12259
12268
|
};
|
|
12260
|
-
const _hoisted_2$
|
|
12261
|
-
const _hoisted_3$
|
|
12262
|
-
const _sfc_main$
|
|
12269
|
+
const _hoisted_2$q = { id: "lupa-select" };
|
|
12270
|
+
const _hoisted_3$j = { class: "lupa-select-label" };
|
|
12271
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
12263
12272
|
__name: "SearchResultsPageSize",
|
|
12264
12273
|
props: {
|
|
12265
12274
|
label: {},
|
|
@@ -12276,9 +12285,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12276
12285
|
});
|
|
12277
12286
|
};
|
|
12278
12287
|
return (_ctx, _cache) => {
|
|
12279
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12280
|
-
createBaseVNode("div", _hoisted_2$
|
|
12281
|
-
createBaseVNode("label", _hoisted_3$
|
|
12288
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
12289
|
+
createBaseVNode("div", _hoisted_2$q, [
|
|
12290
|
+
createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.label), 1),
|
|
12282
12291
|
createBaseVNode("select", {
|
|
12283
12292
|
class: "lupa-select-dropdown",
|
|
12284
12293
|
"data-cy": "lupa-page-size-select-dropdown",
|
|
@@ -12295,14 +12304,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12295
12304
|
};
|
|
12296
12305
|
}
|
|
12297
12306
|
});
|
|
12298
|
-
const _hoisted_1$
|
|
12307
|
+
const _hoisted_1$A = {
|
|
12299
12308
|
id: "lupa-search-results-sort",
|
|
12300
12309
|
class: "lupa-search-results-sort"
|
|
12301
12310
|
};
|
|
12302
|
-
const _hoisted_2$
|
|
12303
|
-
const _hoisted_3$
|
|
12311
|
+
const _hoisted_2$p = { id: "lupa-select" };
|
|
12312
|
+
const _hoisted_3$i = { class: "lupa-select-label" };
|
|
12304
12313
|
const _hoisted_4$c = ["value"];
|
|
12305
|
-
const _sfc_main$
|
|
12314
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
12306
12315
|
__name: "SearchResultsSort",
|
|
12307
12316
|
props: {
|
|
12308
12317
|
options: {},
|
|
@@ -12349,9 +12358,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12349
12358
|
previousKey.value = selectedKey.value;
|
|
12350
12359
|
};
|
|
12351
12360
|
return (_ctx, _cache) => {
|
|
12352
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12353
|
-
createBaseVNode("div", _hoisted_2$
|
|
12354
|
-
createBaseVNode("label", _hoisted_3$
|
|
12361
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
12362
|
+
createBaseVNode("div", _hoisted_2$p, [
|
|
12363
|
+
createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.options.label), 1),
|
|
12355
12364
|
withDirectives(createBaseVNode("select", {
|
|
12356
12365
|
class: "lupa-select-dropdown",
|
|
12357
12366
|
"data-cy": "lupa-sort-select-dropdown",
|
|
@@ -12373,14 +12382,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12373
12382
|
};
|
|
12374
12383
|
}
|
|
12375
12384
|
});
|
|
12376
|
-
const _hoisted_1$
|
|
12377
|
-
const _hoisted_2$
|
|
12378
|
-
const _hoisted_3$
|
|
12385
|
+
const _hoisted_1$z = { class: "lupa-toolbar-left" };
|
|
12386
|
+
const _hoisted_2$o = { key: 1 };
|
|
12387
|
+
const _hoisted_3$h = { key: 3 };
|
|
12379
12388
|
const _hoisted_4$b = { key: 5 };
|
|
12380
12389
|
const _hoisted_5$7 = { class: "lupa-toolbar-right" };
|
|
12381
|
-
const _hoisted_6$
|
|
12390
|
+
const _hoisted_6$5 = { key: 1 };
|
|
12382
12391
|
const _hoisted_7$3 = { key: 3 };
|
|
12383
|
-
const _sfc_main$
|
|
12392
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
12384
12393
|
__name: "SearchResultsToolbar",
|
|
12385
12394
|
props: {
|
|
12386
12395
|
options: {},
|
|
@@ -12479,15 +12488,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12479
12488
|
id: "lupa-search-results-toolbar",
|
|
12480
12489
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
12481
12490
|
}, [
|
|
12482
|
-
createBaseVNode("div", _hoisted_1$
|
|
12483
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
12484
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
12491
|
+
createBaseVNode("div", _hoisted_1$z, [
|
|
12492
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$H, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$o)),
|
|
12493
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Y, {
|
|
12485
12494
|
key: 2,
|
|
12486
12495
|
label: searchSummaryLabel.value,
|
|
12487
12496
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
12488
12497
|
onClear: handleClearAll
|
|
12489
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
12490
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
12498
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$h)),
|
|
12499
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$F, {
|
|
12491
12500
|
key: 4,
|
|
12492
12501
|
options: paginationOptions.value.pageSelect,
|
|
12493
12502
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
@@ -12495,16 +12504,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12495
12504
|
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$b))
|
|
12496
12505
|
]),
|
|
12497
12506
|
createBaseVNode("div", _hoisted_5$7, [
|
|
12498
|
-
createVNode(_sfc_main$
|
|
12507
|
+
createVNode(_sfc_main$G, {
|
|
12499
12508
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
12500
12509
|
"show-filter-count": showMobileFilterCount.value
|
|
12501
12510
|
}, null, 8, ["label", "show-filter-count"]),
|
|
12502
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
12511
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$E, {
|
|
12503
12512
|
key: 0,
|
|
12504
12513
|
options: paginationOptions.value.pageSize,
|
|
12505
12514
|
label: paginationOptions.value.labels.pageSize
|
|
12506
|
-
}, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$
|
|
12507
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
12515
|
+
}, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$5)),
|
|
12516
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$D, {
|
|
12508
12517
|
key: 2,
|
|
12509
12518
|
options: sortOptions.value,
|
|
12510
12519
|
callbacks: callbacks.value
|
|
@@ -12514,14 +12523,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12514
12523
|
};
|
|
12515
12524
|
}
|
|
12516
12525
|
});
|
|
12517
|
-
const _hoisted_1$
|
|
12518
|
-
const _hoisted_2$
|
|
12519
|
-
const _hoisted_3$
|
|
12526
|
+
const _hoisted_1$y = { class: "lupa-badge-title" };
|
|
12527
|
+
const _hoisted_2$n = ["src"];
|
|
12528
|
+
const _hoisted_3$g = { key: 1 };
|
|
12520
12529
|
const _hoisted_4$a = {
|
|
12521
12530
|
key: 0,
|
|
12522
12531
|
class: "lupa-badge-full-text"
|
|
12523
12532
|
};
|
|
12524
|
-
const _sfc_main$
|
|
12533
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
12525
12534
|
__name: "SearchResultGeneratedBadge",
|
|
12526
12535
|
props: {
|
|
12527
12536
|
options: {},
|
|
@@ -12554,20 +12563,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12554
12563
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
12555
12564
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
12556
12565
|
}, [
|
|
12557
|
-
createBaseVNode("span", _hoisted_1$
|
|
12566
|
+
createBaseVNode("span", _hoisted_1$y, [
|
|
12558
12567
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
12559
12568
|
key: 0,
|
|
12560
12569
|
src: image.value
|
|
12561
|
-
}, null, 8, _hoisted_2$
|
|
12562
|
-
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
12570
|
+
}, null, 8, _hoisted_2$n)) : createCommentVNode("", true),
|
|
12571
|
+
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$g, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
12563
12572
|
]),
|
|
12564
12573
|
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$a, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
12565
12574
|
], 6);
|
|
12566
12575
|
};
|
|
12567
12576
|
}
|
|
12568
12577
|
});
|
|
12569
|
-
const _hoisted_1$
|
|
12570
|
-
const _sfc_main$
|
|
12578
|
+
const _hoisted_1$x = { class: "lupa-generated-badges" };
|
|
12579
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
12571
12580
|
__name: "SearchResultGeneratedBadges",
|
|
12572
12581
|
props: {
|
|
12573
12582
|
options: {}
|
|
@@ -12593,9 +12602,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12593
12602
|
})).filter((b) => Boolean(b.id));
|
|
12594
12603
|
});
|
|
12595
12604
|
return (_ctx, _cache) => {
|
|
12596
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12605
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
12597
12606
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
12598
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12607
|
+
return openBlock(), createBlock(_sfc_main$B, {
|
|
12599
12608
|
key: badge.id,
|
|
12600
12609
|
badge,
|
|
12601
12610
|
options: _ctx.options
|
|
@@ -12605,8 +12614,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12605
12614
|
};
|
|
12606
12615
|
}
|
|
12607
12616
|
});
|
|
12608
|
-
const _hoisted_1$
|
|
12609
|
-
const _sfc_main$
|
|
12617
|
+
const _hoisted_1$w = ["innerHTML"];
|
|
12618
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
12610
12619
|
__name: "CustomBadge",
|
|
12611
12620
|
props: {
|
|
12612
12621
|
badge: {}
|
|
@@ -12625,12 +12634,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12625
12634
|
return openBlock(), createElementBlock("div", {
|
|
12626
12635
|
class: normalizeClass(className.value),
|
|
12627
12636
|
innerHTML: text.value
|
|
12628
|
-
}, null, 10, _hoisted_1$
|
|
12637
|
+
}, null, 10, _hoisted_1$w);
|
|
12629
12638
|
};
|
|
12630
12639
|
}
|
|
12631
12640
|
});
|
|
12632
|
-
const _hoisted_1$
|
|
12633
|
-
const _sfc_main$
|
|
12641
|
+
const _hoisted_1$v = { class: "lupa-text-badges" };
|
|
12642
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
12634
12643
|
__name: "TextBadge",
|
|
12635
12644
|
props: {
|
|
12636
12645
|
badge: {}
|
|
@@ -12645,7 +12654,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12645
12654
|
return badges.value.slice(0, props.badge.maxItems);
|
|
12646
12655
|
});
|
|
12647
12656
|
return (_ctx, _cache) => {
|
|
12648
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12657
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
12649
12658
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
12650
12659
|
return openBlock(), createElementBlock("div", {
|
|
12651
12660
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -12656,9 +12665,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12656
12665
|
};
|
|
12657
12666
|
}
|
|
12658
12667
|
});
|
|
12659
|
-
const _hoisted_1$
|
|
12660
|
-
const _hoisted_2$
|
|
12661
|
-
const _sfc_main$
|
|
12668
|
+
const _hoisted_1$u = { class: "lupa-image-badges" };
|
|
12669
|
+
const _hoisted_2$m = ["src"];
|
|
12670
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
12662
12671
|
__name: "ImageBadge",
|
|
12663
12672
|
props: {
|
|
12664
12673
|
badge: {}
|
|
@@ -12678,7 +12687,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12678
12687
|
return `${props.badge.rootImageUrl}${src}`;
|
|
12679
12688
|
};
|
|
12680
12689
|
return (_ctx, _cache) => {
|
|
12681
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12690
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
12682
12691
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
12683
12692
|
return openBlock(), createElementBlock("div", {
|
|
12684
12693
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -12686,22 +12695,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12686
12695
|
}, [
|
|
12687
12696
|
createBaseVNode("img", {
|
|
12688
12697
|
src: getImageUrl(item)
|
|
12689
|
-
}, null, 8, _hoisted_2$
|
|
12698
|
+
}, null, 8, _hoisted_2$m)
|
|
12690
12699
|
]);
|
|
12691
12700
|
}), 128))
|
|
12692
12701
|
]);
|
|
12693
12702
|
};
|
|
12694
12703
|
}
|
|
12695
12704
|
});
|
|
12696
|
-
const _hoisted_1$
|
|
12705
|
+
const _hoisted_1$t = { id: "lupa-search-results-badges" };
|
|
12697
12706
|
const __default__$1 = {
|
|
12698
12707
|
components: {
|
|
12699
|
-
CustomBadge: _sfc_main$
|
|
12700
|
-
TextBadge: _sfc_main$
|
|
12701
|
-
ImageBadge: _sfc_main$
|
|
12708
|
+
CustomBadge: _sfc_main$z,
|
|
12709
|
+
TextBadge: _sfc_main$y,
|
|
12710
|
+
ImageBadge: _sfc_main$x
|
|
12702
12711
|
}
|
|
12703
12712
|
};
|
|
12704
|
-
const _sfc_main$
|
|
12713
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
12705
12714
|
__name: "SearchResultsBadgeWrapper",
|
|
12706
12715
|
props: {
|
|
12707
12716
|
position: {},
|
|
@@ -12747,7 +12756,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12747
12756
|
}
|
|
12748
12757
|
};
|
|
12749
12758
|
return (_ctx, _cache) => {
|
|
12750
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12759
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
12751
12760
|
createBaseVNode("div", {
|
|
12752
12761
|
id: "lupa-badges",
|
|
12753
12762
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -12758,7 +12767,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12758
12767
|
badge
|
|
12759
12768
|
}, null, 8, ["badge"]);
|
|
12760
12769
|
}), 128)),
|
|
12761
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
12770
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$A, {
|
|
12762
12771
|
key: 0,
|
|
12763
12772
|
options: _ctx.options
|
|
12764
12773
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -12767,7 +12776,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12767
12776
|
};
|
|
12768
12777
|
}
|
|
12769
12778
|
}));
|
|
12770
|
-
const _sfc_main$
|
|
12779
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
12771
12780
|
__name: "SearchResultsProductImage",
|
|
12772
12781
|
props: {
|
|
12773
12782
|
item: {},
|
|
@@ -12775,7 +12784,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12775
12784
|
},
|
|
12776
12785
|
setup(__props) {
|
|
12777
12786
|
return (_ctx, _cache) => {
|
|
12778
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12787
|
+
return openBlock(), createBlock(_sfc_main$1c, {
|
|
12779
12788
|
item: _ctx.item,
|
|
12780
12789
|
options: _ctx.options,
|
|
12781
12790
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -12784,14 +12793,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12784
12793
|
};
|
|
12785
12794
|
}
|
|
12786
12795
|
});
|
|
12787
|
-
const _hoisted_1$
|
|
12788
|
-
const _hoisted_2$
|
|
12789
|
-
const _hoisted_3$
|
|
12796
|
+
const _hoisted_1$s = ["innerHTML"];
|
|
12797
|
+
const _hoisted_2$l = ["title"];
|
|
12798
|
+
const _hoisted_3$f = {
|
|
12790
12799
|
key: 0,
|
|
12791
12800
|
class: "lupa-search-results-product-title-text"
|
|
12792
12801
|
};
|
|
12793
12802
|
const _hoisted_4$9 = ["href"];
|
|
12794
|
-
const _sfc_main$
|
|
12803
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
12795
12804
|
__name: "SearchResultsProductTitle",
|
|
12796
12805
|
props: {
|
|
12797
12806
|
item: {},
|
|
@@ -12824,25 +12833,25 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12824
12833
|
class: "lupa-search-results-product-title",
|
|
12825
12834
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12826
12835
|
innerHTML: title.value
|
|
12827
|
-
}, null, 12, _hoisted_1$
|
|
12836
|
+
}, null, 12, _hoisted_1$s)) : (openBlock(), createElementBlock("div", {
|
|
12828
12837
|
key: 1,
|
|
12829
12838
|
class: "lupa-search-results-product-title",
|
|
12830
12839
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12831
12840
|
title: title.value
|
|
12832
12841
|
}, [
|
|
12833
|
-
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
12842
|
+
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
12834
12843
|
_ctx.options.link ? (openBlock(), createElementBlock("a", {
|
|
12835
12844
|
key: 1,
|
|
12836
12845
|
href: _ctx.link,
|
|
12837
12846
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
12838
12847
|
onClick: handleNavigation
|
|
12839
12848
|
}, toDisplayString(title.value), 9, _hoisted_4$9)) : createCommentVNode("", true)
|
|
12840
|
-
], 12, _hoisted_2$
|
|
12849
|
+
], 12, _hoisted_2$l));
|
|
12841
12850
|
};
|
|
12842
12851
|
}
|
|
12843
12852
|
});
|
|
12844
|
-
const _hoisted_1$
|
|
12845
|
-
const _sfc_main$
|
|
12853
|
+
const _hoisted_1$r = ["innerHTML"];
|
|
12854
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
12846
12855
|
__name: "SearchResultsProductDescription",
|
|
12847
12856
|
props: {
|
|
12848
12857
|
item: {},
|
|
@@ -12866,7 +12875,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12866
12875
|
class: "lupa-search-results-product-description",
|
|
12867
12876
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12868
12877
|
innerHTML: description.value
|
|
12869
|
-
}, null, 12, _hoisted_1$
|
|
12878
|
+
}, null, 12, _hoisted_1$r)) : (openBlock(), createElementBlock("div", {
|
|
12870
12879
|
key: 1,
|
|
12871
12880
|
class: "lupa-search-results-product-description",
|
|
12872
12881
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -12874,15 +12883,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12874
12883
|
};
|
|
12875
12884
|
}
|
|
12876
12885
|
});
|
|
12877
|
-
const _hoisted_1$
|
|
12878
|
-
const _hoisted_2$
|
|
12879
|
-
const _hoisted_3$
|
|
12886
|
+
const _hoisted_1$q = { id: "lupa-search-results-rating" };
|
|
12887
|
+
const _hoisted_2$k = { class: "lupa-ratings" };
|
|
12888
|
+
const _hoisted_3$e = { class: "lupa-ratings-base" };
|
|
12880
12889
|
const _hoisted_4$8 = ["innerHTML"];
|
|
12881
12890
|
const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
|
|
12882
|
-
const _hoisted_6$
|
|
12891
|
+
const _hoisted_6$4 = ["innerHTML"];
|
|
12883
12892
|
const _hoisted_7$2 = ["href"];
|
|
12884
12893
|
const STAR_COUNT = 5;
|
|
12885
|
-
const _sfc_main$
|
|
12894
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
12886
12895
|
__name: "SearchResultsProductRating",
|
|
12887
12896
|
props: {
|
|
12888
12897
|
item: {},
|
|
@@ -12913,9 +12922,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12913
12922
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
12914
12923
|
});
|
|
12915
12924
|
return (_ctx, _cache) => {
|
|
12916
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12917
|
-
createBaseVNode("div", _hoisted_2$
|
|
12918
|
-
createBaseVNode("div", _hoisted_3$
|
|
12925
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
12926
|
+
createBaseVNode("div", _hoisted_2$k, [
|
|
12927
|
+
createBaseVNode("div", _hoisted_3$e, [
|
|
12919
12928
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
12920
12929
|
return openBlock(), createElementBlock("div", {
|
|
12921
12930
|
key: index,
|
|
@@ -12934,7 +12943,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12934
12943
|
key: index,
|
|
12935
12944
|
innerHTML: star,
|
|
12936
12945
|
class: "lupa-rating lupa-rating-highlighted"
|
|
12937
|
-
}, null, 8, _hoisted_6$
|
|
12946
|
+
}, null, 8, _hoisted_6$4);
|
|
12938
12947
|
}), 128))
|
|
12939
12948
|
], 4)
|
|
12940
12949
|
])
|
|
@@ -12947,11 +12956,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12947
12956
|
};
|
|
12948
12957
|
}
|
|
12949
12958
|
});
|
|
12950
|
-
const _hoisted_1$
|
|
12959
|
+
const _hoisted_1$p = {
|
|
12951
12960
|
class: "lupa-search-results-product-regular-price",
|
|
12952
12961
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
12953
12962
|
};
|
|
12954
|
-
const _sfc_main$
|
|
12963
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
12955
12964
|
__name: "SearchResultsProductRegularPrice",
|
|
12956
12965
|
props: {
|
|
12957
12966
|
item: {},
|
|
@@ -12969,15 +12978,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12969
12978
|
);
|
|
12970
12979
|
});
|
|
12971
12980
|
return (_ctx, _cache) => {
|
|
12972
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12981
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, toDisplayString(price.value), 1);
|
|
12973
12982
|
};
|
|
12974
12983
|
}
|
|
12975
12984
|
});
|
|
12976
|
-
const _hoisted_1$
|
|
12985
|
+
const _hoisted_1$o = {
|
|
12977
12986
|
class: "lupa-search-results-product-price",
|
|
12978
12987
|
"data-cy": "lupa-search-results-product-price"
|
|
12979
12988
|
};
|
|
12980
|
-
const _sfc_main$
|
|
12989
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
12981
12990
|
__name: "SearchResultsProductPrice",
|
|
12982
12991
|
props: {
|
|
12983
12992
|
item: {},
|
|
@@ -12995,16 +13004,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12995
13004
|
);
|
|
12996
13005
|
});
|
|
12997
13006
|
return (_ctx, _cache) => {
|
|
12998
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13007
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
12999
13008
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
13000
13009
|
]);
|
|
13001
13010
|
};
|
|
13002
13011
|
}
|
|
13003
13012
|
});
|
|
13004
|
-
const _hoisted_1$
|
|
13005
|
-
const _hoisted_2$
|
|
13006
|
-
const _hoisted_3$
|
|
13007
|
-
const _sfc_main$
|
|
13013
|
+
const _hoisted_1$n = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
13014
|
+
const _hoisted_2$j = { class: "lupa-search-results-product-addtocart" };
|
|
13015
|
+
const _hoisted_3$d = ["onClick", "disabled"];
|
|
13016
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
13008
13017
|
__name: "SearchResultsProductAddToCart",
|
|
13009
13018
|
props: {
|
|
13010
13019
|
item: {},
|
|
@@ -13031,25 +13040,25 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13031
13040
|
loading.value = false;
|
|
13032
13041
|
});
|
|
13033
13042
|
return (_ctx, _cache) => {
|
|
13034
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13035
|
-
createBaseVNode("div", _hoisted_2$
|
|
13043
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
13044
|
+
createBaseVNode("div", _hoisted_2$j, [
|
|
13036
13045
|
createBaseVNode("button", {
|
|
13037
13046
|
onClick: withModifiers(handleClick, ["stop"]),
|
|
13038
13047
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
13039
13048
|
"data-cy": "lupa-add-to-cart",
|
|
13040
13049
|
disabled: !inStockValue.value || loading.value
|
|
13041
|
-
}, toDisplayString(label.value), 11, _hoisted_3$
|
|
13050
|
+
}, toDisplayString(label.value), 11, _hoisted_3$d)
|
|
13042
13051
|
])
|
|
13043
13052
|
]);
|
|
13044
13053
|
};
|
|
13045
13054
|
}
|
|
13046
13055
|
});
|
|
13047
|
-
const _hoisted_1$
|
|
13048
|
-
const _hoisted_2$
|
|
13049
|
-
const _hoisted_3$
|
|
13056
|
+
const _hoisted_1$m = ["innerHTML"];
|
|
13057
|
+
const _hoisted_2$i = { key: 0 };
|
|
13058
|
+
const _hoisted_3$c = { key: 1 };
|
|
13050
13059
|
const _hoisted_4$7 = { class: "lupa-search-box-custom-label" };
|
|
13051
13060
|
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
13052
|
-
const _sfc_main$
|
|
13061
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
13053
13062
|
__name: "SearchResultsProductCustom",
|
|
13054
13063
|
props: {
|
|
13055
13064
|
item: {},
|
|
@@ -13087,11 +13096,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13087
13096
|
key: 0,
|
|
13088
13097
|
class: className.value,
|
|
13089
13098
|
innerHTML: text.value
|
|
13090
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
13099
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$m)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
13091
13100
|
key: 1,
|
|
13092
13101
|
class: className.value
|
|
13093
13102
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
13094
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13103
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$c, [
|
|
13095
13104
|
createBaseVNode("div", _hoisted_4$7, toDisplayString(label.value), 1),
|
|
13096
13105
|
createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
|
|
13097
13106
|
]))
|
|
@@ -13099,8 +13108,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13099
13108
|
};
|
|
13100
13109
|
}
|
|
13101
13110
|
});
|
|
13102
|
-
const _hoisted_1$
|
|
13103
|
-
const _sfc_main$
|
|
13111
|
+
const _hoisted_1$l = ["innerHTML"];
|
|
13112
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
13104
13113
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
13105
13114
|
props: {
|
|
13106
13115
|
item: {},
|
|
@@ -13124,15 +13133,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13124
13133
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
13125
13134
|
class: className.value,
|
|
13126
13135
|
innerHTML: text.value
|
|
13127
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
13136
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$l);
|
|
13128
13137
|
};
|
|
13129
13138
|
}
|
|
13130
13139
|
});
|
|
13131
|
-
const _hoisted_1$
|
|
13132
|
-
const _hoisted_2$
|
|
13133
|
-
const _hoisted_3$
|
|
13140
|
+
const _hoisted_1$k = { id: "lupa-search-results-rating" };
|
|
13141
|
+
const _hoisted_2$h = ["innerHTML"];
|
|
13142
|
+
const _hoisted_3$b = { class: "lupa-ratings" };
|
|
13134
13143
|
const _hoisted_4$6 = ["href"];
|
|
13135
|
-
const _sfc_main$
|
|
13144
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
13136
13145
|
__name: "SearchResultsProductSingleStarRating",
|
|
13137
13146
|
props: {
|
|
13138
13147
|
item: {},
|
|
@@ -13160,12 +13169,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13160
13169
|
return RATING_STAR_HTML;
|
|
13161
13170
|
});
|
|
13162
13171
|
return (_ctx, _cache) => {
|
|
13163
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13172
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
13164
13173
|
createBaseVNode("div", {
|
|
13165
13174
|
innerHTML: star.value,
|
|
13166
13175
|
class: "lupa-rating lupa-rating-highlighted"
|
|
13167
|
-
}, null, 8, _hoisted_2$
|
|
13168
|
-
createBaseVNode("div", _hoisted_3$
|
|
13176
|
+
}, null, 8, _hoisted_2$h),
|
|
13177
|
+
createBaseVNode("div", _hoisted_3$b, toDisplayString(rating.value), 1),
|
|
13169
13178
|
createBaseVNode("a", {
|
|
13170
13179
|
href: ratingLink.value,
|
|
13171
13180
|
class: "lupa-total-ratings"
|
|
@@ -13176,19 +13185,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13176
13185
|
});
|
|
13177
13186
|
const __default__ = {
|
|
13178
13187
|
components: {
|
|
13179
|
-
SearchResultsProductImage: _sfc_main$
|
|
13180
|
-
SearchResultsProductTitle: _sfc_main$
|
|
13181
|
-
SearchResultsProductDescription: _sfc_main$
|
|
13182
|
-
SearchResultsProductRating: _sfc_main$
|
|
13183
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
13184
|
-
SearchResultsProductPrice: _sfc_main$
|
|
13185
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
13186
|
-
SearchResultsProductCustom: _sfc_main$
|
|
13187
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
13188
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
13189
|
-
}
|
|
13190
|
-
};
|
|
13191
|
-
const _sfc_main$
|
|
13188
|
+
SearchResultsProductImage: _sfc_main$v,
|
|
13189
|
+
SearchResultsProductTitle: _sfc_main$u,
|
|
13190
|
+
SearchResultsProductDescription: _sfc_main$t,
|
|
13191
|
+
SearchResultsProductRating: _sfc_main$s,
|
|
13192
|
+
SearchResultsProductRegularPrice: _sfc_main$r,
|
|
13193
|
+
SearchResultsProductPrice: _sfc_main$q,
|
|
13194
|
+
SearchResultsProductAddToCart: _sfc_main$p,
|
|
13195
|
+
SearchResultsProductCustom: _sfc_main$o,
|
|
13196
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$n,
|
|
13197
|
+
SearchResultsProductSingleStarRating: _sfc_main$m
|
|
13198
|
+
}
|
|
13199
|
+
};
|
|
13200
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
13192
13201
|
__name: "SearchResultsProductCardElement",
|
|
13193
13202
|
props: {
|
|
13194
13203
|
item: {},
|
|
@@ -13258,13 +13267,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13258
13267
|
};
|
|
13259
13268
|
}
|
|
13260
13269
|
}));
|
|
13261
|
-
const _hoisted_1$
|
|
13262
|
-
const _hoisted_2$
|
|
13270
|
+
const _hoisted_1$j = ["href"];
|
|
13271
|
+
const _hoisted_2$g = {
|
|
13263
13272
|
key: 0,
|
|
13264
13273
|
class: "lupa-out-of-stock"
|
|
13265
13274
|
};
|
|
13266
|
-
const _hoisted_3$
|
|
13267
|
-
const _sfc_main$
|
|
13275
|
+
const _hoisted_3$a = { class: "lupa-search-result-product-details-section" };
|
|
13276
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
13268
13277
|
__name: "SearchResultsProductCard",
|
|
13269
13278
|
props: {
|
|
13270
13279
|
product: {},
|
|
@@ -13409,7 +13418,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13409
13418
|
class: normalizeClass(["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]),
|
|
13410
13419
|
onClick: handleClick
|
|
13411
13420
|
}, [
|
|
13412
|
-
createVNode(_sfc_main$
|
|
13421
|
+
createVNode(_sfc_main$w, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
13413
13422
|
createBaseVNode("div", {
|
|
13414
13423
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
13415
13424
|
}, [
|
|
@@ -13419,7 +13428,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13419
13428
|
onClick: handleNavigation
|
|
13420
13429
|
}, [
|
|
13421
13430
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
13422
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13431
|
+
return openBlock(), createBlock(_sfc_main$l, {
|
|
13423
13432
|
class: "lupa-search-results-product-element",
|
|
13424
13433
|
item: _ctx.product,
|
|
13425
13434
|
element,
|
|
@@ -13429,16 +13438,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13429
13438
|
link: link.value
|
|
13430
13439
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
13431
13440
|
}), 128)),
|
|
13432
|
-
createVNode(_sfc_main$
|
|
13441
|
+
createVNode(_sfc_main$w, {
|
|
13433
13442
|
options: badgesOptions.value,
|
|
13434
13443
|
position: "image",
|
|
13435
13444
|
class: "lupa-image-badges"
|
|
13436
13445
|
}, null, 8, ["options"]),
|
|
13437
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13438
|
-
], 8, _hoisted_1$
|
|
13439
|
-
createBaseVNode("div", _hoisted_3$
|
|
13446
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
13447
|
+
], 8, _hoisted_1$j),
|
|
13448
|
+
createBaseVNode("div", _hoisted_3$a, [
|
|
13440
13449
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
13441
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13450
|
+
return openBlock(), createBlock(_sfc_main$l, {
|
|
13442
13451
|
class: "lupa-search-results-product-element",
|
|
13443
13452
|
item: _ctx.product,
|
|
13444
13453
|
element,
|
|
@@ -13456,7 +13465,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13456
13465
|
class: normalizeClass("lupa-element-group-" + group)
|
|
13457
13466
|
}, [
|
|
13458
13467
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
13459
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13468
|
+
return openBlock(), createBlock(_sfc_main$l, {
|
|
13460
13469
|
class: "lupa-search-results-product-element",
|
|
13461
13470
|
item: _ctx.product,
|
|
13462
13471
|
element,
|
|
@@ -13474,23 +13483,23 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13474
13483
|
};
|
|
13475
13484
|
}
|
|
13476
13485
|
});
|
|
13477
|
-
const _hoisted_1$
|
|
13486
|
+
const _hoisted_1$i = {
|
|
13478
13487
|
id: "lupa-search-results-similar-queries",
|
|
13479
13488
|
"data-cy": "lupa-search-results-similar-queries"
|
|
13480
13489
|
};
|
|
13481
|
-
const _hoisted_2$
|
|
13482
|
-
const _hoisted_3$
|
|
13490
|
+
const _hoisted_2$f = { class: "lupa-similar-queries-label" };
|
|
13491
|
+
const _hoisted_3$9 = {
|
|
13483
13492
|
class: "lupa-similar-query-label",
|
|
13484
13493
|
"data-cy": "lupa-similar-query-label"
|
|
13485
13494
|
};
|
|
13486
13495
|
const _hoisted_4$5 = ["onClick"];
|
|
13487
13496
|
const _hoisted_5$4 = ["innerHTML"];
|
|
13488
|
-
const _hoisted_6$
|
|
13497
|
+
const _hoisted_6$3 = { key: 0 };
|
|
13489
13498
|
const _hoisted_7$1 = {
|
|
13490
13499
|
class: "lupa-products",
|
|
13491
13500
|
"data-cy": "lupa-products"
|
|
13492
13501
|
};
|
|
13493
|
-
const _sfc_main$
|
|
13502
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
13494
13503
|
__name: "SearchResultsSimilarQueries",
|
|
13495
13504
|
props: {
|
|
13496
13505
|
labels: {},
|
|
@@ -13520,11 +13529,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13520
13529
|
paramsStore.goToResults({ searchText, facet });
|
|
13521
13530
|
};
|
|
13522
13531
|
return (_ctx, _cache) => {
|
|
13523
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13524
|
-
createBaseVNode("div", _hoisted_2$
|
|
13532
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
13533
|
+
createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
13525
13534
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
13526
13535
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
13527
|
-
createBaseVNode("div", _hoisted_3$
|
|
13536
|
+
createBaseVNode("div", _hoisted_3$9, [
|
|
13528
13537
|
createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
|
|
13529
13538
|
createBaseVNode("span", {
|
|
13530
13539
|
id: "lupa-similar-query-text-component",
|
|
@@ -13535,12 +13544,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13535
13544
|
createBaseVNode("span", {
|
|
13536
13545
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
13537
13546
|
}, null, 8, _hoisted_5$4),
|
|
13538
|
-
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
13547
|
+
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$3, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
13539
13548
|
], 8, _hoisted_4$5)
|
|
13540
13549
|
]),
|
|
13541
13550
|
createBaseVNode("div", _hoisted_7$1, [
|
|
13542
13551
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
13543
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13552
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13544
13553
|
style: normalizeStyle(_ctx.columnSize),
|
|
13545
13554
|
key: getDocumentKey(index2, product),
|
|
13546
13555
|
product,
|
|
@@ -13554,15 +13563,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13554
13563
|
};
|
|
13555
13564
|
}
|
|
13556
13565
|
});
|
|
13557
|
-
const _hoisted_1$
|
|
13566
|
+
const _hoisted_1$h = {
|
|
13558
13567
|
key: 0,
|
|
13559
13568
|
class: "lupa-results-additional-panel"
|
|
13560
13569
|
};
|
|
13561
|
-
const _hoisted_2$
|
|
13570
|
+
const _hoisted_2$e = {
|
|
13562
13571
|
class: "lupa-results-additional-panel-items",
|
|
13563
13572
|
"data-cy": "lupa-results-additional-panel-items"
|
|
13564
13573
|
};
|
|
13565
|
-
const _sfc_main$
|
|
13574
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
13566
13575
|
__name: "AdditionalPanel",
|
|
13567
13576
|
props: {
|
|
13568
13577
|
panel: {},
|
|
@@ -13634,10 +13643,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13634
13643
|
handleQueryChange();
|
|
13635
13644
|
});
|
|
13636
13645
|
return (_ctx, _cache) => {
|
|
13637
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13638
|
-
createBaseVNode("div", _hoisted_2$
|
|
13646
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
13647
|
+
createBaseVNode("div", _hoisted_2$e, [
|
|
13639
13648
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
13640
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13649
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13641
13650
|
key: index,
|
|
13642
13651
|
product: item,
|
|
13643
13652
|
options: _ctx.panel,
|
|
@@ -13655,11 +13664,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13655
13664
|
};
|
|
13656
13665
|
}
|
|
13657
13666
|
});
|
|
13658
|
-
const _hoisted_1$
|
|
13667
|
+
const _hoisted_1$g = {
|
|
13659
13668
|
key: 0,
|
|
13660
13669
|
class: "lupa-results-additional-panels"
|
|
13661
13670
|
};
|
|
13662
|
-
const _sfc_main$
|
|
13671
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
13663
13672
|
__name: "AdditionalPanels",
|
|
13664
13673
|
props: {
|
|
13665
13674
|
options: {},
|
|
@@ -13676,9 +13685,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13676
13685
|
return locationPanels.value.length > 0;
|
|
13677
13686
|
});
|
|
13678
13687
|
return (_ctx, _cache) => {
|
|
13679
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13688
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
13680
13689
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
13681
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13690
|
+
return openBlock(), createBlock(_sfc_main$i, {
|
|
13682
13691
|
key: panel.queryKey,
|
|
13683
13692
|
panel,
|
|
13684
13693
|
options: _ctx.sdkOptions
|
|
@@ -13695,19 +13704,60 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13695
13704
|
}
|
|
13696
13705
|
return target;
|
|
13697
13706
|
};
|
|
13698
|
-
const _sfc_main$
|
|
13699
|
-
const _hoisted_1$
|
|
13700
|
-
const _hoisted_2$
|
|
13707
|
+
const _sfc_main$g = {};
|
|
13708
|
+
const _hoisted_1$f = { class: "lupa-spinner-wrapper" };
|
|
13709
|
+
const _hoisted_2$d = { class: "lupa-spinner" };
|
|
13701
13710
|
function _sfc_render(_ctx, _cache) {
|
|
13702
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13703
|
-
createBaseVNode("div", _hoisted_2$
|
|
13711
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
13712
|
+
createBaseVNode("div", _hoisted_2$d, [
|
|
13704
13713
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
|
|
13705
13714
|
return createBaseVNode("div", { key: x });
|
|
13706
13715
|
}), 64))
|
|
13707
13716
|
])
|
|
13708
13717
|
]);
|
|
13709
13718
|
}
|
|
13710
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13719
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render]]);
|
|
13720
|
+
const _hoisted_1$e = {
|
|
13721
|
+
id: "lupa-search-results-similar-results",
|
|
13722
|
+
"data-cy": "lupa-search-results-similar-results"
|
|
13723
|
+
};
|
|
13724
|
+
const _hoisted_2$c = { class: "lupa-similar-results-label" };
|
|
13725
|
+
const _hoisted_3$8 = {
|
|
13726
|
+
class: "lupa-products",
|
|
13727
|
+
"data-cy": "lupa-products"
|
|
13728
|
+
};
|
|
13729
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
13730
|
+
__name: "SearchResultsSimilarResults",
|
|
13731
|
+
props: {
|
|
13732
|
+
columnSize: {},
|
|
13733
|
+
labels: {},
|
|
13734
|
+
productCardOptions: {}
|
|
13735
|
+
},
|
|
13736
|
+
setup(__props) {
|
|
13737
|
+
const props = __props;
|
|
13738
|
+
const searchResultStore = useSearchResultStore();
|
|
13739
|
+
const { searchResult } = storeToRefs(searchResultStore);
|
|
13740
|
+
const similarResults = computed(() => searchResult.value.similarResults);
|
|
13741
|
+
const getDocumentKey = (index, product) => {
|
|
13742
|
+
return getProductKey(`${index}`, product, props.productCardOptions.idKey);
|
|
13743
|
+
};
|
|
13744
|
+
return (_ctx, _cache) => {
|
|
13745
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
13746
|
+
createBaseVNode("div", _hoisted_2$c, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
13747
|
+
createBaseVNode("div", _hoisted_3$8, [
|
|
13748
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
13749
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13750
|
+
style: normalizeStyle(_ctx.columnSize),
|
|
13751
|
+
key: getDocumentKey(index, product),
|
|
13752
|
+
product,
|
|
13753
|
+
options: _ctx.productCardOptions
|
|
13754
|
+
}, null, 8, ["style", "product", "options"]);
|
|
13755
|
+
}), 128))
|
|
13756
|
+
])
|
|
13757
|
+
]);
|
|
13758
|
+
};
|
|
13759
|
+
}
|
|
13760
|
+
});
|
|
13711
13761
|
const _hoisted_1$d = { id: "lupa-search-results-products" };
|
|
13712
13762
|
const _hoisted_2$b = {
|
|
13713
13763
|
class: "lupa-products",
|
|
@@ -13724,6 +13774,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13724
13774
|
"data-cy": "lupa-no-results"
|
|
13725
13775
|
};
|
|
13726
13776
|
const _hoisted_5$3 = { key: 4 };
|
|
13777
|
+
const _hoisted_6$2 = { key: 5 };
|
|
13727
13778
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
13728
13779
|
__name: "SearchResultsProducts",
|
|
13729
13780
|
props: {
|
|
@@ -13761,6 +13812,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13761
13812
|
const similarQueriesLabels = computed(() => {
|
|
13762
13813
|
return props.options.labels;
|
|
13763
13814
|
});
|
|
13815
|
+
const similarResultsLabels = computed(() => {
|
|
13816
|
+
return props.options.labels;
|
|
13817
|
+
});
|
|
13764
13818
|
const showTopFilters = computed(() => {
|
|
13765
13819
|
var _a, _b, _c;
|
|
13766
13820
|
return ((_c = (_b = (_a = props.options.filters) == null ? void 0 : _a.facets) == null ? void 0 : _b.style) == null ? void 0 : _c.type) === "top-dropdown";
|
|
@@ -13803,7 +13857,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13803
13857
|
});
|
|
13804
13858
|
const hasSimilarQueries = computed(() => {
|
|
13805
13859
|
var _a;
|
|
13806
|
-
return (_a = searchResult.value.similarQueries) == null ? void 0 : _a.length;
|
|
13860
|
+
return Boolean((_a = searchResult.value.similarQueries) == null ? void 0 : _a.length);
|
|
13861
|
+
});
|
|
13862
|
+
const hasSimilarResults = computed(() => {
|
|
13863
|
+
var _a, _b;
|
|
13864
|
+
return Boolean((_b = (_a = searchResult.value.similarResults) == null ? void 0 : _a.items) == null ? void 0 : _b.length);
|
|
13807
13865
|
});
|
|
13808
13866
|
const getProductKeyAction = (index, product) => {
|
|
13809
13867
|
return getProductKey(`${index}`, product, props.options.idKey);
|
|
@@ -13821,17 +13879,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13821
13879
|
class: "lupa-loader"
|
|
13822
13880
|
})) : createCommentVNode("", true),
|
|
13823
13881
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
13824
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13882
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$I, {
|
|
13825
13883
|
key: 0,
|
|
13826
13884
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
13827
13885
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13828
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13886
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$C, {
|
|
13829
13887
|
key: 1,
|
|
13830
13888
|
class: "lupa-toolbar-mobile",
|
|
13831
13889
|
options: _ctx.options,
|
|
13832
13890
|
"pagination-location": "top"
|
|
13833
13891
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13834
|
-
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
13892
|
+
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$V, {
|
|
13835
13893
|
key: 2,
|
|
13836
13894
|
class: normalizeClass(currentFiltersClass.value),
|
|
13837
13895
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -13839,13 +13897,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13839
13897
|
expandable: !desktopFiltersExpanded.value
|
|
13840
13898
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
13841
13899
|
], 64)) : createCommentVNode("", true),
|
|
13842
|
-
createVNode(_sfc_main$
|
|
13900
|
+
createVNode(_sfc_main$h, {
|
|
13843
13901
|
options: _ctx.options,
|
|
13844
13902
|
location: "top",
|
|
13845
13903
|
sdkOptions: _ctx.options.options
|
|
13846
13904
|
}, null, 8, ["options", "sdkOptions"]),
|
|
13847
13905
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
13848
|
-
createVNode(_sfc_main$
|
|
13906
|
+
createVNode(_sfc_main$C, {
|
|
13849
13907
|
class: "lupa-toolbar-top",
|
|
13850
13908
|
options: _ctx.options,
|
|
13851
13909
|
"pagination-location": "top"
|
|
@@ -13859,7 +13917,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13859
13917
|
options: productCardOptions.value
|
|
13860
13918
|
});
|
|
13861
13919
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
13862
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13920
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13863
13921
|
style: normalizeStyle(columnSize.value),
|
|
13864
13922
|
key: getProductKeyAction(index, product),
|
|
13865
13923
|
product,
|
|
@@ -13875,12 +13933,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13875
13933
|
onClick: goToFirstPage
|
|
13876
13934
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
13877
13935
|
])) : createCommentVNode("", true),
|
|
13878
|
-
createVNode(_sfc_main$
|
|
13936
|
+
createVNode(_sfc_main$C, {
|
|
13879
13937
|
class: "lupa-toolbar-bottom",
|
|
13880
13938
|
options: _ctx.options,
|
|
13881
13939
|
"pagination-location": "bottom"
|
|
13882
13940
|
}, null, 8, ["options"]),
|
|
13883
|
-
createVNode(_sfc_main$
|
|
13941
|
+
createVNode(_sfc_main$h, {
|
|
13884
13942
|
options: _ctx.options,
|
|
13885
13943
|
location: "bottom",
|
|
13886
13944
|
sdkOptions: _ctx.options.options
|
|
@@ -13890,12 +13948,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13890
13948
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
13891
13949
|
])) : createCommentVNode("", true),
|
|
13892
13950
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
13893
|
-
createVNode(_sfc_main$
|
|
13951
|
+
createVNode(_sfc_main$j, {
|
|
13894
13952
|
labels: similarQueriesLabels.value,
|
|
13895
13953
|
columnSize: columnSize.value,
|
|
13896
13954
|
productCardOptions: productCardOptions.value
|
|
13897
13955
|
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
13898
13956
|
])) : createCommentVNode("", true),
|
|
13957
|
+
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
13958
|
+
createVNode(_sfc_main$f, {
|
|
13959
|
+
labels: similarResultsLabels.value,
|
|
13960
|
+
columnSize: columnSize.value,
|
|
13961
|
+
productCardOptions: productCardOptions.value
|
|
13962
|
+
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
13963
|
+
])) : createCommentVNode("", true),
|
|
13899
13964
|
renderSlot(_ctx.$slots, "append")
|
|
13900
13965
|
]);
|
|
13901
13966
|
};
|
|
@@ -13947,7 +14012,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13947
14012
|
onClick: handleNavigationBack
|
|
13948
14013
|
}, toDisplayString(backTitle.value), 9, _hoisted_3$6)
|
|
13949
14014
|
])) : createCommentVNode("", true),
|
|
13950
|
-
createVNode(_sfc_main$
|
|
14015
|
+
createVNode(_sfc_main$C, {
|
|
13951
14016
|
class: "lupa-toolbar-mobile",
|
|
13952
14017
|
"pagination-location": "top",
|
|
13953
14018
|
options: _ctx.options
|
|
@@ -14165,8 +14230,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14165
14230
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
14166
14231
|
}, [
|
|
14167
14232
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
14168
|
-
createVNode(_sfc_main$
|
|
14169
|
-
createVNode(_sfc_main$
|
|
14233
|
+
createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14234
|
+
createVNode(_sfc_main$X, {
|
|
14170
14235
|
"show-summary": true,
|
|
14171
14236
|
options: _ctx.options,
|
|
14172
14237
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
@@ -14176,24 +14241,24 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14176
14241
|
key: 1,
|
|
14177
14242
|
options: _ctx.options
|
|
14178
14243
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14179
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
14244
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$K, {
|
|
14180
14245
|
key: 2,
|
|
14181
14246
|
options: _ctx.options.filters
|
|
14182
14247
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14183
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
14248
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$J, {
|
|
14184
14249
|
key: 3,
|
|
14185
14250
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
14186
14251
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
14187
14252
|
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
14188
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14253
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
14189
14254
|
key: 0,
|
|
14190
14255
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
14191
14256
|
ref_key: "searchResultsFilters",
|
|
14192
14257
|
ref: searchResultsFilters
|
|
14193
14258
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14194
14259
|
createBaseVNode("div", _hoisted_3$5, [
|
|
14195
|
-
createVNode(_sfc_main$
|
|
14196
|
-
createVNode(_sfc_main$
|
|
14260
|
+
createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14261
|
+
createVNode(_sfc_main$X, {
|
|
14197
14262
|
options: _ctx.options,
|
|
14198
14263
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
14199
14264
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -14208,13 +14273,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14208
14273
|
}, 8, ["options", "ssr"])
|
|
14209
14274
|
])
|
|
14210
14275
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
14211
|
-
createVNode(_sfc_main$
|
|
14212
|
-
createVNode(_sfc_main$
|
|
14276
|
+
createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14277
|
+
createVNode(_sfc_main$X, {
|
|
14213
14278
|
options: _ctx.options,
|
|
14214
14279
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
14215
14280
|
}, null, 8, ["options", "is-product-list"]),
|
|
14216
14281
|
createBaseVNode("div", _hoisted_4$3, [
|
|
14217
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14282
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
14218
14283
|
key: 0,
|
|
14219
14284
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
14220
14285
|
ref_key: "searchResultsFilters",
|
|
@@ -19842,7 +19907,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
19842
19907
|
onClick: withModifiers(innerClick, ["stop"])
|
|
19843
19908
|
}, [
|
|
19844
19909
|
createBaseVNode("div", _hoisted_2$7, [
|
|
19845
|
-
createVNode(_sfc_main$
|
|
19910
|
+
createVNode(_sfc_main$_, {
|
|
19846
19911
|
options: fullSearchBoxOptions.value,
|
|
19847
19912
|
"is-search-container": true,
|
|
19848
19913
|
ref_key: "searchBox",
|
|
@@ -20663,7 +20728,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20663
20728
|
key: getProductKeyAction(index, product)
|
|
20664
20729
|
}, {
|
|
20665
20730
|
default: withCtx(() => [
|
|
20666
|
-
createVNode(_sfc_main$
|
|
20731
|
+
createVNode(_sfc_main$k, {
|
|
20667
20732
|
product,
|
|
20668
20733
|
options: _ctx.options,
|
|
20669
20734
|
"click-tracking-settings": clickTrackingSettings.value
|
|
@@ -20927,7 +20992,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20927
20992
|
return (_ctx, _cache) => {
|
|
20928
20993
|
return openBlock(), createElementBlock("section", _hoisted_1$5, [
|
|
20929
20994
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
20930
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20995
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
20931
20996
|
class: "lupa-chat-product-card",
|
|
20932
20997
|
key: getProductKeyAction(index, product),
|
|
20933
20998
|
product,
|
|
@@ -21243,7 +21308,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21243
21308
|
class: "lupa-chat-spinner-main"
|
|
21244
21309
|
};
|
|
21245
21310
|
const _hoisted_5 = { class: "lupasearch-chat-input" };
|
|
21246
|
-
const _sfc_main$
|
|
21311
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
21247
21312
|
__name: "ChatContainer",
|
|
21248
21313
|
props: {
|
|
21249
21314
|
options: {}
|
|
@@ -26884,7 +26949,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26884
26949
|
};
|
|
26885
26950
|
__expose({ fetch: fetch2 });
|
|
26886
26951
|
return (_ctx, _cache) => {
|
|
26887
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26952
|
+
return openBlock(), createBlock(unref(_sfc_main$_), {
|
|
26888
26953
|
options: fullSearchBoxOptions.value,
|
|
26889
26954
|
ref_key: "searchBox",
|
|
26890
26955
|
ref: searchBox2
|
|
@@ -27359,7 +27424,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
27359
27424
|
}
|
|
27360
27425
|
return;
|
|
27361
27426
|
}
|
|
27362
|
-
const instance = createVue(options.displayOptions.containerSelector, _sfc_main$
|
|
27427
|
+
const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1l, {
|
|
27363
27428
|
options
|
|
27364
27429
|
});
|
|
27365
27430
|
if (!instance) {
|