@getlupa/client 1.1.4 → 1.1.6
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 +371 -321
- package/dist/lupaSearch.js +371 -321
- package/dist/lupaSearch.mjs +371 -321
- package/dist/lupaSearch.umd.js +371 -321
- package/package.json +2 -2
package/dist/lupaSearch.mjs
CHANGED
|
@@ -7640,16 +7640,16 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
7640
7640
|
resetHighlightIndex
|
|
7641
7641
|
};
|
|
7642
7642
|
});
|
|
7643
|
-
const _hoisted_1$
|
|
7644
|
-
const _hoisted_2$
|
|
7645
|
-
const _hoisted_3$
|
|
7646
|
-
const _hoisted_4$
|
|
7643
|
+
const _hoisted_1$13 = { id: "lupa-search-box-input-container" };
|
|
7644
|
+
const _hoisted_2$J = { class: "lupa-input-clear" };
|
|
7645
|
+
const _hoisted_3$v = { id: "lupa-search-box-input" };
|
|
7646
|
+
const _hoisted_4$o = ["value"];
|
|
7647
7647
|
const _hoisted_5$c = ["placeholder"];
|
|
7648
7648
|
const _hoisted_6$6 = {
|
|
7649
7649
|
key: 0,
|
|
7650
7650
|
class: "lupa-close-label"
|
|
7651
7651
|
};
|
|
7652
|
-
const _sfc_main$
|
|
7652
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
7653
7653
|
__name: "SearchBoxInput",
|
|
7654
7654
|
props: {
|
|
7655
7655
|
options: {},
|
|
@@ -7726,19 +7726,19 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
7726
7726
|
};
|
|
7727
7727
|
__expose({ focus });
|
|
7728
7728
|
return (_ctx, _cache) => {
|
|
7729
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7730
|
-
createBaseVNode("div", _hoisted_2$
|
|
7729
|
+
return openBlock(), createElementBlock("div", _hoisted_1$13, [
|
|
7730
|
+
createBaseVNode("div", _hoisted_2$J, [
|
|
7731
7731
|
createBaseVNode("div", {
|
|
7732
7732
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
7733
7733
|
onClick: clear2
|
|
7734
7734
|
}, null, 2)
|
|
7735
7735
|
]),
|
|
7736
|
-
createBaseVNode("div", _hoisted_3$
|
|
7736
|
+
createBaseVNode("div", _hoisted_3$v, [
|
|
7737
7737
|
createBaseVNode("input", {
|
|
7738
7738
|
class: "lupa-hint",
|
|
7739
7739
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
7740
7740
|
disabled: ""
|
|
7741
|
-
}, null, 8, _hoisted_4$
|
|
7741
|
+
}, null, 8, _hoisted_4$o),
|
|
7742
7742
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
7743
7743
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
7744
7744
|
}, inputAttributes.value, {
|
|
@@ -7766,7 +7766,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
7766
7766
|
};
|
|
7767
7767
|
}
|
|
7768
7768
|
});
|
|
7769
|
-
const _sfc_main$
|
|
7769
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
7770
7770
|
__name: "SearchBoxMoreResults",
|
|
7771
7771
|
props: {
|
|
7772
7772
|
labels: {},
|
|
@@ -7798,9 +7798,9 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
7798
7798
|
};
|
|
7799
7799
|
}
|
|
7800
7800
|
});
|
|
7801
|
-
const _hoisted_1$
|
|
7802
|
-
const _hoisted_2$
|
|
7803
|
-
const _sfc_main$
|
|
7801
|
+
const _hoisted_1$12 = { class: "lupa-search-box-history-item" };
|
|
7802
|
+
const _hoisted_2$I = { class: "lupa-search-box-history-item-content" };
|
|
7803
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
7804
7804
|
__name: "SearchBoxHistoryItem",
|
|
7805
7805
|
props: {
|
|
7806
7806
|
item: {},
|
|
@@ -7816,8 +7816,8 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
7816
7816
|
emit2("click", { query: props.item });
|
|
7817
7817
|
};
|
|
7818
7818
|
return (_ctx, _cache) => {
|
|
7819
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7820
|
-
createBaseVNode("div", _hoisted_2$
|
|
7819
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
7820
|
+
createBaseVNode("div", _hoisted_2$I, [
|
|
7821
7821
|
createBaseVNode("div", {
|
|
7822
7822
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
7823
7823
|
onClick: click2
|
|
@@ -7831,11 +7831,11 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
7831
7831
|
};
|
|
7832
7832
|
}
|
|
7833
7833
|
});
|
|
7834
|
-
const _hoisted_1$
|
|
7834
|
+
const _hoisted_1$11 = {
|
|
7835
7835
|
key: 0,
|
|
7836
7836
|
class: "lupa-search-box-history-panel"
|
|
7837
7837
|
};
|
|
7838
|
-
const _sfc_main$
|
|
7838
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
7839
7839
|
__name: "SearchBoxHistoryPanel",
|
|
7840
7840
|
props: {
|
|
7841
7841
|
options: {}
|
|
@@ -7876,9 +7876,9 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
7876
7876
|
}
|
|
7877
7877
|
};
|
|
7878
7878
|
return (_ctx, _cache) => {
|
|
7879
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7879
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
7880
7880
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
7881
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7881
|
+
return openBlock(), createBlock(_sfc_main$19, {
|
|
7882
7882
|
key: item,
|
|
7883
7883
|
item,
|
|
7884
7884
|
highlighted: index === highlightIndex.value,
|
|
@@ -7894,18 +7894,18 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
7894
7894
|
};
|
|
7895
7895
|
}
|
|
7896
7896
|
});
|
|
7897
|
-
const _hoisted_1
|
|
7898
|
-
const _hoisted_2$
|
|
7897
|
+
const _hoisted_1$10 = ["innerHTML"];
|
|
7898
|
+
const _hoisted_2$H = {
|
|
7899
7899
|
key: 1,
|
|
7900
7900
|
"data-cy": "lupa-suggestion-value",
|
|
7901
7901
|
class: "lupa-suggestion-value"
|
|
7902
7902
|
};
|
|
7903
|
-
const _hoisted_3$
|
|
7903
|
+
const _hoisted_3$u = {
|
|
7904
7904
|
key: 2,
|
|
7905
7905
|
class: "lupa-suggestion-facet",
|
|
7906
7906
|
"data-cy": "lupa-suggestion-facet"
|
|
7907
7907
|
};
|
|
7908
|
-
const _hoisted_4$
|
|
7908
|
+
const _hoisted_4$n = {
|
|
7909
7909
|
class: "lupa-suggestion-facet-label",
|
|
7910
7910
|
"data-cy": "lupa-suggestion-facet-label"
|
|
7911
7911
|
};
|
|
@@ -7913,7 +7913,7 @@ const _hoisted_5$b = {
|
|
|
7913
7913
|
class: "lupa-suggestion-facet-value",
|
|
7914
7914
|
"data-cy": "lupa-suggestion-facet-value"
|
|
7915
7915
|
};
|
|
7916
|
-
const _sfc_main$
|
|
7916
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
7917
7917
|
__name: "SearchBoxSuggestion",
|
|
7918
7918
|
props: {
|
|
7919
7919
|
suggestion: {},
|
|
@@ -7949,20 +7949,20 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
7949
7949
|
class: "lupa-suggestion-value",
|
|
7950
7950
|
"data-cy": "lupa-suggestion-value",
|
|
7951
7951
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
7952
|
-
}, null, 8, _hoisted_1
|
|
7953
|
-
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
7954
|
-
createBaseVNode("span", _hoisted_4$
|
|
7952
|
+
}, null, 8, _hoisted_1$10)) : (openBlock(), createElementBlock("div", _hoisted_2$H, toDisplayString(_ctx.suggestion.display), 1)),
|
|
7953
|
+
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
|
|
7954
|
+
createBaseVNode("span", _hoisted_4$n, toDisplayString(facetLabel.value), 1),
|
|
7955
7955
|
createBaseVNode("span", _hoisted_5$b, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
7956
7956
|
])) : createCommentVNode("", true)
|
|
7957
7957
|
]);
|
|
7958
7958
|
};
|
|
7959
7959
|
}
|
|
7960
7960
|
});
|
|
7961
|
-
const _hoisted_1
|
|
7961
|
+
const _hoisted_1$$ = {
|
|
7962
7962
|
id: "lupa-search-box-suggestions",
|
|
7963
7963
|
"data-cy": "lupa-search-box-suggestions"
|
|
7964
7964
|
};
|
|
7965
|
-
const _sfc_main$
|
|
7965
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
7966
7966
|
__name: "SearchBoxSuggestions",
|
|
7967
7967
|
props: {
|
|
7968
7968
|
items: {},
|
|
@@ -8022,9 +8022,9 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
8022
8022
|
});
|
|
8023
8023
|
});
|
|
8024
8024
|
return (_ctx, _cache) => {
|
|
8025
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
8025
|
+
return openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
8026
8026
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
8027
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8027
|
+
return openBlock(), createBlock(_sfc_main$17, {
|
|
8028
8028
|
key: getSuggestionKey(item),
|
|
8029
8029
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
8030
8030
|
suggestion: item,
|
|
@@ -8052,7 +8052,7 @@ const debounce$1 = (func, timeout) => {
|
|
|
8052
8052
|
}, timeout);
|
|
8053
8053
|
};
|
|
8054
8054
|
};
|
|
8055
|
-
const _sfc_main$
|
|
8055
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
8056
8056
|
__name: "SearchBoxSuggestionsWrapper",
|
|
8057
8057
|
props: {
|
|
8058
8058
|
panel: {},
|
|
@@ -8093,7 +8093,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
8093
8093
|
};
|
|
8094
8094
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
8095
8095
|
return (_ctx, _cache) => {
|
|
8096
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8096
|
+
return openBlock(), createBlock(_sfc_main$16, {
|
|
8097
8097
|
items: searchResult.value,
|
|
8098
8098
|
highlight: _ctx.panel.highlight,
|
|
8099
8099
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -8171,8 +8171,8 @@ const useDynamicDataStore = defineStore("dynamicData", () => {
|
|
|
8171
8171
|
});
|
|
8172
8172
|
return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
|
|
8173
8173
|
});
|
|
8174
|
-
const _hoisted_1$
|
|
8175
|
-
const _sfc_main$
|
|
8174
|
+
const _hoisted_1$_ = ["src"];
|
|
8175
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
8176
8176
|
__name: "ProductImage",
|
|
8177
8177
|
props: {
|
|
8178
8178
|
item: {},
|
|
@@ -8220,12 +8220,12 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
8220
8220
|
class: normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
|
|
8221
8221
|
src: finalUrl.value,
|
|
8222
8222
|
onError: replaceWithPlaceholder
|
|
8223
|
-
}, null, 42, _hoisted_1$
|
|
8223
|
+
}, null, 42, _hoisted_1$_)
|
|
8224
8224
|
], 2);
|
|
8225
8225
|
};
|
|
8226
8226
|
}
|
|
8227
8227
|
});
|
|
8228
|
-
const _sfc_main$
|
|
8228
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
8229
8229
|
__name: "SearchBoxProductImage",
|
|
8230
8230
|
props: {
|
|
8231
8231
|
item: {},
|
|
@@ -8233,7 +8233,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
8233
8233
|
},
|
|
8234
8234
|
setup(__props) {
|
|
8235
8235
|
return (_ctx, _cache) => {
|
|
8236
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8236
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
8237
8237
|
item: _ctx.item,
|
|
8238
8238
|
options: _ctx.options,
|
|
8239
8239
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -8242,12 +8242,12 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
8242
8242
|
};
|
|
8243
8243
|
}
|
|
8244
8244
|
});
|
|
8245
|
-
const _hoisted_1$
|
|
8246
|
-
const _hoisted_2$
|
|
8245
|
+
const _hoisted_1$Z = ["innerHTML"];
|
|
8246
|
+
const _hoisted_2$G = {
|
|
8247
8247
|
key: 1,
|
|
8248
8248
|
class: "lupa-search-box-product-title"
|
|
8249
8249
|
};
|
|
8250
|
-
const _sfc_main$
|
|
8250
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
8251
8251
|
__name: "SearchBoxProductTitle",
|
|
8252
8252
|
props: {
|
|
8253
8253
|
item: {},
|
|
@@ -8267,18 +8267,18 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
8267
8267
|
key: 0,
|
|
8268
8268
|
class: "lupa-search-box-product-title",
|
|
8269
8269
|
innerHTML: title.value
|
|
8270
|
-
}, null, 8, _hoisted_1$
|
|
8270
|
+
}, null, 8, _hoisted_1$Z)) : (openBlock(), createElementBlock("div", _hoisted_2$G, [
|
|
8271
8271
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
8272
8272
|
]));
|
|
8273
8273
|
};
|
|
8274
8274
|
}
|
|
8275
8275
|
});
|
|
8276
|
-
const _hoisted_1$
|
|
8277
|
-
const _hoisted_2$
|
|
8276
|
+
const _hoisted_1$Y = ["innerHTML"];
|
|
8277
|
+
const _hoisted_2$F = {
|
|
8278
8278
|
key: 1,
|
|
8279
8279
|
class: "lupa-search-box-product-description"
|
|
8280
8280
|
};
|
|
8281
|
-
const _sfc_main$
|
|
8281
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
8282
8282
|
__name: "SearchBoxProductDescription",
|
|
8283
8283
|
props: {
|
|
8284
8284
|
item: {},
|
|
@@ -8298,12 +8298,12 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
8298
8298
|
key: 0,
|
|
8299
8299
|
class: "lupa-search-box-product-description",
|
|
8300
8300
|
innerHTML: description.value
|
|
8301
|
-
}, null, 8, _hoisted_1$
|
|
8301
|
+
}, null, 8, _hoisted_1$Y)) : (openBlock(), createElementBlock("div", _hoisted_2$F, toDisplayString(description.value), 1));
|
|
8302
8302
|
};
|
|
8303
8303
|
}
|
|
8304
8304
|
});
|
|
8305
|
-
const _hoisted_1$
|
|
8306
|
-
const _sfc_main
|
|
8305
|
+
const _hoisted_1$X = { class: "lupa-search-box-product-price" };
|
|
8306
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
8307
8307
|
__name: "SearchBoxProductPrice",
|
|
8308
8308
|
props: {
|
|
8309
8309
|
item: {},
|
|
@@ -8321,14 +8321,14 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
8321
8321
|
);
|
|
8322
8322
|
});
|
|
8323
8323
|
return (_ctx, _cache) => {
|
|
8324
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8324
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
8325
8325
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
8326
8326
|
]);
|
|
8327
8327
|
};
|
|
8328
8328
|
}
|
|
8329
8329
|
});
|
|
8330
|
-
const _hoisted_1$
|
|
8331
|
-
const _sfc_main
|
|
8330
|
+
const _hoisted_1$W = { class: "lupa-search-box-product-regular-price" };
|
|
8331
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
8332
8332
|
__name: "SearchBoxProductRegularPrice",
|
|
8333
8333
|
props: {
|
|
8334
8334
|
item: {},
|
|
@@ -8346,16 +8346,16 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
8346
8346
|
);
|
|
8347
8347
|
});
|
|
8348
8348
|
return (_ctx, _cache) => {
|
|
8349
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8349
|
+
return openBlock(), createElementBlock("div", _hoisted_1$W, toDisplayString(price.value), 1);
|
|
8350
8350
|
};
|
|
8351
8351
|
}
|
|
8352
8352
|
});
|
|
8353
|
-
const _hoisted_1$
|
|
8354
|
-
const _hoisted_2$
|
|
8355
|
-
const _hoisted_3$
|
|
8356
|
-
const _hoisted_4$
|
|
8353
|
+
const _hoisted_1$V = ["innerHTML"];
|
|
8354
|
+
const _hoisted_2$E = { key: 0 };
|
|
8355
|
+
const _hoisted_3$t = { key: 1 };
|
|
8356
|
+
const _hoisted_4$m = { class: "lupa-search-box-custom-label" };
|
|
8357
8357
|
const _hoisted_5$a = { class: "lupa-search-box-custom-text" };
|
|
8358
|
-
const _sfc_main$
|
|
8358
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
8359
8359
|
__name: "SearchBoxProductCustom",
|
|
8360
8360
|
props: {
|
|
8361
8361
|
item: {},
|
|
@@ -8381,20 +8381,20 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
8381
8381
|
key: 0,
|
|
8382
8382
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
8383
8383
|
innerHTML: text.value
|
|
8384
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
8384
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$V)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
8385
8385
|
key: 1,
|
|
8386
8386
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
8387
8387
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
8388
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
8389
|
-
createBaseVNode("div", _hoisted_4$
|
|
8388
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$E, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
8389
|
+
createBaseVNode("div", _hoisted_4$m, toDisplayString(label.value), 1),
|
|
8390
8390
|
createBaseVNode("div", _hoisted_5$a, toDisplayString(text.value), 1)
|
|
8391
8391
|
]))
|
|
8392
8392
|
], 16));
|
|
8393
8393
|
};
|
|
8394
8394
|
}
|
|
8395
8395
|
});
|
|
8396
|
-
const _hoisted_1$
|
|
8397
|
-
const _sfc_main$
|
|
8396
|
+
const _hoisted_1$U = ["innerHTML"];
|
|
8397
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
8398
8398
|
__name: "SearchBoxProductCustomHtml",
|
|
8399
8399
|
props: {
|
|
8400
8400
|
item: {},
|
|
@@ -8414,7 +8414,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
8414
8414
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
8415
8415
|
class: className.value,
|
|
8416
8416
|
innerHTML: text.value
|
|
8417
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
8417
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$U);
|
|
8418
8418
|
};
|
|
8419
8419
|
}
|
|
8420
8420
|
});
|
|
@@ -8609,10 +8609,10 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
8609
8609
|
setLoading
|
|
8610
8610
|
};
|
|
8611
8611
|
});
|
|
8612
|
-
const _hoisted_1$
|
|
8613
|
-
const _hoisted_2$
|
|
8614
|
-
const _hoisted_3$
|
|
8615
|
-
const _sfc_main$
|
|
8612
|
+
const _hoisted_1$T = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
8613
|
+
const _hoisted_2$D = { class: "lupa-search-box-product-addtocart" };
|
|
8614
|
+
const _hoisted_3$s = ["onClick", "disabled"];
|
|
8615
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
8616
8616
|
__name: "SearchBoxProductAddToCart",
|
|
8617
8617
|
props: {
|
|
8618
8618
|
item: {},
|
|
@@ -8639,15 +8639,15 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
8639
8639
|
loading.value = false;
|
|
8640
8640
|
});
|
|
8641
8641
|
return (_ctx, _cache) => {
|
|
8642
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8643
|
-
createBaseVNode("div", _hoisted_2$
|
|
8642
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
8643
|
+
createBaseVNode("div", _hoisted_2$D, [
|
|
8644
8644
|
createBaseVNode("button", {
|
|
8645
8645
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
8646
8646
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
8647
8647
|
"data-cy": "lupa-add-to-cart",
|
|
8648
8648
|
type: "button",
|
|
8649
8649
|
disabled: !inStockValue.value || loading.value
|
|
8650
|
-
}, toDisplayString(label.value), 11, _hoisted_3$
|
|
8650
|
+
}, toDisplayString(label.value), 11, _hoisted_3$s)
|
|
8651
8651
|
])
|
|
8652
8652
|
]);
|
|
8653
8653
|
};
|
|
@@ -8655,17 +8655,17 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
8655
8655
|
});
|
|
8656
8656
|
const __default__$4 = {
|
|
8657
8657
|
components: {
|
|
8658
|
-
SearchBoxProductImage: _sfc_main$
|
|
8659
|
-
SearchBoxProductTitle: _sfc_main$
|
|
8660
|
-
SearchBoxProductDescription: _sfc_main$
|
|
8661
|
-
SearchBoxProductPrice: _sfc_main
|
|
8662
|
-
SearchBoxProductRegularPrice: _sfc_main
|
|
8663
|
-
SearchBoxProductCustom: _sfc_main$
|
|
8664
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
8665
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
8658
|
+
SearchBoxProductImage: _sfc_main$13,
|
|
8659
|
+
SearchBoxProductTitle: _sfc_main$12,
|
|
8660
|
+
SearchBoxProductDescription: _sfc_main$11,
|
|
8661
|
+
SearchBoxProductPrice: _sfc_main$10,
|
|
8662
|
+
SearchBoxProductRegularPrice: _sfc_main$$,
|
|
8663
|
+
SearchBoxProductCustom: _sfc_main$_,
|
|
8664
|
+
SearchBoxProductCustomHtml: _sfc_main$Z,
|
|
8665
|
+
SearchBoxProductAddToCart: _sfc_main$Y
|
|
8666
8666
|
}
|
|
8667
8667
|
};
|
|
8668
|
-
const _sfc_main$
|
|
8668
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
8669
8669
|
__name: "SearchBoxProductElement",
|
|
8670
8670
|
props: {
|
|
8671
8671
|
item: {},
|
|
@@ -8779,14 +8779,14 @@ const useTrackingStore = defineStore("tracking", () => {
|
|
|
8779
8779
|
};
|
|
8780
8780
|
return { trackSearch, trackResults, trackEvent };
|
|
8781
8781
|
});
|
|
8782
|
-
const _hoisted_1$
|
|
8783
|
-
const _hoisted_2$
|
|
8784
|
-
const _hoisted_3$
|
|
8785
|
-
const _hoisted_4$
|
|
8782
|
+
const _hoisted_1$S = ["href"];
|
|
8783
|
+
const _hoisted_2$C = { class: "lupa-search-box-product-image-section" };
|
|
8784
|
+
const _hoisted_3$r = { class: "lupa-search-box-product-details-section" };
|
|
8785
|
+
const _hoisted_4$l = {
|
|
8786
8786
|
key: 0,
|
|
8787
8787
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
8788
8788
|
};
|
|
8789
|
-
const _sfc_main$
|
|
8789
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
8790
8790
|
__name: "SearchBoxProduct",
|
|
8791
8791
|
props: {
|
|
8792
8792
|
item: {},
|
|
@@ -8879,9 +8879,9 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
8879
8879
|
href: link.value,
|
|
8880
8880
|
onClick: handleClick
|
|
8881
8881
|
}, [
|
|
8882
|
-
createBaseVNode("div", _hoisted_2$
|
|
8882
|
+
createBaseVNode("div", _hoisted_2$C, [
|
|
8883
8883
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
8884
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8884
|
+
return openBlock(), createBlock(_sfc_main$X, {
|
|
8885
8885
|
class: "lupa-search-box-product-element",
|
|
8886
8886
|
item: _ctx.item,
|
|
8887
8887
|
element,
|
|
@@ -8891,9 +8891,9 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
8891
8891
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
8892
8892
|
}), 128))
|
|
8893
8893
|
]),
|
|
8894
|
-
createBaseVNode("div", _hoisted_3$
|
|
8894
|
+
createBaseVNode("div", _hoisted_3$r, [
|
|
8895
8895
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
8896
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8896
|
+
return openBlock(), createBlock(_sfc_main$X, {
|
|
8897
8897
|
class: "lupa-search-box-product-element",
|
|
8898
8898
|
item: _ctx.item,
|
|
8899
8899
|
element,
|
|
@@ -8903,8 +8903,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
8903
8903
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
8904
8904
|
}), 128))
|
|
8905
8905
|
]),
|
|
8906
|
-
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
8907
|
-
createVNode(_sfc_main$
|
|
8906
|
+
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$l, [
|
|
8907
|
+
createVNode(_sfc_main$X, {
|
|
8908
8908
|
class: "lupa-search-box-product-element",
|
|
8909
8909
|
item: _ctx.item,
|
|
8910
8910
|
element: addToCartElement.value,
|
|
@@ -8913,12 +8913,12 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
8913
8913
|
isInStock: isInStock.value
|
|
8914
8914
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
8915
8915
|
])) : createCommentVNode("", true)
|
|
8916
|
-
], 10, _hoisted_1$
|
|
8916
|
+
], 10, _hoisted_1$S);
|
|
8917
8917
|
};
|
|
8918
8918
|
}
|
|
8919
8919
|
});
|
|
8920
|
-
const _hoisted_1$
|
|
8921
|
-
const _sfc_main$
|
|
8920
|
+
const _hoisted_1$R = { id: "lupa-search-box-products" };
|
|
8921
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
8922
8922
|
__name: "SearchBoxProducts",
|
|
8923
8923
|
props: {
|
|
8924
8924
|
items: {},
|
|
@@ -8938,7 +8938,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
8938
8938
|
return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
|
|
8939
8939
|
});
|
|
8940
8940
|
return (_ctx, _cache) => {
|
|
8941
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8941
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
8942
8942
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
8943
8943
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
8944
8944
|
key: index,
|
|
@@ -8950,7 +8950,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
8950
8950
|
onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
|
|
8951
8951
|
});
|
|
8952
8952
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
8953
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8953
|
+
return openBlock(), createBlock(_sfc_main$W, {
|
|
8954
8954
|
key: index,
|
|
8955
8955
|
item,
|
|
8956
8956
|
panelOptions: _ctx.panelOptions,
|
|
@@ -8964,7 +8964,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
8964
8964
|
};
|
|
8965
8965
|
}
|
|
8966
8966
|
});
|
|
8967
|
-
const _sfc_main$
|
|
8967
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
8968
8968
|
__name: "SearchBoxProductsWrapper",
|
|
8969
8969
|
props: {
|
|
8970
8970
|
panel: {},
|
|
@@ -9016,7 +9016,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
9016
9016
|
const getItemsDebounced = debounce$1(getItems, props.debounce);
|
|
9017
9017
|
return (_ctx, _cache) => {
|
|
9018
9018
|
var _a, _b;
|
|
9019
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9019
|
+
return openBlock(), createBlock(_sfc_main$V, {
|
|
9020
9020
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
9021
9021
|
panelOptions: _ctx.panel,
|
|
9022
9022
|
labels: _ctx.labels,
|
|
@@ -9034,26 +9034,26 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
9034
9034
|
};
|
|
9035
9035
|
}
|
|
9036
9036
|
});
|
|
9037
|
-
const _hoisted_1$
|
|
9037
|
+
const _hoisted_1$Q = {
|
|
9038
9038
|
key: 0,
|
|
9039
9039
|
id: "lupa-search-box-panel"
|
|
9040
9040
|
};
|
|
9041
|
-
const _hoisted_2$
|
|
9041
|
+
const _hoisted_2$B = {
|
|
9042
9042
|
class: "lupa-main-panel",
|
|
9043
9043
|
"data-cy": "lupa-main-panel"
|
|
9044
9044
|
};
|
|
9045
|
-
const _hoisted_3$
|
|
9046
|
-
const _hoisted_4$
|
|
9045
|
+
const _hoisted_3$q = ["data-cy"];
|
|
9046
|
+
const _hoisted_4$k = {
|
|
9047
9047
|
key: 1,
|
|
9048
9048
|
id: "lupa-search-box-panel"
|
|
9049
9049
|
};
|
|
9050
9050
|
const __default__$3 = {
|
|
9051
9051
|
components: {
|
|
9052
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
9053
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
9052
|
+
SearchBoxSuggestionsWrapper: _sfc_main$15,
|
|
9053
|
+
SearchBoxProductsWrapper: _sfc_main$U
|
|
9054
9054
|
}
|
|
9055
9055
|
};
|
|
9056
|
-
const _sfc_main$
|
|
9056
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
9057
9057
|
__name: "SearchBoxMainPanel",
|
|
9058
9058
|
props: {
|
|
9059
9059
|
options: {},
|
|
@@ -9167,8 +9167,8 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
9167
9167
|
ref_key: "panelContainer",
|
|
9168
9168
|
ref: panelContainer
|
|
9169
9169
|
}, [
|
|
9170
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9171
|
-
createBaseVNode("div", _hoisted_2$
|
|
9170
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
9171
|
+
createBaseVNode("div", _hoisted_2$B, [
|
|
9172
9172
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayPanels.value, (panel, index) => {
|
|
9173
9173
|
return openBlock(), createElementBlock("div", {
|
|
9174
9174
|
key: index,
|
|
@@ -9197,16 +9197,16 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
9197
9197
|
key: "0"
|
|
9198
9198
|
} : void 0
|
|
9199
9199
|
]), 1064, ["panel", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
9200
|
-
], 10, _hoisted_3$
|
|
9200
|
+
], 10, _hoisted_3$q);
|
|
9201
9201
|
}), 128))
|
|
9202
9202
|
]),
|
|
9203
|
-
createVNode(_sfc_main$
|
|
9203
|
+
createVNode(_sfc_main$1a, {
|
|
9204
9204
|
labels: labels.value,
|
|
9205
9205
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
9206
9206
|
onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
|
|
9207
9207
|
}, null, 8, ["labels", "showTotalCount"])
|
|
9208
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
9209
|
-
createVNode(_sfc_main$
|
|
9208
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$k, [
|
|
9209
|
+
createVNode(_sfc_main$18, {
|
|
9210
9210
|
options: _ctx.options.history,
|
|
9211
9211
|
history: history.value,
|
|
9212
9212
|
onGoToResults: handleGoToResults,
|
|
@@ -9231,9 +9231,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
|
|
|
9231
9231
|
const elements = getElements(triggers);
|
|
9232
9232
|
elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
|
|
9233
9233
|
};
|
|
9234
|
-
const _hoisted_1$
|
|
9235
|
-
const _hoisted_2$
|
|
9236
|
-
const _sfc_main$
|
|
9234
|
+
const _hoisted_1$P = { id: "lupa-search-box" };
|
|
9235
|
+
const _hoisted_2$A = { class: "lupa-search-box-wrapper" };
|
|
9236
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
9237
9237
|
__name: "SearchBox",
|
|
9238
9238
|
props: {
|
|
9239
9239
|
options: {},
|
|
@@ -9465,9 +9465,9 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
9465
9465
|
};
|
|
9466
9466
|
return (_ctx, _cache) => {
|
|
9467
9467
|
var _a2;
|
|
9468
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9469
|
-
createBaseVNode("div", _hoisted_2$
|
|
9470
|
-
createVNode(_sfc_main$
|
|
9468
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
9469
|
+
createBaseVNode("div", _hoisted_2$A, [
|
|
9470
|
+
createVNode(_sfc_main$1b, {
|
|
9471
9471
|
options: inputOptions.value,
|
|
9472
9472
|
suggestedValue: suggestedValue.value,
|
|
9473
9473
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -9478,7 +9478,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
9478
9478
|
onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
|
|
9479
9479
|
onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
9480
9480
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
9481
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
9481
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$T, {
|
|
9482
9482
|
key: 0,
|
|
9483
9483
|
options: panelOptions.value,
|
|
9484
9484
|
inputValue: inputValue.value,
|
|
@@ -9565,20 +9565,20 @@ const getSearchParams = (url, params, baseUrl) => {
|
|
|
9565
9565
|
}
|
|
9566
9566
|
return searchParams;
|
|
9567
9567
|
};
|
|
9568
|
-
const _hoisted_1$
|
|
9568
|
+
const _hoisted_1$O = {
|
|
9569
9569
|
key: 0,
|
|
9570
9570
|
id: "lupa-search-results-did-you-mean"
|
|
9571
9571
|
};
|
|
9572
|
-
const _hoisted_2$
|
|
9572
|
+
const _hoisted_2$z = {
|
|
9573
9573
|
key: 0,
|
|
9574
9574
|
"data-cy": "suggested-search-text-label"
|
|
9575
9575
|
};
|
|
9576
|
-
const _hoisted_3$
|
|
9576
|
+
const _hoisted_3$p = {
|
|
9577
9577
|
key: 1,
|
|
9578
9578
|
"data-cy": "did-you-mean-label"
|
|
9579
9579
|
};
|
|
9580
|
-
const _hoisted_4$
|
|
9581
|
-
const _sfc_main$
|
|
9580
|
+
const _hoisted_4$j = { key: 1 };
|
|
9581
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
9582
9582
|
__name: "SearchResultsDidYouMean",
|
|
9583
9583
|
props: {
|
|
9584
9584
|
labels: {}
|
|
@@ -9610,8 +9610,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
9610
9610
|
paramStore.goToResults({ searchText, facet });
|
|
9611
9611
|
};
|
|
9612
9612
|
return (_ctx, _cache) => {
|
|
9613
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9614
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9613
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
9614
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
|
|
9615
9615
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
9616
9616
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
9617
9617
|
createBaseVNode("span", {
|
|
@@ -9620,7 +9620,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
9620
9620
|
]);
|
|
9621
9621
|
}), 128))
|
|
9622
9622
|
])) : createCommentVNode("", true),
|
|
9623
|
-
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9623
|
+
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$p, [
|
|
9624
9624
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
9625
9625
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
9626
9626
|
label.includes("{1}") ? (openBlock(), createElementBlock("span", {
|
|
@@ -9628,7 +9628,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
9628
9628
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
9629
9629
|
"data-cy": "did-you-mean-value",
|
|
9630
9630
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
9631
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
9631
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$j, toDisplayString(label) + " ", 1))
|
|
9632
9632
|
]);
|
|
9633
9633
|
}), 128))
|
|
9634
9634
|
])) : createCommentVNode("", true)
|
|
@@ -9636,12 +9636,12 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
9636
9636
|
};
|
|
9637
9637
|
}
|
|
9638
9638
|
});
|
|
9639
|
-
const _hoisted_1$
|
|
9639
|
+
const _hoisted_1$N = {
|
|
9640
9640
|
key: 0,
|
|
9641
9641
|
class: "lupa-search-results-summary"
|
|
9642
9642
|
};
|
|
9643
|
-
const _hoisted_2$
|
|
9644
|
-
const _sfc_main$
|
|
9643
|
+
const _hoisted_2$y = ["innerHTML"];
|
|
9644
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
9645
9645
|
__name: "SearchResultsSummary",
|
|
9646
9646
|
props: {
|
|
9647
9647
|
label: {},
|
|
@@ -9656,8 +9656,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
9656
9656
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
9657
9657
|
});
|
|
9658
9658
|
return (_ctx, _cache) => {
|
|
9659
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9660
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
9659
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
9660
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$y),
|
|
9661
9661
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
9662
9662
|
key: 0,
|
|
9663
9663
|
class: "lupa-filter-clear",
|
|
@@ -9668,18 +9668,18 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
9668
9668
|
};
|
|
9669
9669
|
}
|
|
9670
9670
|
});
|
|
9671
|
-
const _hoisted_1$
|
|
9671
|
+
const _hoisted_1$M = {
|
|
9672
9672
|
key: 0,
|
|
9673
9673
|
class: "lupa-result-page-title",
|
|
9674
9674
|
"data-cy": "lupa-result-page-title"
|
|
9675
9675
|
};
|
|
9676
|
-
const _hoisted_2$
|
|
9677
|
-
const _hoisted_3$
|
|
9676
|
+
const _hoisted_2$x = { key: 0 };
|
|
9677
|
+
const _hoisted_3$o = {
|
|
9678
9678
|
key: 1,
|
|
9679
9679
|
class: "lupa-results-total-count"
|
|
9680
9680
|
};
|
|
9681
|
-
const _hoisted_4$
|
|
9682
|
-
const _sfc_main$
|
|
9681
|
+
const _hoisted_4$i = ["innerHTML"];
|
|
9682
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
9683
9683
|
__name: "SearchResultsTitle",
|
|
9684
9684
|
props: {
|
|
9685
9685
|
options: {},
|
|
@@ -9714,12 +9714,12 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9714
9714
|
});
|
|
9715
9715
|
return (_ctx, _cache) => {
|
|
9716
9716
|
return openBlock(), createElementBlock("div", null, [
|
|
9717
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
9717
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$M, [
|
|
9718
9718
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
9719
|
-
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9720
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
9719
|
+
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$x, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
9720
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$o, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
|
|
9721
9721
|
])) : createCommentVNode("", true),
|
|
9722
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
9722
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
9723
9723
|
key: 1,
|
|
9724
9724
|
label: summaryLabel.value
|
|
9725
9725
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -9727,21 +9727,21 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9727
9727
|
key: 2,
|
|
9728
9728
|
class: "lupa-result-page-description-top",
|
|
9729
9729
|
innerHTML: descriptionTop.value
|
|
9730
|
-
}, null, 8, _hoisted_4$
|
|
9730
|
+
}, null, 8, _hoisted_4$i)) : createCommentVNode("", true)
|
|
9731
9731
|
]);
|
|
9732
9732
|
};
|
|
9733
9733
|
}
|
|
9734
9734
|
});
|
|
9735
|
-
const _hoisted_1$
|
|
9736
|
-
const _hoisted_2$
|
|
9735
|
+
const _hoisted_1$L = { class: "lupa-search-result-filter-value" };
|
|
9736
|
+
const _hoisted_2$w = {
|
|
9737
9737
|
class: "lupa-current-filter-label",
|
|
9738
9738
|
"data-cy": "lupa-current-filter-label"
|
|
9739
9739
|
};
|
|
9740
|
-
const _hoisted_3$
|
|
9740
|
+
const _hoisted_3$n = {
|
|
9741
9741
|
class: "lupa-current-filter-value",
|
|
9742
9742
|
"data-cy": "lupa-current-filter-value"
|
|
9743
9743
|
};
|
|
9744
|
-
const _sfc_main$
|
|
9744
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
9745
9745
|
__name: "CurrentFilterDisplay",
|
|
9746
9746
|
props: {
|
|
9747
9747
|
filter: {}
|
|
@@ -9753,28 +9753,28 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
9753
9753
|
emit2("remove", { filter: props.filter });
|
|
9754
9754
|
};
|
|
9755
9755
|
return (_ctx, _cache) => {
|
|
9756
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9756
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
9757
9757
|
createBaseVNode("div", {
|
|
9758
9758
|
class: "lupa-current-filter-action",
|
|
9759
9759
|
onClick: handleClick
|
|
9760
9760
|
}, "⨉"),
|
|
9761
|
-
createBaseVNode("div", _hoisted_2$
|
|
9762
|
-
createBaseVNode("div", _hoisted_3$
|
|
9761
|
+
createBaseVNode("div", _hoisted_2$w, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
9762
|
+
createBaseVNode("div", _hoisted_3$n, toDisplayString(_ctx.filter.value), 1)
|
|
9763
9763
|
]);
|
|
9764
9764
|
};
|
|
9765
9765
|
}
|
|
9766
9766
|
});
|
|
9767
|
-
const _hoisted_1$
|
|
9768
|
-
const _hoisted_2$
|
|
9767
|
+
const _hoisted_1$K = { class: "lupa-filter-title-text" };
|
|
9768
|
+
const _hoisted_2$v = {
|
|
9769
9769
|
key: 0,
|
|
9770
9770
|
class: "lupa-filter-count"
|
|
9771
9771
|
};
|
|
9772
|
-
const _hoisted_3$
|
|
9772
|
+
const _hoisted_3$m = {
|
|
9773
9773
|
key: 0,
|
|
9774
9774
|
class: "filter-values"
|
|
9775
9775
|
};
|
|
9776
|
-
const _hoisted_4$
|
|
9777
|
-
const _sfc_main$
|
|
9776
|
+
const _hoisted_4$h = { class: "lupa-current-filter-list" };
|
|
9777
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
9778
9778
|
__name: "CurrentFilters",
|
|
9779
9779
|
props: {
|
|
9780
9780
|
options: {},
|
|
@@ -9829,19 +9829,19 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
9829
9829
|
class: "lupa-current-filter-title",
|
|
9830
9830
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
9831
9831
|
}, [
|
|
9832
|
-
createBaseVNode("div", _hoisted_1$
|
|
9832
|
+
createBaseVNode("div", _hoisted_1$K, [
|
|
9833
9833
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
9834
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9834
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$v, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
9835
9835
|
]),
|
|
9836
9836
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
9837
9837
|
key: 0,
|
|
9838
9838
|
class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
9839
9839
|
}, null, 2)) : createCommentVNode("", true)
|
|
9840
9840
|
]),
|
|
9841
|
-
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9842
|
-
createBaseVNode("div", _hoisted_4$
|
|
9841
|
+
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$m, [
|
|
9842
|
+
createBaseVNode("div", _hoisted_4$h, [
|
|
9843
9843
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
|
|
9844
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9844
|
+
return openBlock(), createBlock(_sfc_main$O, {
|
|
9845
9845
|
key: filter.key + "_" + filter.value,
|
|
9846
9846
|
filter,
|
|
9847
9847
|
onRemove: handleRemove
|
|
@@ -9858,8 +9858,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
9858
9858
|
};
|
|
9859
9859
|
}
|
|
9860
9860
|
});
|
|
9861
|
-
const _hoisted_1$
|
|
9862
|
-
const _sfc_main$
|
|
9861
|
+
const _hoisted_1$J = ["href"];
|
|
9862
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
9863
9863
|
__name: "CategoryFilterItem",
|
|
9864
9864
|
props: {
|
|
9865
9865
|
options: {},
|
|
@@ -9896,20 +9896,20 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
9896
9896
|
"data-cy": "lupa-child-category-item",
|
|
9897
9897
|
href: urlLink.value,
|
|
9898
9898
|
onClick: handleNavigation
|
|
9899
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
9899
|
+
}, toDisplayString(title.value), 9, _hoisted_1$J)
|
|
9900
9900
|
], 2);
|
|
9901
9901
|
};
|
|
9902
9902
|
}
|
|
9903
9903
|
});
|
|
9904
|
-
const _hoisted_1$
|
|
9904
|
+
const _hoisted_1$I = {
|
|
9905
9905
|
class: "lupa-category-filter",
|
|
9906
9906
|
"data-cy": "lupa-category-filter"
|
|
9907
9907
|
};
|
|
9908
|
-
const _hoisted_2$
|
|
9909
|
-
const _hoisted_3$
|
|
9910
|
-
const _hoisted_4$
|
|
9908
|
+
const _hoisted_2$u = { class: "lupa-category-back" };
|
|
9909
|
+
const _hoisted_3$l = ["href"];
|
|
9910
|
+
const _hoisted_4$g = ["href"];
|
|
9911
9911
|
const _hoisted_5$9 = { class: "lupa-child-category-list" };
|
|
9912
|
-
const _sfc_main$
|
|
9912
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
9913
9913
|
__name: "CategoryFilter",
|
|
9914
9914
|
props: {
|
|
9915
9915
|
options: {}
|
|
@@ -9995,14 +9995,14 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
9995
9995
|
};
|
|
9996
9996
|
__expose({ fetch: fetch2 });
|
|
9997
9997
|
return (_ctx, _cache) => {
|
|
9998
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9999
|
-
createBaseVNode("div", _hoisted_2$
|
|
9998
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
9999
|
+
createBaseVNode("div", _hoisted_2$u, [
|
|
10000
10000
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
10001
10001
|
key: 0,
|
|
10002
10002
|
"data-cy": "lupa-category-back",
|
|
10003
10003
|
href: backUrlLink.value,
|
|
10004
10004
|
onClick: handleNavigationBack
|
|
10005
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
10005
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$l)) : createCommentVNode("", true)
|
|
10006
10006
|
]),
|
|
10007
10007
|
createBaseVNode("div", {
|
|
10008
10008
|
class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -10012,11 +10012,11 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
10012
10012
|
href: parentUrlLink.value,
|
|
10013
10013
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
10014
10014
|
onClick: handleNavigationParent
|
|
10015
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
10015
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$g)
|
|
10016
10016
|
], 2),
|
|
10017
10017
|
createBaseVNode("div", _hoisted_5$9, [
|
|
10018
10018
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
10019
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10019
|
+
return openBlock(), createBlock(_sfc_main$M, {
|
|
10020
10020
|
key: getCategoryKey(child),
|
|
10021
10021
|
item: child,
|
|
10022
10022
|
options: _ctx.options
|
|
@@ -10027,13 +10027,13 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
10027
10027
|
};
|
|
10028
10028
|
}
|
|
10029
10029
|
});
|
|
10030
|
-
const _hoisted_1$
|
|
10030
|
+
const _hoisted_1$H = {
|
|
10031
10031
|
class: "lupa-search-result-facet-term-values",
|
|
10032
10032
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
10033
10033
|
};
|
|
10034
|
-
const _hoisted_2$
|
|
10035
|
-
const _hoisted_3$
|
|
10036
|
-
const _hoisted_4$
|
|
10034
|
+
const _hoisted_2$t = ["placeholder"];
|
|
10035
|
+
const _hoisted_3$k = { class: "lupa-terms-list" };
|
|
10036
|
+
const _hoisted_4$f = ["onClick"];
|
|
10037
10037
|
const _hoisted_5$8 = { class: "lupa-term-checkbox-wrapper" };
|
|
10038
10038
|
const _hoisted_6$5 = { class: "lupa-term-checkbox-label" };
|
|
10039
10039
|
const _hoisted_7$5 = { class: "lupa-term-label" };
|
|
@@ -10043,7 +10043,7 @@ const _hoisted_8$2 = {
|
|
|
10043
10043
|
};
|
|
10044
10044
|
const _hoisted_9$1 = { key: 0 };
|
|
10045
10045
|
const _hoisted_10$1 = { key: 1 };
|
|
10046
|
-
const _sfc_main$
|
|
10046
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
10047
10047
|
__name: "TermFacet",
|
|
10048
10048
|
props: {
|
|
10049
10049
|
options: {},
|
|
@@ -10112,17 +10112,17 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
10112
10112
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
10113
10113
|
};
|
|
10114
10114
|
return (_ctx, _cache) => {
|
|
10115
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10115
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
10116
10116
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
10117
10117
|
key: 0,
|
|
10118
10118
|
class: "lupa-term-filter",
|
|
10119
10119
|
"data-cy": "lupa-term-filter",
|
|
10120
10120
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
10121
10121
|
placeholder: _ctx.options.labels.facetFilter
|
|
10122
|
-
}, null, 8, _hoisted_2$
|
|
10122
|
+
}, null, 8, _hoisted_2$t)), [
|
|
10123
10123
|
[vModelText, termFilter.value]
|
|
10124
10124
|
]) : createCommentVNode("", true),
|
|
10125
|
-
createBaseVNode("div", _hoisted_3$
|
|
10125
|
+
createBaseVNode("div", _hoisted_3$k, [
|
|
10126
10126
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
10127
10127
|
return openBlock(), createElementBlock("div", {
|
|
10128
10128
|
class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -10139,7 +10139,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
10139
10139
|
createBaseVNode("span", _hoisted_7$5, toDisplayString(item.title), 1),
|
|
10140
10140
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
10141
10141
|
])
|
|
10142
|
-
], 10, _hoisted_4$
|
|
10142
|
+
], 10, _hoisted_4$f);
|
|
10143
10143
|
}), 128))
|
|
10144
10144
|
]),
|
|
10145
10145
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -11130,16 +11130,16 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
11130
11130
|
m.render = function(e, t, r, i, n, o) {
|
|
11131
11131
|
return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
|
|
11132
11132
|
}, m.__file = "src/Slider.vue";
|
|
11133
|
-
const _hoisted_1$
|
|
11134
|
-
const _hoisted_2$
|
|
11133
|
+
const _hoisted_1$G = { class: "lupa-search-result-facet-stats-values" };
|
|
11134
|
+
const _hoisted_2$s = {
|
|
11135
11135
|
key: 0,
|
|
11136
11136
|
class: "lupa-stats-facet-summary"
|
|
11137
11137
|
};
|
|
11138
|
-
const _hoisted_3$
|
|
11138
|
+
const _hoisted_3$j = {
|
|
11139
11139
|
key: 1,
|
|
11140
11140
|
class: "lupa-stats-facet-summary-input"
|
|
11141
11141
|
};
|
|
11142
|
-
const _hoisted_4$
|
|
11142
|
+
const _hoisted_4$e = {
|
|
11143
11143
|
key: 0,
|
|
11144
11144
|
class: "lupa-stats-range-label"
|
|
11145
11145
|
};
|
|
@@ -11158,7 +11158,7 @@ const _hoisted_13 = {
|
|
|
11158
11158
|
key: 2,
|
|
11159
11159
|
class: "lupa-stats-slider-wrapper"
|
|
11160
11160
|
};
|
|
11161
|
-
const _sfc_main$
|
|
11161
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
11162
11162
|
__name: "StatsFacet",
|
|
11163
11163
|
props: {
|
|
11164
11164
|
options: {},
|
|
@@ -11306,10 +11306,10 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11306
11306
|
innerSliderRange.value = value;
|
|
11307
11307
|
};
|
|
11308
11308
|
return (_ctx, _cache) => {
|
|
11309
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11310
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11309
|
+
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
11310
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$s, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$j, [
|
|
11311
11311
|
createBaseVNode("div", null, [
|
|
11312
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
11312
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
11313
11313
|
createBaseVNode("div", _hoisted_5$7, [
|
|
11314
11314
|
withDirectives(createBaseVNode("input", {
|
|
11315
11315
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
@@ -11370,10 +11370,10 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11370
11370
|
};
|
|
11371
11371
|
}
|
|
11372
11372
|
});
|
|
11373
|
-
const _hoisted_1$
|
|
11374
|
-
const _hoisted_2$
|
|
11375
|
-
const _hoisted_3$
|
|
11376
|
-
const _hoisted_4$
|
|
11373
|
+
const _hoisted_1$F = { class: "lupa-term-checkbox-wrapper" };
|
|
11374
|
+
const _hoisted_2$r = { class: "lupa-term-checkbox-label" };
|
|
11375
|
+
const _hoisted_3$i = { class: "lupa-term-label" };
|
|
11376
|
+
const _hoisted_4$d = {
|
|
11377
11377
|
key: 0,
|
|
11378
11378
|
class: "lupa-term-count"
|
|
11379
11379
|
};
|
|
@@ -11381,7 +11381,7 @@ const _hoisted_5$6 = {
|
|
|
11381
11381
|
key: 0,
|
|
11382
11382
|
class: "lupa-facet-level"
|
|
11383
11383
|
};
|
|
11384
|
-
const _sfc_main$
|
|
11384
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
11385
11385
|
__name: "HierarchyFacetLevel",
|
|
11386
11386
|
props: {
|
|
11387
11387
|
options: {},
|
|
@@ -11427,14 +11427,14 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11427
11427
|
"data-cy": "lupa-facet-term",
|
|
11428
11428
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
11429
11429
|
}, [
|
|
11430
|
-
createBaseVNode("div", _hoisted_1$
|
|
11430
|
+
createBaseVNode("div", _hoisted_1$F, [
|
|
11431
11431
|
createBaseVNode("span", {
|
|
11432
11432
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
11433
11433
|
}, null, 2)
|
|
11434
11434
|
]),
|
|
11435
|
-
createBaseVNode("div", _hoisted_2$
|
|
11436
|
-
createBaseVNode("span", _hoisted_3$
|
|
11437
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
11435
|
+
createBaseVNode("div", _hoisted_2$r, [
|
|
11436
|
+
createBaseVNode("span", _hoisted_3$i, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
11437
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$d, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
11438
11438
|
])
|
|
11439
11439
|
]),
|
|
11440
11440
|
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
|
|
@@ -11453,13 +11453,13 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11453
11453
|
};
|
|
11454
11454
|
}
|
|
11455
11455
|
});
|
|
11456
|
-
const _hoisted_1$
|
|
11456
|
+
const _hoisted_1$E = {
|
|
11457
11457
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
11458
11458
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
11459
11459
|
};
|
|
11460
|
-
const _hoisted_2$
|
|
11461
|
-
const _hoisted_3$
|
|
11462
|
-
const _sfc_main$
|
|
11460
|
+
const _hoisted_2$q = { key: 0 };
|
|
11461
|
+
const _hoisted_3$h = ["placeholder"];
|
|
11462
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
11463
11463
|
__name: "HierarchyFacet",
|
|
11464
11464
|
props: {
|
|
11465
11465
|
options: {},
|
|
@@ -11509,19 +11509,19 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
11509
11509
|
showAll.value = true;
|
|
11510
11510
|
};
|
|
11511
11511
|
return (_ctx, _cache) => {
|
|
11512
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11513
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11512
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
11513
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$q, [
|
|
11514
11514
|
withDirectives(createBaseVNode("input", {
|
|
11515
11515
|
class: "lupa-term-filter",
|
|
11516
11516
|
"data-cy": "lupa-term-filter",
|
|
11517
11517
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
11518
11518
|
placeholder: _ctx.options.labels.facetFilter
|
|
11519
|
-
}, null, 8, _hoisted_3$
|
|
11519
|
+
}, null, 8, _hoisted_3$h), [
|
|
11520
11520
|
[vModelText, termFilter.value]
|
|
11521
11521
|
])
|
|
11522
11522
|
])) : createCommentVNode("", true),
|
|
11523
11523
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
11524
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11524
|
+
return openBlock(), createBlock(_sfc_main$I, {
|
|
11525
11525
|
key: item.title,
|
|
11526
11526
|
options: _ctx.options,
|
|
11527
11527
|
item,
|
|
@@ -11541,20 +11541,20 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
11541
11541
|
};
|
|
11542
11542
|
}
|
|
11543
11543
|
});
|
|
11544
|
-
const _hoisted_1$
|
|
11545
|
-
const _hoisted_2$
|
|
11544
|
+
const _hoisted_1$D = { class: "lupa-facet-label-text" };
|
|
11545
|
+
const _hoisted_2$p = {
|
|
11546
11546
|
key: 0,
|
|
11547
11547
|
class: "lupa-facet-content",
|
|
11548
11548
|
"data-cy": "lupa-facet-content"
|
|
11549
11549
|
};
|
|
11550
11550
|
const __default__$2 = {
|
|
11551
11551
|
components: {
|
|
11552
|
-
TermFacet: _sfc_main$
|
|
11553
|
-
StatsFacet: _sfc_main$
|
|
11554
|
-
HierarchyFacet: _sfc_main$
|
|
11552
|
+
TermFacet: _sfc_main$K,
|
|
11553
|
+
StatsFacet: _sfc_main$J,
|
|
11554
|
+
HierarchyFacet: _sfc_main$H
|
|
11555
11555
|
}
|
|
11556
11556
|
};
|
|
11557
|
-
const _sfc_main$
|
|
11557
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
11558
11558
|
__name: "FacetDisplay",
|
|
11559
11559
|
props: {
|
|
11560
11560
|
options: {},
|
|
@@ -11665,12 +11665,12 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
11665
11665
|
"data-cy": "lupa-search-result-facet-label",
|
|
11666
11666
|
onClick: toggleFacet
|
|
11667
11667
|
}, [
|
|
11668
|
-
createBaseVNode("div", _hoisted_1$
|
|
11668
|
+
createBaseVNode("div", _hoisted_1$D, toDisplayString(facet.value.label), 1),
|
|
11669
11669
|
createBaseVNode("div", {
|
|
11670
11670
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
11671
11671
|
}, null, 2)
|
|
11672
11672
|
], 2),
|
|
11673
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11673
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, [
|
|
11674
11674
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
11675
11675
|
facet: facet.value,
|
|
11676
11676
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -11688,12 +11688,12 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
11688
11688
|
};
|
|
11689
11689
|
}
|
|
11690
11690
|
}));
|
|
11691
|
-
const _hoisted_1$
|
|
11692
|
-
const _hoisted_2$
|
|
11691
|
+
const _hoisted_1$C = { class: "lupa-search-result-facet-section" };
|
|
11692
|
+
const _hoisted_2$o = {
|
|
11693
11693
|
key: 0,
|
|
11694
11694
|
class: "lupa-facets-title"
|
|
11695
11695
|
};
|
|
11696
|
-
const _sfc_main$
|
|
11696
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
11697
11697
|
__name: "FacetList",
|
|
11698
11698
|
props: {
|
|
11699
11699
|
options: {},
|
|
@@ -11727,14 +11727,14 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
11727
11727
|
};
|
|
11728
11728
|
return (_ctx, _cache) => {
|
|
11729
11729
|
var _a;
|
|
11730
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11731
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11730
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
11731
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$o, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
11732
11732
|
createBaseVNode("div", {
|
|
11733
11733
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
11734
11734
|
}, [
|
|
11735
11735
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
11736
11736
|
var _a2;
|
|
11737
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11737
|
+
return openBlock(), createBlock(_sfc_main$G, {
|
|
11738
11738
|
key: facet.key,
|
|
11739
11739
|
facet,
|
|
11740
11740
|
currentFilters: currentFiltersValue.value,
|
|
@@ -11749,8 +11749,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
11749
11749
|
};
|
|
11750
11750
|
}
|
|
11751
11751
|
});
|
|
11752
|
-
const _hoisted_1$
|
|
11753
|
-
const _sfc_main$
|
|
11752
|
+
const _hoisted_1$B = { class: "lupa-search-result-facets" };
|
|
11753
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
11754
11754
|
__name: "Facets",
|
|
11755
11755
|
props: {
|
|
11756
11756
|
options: {},
|
|
@@ -11796,8 +11796,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
11796
11796
|
paramStore.removeParameters({ paramsToRemove: [param] });
|
|
11797
11797
|
};
|
|
11798
11798
|
return (_ctx, _cache) => {
|
|
11799
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11800
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
11799
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
11800
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$F, {
|
|
11801
11801
|
key: 0,
|
|
11802
11802
|
options: _ctx.options,
|
|
11803
11803
|
facets: regularFacets.value,
|
|
@@ -11811,11 +11811,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
11811
11811
|
};
|
|
11812
11812
|
}
|
|
11813
11813
|
});
|
|
11814
|
-
const _hoisted_1$
|
|
11814
|
+
const _hoisted_1$A = {
|
|
11815
11815
|
id: "lupa-search-result-filters",
|
|
11816
11816
|
class: "lupa-search-result-filters"
|
|
11817
11817
|
};
|
|
11818
|
-
const _sfc_main$
|
|
11818
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
11819
11819
|
__name: "SearchResultsFilters",
|
|
11820
11820
|
props: {
|
|
11821
11821
|
options: {},
|
|
@@ -11844,19 +11844,19 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
11844
11844
|
__expose({ fetch: fetch2 });
|
|
11845
11845
|
return (_ctx, _cache) => {
|
|
11846
11846
|
var _a;
|
|
11847
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11848
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
11847
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
11848
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$N, {
|
|
11849
11849
|
key: 0,
|
|
11850
11850
|
options: _ctx.options.currentFilters,
|
|
11851
11851
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
11852
11852
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
11853
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
11853
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$L, {
|
|
11854
11854
|
key: 1,
|
|
11855
11855
|
options: _ctx.options.categories,
|
|
11856
11856
|
ref_key: "categoryFilters",
|
|
11857
11857
|
ref: categoryFilters
|
|
11858
11858
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
11859
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
11859
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$E, {
|
|
11860
11860
|
key: 2,
|
|
11861
11861
|
options: _ctx.options.facets
|
|
11862
11862
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -11864,20 +11864,20 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
11864
11864
|
};
|
|
11865
11865
|
}
|
|
11866
11866
|
});
|
|
11867
|
-
const _hoisted_1$
|
|
11867
|
+
const _hoisted_1$z = {
|
|
11868
11868
|
key: 0,
|
|
11869
11869
|
class: "lupa-mobile-filter-sidebar"
|
|
11870
11870
|
};
|
|
11871
|
-
const _hoisted_2$
|
|
11872
|
-
const _hoisted_3$
|
|
11873
|
-
const _hoisted_4$
|
|
11871
|
+
const _hoisted_2$n = ["onClick"];
|
|
11872
|
+
const _hoisted_3$g = { class: "lupa-mobile-sidebar-content" };
|
|
11873
|
+
const _hoisted_4$c = { class: "lupa-sidebar-top" };
|
|
11874
11874
|
const _hoisted_5$5 = { class: "lupa-sidebar-title" };
|
|
11875
11875
|
const _hoisted_6$3 = {
|
|
11876
11876
|
key: 0,
|
|
11877
11877
|
class: "lupa-sidebar-filter-count"
|
|
11878
11878
|
};
|
|
11879
11879
|
const _hoisted_7$3 = { class: "lupa-sidebar-filter-options" };
|
|
11880
|
-
const _sfc_main$
|
|
11880
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
11881
11881
|
__name: "MobileFilterSidebar",
|
|
11882
11882
|
props: {
|
|
11883
11883
|
options: {}
|
|
@@ -11903,13 +11903,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11903
11903
|
searchResultStore.setSidebarState({ visible: false });
|
|
11904
11904
|
};
|
|
11905
11905
|
return (_ctx, _cache) => {
|
|
11906
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11906
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
11907
11907
|
createBaseVNode("div", {
|
|
11908
11908
|
class: "lupa-sidebar-close",
|
|
11909
11909
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
11910
|
-
}, null, 8, _hoisted_2$
|
|
11911
|
-
createBaseVNode("div", _hoisted_3$
|
|
11912
|
-
createBaseVNode("div", _hoisted_4$
|
|
11910
|
+
}, null, 8, _hoisted_2$n),
|
|
11911
|
+
createBaseVNode("div", _hoisted_3$g, [
|
|
11912
|
+
createBaseVNode("div", _hoisted_4$c, [
|
|
11913
11913
|
createBaseVNode("div", _hoisted_5$5, [
|
|
11914
11914
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
11915
11915
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$3, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
@@ -11920,7 +11920,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11920
11920
|
})
|
|
11921
11921
|
]),
|
|
11922
11922
|
createBaseVNode("div", _hoisted_7$3, [
|
|
11923
|
-
createVNode(_sfc_main$
|
|
11923
|
+
createVNode(_sfc_main$D, {
|
|
11924
11924
|
options: _ctx.options,
|
|
11925
11925
|
expandable: isActiveFiltersExpanded.value
|
|
11926
11926
|
}, null, 8, ["options", "expandable"])
|
|
@@ -11930,14 +11930,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11930
11930
|
};
|
|
11931
11931
|
}
|
|
11932
11932
|
});
|
|
11933
|
-
const _hoisted_1$
|
|
11934
|
-
const _hoisted_2$
|
|
11935
|
-
const _hoisted_3$
|
|
11933
|
+
const _hoisted_1$y = { id: "lupa-search-results-breadcrumbs" };
|
|
11934
|
+
const _hoisted_2$m = ["href", "onClick"];
|
|
11935
|
+
const _hoisted_3$f = {
|
|
11936
11936
|
key: 1,
|
|
11937
11937
|
class: "lupa-search-results-breadcrumb-text"
|
|
11938
11938
|
};
|
|
11939
|
-
const _hoisted_4$
|
|
11940
|
-
const _sfc_main$
|
|
11939
|
+
const _hoisted_4$b = { key: 2 };
|
|
11940
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
11941
11941
|
__name: "SearchResultsBreadcrumbs",
|
|
11942
11942
|
props: {
|
|
11943
11943
|
breadcrumbs: {}
|
|
@@ -11962,7 +11962,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11962
11962
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
11963
11963
|
};
|
|
11964
11964
|
return (_ctx, _cache) => {
|
|
11965
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11965
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
11966
11966
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
11967
11967
|
return openBlock(), createElementBlock("span", {
|
|
11968
11968
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -11976,19 +11976,19 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11976
11976
|
var _a;
|
|
11977
11977
|
return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
11978
11978
|
}
|
|
11979
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
11980
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
11979
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$m)) : (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
11980
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$b, " / ")) : createCommentVNode("", true)
|
|
11981
11981
|
]);
|
|
11982
11982
|
}), 128))
|
|
11983
11983
|
]);
|
|
11984
11984
|
};
|
|
11985
11985
|
}
|
|
11986
11986
|
});
|
|
11987
|
-
const _hoisted_1$
|
|
11987
|
+
const _hoisted_1$x = {
|
|
11988
11988
|
id: "lupa-search-result-filters",
|
|
11989
11989
|
class: "lupa-search-result-filters"
|
|
11990
11990
|
};
|
|
11991
|
-
const _sfc_main$
|
|
11991
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
11992
11992
|
__name: "FiltersTopDropdown",
|
|
11993
11993
|
props: {
|
|
11994
11994
|
options: {}
|
|
@@ -11996,8 +11996,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
11996
11996
|
setup(__props) {
|
|
11997
11997
|
return (_ctx, _cache) => {
|
|
11998
11998
|
var _a;
|
|
11999
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12000
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
11999
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
12000
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$E, {
|
|
12001
12001
|
key: 0,
|
|
12002
12002
|
options: _ctx.options.facets,
|
|
12003
12003
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -12007,8 +12007,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
12007
12007
|
};
|
|
12008
12008
|
}
|
|
12009
12009
|
});
|
|
12010
|
-
const _hoisted_1$
|
|
12011
|
-
const _sfc_main$
|
|
12010
|
+
const _hoisted_1$w = { id: "lupa-search-results-layout-selection" };
|
|
12011
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
12012
12012
|
__name: "SearchResultsLayoutSelection",
|
|
12013
12013
|
setup(__props) {
|
|
12014
12014
|
const searchResultStore = useSearchResultStore();
|
|
@@ -12019,7 +12019,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
12019
12019
|
searchResultStore.setLayout(layout2);
|
|
12020
12020
|
};
|
|
12021
12021
|
return (_ctx, _cache) => {
|
|
12022
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12022
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
12023
12023
|
createBaseVNode("div", {
|
|
12024
12024
|
class: normalizeClass([
|
|
12025
12025
|
"lupa-layout-selection-grid",
|
|
@@ -12041,11 +12041,11 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
12041
12041
|
};
|
|
12042
12042
|
}
|
|
12043
12043
|
});
|
|
12044
|
-
const _hoisted_1$
|
|
12044
|
+
const _hoisted_1$v = {
|
|
12045
12045
|
key: 0,
|
|
12046
12046
|
class: "lupa-mobile-toggle-filter-count"
|
|
12047
12047
|
};
|
|
12048
|
-
const _sfc_main$
|
|
12048
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
12049
12049
|
__name: "SearchResultsMobileToggle",
|
|
12050
12050
|
props: {
|
|
12051
12051
|
label: {},
|
|
@@ -12063,26 +12063,26 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
12063
12063
|
onClick: handleMobileToggle
|
|
12064
12064
|
}, [
|
|
12065
12065
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
12066
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
12066
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$v, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
12067
12067
|
], 2);
|
|
12068
12068
|
};
|
|
12069
12069
|
}
|
|
12070
12070
|
});
|
|
12071
|
-
const _hoisted_1$
|
|
12071
|
+
const _hoisted_1$u = {
|
|
12072
12072
|
key: 0,
|
|
12073
12073
|
id: "lupa-search-results-page-select",
|
|
12074
12074
|
"data-cy": "lupa-search-results-page-select"
|
|
12075
12075
|
};
|
|
12076
|
-
const _hoisted_2$
|
|
12076
|
+
const _hoisted_2$l = {
|
|
12077
12077
|
key: 0,
|
|
12078
12078
|
class: "lupa-page-number-separator"
|
|
12079
12079
|
};
|
|
12080
|
-
const _hoisted_3$
|
|
12081
|
-
const _hoisted_4$
|
|
12080
|
+
const _hoisted_3$e = ["onClick"];
|
|
12081
|
+
const _hoisted_4$a = {
|
|
12082
12082
|
key: 0,
|
|
12083
12083
|
class: "lupa-page-number-separator"
|
|
12084
12084
|
};
|
|
12085
|
-
const _sfc_main$
|
|
12085
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
12086
12086
|
__name: "SearchResultsPageSelect",
|
|
12087
12087
|
props: {
|
|
12088
12088
|
lastPageLabel: {},
|
|
@@ -12144,7 +12144,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12144
12144
|
}
|
|
12145
12145
|
};
|
|
12146
12146
|
return (_ctx, _cache) => {
|
|
12147
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
12147
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
12148
12148
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
12149
12149
|
key: 0,
|
|
12150
12150
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -12155,7 +12155,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12155
12155
|
class: "lupa-page-number lupa-page-number-first",
|
|
12156
12156
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
12157
12157
|
}, " 1 "),
|
|
12158
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12158
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, "...")) : createCommentVNode("", true)
|
|
12159
12159
|
], 64)) : createCommentVNode("", true),
|
|
12160
12160
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
12161
12161
|
return openBlock(), createElementBlock("div", {
|
|
@@ -12166,10 +12166,10 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12166
12166
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
12167
12167
|
]),
|
|
12168
12168
|
"data-cy": "lupa-page-number"
|
|
12169
|
-
}, toDisplayString(page), 11, _hoisted_3$
|
|
12169
|
+
}, toDisplayString(page), 11, _hoisted_3$e);
|
|
12170
12170
|
}), 128)),
|
|
12171
12171
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
12172
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
12172
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$a, "...")) : createCommentVNode("", true),
|
|
12173
12173
|
createBaseVNode("div", {
|
|
12174
12174
|
class: "lupa-page-number lupa-page-number-last",
|
|
12175
12175
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -12188,13 +12188,13 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12188
12188
|
};
|
|
12189
12189
|
}
|
|
12190
12190
|
});
|
|
12191
|
-
const _hoisted_1$
|
|
12191
|
+
const _hoisted_1$t = {
|
|
12192
12192
|
id: "lupa-search-results-page-size",
|
|
12193
12193
|
"data-cy": "lupa-search-results-page-size"
|
|
12194
12194
|
};
|
|
12195
|
-
const _hoisted_2$
|
|
12196
|
-
const _hoisted_3$
|
|
12197
|
-
const _sfc_main$
|
|
12195
|
+
const _hoisted_2$k = { id: "lupa-select" };
|
|
12196
|
+
const _hoisted_3$d = { class: "lupa-select-label" };
|
|
12197
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
12198
12198
|
__name: "SearchResultsPageSize",
|
|
12199
12199
|
props: {
|
|
12200
12200
|
label: {},
|
|
@@ -12211,9 +12211,9 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
12211
12211
|
});
|
|
12212
12212
|
};
|
|
12213
12213
|
return (_ctx, _cache) => {
|
|
12214
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12215
|
-
createBaseVNode("div", _hoisted_2$
|
|
12216
|
-
createBaseVNode("label", _hoisted_3$
|
|
12214
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
12215
|
+
createBaseVNode("div", _hoisted_2$k, [
|
|
12216
|
+
createBaseVNode("label", _hoisted_3$d, toDisplayString(_ctx.label), 1),
|
|
12217
12217
|
createBaseVNode("select", {
|
|
12218
12218
|
class: "lupa-select-dropdown",
|
|
12219
12219
|
"data-cy": "lupa-page-size-select-dropdown",
|
|
@@ -12230,14 +12230,14 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
12230
12230
|
};
|
|
12231
12231
|
}
|
|
12232
12232
|
});
|
|
12233
|
-
const _hoisted_1$
|
|
12233
|
+
const _hoisted_1$s = {
|
|
12234
12234
|
id: "lupa-search-results-sort",
|
|
12235
12235
|
class: "lupa-search-results-sort"
|
|
12236
12236
|
};
|
|
12237
|
-
const _hoisted_2$
|
|
12238
|
-
const _hoisted_3$
|
|
12239
|
-
const _hoisted_4$
|
|
12240
|
-
const _sfc_main$
|
|
12237
|
+
const _hoisted_2$j = { id: "lupa-select" };
|
|
12238
|
+
const _hoisted_3$c = { class: "lupa-select-label" };
|
|
12239
|
+
const _hoisted_4$9 = ["value"];
|
|
12240
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
12241
12241
|
__name: "SearchResultsSort",
|
|
12242
12242
|
props: {
|
|
12243
12243
|
options: {}
|
|
@@ -12279,9 +12279,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
12279
12279
|
});
|
|
12280
12280
|
};
|
|
12281
12281
|
return (_ctx, _cache) => {
|
|
12282
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12283
|
-
createBaseVNode("div", _hoisted_2$
|
|
12284
|
-
createBaseVNode("label", _hoisted_3$
|
|
12282
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
12283
|
+
createBaseVNode("div", _hoisted_2$j, [
|
|
12284
|
+
createBaseVNode("label", _hoisted_3$c, toDisplayString(_ctx.options.label), 1),
|
|
12285
12285
|
withDirectives(createBaseVNode("select", {
|
|
12286
12286
|
class: "lupa-select-dropdown",
|
|
12287
12287
|
"data-cy": "lupa-sort-select-dropdown",
|
|
@@ -12293,7 +12293,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
12293
12293
|
return openBlock(), createElementBlock("option", {
|
|
12294
12294
|
key: option.key,
|
|
12295
12295
|
value: option.key
|
|
12296
|
-
}, toDisplayString(option.label), 9, _hoisted_4$
|
|
12296
|
+
}, toDisplayString(option.label), 9, _hoisted_4$9);
|
|
12297
12297
|
}), 128))
|
|
12298
12298
|
], 544), [
|
|
12299
12299
|
[vModelSelect, selectedKey.value]
|
|
@@ -12303,14 +12303,14 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
12303
12303
|
};
|
|
12304
12304
|
}
|
|
12305
12305
|
});
|
|
12306
|
-
const _hoisted_1$
|
|
12307
|
-
const _hoisted_2$
|
|
12308
|
-
const _hoisted_3$
|
|
12309
|
-
const _hoisted_4$
|
|
12306
|
+
const _hoisted_1$r = { class: "lupa-toolbar-left" };
|
|
12307
|
+
const _hoisted_2$i = { key: 1 };
|
|
12308
|
+
const _hoisted_3$b = { key: 3 };
|
|
12309
|
+
const _hoisted_4$8 = { key: 5 };
|
|
12310
12310
|
const _hoisted_5$4 = { class: "lupa-toolbar-right" };
|
|
12311
12311
|
const _hoisted_6$2 = { key: 1 };
|
|
12312
12312
|
const _hoisted_7$2 = { key: 3 };
|
|
12313
|
-
const _sfc_main$
|
|
12313
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
12314
12314
|
__name: "SearchResultsToolbar",
|
|
12315
12315
|
props: {
|
|
12316
12316
|
options: {},
|
|
@@ -12407,32 +12407,32 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
12407
12407
|
id: "lupa-search-results-toolbar",
|
|
12408
12408
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
12409
12409
|
}, [
|
|
12410
|
-
createBaseVNode("div", _hoisted_1$
|
|
12411
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
12412
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
12410
|
+
createBaseVNode("div", _hoisted_1$r, [
|
|
12411
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$z, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$i)),
|
|
12412
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
12413
12413
|
key: 2,
|
|
12414
12414
|
label: searchSummaryLabel.value,
|
|
12415
12415
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
12416
12416
|
onClear: handleClearAll
|
|
12417
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
12418
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
12417
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$b)),
|
|
12418
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$x, {
|
|
12419
12419
|
key: 4,
|
|
12420
12420
|
options: paginationOptions.value.pageSelect,
|
|
12421
12421
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
12422
12422
|
"first-page-label": paginationOptions.value.labels.showLess
|
|
12423
|
-
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
12423
|
+
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$8))
|
|
12424
12424
|
]),
|
|
12425
12425
|
createBaseVNode("div", _hoisted_5$4, [
|
|
12426
|
-
createVNode(_sfc_main$
|
|
12426
|
+
createVNode(_sfc_main$y, {
|
|
12427
12427
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
12428
12428
|
"show-filter-count": showMobileFilterCount.value
|
|
12429
12429
|
}, null, 8, ["label", "show-filter-count"]),
|
|
12430
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
12430
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$w, {
|
|
12431
12431
|
key: 0,
|
|
12432
12432
|
options: paginationOptions.value.pageSize,
|
|
12433
12433
|
label: paginationOptions.value.labels.pageSize
|
|
12434
12434
|
}, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$2)),
|
|
12435
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
12435
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$v, {
|
|
12436
12436
|
key: 2,
|
|
12437
12437
|
options: sortOptions.value
|
|
12438
12438
|
}, null, 8, ["options"])) : (openBlock(), createElementBlock("div", _hoisted_7$2))
|
|
@@ -12441,6 +12441,58 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
12441
12441
|
};
|
|
12442
12442
|
}
|
|
12443
12443
|
});
|
|
12444
|
+
const _hoisted_1$q = { class: "lupa-badge-title" };
|
|
12445
|
+
const _hoisted_2$h = ["src"];
|
|
12446
|
+
const _hoisted_3$a = { key: 1 };
|
|
12447
|
+
const _hoisted_4$7 = {
|
|
12448
|
+
key: 0,
|
|
12449
|
+
class: "lupa-badge-full-text"
|
|
12450
|
+
};
|
|
12451
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
12452
|
+
__name: "SearchResultGeneratedBadge",
|
|
12453
|
+
props: {
|
|
12454
|
+
options: {},
|
|
12455
|
+
badge: {}
|
|
12456
|
+
},
|
|
12457
|
+
setup(__props) {
|
|
12458
|
+
const props = __props;
|
|
12459
|
+
const image = computed(() => {
|
|
12460
|
+
var _a, _b, _c;
|
|
12461
|
+
return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.image) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : "";
|
|
12462
|
+
});
|
|
12463
|
+
const showTitle = computed(() => {
|
|
12464
|
+
var _a, _b, _c;
|
|
12465
|
+
return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.showTitle) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : true;
|
|
12466
|
+
});
|
|
12467
|
+
const hasAdditionalText = computed(() => {
|
|
12468
|
+
var _a, _b;
|
|
12469
|
+
return Boolean((_a = props.badge) == null ? void 0 : _a.additionalText) && typeof ((_b = props.badge) == null ? void 0 : _b.additionalText) === "string";
|
|
12470
|
+
});
|
|
12471
|
+
const hasTitleText = computed(() => {
|
|
12472
|
+
var _a, _b;
|
|
12473
|
+
return Boolean((_a = props.badge) == null ? void 0 : _a.titleText) && typeof ((_b = props.badge) == null ? void 0 : _b.titleText) === "string";
|
|
12474
|
+
});
|
|
12475
|
+
const customClassName = computed(() => {
|
|
12476
|
+
var _a, _b, _c;
|
|
12477
|
+
return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.customClass) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : "";
|
|
12478
|
+
});
|
|
12479
|
+
return (_ctx, _cache) => {
|
|
12480
|
+
return openBlock(), createElementBlock("div", {
|
|
12481
|
+
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
12482
|
+
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
12483
|
+
}, [
|
|
12484
|
+
createBaseVNode("span", _hoisted_1$q, [
|
|
12485
|
+
image.value ? (openBlock(), createElementBlock("img", {
|
|
12486
|
+
key: 0,
|
|
12487
|
+
src: image.value
|
|
12488
|
+
}, null, 8, _hoisted_2$h)) : createCommentVNode("", true),
|
|
12489
|
+
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$a, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
12490
|
+
]),
|
|
12491
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$7, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
12492
|
+
], 6);
|
|
12493
|
+
};
|
|
12494
|
+
}
|
|
12495
|
+
});
|
|
12444
12496
|
const _hoisted_1$p = { class: "lupa-generated-badges" };
|
|
12445
12497
|
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
12446
12498
|
__name: "SearchResultGeneratedBadges",
|
|
@@ -12468,10 +12520,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
12468
12520
|
})).filter((b) => Boolean(b.id));
|
|
12469
12521
|
});
|
|
12470
12522
|
return (_ctx, _cache) => {
|
|
12471
|
-
const _component_SearchResultGeneratedBadge = resolveComponent("SearchResultGeneratedBadge");
|
|
12472
12523
|
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
12473
12524
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
12474
|
-
return openBlock(), createBlock(
|
|
12525
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
12475
12526
|
key: badge.id,
|
|
12476
12527
|
badge,
|
|
12477
12528
|
options: _ctx.options
|
|
@@ -12634,7 +12685,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
12634
12685
|
badge
|
|
12635
12686
|
}, null, 8, ["badge"]);
|
|
12636
12687
|
}), 128)),
|
|
12637
|
-
|
|
12688
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$s, {
|
|
12638
12689
|
key: 0,
|
|
12639
12690
|
options: _ctx.options
|
|
12640
12691
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -12651,7 +12702,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
12651
12702
|
},
|
|
12652
12703
|
setup(__props) {
|
|
12653
12704
|
return (_ctx, _cache) => {
|
|
12654
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12705
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
12655
12706
|
item: _ctx.item,
|
|
12656
12707
|
options: _ctx.options,
|
|
12657
12708
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -13732,17 +13783,17 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13732
13783
|
class: "lupa-loader"
|
|
13733
13784
|
})) : createCommentVNode("", true),
|
|
13734
13785
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
13735
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13786
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$A, {
|
|
13736
13787
|
key: 0,
|
|
13737
13788
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
13738
13789
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13739
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13790
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$u, {
|
|
13740
13791
|
key: 1,
|
|
13741
13792
|
class: "lupa-toolbar-mobile",
|
|
13742
13793
|
options: _ctx.options,
|
|
13743
13794
|
"pagination-location": "top"
|
|
13744
13795
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13745
|
-
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
13796
|
+
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$N, {
|
|
13746
13797
|
key: 2,
|
|
13747
13798
|
class: normalizeClass(currentFiltersClass.value),
|
|
13748
13799
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -13756,7 +13807,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13756
13807
|
sdkOptions: _ctx.options.options
|
|
13757
13808
|
}, null, 8, ["options", "sdkOptions"]),
|
|
13758
13809
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
13759
|
-
createVNode(_sfc_main$
|
|
13810
|
+
createVNode(_sfc_main$u, {
|
|
13760
13811
|
class: "lupa-toolbar-top",
|
|
13761
13812
|
options: _ctx.options,
|
|
13762
13813
|
"pagination-location": "top"
|
|
@@ -13786,7 +13837,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13786
13837
|
onClick: goToFirstPage
|
|
13787
13838
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
13788
13839
|
])) : createCommentVNode("", true),
|
|
13789
|
-
createVNode(_sfc_main$
|
|
13840
|
+
createVNode(_sfc_main$u, {
|
|
13790
13841
|
class: "lupa-toolbar-bottom",
|
|
13791
13842
|
options: _ctx.options,
|
|
13792
13843
|
"pagination-location": "bottom"
|
|
@@ -13858,7 +13909,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
13858
13909
|
onClick: handleNavigationBack
|
|
13859
13910
|
}, toDisplayString(backTitle.value), 9, _hoisted_3$1)
|
|
13860
13911
|
])) : createCommentVNode("", true),
|
|
13861
|
-
createVNode(_sfc_main$
|
|
13912
|
+
createVNode(_sfc_main$u, {
|
|
13862
13913
|
class: "lupa-toolbar-mobile",
|
|
13863
13914
|
"pagination-location": "top",
|
|
13864
13915
|
options: _ctx.options
|
|
@@ -14028,7 +14079,6 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
14028
14079
|
watch(searchString, () => handleParamsChange());
|
|
14029
14080
|
const handleParamsChange = () => {
|
|
14030
14081
|
var _a, _b;
|
|
14031
|
-
console.log("search", searchString.value, mounted.value);
|
|
14032
14082
|
if (props.initialData && !mounted.value) {
|
|
14033
14083
|
return;
|
|
14034
14084
|
}
|
|
@@ -14070,8 +14120,8 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
14070
14120
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
14071
14121
|
}, [
|
|
14072
14122
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
14073
|
-
createVNode(_sfc_main$
|
|
14074
|
-
createVNode(_sfc_main$
|
|
14123
|
+
createVNode(_sfc_main$R, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14124
|
+
createVNode(_sfc_main$P, {
|
|
14075
14125
|
"show-summary": true,
|
|
14076
14126
|
options: _ctx.options,
|
|
14077
14127
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
@@ -14081,24 +14131,24 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
14081
14131
|
key: 1,
|
|
14082
14132
|
options: _ctx.options
|
|
14083
14133
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14084
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
14134
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$C, {
|
|
14085
14135
|
key: 2,
|
|
14086
14136
|
options: _ctx.options.filters
|
|
14087
14137
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14088
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
14138
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$B, {
|
|
14089
14139
|
key: 3,
|
|
14090
14140
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
14091
14141
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
14092
14142
|
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
|
|
14093
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14143
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$D, {
|
|
14094
14144
|
key: 0,
|
|
14095
14145
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
14096
14146
|
ref_key: "searchResultsFilters",
|
|
14097
14147
|
ref: searchResultsFilters
|
|
14098
14148
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14099
14149
|
createBaseVNode("div", _hoisted_3, [
|
|
14100
|
-
createVNode(_sfc_main$
|
|
14101
|
-
createVNode(_sfc_main$
|
|
14150
|
+
createVNode(_sfc_main$R, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14151
|
+
createVNode(_sfc_main$P, {
|
|
14102
14152
|
options: _ctx.options,
|
|
14103
14153
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
14104
14154
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -14113,13 +14163,13 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
14113
14163
|
}, 8, ["options", "ssr"])
|
|
14114
14164
|
])
|
|
14115
14165
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
14116
|
-
createVNode(_sfc_main$
|
|
14117
|
-
createVNode(_sfc_main$
|
|
14166
|
+
createVNode(_sfc_main$R, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14167
|
+
createVNode(_sfc_main$P, {
|
|
14118
14168
|
options: _ctx.options,
|
|
14119
14169
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
14120
14170
|
}, null, 8, ["options", "is-product-list"]),
|
|
14121
14171
|
createBaseVNode("div", _hoisted_4, [
|
|
14122
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14172
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$D, {
|
|
14123
14173
|
key: 0,
|
|
14124
14174
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
14125
14175
|
ref_key: "searchResultsFilters",
|
|
@@ -19747,7 +19797,7 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
|
19747
19797
|
onClick: withModifiers(innerClick, ["stop"])
|
|
19748
19798
|
}, [
|
|
19749
19799
|
createBaseVNode("div", _hoisted_2$1, [
|
|
19750
|
-
createVNode(_sfc_main$
|
|
19800
|
+
createVNode(_sfc_main$S, {
|
|
19751
19801
|
options: fullSearchBoxOptions.value,
|
|
19752
19802
|
"is-search-container": true,
|
|
19753
19803
|
ref_key: "searchBox",
|
|
@@ -20470,7 +20520,7 @@ const _hoisted_2 = {
|
|
|
20470
20520
|
class: "lupa-recommended-products",
|
|
20471
20521
|
"data-cy": "lupa-recommended-products"
|
|
20472
20522
|
};
|
|
20473
|
-
const _sfc_main$
|
|
20523
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
20474
20524
|
__name: "Recommendations",
|
|
20475
20525
|
props: {
|
|
20476
20526
|
options: {}
|
|
@@ -26147,7 +26197,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
26147
26197
|
};
|
|
26148
26198
|
__expose({ fetch: fetch2 });
|
|
26149
26199
|
return (_ctx, _cache) => {
|
|
26150
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26200
|
+
return openBlock(), createBlock(unref(_sfc_main$S), {
|
|
26151
26201
|
options: fullSearchBoxOptions.value,
|
|
26152
26202
|
ref_key: "searchBox",
|
|
26153
26203
|
ref: searchBox2
|
|
@@ -26403,7 +26453,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26403
26453
|
};
|
|
26404
26454
|
__expose({ fetch: fetch2 });
|
|
26405
26455
|
return (_ctx, _cache) => {
|
|
26406
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26456
|
+
return openBlock(), createBlock(unref(_sfc_main$1c), {
|
|
26407
26457
|
options: _ctx.recommendationOptions,
|
|
26408
26458
|
ref_key: "productRecommendations",
|
|
26409
26459
|
ref: productRecommendations
|