@getlupa/client 1.1.5 → 1.1.7
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 +372 -321
- package/dist/lupaSearch.js +372 -321
- package/dist/lupaSearch.mjs +372 -321
- package/dist/lupaSearch.umd.js +372 -321
- package/package.json +2 -2
package/dist/lupaSearch.js
CHANGED
|
@@ -7642,16 +7642,16 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
7642
7642
|
resetHighlightIndex
|
|
7643
7643
|
};
|
|
7644
7644
|
});
|
|
7645
|
-
const _hoisted_1$
|
|
7646
|
-
const _hoisted_2$
|
|
7647
|
-
const _hoisted_3$
|
|
7648
|
-
const _hoisted_4$
|
|
7645
|
+
const _hoisted_1$13 = { id: "lupa-search-box-input-container" };
|
|
7646
|
+
const _hoisted_2$J = { class: "lupa-input-clear" };
|
|
7647
|
+
const _hoisted_3$v = { id: "lupa-search-box-input" };
|
|
7648
|
+
const _hoisted_4$o = ["value"];
|
|
7649
7649
|
const _hoisted_5$c = ["placeholder"];
|
|
7650
7650
|
const _hoisted_6$6 = {
|
|
7651
7651
|
key: 0,
|
|
7652
7652
|
class: "lupa-close-label"
|
|
7653
7653
|
};
|
|
7654
|
-
const _sfc_main$
|
|
7654
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
7655
7655
|
__name: "SearchBoxInput",
|
|
7656
7656
|
props: {
|
|
7657
7657
|
options: {},
|
|
@@ -7728,19 +7728,19 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
7728
7728
|
};
|
|
7729
7729
|
__expose({ focus });
|
|
7730
7730
|
return (_ctx, _cache) => {
|
|
7731
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7732
|
-
createBaseVNode("div", _hoisted_2$
|
|
7731
|
+
return openBlock(), createElementBlock("div", _hoisted_1$13, [
|
|
7732
|
+
createBaseVNode("div", _hoisted_2$J, [
|
|
7733
7733
|
createBaseVNode("div", {
|
|
7734
7734
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
7735
7735
|
onClick: clear2
|
|
7736
7736
|
}, null, 2)
|
|
7737
7737
|
]),
|
|
7738
|
-
createBaseVNode("div", _hoisted_3$
|
|
7738
|
+
createBaseVNode("div", _hoisted_3$v, [
|
|
7739
7739
|
createBaseVNode("input", {
|
|
7740
7740
|
class: "lupa-hint",
|
|
7741
7741
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
7742
7742
|
disabled: ""
|
|
7743
|
-
}, null, 8, _hoisted_4$
|
|
7743
|
+
}, null, 8, _hoisted_4$o),
|
|
7744
7744
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
7745
7745
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
7746
7746
|
}, inputAttributes.value, {
|
|
@@ -7768,7 +7768,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
7768
7768
|
};
|
|
7769
7769
|
}
|
|
7770
7770
|
});
|
|
7771
|
-
const _sfc_main$
|
|
7771
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
7772
7772
|
__name: "SearchBoxMoreResults",
|
|
7773
7773
|
props: {
|
|
7774
7774
|
labels: {},
|
|
@@ -7800,9 +7800,9 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
7800
7800
|
};
|
|
7801
7801
|
}
|
|
7802
7802
|
});
|
|
7803
|
-
const _hoisted_1$
|
|
7804
|
-
const _hoisted_2$
|
|
7805
|
-
const _sfc_main$
|
|
7803
|
+
const _hoisted_1$12 = { class: "lupa-search-box-history-item" };
|
|
7804
|
+
const _hoisted_2$I = { class: "lupa-search-box-history-item-content" };
|
|
7805
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
7806
7806
|
__name: "SearchBoxHistoryItem",
|
|
7807
7807
|
props: {
|
|
7808
7808
|
item: {},
|
|
@@ -7818,8 +7818,8 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
7818
7818
|
emit2("click", { query: props.item });
|
|
7819
7819
|
};
|
|
7820
7820
|
return (_ctx, _cache) => {
|
|
7821
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7822
|
-
createBaseVNode("div", _hoisted_2$
|
|
7821
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
7822
|
+
createBaseVNode("div", _hoisted_2$I, [
|
|
7823
7823
|
createBaseVNode("div", {
|
|
7824
7824
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
7825
7825
|
onClick: click2
|
|
@@ -7833,11 +7833,11 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
7833
7833
|
};
|
|
7834
7834
|
}
|
|
7835
7835
|
});
|
|
7836
|
-
const _hoisted_1$
|
|
7836
|
+
const _hoisted_1$11 = {
|
|
7837
7837
|
key: 0,
|
|
7838
7838
|
class: "lupa-search-box-history-panel"
|
|
7839
7839
|
};
|
|
7840
|
-
const _sfc_main$
|
|
7840
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
7841
7841
|
__name: "SearchBoxHistoryPanel",
|
|
7842
7842
|
props: {
|
|
7843
7843
|
options: {}
|
|
@@ -7878,9 +7878,9 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
7878
7878
|
}
|
|
7879
7879
|
};
|
|
7880
7880
|
return (_ctx, _cache) => {
|
|
7881
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7881
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
7882
7882
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
7883
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7883
|
+
return openBlock(), createBlock(_sfc_main$19, {
|
|
7884
7884
|
key: item,
|
|
7885
7885
|
item,
|
|
7886
7886
|
highlighted: index === highlightIndex.value,
|
|
@@ -7896,18 +7896,18 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
7896
7896
|
};
|
|
7897
7897
|
}
|
|
7898
7898
|
});
|
|
7899
|
-
const _hoisted_1
|
|
7900
|
-
const _hoisted_2$
|
|
7899
|
+
const _hoisted_1$10 = ["innerHTML"];
|
|
7900
|
+
const _hoisted_2$H = {
|
|
7901
7901
|
key: 1,
|
|
7902
7902
|
"data-cy": "lupa-suggestion-value",
|
|
7903
7903
|
class: "lupa-suggestion-value"
|
|
7904
7904
|
};
|
|
7905
|
-
const _hoisted_3$
|
|
7905
|
+
const _hoisted_3$u = {
|
|
7906
7906
|
key: 2,
|
|
7907
7907
|
class: "lupa-suggestion-facet",
|
|
7908
7908
|
"data-cy": "lupa-suggestion-facet"
|
|
7909
7909
|
};
|
|
7910
|
-
const _hoisted_4$
|
|
7910
|
+
const _hoisted_4$n = {
|
|
7911
7911
|
class: "lupa-suggestion-facet-label",
|
|
7912
7912
|
"data-cy": "lupa-suggestion-facet-label"
|
|
7913
7913
|
};
|
|
@@ -7915,7 +7915,7 @@ const _hoisted_5$b = {
|
|
|
7915
7915
|
class: "lupa-suggestion-facet-value",
|
|
7916
7916
|
"data-cy": "lupa-suggestion-facet-value"
|
|
7917
7917
|
};
|
|
7918
|
-
const _sfc_main$
|
|
7918
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
7919
7919
|
__name: "SearchBoxSuggestion",
|
|
7920
7920
|
props: {
|
|
7921
7921
|
suggestion: {},
|
|
@@ -7951,20 +7951,20 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
7951
7951
|
class: "lupa-suggestion-value",
|
|
7952
7952
|
"data-cy": "lupa-suggestion-value",
|
|
7953
7953
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
7954
|
-
}, null, 8, _hoisted_1
|
|
7955
|
-
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
7956
|
-
createBaseVNode("span", _hoisted_4$
|
|
7954
|
+
}, null, 8, _hoisted_1$10)) : (openBlock(), createElementBlock("div", _hoisted_2$H, toDisplayString(_ctx.suggestion.display), 1)),
|
|
7955
|
+
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
|
|
7956
|
+
createBaseVNode("span", _hoisted_4$n, toDisplayString(facetLabel.value), 1),
|
|
7957
7957
|
createBaseVNode("span", _hoisted_5$b, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
7958
7958
|
])) : createCommentVNode("", true)
|
|
7959
7959
|
]);
|
|
7960
7960
|
};
|
|
7961
7961
|
}
|
|
7962
7962
|
});
|
|
7963
|
-
const _hoisted_1
|
|
7963
|
+
const _hoisted_1$$ = {
|
|
7964
7964
|
id: "lupa-search-box-suggestions",
|
|
7965
7965
|
"data-cy": "lupa-search-box-suggestions"
|
|
7966
7966
|
};
|
|
7967
|
-
const _sfc_main$
|
|
7967
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
7968
7968
|
__name: "SearchBoxSuggestions",
|
|
7969
7969
|
props: {
|
|
7970
7970
|
items: {},
|
|
@@ -8024,9 +8024,9 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
8024
8024
|
});
|
|
8025
8025
|
});
|
|
8026
8026
|
return (_ctx, _cache) => {
|
|
8027
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
8027
|
+
return openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
8028
8028
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
8029
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8029
|
+
return openBlock(), createBlock(_sfc_main$17, {
|
|
8030
8030
|
key: getSuggestionKey(item),
|
|
8031
8031
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
8032
8032
|
suggestion: item,
|
|
@@ -8054,7 +8054,7 @@ const debounce$1 = (func, timeout) => {
|
|
|
8054
8054
|
}, timeout);
|
|
8055
8055
|
};
|
|
8056
8056
|
};
|
|
8057
|
-
const _sfc_main$
|
|
8057
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
8058
8058
|
__name: "SearchBoxSuggestionsWrapper",
|
|
8059
8059
|
props: {
|
|
8060
8060
|
panel: {},
|
|
@@ -8095,7 +8095,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
8095
8095
|
};
|
|
8096
8096
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
8097
8097
|
return (_ctx, _cache) => {
|
|
8098
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8098
|
+
return openBlock(), createBlock(_sfc_main$16, {
|
|
8099
8099
|
items: searchResult.value,
|
|
8100
8100
|
highlight: _ctx.panel.highlight,
|
|
8101
8101
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -8173,8 +8173,8 @@ const useDynamicDataStore = defineStore("dynamicData", () => {
|
|
|
8173
8173
|
});
|
|
8174
8174
|
return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
|
|
8175
8175
|
});
|
|
8176
|
-
const _hoisted_1$
|
|
8177
|
-
const _sfc_main$
|
|
8176
|
+
const _hoisted_1$_ = ["src"];
|
|
8177
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
8178
8178
|
__name: "ProductImage",
|
|
8179
8179
|
props: {
|
|
8180
8180
|
item: {},
|
|
@@ -8222,12 +8222,12 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
8222
8222
|
class: normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
|
|
8223
8223
|
src: finalUrl.value,
|
|
8224
8224
|
onError: replaceWithPlaceholder
|
|
8225
|
-
}, null, 42, _hoisted_1$
|
|
8225
|
+
}, null, 42, _hoisted_1$_)
|
|
8226
8226
|
], 2);
|
|
8227
8227
|
};
|
|
8228
8228
|
}
|
|
8229
8229
|
});
|
|
8230
|
-
const _sfc_main$
|
|
8230
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
8231
8231
|
__name: "SearchBoxProductImage",
|
|
8232
8232
|
props: {
|
|
8233
8233
|
item: {},
|
|
@@ -8235,7 +8235,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
8235
8235
|
},
|
|
8236
8236
|
setup(__props) {
|
|
8237
8237
|
return (_ctx, _cache) => {
|
|
8238
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8238
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
8239
8239
|
item: _ctx.item,
|
|
8240
8240
|
options: _ctx.options,
|
|
8241
8241
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -8244,12 +8244,12 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
8244
8244
|
};
|
|
8245
8245
|
}
|
|
8246
8246
|
});
|
|
8247
|
-
const _hoisted_1$
|
|
8248
|
-
const _hoisted_2$
|
|
8247
|
+
const _hoisted_1$Z = ["innerHTML"];
|
|
8248
|
+
const _hoisted_2$G = {
|
|
8249
8249
|
key: 1,
|
|
8250
8250
|
class: "lupa-search-box-product-title"
|
|
8251
8251
|
};
|
|
8252
|
-
const _sfc_main$
|
|
8252
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
8253
8253
|
__name: "SearchBoxProductTitle",
|
|
8254
8254
|
props: {
|
|
8255
8255
|
item: {},
|
|
@@ -8269,18 +8269,18 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
8269
8269
|
key: 0,
|
|
8270
8270
|
class: "lupa-search-box-product-title",
|
|
8271
8271
|
innerHTML: title.value
|
|
8272
|
-
}, null, 8, _hoisted_1$
|
|
8272
|
+
}, null, 8, _hoisted_1$Z)) : (openBlock(), createElementBlock("div", _hoisted_2$G, [
|
|
8273
8273
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
8274
8274
|
]));
|
|
8275
8275
|
};
|
|
8276
8276
|
}
|
|
8277
8277
|
});
|
|
8278
|
-
const _hoisted_1$
|
|
8279
|
-
const _hoisted_2$
|
|
8278
|
+
const _hoisted_1$Y = ["innerHTML"];
|
|
8279
|
+
const _hoisted_2$F = {
|
|
8280
8280
|
key: 1,
|
|
8281
8281
|
class: "lupa-search-box-product-description"
|
|
8282
8282
|
};
|
|
8283
|
-
const _sfc_main$
|
|
8283
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
8284
8284
|
__name: "SearchBoxProductDescription",
|
|
8285
8285
|
props: {
|
|
8286
8286
|
item: {},
|
|
@@ -8300,12 +8300,12 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
8300
8300
|
key: 0,
|
|
8301
8301
|
class: "lupa-search-box-product-description",
|
|
8302
8302
|
innerHTML: description.value
|
|
8303
|
-
}, null, 8, _hoisted_1$
|
|
8303
|
+
}, null, 8, _hoisted_1$Y)) : (openBlock(), createElementBlock("div", _hoisted_2$F, toDisplayString(description.value), 1));
|
|
8304
8304
|
};
|
|
8305
8305
|
}
|
|
8306
8306
|
});
|
|
8307
|
-
const _hoisted_1$
|
|
8308
|
-
const _sfc_main
|
|
8307
|
+
const _hoisted_1$X = { class: "lupa-search-box-product-price" };
|
|
8308
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
8309
8309
|
__name: "SearchBoxProductPrice",
|
|
8310
8310
|
props: {
|
|
8311
8311
|
item: {},
|
|
@@ -8323,14 +8323,14 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
8323
8323
|
);
|
|
8324
8324
|
});
|
|
8325
8325
|
return (_ctx, _cache) => {
|
|
8326
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8326
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
8327
8327
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
8328
8328
|
]);
|
|
8329
8329
|
};
|
|
8330
8330
|
}
|
|
8331
8331
|
});
|
|
8332
|
-
const _hoisted_1$
|
|
8333
|
-
const _sfc_main
|
|
8332
|
+
const _hoisted_1$W = { class: "lupa-search-box-product-regular-price" };
|
|
8333
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
8334
8334
|
__name: "SearchBoxProductRegularPrice",
|
|
8335
8335
|
props: {
|
|
8336
8336
|
item: {},
|
|
@@ -8348,16 +8348,16 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
8348
8348
|
);
|
|
8349
8349
|
});
|
|
8350
8350
|
return (_ctx, _cache) => {
|
|
8351
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8351
|
+
return openBlock(), createElementBlock("div", _hoisted_1$W, toDisplayString(price.value), 1);
|
|
8352
8352
|
};
|
|
8353
8353
|
}
|
|
8354
8354
|
});
|
|
8355
|
-
const _hoisted_1$
|
|
8356
|
-
const _hoisted_2$
|
|
8357
|
-
const _hoisted_3$
|
|
8358
|
-
const _hoisted_4$
|
|
8355
|
+
const _hoisted_1$V = ["innerHTML"];
|
|
8356
|
+
const _hoisted_2$E = { key: 0 };
|
|
8357
|
+
const _hoisted_3$t = { key: 1 };
|
|
8358
|
+
const _hoisted_4$m = { class: "lupa-search-box-custom-label" };
|
|
8359
8359
|
const _hoisted_5$a = { class: "lupa-search-box-custom-text" };
|
|
8360
|
-
const _sfc_main$
|
|
8360
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
8361
8361
|
__name: "SearchBoxProductCustom",
|
|
8362
8362
|
props: {
|
|
8363
8363
|
item: {},
|
|
@@ -8383,20 +8383,20 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
8383
8383
|
key: 0,
|
|
8384
8384
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
8385
8385
|
innerHTML: text.value
|
|
8386
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
8386
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$V)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
8387
8387
|
key: 1,
|
|
8388
8388
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
8389
8389
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
8390
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
8391
|
-
createBaseVNode("div", _hoisted_4$
|
|
8390
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$E, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
8391
|
+
createBaseVNode("div", _hoisted_4$m, toDisplayString(label.value), 1),
|
|
8392
8392
|
createBaseVNode("div", _hoisted_5$a, toDisplayString(text.value), 1)
|
|
8393
8393
|
]))
|
|
8394
8394
|
], 16));
|
|
8395
8395
|
};
|
|
8396
8396
|
}
|
|
8397
8397
|
});
|
|
8398
|
-
const _hoisted_1$
|
|
8399
|
-
const _sfc_main$
|
|
8398
|
+
const _hoisted_1$U = ["innerHTML"];
|
|
8399
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
8400
8400
|
__name: "SearchBoxProductCustomHtml",
|
|
8401
8401
|
props: {
|
|
8402
8402
|
item: {},
|
|
@@ -8416,7 +8416,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
8416
8416
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
8417
8417
|
class: className.value,
|
|
8418
8418
|
innerHTML: text.value
|
|
8419
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
8419
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$U);
|
|
8420
8420
|
};
|
|
8421
8421
|
}
|
|
8422
8422
|
});
|
|
@@ -8611,10 +8611,10 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
8611
8611
|
setLoading
|
|
8612
8612
|
};
|
|
8613
8613
|
});
|
|
8614
|
-
const _hoisted_1$
|
|
8615
|
-
const _hoisted_2$
|
|
8616
|
-
const _hoisted_3$
|
|
8617
|
-
const _sfc_main$
|
|
8614
|
+
const _hoisted_1$T = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
8615
|
+
const _hoisted_2$D = { class: "lupa-search-box-product-addtocart" };
|
|
8616
|
+
const _hoisted_3$s = ["onClick", "disabled"];
|
|
8617
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
8618
8618
|
__name: "SearchBoxProductAddToCart",
|
|
8619
8619
|
props: {
|
|
8620
8620
|
item: {},
|
|
@@ -8641,15 +8641,15 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
8641
8641
|
loading.value = false;
|
|
8642
8642
|
});
|
|
8643
8643
|
return (_ctx, _cache) => {
|
|
8644
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8645
|
-
createBaseVNode("div", _hoisted_2$
|
|
8644
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
8645
|
+
createBaseVNode("div", _hoisted_2$D, [
|
|
8646
8646
|
createBaseVNode("button", {
|
|
8647
8647
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
8648
8648
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
8649
8649
|
"data-cy": "lupa-add-to-cart",
|
|
8650
8650
|
type: "button",
|
|
8651
8651
|
disabled: !inStockValue.value || loading.value
|
|
8652
|
-
}, toDisplayString(label.value), 11, _hoisted_3$
|
|
8652
|
+
}, toDisplayString(label.value), 11, _hoisted_3$s)
|
|
8653
8653
|
])
|
|
8654
8654
|
]);
|
|
8655
8655
|
};
|
|
@@ -8657,17 +8657,17 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
8657
8657
|
});
|
|
8658
8658
|
const __default__$4 = {
|
|
8659
8659
|
components: {
|
|
8660
|
-
SearchBoxProductImage: _sfc_main$
|
|
8661
|
-
SearchBoxProductTitle: _sfc_main$
|
|
8662
|
-
SearchBoxProductDescription: _sfc_main$
|
|
8663
|
-
SearchBoxProductPrice: _sfc_main
|
|
8664
|
-
SearchBoxProductRegularPrice: _sfc_main
|
|
8665
|
-
SearchBoxProductCustom: _sfc_main$
|
|
8666
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
8667
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
8660
|
+
SearchBoxProductImage: _sfc_main$13,
|
|
8661
|
+
SearchBoxProductTitle: _sfc_main$12,
|
|
8662
|
+
SearchBoxProductDescription: _sfc_main$11,
|
|
8663
|
+
SearchBoxProductPrice: _sfc_main$10,
|
|
8664
|
+
SearchBoxProductRegularPrice: _sfc_main$$,
|
|
8665
|
+
SearchBoxProductCustom: _sfc_main$_,
|
|
8666
|
+
SearchBoxProductCustomHtml: _sfc_main$Z,
|
|
8667
|
+
SearchBoxProductAddToCart: _sfc_main$Y
|
|
8668
8668
|
}
|
|
8669
8669
|
};
|
|
8670
|
-
const _sfc_main$
|
|
8670
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
8671
8671
|
__name: "SearchBoxProductElement",
|
|
8672
8672
|
props: {
|
|
8673
8673
|
item: {},
|
|
@@ -8781,14 +8781,14 @@ const useTrackingStore = defineStore("tracking", () => {
|
|
|
8781
8781
|
};
|
|
8782
8782
|
return { trackSearch, trackResults, trackEvent };
|
|
8783
8783
|
});
|
|
8784
|
-
const _hoisted_1$
|
|
8785
|
-
const _hoisted_2$
|
|
8786
|
-
const _hoisted_3$
|
|
8787
|
-
const _hoisted_4$
|
|
8784
|
+
const _hoisted_1$S = ["href"];
|
|
8785
|
+
const _hoisted_2$C = { class: "lupa-search-box-product-image-section" };
|
|
8786
|
+
const _hoisted_3$r = { class: "lupa-search-box-product-details-section" };
|
|
8787
|
+
const _hoisted_4$l = {
|
|
8788
8788
|
key: 0,
|
|
8789
8789
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
8790
8790
|
};
|
|
8791
|
-
const _sfc_main$
|
|
8791
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
8792
8792
|
__name: "SearchBoxProduct",
|
|
8793
8793
|
props: {
|
|
8794
8794
|
item: {},
|
|
@@ -8881,9 +8881,9 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
8881
8881
|
href: link.value,
|
|
8882
8882
|
onClick: handleClick
|
|
8883
8883
|
}, [
|
|
8884
|
-
createBaseVNode("div", _hoisted_2$
|
|
8884
|
+
createBaseVNode("div", _hoisted_2$C, [
|
|
8885
8885
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
8886
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8886
|
+
return openBlock(), createBlock(_sfc_main$X, {
|
|
8887
8887
|
class: "lupa-search-box-product-element",
|
|
8888
8888
|
item: _ctx.item,
|
|
8889
8889
|
element,
|
|
@@ -8893,9 +8893,9 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
8893
8893
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
8894
8894
|
}), 128))
|
|
8895
8895
|
]),
|
|
8896
|
-
createBaseVNode("div", _hoisted_3$
|
|
8896
|
+
createBaseVNode("div", _hoisted_3$r, [
|
|
8897
8897
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
8898
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8898
|
+
return openBlock(), createBlock(_sfc_main$X, {
|
|
8899
8899
|
class: "lupa-search-box-product-element",
|
|
8900
8900
|
item: _ctx.item,
|
|
8901
8901
|
element,
|
|
@@ -8905,8 +8905,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
8905
8905
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
8906
8906
|
}), 128))
|
|
8907
8907
|
]),
|
|
8908
|
-
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
8909
|
-
createVNode(_sfc_main$
|
|
8908
|
+
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$l, [
|
|
8909
|
+
createVNode(_sfc_main$X, {
|
|
8910
8910
|
class: "lupa-search-box-product-element",
|
|
8911
8911
|
item: _ctx.item,
|
|
8912
8912
|
element: addToCartElement.value,
|
|
@@ -8915,12 +8915,12 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
8915
8915
|
isInStock: isInStock.value
|
|
8916
8916
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
8917
8917
|
])) : createCommentVNode("", true)
|
|
8918
|
-
], 10, _hoisted_1$
|
|
8918
|
+
], 10, _hoisted_1$S);
|
|
8919
8919
|
};
|
|
8920
8920
|
}
|
|
8921
8921
|
});
|
|
8922
|
-
const _hoisted_1$
|
|
8923
|
-
const _sfc_main$
|
|
8922
|
+
const _hoisted_1$R = { id: "lupa-search-box-products" };
|
|
8923
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
8924
8924
|
__name: "SearchBoxProducts",
|
|
8925
8925
|
props: {
|
|
8926
8926
|
items: {},
|
|
@@ -8940,7 +8940,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
8940
8940
|
return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
|
|
8941
8941
|
});
|
|
8942
8942
|
return (_ctx, _cache) => {
|
|
8943
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8943
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
8944
8944
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
8945
8945
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
8946
8946
|
key: index,
|
|
@@ -8952,7 +8952,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
8952
8952
|
onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
|
|
8953
8953
|
});
|
|
8954
8954
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
8955
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8955
|
+
return openBlock(), createBlock(_sfc_main$W, {
|
|
8956
8956
|
key: index,
|
|
8957
8957
|
item,
|
|
8958
8958
|
panelOptions: _ctx.panelOptions,
|
|
@@ -8966,7 +8966,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
8966
8966
|
};
|
|
8967
8967
|
}
|
|
8968
8968
|
});
|
|
8969
|
-
const _sfc_main$
|
|
8969
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
8970
8970
|
__name: "SearchBoxProductsWrapper",
|
|
8971
8971
|
props: {
|
|
8972
8972
|
panel: {},
|
|
@@ -9018,7 +9018,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
9018
9018
|
const getItemsDebounced = debounce$1(getItems, props.debounce);
|
|
9019
9019
|
return (_ctx, _cache) => {
|
|
9020
9020
|
var _a, _b;
|
|
9021
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9021
|
+
return openBlock(), createBlock(_sfc_main$V, {
|
|
9022
9022
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
9023
9023
|
panelOptions: _ctx.panel,
|
|
9024
9024
|
labels: _ctx.labels,
|
|
@@ -9036,26 +9036,26 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
9036
9036
|
};
|
|
9037
9037
|
}
|
|
9038
9038
|
});
|
|
9039
|
-
const _hoisted_1$
|
|
9039
|
+
const _hoisted_1$Q = {
|
|
9040
9040
|
key: 0,
|
|
9041
9041
|
id: "lupa-search-box-panel"
|
|
9042
9042
|
};
|
|
9043
|
-
const _hoisted_2$
|
|
9043
|
+
const _hoisted_2$B = {
|
|
9044
9044
|
class: "lupa-main-panel",
|
|
9045
9045
|
"data-cy": "lupa-main-panel"
|
|
9046
9046
|
};
|
|
9047
|
-
const _hoisted_3$
|
|
9048
|
-
const _hoisted_4$
|
|
9047
|
+
const _hoisted_3$q = ["data-cy"];
|
|
9048
|
+
const _hoisted_4$k = {
|
|
9049
9049
|
key: 1,
|
|
9050
9050
|
id: "lupa-search-box-panel"
|
|
9051
9051
|
};
|
|
9052
9052
|
const __default__$3 = {
|
|
9053
9053
|
components: {
|
|
9054
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
9055
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
9054
|
+
SearchBoxSuggestionsWrapper: _sfc_main$15,
|
|
9055
|
+
SearchBoxProductsWrapper: _sfc_main$U
|
|
9056
9056
|
}
|
|
9057
9057
|
};
|
|
9058
|
-
const _sfc_main$
|
|
9058
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
9059
9059
|
__name: "SearchBoxMainPanel",
|
|
9060
9060
|
props: {
|
|
9061
9061
|
options: {},
|
|
@@ -9169,8 +9169,8 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
9169
9169
|
ref_key: "panelContainer",
|
|
9170
9170
|
ref: panelContainer
|
|
9171
9171
|
}, [
|
|
9172
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9173
|
-
createBaseVNode("div", _hoisted_2$
|
|
9172
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
9173
|
+
createBaseVNode("div", _hoisted_2$B, [
|
|
9174
9174
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayPanels.value, (panel, index) => {
|
|
9175
9175
|
return openBlock(), createElementBlock("div", {
|
|
9176
9176
|
key: index,
|
|
@@ -9199,16 +9199,16 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
9199
9199
|
key: "0"
|
|
9200
9200
|
} : void 0
|
|
9201
9201
|
]), 1064, ["panel", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
9202
|
-
], 10, _hoisted_3$
|
|
9202
|
+
], 10, _hoisted_3$q);
|
|
9203
9203
|
}), 128))
|
|
9204
9204
|
]),
|
|
9205
|
-
createVNode(_sfc_main$
|
|
9205
|
+
createVNode(_sfc_main$1a, {
|
|
9206
9206
|
labels: labels.value,
|
|
9207
9207
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
9208
9208
|
onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
|
|
9209
9209
|
}, null, 8, ["labels", "showTotalCount"])
|
|
9210
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
9211
|
-
createVNode(_sfc_main$
|
|
9210
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$k, [
|
|
9211
|
+
createVNode(_sfc_main$18, {
|
|
9212
9212
|
options: _ctx.options.history,
|
|
9213
9213
|
history: history.value,
|
|
9214
9214
|
onGoToResults: handleGoToResults,
|
|
@@ -9233,9 +9233,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
|
|
|
9233
9233
|
const elements = getElements(triggers);
|
|
9234
9234
|
elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
|
|
9235
9235
|
};
|
|
9236
|
-
const _hoisted_1$
|
|
9237
|
-
const _hoisted_2$
|
|
9238
|
-
const _sfc_main$
|
|
9236
|
+
const _hoisted_1$P = { id: "lupa-search-box" };
|
|
9237
|
+
const _hoisted_2$A = { class: "lupa-search-box-wrapper" };
|
|
9238
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
9239
9239
|
__name: "SearchBox",
|
|
9240
9240
|
props: {
|
|
9241
9241
|
options: {},
|
|
@@ -9467,9 +9467,9 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
9467
9467
|
};
|
|
9468
9468
|
return (_ctx, _cache) => {
|
|
9469
9469
|
var _a2;
|
|
9470
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9471
|
-
createBaseVNode("div", _hoisted_2$
|
|
9472
|
-
createVNode(_sfc_main$
|
|
9470
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
9471
|
+
createBaseVNode("div", _hoisted_2$A, [
|
|
9472
|
+
createVNode(_sfc_main$1b, {
|
|
9473
9473
|
options: inputOptions.value,
|
|
9474
9474
|
suggestedValue: suggestedValue.value,
|
|
9475
9475
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -9480,7 +9480,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
9480
9480
|
onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
|
|
9481
9481
|
onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
9482
9482
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
9483
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
9483
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$T, {
|
|
9484
9484
|
key: 0,
|
|
9485
9485
|
options: panelOptions.value,
|
|
9486
9486
|
inputValue: inputValue.value,
|
|
@@ -9567,20 +9567,20 @@ const getSearchParams = (url, params, baseUrl) => {
|
|
|
9567
9567
|
}
|
|
9568
9568
|
return searchParams;
|
|
9569
9569
|
};
|
|
9570
|
-
const _hoisted_1$
|
|
9570
|
+
const _hoisted_1$O = {
|
|
9571
9571
|
key: 0,
|
|
9572
9572
|
id: "lupa-search-results-did-you-mean"
|
|
9573
9573
|
};
|
|
9574
|
-
const _hoisted_2$
|
|
9574
|
+
const _hoisted_2$z = {
|
|
9575
9575
|
key: 0,
|
|
9576
9576
|
"data-cy": "suggested-search-text-label"
|
|
9577
9577
|
};
|
|
9578
|
-
const _hoisted_3$
|
|
9578
|
+
const _hoisted_3$p = {
|
|
9579
9579
|
key: 1,
|
|
9580
9580
|
"data-cy": "did-you-mean-label"
|
|
9581
9581
|
};
|
|
9582
|
-
const _hoisted_4$
|
|
9583
|
-
const _sfc_main$
|
|
9582
|
+
const _hoisted_4$j = { key: 1 };
|
|
9583
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
9584
9584
|
__name: "SearchResultsDidYouMean",
|
|
9585
9585
|
props: {
|
|
9586
9586
|
labels: {}
|
|
@@ -9612,8 +9612,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
9612
9612
|
paramStore.goToResults({ searchText, facet });
|
|
9613
9613
|
};
|
|
9614
9614
|
return (_ctx, _cache) => {
|
|
9615
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9616
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9615
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
9616
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
|
|
9617
9617
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
9618
9618
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
9619
9619
|
createBaseVNode("span", {
|
|
@@ -9622,7 +9622,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
9622
9622
|
]);
|
|
9623
9623
|
}), 128))
|
|
9624
9624
|
])) : createCommentVNode("", true),
|
|
9625
|
-
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9625
|
+
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$p, [
|
|
9626
9626
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
9627
9627
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
9628
9628
|
label.includes("{1}") ? (openBlock(), createElementBlock("span", {
|
|
@@ -9630,7 +9630,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
9630
9630
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
9631
9631
|
"data-cy": "did-you-mean-value",
|
|
9632
9632
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
9633
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
9633
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$j, toDisplayString(label) + " ", 1))
|
|
9634
9634
|
]);
|
|
9635
9635
|
}), 128))
|
|
9636
9636
|
])) : createCommentVNode("", true)
|
|
@@ -9638,12 +9638,12 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
9638
9638
|
};
|
|
9639
9639
|
}
|
|
9640
9640
|
});
|
|
9641
|
-
const _hoisted_1$
|
|
9641
|
+
const _hoisted_1$N = {
|
|
9642
9642
|
key: 0,
|
|
9643
9643
|
class: "lupa-search-results-summary"
|
|
9644
9644
|
};
|
|
9645
|
-
const _hoisted_2$
|
|
9646
|
-
const _sfc_main$
|
|
9645
|
+
const _hoisted_2$y = ["innerHTML"];
|
|
9646
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
9647
9647
|
__name: "SearchResultsSummary",
|
|
9648
9648
|
props: {
|
|
9649
9649
|
label: {},
|
|
@@ -9658,8 +9658,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
9658
9658
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
9659
9659
|
});
|
|
9660
9660
|
return (_ctx, _cache) => {
|
|
9661
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9662
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
9661
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
9662
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$y),
|
|
9663
9663
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
9664
9664
|
key: 0,
|
|
9665
9665
|
class: "lupa-filter-clear",
|
|
@@ -9670,18 +9670,18 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
9670
9670
|
};
|
|
9671
9671
|
}
|
|
9672
9672
|
});
|
|
9673
|
-
const _hoisted_1$
|
|
9673
|
+
const _hoisted_1$M = {
|
|
9674
9674
|
key: 0,
|
|
9675
9675
|
class: "lupa-result-page-title",
|
|
9676
9676
|
"data-cy": "lupa-result-page-title"
|
|
9677
9677
|
};
|
|
9678
|
-
const _hoisted_2$
|
|
9679
|
-
const _hoisted_3$
|
|
9678
|
+
const _hoisted_2$x = { key: 0 };
|
|
9679
|
+
const _hoisted_3$o = {
|
|
9680
9680
|
key: 1,
|
|
9681
9681
|
class: "lupa-results-total-count"
|
|
9682
9682
|
};
|
|
9683
|
-
const _hoisted_4$
|
|
9684
|
-
const _sfc_main$
|
|
9683
|
+
const _hoisted_4$i = ["innerHTML"];
|
|
9684
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
9685
9685
|
__name: "SearchResultsTitle",
|
|
9686
9686
|
props: {
|
|
9687
9687
|
options: {},
|
|
@@ -9716,12 +9716,12 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9716
9716
|
});
|
|
9717
9717
|
return (_ctx, _cache) => {
|
|
9718
9718
|
return openBlock(), createElementBlock("div", null, [
|
|
9719
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
9719
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$M, [
|
|
9720
9720
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
9721
|
-
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9722
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
9721
|
+
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$x, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
9722
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$o, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
|
|
9723
9723
|
])) : createCommentVNode("", true),
|
|
9724
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
9724
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
9725
9725
|
key: 1,
|
|
9726
9726
|
label: summaryLabel.value
|
|
9727
9727
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -9729,21 +9729,21 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9729
9729
|
key: 2,
|
|
9730
9730
|
class: "lupa-result-page-description-top",
|
|
9731
9731
|
innerHTML: descriptionTop.value
|
|
9732
|
-
}, null, 8, _hoisted_4$
|
|
9732
|
+
}, null, 8, _hoisted_4$i)) : createCommentVNode("", true)
|
|
9733
9733
|
]);
|
|
9734
9734
|
};
|
|
9735
9735
|
}
|
|
9736
9736
|
});
|
|
9737
|
-
const _hoisted_1$
|
|
9738
|
-
const _hoisted_2$
|
|
9737
|
+
const _hoisted_1$L = { class: "lupa-search-result-filter-value" };
|
|
9738
|
+
const _hoisted_2$w = {
|
|
9739
9739
|
class: "lupa-current-filter-label",
|
|
9740
9740
|
"data-cy": "lupa-current-filter-label"
|
|
9741
9741
|
};
|
|
9742
|
-
const _hoisted_3$
|
|
9742
|
+
const _hoisted_3$n = {
|
|
9743
9743
|
class: "lupa-current-filter-value",
|
|
9744
9744
|
"data-cy": "lupa-current-filter-value"
|
|
9745
9745
|
};
|
|
9746
|
-
const _sfc_main$
|
|
9746
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
9747
9747
|
__name: "CurrentFilterDisplay",
|
|
9748
9748
|
props: {
|
|
9749
9749
|
filter: {}
|
|
@@ -9755,28 +9755,28 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
9755
9755
|
emit2("remove", { filter: props.filter });
|
|
9756
9756
|
};
|
|
9757
9757
|
return (_ctx, _cache) => {
|
|
9758
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9758
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
9759
9759
|
createBaseVNode("div", {
|
|
9760
9760
|
class: "lupa-current-filter-action",
|
|
9761
9761
|
onClick: handleClick
|
|
9762
9762
|
}, "⨉"),
|
|
9763
|
-
createBaseVNode("div", _hoisted_2$
|
|
9764
|
-
createBaseVNode("div", _hoisted_3$
|
|
9763
|
+
createBaseVNode("div", _hoisted_2$w, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
9764
|
+
createBaseVNode("div", _hoisted_3$n, toDisplayString(_ctx.filter.value), 1)
|
|
9765
9765
|
]);
|
|
9766
9766
|
};
|
|
9767
9767
|
}
|
|
9768
9768
|
});
|
|
9769
|
-
const _hoisted_1$
|
|
9770
|
-
const _hoisted_2$
|
|
9769
|
+
const _hoisted_1$K = { class: "lupa-filter-title-text" };
|
|
9770
|
+
const _hoisted_2$v = {
|
|
9771
9771
|
key: 0,
|
|
9772
9772
|
class: "lupa-filter-count"
|
|
9773
9773
|
};
|
|
9774
|
-
const _hoisted_3$
|
|
9774
|
+
const _hoisted_3$m = {
|
|
9775
9775
|
key: 0,
|
|
9776
9776
|
class: "filter-values"
|
|
9777
9777
|
};
|
|
9778
|
-
const _hoisted_4$
|
|
9779
|
-
const _sfc_main$
|
|
9778
|
+
const _hoisted_4$h = { class: "lupa-current-filter-list" };
|
|
9779
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
9780
9780
|
__name: "CurrentFilters",
|
|
9781
9781
|
props: {
|
|
9782
9782
|
options: {},
|
|
@@ -9831,19 +9831,19 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
9831
9831
|
class: "lupa-current-filter-title",
|
|
9832
9832
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
9833
9833
|
}, [
|
|
9834
|
-
createBaseVNode("div", _hoisted_1$
|
|
9834
|
+
createBaseVNode("div", _hoisted_1$K, [
|
|
9835
9835
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
9836
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9836
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$v, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
9837
9837
|
]),
|
|
9838
9838
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
9839
9839
|
key: 0,
|
|
9840
9840
|
class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
9841
9841
|
}, null, 2)) : createCommentVNode("", true)
|
|
9842
9842
|
]),
|
|
9843
|
-
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9844
|
-
createBaseVNode("div", _hoisted_4$
|
|
9843
|
+
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$m, [
|
|
9844
|
+
createBaseVNode("div", _hoisted_4$h, [
|
|
9845
9845
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
|
|
9846
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9846
|
+
return openBlock(), createBlock(_sfc_main$O, {
|
|
9847
9847
|
key: filter.key + "_" + filter.value,
|
|
9848
9848
|
filter,
|
|
9849
9849
|
onRemove: handleRemove
|
|
@@ -9860,8 +9860,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
9860
9860
|
};
|
|
9861
9861
|
}
|
|
9862
9862
|
});
|
|
9863
|
-
const _hoisted_1$
|
|
9864
|
-
const _sfc_main$
|
|
9863
|
+
const _hoisted_1$J = ["href"];
|
|
9864
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
9865
9865
|
__name: "CategoryFilterItem",
|
|
9866
9866
|
props: {
|
|
9867
9867
|
options: {},
|
|
@@ -9898,20 +9898,20 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
9898
9898
|
"data-cy": "lupa-child-category-item",
|
|
9899
9899
|
href: urlLink.value,
|
|
9900
9900
|
onClick: handleNavigation
|
|
9901
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
9901
|
+
}, toDisplayString(title.value), 9, _hoisted_1$J)
|
|
9902
9902
|
], 2);
|
|
9903
9903
|
};
|
|
9904
9904
|
}
|
|
9905
9905
|
});
|
|
9906
|
-
const _hoisted_1$
|
|
9906
|
+
const _hoisted_1$I = {
|
|
9907
9907
|
class: "lupa-category-filter",
|
|
9908
9908
|
"data-cy": "lupa-category-filter"
|
|
9909
9909
|
};
|
|
9910
|
-
const _hoisted_2$
|
|
9911
|
-
const _hoisted_3$
|
|
9912
|
-
const _hoisted_4$
|
|
9910
|
+
const _hoisted_2$u = { class: "lupa-category-back" };
|
|
9911
|
+
const _hoisted_3$l = ["href"];
|
|
9912
|
+
const _hoisted_4$g = ["href"];
|
|
9913
9913
|
const _hoisted_5$9 = { class: "lupa-child-category-list" };
|
|
9914
|
-
const _sfc_main$
|
|
9914
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
9915
9915
|
__name: "CategoryFilter",
|
|
9916
9916
|
props: {
|
|
9917
9917
|
options: {}
|
|
@@ -9997,14 +9997,14 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
9997
9997
|
};
|
|
9998
9998
|
__expose({ fetch: fetch2 });
|
|
9999
9999
|
return (_ctx, _cache) => {
|
|
10000
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10001
|
-
createBaseVNode("div", _hoisted_2$
|
|
10000
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
10001
|
+
createBaseVNode("div", _hoisted_2$u, [
|
|
10002
10002
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
10003
10003
|
key: 0,
|
|
10004
10004
|
"data-cy": "lupa-category-back",
|
|
10005
10005
|
href: backUrlLink.value,
|
|
10006
10006
|
onClick: handleNavigationBack
|
|
10007
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
10007
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$l)) : createCommentVNode("", true)
|
|
10008
10008
|
]),
|
|
10009
10009
|
createBaseVNode("div", {
|
|
10010
10010
|
class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -10014,11 +10014,11 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
10014
10014
|
href: parentUrlLink.value,
|
|
10015
10015
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
10016
10016
|
onClick: handleNavigationParent
|
|
10017
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
10017
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$g)
|
|
10018
10018
|
], 2),
|
|
10019
10019
|
createBaseVNode("div", _hoisted_5$9, [
|
|
10020
10020
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
10021
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10021
|
+
return openBlock(), createBlock(_sfc_main$M, {
|
|
10022
10022
|
key: getCategoryKey(child),
|
|
10023
10023
|
item: child,
|
|
10024
10024
|
options: _ctx.options
|
|
@@ -10029,13 +10029,13 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
10029
10029
|
};
|
|
10030
10030
|
}
|
|
10031
10031
|
});
|
|
10032
|
-
const _hoisted_1$
|
|
10032
|
+
const _hoisted_1$H = {
|
|
10033
10033
|
class: "lupa-search-result-facet-term-values",
|
|
10034
10034
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
10035
10035
|
};
|
|
10036
|
-
const _hoisted_2$
|
|
10037
|
-
const _hoisted_3$
|
|
10038
|
-
const _hoisted_4$
|
|
10036
|
+
const _hoisted_2$t = ["placeholder"];
|
|
10037
|
+
const _hoisted_3$k = { class: "lupa-terms-list" };
|
|
10038
|
+
const _hoisted_4$f = ["onClick"];
|
|
10039
10039
|
const _hoisted_5$8 = { class: "lupa-term-checkbox-wrapper" };
|
|
10040
10040
|
const _hoisted_6$5 = { class: "lupa-term-checkbox-label" };
|
|
10041
10041
|
const _hoisted_7$5 = { class: "lupa-term-label" };
|
|
@@ -10045,7 +10045,7 @@ const _hoisted_8$2 = {
|
|
|
10045
10045
|
};
|
|
10046
10046
|
const _hoisted_9$1 = { key: 0 };
|
|
10047
10047
|
const _hoisted_10$1 = { key: 1 };
|
|
10048
|
-
const _sfc_main$
|
|
10048
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
10049
10049
|
__name: "TermFacet",
|
|
10050
10050
|
props: {
|
|
10051
10051
|
options: {},
|
|
@@ -10114,17 +10114,17 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
10114
10114
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
10115
10115
|
};
|
|
10116
10116
|
return (_ctx, _cache) => {
|
|
10117
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10117
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
10118
10118
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
10119
10119
|
key: 0,
|
|
10120
10120
|
class: "lupa-term-filter",
|
|
10121
10121
|
"data-cy": "lupa-term-filter",
|
|
10122
10122
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
10123
10123
|
placeholder: _ctx.options.labels.facetFilter
|
|
10124
|
-
}, null, 8, _hoisted_2$
|
|
10124
|
+
}, null, 8, _hoisted_2$t)), [
|
|
10125
10125
|
[vModelText, termFilter.value]
|
|
10126
10126
|
]) : createCommentVNode("", true),
|
|
10127
|
-
createBaseVNode("div", _hoisted_3$
|
|
10127
|
+
createBaseVNode("div", _hoisted_3$k, [
|
|
10128
10128
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
10129
10129
|
return openBlock(), createElementBlock("div", {
|
|
10130
10130
|
class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -10141,7 +10141,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
10141
10141
|
createBaseVNode("span", _hoisted_7$5, toDisplayString(item.title), 1),
|
|
10142
10142
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
10143
10143
|
])
|
|
10144
|
-
], 10, _hoisted_4$
|
|
10144
|
+
], 10, _hoisted_4$f);
|
|
10145
10145
|
}), 128))
|
|
10146
10146
|
]),
|
|
10147
10147
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -11132,16 +11132,16 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
11132
11132
|
m.render = function(e, t, r, i, n, o) {
|
|
11133
11133
|
return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
|
|
11134
11134
|
}, m.__file = "src/Slider.vue";
|
|
11135
|
-
const _hoisted_1$
|
|
11136
|
-
const _hoisted_2$
|
|
11135
|
+
const _hoisted_1$G = { class: "lupa-search-result-facet-stats-values" };
|
|
11136
|
+
const _hoisted_2$s = {
|
|
11137
11137
|
key: 0,
|
|
11138
11138
|
class: "lupa-stats-facet-summary"
|
|
11139
11139
|
};
|
|
11140
|
-
const _hoisted_3$
|
|
11140
|
+
const _hoisted_3$j = {
|
|
11141
11141
|
key: 1,
|
|
11142
11142
|
class: "lupa-stats-facet-summary-input"
|
|
11143
11143
|
};
|
|
11144
|
-
const _hoisted_4$
|
|
11144
|
+
const _hoisted_4$e = {
|
|
11145
11145
|
key: 0,
|
|
11146
11146
|
class: "lupa-stats-range-label"
|
|
11147
11147
|
};
|
|
@@ -11160,7 +11160,7 @@ const _hoisted_13 = {
|
|
|
11160
11160
|
key: 2,
|
|
11161
11161
|
class: "lupa-stats-slider-wrapper"
|
|
11162
11162
|
};
|
|
11163
|
-
const _sfc_main$
|
|
11163
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
11164
11164
|
__name: "StatsFacet",
|
|
11165
11165
|
props: {
|
|
11166
11166
|
options: {},
|
|
@@ -11308,10 +11308,10 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11308
11308
|
innerSliderRange.value = value;
|
|
11309
11309
|
};
|
|
11310
11310
|
return (_ctx, _cache) => {
|
|
11311
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11312
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11311
|
+
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
11312
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$s, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$j, [
|
|
11313
11313
|
createBaseVNode("div", null, [
|
|
11314
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
11314
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
11315
11315
|
createBaseVNode("div", _hoisted_5$7, [
|
|
11316
11316
|
withDirectives(createBaseVNode("input", {
|
|
11317
11317
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
@@ -11372,10 +11372,10 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11372
11372
|
};
|
|
11373
11373
|
}
|
|
11374
11374
|
});
|
|
11375
|
-
const _hoisted_1$
|
|
11376
|
-
const _hoisted_2$
|
|
11377
|
-
const _hoisted_3$
|
|
11378
|
-
const _hoisted_4$
|
|
11375
|
+
const _hoisted_1$F = { class: "lupa-term-checkbox-wrapper" };
|
|
11376
|
+
const _hoisted_2$r = { class: "lupa-term-checkbox-label" };
|
|
11377
|
+
const _hoisted_3$i = { class: "lupa-term-label" };
|
|
11378
|
+
const _hoisted_4$d = {
|
|
11379
11379
|
key: 0,
|
|
11380
11380
|
class: "lupa-term-count"
|
|
11381
11381
|
};
|
|
@@ -11383,7 +11383,7 @@ const _hoisted_5$6 = {
|
|
|
11383
11383
|
key: 0,
|
|
11384
11384
|
class: "lupa-facet-level"
|
|
11385
11385
|
};
|
|
11386
|
-
const _sfc_main$
|
|
11386
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
11387
11387
|
__name: "HierarchyFacetLevel",
|
|
11388
11388
|
props: {
|
|
11389
11389
|
options: {},
|
|
@@ -11429,14 +11429,14 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11429
11429
|
"data-cy": "lupa-facet-term",
|
|
11430
11430
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
11431
11431
|
}, [
|
|
11432
|
-
createBaseVNode("div", _hoisted_1$
|
|
11432
|
+
createBaseVNode("div", _hoisted_1$F, [
|
|
11433
11433
|
createBaseVNode("span", {
|
|
11434
11434
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
11435
11435
|
}, null, 2)
|
|
11436
11436
|
]),
|
|
11437
|
-
createBaseVNode("div", _hoisted_2$
|
|
11438
|
-
createBaseVNode("span", _hoisted_3$
|
|
11439
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
11437
|
+
createBaseVNode("div", _hoisted_2$r, [
|
|
11438
|
+
createBaseVNode("span", _hoisted_3$i, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
11439
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$d, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
11440
11440
|
])
|
|
11441
11441
|
]),
|
|
11442
11442
|
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
|
|
@@ -11455,13 +11455,13 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11455
11455
|
};
|
|
11456
11456
|
}
|
|
11457
11457
|
});
|
|
11458
|
-
const _hoisted_1$
|
|
11458
|
+
const _hoisted_1$E = {
|
|
11459
11459
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
11460
11460
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
11461
11461
|
};
|
|
11462
|
-
const _hoisted_2$
|
|
11463
|
-
const _hoisted_3$
|
|
11464
|
-
const _sfc_main$
|
|
11462
|
+
const _hoisted_2$q = { key: 0 };
|
|
11463
|
+
const _hoisted_3$h = ["placeholder"];
|
|
11464
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
11465
11465
|
__name: "HierarchyFacet",
|
|
11466
11466
|
props: {
|
|
11467
11467
|
options: {},
|
|
@@ -11511,19 +11511,19 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
11511
11511
|
showAll.value = true;
|
|
11512
11512
|
};
|
|
11513
11513
|
return (_ctx, _cache) => {
|
|
11514
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11515
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11514
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
11515
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$q, [
|
|
11516
11516
|
withDirectives(createBaseVNode("input", {
|
|
11517
11517
|
class: "lupa-term-filter",
|
|
11518
11518
|
"data-cy": "lupa-term-filter",
|
|
11519
11519
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
11520
11520
|
placeholder: _ctx.options.labels.facetFilter
|
|
11521
|
-
}, null, 8, _hoisted_3$
|
|
11521
|
+
}, null, 8, _hoisted_3$h), [
|
|
11522
11522
|
[vModelText, termFilter.value]
|
|
11523
11523
|
])
|
|
11524
11524
|
])) : createCommentVNode("", true),
|
|
11525
11525
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
11526
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11526
|
+
return openBlock(), createBlock(_sfc_main$I, {
|
|
11527
11527
|
key: item.title,
|
|
11528
11528
|
options: _ctx.options,
|
|
11529
11529
|
item,
|
|
@@ -11543,20 +11543,20 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
11543
11543
|
};
|
|
11544
11544
|
}
|
|
11545
11545
|
});
|
|
11546
|
-
const _hoisted_1$
|
|
11547
|
-
const _hoisted_2$
|
|
11546
|
+
const _hoisted_1$D = { class: "lupa-facet-label-text" };
|
|
11547
|
+
const _hoisted_2$p = {
|
|
11548
11548
|
key: 0,
|
|
11549
11549
|
class: "lupa-facet-content",
|
|
11550
11550
|
"data-cy": "lupa-facet-content"
|
|
11551
11551
|
};
|
|
11552
11552
|
const __default__$2 = {
|
|
11553
11553
|
components: {
|
|
11554
|
-
TermFacet: _sfc_main$
|
|
11555
|
-
StatsFacet: _sfc_main$
|
|
11556
|
-
HierarchyFacet: _sfc_main$
|
|
11554
|
+
TermFacet: _sfc_main$K,
|
|
11555
|
+
StatsFacet: _sfc_main$J,
|
|
11556
|
+
HierarchyFacet: _sfc_main$H
|
|
11557
11557
|
}
|
|
11558
11558
|
};
|
|
11559
|
-
const _sfc_main$
|
|
11559
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
11560
11560
|
__name: "FacetDisplay",
|
|
11561
11561
|
props: {
|
|
11562
11562
|
options: {},
|
|
@@ -11667,12 +11667,12 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
11667
11667
|
"data-cy": "lupa-search-result-facet-label",
|
|
11668
11668
|
onClick: toggleFacet
|
|
11669
11669
|
}, [
|
|
11670
|
-
createBaseVNode("div", _hoisted_1$
|
|
11670
|
+
createBaseVNode("div", _hoisted_1$D, toDisplayString(facet.value.label), 1),
|
|
11671
11671
|
createBaseVNode("div", {
|
|
11672
11672
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
11673
11673
|
}, null, 2)
|
|
11674
11674
|
], 2),
|
|
11675
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11675
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, [
|
|
11676
11676
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
11677
11677
|
facet: facet.value,
|
|
11678
11678
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -11690,12 +11690,12 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
11690
11690
|
};
|
|
11691
11691
|
}
|
|
11692
11692
|
}));
|
|
11693
|
-
const _hoisted_1$
|
|
11694
|
-
const _hoisted_2$
|
|
11693
|
+
const _hoisted_1$C = { class: "lupa-search-result-facet-section" };
|
|
11694
|
+
const _hoisted_2$o = {
|
|
11695
11695
|
key: 0,
|
|
11696
11696
|
class: "lupa-facets-title"
|
|
11697
11697
|
};
|
|
11698
|
-
const _sfc_main$
|
|
11698
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
11699
11699
|
__name: "FacetList",
|
|
11700
11700
|
props: {
|
|
11701
11701
|
options: {},
|
|
@@ -11729,14 +11729,14 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
11729
11729
|
};
|
|
11730
11730
|
return (_ctx, _cache) => {
|
|
11731
11731
|
var _a;
|
|
11732
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11733
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11732
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
11733
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$o, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
11734
11734
|
createBaseVNode("div", {
|
|
11735
11735
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
11736
11736
|
}, [
|
|
11737
11737
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
11738
11738
|
var _a2;
|
|
11739
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11739
|
+
return openBlock(), createBlock(_sfc_main$G, {
|
|
11740
11740
|
key: facet.key,
|
|
11741
11741
|
facet,
|
|
11742
11742
|
currentFilters: currentFiltersValue.value,
|
|
@@ -11751,8 +11751,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
11751
11751
|
};
|
|
11752
11752
|
}
|
|
11753
11753
|
});
|
|
11754
|
-
const _hoisted_1$
|
|
11755
|
-
const _sfc_main$
|
|
11754
|
+
const _hoisted_1$B = { class: "lupa-search-result-facets" };
|
|
11755
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
11756
11756
|
__name: "Facets",
|
|
11757
11757
|
props: {
|
|
11758
11758
|
options: {},
|
|
@@ -11798,8 +11798,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
11798
11798
|
paramStore.removeParameters({ paramsToRemove: [param] });
|
|
11799
11799
|
};
|
|
11800
11800
|
return (_ctx, _cache) => {
|
|
11801
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11802
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
11801
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
11802
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$F, {
|
|
11803
11803
|
key: 0,
|
|
11804
11804
|
options: _ctx.options,
|
|
11805
11805
|
facets: regularFacets.value,
|
|
@@ -11813,11 +11813,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
11813
11813
|
};
|
|
11814
11814
|
}
|
|
11815
11815
|
});
|
|
11816
|
-
const _hoisted_1$
|
|
11816
|
+
const _hoisted_1$A = {
|
|
11817
11817
|
id: "lupa-search-result-filters",
|
|
11818
11818
|
class: "lupa-search-result-filters"
|
|
11819
11819
|
};
|
|
11820
|
-
const _sfc_main$
|
|
11820
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
11821
11821
|
__name: "SearchResultsFilters",
|
|
11822
11822
|
props: {
|
|
11823
11823
|
options: {},
|
|
@@ -11846,19 +11846,19 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
11846
11846
|
__expose({ fetch: fetch2 });
|
|
11847
11847
|
return (_ctx, _cache) => {
|
|
11848
11848
|
var _a;
|
|
11849
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11850
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
11849
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
11850
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$N, {
|
|
11851
11851
|
key: 0,
|
|
11852
11852
|
options: _ctx.options.currentFilters,
|
|
11853
11853
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
11854
11854
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
11855
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
11855
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$L, {
|
|
11856
11856
|
key: 1,
|
|
11857
11857
|
options: _ctx.options.categories,
|
|
11858
11858
|
ref_key: "categoryFilters",
|
|
11859
11859
|
ref: categoryFilters
|
|
11860
11860
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
11861
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
11861
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$E, {
|
|
11862
11862
|
key: 2,
|
|
11863
11863
|
options: _ctx.options.facets
|
|
11864
11864
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -11866,20 +11866,20 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
11866
11866
|
};
|
|
11867
11867
|
}
|
|
11868
11868
|
});
|
|
11869
|
-
const _hoisted_1$
|
|
11869
|
+
const _hoisted_1$z = {
|
|
11870
11870
|
key: 0,
|
|
11871
11871
|
class: "lupa-mobile-filter-sidebar"
|
|
11872
11872
|
};
|
|
11873
|
-
const _hoisted_2$
|
|
11874
|
-
const _hoisted_3$
|
|
11875
|
-
const _hoisted_4$
|
|
11873
|
+
const _hoisted_2$n = ["onClick"];
|
|
11874
|
+
const _hoisted_3$g = { class: "lupa-mobile-sidebar-content" };
|
|
11875
|
+
const _hoisted_4$c = { class: "lupa-sidebar-top" };
|
|
11876
11876
|
const _hoisted_5$5 = { class: "lupa-sidebar-title" };
|
|
11877
11877
|
const _hoisted_6$3 = {
|
|
11878
11878
|
key: 0,
|
|
11879
11879
|
class: "lupa-sidebar-filter-count"
|
|
11880
11880
|
};
|
|
11881
11881
|
const _hoisted_7$3 = { class: "lupa-sidebar-filter-options" };
|
|
11882
|
-
const _sfc_main$
|
|
11882
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
11883
11883
|
__name: "MobileFilterSidebar",
|
|
11884
11884
|
props: {
|
|
11885
11885
|
options: {}
|
|
@@ -11905,13 +11905,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11905
11905
|
searchResultStore.setSidebarState({ visible: false });
|
|
11906
11906
|
};
|
|
11907
11907
|
return (_ctx, _cache) => {
|
|
11908
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11908
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
11909
11909
|
createBaseVNode("div", {
|
|
11910
11910
|
class: "lupa-sidebar-close",
|
|
11911
11911
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
11912
|
-
}, null, 8, _hoisted_2$
|
|
11913
|
-
createBaseVNode("div", _hoisted_3$
|
|
11914
|
-
createBaseVNode("div", _hoisted_4$
|
|
11912
|
+
}, null, 8, _hoisted_2$n),
|
|
11913
|
+
createBaseVNode("div", _hoisted_3$g, [
|
|
11914
|
+
createBaseVNode("div", _hoisted_4$c, [
|
|
11915
11915
|
createBaseVNode("div", _hoisted_5$5, [
|
|
11916
11916
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
11917
11917
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$3, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
@@ -11922,7 +11922,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11922
11922
|
})
|
|
11923
11923
|
]),
|
|
11924
11924
|
createBaseVNode("div", _hoisted_7$3, [
|
|
11925
|
-
createVNode(_sfc_main$
|
|
11925
|
+
createVNode(_sfc_main$D, {
|
|
11926
11926
|
options: _ctx.options,
|
|
11927
11927
|
expandable: isActiveFiltersExpanded.value
|
|
11928
11928
|
}, null, 8, ["options", "expandable"])
|
|
@@ -11932,14 +11932,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11932
11932
|
};
|
|
11933
11933
|
}
|
|
11934
11934
|
});
|
|
11935
|
-
const _hoisted_1$
|
|
11936
|
-
const _hoisted_2$
|
|
11937
|
-
const _hoisted_3$
|
|
11935
|
+
const _hoisted_1$y = { id: "lupa-search-results-breadcrumbs" };
|
|
11936
|
+
const _hoisted_2$m = ["href", "onClick"];
|
|
11937
|
+
const _hoisted_3$f = {
|
|
11938
11938
|
key: 1,
|
|
11939
11939
|
class: "lupa-search-results-breadcrumb-text"
|
|
11940
11940
|
};
|
|
11941
|
-
const _hoisted_4$
|
|
11942
|
-
const _sfc_main$
|
|
11941
|
+
const _hoisted_4$b = { key: 2 };
|
|
11942
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
11943
11943
|
__name: "SearchResultsBreadcrumbs",
|
|
11944
11944
|
props: {
|
|
11945
11945
|
breadcrumbs: {}
|
|
@@ -11964,7 +11964,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11964
11964
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
11965
11965
|
};
|
|
11966
11966
|
return (_ctx, _cache) => {
|
|
11967
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11967
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
11968
11968
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
11969
11969
|
return openBlock(), createElementBlock("span", {
|
|
11970
11970
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -11978,19 +11978,19 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11978
11978
|
var _a;
|
|
11979
11979
|
return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
11980
11980
|
}
|
|
11981
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
11982
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
11981
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$m)) : (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
11982
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$b, " / ")) : createCommentVNode("", true)
|
|
11983
11983
|
]);
|
|
11984
11984
|
}), 128))
|
|
11985
11985
|
]);
|
|
11986
11986
|
};
|
|
11987
11987
|
}
|
|
11988
11988
|
});
|
|
11989
|
-
const _hoisted_1$
|
|
11989
|
+
const _hoisted_1$x = {
|
|
11990
11990
|
id: "lupa-search-result-filters",
|
|
11991
11991
|
class: "lupa-search-result-filters"
|
|
11992
11992
|
};
|
|
11993
|
-
const _sfc_main$
|
|
11993
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
11994
11994
|
__name: "FiltersTopDropdown",
|
|
11995
11995
|
props: {
|
|
11996
11996
|
options: {}
|
|
@@ -11998,8 +11998,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
11998
11998
|
setup(__props) {
|
|
11999
11999
|
return (_ctx, _cache) => {
|
|
12000
12000
|
var _a;
|
|
12001
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12002
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
12001
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
12002
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$E, {
|
|
12003
12003
|
key: 0,
|
|
12004
12004
|
options: _ctx.options.facets,
|
|
12005
12005
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -12009,8 +12009,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
12009
12009
|
};
|
|
12010
12010
|
}
|
|
12011
12011
|
});
|
|
12012
|
-
const _hoisted_1$
|
|
12013
|
-
const _sfc_main$
|
|
12012
|
+
const _hoisted_1$w = { id: "lupa-search-results-layout-selection" };
|
|
12013
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
12014
12014
|
__name: "SearchResultsLayoutSelection",
|
|
12015
12015
|
setup(__props) {
|
|
12016
12016
|
const searchResultStore = useSearchResultStore();
|
|
@@ -12021,7 +12021,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
12021
12021
|
searchResultStore.setLayout(layout2);
|
|
12022
12022
|
};
|
|
12023
12023
|
return (_ctx, _cache) => {
|
|
12024
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12024
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
12025
12025
|
createBaseVNode("div", {
|
|
12026
12026
|
class: normalizeClass([
|
|
12027
12027
|
"lupa-layout-selection-grid",
|
|
@@ -12043,11 +12043,11 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
12043
12043
|
};
|
|
12044
12044
|
}
|
|
12045
12045
|
});
|
|
12046
|
-
const _hoisted_1$
|
|
12046
|
+
const _hoisted_1$v = {
|
|
12047
12047
|
key: 0,
|
|
12048
12048
|
class: "lupa-mobile-toggle-filter-count"
|
|
12049
12049
|
};
|
|
12050
|
-
const _sfc_main$
|
|
12050
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
12051
12051
|
__name: "SearchResultsMobileToggle",
|
|
12052
12052
|
props: {
|
|
12053
12053
|
label: {},
|
|
@@ -12065,26 +12065,26 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
12065
12065
|
onClick: handleMobileToggle
|
|
12066
12066
|
}, [
|
|
12067
12067
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
12068
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
12068
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$v, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
12069
12069
|
], 2);
|
|
12070
12070
|
};
|
|
12071
12071
|
}
|
|
12072
12072
|
});
|
|
12073
|
-
const _hoisted_1$
|
|
12073
|
+
const _hoisted_1$u = {
|
|
12074
12074
|
key: 0,
|
|
12075
12075
|
id: "lupa-search-results-page-select",
|
|
12076
12076
|
"data-cy": "lupa-search-results-page-select"
|
|
12077
12077
|
};
|
|
12078
|
-
const _hoisted_2$
|
|
12078
|
+
const _hoisted_2$l = {
|
|
12079
12079
|
key: 0,
|
|
12080
12080
|
class: "lupa-page-number-separator"
|
|
12081
12081
|
};
|
|
12082
|
-
const _hoisted_3$
|
|
12083
|
-
const _hoisted_4$
|
|
12082
|
+
const _hoisted_3$e = ["onClick"];
|
|
12083
|
+
const _hoisted_4$a = {
|
|
12084
12084
|
key: 0,
|
|
12085
12085
|
class: "lupa-page-number-separator"
|
|
12086
12086
|
};
|
|
12087
|
-
const _sfc_main$
|
|
12087
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
12088
12088
|
__name: "SearchResultsPageSelect",
|
|
12089
12089
|
props: {
|
|
12090
12090
|
lastPageLabel: {},
|
|
@@ -12146,7 +12146,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12146
12146
|
}
|
|
12147
12147
|
};
|
|
12148
12148
|
return (_ctx, _cache) => {
|
|
12149
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
12149
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
12150
12150
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
12151
12151
|
key: 0,
|
|
12152
12152
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -12157,7 +12157,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12157
12157
|
class: "lupa-page-number lupa-page-number-first",
|
|
12158
12158
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
12159
12159
|
}, " 1 "),
|
|
12160
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12160
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, "...")) : createCommentVNode("", true)
|
|
12161
12161
|
], 64)) : createCommentVNode("", true),
|
|
12162
12162
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
12163
12163
|
return openBlock(), createElementBlock("div", {
|
|
@@ -12168,10 +12168,10 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12168
12168
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
12169
12169
|
]),
|
|
12170
12170
|
"data-cy": "lupa-page-number"
|
|
12171
|
-
}, toDisplayString(page), 11, _hoisted_3$
|
|
12171
|
+
}, toDisplayString(page), 11, _hoisted_3$e);
|
|
12172
12172
|
}), 128)),
|
|
12173
12173
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
12174
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
12174
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$a, "...")) : createCommentVNode("", true),
|
|
12175
12175
|
createBaseVNode("div", {
|
|
12176
12176
|
class: "lupa-page-number lupa-page-number-last",
|
|
12177
12177
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -12190,13 +12190,13 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12190
12190
|
};
|
|
12191
12191
|
}
|
|
12192
12192
|
});
|
|
12193
|
-
const _hoisted_1$
|
|
12193
|
+
const _hoisted_1$t = {
|
|
12194
12194
|
id: "lupa-search-results-page-size",
|
|
12195
12195
|
"data-cy": "lupa-search-results-page-size"
|
|
12196
12196
|
};
|
|
12197
|
-
const _hoisted_2$
|
|
12198
|
-
const _hoisted_3$
|
|
12199
|
-
const _sfc_main$
|
|
12197
|
+
const _hoisted_2$k = { id: "lupa-select" };
|
|
12198
|
+
const _hoisted_3$d = { class: "lupa-select-label" };
|
|
12199
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
12200
12200
|
__name: "SearchResultsPageSize",
|
|
12201
12201
|
props: {
|
|
12202
12202
|
label: {},
|
|
@@ -12213,9 +12213,9 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
12213
12213
|
});
|
|
12214
12214
|
};
|
|
12215
12215
|
return (_ctx, _cache) => {
|
|
12216
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12217
|
-
createBaseVNode("div", _hoisted_2$
|
|
12218
|
-
createBaseVNode("label", _hoisted_3$
|
|
12216
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
12217
|
+
createBaseVNode("div", _hoisted_2$k, [
|
|
12218
|
+
createBaseVNode("label", _hoisted_3$d, toDisplayString(_ctx.label), 1),
|
|
12219
12219
|
createBaseVNode("select", {
|
|
12220
12220
|
class: "lupa-select-dropdown",
|
|
12221
12221
|
"data-cy": "lupa-page-size-select-dropdown",
|
|
@@ -12232,14 +12232,14 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
12232
12232
|
};
|
|
12233
12233
|
}
|
|
12234
12234
|
});
|
|
12235
|
-
const _hoisted_1$
|
|
12235
|
+
const _hoisted_1$s = {
|
|
12236
12236
|
id: "lupa-search-results-sort",
|
|
12237
12237
|
class: "lupa-search-results-sort"
|
|
12238
12238
|
};
|
|
12239
|
-
const _hoisted_2$
|
|
12240
|
-
const _hoisted_3$
|
|
12241
|
-
const _hoisted_4$
|
|
12242
|
-
const _sfc_main$
|
|
12239
|
+
const _hoisted_2$j = { id: "lupa-select" };
|
|
12240
|
+
const _hoisted_3$c = { class: "lupa-select-label" };
|
|
12241
|
+
const _hoisted_4$9 = ["value"];
|
|
12242
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
12243
12243
|
__name: "SearchResultsSort",
|
|
12244
12244
|
props: {
|
|
12245
12245
|
options: {}
|
|
@@ -12281,9 +12281,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
12281
12281
|
});
|
|
12282
12282
|
};
|
|
12283
12283
|
return (_ctx, _cache) => {
|
|
12284
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12285
|
-
createBaseVNode("div", _hoisted_2$
|
|
12286
|
-
createBaseVNode("label", _hoisted_3$
|
|
12284
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
12285
|
+
createBaseVNode("div", _hoisted_2$j, [
|
|
12286
|
+
createBaseVNode("label", _hoisted_3$c, toDisplayString(_ctx.options.label), 1),
|
|
12287
12287
|
withDirectives(createBaseVNode("select", {
|
|
12288
12288
|
class: "lupa-select-dropdown",
|
|
12289
12289
|
"data-cy": "lupa-sort-select-dropdown",
|
|
@@ -12295,7 +12295,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
12295
12295
|
return openBlock(), createElementBlock("option", {
|
|
12296
12296
|
key: option.key,
|
|
12297
12297
|
value: option.key
|
|
12298
|
-
}, toDisplayString(option.label), 9, _hoisted_4$
|
|
12298
|
+
}, toDisplayString(option.label), 9, _hoisted_4$9);
|
|
12299
12299
|
}), 128))
|
|
12300
12300
|
], 544), [
|
|
12301
12301
|
[vModelSelect, selectedKey.value]
|
|
@@ -12305,14 +12305,14 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
12305
12305
|
};
|
|
12306
12306
|
}
|
|
12307
12307
|
});
|
|
12308
|
-
const _hoisted_1$
|
|
12309
|
-
const _hoisted_2$
|
|
12310
|
-
const _hoisted_3$
|
|
12311
|
-
const _hoisted_4$
|
|
12308
|
+
const _hoisted_1$r = { class: "lupa-toolbar-left" };
|
|
12309
|
+
const _hoisted_2$i = { key: 1 };
|
|
12310
|
+
const _hoisted_3$b = { key: 3 };
|
|
12311
|
+
const _hoisted_4$8 = { key: 5 };
|
|
12312
12312
|
const _hoisted_5$4 = { class: "lupa-toolbar-right" };
|
|
12313
12313
|
const _hoisted_6$2 = { key: 1 };
|
|
12314
12314
|
const _hoisted_7$2 = { key: 3 };
|
|
12315
|
-
const _sfc_main$
|
|
12315
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
12316
12316
|
__name: "SearchResultsToolbar",
|
|
12317
12317
|
props: {
|
|
12318
12318
|
options: {},
|
|
@@ -12409,32 +12409,32 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
12409
12409
|
id: "lupa-search-results-toolbar",
|
|
12410
12410
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
12411
12411
|
}, [
|
|
12412
|
-
createBaseVNode("div", _hoisted_1$
|
|
12413
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
12414
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
12412
|
+
createBaseVNode("div", _hoisted_1$r, [
|
|
12413
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$z, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$i)),
|
|
12414
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
12415
12415
|
key: 2,
|
|
12416
12416
|
label: searchSummaryLabel.value,
|
|
12417
12417
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
12418
12418
|
onClear: handleClearAll
|
|
12419
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
12420
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
12419
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$b)),
|
|
12420
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$x, {
|
|
12421
12421
|
key: 4,
|
|
12422
12422
|
options: paginationOptions.value.pageSelect,
|
|
12423
12423
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
12424
12424
|
"first-page-label": paginationOptions.value.labels.showLess
|
|
12425
|
-
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
12425
|
+
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$8))
|
|
12426
12426
|
]),
|
|
12427
12427
|
createBaseVNode("div", _hoisted_5$4, [
|
|
12428
|
-
createVNode(_sfc_main$
|
|
12428
|
+
createVNode(_sfc_main$y, {
|
|
12429
12429
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
12430
12430
|
"show-filter-count": showMobileFilterCount.value
|
|
12431
12431
|
}, null, 8, ["label", "show-filter-count"]),
|
|
12432
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
12432
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$w, {
|
|
12433
12433
|
key: 0,
|
|
12434
12434
|
options: paginationOptions.value.pageSize,
|
|
12435
12435
|
label: paginationOptions.value.labels.pageSize
|
|
12436
12436
|
}, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$2)),
|
|
12437
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
12437
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$v, {
|
|
12438
12438
|
key: 2,
|
|
12439
12439
|
options: sortOptions.value
|
|
12440
12440
|
}, null, 8, ["options"])) : (openBlock(), createElementBlock("div", _hoisted_7$2))
|
|
@@ -12443,6 +12443,58 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
12443
12443
|
};
|
|
12444
12444
|
}
|
|
12445
12445
|
});
|
|
12446
|
+
const _hoisted_1$q = { class: "lupa-badge-title" };
|
|
12447
|
+
const _hoisted_2$h = ["src"];
|
|
12448
|
+
const _hoisted_3$a = { key: 1 };
|
|
12449
|
+
const _hoisted_4$7 = {
|
|
12450
|
+
key: 0,
|
|
12451
|
+
class: "lupa-badge-full-text"
|
|
12452
|
+
};
|
|
12453
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
12454
|
+
__name: "SearchResultGeneratedBadge",
|
|
12455
|
+
props: {
|
|
12456
|
+
options: {},
|
|
12457
|
+
badge: {}
|
|
12458
|
+
},
|
|
12459
|
+
setup(__props) {
|
|
12460
|
+
const props = __props;
|
|
12461
|
+
const image = computed(() => {
|
|
12462
|
+
var _a, _b, _c;
|
|
12463
|
+
return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.image) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : "";
|
|
12464
|
+
});
|
|
12465
|
+
const showTitle = computed(() => {
|
|
12466
|
+
var _a, _b, _c;
|
|
12467
|
+
return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.showTitle) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : true;
|
|
12468
|
+
});
|
|
12469
|
+
const hasAdditionalText = computed(() => {
|
|
12470
|
+
var _a, _b;
|
|
12471
|
+
return Boolean((_a = props.badge) == null ? void 0 : _a.additionalText) && typeof ((_b = props.badge) == null ? void 0 : _b.additionalText) === "string";
|
|
12472
|
+
});
|
|
12473
|
+
const hasTitleText = computed(() => {
|
|
12474
|
+
var _a, _b;
|
|
12475
|
+
return Boolean((_a = props.badge) == null ? void 0 : _a.titleText) && typeof ((_b = props.badge) == null ? void 0 : _b.titleText) === "string";
|
|
12476
|
+
});
|
|
12477
|
+
const customClassName = computed(() => {
|
|
12478
|
+
var _a, _b, _c;
|
|
12479
|
+
return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.customClass) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : "";
|
|
12480
|
+
});
|
|
12481
|
+
return (_ctx, _cache) => {
|
|
12482
|
+
return openBlock(), createElementBlock("div", {
|
|
12483
|
+
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
12484
|
+
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
12485
|
+
}, [
|
|
12486
|
+
createBaseVNode("span", _hoisted_1$q, [
|
|
12487
|
+
image.value ? (openBlock(), createElementBlock("img", {
|
|
12488
|
+
key: 0,
|
|
12489
|
+
src: image.value
|
|
12490
|
+
}, null, 8, _hoisted_2$h)) : createCommentVNode("", true),
|
|
12491
|
+
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$a, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
12492
|
+
]),
|
|
12493
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$7, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
12494
|
+
], 6);
|
|
12495
|
+
};
|
|
12496
|
+
}
|
|
12497
|
+
});
|
|
12446
12498
|
const _hoisted_1$p = { class: "lupa-generated-badges" };
|
|
12447
12499
|
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
12448
12500
|
__name: "SearchResultGeneratedBadges",
|
|
@@ -12470,10 +12522,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
12470
12522
|
})).filter((b) => Boolean(b.id));
|
|
12471
12523
|
});
|
|
12472
12524
|
return (_ctx, _cache) => {
|
|
12473
|
-
const _component_SearchResultGeneratedBadge = resolveComponent("SearchResultGeneratedBadge");
|
|
12474
12525
|
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
12475
12526
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
12476
|
-
return openBlock(), createBlock(
|
|
12527
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
12477
12528
|
key: badge.id,
|
|
12478
12529
|
badge,
|
|
12479
12530
|
options: _ctx.options
|
|
@@ -12636,7 +12687,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
12636
12687
|
badge
|
|
12637
12688
|
}, null, 8, ["badge"]);
|
|
12638
12689
|
}), 128)),
|
|
12639
|
-
|
|
12690
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$s, {
|
|
12640
12691
|
key: 0,
|
|
12641
12692
|
options: _ctx.options
|
|
12642
12693
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -12653,7 +12704,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
12653
12704
|
},
|
|
12654
12705
|
setup(__props) {
|
|
12655
12706
|
return (_ctx, _cache) => {
|
|
12656
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12707
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
12657
12708
|
item: _ctx.item,
|
|
12658
12709
|
options: _ctx.options,
|
|
12659
12710
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -13734,17 +13785,17 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13734
13785
|
class: "lupa-loader"
|
|
13735
13786
|
})) : createCommentVNode("", true),
|
|
13736
13787
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
13737
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13788
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$A, {
|
|
13738
13789
|
key: 0,
|
|
13739
13790
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
13740
13791
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13741
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13792
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$u, {
|
|
13742
13793
|
key: 1,
|
|
13743
13794
|
class: "lupa-toolbar-mobile",
|
|
13744
13795
|
options: _ctx.options,
|
|
13745
13796
|
"pagination-location": "top"
|
|
13746
13797
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13747
|
-
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
13798
|
+
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$N, {
|
|
13748
13799
|
key: 2,
|
|
13749
13800
|
class: normalizeClass(currentFiltersClass.value),
|
|
13750
13801
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -13758,7 +13809,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13758
13809
|
sdkOptions: _ctx.options.options
|
|
13759
13810
|
}, null, 8, ["options", "sdkOptions"]),
|
|
13760
13811
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
13761
|
-
createVNode(_sfc_main$
|
|
13812
|
+
createVNode(_sfc_main$u, {
|
|
13762
13813
|
class: "lupa-toolbar-top",
|
|
13763
13814
|
options: _ctx.options,
|
|
13764
13815
|
"pagination-location": "top"
|
|
@@ -13788,7 +13839,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13788
13839
|
onClick: goToFirstPage
|
|
13789
13840
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
13790
13841
|
])) : createCommentVNode("", true),
|
|
13791
|
-
createVNode(_sfc_main$
|
|
13842
|
+
createVNode(_sfc_main$u, {
|
|
13792
13843
|
class: "lupa-toolbar-bottom",
|
|
13793
13844
|
options: _ctx.options,
|
|
13794
13845
|
"pagination-location": "bottom"
|
|
@@ -13860,7 +13911,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
13860
13911
|
onClick: handleNavigationBack
|
|
13861
13912
|
}, toDisplayString(backTitle.value), 9, _hoisted_3$1)
|
|
13862
13913
|
])) : createCommentVNode("", true),
|
|
13863
|
-
createVNode(_sfc_main$
|
|
13914
|
+
createVNode(_sfc_main$u, {
|
|
13864
13915
|
class: "lupa-toolbar-mobile",
|
|
13865
13916
|
"pagination-location": "top",
|
|
13866
13917
|
options: _ctx.options
|
|
@@ -14071,8 +14122,8 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
14071
14122
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
14072
14123
|
}, [
|
|
14073
14124
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
14074
|
-
createVNode(_sfc_main$
|
|
14075
|
-
createVNode(_sfc_main$
|
|
14125
|
+
createVNode(_sfc_main$R, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14126
|
+
createVNode(_sfc_main$P, {
|
|
14076
14127
|
"show-summary": true,
|
|
14077
14128
|
options: _ctx.options,
|
|
14078
14129
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
@@ -14082,24 +14133,24 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
14082
14133
|
key: 1,
|
|
14083
14134
|
options: _ctx.options
|
|
14084
14135
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14085
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
14136
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$C, {
|
|
14086
14137
|
key: 2,
|
|
14087
14138
|
options: _ctx.options.filters
|
|
14088
14139
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14089
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
14140
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$B, {
|
|
14090
14141
|
key: 3,
|
|
14091
14142
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
14092
14143
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
14093
14144
|
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
|
|
14094
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14145
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$D, {
|
|
14095
14146
|
key: 0,
|
|
14096
14147
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
14097
14148
|
ref_key: "searchResultsFilters",
|
|
14098
14149
|
ref: searchResultsFilters
|
|
14099
14150
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14100
14151
|
createBaseVNode("div", _hoisted_3, [
|
|
14101
|
-
createVNode(_sfc_main$
|
|
14102
|
-
createVNode(_sfc_main$
|
|
14152
|
+
createVNode(_sfc_main$R, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14153
|
+
createVNode(_sfc_main$P, {
|
|
14103
14154
|
options: _ctx.options,
|
|
14104
14155
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
14105
14156
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -14114,13 +14165,13 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
14114
14165
|
}, 8, ["options", "ssr"])
|
|
14115
14166
|
])
|
|
14116
14167
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
14117
|
-
createVNode(_sfc_main$
|
|
14118
|
-
createVNode(_sfc_main$
|
|
14168
|
+
createVNode(_sfc_main$R, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14169
|
+
createVNode(_sfc_main$P, {
|
|
14119
14170
|
options: _ctx.options,
|
|
14120
14171
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
14121
14172
|
}, null, 8, ["options", "is-product-list"]),
|
|
14122
14173
|
createBaseVNode("div", _hoisted_4, [
|
|
14123
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14174
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$D, {
|
|
14124
14175
|
key: 0,
|
|
14125
14176
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
14126
14177
|
ref_key: "searchResultsFilters",
|
|
@@ -19748,7 +19799,7 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
|
19748
19799
|
onClick: withModifiers(innerClick, ["stop"])
|
|
19749
19800
|
}, [
|
|
19750
19801
|
createBaseVNode("div", _hoisted_2$1, [
|
|
19751
|
-
createVNode(_sfc_main$
|
|
19802
|
+
createVNode(_sfc_main$S, {
|
|
19752
19803
|
options: fullSearchBoxOptions.value,
|
|
19753
19804
|
"is-search-container": true,
|
|
19754
19805
|
ref_key: "searchBox",
|
|
@@ -20471,7 +20522,7 @@ const _hoisted_2 = {
|
|
|
20471
20522
|
class: "lupa-recommended-products",
|
|
20472
20523
|
"data-cy": "lupa-recommended-products"
|
|
20473
20524
|
};
|
|
20474
|
-
const _sfc_main$
|
|
20525
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
20475
20526
|
__name: "Recommendations",
|
|
20476
20527
|
props: {
|
|
20477
20528
|
options: {}
|
|
@@ -26148,7 +26199,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
26148
26199
|
};
|
|
26149
26200
|
__expose({ fetch: fetch2 });
|
|
26150
26201
|
return (_ctx, _cache) => {
|
|
26151
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26202
|
+
return openBlock(), createBlock(unref(_sfc_main$S), {
|
|
26152
26203
|
options: fullSearchBoxOptions.value,
|
|
26153
26204
|
ref_key: "searchBox",
|
|
26154
26205
|
ref: searchBox2
|
|
@@ -26404,7 +26455,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26404
26455
|
};
|
|
26405
26456
|
__expose({ fetch: fetch2 });
|
|
26406
26457
|
return (_ctx, _cache) => {
|
|
26407
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26458
|
+
return openBlock(), createBlock(unref(_sfc_main$1c), {
|
|
26408
26459
|
options: _ctx.recommendationOptions,
|
|
26409
26460
|
ref_key: "productRecommendations",
|
|
26410
26461
|
ref: productRecommendations
|
|
@@ -26694,7 +26745,7 @@ const lupaSearch = {
|
|
|
26694
26745
|
clearSearchContainer,
|
|
26695
26746
|
clearRecommendations
|
|
26696
26747
|
};
|
|
26697
|
-
if (window) {
|
|
26748
|
+
if (typeof window !== "undefined") {
|
|
26698
26749
|
window.getLupa = lupaSearch;
|
|
26699
26750
|
window.lupaSearch = lupaSearch;
|
|
26700
26751
|
}
|