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