@getlupa/client 1.4.3 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lupaSearch.iife.js +502 -437
- package/dist/lupaSearch.js +502 -437
- package/dist/lupaSearch.mjs +502 -437
- package/dist/lupaSearch.umd.js +502 -437
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/lupaSearch.mjs
CHANGED
|
@@ -6664,7 +6664,8 @@ const DEFAULT_OPTIONS_RESULTS$1 = {
|
|
|
6664
6664
|
noResultsSuggestion: "No results found for this query: {1}",
|
|
6665
6665
|
didYouMean: "Did you mean to search: {1}",
|
|
6666
6666
|
similarQuery: "Search results for phrase {1}",
|
|
6667
|
-
similarQueries: "Similar queries:"
|
|
6667
|
+
similarQueries: "Similar queries:",
|
|
6668
|
+
similarResultsLabel: "Related to your query:"
|
|
6668
6669
|
},
|
|
6669
6670
|
grid: {
|
|
6670
6671
|
columns: {
|
|
@@ -7346,6 +7347,14 @@ const useParamsStore = defineStore("params", () => {
|
|
|
7346
7347
|
var _a;
|
|
7347
7348
|
return (_a = params.value.filters) != null ? _a : {};
|
|
7348
7349
|
});
|
|
7350
|
+
const navigate = (url) => {
|
|
7351
|
+
var _a, _b, _c;
|
|
7352
|
+
window.history.pushState("", "Append params", url.pathname + url.search);
|
|
7353
|
+
const params2 = parseParams(url.searchParams);
|
|
7354
|
+
(_c = (_b = (_a = optionsStore == null ? void 0 : optionsStore.searchBoxOptions) == null ? void 0 : _a.callbacks) == null ? void 0 : _b.onSearchResultsNavigate) == null ? void 0 : _c.call(_b, {
|
|
7355
|
+
params: params2
|
|
7356
|
+
});
|
|
7357
|
+
};
|
|
7349
7358
|
const add2 = (newParams, ssr) => {
|
|
7350
7359
|
if (!newParams) {
|
|
7351
7360
|
return { params: params.value };
|
|
@@ -7358,7 +7367,7 @@ const useParamsStore = defineStore("params", () => {
|
|
|
7358
7367
|
const url = getPageUrl();
|
|
7359
7368
|
const paramsToRemove = Array.from(url.searchParams.keys()).filter(isFacetKey);
|
|
7360
7369
|
removeParams(url, paramsToRemove);
|
|
7361
|
-
|
|
7370
|
+
navigate(url);
|
|
7362
7371
|
params.value = parseParams(url.searchParams);
|
|
7363
7372
|
searchString.value = url.search;
|
|
7364
7373
|
};
|
|
@@ -7369,7 +7378,7 @@ const useParamsStore = defineStore("params", () => {
|
|
|
7369
7378
|
const url = getPageUrl();
|
|
7370
7379
|
paramsToRemove = getRemovableParams(url, paramsToRemove);
|
|
7371
7380
|
removeParams(url, paramsToRemove);
|
|
7372
|
-
|
|
7381
|
+
navigate(url);
|
|
7373
7382
|
if (!save) {
|
|
7374
7383
|
return;
|
|
7375
7384
|
}
|
|
@@ -7431,7 +7440,7 @@ const useParamsStore = defineStore("params", () => {
|
|
|
7431
7440
|
paramsToRemove = getRemovableParams(url, paramsToRemove);
|
|
7432
7441
|
removeParams(url, paramsToRemove);
|
|
7433
7442
|
newParams.forEach((p2) => appendParam(url, p2, encode));
|
|
7434
|
-
|
|
7443
|
+
navigate(url);
|
|
7435
7444
|
if (!save) {
|
|
7436
7445
|
return;
|
|
7437
7446
|
}
|
|
@@ -7674,16 +7683,16 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
7674
7683
|
resetHighlightIndex
|
|
7675
7684
|
};
|
|
7676
7685
|
});
|
|
7677
|
-
const _hoisted_1$
|
|
7678
|
-
const _hoisted_2$
|
|
7679
|
-
const _hoisted_3$
|
|
7686
|
+
const _hoisted_1$1c = { id: "lupa-search-box-input-container" };
|
|
7687
|
+
const _hoisted_2$P = { class: "lupa-input-clear" };
|
|
7688
|
+
const _hoisted_3$B = { id: "lupa-search-box-input" };
|
|
7680
7689
|
const _hoisted_4$q = ["value"];
|
|
7681
7690
|
const _hoisted_5$f = ["placeholder"];
|
|
7682
|
-
const _hoisted_6$
|
|
7691
|
+
const _hoisted_6$9 = {
|
|
7683
7692
|
key: 0,
|
|
7684
7693
|
class: "lupa-close-label"
|
|
7685
7694
|
};
|
|
7686
|
-
const _sfc_main$
|
|
7695
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
7687
7696
|
__name: "SearchBoxInput",
|
|
7688
7697
|
props: {
|
|
7689
7698
|
options: {},
|
|
@@ -7760,14 +7769,14 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
7760
7769
|
};
|
|
7761
7770
|
__expose({ focus });
|
|
7762
7771
|
return (_ctx, _cache) => {
|
|
7763
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7764
|
-
createBaseVNode("div", _hoisted_2$
|
|
7772
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
7773
|
+
createBaseVNode("div", _hoisted_2$P, [
|
|
7765
7774
|
createBaseVNode("div", {
|
|
7766
7775
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
7767
7776
|
onClick: clear2
|
|
7768
7777
|
}, null, 2)
|
|
7769
7778
|
]),
|
|
7770
|
-
createBaseVNode("div", _hoisted_3$
|
|
7779
|
+
createBaseVNode("div", _hoisted_3$B, [
|
|
7771
7780
|
createBaseVNode("input", {
|
|
7772
7781
|
class: "lupa-hint",
|
|
7773
7782
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
@@ -7794,13 +7803,13 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
7794
7803
|
class: "lupa-close-search-container",
|
|
7795
7804
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
7796
7805
|
}, [
|
|
7797
|
-
labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
7806
|
+
labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$9, toDisplayString(labels.value.close), 1)) : createCommentVNode("", true)
|
|
7798
7807
|
])) : createCommentVNode("", true)
|
|
7799
7808
|
]);
|
|
7800
7809
|
};
|
|
7801
7810
|
}
|
|
7802
7811
|
});
|
|
7803
|
-
const _sfc_main$
|
|
7812
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
7804
7813
|
__name: "SearchBoxMoreResults",
|
|
7805
7814
|
props: {
|
|
7806
7815
|
labels: {},
|
|
@@ -7832,9 +7841,9 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
7832
7841
|
};
|
|
7833
7842
|
}
|
|
7834
7843
|
});
|
|
7835
|
-
const _hoisted_1$
|
|
7836
|
-
const _hoisted_2$
|
|
7837
|
-
const _sfc_main$
|
|
7844
|
+
const _hoisted_1$1b = { class: "lupa-search-box-history-item" };
|
|
7845
|
+
const _hoisted_2$O = { class: "lupa-search-box-history-item-content" };
|
|
7846
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
7838
7847
|
__name: "SearchBoxHistoryItem",
|
|
7839
7848
|
props: {
|
|
7840
7849
|
item: {},
|
|
@@ -7850,8 +7859,8 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
7850
7859
|
emit2("click", { query: props.item });
|
|
7851
7860
|
};
|
|
7852
7861
|
return (_ctx, _cache) => {
|
|
7853
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7854
|
-
createBaseVNode("div", _hoisted_2$
|
|
7862
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1b, [
|
|
7863
|
+
createBaseVNode("div", _hoisted_2$O, [
|
|
7855
7864
|
createBaseVNode("div", {
|
|
7856
7865
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
7857
7866
|
onClick: click2
|
|
@@ -7865,11 +7874,11 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
7865
7874
|
};
|
|
7866
7875
|
}
|
|
7867
7876
|
});
|
|
7868
|
-
const _hoisted_1$
|
|
7877
|
+
const _hoisted_1$1a = {
|
|
7869
7878
|
key: 0,
|
|
7870
7879
|
class: "lupa-search-box-history-panel"
|
|
7871
7880
|
};
|
|
7872
|
-
const _sfc_main$
|
|
7881
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
7873
7882
|
__name: "SearchBoxHistoryPanel",
|
|
7874
7883
|
props: {
|
|
7875
7884
|
options: {}
|
|
@@ -7910,9 +7919,9 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
7910
7919
|
}
|
|
7911
7920
|
};
|
|
7912
7921
|
return (_ctx, _cache) => {
|
|
7913
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7922
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1a, [
|
|
7914
7923
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
7915
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7924
|
+
return openBlock(), createBlock(_sfc_main$1i, {
|
|
7916
7925
|
key: item,
|
|
7917
7926
|
item,
|
|
7918
7927
|
highlighted: index === highlightIndex.value,
|
|
@@ -7928,25 +7937,25 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
7928
7937
|
};
|
|
7929
7938
|
}
|
|
7930
7939
|
});
|
|
7931
|
-
const _hoisted_1$
|
|
7932
|
-
const _sfc_main$
|
|
7940
|
+
const _hoisted_1$19 = { class: "lupa-search-box-no-results" };
|
|
7941
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
7933
7942
|
__name: "SearchBoxNoResults",
|
|
7934
7943
|
props: {
|
|
7935
7944
|
labels: {}
|
|
7936
7945
|
},
|
|
7937
7946
|
setup(__props) {
|
|
7938
7947
|
return (_ctx, _cache) => {
|
|
7939
|
-
return openBlock(), createElementBlock("p", _hoisted_1$
|
|
7948
|
+
return openBlock(), createElementBlock("p", _hoisted_1$19, toDisplayString(_ctx.labels.noResults), 1);
|
|
7940
7949
|
};
|
|
7941
7950
|
}
|
|
7942
7951
|
});
|
|
7943
|
-
const _hoisted_1$
|
|
7944
|
-
const _hoisted_2$
|
|
7952
|
+
const _hoisted_1$18 = ["innerHTML"];
|
|
7953
|
+
const _hoisted_2$N = {
|
|
7945
7954
|
key: 1,
|
|
7946
7955
|
"data-cy": "lupa-suggestion-value",
|
|
7947
7956
|
class: "lupa-suggestion-value"
|
|
7948
7957
|
};
|
|
7949
|
-
const _hoisted_3$
|
|
7958
|
+
const _hoisted_3$A = {
|
|
7950
7959
|
key: 2,
|
|
7951
7960
|
class: "lupa-suggestion-facet",
|
|
7952
7961
|
"data-cy": "lupa-suggestion-facet"
|
|
@@ -7959,7 +7968,7 @@ const _hoisted_5$e = {
|
|
|
7959
7968
|
class: "lupa-suggestion-facet-value",
|
|
7960
7969
|
"data-cy": "lupa-suggestion-facet-value"
|
|
7961
7970
|
};
|
|
7962
|
-
const _sfc_main$
|
|
7971
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
7963
7972
|
__name: "SearchBoxSuggestion",
|
|
7964
7973
|
props: {
|
|
7965
7974
|
suggestion: {},
|
|
@@ -7995,8 +8004,8 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
7995
8004
|
class: "lupa-suggestion-value",
|
|
7996
8005
|
"data-cy": "lupa-suggestion-value",
|
|
7997
8006
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
7998
|
-
}, null, 8, _hoisted_1$
|
|
7999
|
-
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
8007
|
+
}, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8008
|
+
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
8000
8009
|
createBaseVNode("span", _hoisted_4$p, toDisplayString(facetLabel.value), 1),
|
|
8001
8010
|
createBaseVNode("span", _hoisted_5$e, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8002
8011
|
])) : createCommentVNode("", true)
|
|
@@ -8004,11 +8013,11 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
8004
8013
|
};
|
|
8005
8014
|
}
|
|
8006
8015
|
});
|
|
8007
|
-
const _hoisted_1$
|
|
8016
|
+
const _hoisted_1$17 = {
|
|
8008
8017
|
id: "lupa-search-box-suggestions",
|
|
8009
8018
|
"data-cy": "lupa-search-box-suggestions"
|
|
8010
8019
|
};
|
|
8011
|
-
const _sfc_main$
|
|
8020
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
8012
8021
|
__name: "SearchBoxSuggestions",
|
|
8013
8022
|
props: {
|
|
8014
8023
|
items: {},
|
|
@@ -8068,9 +8077,9 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
8068
8077
|
});
|
|
8069
8078
|
});
|
|
8070
8079
|
return (_ctx, _cache) => {
|
|
8071
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8080
|
+
return openBlock(), createElementBlock("div", _hoisted_1$17, [
|
|
8072
8081
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
8073
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8082
|
+
return openBlock(), createBlock(_sfc_main$1f, {
|
|
8074
8083
|
key: getSuggestionKey(item),
|
|
8075
8084
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
8076
8085
|
suggestion: item,
|
|
@@ -8098,7 +8107,7 @@ const debounce$1 = (func, timeout) => {
|
|
|
8098
8107
|
}, timeout);
|
|
8099
8108
|
};
|
|
8100
8109
|
};
|
|
8101
|
-
const _sfc_main$
|
|
8110
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
8102
8111
|
__name: "SearchBoxSuggestionsWrapper",
|
|
8103
8112
|
props: {
|
|
8104
8113
|
panel: {},
|
|
@@ -8139,7 +8148,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
8139
8148
|
};
|
|
8140
8149
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
8141
8150
|
return (_ctx, _cache) => {
|
|
8142
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8151
|
+
return openBlock(), createBlock(_sfc_main$1e, {
|
|
8143
8152
|
items: searchResult.value,
|
|
8144
8153
|
highlight: _ctx.panel.highlight,
|
|
8145
8154
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -8217,8 +8226,8 @@ const useDynamicDataStore = defineStore("dynamicData", () => {
|
|
|
8217
8226
|
});
|
|
8218
8227
|
return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
|
|
8219
8228
|
});
|
|
8220
|
-
const _hoisted_1$
|
|
8221
|
-
const _sfc_main$
|
|
8229
|
+
const _hoisted_1$16 = ["src"];
|
|
8230
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
8222
8231
|
__name: "ProductImage",
|
|
8223
8232
|
props: {
|
|
8224
8233
|
item: {},
|
|
@@ -8266,12 +8275,12 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
8266
8275
|
class: normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
|
|
8267
8276
|
src: finalUrl.value,
|
|
8268
8277
|
onError: replaceWithPlaceholder
|
|
8269
|
-
}, null, 42, _hoisted_1$
|
|
8278
|
+
}, null, 42, _hoisted_1$16)
|
|
8270
8279
|
], 2);
|
|
8271
8280
|
};
|
|
8272
8281
|
}
|
|
8273
8282
|
});
|
|
8274
|
-
const _sfc_main$
|
|
8283
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
8275
8284
|
__name: "SearchBoxProductImage",
|
|
8276
8285
|
props: {
|
|
8277
8286
|
item: {},
|
|
@@ -8279,7 +8288,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
8279
8288
|
},
|
|
8280
8289
|
setup(__props) {
|
|
8281
8290
|
return (_ctx, _cache) => {
|
|
8282
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8291
|
+
return openBlock(), createBlock(_sfc_main$1c, {
|
|
8283
8292
|
item: _ctx.item,
|
|
8284
8293
|
options: _ctx.options,
|
|
8285
8294
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -8288,12 +8297,12 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
8288
8297
|
};
|
|
8289
8298
|
}
|
|
8290
8299
|
});
|
|
8291
|
-
const _hoisted_1$
|
|
8292
|
-
const _hoisted_2$
|
|
8300
|
+
const _hoisted_1$15 = ["innerHTML"];
|
|
8301
|
+
const _hoisted_2$M = {
|
|
8293
8302
|
key: 1,
|
|
8294
8303
|
class: "lupa-search-box-product-title"
|
|
8295
8304
|
};
|
|
8296
|
-
const _sfc_main$
|
|
8305
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
8297
8306
|
__name: "SearchBoxProductTitle",
|
|
8298
8307
|
props: {
|
|
8299
8308
|
item: {},
|
|
@@ -8313,18 +8322,18 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
8313
8322
|
key: 0,
|
|
8314
8323
|
class: "lupa-search-box-product-title",
|
|
8315
8324
|
innerHTML: title.value
|
|
8316
|
-
}, null, 8, _hoisted_1$
|
|
8325
|
+
}, null, 8, _hoisted_1$15)) : (openBlock(), createElementBlock("div", _hoisted_2$M, [
|
|
8317
8326
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
8318
8327
|
]));
|
|
8319
8328
|
};
|
|
8320
8329
|
}
|
|
8321
8330
|
});
|
|
8322
|
-
const _hoisted_1$
|
|
8323
|
-
const _hoisted_2$
|
|
8331
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
8332
|
+
const _hoisted_2$L = {
|
|
8324
8333
|
key: 1,
|
|
8325
8334
|
class: "lupa-search-box-product-description"
|
|
8326
8335
|
};
|
|
8327
|
-
const _sfc_main$
|
|
8336
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
8328
8337
|
__name: "SearchBoxProductDescription",
|
|
8329
8338
|
props: {
|
|
8330
8339
|
item: {},
|
|
@@ -8344,12 +8353,12 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
8344
8353
|
key: 0,
|
|
8345
8354
|
class: "lupa-search-box-product-description",
|
|
8346
8355
|
innerHTML: description.value
|
|
8347
|
-
}, null, 8, _hoisted_1$
|
|
8356
|
+
}, null, 8, _hoisted_1$14)) : (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString(description.value), 1));
|
|
8348
8357
|
};
|
|
8349
8358
|
}
|
|
8350
8359
|
});
|
|
8351
|
-
const _hoisted_1$
|
|
8352
|
-
const _sfc_main$
|
|
8360
|
+
const _hoisted_1$13 = { class: "lupa-search-box-product-price" };
|
|
8361
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
8353
8362
|
__name: "SearchBoxProductPrice",
|
|
8354
8363
|
props: {
|
|
8355
8364
|
item: {},
|
|
@@ -8367,14 +8376,14 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
8367
8376
|
);
|
|
8368
8377
|
});
|
|
8369
8378
|
return (_ctx, _cache) => {
|
|
8370
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8379
|
+
return openBlock(), createElementBlock("div", _hoisted_1$13, [
|
|
8371
8380
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
8372
8381
|
]);
|
|
8373
8382
|
};
|
|
8374
8383
|
}
|
|
8375
8384
|
});
|
|
8376
|
-
const _hoisted_1$
|
|
8377
|
-
const _sfc_main$
|
|
8385
|
+
const _hoisted_1$12 = { class: "lupa-search-box-product-regular-price" };
|
|
8386
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
8378
8387
|
__name: "SearchBoxProductRegularPrice",
|
|
8379
8388
|
props: {
|
|
8380
8389
|
item: {},
|
|
@@ -8392,16 +8401,16 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
8392
8401
|
);
|
|
8393
8402
|
});
|
|
8394
8403
|
return (_ctx, _cache) => {
|
|
8395
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8404
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, toDisplayString(price.value), 1);
|
|
8396
8405
|
};
|
|
8397
8406
|
}
|
|
8398
8407
|
});
|
|
8399
|
-
const _hoisted_1$
|
|
8400
|
-
const _hoisted_2$
|
|
8401
|
-
const _hoisted_3$
|
|
8408
|
+
const _hoisted_1$11 = ["innerHTML"];
|
|
8409
|
+
const _hoisted_2$K = { key: 0 };
|
|
8410
|
+
const _hoisted_3$z = { key: 1 };
|
|
8402
8411
|
const _hoisted_4$o = { class: "lupa-search-box-custom-label" };
|
|
8403
8412
|
const _hoisted_5$d = { class: "lupa-search-box-custom-text" };
|
|
8404
|
-
const _sfc_main$
|
|
8413
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
8405
8414
|
__name: "SearchBoxProductCustom",
|
|
8406
8415
|
props: {
|
|
8407
8416
|
item: {},
|
|
@@ -8427,11 +8436,11 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
8427
8436
|
key: 0,
|
|
8428
8437
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
8429
8438
|
innerHTML: text.value
|
|
8430
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
8439
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$11)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
8431
8440
|
key: 1,
|
|
8432
8441
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
8433
8442
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
8434
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
8443
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
8435
8444
|
createBaseVNode("div", _hoisted_4$o, toDisplayString(label.value), 1),
|
|
8436
8445
|
createBaseVNode("div", _hoisted_5$d, toDisplayString(text.value), 1)
|
|
8437
8446
|
]))
|
|
@@ -8439,8 +8448,8 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
8439
8448
|
};
|
|
8440
8449
|
}
|
|
8441
8450
|
});
|
|
8442
|
-
const _hoisted_1
|
|
8443
|
-
const _sfc_main$
|
|
8451
|
+
const _hoisted_1$10 = ["innerHTML"];
|
|
8452
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
8444
8453
|
__name: "SearchBoxProductCustomHtml",
|
|
8445
8454
|
props: {
|
|
8446
8455
|
item: {},
|
|
@@ -8460,7 +8469,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
8460
8469
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
8461
8470
|
class: className.value,
|
|
8462
8471
|
innerHTML: text.value
|
|
8463
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1
|
|
8472
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$10);
|
|
8464
8473
|
};
|
|
8465
8474
|
}
|
|
8466
8475
|
});
|
|
@@ -8655,10 +8664,10 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
8655
8664
|
setLoading
|
|
8656
8665
|
};
|
|
8657
8666
|
});
|
|
8658
|
-
const _hoisted_1
|
|
8659
|
-
const _hoisted_2$
|
|
8660
|
-
const _hoisted_3$
|
|
8661
|
-
const _sfc_main$
|
|
8667
|
+
const _hoisted_1$$ = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
8668
|
+
const _hoisted_2$J = { class: "lupa-search-box-product-addtocart" };
|
|
8669
|
+
const _hoisted_3$y = ["onClick", "disabled"];
|
|
8670
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
8662
8671
|
__name: "SearchBoxProductAddToCart",
|
|
8663
8672
|
props: {
|
|
8664
8673
|
item: {},
|
|
@@ -8685,15 +8694,15 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
8685
8694
|
loading.value = false;
|
|
8686
8695
|
});
|
|
8687
8696
|
return (_ctx, _cache) => {
|
|
8688
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
8689
|
-
createBaseVNode("div", _hoisted_2$
|
|
8697
|
+
return openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
8698
|
+
createBaseVNode("div", _hoisted_2$J, [
|
|
8690
8699
|
createBaseVNode("button", {
|
|
8691
8700
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
8692
8701
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
8693
8702
|
"data-cy": "lupa-add-to-cart",
|
|
8694
8703
|
type: "button",
|
|
8695
8704
|
disabled: !inStockValue.value || loading.value
|
|
8696
|
-
}, toDisplayString(label.value), 11, _hoisted_3$
|
|
8705
|
+
}, toDisplayString(label.value), 11, _hoisted_3$y)
|
|
8697
8706
|
])
|
|
8698
8707
|
]);
|
|
8699
8708
|
};
|
|
@@ -8701,17 +8710,17 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
8701
8710
|
});
|
|
8702
8711
|
const __default__$4 = {
|
|
8703
8712
|
components: {
|
|
8704
|
-
SearchBoxProductImage: _sfc_main$
|
|
8705
|
-
SearchBoxProductTitle: _sfc_main$
|
|
8706
|
-
SearchBoxProductDescription: _sfc_main$
|
|
8707
|
-
SearchBoxProductPrice: _sfc_main$
|
|
8708
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
8709
|
-
SearchBoxProductCustom: _sfc_main$
|
|
8710
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
8711
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
8713
|
+
SearchBoxProductImage: _sfc_main$1b,
|
|
8714
|
+
SearchBoxProductTitle: _sfc_main$1a,
|
|
8715
|
+
SearchBoxProductDescription: _sfc_main$19,
|
|
8716
|
+
SearchBoxProductPrice: _sfc_main$18,
|
|
8717
|
+
SearchBoxProductRegularPrice: _sfc_main$17,
|
|
8718
|
+
SearchBoxProductCustom: _sfc_main$16,
|
|
8719
|
+
SearchBoxProductCustomHtml: _sfc_main$15,
|
|
8720
|
+
SearchBoxProductAddToCart: _sfc_main$14
|
|
8712
8721
|
}
|
|
8713
8722
|
};
|
|
8714
|
-
const _sfc_main$
|
|
8723
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
8715
8724
|
__name: "SearchBoxProductElement",
|
|
8716
8725
|
props: {
|
|
8717
8726
|
item: {},
|
|
@@ -8825,14 +8834,14 @@ const useTrackingStore = defineStore("tracking", () => {
|
|
|
8825
8834
|
};
|
|
8826
8835
|
return { trackSearch, trackResults, trackEvent };
|
|
8827
8836
|
});
|
|
8828
|
-
const _hoisted_1$
|
|
8829
|
-
const _hoisted_2$
|
|
8830
|
-
const _hoisted_3$
|
|
8837
|
+
const _hoisted_1$_ = ["href"];
|
|
8838
|
+
const _hoisted_2$I = { class: "lupa-search-box-product-image-section" };
|
|
8839
|
+
const _hoisted_3$x = { class: "lupa-search-box-product-details-section" };
|
|
8831
8840
|
const _hoisted_4$n = {
|
|
8832
8841
|
key: 0,
|
|
8833
8842
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
8834
8843
|
};
|
|
8835
|
-
const _sfc_main$
|
|
8844
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
8836
8845
|
__name: "SearchBoxProduct",
|
|
8837
8846
|
props: {
|
|
8838
8847
|
item: {},
|
|
@@ -8925,9 +8934,9 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
8925
8934
|
href: link.value,
|
|
8926
8935
|
onClick: handleClick
|
|
8927
8936
|
}, [
|
|
8928
|
-
createBaseVNode("div", _hoisted_2$
|
|
8937
|
+
createBaseVNode("div", _hoisted_2$I, [
|
|
8929
8938
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
8930
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8939
|
+
return openBlock(), createBlock(_sfc_main$13, {
|
|
8931
8940
|
class: "lupa-search-box-product-element",
|
|
8932
8941
|
item: _ctx.item,
|
|
8933
8942
|
element,
|
|
@@ -8937,9 +8946,9 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
8937
8946
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
8938
8947
|
}), 128))
|
|
8939
8948
|
]),
|
|
8940
|
-
createBaseVNode("div", _hoisted_3$
|
|
8949
|
+
createBaseVNode("div", _hoisted_3$x, [
|
|
8941
8950
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
8942
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8951
|
+
return openBlock(), createBlock(_sfc_main$13, {
|
|
8943
8952
|
class: "lupa-search-box-product-element",
|
|
8944
8953
|
item: _ctx.item,
|
|
8945
8954
|
element,
|
|
@@ -8950,7 +8959,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
8950
8959
|
}), 128))
|
|
8951
8960
|
]),
|
|
8952
8961
|
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
|
|
8953
|
-
createVNode(_sfc_main$
|
|
8962
|
+
createVNode(_sfc_main$13, {
|
|
8954
8963
|
class: "lupa-search-box-product-element",
|
|
8955
8964
|
item: _ctx.item,
|
|
8956
8965
|
element: addToCartElement.value,
|
|
@@ -8959,12 +8968,12 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
8959
8968
|
isInStock: isInStock.value
|
|
8960
8969
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
8961
8970
|
])) : createCommentVNode("", true)
|
|
8962
|
-
], 10, _hoisted_1$
|
|
8971
|
+
], 10, _hoisted_1$_);
|
|
8963
8972
|
};
|
|
8964
8973
|
}
|
|
8965
8974
|
});
|
|
8966
|
-
const _hoisted_1$
|
|
8967
|
-
const _sfc_main$
|
|
8975
|
+
const _hoisted_1$Z = { id: "lupa-search-box-products" };
|
|
8976
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
8968
8977
|
__name: "SearchBoxProducts",
|
|
8969
8978
|
props: {
|
|
8970
8979
|
items: {},
|
|
@@ -8984,7 +8993,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
8984
8993
|
return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
|
|
8985
8994
|
});
|
|
8986
8995
|
return (_ctx, _cache) => {
|
|
8987
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8996
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
8988
8997
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
8989
8998
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
8990
8999
|
key: index,
|
|
@@ -8996,7 +9005,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
8996
9005
|
onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
|
|
8997
9006
|
});
|
|
8998
9007
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
8999
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9008
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
9000
9009
|
key: index,
|
|
9001
9010
|
item,
|
|
9002
9011
|
panelOptions: _ctx.panelOptions,
|
|
@@ -9010,7 +9019,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
9010
9019
|
};
|
|
9011
9020
|
}
|
|
9012
9021
|
});
|
|
9013
|
-
const _sfc_main
|
|
9022
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
9014
9023
|
__name: "SearchBoxProductsWrapper",
|
|
9015
9024
|
props: {
|
|
9016
9025
|
panel: {},
|
|
@@ -9062,7 +9071,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
9062
9071
|
const getItemsDebounced = debounce$1(getItems, props.debounce);
|
|
9063
9072
|
return (_ctx, _cache) => {
|
|
9064
9073
|
var _a, _b;
|
|
9065
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9074
|
+
return openBlock(), createBlock(_sfc_main$11, {
|
|
9066
9075
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
9067
9076
|
panelOptions: _ctx.panel,
|
|
9068
9077
|
labels: _ctx.labels,
|
|
@@ -9080,22 +9089,22 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
9080
9089
|
};
|
|
9081
9090
|
}
|
|
9082
9091
|
});
|
|
9083
|
-
const _hoisted_1$
|
|
9092
|
+
const _hoisted_1$Y = {
|
|
9084
9093
|
key: 0,
|
|
9085
9094
|
id: "lupa-search-box-panel"
|
|
9086
9095
|
};
|
|
9087
|
-
const _hoisted_2$
|
|
9088
|
-
const _hoisted_3$
|
|
9096
|
+
const _hoisted_2$H = ["data-cy"];
|
|
9097
|
+
const _hoisted_3$w = {
|
|
9089
9098
|
key: 1,
|
|
9090
9099
|
id: "lupa-search-box-panel"
|
|
9091
9100
|
};
|
|
9092
9101
|
const __default__$3 = {
|
|
9093
9102
|
components: {
|
|
9094
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
9095
|
-
SearchBoxProductsWrapper: _sfc_main
|
|
9103
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1d,
|
|
9104
|
+
SearchBoxProductsWrapper: _sfc_main$10
|
|
9096
9105
|
}
|
|
9097
9106
|
};
|
|
9098
|
-
const _sfc_main
|
|
9107
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
9099
9108
|
__name: "SearchBoxMainPanel",
|
|
9100
9109
|
props: {
|
|
9101
9110
|
options: {},
|
|
@@ -9215,7 +9224,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
9215
9224
|
ref_key: "panelContainer",
|
|
9216
9225
|
ref: panelContainer
|
|
9217
9226
|
}, [
|
|
9218
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9227
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$Y, [
|
|
9219
9228
|
createBaseVNode("div", {
|
|
9220
9229
|
class: "lupa-main-panel",
|
|
9221
9230
|
style: normalizeStyle(expandOnSinglePanel.value ? { display: "block" } : {}),
|
|
@@ -9249,21 +9258,21 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
9249
9258
|
key: "0"
|
|
9250
9259
|
} : void 0
|
|
9251
9260
|
]), 1064, ["panel", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
9252
|
-
], 10, _hoisted_2$
|
|
9261
|
+
], 10, _hoisted_2$H);
|
|
9253
9262
|
}), 128))
|
|
9254
9263
|
], 4),
|
|
9255
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
9264
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1g, {
|
|
9256
9265
|
key: 0,
|
|
9257
9266
|
labels: labels.value
|
|
9258
9267
|
}, null, 8, ["labels"])) : createCommentVNode("", true),
|
|
9259
|
-
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$
|
|
9268
|
+
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1j, {
|
|
9260
9269
|
key: 1,
|
|
9261
9270
|
labels: labels.value,
|
|
9262
9271
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
9263
9272
|
onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
|
|
9264
9273
|
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
9265
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9266
|
-
createVNode(_sfc_main$
|
|
9274
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
|
|
9275
|
+
createVNode(_sfc_main$1h, {
|
|
9267
9276
|
options: _ctx.options.history,
|
|
9268
9277
|
history: history.value,
|
|
9269
9278
|
onGoToResults: handleGoToResults,
|
|
@@ -9288,9 +9297,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
|
|
|
9288
9297
|
const elements = getElements(triggers);
|
|
9289
9298
|
elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
|
|
9290
9299
|
};
|
|
9291
|
-
const _hoisted_1$
|
|
9292
|
-
const _hoisted_2$
|
|
9293
|
-
const _sfc_main$
|
|
9300
|
+
const _hoisted_1$X = { id: "lupa-search-box" };
|
|
9301
|
+
const _hoisted_2$G = { class: "lupa-search-box-wrapper" };
|
|
9302
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
9294
9303
|
__name: "SearchBox",
|
|
9295
9304
|
props: {
|
|
9296
9305
|
options: {},
|
|
@@ -9526,9 +9535,9 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
9526
9535
|
};
|
|
9527
9536
|
return (_ctx, _cache) => {
|
|
9528
9537
|
var _a2;
|
|
9529
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9530
|
-
createBaseVNode("div", _hoisted_2$
|
|
9531
|
-
createVNode(_sfc_main$
|
|
9538
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
9539
|
+
createBaseVNode("div", _hoisted_2$G, [
|
|
9540
|
+
createVNode(_sfc_main$1k, {
|
|
9532
9541
|
options: inputOptions.value,
|
|
9533
9542
|
suggestedValue: suggestedValue.value,
|
|
9534
9543
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -9539,7 +9548,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
9539
9548
|
onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
|
|
9540
9549
|
onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
9541
9550
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
9542
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main
|
|
9551
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$$, {
|
|
9543
9552
|
key: 0,
|
|
9544
9553
|
options: panelOptions.value,
|
|
9545
9554
|
inputValue: inputValue.value,
|
|
@@ -9626,20 +9635,20 @@ const getSearchParams = (url, params, baseUrl) => {
|
|
|
9626
9635
|
}
|
|
9627
9636
|
return searchParams;
|
|
9628
9637
|
};
|
|
9629
|
-
const _hoisted_1$
|
|
9638
|
+
const _hoisted_1$W = {
|
|
9630
9639
|
key: 0,
|
|
9631
9640
|
id: "lupa-search-results-did-you-mean"
|
|
9632
9641
|
};
|
|
9633
|
-
const _hoisted_2$
|
|
9642
|
+
const _hoisted_2$F = {
|
|
9634
9643
|
key: 0,
|
|
9635
9644
|
"data-cy": "suggested-search-text-label"
|
|
9636
9645
|
};
|
|
9637
|
-
const _hoisted_3$
|
|
9646
|
+
const _hoisted_3$v = {
|
|
9638
9647
|
key: 1,
|
|
9639
9648
|
"data-cy": "did-you-mean-label"
|
|
9640
9649
|
};
|
|
9641
9650
|
const _hoisted_4$m = { key: 1 };
|
|
9642
|
-
const _sfc_main$
|
|
9651
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
9643
9652
|
__name: "SearchResultsDidYouMean",
|
|
9644
9653
|
props: {
|
|
9645
9654
|
labels: {}
|
|
@@ -9671,8 +9680,8 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
9671
9680
|
paramStore.goToResults({ searchText, facet });
|
|
9672
9681
|
};
|
|
9673
9682
|
return (_ctx, _cache) => {
|
|
9674
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9675
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9683
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
9684
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$F, [
|
|
9676
9685
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
9677
9686
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
9678
9687
|
createBaseVNode("span", {
|
|
@@ -9681,7 +9690,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
9681
9690
|
]);
|
|
9682
9691
|
}), 128))
|
|
9683
9692
|
])) : createCommentVNode("", true),
|
|
9684
|
-
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9693
|
+
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
|
|
9685
9694
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
9686
9695
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
9687
9696
|
label.includes("{1}") ? (openBlock(), createElementBlock("span", {
|
|
@@ -9697,12 +9706,12 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
9697
9706
|
};
|
|
9698
9707
|
}
|
|
9699
9708
|
});
|
|
9700
|
-
const _hoisted_1$
|
|
9709
|
+
const _hoisted_1$V = {
|
|
9701
9710
|
key: 0,
|
|
9702
9711
|
class: "lupa-search-results-summary"
|
|
9703
9712
|
};
|
|
9704
|
-
const _hoisted_2$
|
|
9705
|
-
const _sfc_main$
|
|
9713
|
+
const _hoisted_2$E = ["innerHTML"];
|
|
9714
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
9706
9715
|
__name: "SearchResultsSummary",
|
|
9707
9716
|
props: {
|
|
9708
9717
|
label: {},
|
|
@@ -9717,8 +9726,8 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
9717
9726
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
9718
9727
|
});
|
|
9719
9728
|
return (_ctx, _cache) => {
|
|
9720
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9721
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
9729
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
9730
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$E),
|
|
9722
9731
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
9723
9732
|
key: 0,
|
|
9724
9733
|
class: "lupa-filter-clear",
|
|
@@ -9729,18 +9738,18 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
9729
9738
|
};
|
|
9730
9739
|
}
|
|
9731
9740
|
});
|
|
9732
|
-
const _hoisted_1$
|
|
9741
|
+
const _hoisted_1$U = {
|
|
9733
9742
|
key: 0,
|
|
9734
9743
|
class: "lupa-result-page-title",
|
|
9735
9744
|
"data-cy": "lupa-result-page-title"
|
|
9736
9745
|
};
|
|
9737
|
-
const _hoisted_2$
|
|
9738
|
-
const _hoisted_3$
|
|
9746
|
+
const _hoisted_2$D = { key: 0 };
|
|
9747
|
+
const _hoisted_3$u = {
|
|
9739
9748
|
key: 1,
|
|
9740
9749
|
class: "lupa-results-total-count"
|
|
9741
9750
|
};
|
|
9742
9751
|
const _hoisted_4$l = ["innerHTML"];
|
|
9743
|
-
const _sfc_main$
|
|
9752
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
9744
9753
|
__name: "SearchResultsTitle",
|
|
9745
9754
|
props: {
|
|
9746
9755
|
options: {},
|
|
@@ -9775,12 +9784,12 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
9775
9784
|
});
|
|
9776
9785
|
return (_ctx, _cache) => {
|
|
9777
9786
|
return openBlock(), createElementBlock("div", null, [
|
|
9778
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
9787
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$U, [
|
|
9779
9788
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
9780
|
-
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9781
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
9789
|
+
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$D, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
9790
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$u, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
|
|
9782
9791
|
])) : createCommentVNode("", true),
|
|
9783
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
9792
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Y, {
|
|
9784
9793
|
key: 1,
|
|
9785
9794
|
label: summaryLabel.value
|
|
9786
9795
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -9793,16 +9802,16 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
9793
9802
|
};
|
|
9794
9803
|
}
|
|
9795
9804
|
});
|
|
9796
|
-
const _hoisted_1$
|
|
9797
|
-
const _hoisted_2$
|
|
9805
|
+
const _hoisted_1$T = { class: "lupa-search-result-filter-value" };
|
|
9806
|
+
const _hoisted_2$C = {
|
|
9798
9807
|
class: "lupa-current-filter-label",
|
|
9799
9808
|
"data-cy": "lupa-current-filter-label"
|
|
9800
9809
|
};
|
|
9801
|
-
const _hoisted_3$
|
|
9810
|
+
const _hoisted_3$t = {
|
|
9802
9811
|
class: "lupa-current-filter-value",
|
|
9803
9812
|
"data-cy": "lupa-current-filter-value"
|
|
9804
9813
|
};
|
|
9805
|
-
const _sfc_main$
|
|
9814
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
9806
9815
|
__name: "CurrentFilterDisplay",
|
|
9807
9816
|
props: {
|
|
9808
9817
|
filter: {}
|
|
@@ -9814,28 +9823,28 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
9814
9823
|
emit2("remove", { filter: props.filter });
|
|
9815
9824
|
};
|
|
9816
9825
|
return (_ctx, _cache) => {
|
|
9817
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9826
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
9818
9827
|
createBaseVNode("div", {
|
|
9819
9828
|
class: "lupa-current-filter-action",
|
|
9820
9829
|
onClick: handleClick
|
|
9821
9830
|
}, "⨉"),
|
|
9822
|
-
createBaseVNode("div", _hoisted_2$
|
|
9823
|
-
createBaseVNode("div", _hoisted_3$
|
|
9831
|
+
createBaseVNode("div", _hoisted_2$C, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
9832
|
+
createBaseVNode("div", _hoisted_3$t, toDisplayString(_ctx.filter.value), 1)
|
|
9824
9833
|
]);
|
|
9825
9834
|
};
|
|
9826
9835
|
}
|
|
9827
9836
|
});
|
|
9828
|
-
const _hoisted_1$
|
|
9829
|
-
const _hoisted_2$
|
|
9837
|
+
const _hoisted_1$S = { class: "lupa-filter-title-text" };
|
|
9838
|
+
const _hoisted_2$B = {
|
|
9830
9839
|
key: 0,
|
|
9831
9840
|
class: "lupa-filter-count"
|
|
9832
9841
|
};
|
|
9833
|
-
const _hoisted_3$
|
|
9842
|
+
const _hoisted_3$s = {
|
|
9834
9843
|
key: 0,
|
|
9835
9844
|
class: "filter-values"
|
|
9836
9845
|
};
|
|
9837
9846
|
const _hoisted_4$k = { class: "lupa-current-filter-list" };
|
|
9838
|
-
const _sfc_main$
|
|
9847
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
9839
9848
|
__name: "CurrentFilters",
|
|
9840
9849
|
props: {
|
|
9841
9850
|
options: {},
|
|
@@ -9890,19 +9899,19 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
9890
9899
|
class: "lupa-current-filter-title",
|
|
9891
9900
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
9892
9901
|
}, [
|
|
9893
|
-
createBaseVNode("div", _hoisted_1$
|
|
9902
|
+
createBaseVNode("div", _hoisted_1$S, [
|
|
9894
9903
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
9895
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9904
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$B, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
9896
9905
|
]),
|
|
9897
9906
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
9898
9907
|
key: 0,
|
|
9899
9908
|
class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
9900
9909
|
}, null, 2)) : createCommentVNode("", true)
|
|
9901
9910
|
]),
|
|
9902
|
-
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9911
|
+
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$s, [
|
|
9903
9912
|
createBaseVNode("div", _hoisted_4$k, [
|
|
9904
9913
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
|
|
9905
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9914
|
+
return openBlock(), createBlock(_sfc_main$W, {
|
|
9906
9915
|
key: filter.key + "_" + filter.value,
|
|
9907
9916
|
filter,
|
|
9908
9917
|
onRemove: handleRemove
|
|
@@ -9919,8 +9928,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
9919
9928
|
};
|
|
9920
9929
|
}
|
|
9921
9930
|
});
|
|
9922
|
-
const _hoisted_1$
|
|
9923
|
-
const _sfc_main$
|
|
9931
|
+
const _hoisted_1$R = ["href"];
|
|
9932
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
9924
9933
|
__name: "CategoryFilterItem",
|
|
9925
9934
|
props: {
|
|
9926
9935
|
options: {},
|
|
@@ -9957,20 +9966,20 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
9957
9966
|
"data-cy": "lupa-child-category-item",
|
|
9958
9967
|
href: urlLink.value,
|
|
9959
9968
|
onClick: handleNavigation
|
|
9960
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
9969
|
+
}, toDisplayString(title.value), 9, _hoisted_1$R)
|
|
9961
9970
|
], 2);
|
|
9962
9971
|
};
|
|
9963
9972
|
}
|
|
9964
9973
|
});
|
|
9965
|
-
const _hoisted_1$
|
|
9974
|
+
const _hoisted_1$Q = {
|
|
9966
9975
|
class: "lupa-category-filter",
|
|
9967
9976
|
"data-cy": "lupa-category-filter"
|
|
9968
9977
|
};
|
|
9969
|
-
const _hoisted_2$
|
|
9970
|
-
const _hoisted_3$
|
|
9978
|
+
const _hoisted_2$A = { class: "lupa-category-back" };
|
|
9979
|
+
const _hoisted_3$r = ["href"];
|
|
9971
9980
|
const _hoisted_4$j = ["href"];
|
|
9972
9981
|
const _hoisted_5$c = { class: "lupa-child-category-list" };
|
|
9973
|
-
const _sfc_main$
|
|
9982
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
9974
9983
|
__name: "CategoryFilter",
|
|
9975
9984
|
props: {
|
|
9976
9985
|
options: {}
|
|
@@ -10056,14 +10065,14 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
10056
10065
|
};
|
|
10057
10066
|
__expose({ fetch: fetch2 });
|
|
10058
10067
|
return (_ctx, _cache) => {
|
|
10059
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10060
|
-
createBaseVNode("div", _hoisted_2$
|
|
10068
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
10069
|
+
createBaseVNode("div", _hoisted_2$A, [
|
|
10061
10070
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
10062
10071
|
key: 0,
|
|
10063
10072
|
"data-cy": "lupa-category-back",
|
|
10064
10073
|
href: backUrlLink.value,
|
|
10065
10074
|
onClick: handleNavigationBack
|
|
10066
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
10075
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$r)) : createCommentVNode("", true)
|
|
10067
10076
|
]),
|
|
10068
10077
|
createBaseVNode("div", {
|
|
10069
10078
|
class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -10077,7 +10086,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
10077
10086
|
], 2),
|
|
10078
10087
|
createBaseVNode("div", _hoisted_5$c, [
|
|
10079
10088
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
10080
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10089
|
+
return openBlock(), createBlock(_sfc_main$U, {
|
|
10081
10090
|
key: getCategoryKey(child),
|
|
10082
10091
|
item: child,
|
|
10083
10092
|
options: _ctx.options
|
|
@@ -10088,15 +10097,15 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
10088
10097
|
};
|
|
10089
10098
|
}
|
|
10090
10099
|
});
|
|
10091
|
-
const _hoisted_1$
|
|
10100
|
+
const _hoisted_1$P = {
|
|
10092
10101
|
class: "lupa-search-result-facet-term-values",
|
|
10093
10102
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
10094
10103
|
};
|
|
10095
|
-
const _hoisted_2$
|
|
10096
|
-
const _hoisted_3$
|
|
10104
|
+
const _hoisted_2$z = ["placeholder"];
|
|
10105
|
+
const _hoisted_3$q = { class: "lupa-terms-list" };
|
|
10097
10106
|
const _hoisted_4$i = ["onClick"];
|
|
10098
10107
|
const _hoisted_5$b = { class: "lupa-term-checkbox-wrapper" };
|
|
10099
|
-
const _hoisted_6$
|
|
10108
|
+
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
10100
10109
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
10101
10110
|
const _hoisted_8$1 = {
|
|
10102
10111
|
key: 0,
|
|
@@ -10104,7 +10113,7 @@ const _hoisted_8$1 = {
|
|
|
10104
10113
|
};
|
|
10105
10114
|
const _hoisted_9$1 = { key: 0 };
|
|
10106
10115
|
const _hoisted_10$1 = { key: 1 };
|
|
10107
|
-
const _sfc_main$
|
|
10116
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
10108
10117
|
__name: "TermFacet",
|
|
10109
10118
|
props: {
|
|
10110
10119
|
options: {},
|
|
@@ -10173,17 +10182,17 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10173
10182
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
10174
10183
|
};
|
|
10175
10184
|
return (_ctx, _cache) => {
|
|
10176
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10185
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
10177
10186
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
10178
10187
|
key: 0,
|
|
10179
10188
|
class: "lupa-term-filter",
|
|
10180
10189
|
"data-cy": "lupa-term-filter",
|
|
10181
10190
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
10182
10191
|
placeholder: _ctx.options.labels.facetFilter
|
|
10183
|
-
}, null, 8, _hoisted_2$
|
|
10192
|
+
}, null, 8, _hoisted_2$z)), [
|
|
10184
10193
|
[vModelText, termFilter.value]
|
|
10185
10194
|
]) : createCommentVNode("", true),
|
|
10186
|
-
createBaseVNode("div", _hoisted_3$
|
|
10195
|
+
createBaseVNode("div", _hoisted_3$q, [
|
|
10187
10196
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
10188
10197
|
return openBlock(), createElementBlock("div", {
|
|
10189
10198
|
class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -10196,7 +10205,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10196
10205
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
10197
10206
|
}, null, 2)
|
|
10198
10207
|
]),
|
|
10199
|
-
createBaseVNode("div", _hoisted_6$
|
|
10208
|
+
createBaseVNode("div", _hoisted_6$8, [
|
|
10200
10209
|
createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
|
|
10201
10210
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
10202
10211
|
])
|
|
@@ -11191,12 +11200,12 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
11191
11200
|
m.render = function(e, t, r, i, n, o) {
|
|
11192
11201
|
return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
|
|
11193
11202
|
}, m.__file = "src/Slider.vue";
|
|
11194
|
-
const _hoisted_1$
|
|
11195
|
-
const _hoisted_2$
|
|
11203
|
+
const _hoisted_1$O = { class: "lupa-search-result-facet-stats-values" };
|
|
11204
|
+
const _hoisted_2$y = {
|
|
11196
11205
|
key: 0,
|
|
11197
11206
|
class: "lupa-stats-facet-summary"
|
|
11198
11207
|
};
|
|
11199
|
-
const _hoisted_3$
|
|
11208
|
+
const _hoisted_3$p = {
|
|
11200
11209
|
key: 1,
|
|
11201
11210
|
class: "lupa-stats-facet-summary-input"
|
|
11202
11211
|
};
|
|
@@ -11205,7 +11214,7 @@ const _hoisted_4$h = {
|
|
|
11205
11214
|
class: "lupa-stats-range-label"
|
|
11206
11215
|
};
|
|
11207
11216
|
const _hoisted_5$a = { class: "lupa-stats-from" };
|
|
11208
|
-
const _hoisted_6$
|
|
11217
|
+
const _hoisted_6$7 = ["max", "min", "pattern"];
|
|
11209
11218
|
const _hoisted_7$5 = { key: 0 };
|
|
11210
11219
|
const _hoisted_8 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
11211
11220
|
const _hoisted_9 = {
|
|
@@ -11219,7 +11228,7 @@ const _hoisted_13 = {
|
|
|
11219
11228
|
key: 2,
|
|
11220
11229
|
class: "lupa-stats-slider-wrapper"
|
|
11221
11230
|
};
|
|
11222
|
-
const _sfc_main$
|
|
11231
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
11223
11232
|
__name: "StatsFacet",
|
|
11224
11233
|
props: {
|
|
11225
11234
|
options: {},
|
|
@@ -11367,8 +11376,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
11367
11376
|
innerSliderRange.value = value;
|
|
11368
11377
|
};
|
|
11369
11378
|
return (_ctx, _cache) => {
|
|
11370
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11371
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11379
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
11380
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$p, [
|
|
11372
11381
|
createBaseVNode("div", null, [
|
|
11373
11382
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
11374
11383
|
createBaseVNode("div", _hoisted_5$a, [
|
|
@@ -11379,7 +11388,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
11379
11388
|
max: facetMax.value,
|
|
11380
11389
|
min: facetMin.value,
|
|
11381
11390
|
pattern: sliderInputFormat.value
|
|
11382
|
-
}, null, 8, _hoisted_6$
|
|
11391
|
+
}, null, 8, _hoisted_6$7), [
|
|
11383
11392
|
[
|
|
11384
11393
|
vModelText,
|
|
11385
11394
|
fromValue.value,
|
|
@@ -11431,9 +11440,9 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
11431
11440
|
};
|
|
11432
11441
|
}
|
|
11433
11442
|
});
|
|
11434
|
-
const _hoisted_1$
|
|
11435
|
-
const _hoisted_2$
|
|
11436
|
-
const _hoisted_3$
|
|
11443
|
+
const _hoisted_1$N = { class: "lupa-term-checkbox-wrapper" };
|
|
11444
|
+
const _hoisted_2$x = { class: "lupa-term-checkbox-label" };
|
|
11445
|
+
const _hoisted_3$o = { class: "lupa-term-label" };
|
|
11437
11446
|
const _hoisted_4$g = {
|
|
11438
11447
|
key: 0,
|
|
11439
11448
|
class: "lupa-term-count"
|
|
@@ -11442,7 +11451,7 @@ const _hoisted_5$9 = {
|
|
|
11442
11451
|
key: 0,
|
|
11443
11452
|
class: "lupa-facet-level"
|
|
11444
11453
|
};
|
|
11445
|
-
const _sfc_main$
|
|
11454
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
11446
11455
|
__name: "HierarchyFacetLevel",
|
|
11447
11456
|
props: {
|
|
11448
11457
|
options: {},
|
|
@@ -11488,13 +11497,13 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
11488
11497
|
"data-cy": "lupa-facet-term",
|
|
11489
11498
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
11490
11499
|
}, [
|
|
11491
|
-
createBaseVNode("div", _hoisted_1$
|
|
11500
|
+
createBaseVNode("div", _hoisted_1$N, [
|
|
11492
11501
|
createBaseVNode("span", {
|
|
11493
11502
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
11494
11503
|
}, null, 2)
|
|
11495
11504
|
]),
|
|
11496
|
-
createBaseVNode("div", _hoisted_2$
|
|
11497
|
-
createBaseVNode("span", _hoisted_3$
|
|
11505
|
+
createBaseVNode("div", _hoisted_2$x, [
|
|
11506
|
+
createBaseVNode("span", _hoisted_3$o, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
11498
11507
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
11499
11508
|
])
|
|
11500
11509
|
]),
|
|
@@ -11514,13 +11523,13 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
11514
11523
|
};
|
|
11515
11524
|
}
|
|
11516
11525
|
});
|
|
11517
|
-
const _hoisted_1$
|
|
11526
|
+
const _hoisted_1$M = {
|
|
11518
11527
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
11519
11528
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
11520
11529
|
};
|
|
11521
|
-
const _hoisted_2$
|
|
11522
|
-
const _hoisted_3$
|
|
11523
|
-
const _sfc_main$
|
|
11530
|
+
const _hoisted_2$w = { key: 0 };
|
|
11531
|
+
const _hoisted_3$n = ["placeholder"];
|
|
11532
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
11524
11533
|
__name: "HierarchyFacet",
|
|
11525
11534
|
props: {
|
|
11526
11535
|
options: {},
|
|
@@ -11570,19 +11579,19 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
11570
11579
|
showAll.value = true;
|
|
11571
11580
|
};
|
|
11572
11581
|
return (_ctx, _cache) => {
|
|
11573
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11574
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11582
|
+
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
11583
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
|
|
11575
11584
|
withDirectives(createBaseVNode("input", {
|
|
11576
11585
|
class: "lupa-term-filter",
|
|
11577
11586
|
"data-cy": "lupa-term-filter",
|
|
11578
11587
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
11579
11588
|
placeholder: _ctx.options.labels.facetFilter
|
|
11580
|
-
}, null, 8, _hoisted_3$
|
|
11589
|
+
}, null, 8, _hoisted_3$n), [
|
|
11581
11590
|
[vModelText, termFilter.value]
|
|
11582
11591
|
])
|
|
11583
11592
|
])) : createCommentVNode("", true),
|
|
11584
11593
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
11585
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11594
|
+
return openBlock(), createBlock(_sfc_main$Q, {
|
|
11586
11595
|
key: item.title,
|
|
11587
11596
|
options: _ctx.options,
|
|
11588
11597
|
item,
|
|
@@ -11602,20 +11611,20 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
11602
11611
|
};
|
|
11603
11612
|
}
|
|
11604
11613
|
});
|
|
11605
|
-
const _hoisted_1$
|
|
11606
|
-
const _hoisted_2$
|
|
11614
|
+
const _hoisted_1$L = { class: "lupa-facet-label-text" };
|
|
11615
|
+
const _hoisted_2$v = {
|
|
11607
11616
|
key: 0,
|
|
11608
11617
|
class: "lupa-facet-content",
|
|
11609
11618
|
"data-cy": "lupa-facet-content"
|
|
11610
11619
|
};
|
|
11611
11620
|
const __default__$2 = {
|
|
11612
11621
|
components: {
|
|
11613
|
-
TermFacet: _sfc_main$
|
|
11614
|
-
StatsFacet: _sfc_main$
|
|
11615
|
-
HierarchyFacet: _sfc_main$
|
|
11622
|
+
TermFacet: _sfc_main$S,
|
|
11623
|
+
StatsFacet: _sfc_main$R,
|
|
11624
|
+
HierarchyFacet: _sfc_main$P
|
|
11616
11625
|
}
|
|
11617
11626
|
};
|
|
11618
|
-
const _sfc_main$
|
|
11627
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
11619
11628
|
__name: "FacetDisplay",
|
|
11620
11629
|
props: {
|
|
11621
11630
|
options: {},
|
|
@@ -11726,12 +11735,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
11726
11735
|
"data-cy": "lupa-search-result-facet-label",
|
|
11727
11736
|
onClick: toggleFacet
|
|
11728
11737
|
}, [
|
|
11729
|
-
createBaseVNode("div", _hoisted_1$
|
|
11738
|
+
createBaseVNode("div", _hoisted_1$L, toDisplayString(facet.value.label), 1),
|
|
11730
11739
|
createBaseVNode("div", {
|
|
11731
11740
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
11732
11741
|
}, null, 2)
|
|
11733
11742
|
], 2),
|
|
11734
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11743
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
|
|
11735
11744
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
11736
11745
|
facet: facet.value,
|
|
11737
11746
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -11749,12 +11758,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
11749
11758
|
};
|
|
11750
11759
|
}
|
|
11751
11760
|
}));
|
|
11752
|
-
const _hoisted_1$
|
|
11753
|
-
const _hoisted_2$
|
|
11761
|
+
const _hoisted_1$K = { class: "lupa-search-result-facet-section" };
|
|
11762
|
+
const _hoisted_2$u = {
|
|
11754
11763
|
key: 0,
|
|
11755
11764
|
class: "lupa-facets-title"
|
|
11756
11765
|
};
|
|
11757
|
-
const _sfc_main$
|
|
11766
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
11758
11767
|
__name: "FacetList",
|
|
11759
11768
|
props: {
|
|
11760
11769
|
options: {},
|
|
@@ -11788,14 +11797,14 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
11788
11797
|
};
|
|
11789
11798
|
return (_ctx, _cache) => {
|
|
11790
11799
|
var _a;
|
|
11791
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11792
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11800
|
+
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
11801
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$u, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
11793
11802
|
createBaseVNode("div", {
|
|
11794
11803
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
11795
11804
|
}, [
|
|
11796
11805
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
11797
11806
|
var _a2;
|
|
11798
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11807
|
+
return openBlock(), createBlock(_sfc_main$O, {
|
|
11799
11808
|
key: facet.key,
|
|
11800
11809
|
facet,
|
|
11801
11810
|
currentFilters: currentFiltersValue.value,
|
|
@@ -11810,8 +11819,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
11810
11819
|
};
|
|
11811
11820
|
}
|
|
11812
11821
|
});
|
|
11813
|
-
const _hoisted_1$
|
|
11814
|
-
const _sfc_main$
|
|
11822
|
+
const _hoisted_1$J = { class: "lupa-search-result-facets" };
|
|
11823
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
11815
11824
|
__name: "Facets",
|
|
11816
11825
|
props: {
|
|
11817
11826
|
options: {},
|
|
@@ -11857,8 +11866,8 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
11857
11866
|
paramStore.removeParameters({ paramsToRemove: [param] });
|
|
11858
11867
|
};
|
|
11859
11868
|
return (_ctx, _cache) => {
|
|
11860
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11861
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
11869
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
11870
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$N, {
|
|
11862
11871
|
key: 0,
|
|
11863
11872
|
options: _ctx.options,
|
|
11864
11873
|
facets: regularFacets.value,
|
|
@@ -11872,11 +11881,11 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
11872
11881
|
};
|
|
11873
11882
|
}
|
|
11874
11883
|
});
|
|
11875
|
-
const _hoisted_1$
|
|
11884
|
+
const _hoisted_1$I = {
|
|
11876
11885
|
id: "lupa-search-result-filters",
|
|
11877
11886
|
class: "lupa-search-result-filters"
|
|
11878
11887
|
};
|
|
11879
|
-
const _sfc_main$
|
|
11888
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
11880
11889
|
__name: "SearchResultsFilters",
|
|
11881
11890
|
props: {
|
|
11882
11891
|
options: {},
|
|
@@ -11905,19 +11914,19 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11905
11914
|
__expose({ fetch: fetch2 });
|
|
11906
11915
|
return (_ctx, _cache) => {
|
|
11907
11916
|
var _a;
|
|
11908
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11909
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
11917
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
11918
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$V, {
|
|
11910
11919
|
key: 0,
|
|
11911
11920
|
options: _ctx.options.currentFilters,
|
|
11912
11921
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
11913
11922
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
11914
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
11923
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$T, {
|
|
11915
11924
|
key: 1,
|
|
11916
11925
|
options: _ctx.options.categories,
|
|
11917
11926
|
ref_key: "categoryFilters",
|
|
11918
11927
|
ref: categoryFilters
|
|
11919
11928
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
11920
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
11929
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
|
|
11921
11930
|
key: 2,
|
|
11922
11931
|
options: _ctx.options.facets
|
|
11923
11932
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -11925,20 +11934,20 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11925
11934
|
};
|
|
11926
11935
|
}
|
|
11927
11936
|
});
|
|
11928
|
-
const _hoisted_1$
|
|
11937
|
+
const _hoisted_1$H = {
|
|
11929
11938
|
key: 0,
|
|
11930
11939
|
class: "lupa-mobile-filter-sidebar"
|
|
11931
11940
|
};
|
|
11932
|
-
const _hoisted_2$
|
|
11933
|
-
const _hoisted_3$
|
|
11941
|
+
const _hoisted_2$t = ["onClick"];
|
|
11942
|
+
const _hoisted_3$m = { class: "lupa-mobile-sidebar-content" };
|
|
11934
11943
|
const _hoisted_4$f = { class: "lupa-sidebar-top" };
|
|
11935
11944
|
const _hoisted_5$8 = { class: "lupa-sidebar-title" };
|
|
11936
|
-
const _hoisted_6$
|
|
11945
|
+
const _hoisted_6$6 = {
|
|
11937
11946
|
key: 0,
|
|
11938
11947
|
class: "lupa-sidebar-filter-count"
|
|
11939
11948
|
};
|
|
11940
11949
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
11941
|
-
const _sfc_main$
|
|
11950
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
11942
11951
|
__name: "MobileFilterSidebar",
|
|
11943
11952
|
props: {
|
|
11944
11953
|
options: {}
|
|
@@ -11964,16 +11973,16 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
11964
11973
|
searchResultStore.setSidebarState({ visible: false });
|
|
11965
11974
|
};
|
|
11966
11975
|
return (_ctx, _cache) => {
|
|
11967
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11976
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
11968
11977
|
createBaseVNode("div", {
|
|
11969
11978
|
class: "lupa-sidebar-close",
|
|
11970
11979
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
11971
|
-
}, null, 8, _hoisted_2$
|
|
11972
|
-
createBaseVNode("div", _hoisted_3$
|
|
11980
|
+
}, null, 8, _hoisted_2$t),
|
|
11981
|
+
createBaseVNode("div", _hoisted_3$m, [
|
|
11973
11982
|
createBaseVNode("div", _hoisted_4$f, [
|
|
11974
11983
|
createBaseVNode("div", _hoisted_5$8, [
|
|
11975
11984
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
11976
|
-
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
11985
|
+
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
11977
11986
|
]),
|
|
11978
11987
|
createBaseVNode("div", {
|
|
11979
11988
|
class: "lupa-filter-toggle-mobile",
|
|
@@ -11981,7 +11990,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
11981
11990
|
})
|
|
11982
11991
|
]),
|
|
11983
11992
|
createBaseVNode("div", _hoisted_7$4, [
|
|
11984
|
-
createVNode(_sfc_main$
|
|
11993
|
+
createVNode(_sfc_main$L, {
|
|
11985
11994
|
options: _ctx.options,
|
|
11986
11995
|
expandable: isActiveFiltersExpanded.value
|
|
11987
11996
|
}, null, 8, ["options", "expandable"])
|
|
@@ -11991,14 +12000,14 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
11991
12000
|
};
|
|
11992
12001
|
}
|
|
11993
12002
|
});
|
|
11994
|
-
const _hoisted_1$
|
|
11995
|
-
const _hoisted_2$
|
|
11996
|
-
const _hoisted_3$
|
|
12003
|
+
const _hoisted_1$G = { id: "lupa-search-results-breadcrumbs" };
|
|
12004
|
+
const _hoisted_2$s = ["href", "onClick"];
|
|
12005
|
+
const _hoisted_3$l = {
|
|
11997
12006
|
key: 1,
|
|
11998
12007
|
class: "lupa-search-results-breadcrumb-text"
|
|
11999
12008
|
};
|
|
12000
12009
|
const _hoisted_4$e = { key: 2 };
|
|
12001
|
-
const _sfc_main$
|
|
12010
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
12002
12011
|
__name: "SearchResultsBreadcrumbs",
|
|
12003
12012
|
props: {
|
|
12004
12013
|
breadcrumbs: {}
|
|
@@ -12023,7 +12032,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
12023
12032
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
12024
12033
|
};
|
|
12025
12034
|
return (_ctx, _cache) => {
|
|
12026
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12035
|
+
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
12027
12036
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
12028
12037
|
return openBlock(), createElementBlock("span", {
|
|
12029
12038
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -12037,7 +12046,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
12037
12046
|
var _a;
|
|
12038
12047
|
return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
12039
12048
|
}
|
|
12040
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
12049
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$l, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
12041
12050
|
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
|
|
12042
12051
|
]);
|
|
12043
12052
|
}), 128))
|
|
@@ -12045,11 +12054,11 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
12045
12054
|
};
|
|
12046
12055
|
}
|
|
12047
12056
|
});
|
|
12048
|
-
const _hoisted_1$
|
|
12057
|
+
const _hoisted_1$F = {
|
|
12049
12058
|
id: "lupa-search-result-filters",
|
|
12050
12059
|
class: "lupa-search-result-filters"
|
|
12051
12060
|
};
|
|
12052
|
-
const _sfc_main$
|
|
12061
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
12053
12062
|
__name: "FiltersTopDropdown",
|
|
12054
12063
|
props: {
|
|
12055
12064
|
options: {}
|
|
@@ -12057,8 +12066,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
12057
12066
|
setup(__props) {
|
|
12058
12067
|
return (_ctx, _cache) => {
|
|
12059
12068
|
var _a;
|
|
12060
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12061
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
12069
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
12070
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
|
|
12062
12071
|
key: 0,
|
|
12063
12072
|
options: _ctx.options.facets,
|
|
12064
12073
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -12068,8 +12077,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
12068
12077
|
};
|
|
12069
12078
|
}
|
|
12070
12079
|
});
|
|
12071
|
-
const _hoisted_1$
|
|
12072
|
-
const _sfc_main$
|
|
12080
|
+
const _hoisted_1$E = { id: "lupa-search-results-layout-selection" };
|
|
12081
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
12073
12082
|
__name: "SearchResultsLayoutSelection",
|
|
12074
12083
|
setup(__props) {
|
|
12075
12084
|
const searchResultStore = useSearchResultStore();
|
|
@@ -12080,7 +12089,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
12080
12089
|
searchResultStore.setLayout(layout2);
|
|
12081
12090
|
};
|
|
12082
12091
|
return (_ctx, _cache) => {
|
|
12083
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12092
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
12084
12093
|
createBaseVNode("div", {
|
|
12085
12094
|
class: normalizeClass([
|
|
12086
12095
|
"lupa-layout-selection-grid",
|
|
@@ -12102,11 +12111,11 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
12102
12111
|
};
|
|
12103
12112
|
}
|
|
12104
12113
|
});
|
|
12105
|
-
const _hoisted_1$
|
|
12114
|
+
const _hoisted_1$D = {
|
|
12106
12115
|
key: 0,
|
|
12107
12116
|
class: "lupa-mobile-toggle-filter-count"
|
|
12108
12117
|
};
|
|
12109
|
-
const _sfc_main$
|
|
12118
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
12110
12119
|
__name: "SearchResultsMobileToggle",
|
|
12111
12120
|
props: {
|
|
12112
12121
|
label: {},
|
|
@@ -12124,26 +12133,26 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
12124
12133
|
onClick: handleMobileToggle
|
|
12125
12134
|
}, [
|
|
12126
12135
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
12127
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
12136
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$D, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
12128
12137
|
], 2);
|
|
12129
12138
|
};
|
|
12130
12139
|
}
|
|
12131
12140
|
});
|
|
12132
|
-
const _hoisted_1$
|
|
12141
|
+
const _hoisted_1$C = {
|
|
12133
12142
|
key: 0,
|
|
12134
12143
|
id: "lupa-search-results-page-select",
|
|
12135
12144
|
"data-cy": "lupa-search-results-page-select"
|
|
12136
12145
|
};
|
|
12137
|
-
const _hoisted_2$
|
|
12146
|
+
const _hoisted_2$r = {
|
|
12138
12147
|
key: 0,
|
|
12139
12148
|
class: "lupa-page-number-separator"
|
|
12140
12149
|
};
|
|
12141
|
-
const _hoisted_3$
|
|
12150
|
+
const _hoisted_3$k = ["onClick"];
|
|
12142
12151
|
const _hoisted_4$d = {
|
|
12143
12152
|
key: 0,
|
|
12144
12153
|
class: "lupa-page-number-separator"
|
|
12145
12154
|
};
|
|
12146
|
-
const _sfc_main$
|
|
12155
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
12147
12156
|
__name: "SearchResultsPageSelect",
|
|
12148
12157
|
props: {
|
|
12149
12158
|
lastPageLabel: {},
|
|
@@ -12205,7 +12214,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
12205
12214
|
}
|
|
12206
12215
|
};
|
|
12207
12216
|
return (_ctx, _cache) => {
|
|
12208
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
12217
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
12209
12218
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
12210
12219
|
key: 0,
|
|
12211
12220
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -12216,7 +12225,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
12216
12225
|
class: "lupa-page-number lupa-page-number-first",
|
|
12217
12226
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
12218
12227
|
}, " 1 "),
|
|
12219
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12228
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, "...")) : createCommentVNode("", true)
|
|
12220
12229
|
], 64)) : createCommentVNode("", true),
|
|
12221
12230
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
12222
12231
|
return openBlock(), createElementBlock("div", {
|
|
@@ -12227,7 +12236,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
12227
12236
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
12228
12237
|
]),
|
|
12229
12238
|
"data-cy": "lupa-page-number"
|
|
12230
|
-
}, toDisplayString(page), 11, _hoisted_3$
|
|
12239
|
+
}, toDisplayString(page), 11, _hoisted_3$k);
|
|
12231
12240
|
}), 128)),
|
|
12232
12241
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
12233
12242
|
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$d, "...")) : createCommentVNode("", true),
|
|
@@ -12249,13 +12258,13 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
12249
12258
|
};
|
|
12250
12259
|
}
|
|
12251
12260
|
});
|
|
12252
|
-
const _hoisted_1$
|
|
12261
|
+
const _hoisted_1$B = {
|
|
12253
12262
|
id: "lupa-search-results-page-size",
|
|
12254
12263
|
"data-cy": "lupa-search-results-page-size"
|
|
12255
12264
|
};
|
|
12256
|
-
const _hoisted_2$
|
|
12257
|
-
const _hoisted_3$
|
|
12258
|
-
const _sfc_main$
|
|
12265
|
+
const _hoisted_2$q = { id: "lupa-select" };
|
|
12266
|
+
const _hoisted_3$j = { class: "lupa-select-label" };
|
|
12267
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
12259
12268
|
__name: "SearchResultsPageSize",
|
|
12260
12269
|
props: {
|
|
12261
12270
|
label: {},
|
|
@@ -12272,9 +12281,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
12272
12281
|
});
|
|
12273
12282
|
};
|
|
12274
12283
|
return (_ctx, _cache) => {
|
|
12275
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12276
|
-
createBaseVNode("div", _hoisted_2$
|
|
12277
|
-
createBaseVNode("label", _hoisted_3$
|
|
12284
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
12285
|
+
createBaseVNode("div", _hoisted_2$q, [
|
|
12286
|
+
createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.label), 1),
|
|
12278
12287
|
createBaseVNode("select", {
|
|
12279
12288
|
class: "lupa-select-dropdown",
|
|
12280
12289
|
"data-cy": "lupa-page-size-select-dropdown",
|
|
@@ -12291,14 +12300,14 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
12291
12300
|
};
|
|
12292
12301
|
}
|
|
12293
12302
|
});
|
|
12294
|
-
const _hoisted_1$
|
|
12303
|
+
const _hoisted_1$A = {
|
|
12295
12304
|
id: "lupa-search-results-sort",
|
|
12296
12305
|
class: "lupa-search-results-sort"
|
|
12297
12306
|
};
|
|
12298
|
-
const _hoisted_2$
|
|
12299
|
-
const _hoisted_3$
|
|
12307
|
+
const _hoisted_2$p = { id: "lupa-select" };
|
|
12308
|
+
const _hoisted_3$i = { class: "lupa-select-label" };
|
|
12300
12309
|
const _hoisted_4$c = ["value"];
|
|
12301
|
-
const _sfc_main$
|
|
12310
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
12302
12311
|
__name: "SearchResultsSort",
|
|
12303
12312
|
props: {
|
|
12304
12313
|
options: {},
|
|
@@ -12345,9 +12354,9 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
12345
12354
|
previousKey.value = selectedKey.value;
|
|
12346
12355
|
};
|
|
12347
12356
|
return (_ctx, _cache) => {
|
|
12348
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12349
|
-
createBaseVNode("div", _hoisted_2$
|
|
12350
|
-
createBaseVNode("label", _hoisted_3$
|
|
12357
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
12358
|
+
createBaseVNode("div", _hoisted_2$p, [
|
|
12359
|
+
createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.options.label), 1),
|
|
12351
12360
|
withDirectives(createBaseVNode("select", {
|
|
12352
12361
|
class: "lupa-select-dropdown",
|
|
12353
12362
|
"data-cy": "lupa-sort-select-dropdown",
|
|
@@ -12369,14 +12378,14 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
12369
12378
|
};
|
|
12370
12379
|
}
|
|
12371
12380
|
});
|
|
12372
|
-
const _hoisted_1$
|
|
12373
|
-
const _hoisted_2$
|
|
12374
|
-
const _hoisted_3$
|
|
12381
|
+
const _hoisted_1$z = { class: "lupa-toolbar-left" };
|
|
12382
|
+
const _hoisted_2$o = { key: 1 };
|
|
12383
|
+
const _hoisted_3$h = { key: 3 };
|
|
12375
12384
|
const _hoisted_4$b = { key: 5 };
|
|
12376
12385
|
const _hoisted_5$7 = { class: "lupa-toolbar-right" };
|
|
12377
|
-
const _hoisted_6$
|
|
12386
|
+
const _hoisted_6$5 = { key: 1 };
|
|
12378
12387
|
const _hoisted_7$3 = { key: 3 };
|
|
12379
|
-
const _sfc_main$
|
|
12388
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
12380
12389
|
__name: "SearchResultsToolbar",
|
|
12381
12390
|
props: {
|
|
12382
12391
|
options: {},
|
|
@@ -12475,15 +12484,15 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12475
12484
|
id: "lupa-search-results-toolbar",
|
|
12476
12485
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
12477
12486
|
}, [
|
|
12478
|
-
createBaseVNode("div", _hoisted_1$
|
|
12479
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
12480
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
12487
|
+
createBaseVNode("div", _hoisted_1$z, [
|
|
12488
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$H, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$o)),
|
|
12489
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Y, {
|
|
12481
12490
|
key: 2,
|
|
12482
12491
|
label: searchSummaryLabel.value,
|
|
12483
12492
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
12484
12493
|
onClear: handleClearAll
|
|
12485
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
12486
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
12494
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$h)),
|
|
12495
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$F, {
|
|
12487
12496
|
key: 4,
|
|
12488
12497
|
options: paginationOptions.value.pageSelect,
|
|
12489
12498
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
@@ -12491,16 +12500,16 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12491
12500
|
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$b))
|
|
12492
12501
|
]),
|
|
12493
12502
|
createBaseVNode("div", _hoisted_5$7, [
|
|
12494
|
-
createVNode(_sfc_main$
|
|
12503
|
+
createVNode(_sfc_main$G, {
|
|
12495
12504
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
12496
12505
|
"show-filter-count": showMobileFilterCount.value
|
|
12497
12506
|
}, null, 8, ["label", "show-filter-count"]),
|
|
12498
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
12507
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$E, {
|
|
12499
12508
|
key: 0,
|
|
12500
12509
|
options: paginationOptions.value.pageSize,
|
|
12501
12510
|
label: paginationOptions.value.labels.pageSize
|
|
12502
|
-
}, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$
|
|
12503
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
12511
|
+
}, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$5)),
|
|
12512
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$D, {
|
|
12504
12513
|
key: 2,
|
|
12505
12514
|
options: sortOptions.value,
|
|
12506
12515
|
callbacks: callbacks.value
|
|
@@ -12510,14 +12519,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12510
12519
|
};
|
|
12511
12520
|
}
|
|
12512
12521
|
});
|
|
12513
|
-
const _hoisted_1$
|
|
12514
|
-
const _hoisted_2$
|
|
12515
|
-
const _hoisted_3$
|
|
12522
|
+
const _hoisted_1$y = { class: "lupa-badge-title" };
|
|
12523
|
+
const _hoisted_2$n = ["src"];
|
|
12524
|
+
const _hoisted_3$g = { key: 1 };
|
|
12516
12525
|
const _hoisted_4$a = {
|
|
12517
12526
|
key: 0,
|
|
12518
12527
|
class: "lupa-badge-full-text"
|
|
12519
12528
|
};
|
|
12520
|
-
const _sfc_main$
|
|
12529
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
12521
12530
|
__name: "SearchResultGeneratedBadge",
|
|
12522
12531
|
props: {
|
|
12523
12532
|
options: {},
|
|
@@ -12550,20 +12559,20 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
12550
12559
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
12551
12560
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
12552
12561
|
}, [
|
|
12553
|
-
createBaseVNode("span", _hoisted_1$
|
|
12562
|
+
createBaseVNode("span", _hoisted_1$y, [
|
|
12554
12563
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
12555
12564
|
key: 0,
|
|
12556
12565
|
src: image.value
|
|
12557
|
-
}, null, 8, _hoisted_2$
|
|
12558
|
-
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
12566
|
+
}, null, 8, _hoisted_2$n)) : createCommentVNode("", true),
|
|
12567
|
+
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$g, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
12559
12568
|
]),
|
|
12560
12569
|
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$a, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
12561
12570
|
], 6);
|
|
12562
12571
|
};
|
|
12563
12572
|
}
|
|
12564
12573
|
});
|
|
12565
|
-
const _hoisted_1$
|
|
12566
|
-
const _sfc_main$
|
|
12574
|
+
const _hoisted_1$x = { class: "lupa-generated-badges" };
|
|
12575
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
12567
12576
|
__name: "SearchResultGeneratedBadges",
|
|
12568
12577
|
props: {
|
|
12569
12578
|
options: {}
|
|
@@ -12589,9 +12598,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
12589
12598
|
})).filter((b) => Boolean(b.id));
|
|
12590
12599
|
});
|
|
12591
12600
|
return (_ctx, _cache) => {
|
|
12592
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12601
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
12593
12602
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
12594
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12603
|
+
return openBlock(), createBlock(_sfc_main$B, {
|
|
12595
12604
|
key: badge.id,
|
|
12596
12605
|
badge,
|
|
12597
12606
|
options: _ctx.options
|
|
@@ -12601,8 +12610,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
12601
12610
|
};
|
|
12602
12611
|
}
|
|
12603
12612
|
});
|
|
12604
|
-
const _hoisted_1$
|
|
12605
|
-
const _sfc_main$
|
|
12613
|
+
const _hoisted_1$w = ["innerHTML"];
|
|
12614
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
12606
12615
|
__name: "CustomBadge",
|
|
12607
12616
|
props: {
|
|
12608
12617
|
badge: {}
|
|
@@ -12621,12 +12630,12 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
12621
12630
|
return openBlock(), createElementBlock("div", {
|
|
12622
12631
|
class: normalizeClass(className.value),
|
|
12623
12632
|
innerHTML: text.value
|
|
12624
|
-
}, null, 10, _hoisted_1$
|
|
12633
|
+
}, null, 10, _hoisted_1$w);
|
|
12625
12634
|
};
|
|
12626
12635
|
}
|
|
12627
12636
|
});
|
|
12628
|
-
const _hoisted_1$
|
|
12629
|
-
const _sfc_main$
|
|
12637
|
+
const _hoisted_1$v = { class: "lupa-text-badges" };
|
|
12638
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
12630
12639
|
__name: "TextBadge",
|
|
12631
12640
|
props: {
|
|
12632
12641
|
badge: {}
|
|
@@ -12641,7 +12650,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
12641
12650
|
return badges.value.slice(0, props.badge.maxItems);
|
|
12642
12651
|
});
|
|
12643
12652
|
return (_ctx, _cache) => {
|
|
12644
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12653
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
12645
12654
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
12646
12655
|
return openBlock(), createElementBlock("div", {
|
|
12647
12656
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -12652,9 +12661,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
12652
12661
|
};
|
|
12653
12662
|
}
|
|
12654
12663
|
});
|
|
12655
|
-
const _hoisted_1$
|
|
12656
|
-
const _hoisted_2$
|
|
12657
|
-
const _sfc_main$
|
|
12664
|
+
const _hoisted_1$u = { class: "lupa-image-badges" };
|
|
12665
|
+
const _hoisted_2$m = ["src"];
|
|
12666
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
12658
12667
|
__name: "ImageBadge",
|
|
12659
12668
|
props: {
|
|
12660
12669
|
badge: {}
|
|
@@ -12674,7 +12683,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12674
12683
|
return `${props.badge.rootImageUrl}${src}`;
|
|
12675
12684
|
};
|
|
12676
12685
|
return (_ctx, _cache) => {
|
|
12677
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12686
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
12678
12687
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
12679
12688
|
return openBlock(), createElementBlock("div", {
|
|
12680
12689
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -12682,22 +12691,22 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12682
12691
|
}, [
|
|
12683
12692
|
createBaseVNode("img", {
|
|
12684
12693
|
src: getImageUrl(item)
|
|
12685
|
-
}, null, 8, _hoisted_2$
|
|
12694
|
+
}, null, 8, _hoisted_2$m)
|
|
12686
12695
|
]);
|
|
12687
12696
|
}), 128))
|
|
12688
12697
|
]);
|
|
12689
12698
|
};
|
|
12690
12699
|
}
|
|
12691
12700
|
});
|
|
12692
|
-
const _hoisted_1$
|
|
12701
|
+
const _hoisted_1$t = { id: "lupa-search-results-badges" };
|
|
12693
12702
|
const __default__$1 = {
|
|
12694
12703
|
components: {
|
|
12695
|
-
CustomBadge: _sfc_main$
|
|
12696
|
-
TextBadge: _sfc_main$
|
|
12697
|
-
ImageBadge: _sfc_main$
|
|
12704
|
+
CustomBadge: _sfc_main$z,
|
|
12705
|
+
TextBadge: _sfc_main$y,
|
|
12706
|
+
ImageBadge: _sfc_main$x
|
|
12698
12707
|
}
|
|
12699
12708
|
};
|
|
12700
|
-
const _sfc_main$
|
|
12709
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
12701
12710
|
__name: "SearchResultsBadgeWrapper",
|
|
12702
12711
|
props: {
|
|
12703
12712
|
position: {},
|
|
@@ -12743,7 +12752,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
12743
12752
|
}
|
|
12744
12753
|
};
|
|
12745
12754
|
return (_ctx, _cache) => {
|
|
12746
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12755
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
12747
12756
|
createBaseVNode("div", {
|
|
12748
12757
|
id: "lupa-badges",
|
|
12749
12758
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -12754,7 +12763,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
12754
12763
|
badge
|
|
12755
12764
|
}, null, 8, ["badge"]);
|
|
12756
12765
|
}), 128)),
|
|
12757
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
12766
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$A, {
|
|
12758
12767
|
key: 0,
|
|
12759
12768
|
options: _ctx.options
|
|
12760
12769
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -12763,7 +12772,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
12763
12772
|
};
|
|
12764
12773
|
}
|
|
12765
12774
|
}));
|
|
12766
|
-
const _sfc_main$
|
|
12775
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
12767
12776
|
__name: "SearchResultsProductImage",
|
|
12768
12777
|
props: {
|
|
12769
12778
|
item: {},
|
|
@@ -12771,7 +12780,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
12771
12780
|
},
|
|
12772
12781
|
setup(__props) {
|
|
12773
12782
|
return (_ctx, _cache) => {
|
|
12774
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12783
|
+
return openBlock(), createBlock(_sfc_main$1c, {
|
|
12775
12784
|
item: _ctx.item,
|
|
12776
12785
|
options: _ctx.options,
|
|
12777
12786
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -12780,14 +12789,14 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
12780
12789
|
};
|
|
12781
12790
|
}
|
|
12782
12791
|
});
|
|
12783
|
-
const _hoisted_1$
|
|
12784
|
-
const _hoisted_2$
|
|
12785
|
-
const _hoisted_3$
|
|
12792
|
+
const _hoisted_1$s = ["innerHTML"];
|
|
12793
|
+
const _hoisted_2$l = ["title"];
|
|
12794
|
+
const _hoisted_3$f = {
|
|
12786
12795
|
key: 0,
|
|
12787
12796
|
class: "lupa-search-results-product-title-text"
|
|
12788
12797
|
};
|
|
12789
12798
|
const _hoisted_4$9 = ["href"];
|
|
12790
|
-
const _sfc_main$
|
|
12799
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
12791
12800
|
__name: "SearchResultsProductTitle",
|
|
12792
12801
|
props: {
|
|
12793
12802
|
item: {},
|
|
@@ -12820,25 +12829,25 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
12820
12829
|
class: "lupa-search-results-product-title",
|
|
12821
12830
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12822
12831
|
innerHTML: title.value
|
|
12823
|
-
}, null, 12, _hoisted_1$
|
|
12832
|
+
}, null, 12, _hoisted_1$s)) : (openBlock(), createElementBlock("div", {
|
|
12824
12833
|
key: 1,
|
|
12825
12834
|
class: "lupa-search-results-product-title",
|
|
12826
12835
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12827
12836
|
title: title.value
|
|
12828
12837
|
}, [
|
|
12829
|
-
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
12838
|
+
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
12830
12839
|
_ctx.options.link ? (openBlock(), createElementBlock("a", {
|
|
12831
12840
|
key: 1,
|
|
12832
12841
|
href: _ctx.link,
|
|
12833
12842
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
12834
12843
|
onClick: handleNavigation
|
|
12835
12844
|
}, toDisplayString(title.value), 9, _hoisted_4$9)) : createCommentVNode("", true)
|
|
12836
|
-
], 12, _hoisted_2$
|
|
12845
|
+
], 12, _hoisted_2$l));
|
|
12837
12846
|
};
|
|
12838
12847
|
}
|
|
12839
12848
|
});
|
|
12840
|
-
const _hoisted_1$
|
|
12841
|
-
const _sfc_main$
|
|
12849
|
+
const _hoisted_1$r = ["innerHTML"];
|
|
12850
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
12842
12851
|
__name: "SearchResultsProductDescription",
|
|
12843
12852
|
props: {
|
|
12844
12853
|
item: {},
|
|
@@ -12862,7 +12871,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
12862
12871
|
class: "lupa-search-results-product-description",
|
|
12863
12872
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12864
12873
|
innerHTML: description.value
|
|
12865
|
-
}, null, 12, _hoisted_1$
|
|
12874
|
+
}, null, 12, _hoisted_1$r)) : (openBlock(), createElementBlock("div", {
|
|
12866
12875
|
key: 1,
|
|
12867
12876
|
class: "lupa-search-results-product-description",
|
|
12868
12877
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -12870,15 +12879,15 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
12870
12879
|
};
|
|
12871
12880
|
}
|
|
12872
12881
|
});
|
|
12873
|
-
const _hoisted_1$
|
|
12874
|
-
const _hoisted_2$
|
|
12875
|
-
const _hoisted_3$
|
|
12882
|
+
const _hoisted_1$q = { id: "lupa-search-results-rating" };
|
|
12883
|
+
const _hoisted_2$k = { class: "lupa-ratings" };
|
|
12884
|
+
const _hoisted_3$e = { class: "lupa-ratings-base" };
|
|
12876
12885
|
const _hoisted_4$8 = ["innerHTML"];
|
|
12877
12886
|
const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
|
|
12878
|
-
const _hoisted_6$
|
|
12887
|
+
const _hoisted_6$4 = ["innerHTML"];
|
|
12879
12888
|
const _hoisted_7$2 = ["href"];
|
|
12880
12889
|
const STAR_COUNT = 5;
|
|
12881
|
-
const _sfc_main$
|
|
12890
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
12882
12891
|
__name: "SearchResultsProductRating",
|
|
12883
12892
|
props: {
|
|
12884
12893
|
item: {},
|
|
@@ -12909,9 +12918,9 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
12909
12918
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
12910
12919
|
});
|
|
12911
12920
|
return (_ctx, _cache) => {
|
|
12912
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12913
|
-
createBaseVNode("div", _hoisted_2$
|
|
12914
|
-
createBaseVNode("div", _hoisted_3$
|
|
12921
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
12922
|
+
createBaseVNode("div", _hoisted_2$k, [
|
|
12923
|
+
createBaseVNode("div", _hoisted_3$e, [
|
|
12915
12924
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
12916
12925
|
return openBlock(), createElementBlock("div", {
|
|
12917
12926
|
key: index,
|
|
@@ -12930,7 +12939,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
12930
12939
|
key: index,
|
|
12931
12940
|
innerHTML: star,
|
|
12932
12941
|
class: "lupa-rating lupa-rating-highlighted"
|
|
12933
|
-
}, null, 8, _hoisted_6$
|
|
12942
|
+
}, null, 8, _hoisted_6$4);
|
|
12934
12943
|
}), 128))
|
|
12935
12944
|
], 4)
|
|
12936
12945
|
])
|
|
@@ -12943,11 +12952,11 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
12943
12952
|
};
|
|
12944
12953
|
}
|
|
12945
12954
|
});
|
|
12946
|
-
const _hoisted_1$
|
|
12955
|
+
const _hoisted_1$p = {
|
|
12947
12956
|
class: "lupa-search-results-product-regular-price",
|
|
12948
12957
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
12949
12958
|
};
|
|
12950
|
-
const _sfc_main$
|
|
12959
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
12951
12960
|
__name: "SearchResultsProductRegularPrice",
|
|
12952
12961
|
props: {
|
|
12953
12962
|
item: {},
|
|
@@ -12965,15 +12974,15 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
12965
12974
|
);
|
|
12966
12975
|
});
|
|
12967
12976
|
return (_ctx, _cache) => {
|
|
12968
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12977
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, toDisplayString(price.value), 1);
|
|
12969
12978
|
};
|
|
12970
12979
|
}
|
|
12971
12980
|
});
|
|
12972
|
-
const _hoisted_1$
|
|
12981
|
+
const _hoisted_1$o = {
|
|
12973
12982
|
class: "lupa-search-results-product-price",
|
|
12974
12983
|
"data-cy": "lupa-search-results-product-price"
|
|
12975
12984
|
};
|
|
12976
|
-
const _sfc_main$
|
|
12985
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
12977
12986
|
__name: "SearchResultsProductPrice",
|
|
12978
12987
|
props: {
|
|
12979
12988
|
item: {},
|
|
@@ -12991,16 +13000,16 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
12991
13000
|
);
|
|
12992
13001
|
});
|
|
12993
13002
|
return (_ctx, _cache) => {
|
|
12994
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13003
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
12995
13004
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
12996
13005
|
]);
|
|
12997
13006
|
};
|
|
12998
13007
|
}
|
|
12999
13008
|
});
|
|
13000
|
-
const _hoisted_1$
|
|
13001
|
-
const _hoisted_2$
|
|
13002
|
-
const _hoisted_3$
|
|
13003
|
-
const _sfc_main$
|
|
13009
|
+
const _hoisted_1$n = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
13010
|
+
const _hoisted_2$j = { class: "lupa-search-results-product-addtocart" };
|
|
13011
|
+
const _hoisted_3$d = ["onClick", "disabled"];
|
|
13012
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
13004
13013
|
__name: "SearchResultsProductAddToCart",
|
|
13005
13014
|
props: {
|
|
13006
13015
|
item: {},
|
|
@@ -13027,25 +13036,25 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
13027
13036
|
loading.value = false;
|
|
13028
13037
|
});
|
|
13029
13038
|
return (_ctx, _cache) => {
|
|
13030
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13031
|
-
createBaseVNode("div", _hoisted_2$
|
|
13039
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
13040
|
+
createBaseVNode("div", _hoisted_2$j, [
|
|
13032
13041
|
createBaseVNode("button", {
|
|
13033
13042
|
onClick: withModifiers(handleClick, ["stop"]),
|
|
13034
13043
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
13035
13044
|
"data-cy": "lupa-add-to-cart",
|
|
13036
13045
|
disabled: !inStockValue.value || loading.value
|
|
13037
|
-
}, toDisplayString(label.value), 11, _hoisted_3$
|
|
13046
|
+
}, toDisplayString(label.value), 11, _hoisted_3$d)
|
|
13038
13047
|
])
|
|
13039
13048
|
]);
|
|
13040
13049
|
};
|
|
13041
13050
|
}
|
|
13042
13051
|
});
|
|
13043
|
-
const _hoisted_1$
|
|
13044
|
-
const _hoisted_2$
|
|
13045
|
-
const _hoisted_3$
|
|
13052
|
+
const _hoisted_1$m = ["innerHTML"];
|
|
13053
|
+
const _hoisted_2$i = { key: 0 };
|
|
13054
|
+
const _hoisted_3$c = { key: 1 };
|
|
13046
13055
|
const _hoisted_4$7 = { class: "lupa-search-box-custom-label" };
|
|
13047
13056
|
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
13048
|
-
const _sfc_main$
|
|
13057
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
13049
13058
|
__name: "SearchResultsProductCustom",
|
|
13050
13059
|
props: {
|
|
13051
13060
|
item: {},
|
|
@@ -13083,11 +13092,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
13083
13092
|
key: 0,
|
|
13084
13093
|
class: className.value,
|
|
13085
13094
|
innerHTML: text.value
|
|
13086
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
13095
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$m)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
13087
13096
|
key: 1,
|
|
13088
13097
|
class: className.value
|
|
13089
13098
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
13090
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13099
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$c, [
|
|
13091
13100
|
createBaseVNode("div", _hoisted_4$7, toDisplayString(label.value), 1),
|
|
13092
13101
|
createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
|
|
13093
13102
|
]))
|
|
@@ -13095,8 +13104,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
13095
13104
|
};
|
|
13096
13105
|
}
|
|
13097
13106
|
});
|
|
13098
|
-
const _hoisted_1$
|
|
13099
|
-
const _sfc_main$
|
|
13107
|
+
const _hoisted_1$l = ["innerHTML"];
|
|
13108
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
13100
13109
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
13101
13110
|
props: {
|
|
13102
13111
|
item: {},
|
|
@@ -13120,15 +13129,15 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
13120
13129
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
13121
13130
|
class: className.value,
|
|
13122
13131
|
innerHTML: text.value
|
|
13123
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
13132
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$l);
|
|
13124
13133
|
};
|
|
13125
13134
|
}
|
|
13126
13135
|
});
|
|
13127
|
-
const _hoisted_1$
|
|
13128
|
-
const _hoisted_2$
|
|
13129
|
-
const _hoisted_3$
|
|
13136
|
+
const _hoisted_1$k = { id: "lupa-search-results-rating" };
|
|
13137
|
+
const _hoisted_2$h = ["innerHTML"];
|
|
13138
|
+
const _hoisted_3$b = { class: "lupa-ratings" };
|
|
13130
13139
|
const _hoisted_4$6 = ["href"];
|
|
13131
|
-
const _sfc_main$
|
|
13140
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
13132
13141
|
__name: "SearchResultsProductSingleStarRating",
|
|
13133
13142
|
props: {
|
|
13134
13143
|
item: {},
|
|
@@ -13156,12 +13165,12 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
13156
13165
|
return RATING_STAR_HTML;
|
|
13157
13166
|
});
|
|
13158
13167
|
return (_ctx, _cache) => {
|
|
13159
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13168
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
13160
13169
|
createBaseVNode("div", {
|
|
13161
13170
|
innerHTML: star.value,
|
|
13162
13171
|
class: "lupa-rating lupa-rating-highlighted"
|
|
13163
|
-
}, null, 8, _hoisted_2$
|
|
13164
|
-
createBaseVNode("div", _hoisted_3$
|
|
13172
|
+
}, null, 8, _hoisted_2$h),
|
|
13173
|
+
createBaseVNode("div", _hoisted_3$b, toDisplayString(rating.value), 1),
|
|
13165
13174
|
createBaseVNode("a", {
|
|
13166
13175
|
href: ratingLink.value,
|
|
13167
13176
|
class: "lupa-total-ratings"
|
|
@@ -13172,19 +13181,19 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
13172
13181
|
});
|
|
13173
13182
|
const __default__ = {
|
|
13174
13183
|
components: {
|
|
13175
|
-
SearchResultsProductImage: _sfc_main$
|
|
13176
|
-
SearchResultsProductTitle: _sfc_main$
|
|
13177
|
-
SearchResultsProductDescription: _sfc_main$
|
|
13178
|
-
SearchResultsProductRating: _sfc_main$
|
|
13179
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
13180
|
-
SearchResultsProductPrice: _sfc_main$
|
|
13181
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
13182
|
-
SearchResultsProductCustom: _sfc_main$
|
|
13183
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
13184
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
13185
|
-
}
|
|
13186
|
-
};
|
|
13187
|
-
const _sfc_main$
|
|
13184
|
+
SearchResultsProductImage: _sfc_main$v,
|
|
13185
|
+
SearchResultsProductTitle: _sfc_main$u,
|
|
13186
|
+
SearchResultsProductDescription: _sfc_main$t,
|
|
13187
|
+
SearchResultsProductRating: _sfc_main$s,
|
|
13188
|
+
SearchResultsProductRegularPrice: _sfc_main$r,
|
|
13189
|
+
SearchResultsProductPrice: _sfc_main$q,
|
|
13190
|
+
SearchResultsProductAddToCart: _sfc_main$p,
|
|
13191
|
+
SearchResultsProductCustom: _sfc_main$o,
|
|
13192
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$n,
|
|
13193
|
+
SearchResultsProductSingleStarRating: _sfc_main$m
|
|
13194
|
+
}
|
|
13195
|
+
};
|
|
13196
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
13188
13197
|
__name: "SearchResultsProductCardElement",
|
|
13189
13198
|
props: {
|
|
13190
13199
|
item: {},
|
|
@@ -13254,13 +13263,13 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
13254
13263
|
};
|
|
13255
13264
|
}
|
|
13256
13265
|
}));
|
|
13257
|
-
const _hoisted_1$
|
|
13258
|
-
const _hoisted_2$
|
|
13266
|
+
const _hoisted_1$j = ["href"];
|
|
13267
|
+
const _hoisted_2$g = {
|
|
13259
13268
|
key: 0,
|
|
13260
13269
|
class: "lupa-out-of-stock"
|
|
13261
13270
|
};
|
|
13262
|
-
const _hoisted_3$
|
|
13263
|
-
const _sfc_main$
|
|
13271
|
+
const _hoisted_3$a = { class: "lupa-search-result-product-details-section" };
|
|
13272
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
13264
13273
|
__name: "SearchResultsProductCard",
|
|
13265
13274
|
props: {
|
|
13266
13275
|
product: {},
|
|
@@ -13405,7 +13414,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13405
13414
|
class: normalizeClass(["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]),
|
|
13406
13415
|
onClick: handleClick
|
|
13407
13416
|
}, [
|
|
13408
|
-
createVNode(_sfc_main$
|
|
13417
|
+
createVNode(_sfc_main$w, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
13409
13418
|
createBaseVNode("div", {
|
|
13410
13419
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
13411
13420
|
}, [
|
|
@@ -13415,7 +13424,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13415
13424
|
onClick: handleNavigation
|
|
13416
13425
|
}, [
|
|
13417
13426
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
13418
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13427
|
+
return openBlock(), createBlock(_sfc_main$l, {
|
|
13419
13428
|
class: "lupa-search-results-product-element",
|
|
13420
13429
|
item: _ctx.product,
|
|
13421
13430
|
element,
|
|
@@ -13425,16 +13434,16 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13425
13434
|
link: link.value
|
|
13426
13435
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
13427
13436
|
}), 128)),
|
|
13428
|
-
createVNode(_sfc_main$
|
|
13437
|
+
createVNode(_sfc_main$w, {
|
|
13429
13438
|
options: badgesOptions.value,
|
|
13430
13439
|
position: "image",
|
|
13431
13440
|
class: "lupa-image-badges"
|
|
13432
13441
|
}, null, 8, ["options"]),
|
|
13433
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13434
|
-
], 8, _hoisted_1$
|
|
13435
|
-
createBaseVNode("div", _hoisted_3$
|
|
13442
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
13443
|
+
], 8, _hoisted_1$j),
|
|
13444
|
+
createBaseVNode("div", _hoisted_3$a, [
|
|
13436
13445
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
13437
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13446
|
+
return openBlock(), createBlock(_sfc_main$l, {
|
|
13438
13447
|
class: "lupa-search-results-product-element",
|
|
13439
13448
|
item: _ctx.product,
|
|
13440
13449
|
element,
|
|
@@ -13452,7 +13461,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13452
13461
|
class: normalizeClass("lupa-element-group-" + group)
|
|
13453
13462
|
}, [
|
|
13454
13463
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
13455
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13464
|
+
return openBlock(), createBlock(_sfc_main$l, {
|
|
13456
13465
|
class: "lupa-search-results-product-element",
|
|
13457
13466
|
item: _ctx.product,
|
|
13458
13467
|
element,
|
|
@@ -13470,23 +13479,23 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13470
13479
|
};
|
|
13471
13480
|
}
|
|
13472
13481
|
});
|
|
13473
|
-
const _hoisted_1$
|
|
13482
|
+
const _hoisted_1$i = {
|
|
13474
13483
|
id: "lupa-search-results-similar-queries",
|
|
13475
13484
|
"data-cy": "lupa-search-results-similar-queries"
|
|
13476
13485
|
};
|
|
13477
|
-
const _hoisted_2$
|
|
13478
|
-
const _hoisted_3$
|
|
13486
|
+
const _hoisted_2$f = { class: "lupa-similar-queries-label" };
|
|
13487
|
+
const _hoisted_3$9 = {
|
|
13479
13488
|
class: "lupa-similar-query-label",
|
|
13480
13489
|
"data-cy": "lupa-similar-query-label"
|
|
13481
13490
|
};
|
|
13482
13491
|
const _hoisted_4$5 = ["onClick"];
|
|
13483
13492
|
const _hoisted_5$4 = ["innerHTML"];
|
|
13484
|
-
const _hoisted_6$
|
|
13493
|
+
const _hoisted_6$3 = { key: 0 };
|
|
13485
13494
|
const _hoisted_7$1 = {
|
|
13486
13495
|
class: "lupa-products",
|
|
13487
13496
|
"data-cy": "lupa-products"
|
|
13488
13497
|
};
|
|
13489
|
-
const _sfc_main$
|
|
13498
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
13490
13499
|
__name: "SearchResultsSimilarQueries",
|
|
13491
13500
|
props: {
|
|
13492
13501
|
labels: {},
|
|
@@ -13516,11 +13525,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13516
13525
|
paramsStore.goToResults({ searchText, facet });
|
|
13517
13526
|
};
|
|
13518
13527
|
return (_ctx, _cache) => {
|
|
13519
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13520
|
-
createBaseVNode("div", _hoisted_2$
|
|
13528
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
13529
|
+
createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
13521
13530
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
13522
13531
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
13523
|
-
createBaseVNode("div", _hoisted_3$
|
|
13532
|
+
createBaseVNode("div", _hoisted_3$9, [
|
|
13524
13533
|
createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
|
|
13525
13534
|
createBaseVNode("span", {
|
|
13526
13535
|
id: "lupa-similar-query-text-component",
|
|
@@ -13531,12 +13540,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13531
13540
|
createBaseVNode("span", {
|
|
13532
13541
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
13533
13542
|
}, null, 8, _hoisted_5$4),
|
|
13534
|
-
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
13543
|
+
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$3, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
13535
13544
|
], 8, _hoisted_4$5)
|
|
13536
13545
|
]),
|
|
13537
13546
|
createBaseVNode("div", _hoisted_7$1, [
|
|
13538
13547
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
13539
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13548
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13540
13549
|
style: normalizeStyle(_ctx.columnSize),
|
|
13541
13550
|
key: getDocumentKey(index2, product),
|
|
13542
13551
|
product,
|
|
@@ -13550,15 +13559,15 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13550
13559
|
};
|
|
13551
13560
|
}
|
|
13552
13561
|
});
|
|
13553
|
-
const _hoisted_1$
|
|
13562
|
+
const _hoisted_1$h = {
|
|
13554
13563
|
key: 0,
|
|
13555
13564
|
class: "lupa-results-additional-panel"
|
|
13556
13565
|
};
|
|
13557
|
-
const _hoisted_2$
|
|
13566
|
+
const _hoisted_2$e = {
|
|
13558
13567
|
class: "lupa-results-additional-panel-items",
|
|
13559
13568
|
"data-cy": "lupa-results-additional-panel-items"
|
|
13560
13569
|
};
|
|
13561
|
-
const _sfc_main$
|
|
13570
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
13562
13571
|
__name: "AdditionalPanel",
|
|
13563
13572
|
props: {
|
|
13564
13573
|
panel: {},
|
|
@@ -13630,10 +13639,10 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
13630
13639
|
handleQueryChange();
|
|
13631
13640
|
});
|
|
13632
13641
|
return (_ctx, _cache) => {
|
|
13633
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13634
|
-
createBaseVNode("div", _hoisted_2$
|
|
13642
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
13643
|
+
createBaseVNode("div", _hoisted_2$e, [
|
|
13635
13644
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
13636
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13645
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13637
13646
|
key: index,
|
|
13638
13647
|
product: item,
|
|
13639
13648
|
options: _ctx.panel,
|
|
@@ -13651,11 +13660,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
13651
13660
|
};
|
|
13652
13661
|
}
|
|
13653
13662
|
});
|
|
13654
|
-
const _hoisted_1$
|
|
13663
|
+
const _hoisted_1$g = {
|
|
13655
13664
|
key: 0,
|
|
13656
13665
|
class: "lupa-results-additional-panels"
|
|
13657
13666
|
};
|
|
13658
|
-
const _sfc_main$
|
|
13667
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
13659
13668
|
__name: "AdditionalPanels",
|
|
13660
13669
|
props: {
|
|
13661
13670
|
options: {},
|
|
@@ -13672,9 +13681,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
13672
13681
|
return locationPanels.value.length > 0;
|
|
13673
13682
|
});
|
|
13674
13683
|
return (_ctx, _cache) => {
|
|
13675
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13684
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
13676
13685
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
13677
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13686
|
+
return openBlock(), createBlock(_sfc_main$i, {
|
|
13678
13687
|
key: panel.queryKey,
|
|
13679
13688
|
panel,
|
|
13680
13689
|
options: _ctx.sdkOptions
|
|
@@ -13691,19 +13700,60 @@ const _export_sfc = (sfc, props) => {
|
|
|
13691
13700
|
}
|
|
13692
13701
|
return target;
|
|
13693
13702
|
};
|
|
13694
|
-
const _sfc_main$
|
|
13695
|
-
const _hoisted_1$
|
|
13696
|
-
const _hoisted_2$
|
|
13703
|
+
const _sfc_main$g = {};
|
|
13704
|
+
const _hoisted_1$f = { class: "lupa-spinner-wrapper" };
|
|
13705
|
+
const _hoisted_2$d = { class: "lupa-spinner" };
|
|
13697
13706
|
function _sfc_render(_ctx, _cache) {
|
|
13698
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13699
|
-
createBaseVNode("div", _hoisted_2$
|
|
13707
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
13708
|
+
createBaseVNode("div", _hoisted_2$d, [
|
|
13700
13709
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
|
|
13701
13710
|
return createBaseVNode("div", { key: x });
|
|
13702
13711
|
}), 64))
|
|
13703
13712
|
])
|
|
13704
13713
|
]);
|
|
13705
13714
|
}
|
|
13706
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13715
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render]]);
|
|
13716
|
+
const _hoisted_1$e = {
|
|
13717
|
+
id: "lupa-search-results-similar-results",
|
|
13718
|
+
"data-cy": "lupa-search-results-similar-results"
|
|
13719
|
+
};
|
|
13720
|
+
const _hoisted_2$c = { class: "lupa-similar-results-label" };
|
|
13721
|
+
const _hoisted_3$8 = {
|
|
13722
|
+
class: "lupa-products",
|
|
13723
|
+
"data-cy": "lupa-products"
|
|
13724
|
+
};
|
|
13725
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
13726
|
+
__name: "SearchResultsSimilarResults",
|
|
13727
|
+
props: {
|
|
13728
|
+
columnSize: {},
|
|
13729
|
+
labels: {},
|
|
13730
|
+
productCardOptions: {}
|
|
13731
|
+
},
|
|
13732
|
+
setup(__props) {
|
|
13733
|
+
const props = __props;
|
|
13734
|
+
const searchResultStore = useSearchResultStore();
|
|
13735
|
+
const { searchResult } = storeToRefs(searchResultStore);
|
|
13736
|
+
const similarResults = computed(() => searchResult.value.similarResults);
|
|
13737
|
+
const getDocumentKey = (index, product) => {
|
|
13738
|
+
return getProductKey(`${index}`, product, props.productCardOptions.idKey);
|
|
13739
|
+
};
|
|
13740
|
+
return (_ctx, _cache) => {
|
|
13741
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
13742
|
+
createBaseVNode("div", _hoisted_2$c, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
13743
|
+
createBaseVNode("div", _hoisted_3$8, [
|
|
13744
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
13745
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13746
|
+
style: normalizeStyle(_ctx.columnSize),
|
|
13747
|
+
key: getDocumentKey(index, product),
|
|
13748
|
+
product,
|
|
13749
|
+
options: _ctx.productCardOptions
|
|
13750
|
+
}, null, 8, ["style", "product", "options"]);
|
|
13751
|
+
}), 128))
|
|
13752
|
+
])
|
|
13753
|
+
]);
|
|
13754
|
+
};
|
|
13755
|
+
}
|
|
13756
|
+
});
|
|
13707
13757
|
const _hoisted_1$d = { id: "lupa-search-results-products" };
|
|
13708
13758
|
const _hoisted_2$b = {
|
|
13709
13759
|
class: "lupa-products",
|
|
@@ -13720,6 +13770,7 @@ const _hoisted_4$4 = {
|
|
|
13720
13770
|
"data-cy": "lupa-no-results"
|
|
13721
13771
|
};
|
|
13722
13772
|
const _hoisted_5$3 = { key: 4 };
|
|
13773
|
+
const _hoisted_6$2 = { key: 5 };
|
|
13723
13774
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
13724
13775
|
__name: "SearchResultsProducts",
|
|
13725
13776
|
props: {
|
|
@@ -13757,6 +13808,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
13757
13808
|
const similarQueriesLabels = computed(() => {
|
|
13758
13809
|
return props.options.labels;
|
|
13759
13810
|
});
|
|
13811
|
+
const similarResultsLabels = computed(() => {
|
|
13812
|
+
return props.options.labels;
|
|
13813
|
+
});
|
|
13760
13814
|
const showTopFilters = computed(() => {
|
|
13761
13815
|
var _a, _b, _c;
|
|
13762
13816
|
return ((_c = (_b = (_a = props.options.filters) == null ? void 0 : _a.facets) == null ? void 0 : _b.style) == null ? void 0 : _c.type) === "top-dropdown";
|
|
@@ -13799,7 +13853,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
13799
13853
|
});
|
|
13800
13854
|
const hasSimilarQueries = computed(() => {
|
|
13801
13855
|
var _a;
|
|
13802
|
-
return (_a = searchResult.value.similarQueries) == null ? void 0 : _a.length;
|
|
13856
|
+
return Boolean((_a = searchResult.value.similarQueries) == null ? void 0 : _a.length);
|
|
13857
|
+
});
|
|
13858
|
+
const hasSimilarResults = computed(() => {
|
|
13859
|
+
var _a, _b;
|
|
13860
|
+
return Boolean((_b = (_a = searchResult.value.similarResults) == null ? void 0 : _a.items) == null ? void 0 : _b.length);
|
|
13803
13861
|
});
|
|
13804
13862
|
const getProductKeyAction = (index, product) => {
|
|
13805
13863
|
return getProductKey(`${index}`, product, props.options.idKey);
|
|
@@ -13817,17 +13875,17 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
13817
13875
|
class: "lupa-loader"
|
|
13818
13876
|
})) : createCommentVNode("", true),
|
|
13819
13877
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
13820
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13878
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$I, {
|
|
13821
13879
|
key: 0,
|
|
13822
13880
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
13823
13881
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13824
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13882
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$C, {
|
|
13825
13883
|
key: 1,
|
|
13826
13884
|
class: "lupa-toolbar-mobile",
|
|
13827
13885
|
options: _ctx.options,
|
|
13828
13886
|
"pagination-location": "top"
|
|
13829
13887
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13830
|
-
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
13888
|
+
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$V, {
|
|
13831
13889
|
key: 2,
|
|
13832
13890
|
class: normalizeClass(currentFiltersClass.value),
|
|
13833
13891
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -13835,13 +13893,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
13835
13893
|
expandable: !desktopFiltersExpanded.value
|
|
13836
13894
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
13837
13895
|
], 64)) : createCommentVNode("", true),
|
|
13838
|
-
createVNode(_sfc_main$
|
|
13896
|
+
createVNode(_sfc_main$h, {
|
|
13839
13897
|
options: _ctx.options,
|
|
13840
13898
|
location: "top",
|
|
13841
13899
|
sdkOptions: _ctx.options.options
|
|
13842
13900
|
}, null, 8, ["options", "sdkOptions"]),
|
|
13843
13901
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
13844
|
-
createVNode(_sfc_main$
|
|
13902
|
+
createVNode(_sfc_main$C, {
|
|
13845
13903
|
class: "lupa-toolbar-top",
|
|
13846
13904
|
options: _ctx.options,
|
|
13847
13905
|
"pagination-location": "top"
|
|
@@ -13855,7 +13913,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
13855
13913
|
options: productCardOptions.value
|
|
13856
13914
|
});
|
|
13857
13915
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
13858
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13916
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13859
13917
|
style: normalizeStyle(columnSize.value),
|
|
13860
13918
|
key: getProductKeyAction(index, product),
|
|
13861
13919
|
product,
|
|
@@ -13871,12 +13929,12 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
13871
13929
|
onClick: goToFirstPage
|
|
13872
13930
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
13873
13931
|
])) : createCommentVNode("", true),
|
|
13874
|
-
createVNode(_sfc_main$
|
|
13932
|
+
createVNode(_sfc_main$C, {
|
|
13875
13933
|
class: "lupa-toolbar-bottom",
|
|
13876
13934
|
options: _ctx.options,
|
|
13877
13935
|
"pagination-location": "bottom"
|
|
13878
13936
|
}, null, 8, ["options"]),
|
|
13879
|
-
createVNode(_sfc_main$
|
|
13937
|
+
createVNode(_sfc_main$h, {
|
|
13880
13938
|
options: _ctx.options,
|
|
13881
13939
|
location: "bottom",
|
|
13882
13940
|
sdkOptions: _ctx.options.options
|
|
@@ -13886,12 +13944,19 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
13886
13944
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
13887
13945
|
])) : createCommentVNode("", true),
|
|
13888
13946
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
13889
|
-
createVNode(_sfc_main$
|
|
13947
|
+
createVNode(_sfc_main$j, {
|
|
13890
13948
|
labels: similarQueriesLabels.value,
|
|
13891
13949
|
columnSize: columnSize.value,
|
|
13892
13950
|
productCardOptions: productCardOptions.value
|
|
13893
13951
|
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
13894
13952
|
])) : createCommentVNode("", true),
|
|
13953
|
+
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
13954
|
+
createVNode(_sfc_main$f, {
|
|
13955
|
+
labels: similarResultsLabels.value,
|
|
13956
|
+
columnSize: columnSize.value,
|
|
13957
|
+
productCardOptions: productCardOptions.value
|
|
13958
|
+
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
13959
|
+
])) : createCommentVNode("", true),
|
|
13895
13960
|
renderSlot(_ctx.$slots, "append")
|
|
13896
13961
|
]);
|
|
13897
13962
|
};
|
|
@@ -13943,7 +14008,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13943
14008
|
onClick: handleNavigationBack
|
|
13944
14009
|
}, toDisplayString(backTitle.value), 9, _hoisted_3$6)
|
|
13945
14010
|
])) : createCommentVNode("", true),
|
|
13946
|
-
createVNode(_sfc_main$
|
|
14011
|
+
createVNode(_sfc_main$C, {
|
|
13947
14012
|
class: "lupa-toolbar-mobile",
|
|
13948
14013
|
"pagination-location": "top",
|
|
13949
14014
|
options: _ctx.options
|
|
@@ -14161,8 +14226,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
14161
14226
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
14162
14227
|
}, [
|
|
14163
14228
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
14164
|
-
createVNode(_sfc_main$
|
|
14165
|
-
createVNode(_sfc_main$
|
|
14229
|
+
createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14230
|
+
createVNode(_sfc_main$X, {
|
|
14166
14231
|
"show-summary": true,
|
|
14167
14232
|
options: _ctx.options,
|
|
14168
14233
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
@@ -14172,24 +14237,24 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
14172
14237
|
key: 1,
|
|
14173
14238
|
options: _ctx.options
|
|
14174
14239
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14175
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
14240
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$K, {
|
|
14176
14241
|
key: 2,
|
|
14177
14242
|
options: _ctx.options.filters
|
|
14178
14243
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14179
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
14244
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$J, {
|
|
14180
14245
|
key: 3,
|
|
14181
14246
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
14182
14247
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
14183
14248
|
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
14184
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14249
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
14185
14250
|
key: 0,
|
|
14186
14251
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
14187
14252
|
ref_key: "searchResultsFilters",
|
|
14188
14253
|
ref: searchResultsFilters
|
|
14189
14254
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14190
14255
|
createBaseVNode("div", _hoisted_3$5, [
|
|
14191
|
-
createVNode(_sfc_main$
|
|
14192
|
-
createVNode(_sfc_main$
|
|
14256
|
+
createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14257
|
+
createVNode(_sfc_main$X, {
|
|
14193
14258
|
options: _ctx.options,
|
|
14194
14259
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
14195
14260
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -14204,13 +14269,13 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
14204
14269
|
}, 8, ["options", "ssr"])
|
|
14205
14270
|
])
|
|
14206
14271
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
14207
|
-
createVNode(_sfc_main$
|
|
14208
|
-
createVNode(_sfc_main$
|
|
14272
|
+
createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14273
|
+
createVNode(_sfc_main$X, {
|
|
14209
14274
|
options: _ctx.options,
|
|
14210
14275
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
14211
14276
|
}, null, 8, ["options", "is-product-list"]),
|
|
14212
14277
|
createBaseVNode("div", _hoisted_4$3, [
|
|
14213
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14278
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
14214
14279
|
key: 0,
|
|
14215
14280
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
14216
14281
|
ref_key: "searchResultsFilters",
|
|
@@ -19838,7 +19903,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
19838
19903
|
onClick: withModifiers(innerClick, ["stop"])
|
|
19839
19904
|
}, [
|
|
19840
19905
|
createBaseVNode("div", _hoisted_2$7, [
|
|
19841
|
-
createVNode(_sfc_main$
|
|
19906
|
+
createVNode(_sfc_main$_, {
|
|
19842
19907
|
options: fullSearchBoxOptions.value,
|
|
19843
19908
|
"is-search-container": true,
|
|
19844
19909
|
ref_key: "searchBox",
|
|
@@ -20659,7 +20724,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
20659
20724
|
key: getProductKeyAction(index, product)
|
|
20660
20725
|
}, {
|
|
20661
20726
|
default: withCtx(() => [
|
|
20662
|
-
createVNode(_sfc_main$
|
|
20727
|
+
createVNode(_sfc_main$k, {
|
|
20663
20728
|
product,
|
|
20664
20729
|
options: _ctx.options,
|
|
20665
20730
|
"click-tracking-settings": clickTrackingSettings.value
|
|
@@ -20923,7 +20988,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
20923
20988
|
return (_ctx, _cache) => {
|
|
20924
20989
|
return openBlock(), createElementBlock("section", _hoisted_1$5, [
|
|
20925
20990
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
20926
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20991
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
20927
20992
|
class: "lupa-chat-product-card",
|
|
20928
20993
|
key: getProductKeyAction(index, product),
|
|
20929
20994
|
product,
|
|
@@ -21239,7 +21304,7 @@ const _hoisted_4 = {
|
|
|
21239
21304
|
class: "lupa-chat-spinner-main"
|
|
21240
21305
|
};
|
|
21241
21306
|
const _hoisted_5 = { class: "lupasearch-chat-input" };
|
|
21242
|
-
const _sfc_main$
|
|
21307
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
21243
21308
|
__name: "ChatContainer",
|
|
21244
21309
|
props: {
|
|
21245
21310
|
options: {}
|
|
@@ -26880,7 +26945,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
26880
26945
|
};
|
|
26881
26946
|
__expose({ fetch: fetch2 });
|
|
26882
26947
|
return (_ctx, _cache) => {
|
|
26883
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26948
|
+
return openBlock(), createBlock(unref(_sfc_main$_), {
|
|
26884
26949
|
options: fullSearchBoxOptions.value,
|
|
26885
26950
|
ref_key: "searchBox",
|
|
26886
26951
|
ref: searchBox2
|
|
@@ -27355,7 +27420,7 @@ const chat = (options, mountOptions) => {
|
|
|
27355
27420
|
}
|
|
27356
27421
|
return;
|
|
27357
27422
|
}
|
|
27358
|
-
const instance = createVue(options.displayOptions.containerSelector, _sfc_main$
|
|
27423
|
+
const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1l, {
|
|
27359
27424
|
options
|
|
27360
27425
|
});
|
|
27361
27426
|
if (!instance) {
|