@getlupa/client 1.10.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lupaSearch.iife.js +559 -528
- package/dist/lupaSearch.js +559 -528
- package/dist/lupaSearch.mjs +559 -528
- package/dist/lupaSearch.umd.js +559 -528
- package/package.json +2 -2
package/dist/lupaSearch.js
CHANGED
|
@@ -7865,7 +7865,7 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
7865
7865
|
resetHighlightIndex
|
|
7866
7866
|
};
|
|
7867
7867
|
});
|
|
7868
|
-
const _hoisted_1$
|
|
7868
|
+
const _hoisted_1$1d = { id: "lupa-search-box-input-container" };
|
|
7869
7869
|
const _hoisted_2$P = { class: "lupa-input-clear" };
|
|
7870
7870
|
const _hoisted_3$A = { id: "lupa-search-box-input" };
|
|
7871
7871
|
const _hoisted_4$s = ["value"];
|
|
@@ -7955,7 +7955,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
7955
7955
|
};
|
|
7956
7956
|
__expose({ focus });
|
|
7957
7957
|
return (_ctx, _cache) => {
|
|
7958
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7958
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1d, [
|
|
7959
7959
|
createBaseVNode("div", _hoisted_2$P, [
|
|
7960
7960
|
createBaseVNode("div", {
|
|
7961
7961
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
@@ -8029,7 +8029,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
8029
8029
|
};
|
|
8030
8030
|
}
|
|
8031
8031
|
});
|
|
8032
|
-
const _hoisted_1$
|
|
8032
|
+
const _hoisted_1$1c = { class: "lupa-search-box-history-item" };
|
|
8033
8033
|
const _hoisted_2$O = { class: "lupa-search-box-history-item-content" };
|
|
8034
8034
|
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
8035
8035
|
__name: "SearchBoxHistoryItem",
|
|
@@ -8047,7 +8047,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
8047
8047
|
emit2("click", { query: props.item });
|
|
8048
8048
|
};
|
|
8049
8049
|
return (_ctx, _cache) => {
|
|
8050
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8050
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
8051
8051
|
createBaseVNode("div", _hoisted_2$O, [
|
|
8052
8052
|
createBaseVNode("div", {
|
|
8053
8053
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
@@ -8062,7 +8062,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
8062
8062
|
};
|
|
8063
8063
|
}
|
|
8064
8064
|
});
|
|
8065
|
-
const _hoisted_1$
|
|
8065
|
+
const _hoisted_1$1b = {
|
|
8066
8066
|
key: 0,
|
|
8067
8067
|
class: "lupa-search-box-history-panel"
|
|
8068
8068
|
};
|
|
@@ -8107,7 +8107,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
8107
8107
|
}
|
|
8108
8108
|
};
|
|
8109
8109
|
return (_ctx, _cache) => {
|
|
8110
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
8110
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1b, [
|
|
8111
8111
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
8112
8112
|
return openBlock(), createBlock(_sfc_main$1j, {
|
|
8113
8113
|
key: item,
|
|
@@ -8125,7 +8125,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
8125
8125
|
};
|
|
8126
8126
|
}
|
|
8127
8127
|
});
|
|
8128
|
-
const _hoisted_1$
|
|
8128
|
+
const _hoisted_1$1a = { class: "lupa-search-box-no-results" };
|
|
8129
8129
|
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
8130
8130
|
__name: "SearchBoxNoResults",
|
|
8131
8131
|
props: {
|
|
@@ -8133,11 +8133,11 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
8133
8133
|
},
|
|
8134
8134
|
setup(__props) {
|
|
8135
8135
|
return (_ctx, _cache) => {
|
|
8136
|
-
return openBlock(), createElementBlock("p", _hoisted_1$
|
|
8136
|
+
return openBlock(), createElementBlock("p", _hoisted_1$1a, toDisplayString(_ctx.labels.noResults), 1);
|
|
8137
8137
|
};
|
|
8138
8138
|
}
|
|
8139
8139
|
});
|
|
8140
|
-
const _hoisted_1$
|
|
8140
|
+
const _hoisted_1$19 = ["innerHTML"];
|
|
8141
8141
|
const _hoisted_2$N = {
|
|
8142
8142
|
key: 1,
|
|
8143
8143
|
"data-cy": "lupa-suggestion-value",
|
|
@@ -8192,7 +8192,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
8192
8192
|
class: "lupa-suggestion-value",
|
|
8193
8193
|
"data-cy": "lupa-suggestion-value",
|
|
8194
8194
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
8195
|
-
}, null, 8, _hoisted_1$
|
|
8195
|
+
}, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8196
8196
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
8197
8197
|
createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
|
|
8198
8198
|
createBaseVNode("span", _hoisted_5$g, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
@@ -8201,7 +8201,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
8201
8201
|
};
|
|
8202
8202
|
}
|
|
8203
8203
|
});
|
|
8204
|
-
const _hoisted_1$
|
|
8204
|
+
const _hoisted_1$18 = {
|
|
8205
8205
|
id: "lupa-search-box-suggestions",
|
|
8206
8206
|
"data-cy": "lupa-search-box-suggestions"
|
|
8207
8207
|
};
|
|
@@ -8265,7 +8265,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
8265
8265
|
});
|
|
8266
8266
|
});
|
|
8267
8267
|
return (_ctx, _cache) => {
|
|
8268
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8268
|
+
return openBlock(), createElementBlock("div", _hoisted_1$18, [
|
|
8269
8269
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
8270
8270
|
return openBlock(), createBlock(_sfc_main$1g, {
|
|
8271
8271
|
key: getSuggestionKey(item),
|
|
@@ -8424,7 +8424,7 @@ const joinUrlParts = (...parts) => {
|
|
|
8424
8424
|
}
|
|
8425
8425
|
return (_c = (_b = (_a = parts == null ? void 0 : parts.map((part) => part.replace(/(^\/+|\/+$)/g, ""))) == null ? void 0 : _a.filter((part) => part !== "")) == null ? void 0 : _b.join("/")) != null ? _c : "";
|
|
8426
8426
|
};
|
|
8427
|
-
const _hoisted_1$
|
|
8427
|
+
const _hoisted_1$17 = ["src"];
|
|
8428
8428
|
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
8429
8429
|
__name: "ProductImage",
|
|
8430
8430
|
props: {
|
|
@@ -8478,7 +8478,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
8478
8478
|
createBaseVNode("img", mergeProps({
|
|
8479
8479
|
class: (_b = _ctx.imageClass) != null ? _b : "",
|
|
8480
8480
|
src: finalUrl.value
|
|
8481
|
-
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_1$
|
|
8481
|
+
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_1$17)
|
|
8482
8482
|
], 2);
|
|
8483
8483
|
};
|
|
8484
8484
|
}
|
|
@@ -8500,7 +8500,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
8500
8500
|
};
|
|
8501
8501
|
}
|
|
8502
8502
|
});
|
|
8503
|
-
const _hoisted_1$
|
|
8503
|
+
const _hoisted_1$16 = ["innerHTML"];
|
|
8504
8504
|
const _hoisted_2$M = {
|
|
8505
8505
|
key: 1,
|
|
8506
8506
|
class: "lupa-search-box-product-title"
|
|
@@ -8525,13 +8525,13 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
8525
8525
|
key: 0,
|
|
8526
8526
|
class: "lupa-search-box-product-title",
|
|
8527
8527
|
innerHTML: title.value
|
|
8528
|
-
}, null, 8, _hoisted_1$
|
|
8528
|
+
}, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("div", _hoisted_2$M, [
|
|
8529
8529
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
8530
8530
|
]));
|
|
8531
8531
|
};
|
|
8532
8532
|
}
|
|
8533
8533
|
});
|
|
8534
|
-
const _hoisted_1$
|
|
8534
|
+
const _hoisted_1$15 = ["innerHTML"];
|
|
8535
8535
|
const _hoisted_2$L = {
|
|
8536
8536
|
key: 1,
|
|
8537
8537
|
class: "lupa-search-box-product-description"
|
|
@@ -8556,11 +8556,11 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
8556
8556
|
key: 0,
|
|
8557
8557
|
class: "lupa-search-box-product-description",
|
|
8558
8558
|
innerHTML: description.value
|
|
8559
|
-
}, null, 8, _hoisted_1$
|
|
8559
|
+
}, null, 8, _hoisted_1$15)) : (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString(description.value), 1));
|
|
8560
8560
|
};
|
|
8561
8561
|
}
|
|
8562
8562
|
});
|
|
8563
|
-
const _hoisted_1$
|
|
8563
|
+
const _hoisted_1$14 = { class: "lupa-search-box-product-price" };
|
|
8564
8564
|
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
8565
8565
|
__name: "SearchBoxProductPrice",
|
|
8566
8566
|
props: {
|
|
@@ -8579,13 +8579,13 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
8579
8579
|
);
|
|
8580
8580
|
});
|
|
8581
8581
|
return (_ctx, _cache) => {
|
|
8582
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8582
|
+
return openBlock(), createElementBlock("div", _hoisted_1$14, [
|
|
8583
8583
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
8584
8584
|
]);
|
|
8585
8585
|
};
|
|
8586
8586
|
}
|
|
8587
8587
|
});
|
|
8588
|
-
const _hoisted_1$
|
|
8588
|
+
const _hoisted_1$13 = { class: "lupa-search-box-product-regular-price" };
|
|
8589
8589
|
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
8590
8590
|
__name: "SearchBoxProductRegularPrice",
|
|
8591
8591
|
props: {
|
|
@@ -8604,11 +8604,11 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
8604
8604
|
);
|
|
8605
8605
|
});
|
|
8606
8606
|
return (_ctx, _cache) => {
|
|
8607
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8607
|
+
return openBlock(), createElementBlock("div", _hoisted_1$13, toDisplayString(price.value), 1);
|
|
8608
8608
|
};
|
|
8609
8609
|
}
|
|
8610
8610
|
});
|
|
8611
|
-
const _hoisted_1$
|
|
8611
|
+
const _hoisted_1$12 = ["innerHTML"];
|
|
8612
8612
|
const _hoisted_2$K = { key: 0 };
|
|
8613
8613
|
const _hoisted_3$y = { key: 1 };
|
|
8614
8614
|
const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
|
|
@@ -8639,7 +8639,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
8639
8639
|
key: 0,
|
|
8640
8640
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
8641
8641
|
innerHTML: text.value
|
|
8642
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
8642
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$12)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
8643
8643
|
key: 1,
|
|
8644
8644
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
8645
8645
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
@@ -8651,7 +8651,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
8651
8651
|
};
|
|
8652
8652
|
}
|
|
8653
8653
|
});
|
|
8654
|
-
const _hoisted_1$
|
|
8654
|
+
const _hoisted_1$11 = ["innerHTML"];
|
|
8655
8655
|
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
8656
8656
|
__name: "SearchBoxProductCustomHtml",
|
|
8657
8657
|
props: {
|
|
@@ -8672,7 +8672,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
8672
8672
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
8673
8673
|
class: className.value,
|
|
8674
8674
|
innerHTML: text.value
|
|
8675
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
8675
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$11);
|
|
8676
8676
|
};
|
|
8677
8677
|
}
|
|
8678
8678
|
});
|
|
@@ -8866,7 +8866,7 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
8866
8866
|
setLoading
|
|
8867
8867
|
};
|
|
8868
8868
|
});
|
|
8869
|
-
const _hoisted_1
|
|
8869
|
+
const _hoisted_1$10 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
8870
8870
|
const _hoisted_2$J = { class: "lupa-search-box-product-addtocart" };
|
|
8871
8871
|
const _hoisted_3$x = ["onClick", "disabled"];
|
|
8872
8872
|
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
@@ -8896,7 +8896,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
8896
8896
|
loading.value = false;
|
|
8897
8897
|
});
|
|
8898
8898
|
return (_ctx, _cache) => {
|
|
8899
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
8899
|
+
return openBlock(), createElementBlock("div", _hoisted_1$10, [
|
|
8900
8900
|
createBaseVNode("div", _hoisted_2$J, [
|
|
8901
8901
|
createBaseVNode("button", {
|
|
8902
8902
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
@@ -8910,6 +8910,10 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
8910
8910
|
};
|
|
8911
8911
|
}
|
|
8912
8912
|
});
|
|
8913
|
+
const _hoisted_1$$ = {
|
|
8914
|
+
key: 1,
|
|
8915
|
+
class: "lupa-search-box-element-badge-wrapper"
|
|
8916
|
+
};
|
|
8913
8917
|
const __default__$4 = {
|
|
8914
8918
|
components: {
|
|
8915
8919
|
SearchBoxProductImage: _sfc_main$1c,
|
|
@@ -8970,26 +8974,291 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
8970
8974
|
return Boolean(props.element.dynamic && id && loading.value && (loadingIds == null ? void 0 : loadingIds.value[id]));
|
|
8971
8975
|
};
|
|
8972
8976
|
return (_ctx, _cache) => {
|
|
8973
|
-
var _a;
|
|
8974
|
-
return
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8977
|
+
var _a, _b;
|
|
8978
|
+
return !_ctx.$slots.badges ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
8979
|
+
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
8980
|
+
key: 0,
|
|
8981
|
+
item: enhancedItem.value,
|
|
8982
|
+
options: _ctx.element,
|
|
8983
|
+
labels: _ctx.labels,
|
|
8984
|
+
class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
|
|
8985
|
+
inStock: _ctx.isInStock
|
|
8986
|
+
}, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
|
|
8987
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
8988
|
+
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
8989
|
+
key: 0,
|
|
8990
|
+
item: enhancedItem.value,
|
|
8991
|
+
options: _ctx.element,
|
|
8992
|
+
labels: _ctx.labels,
|
|
8993
|
+
class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_b = _ctx.item) == null ? void 0 : _b.id) }),
|
|
8994
|
+
inStock: _ctx.isInStock
|
|
8995
|
+
}, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true),
|
|
8996
|
+
renderSlot(_ctx.$slots, "badges")
|
|
8997
|
+
]));
|
|
8982
8998
|
};
|
|
8983
8999
|
}
|
|
8984
9000
|
}));
|
|
8985
|
-
const _hoisted_1$_ =
|
|
8986
|
-
const _hoisted_2$I =
|
|
8987
|
-
const _hoisted_3$w = {
|
|
9001
|
+
const _hoisted_1$_ = { class: "lupa-badge-title" };
|
|
9002
|
+
const _hoisted_2$I = ["src"];
|
|
9003
|
+
const _hoisted_3$w = { key: 1 };
|
|
8988
9004
|
const _hoisted_4$p = {
|
|
8989
9005
|
key: 0,
|
|
8990
|
-
class: "lupa-
|
|
9006
|
+
class: "lupa-badge-full-text"
|
|
8991
9007
|
};
|
|
8992
9008
|
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
9009
|
+
__name: "SearchResultGeneratedBadge",
|
|
9010
|
+
props: {
|
|
9011
|
+
options: {},
|
|
9012
|
+
badge: {}
|
|
9013
|
+
},
|
|
9014
|
+
setup(__props) {
|
|
9015
|
+
const props = __props;
|
|
9016
|
+
const image = computed(() => {
|
|
9017
|
+
var _a, _b, _c;
|
|
9018
|
+
return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.image) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : "";
|
|
9019
|
+
});
|
|
9020
|
+
const showTitle = computed(() => {
|
|
9021
|
+
var _a, _b, _c;
|
|
9022
|
+
return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.showTitle) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : true;
|
|
9023
|
+
});
|
|
9024
|
+
const hasAdditionalText = computed(() => {
|
|
9025
|
+
var _a, _b;
|
|
9026
|
+
return Boolean((_a = props.badge) == null ? void 0 : _a.additionalText) && typeof ((_b = props.badge) == null ? void 0 : _b.additionalText) === "string";
|
|
9027
|
+
});
|
|
9028
|
+
const hasTitleText = computed(() => {
|
|
9029
|
+
var _a, _b;
|
|
9030
|
+
return Boolean((_a = props.badge) == null ? void 0 : _a.titleText) && typeof ((_b = props.badge) == null ? void 0 : _b.titleText) === "string";
|
|
9031
|
+
});
|
|
9032
|
+
const customClassName = computed(() => {
|
|
9033
|
+
var _a, _b, _c;
|
|
9034
|
+
return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.customClass) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : "";
|
|
9035
|
+
});
|
|
9036
|
+
return (_ctx, _cache) => {
|
|
9037
|
+
return openBlock(), createElementBlock("div", {
|
|
9038
|
+
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
9039
|
+
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
9040
|
+
}, [
|
|
9041
|
+
createBaseVNode("span", _hoisted_1$_, [
|
|
9042
|
+
image.value ? (openBlock(), createElementBlock("img", {
|
|
9043
|
+
key: 0,
|
|
9044
|
+
src: image.value
|
|
9045
|
+
}, null, 8, _hoisted_2$I)) : createCommentVNode("", true),
|
|
9046
|
+
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
9047
|
+
]),
|
|
9048
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
9049
|
+
], 6);
|
|
9050
|
+
};
|
|
9051
|
+
}
|
|
9052
|
+
});
|
|
9053
|
+
const _hoisted_1$Z = { class: "lupa-generated-badges" };
|
|
9054
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
9055
|
+
__name: "SearchResultGeneratedBadges",
|
|
9056
|
+
props: {
|
|
9057
|
+
options: {}
|
|
9058
|
+
},
|
|
9059
|
+
setup(__props) {
|
|
9060
|
+
const props = __props;
|
|
9061
|
+
const badgeField = computed(() => {
|
|
9062
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
9063
|
+
const fieldHasBadges = ((_a = props.options.generate) == null ? void 0 : _a.key) && ((_d = props.options.product) == null ? void 0 : _d[(_c = (_b = props.options.generate) == null ? void 0 : _b.key) != null ? _c : ""]) && Array.isArray(props.options.product[(_f = (_e = props.options.generate) == null ? void 0 : _e.key) != null ? _f : ""]);
|
|
9064
|
+
return fieldHasBadges ? props.options.product[(_h = (_g = props.options.generate) == null ? void 0 : _g.key) != null ? _h : ""] : [];
|
|
9065
|
+
});
|
|
9066
|
+
const keyMap = computed(() => {
|
|
9067
|
+
var _a, _b;
|
|
9068
|
+
return (_b = (_a = props.options.generate) == null ? void 0 : _a.keyMap) != null ? _b : {};
|
|
9069
|
+
});
|
|
9070
|
+
const badges = computed(() => {
|
|
9071
|
+
return badgeField.value.filter((f2) => Boolean(f2)).map((f2) => ({
|
|
9072
|
+
backgroundColor: keyMap.value.backgroundColor ? f2[keyMap.value.backgroundColor] : void 0,
|
|
9073
|
+
color: keyMap.value.color ? f2[keyMap.value.color] : void 0,
|
|
9074
|
+
titleText: keyMap.value.titleText ? f2[keyMap.value.titleText] : void 0,
|
|
9075
|
+
additionalText: keyMap.value.additionalText ? f2[keyMap.value.additionalText] : void 0,
|
|
9076
|
+
id: keyMap.value.id ? f2[keyMap.value.id] : void 0
|
|
9077
|
+
})).filter((b) => Boolean(b.id));
|
|
9078
|
+
});
|
|
9079
|
+
return (_ctx, _cache) => {
|
|
9080
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
9081
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
9082
|
+
return openBlock(), createBlock(_sfc_main$13, {
|
|
9083
|
+
key: badge.id,
|
|
9084
|
+
badge,
|
|
9085
|
+
options: _ctx.options
|
|
9086
|
+
}, null, 8, ["badge", "options"]);
|
|
9087
|
+
}), 128))
|
|
9088
|
+
]);
|
|
9089
|
+
};
|
|
9090
|
+
}
|
|
9091
|
+
});
|
|
9092
|
+
const _hoisted_1$Y = ["innerHTML"];
|
|
9093
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
9094
|
+
__name: "CustomBadge",
|
|
9095
|
+
props: {
|
|
9096
|
+
badge: {}
|
|
9097
|
+
},
|
|
9098
|
+
setup(__props) {
|
|
9099
|
+
const props = __props;
|
|
9100
|
+
const text = computed(() => {
|
|
9101
|
+
var _a, _b, _c;
|
|
9102
|
+
return (_c = (_b = props.badge).html) == null ? void 0 : _c.call(_b, (_a = props.badge.product) != null ? _a : {});
|
|
9103
|
+
});
|
|
9104
|
+
const className = computed(() => {
|
|
9105
|
+
var _a;
|
|
9106
|
+
return (_a = props.badge.className) != null ? _a : "";
|
|
9107
|
+
});
|
|
9108
|
+
return (_ctx, _cache) => {
|
|
9109
|
+
return openBlock(), createElementBlock("div", {
|
|
9110
|
+
class: normalizeClass(className.value),
|
|
9111
|
+
innerHTML: text.value
|
|
9112
|
+
}, null, 10, _hoisted_1$Y);
|
|
9113
|
+
};
|
|
9114
|
+
}
|
|
9115
|
+
});
|
|
9116
|
+
const _hoisted_1$X = { class: "lupa-text-badges" };
|
|
9117
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
9118
|
+
__name: "TextBadge",
|
|
9119
|
+
props: {
|
|
9120
|
+
badge: {}
|
|
9121
|
+
},
|
|
9122
|
+
setup(__props) {
|
|
9123
|
+
const props = __props;
|
|
9124
|
+
const badges = computed(() => {
|
|
9125
|
+
var _a, _b;
|
|
9126
|
+
return (_b = (_a = props.badge) == null ? void 0 : _a.value) != null ? _b : [];
|
|
9127
|
+
});
|
|
9128
|
+
const displayBadges = computed(() => {
|
|
9129
|
+
return badges.value.slice(0, props.badge.maxItems);
|
|
9130
|
+
});
|
|
9131
|
+
return (_ctx, _cache) => {
|
|
9132
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
9133
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
9134
|
+
return openBlock(), createElementBlock("div", {
|
|
9135
|
+
class: "lupa-badge lupa-text-badge",
|
|
9136
|
+
key: item
|
|
9137
|
+
}, toDisplayString(_ctx.badge.prefix) + toDisplayString(item), 1);
|
|
9138
|
+
}), 128))
|
|
9139
|
+
]);
|
|
9140
|
+
};
|
|
9141
|
+
}
|
|
9142
|
+
});
|
|
9143
|
+
const _hoisted_1$W = { class: "lupa-image-badges" };
|
|
9144
|
+
const _hoisted_2$H = ["src"];
|
|
9145
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
9146
|
+
__name: "ImageBadge",
|
|
9147
|
+
props: {
|
|
9148
|
+
badge: {}
|
|
9149
|
+
},
|
|
9150
|
+
setup(__props) {
|
|
9151
|
+
const props = __props;
|
|
9152
|
+
const badges = computed(() => {
|
|
9153
|
+
return props.badge.value;
|
|
9154
|
+
});
|
|
9155
|
+
const displayBadges = computed(() => {
|
|
9156
|
+
return badges.value.slice(0, props.badge.maxItems);
|
|
9157
|
+
});
|
|
9158
|
+
const getImageUrl = (src) => {
|
|
9159
|
+
if (!props.badge.rootImageUrl) {
|
|
9160
|
+
return src;
|
|
9161
|
+
}
|
|
9162
|
+
return `${props.badge.rootImageUrl}${src}`;
|
|
9163
|
+
};
|
|
9164
|
+
return (_ctx, _cache) => {
|
|
9165
|
+
return openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
9166
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
9167
|
+
return openBlock(), createElementBlock("div", {
|
|
9168
|
+
class: "lupa-badge lupa-image-badge",
|
|
9169
|
+
key: item
|
|
9170
|
+
}, [
|
|
9171
|
+
createBaseVNode("img", {
|
|
9172
|
+
src: getImageUrl(item)
|
|
9173
|
+
}, null, 8, _hoisted_2$H)
|
|
9174
|
+
]);
|
|
9175
|
+
}), 128))
|
|
9176
|
+
]);
|
|
9177
|
+
};
|
|
9178
|
+
}
|
|
9179
|
+
});
|
|
9180
|
+
const _hoisted_1$V = { id: "lupa-search-results-badges" };
|
|
9181
|
+
const __default__$3 = {
|
|
9182
|
+
components: {
|
|
9183
|
+
CustomBadge: _sfc_main$11,
|
|
9184
|
+
TextBadge: _sfc_main$10,
|
|
9185
|
+
ImageBadge: _sfc_main$$
|
|
9186
|
+
}
|
|
9187
|
+
};
|
|
9188
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
9189
|
+
__name: "SearchResultsBadgeWrapper",
|
|
9190
|
+
props: {
|
|
9191
|
+
position: {},
|
|
9192
|
+
options: {}
|
|
9193
|
+
},
|
|
9194
|
+
setup(__props) {
|
|
9195
|
+
const props = __props;
|
|
9196
|
+
const positionValue = computed(() => {
|
|
9197
|
+
var _a;
|
|
9198
|
+
return (_a = props.position) != null ? _a : "card";
|
|
9199
|
+
});
|
|
9200
|
+
const anchorPosition = computed(() => {
|
|
9201
|
+
return props.options.anchor;
|
|
9202
|
+
});
|
|
9203
|
+
const badges = computed(() => {
|
|
9204
|
+
if (!props.options.elements) {
|
|
9205
|
+
return [];
|
|
9206
|
+
}
|
|
9207
|
+
return props.options.elements.filter((e) => {
|
|
9208
|
+
var _a;
|
|
9209
|
+
return !e.display || e.display((_a = props.options.product) != null ? _a : {});
|
|
9210
|
+
}).map((x) => {
|
|
9211
|
+
var _a;
|
|
9212
|
+
return __spreadProps2(__spreadValues2({}, x), {
|
|
9213
|
+
value: ((_a = props.options.product) == null ? void 0 : _a[x.key]) || "badge",
|
|
9214
|
+
product: props.options.product
|
|
9215
|
+
});
|
|
9216
|
+
});
|
|
9217
|
+
});
|
|
9218
|
+
const displayBadges = computed(() => {
|
|
9219
|
+
return positionValue.value === "card" ? badges.value.filter((b) => !b.position || b.position === "card") : badges.value.filter((b) => b.position === "image");
|
|
9220
|
+
});
|
|
9221
|
+
const getBadgeComponent = (type) => {
|
|
9222
|
+
switch (type) {
|
|
9223
|
+
case BadgeType.TEXT:
|
|
9224
|
+
return "TextBadge";
|
|
9225
|
+
case BadgeType.IMAGE:
|
|
9226
|
+
return "ImageBadge";
|
|
9227
|
+
case BadgeType.CUSTOM_HTML:
|
|
9228
|
+
return "CustomBadge";
|
|
9229
|
+
default:
|
|
9230
|
+
return "CustomBadge";
|
|
9231
|
+
}
|
|
9232
|
+
};
|
|
9233
|
+
return (_ctx, _cache) => {
|
|
9234
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
9235
|
+
createBaseVNode("div", {
|
|
9236
|
+
id: "lupa-badges",
|
|
9237
|
+
class: normalizeClass(anchorPosition.value)
|
|
9238
|
+
}, [
|
|
9239
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (badge, index) => {
|
|
9240
|
+
return openBlock(), createBlock(resolveDynamicComponent(getBadgeComponent(badge.type)), {
|
|
9241
|
+
key: index,
|
|
9242
|
+
badge
|
|
9243
|
+
}, null, 8, ["badge"]);
|
|
9244
|
+
}), 128)),
|
|
9245
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$12, {
|
|
9246
|
+
key: 0,
|
|
9247
|
+
options: _ctx.options
|
|
9248
|
+
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
9249
|
+
], 2)
|
|
9250
|
+
]);
|
|
9251
|
+
};
|
|
9252
|
+
}
|
|
9253
|
+
}));
|
|
9254
|
+
const _hoisted_1$U = ["href"];
|
|
9255
|
+
const _hoisted_2$G = { class: "lupa-search-box-product-image-section" };
|
|
9256
|
+
const _hoisted_3$v = { class: "lupa-search-box-product-details-section" };
|
|
9257
|
+
const _hoisted_4$o = {
|
|
9258
|
+
key: 0,
|
|
9259
|
+
class: "lupa-search-box-product-add-to-cart-section"
|
|
9260
|
+
};
|
|
9261
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
8993
9262
|
__name: "SearchBoxProduct",
|
|
8994
9263
|
props: {
|
|
8995
9264
|
item: {},
|
|
@@ -9006,6 +9275,9 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
9006
9275
|
var _a, _b;
|
|
9007
9276
|
return generateLink((_b = (_a = props.panelOptions.links) == null ? void 0 : _a.details) != null ? _b : "", props.item);
|
|
9008
9277
|
});
|
|
9278
|
+
const badgeOptions = computed(() => {
|
|
9279
|
+
return __spreadProps2(__spreadValues2({}, props.panelOptions.badges), { product: props.item });
|
|
9280
|
+
});
|
|
9009
9281
|
const imageElements = computed(() => {
|
|
9010
9282
|
var _a, _b;
|
|
9011
9283
|
return (_b = (_a = props.panelOptions.elements) == null ? void 0 : _a.filter((e) => e.type === DocumentElementType.IMAGE)) != null ? _b : [];
|
|
@@ -9045,7 +9317,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
9045
9317
|
"data-cy": "lupa-search-box-product",
|
|
9046
9318
|
onClick: handleClick
|
|
9047
9319
|
}), [
|
|
9048
|
-
createBaseVNode("div", _hoisted_2$
|
|
9320
|
+
createBaseVNode("div", _hoisted_2$G, [
|
|
9049
9321
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
9050
9322
|
return openBlock(), createBlock(_sfc_main$14, {
|
|
9051
9323
|
class: "lupa-search-box-product-element",
|
|
@@ -9057,19 +9329,31 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
9057
9329
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
9058
9330
|
}), 128))
|
|
9059
9331
|
]),
|
|
9060
|
-
createBaseVNode("div", _hoisted_3$
|
|
9332
|
+
createBaseVNode("div", _hoisted_3$v, [
|
|
9061
9333
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
9334
|
+
var _a;
|
|
9062
9335
|
return openBlock(), createBlock(_sfc_main$14, {
|
|
9336
|
+
key: element.key,
|
|
9063
9337
|
class: "lupa-search-box-product-element",
|
|
9064
9338
|
item: _ctx.item,
|
|
9065
9339
|
element,
|
|
9066
|
-
key: element.key,
|
|
9067
9340
|
labels: _ctx.labels,
|
|
9068
9341
|
link: link.value
|
|
9069
|
-
},
|
|
9342
|
+
}, createSlots({ _: 2 }, [
|
|
9343
|
+
badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
|
|
9344
|
+
name: "badges",
|
|
9345
|
+
fn: withCtx(() => [
|
|
9346
|
+
createVNode(_sfc_main$_, {
|
|
9347
|
+
options: badgeOptions.value,
|
|
9348
|
+
position: "card"
|
|
9349
|
+
}, null, 8, ["options"])
|
|
9350
|
+
]),
|
|
9351
|
+
key: "0"
|
|
9352
|
+
} : void 0
|
|
9353
|
+
]), 1032, ["item", "element", "labels", "link"]);
|
|
9070
9354
|
}), 128))
|
|
9071
9355
|
]),
|
|
9072
|
-
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
9356
|
+
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
|
|
9073
9357
|
createVNode(_sfc_main$14, {
|
|
9074
9358
|
class: "lupa-search-box-product-element",
|
|
9075
9359
|
item: _ctx.item,
|
|
@@ -9079,7 +9363,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
9079
9363
|
isInStock: isInStock.value
|
|
9080
9364
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
9081
9365
|
])) : createCommentVNode("", true)
|
|
9082
|
-
], 16, _hoisted_1$
|
|
9366
|
+
], 16, _hoisted_1$U);
|
|
9083
9367
|
};
|
|
9084
9368
|
}
|
|
9085
9369
|
});
|
|
@@ -9140,8 +9424,8 @@ const useTrackingStore = defineStore("tracking", () => {
|
|
|
9140
9424
|
};
|
|
9141
9425
|
return { trackSearch, trackResults, trackEvent };
|
|
9142
9426
|
});
|
|
9143
|
-
const _hoisted_1$
|
|
9144
|
-
const _sfc_main$
|
|
9427
|
+
const _hoisted_1$T = { id: "lupa-search-box-products" };
|
|
9428
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
9145
9429
|
__name: "SearchBoxProducts",
|
|
9146
9430
|
props: {
|
|
9147
9431
|
items: {},
|
|
@@ -9202,7 +9486,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
9202
9486
|
handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
|
|
9203
9487
|
};
|
|
9204
9488
|
return (_ctx, _cache) => {
|
|
9205
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9489
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
9206
9490
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
9207
9491
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
9208
9492
|
key: index,
|
|
@@ -9214,7 +9498,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
9214
9498
|
itemClicked: handleProductClick
|
|
9215
9499
|
});
|
|
9216
9500
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
9217
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9501
|
+
return openBlock(), createBlock(_sfc_main$Z, {
|
|
9218
9502
|
key: index,
|
|
9219
9503
|
item,
|
|
9220
9504
|
panelOptions: _ctx.panelOptions,
|
|
@@ -9228,7 +9512,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
9228
9512
|
};
|
|
9229
9513
|
}
|
|
9230
9514
|
});
|
|
9231
|
-
const _sfc_main$
|
|
9515
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
9232
9516
|
__name: "SearchBoxProductsWrapper",
|
|
9233
9517
|
props: {
|
|
9234
9518
|
panel: {},
|
|
@@ -9280,7 +9564,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
9280
9564
|
const getItemsDebounced = debounce$1(getItems, props.debounce);
|
|
9281
9565
|
return (_ctx, _cache) => {
|
|
9282
9566
|
var _a, _b;
|
|
9283
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9567
|
+
return openBlock(), createBlock(_sfc_main$Y, {
|
|
9284
9568
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
9285
9569
|
panelOptions: _ctx.panel,
|
|
9286
9570
|
labels: _ctx.labels,
|
|
@@ -9298,7 +9582,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
9298
9582
|
};
|
|
9299
9583
|
}
|
|
9300
9584
|
});
|
|
9301
|
-
const _sfc_main$
|
|
9585
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
9302
9586
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
9303
9587
|
props: {
|
|
9304
9588
|
panel: {},
|
|
@@ -9370,7 +9654,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
9370
9654
|
});
|
|
9371
9655
|
return (_ctx, _cache) => {
|
|
9372
9656
|
var _a, _b;
|
|
9373
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9657
|
+
return openBlock(), createBlock(_sfc_main$Y, {
|
|
9374
9658
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
9375
9659
|
panelOptions: documentPanelOptions.value,
|
|
9376
9660
|
labels: _ctx.labels,
|
|
@@ -9388,16 +9672,16 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
9388
9672
|
};
|
|
9389
9673
|
}
|
|
9390
9674
|
});
|
|
9391
|
-
const _hoisted_1$
|
|
9675
|
+
const _hoisted_1$S = {
|
|
9392
9676
|
key: 0,
|
|
9393
9677
|
id: "lupa-search-box-panel"
|
|
9394
9678
|
};
|
|
9395
|
-
const _hoisted_2$
|
|
9396
|
-
const _hoisted_3$
|
|
9679
|
+
const _hoisted_2$F = ["data-cy"];
|
|
9680
|
+
const _hoisted_3$u = {
|
|
9397
9681
|
key: 0,
|
|
9398
9682
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
9399
9683
|
};
|
|
9400
|
-
const _hoisted_4$
|
|
9684
|
+
const _hoisted_4$n = {
|
|
9401
9685
|
key: 1,
|
|
9402
9686
|
class: "lupa-panel-title"
|
|
9403
9687
|
};
|
|
@@ -9405,14 +9689,14 @@ const _hoisted_5$e = {
|
|
|
9405
9689
|
key: 1,
|
|
9406
9690
|
id: "lupa-search-box-panel"
|
|
9407
9691
|
};
|
|
9408
|
-
const __default__$
|
|
9692
|
+
const __default__$2 = {
|
|
9409
9693
|
components: {
|
|
9410
9694
|
SearchBoxSuggestionsWrapper: _sfc_main$1e,
|
|
9411
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
9412
|
-
SearchBoxRelatedSourceWrapper: _sfc_main$
|
|
9695
|
+
SearchBoxProductsWrapper: _sfc_main$X,
|
|
9696
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$W
|
|
9413
9697
|
}
|
|
9414
9698
|
};
|
|
9415
|
-
const _sfc_main
|
|
9699
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
9416
9700
|
__name: "SearchBoxMainPanel",
|
|
9417
9701
|
props: {
|
|
9418
9702
|
options: {},
|
|
@@ -9558,7 +9842,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
9558
9842
|
ref_key: "panelContainer",
|
|
9559
9843
|
ref: panelContainer
|
|
9560
9844
|
}, [
|
|
9561
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9845
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
9562
9846
|
labels.value.closePanel ? (openBlock(), createElementBlock("a", {
|
|
9563
9847
|
key: 0,
|
|
9564
9848
|
class: "lupa-search-box-close-panel",
|
|
@@ -9579,8 +9863,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
9579
9863
|
]),
|
|
9580
9864
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
9581
9865
|
}, [
|
|
9582
|
-
((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9583
|
-
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
9866
|
+
((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$u, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
|
|
9867
|
+
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$n, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
9584
9868
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
9585
9869
|
key: 2,
|
|
9586
9870
|
panel,
|
|
@@ -9600,7 +9884,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
9600
9884
|
key: "0"
|
|
9601
9885
|
} : void 0
|
|
9602
9886
|
]), 1064, ["panel", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
9603
|
-
], 10, _hoisted_2$
|
|
9887
|
+
], 10, _hoisted_2$F);
|
|
9604
9888
|
}), 128))
|
|
9605
9889
|
], 4),
|
|
9606
9890
|
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1h, {
|
|
@@ -9639,9 +9923,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
|
|
|
9639
9923
|
const elements = getElements(triggers);
|
|
9640
9924
|
elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
|
|
9641
9925
|
};
|
|
9642
|
-
const _hoisted_1$
|
|
9643
|
-
const _hoisted_2$
|
|
9644
|
-
const _sfc_main$
|
|
9926
|
+
const _hoisted_1$R = { id: "lupa-search-box" };
|
|
9927
|
+
const _hoisted_2$E = { class: "lupa-search-box-wrapper" };
|
|
9928
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
9645
9929
|
__name: "SearchBox",
|
|
9646
9930
|
props: {
|
|
9647
9931
|
options: {},
|
|
@@ -9886,8 +10170,8 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
9886
10170
|
};
|
|
9887
10171
|
return (_ctx, _cache) => {
|
|
9888
10172
|
var _a2;
|
|
9889
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9890
|
-
createBaseVNode("div", _hoisted_2$
|
|
10173
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
10174
|
+
createBaseVNode("div", _hoisted_2$E, [
|
|
9891
10175
|
createVNode(_sfc_main$1l, {
|
|
9892
10176
|
options: inputOptions.value,
|
|
9893
10177
|
suggestedValue: suggestedValue.value,
|
|
@@ -9899,7 +10183,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
9899
10183
|
onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
|
|
9900
10184
|
onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
9901
10185
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
9902
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main
|
|
10186
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$V, {
|
|
9903
10187
|
key: 0,
|
|
9904
10188
|
options: panelOptions.value,
|
|
9905
10189
|
inputValue: inputValue.value,
|
|
@@ -9987,20 +10271,20 @@ const getSearchParams = (url, params, baseUrl) => {
|
|
|
9987
10271
|
}
|
|
9988
10272
|
return searchParams;
|
|
9989
10273
|
};
|
|
9990
|
-
const _hoisted_1$
|
|
10274
|
+
const _hoisted_1$Q = {
|
|
9991
10275
|
key: 0,
|
|
9992
10276
|
id: "lupa-search-results-did-you-mean"
|
|
9993
10277
|
};
|
|
9994
|
-
const _hoisted_2$
|
|
10278
|
+
const _hoisted_2$D = {
|
|
9995
10279
|
key: 0,
|
|
9996
10280
|
"data-cy": "suggested-search-text-label"
|
|
9997
10281
|
};
|
|
9998
|
-
const _hoisted_3$
|
|
10282
|
+
const _hoisted_3$t = {
|
|
9999
10283
|
key: 1,
|
|
10000
10284
|
"data-cy": "did-you-mean-label"
|
|
10001
10285
|
};
|
|
10002
|
-
const _hoisted_4$
|
|
10003
|
-
const _sfc_main$
|
|
10286
|
+
const _hoisted_4$m = { key: 1 };
|
|
10287
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
10004
10288
|
__name: "SearchResultsDidYouMean",
|
|
10005
10289
|
props: {
|
|
10006
10290
|
labels: {}
|
|
@@ -10032,8 +10316,8 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
10032
10316
|
paramStore.goToResults({ searchText, facet });
|
|
10033
10317
|
};
|
|
10034
10318
|
return (_ctx, _cache) => {
|
|
10035
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
10036
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
10319
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
10320
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$D, [
|
|
10037
10321
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
10038
10322
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
10039
10323
|
createBaseVNode("span", {
|
|
@@ -10042,7 +10326,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
10042
10326
|
]);
|
|
10043
10327
|
}), 128))
|
|
10044
10328
|
])) : createCommentVNode("", true),
|
|
10045
|
-
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
10329
|
+
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
10046
10330
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
10047
10331
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
10048
10332
|
label.includes("{1}") ? (openBlock(), createElementBlock("span", {
|
|
@@ -10050,7 +10334,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
10050
10334
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
10051
10335
|
"data-cy": "did-you-mean-value",
|
|
10052
10336
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
10053
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
10337
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$m, toDisplayString(label) + " ", 1))
|
|
10054
10338
|
]);
|
|
10055
10339
|
}), 128))
|
|
10056
10340
|
])) : createCommentVNode("", true)
|
|
@@ -10058,12 +10342,12 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
10058
10342
|
};
|
|
10059
10343
|
}
|
|
10060
10344
|
});
|
|
10061
|
-
const _hoisted_1$
|
|
10345
|
+
const _hoisted_1$P = {
|
|
10062
10346
|
key: 0,
|
|
10063
10347
|
class: "lupa-search-results-summary"
|
|
10064
10348
|
};
|
|
10065
|
-
const _hoisted_2$
|
|
10066
|
-
const _sfc_main$
|
|
10349
|
+
const _hoisted_2$C = ["innerHTML"];
|
|
10350
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
10067
10351
|
__name: "SearchResultsSummary",
|
|
10068
10352
|
props: {
|
|
10069
10353
|
label: {},
|
|
@@ -10078,8 +10362,8 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
10078
10362
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
10079
10363
|
});
|
|
10080
10364
|
return (_ctx, _cache) => {
|
|
10081
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
10082
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
10365
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
10366
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$C),
|
|
10083
10367
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
10084
10368
|
key: 0,
|
|
10085
10369
|
class: "lupa-filter-clear",
|
|
@@ -10090,18 +10374,18 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
10090
10374
|
};
|
|
10091
10375
|
}
|
|
10092
10376
|
});
|
|
10093
|
-
const _hoisted_1$
|
|
10377
|
+
const _hoisted_1$O = {
|
|
10094
10378
|
key: 0,
|
|
10095
10379
|
class: "lupa-result-page-title",
|
|
10096
10380
|
"data-cy": "lupa-result-page-title"
|
|
10097
10381
|
};
|
|
10098
|
-
const _hoisted_2$
|
|
10099
|
-
const _hoisted_3$
|
|
10382
|
+
const _hoisted_2$B = { key: 0 };
|
|
10383
|
+
const _hoisted_3$s = {
|
|
10100
10384
|
key: 1,
|
|
10101
10385
|
class: "lupa-results-total-count"
|
|
10102
10386
|
};
|
|
10103
|
-
const _hoisted_4$
|
|
10104
|
-
const _sfc_main$
|
|
10387
|
+
const _hoisted_4$l = ["innerHTML"];
|
|
10388
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
10105
10389
|
__name: "SearchResultsTitle",
|
|
10106
10390
|
props: {
|
|
10107
10391
|
options: {},
|
|
@@ -10136,12 +10420,12 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
10136
10420
|
});
|
|
10137
10421
|
return (_ctx, _cache) => {
|
|
10138
10422
|
return openBlock(), createElementBlock("div", null, [
|
|
10139
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
10423
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$O, [
|
|
10140
10424
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
10141
|
-
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
10142
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
10425
|
+
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$B, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
10426
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
|
|
10143
10427
|
])) : createCommentVNode("", true),
|
|
10144
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
10428
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$S, {
|
|
10145
10429
|
key: 1,
|
|
10146
10430
|
label: summaryLabel.value
|
|
10147
10431
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -10149,21 +10433,21 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
10149
10433
|
key: 2,
|
|
10150
10434
|
class: "lupa-result-page-description-top",
|
|
10151
10435
|
innerHTML: descriptionTop.value
|
|
10152
|
-
}, null, 8, _hoisted_4$
|
|
10436
|
+
}, null, 8, _hoisted_4$l)) : createCommentVNode("", true)
|
|
10153
10437
|
]);
|
|
10154
10438
|
};
|
|
10155
10439
|
}
|
|
10156
10440
|
});
|
|
10157
|
-
const _hoisted_1$
|
|
10158
|
-
const _hoisted_2$
|
|
10441
|
+
const _hoisted_1$N = { class: "lupa-search-result-filter-value" };
|
|
10442
|
+
const _hoisted_2$A = {
|
|
10159
10443
|
class: "lupa-current-filter-label",
|
|
10160
10444
|
"data-cy": "lupa-current-filter-label"
|
|
10161
10445
|
};
|
|
10162
|
-
const _hoisted_3$
|
|
10446
|
+
const _hoisted_3$r = {
|
|
10163
10447
|
class: "lupa-current-filter-value",
|
|
10164
10448
|
"data-cy": "lupa-current-filter-value"
|
|
10165
10449
|
};
|
|
10166
|
-
const _sfc_main$
|
|
10450
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
10167
10451
|
__name: "CurrentFilterDisplay",
|
|
10168
10452
|
props: {
|
|
10169
10453
|
filter: {}
|
|
@@ -10175,28 +10459,28 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
10175
10459
|
emit2("remove", { filter: props.filter });
|
|
10176
10460
|
};
|
|
10177
10461
|
return (_ctx, _cache) => {
|
|
10178
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10462
|
+
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
10179
10463
|
createBaseVNode("div", {
|
|
10180
10464
|
class: "lupa-current-filter-action",
|
|
10181
10465
|
onClick: handleClick
|
|
10182
10466
|
}, "⨉"),
|
|
10183
|
-
createBaseVNode("div", _hoisted_2$
|
|
10184
|
-
createBaseVNode("div", _hoisted_3$
|
|
10467
|
+
createBaseVNode("div", _hoisted_2$A, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
10468
|
+
createBaseVNode("div", _hoisted_3$r, toDisplayString(_ctx.filter.value), 1)
|
|
10185
10469
|
]);
|
|
10186
10470
|
};
|
|
10187
10471
|
}
|
|
10188
10472
|
});
|
|
10189
|
-
const _hoisted_1$
|
|
10190
|
-
const _hoisted_2$
|
|
10473
|
+
const _hoisted_1$M = { class: "lupa-filter-title-text" };
|
|
10474
|
+
const _hoisted_2$z = {
|
|
10191
10475
|
key: 0,
|
|
10192
10476
|
class: "lupa-filter-count"
|
|
10193
10477
|
};
|
|
10194
|
-
const _hoisted_3$
|
|
10478
|
+
const _hoisted_3$q = {
|
|
10195
10479
|
key: 0,
|
|
10196
10480
|
class: "filter-values"
|
|
10197
10481
|
};
|
|
10198
|
-
const _hoisted_4$
|
|
10199
|
-
const _sfc_main$
|
|
10482
|
+
const _hoisted_4$k = { class: "lupa-current-filter-list" };
|
|
10483
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
10200
10484
|
__name: "CurrentFilters",
|
|
10201
10485
|
props: {
|
|
10202
10486
|
options: {},
|
|
@@ -10257,19 +10541,19 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
10257
10541
|
class: "lupa-current-filter-title",
|
|
10258
10542
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
10259
10543
|
}, [
|
|
10260
|
-
createBaseVNode("div", _hoisted_1$
|
|
10544
|
+
createBaseVNode("div", _hoisted_1$M, [
|
|
10261
10545
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
10262
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
10546
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$z, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
10263
10547
|
]),
|
|
10264
10548
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
10265
10549
|
key: 0,
|
|
10266
10550
|
class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
10267
10551
|
}, null, 2)) : createCommentVNode("", true)
|
|
10268
10552
|
]),
|
|
10269
|
-
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
10270
|
-
createBaseVNode("div", _hoisted_4$
|
|
10553
|
+
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$q, [
|
|
10554
|
+
createBaseVNode("div", _hoisted_4$k, [
|
|
10271
10555
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
|
|
10272
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10556
|
+
return openBlock(), createBlock(_sfc_main$Q, {
|
|
10273
10557
|
key: filter.key + "_" + filter.value,
|
|
10274
10558
|
filter,
|
|
10275
10559
|
onRemove: handleRemove
|
|
@@ -10286,8 +10570,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
10286
10570
|
};
|
|
10287
10571
|
}
|
|
10288
10572
|
});
|
|
10289
|
-
const _hoisted_1$
|
|
10290
|
-
const _sfc_main$
|
|
10573
|
+
const _hoisted_1$L = ["href"];
|
|
10574
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
10291
10575
|
__name: "CategoryFilterItem",
|
|
10292
10576
|
props: {
|
|
10293
10577
|
options: {},
|
|
@@ -10324,20 +10608,20 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
10324
10608
|
"data-cy": "lupa-child-category-item",
|
|
10325
10609
|
href: urlLink.value,
|
|
10326
10610
|
onClick: handleNavigation
|
|
10327
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
10611
|
+
}, toDisplayString(title.value), 9, _hoisted_1$L)
|
|
10328
10612
|
], 2);
|
|
10329
10613
|
};
|
|
10330
10614
|
}
|
|
10331
10615
|
});
|
|
10332
|
-
const _hoisted_1$
|
|
10616
|
+
const _hoisted_1$K = {
|
|
10333
10617
|
class: "lupa-category-filter",
|
|
10334
10618
|
"data-cy": "lupa-category-filter"
|
|
10335
10619
|
};
|
|
10336
|
-
const _hoisted_2$
|
|
10337
|
-
const _hoisted_3$
|
|
10338
|
-
const _hoisted_4$
|
|
10620
|
+
const _hoisted_2$y = { class: "lupa-category-back" };
|
|
10621
|
+
const _hoisted_3$p = ["href"];
|
|
10622
|
+
const _hoisted_4$j = ["href"];
|
|
10339
10623
|
const _hoisted_5$d = { class: "lupa-child-category-list" };
|
|
10340
|
-
const _sfc_main$
|
|
10624
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
10341
10625
|
__name: "CategoryFilter",
|
|
10342
10626
|
props: {
|
|
10343
10627
|
options: {}
|
|
@@ -10423,14 +10707,14 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
10423
10707
|
};
|
|
10424
10708
|
__expose({ fetch: fetch2 });
|
|
10425
10709
|
return (_ctx, _cache) => {
|
|
10426
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10427
|
-
createBaseVNode("div", _hoisted_2$
|
|
10710
|
+
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
10711
|
+
createBaseVNode("div", _hoisted_2$y, [
|
|
10428
10712
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
10429
10713
|
key: 0,
|
|
10430
10714
|
"data-cy": "lupa-category-back",
|
|
10431
10715
|
href: backUrlLink.value,
|
|
10432
10716
|
onClick: handleNavigationBack
|
|
10433
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
10717
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$p)) : createCommentVNode("", true)
|
|
10434
10718
|
]),
|
|
10435
10719
|
createBaseVNode("div", {
|
|
10436
10720
|
class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -10440,11 +10724,11 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
10440
10724
|
href: parentUrlLink.value,
|
|
10441
10725
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
10442
10726
|
onClick: handleNavigationParent
|
|
10443
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
10727
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$j)
|
|
10444
10728
|
], 2),
|
|
10445
10729
|
createBaseVNode("div", _hoisted_5$d, [
|
|
10446
10730
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
10447
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10731
|
+
return openBlock(), createBlock(_sfc_main$O, {
|
|
10448
10732
|
key: getCategoryKey(child),
|
|
10449
10733
|
item: child,
|
|
10450
10734
|
options: _ctx.options
|
|
@@ -10455,13 +10739,13 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
10455
10739
|
};
|
|
10456
10740
|
}
|
|
10457
10741
|
});
|
|
10458
|
-
const _hoisted_1$
|
|
10742
|
+
const _hoisted_1$J = {
|
|
10459
10743
|
class: "lupa-search-result-facet-term-values",
|
|
10460
10744
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
10461
10745
|
};
|
|
10462
|
-
const _hoisted_2$
|
|
10463
|
-
const _hoisted_3$
|
|
10464
|
-
const _hoisted_4$
|
|
10746
|
+
const _hoisted_2$x = ["placeholder"];
|
|
10747
|
+
const _hoisted_3$o = { class: "lupa-terms-list" };
|
|
10748
|
+
const _hoisted_4$i = ["onClick"];
|
|
10465
10749
|
const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
|
|
10466
10750
|
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
10467
10751
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
@@ -10471,7 +10755,7 @@ const _hoisted_8$1 = {
|
|
|
10471
10755
|
};
|
|
10472
10756
|
const _hoisted_9$1 = { key: 0 };
|
|
10473
10757
|
const _hoisted_10$1 = { key: 1 };
|
|
10474
|
-
const _sfc_main$
|
|
10758
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
10475
10759
|
__name: "TermFacet",
|
|
10476
10760
|
props: {
|
|
10477
10761
|
options: {},
|
|
@@ -10540,17 +10824,17 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
10540
10824
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
10541
10825
|
};
|
|
10542
10826
|
return (_ctx, _cache) => {
|
|
10543
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10827
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
10544
10828
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
10545
10829
|
key: 0,
|
|
10546
10830
|
class: "lupa-term-filter",
|
|
10547
10831
|
"data-cy": "lupa-term-filter",
|
|
10548
10832
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
10549
10833
|
placeholder: _ctx.options.labels.facetFilter
|
|
10550
|
-
}, null, 8, _hoisted_2$
|
|
10834
|
+
}, null, 8, _hoisted_2$x)), [
|
|
10551
10835
|
[vModelText, termFilter.value]
|
|
10552
10836
|
]) : createCommentVNode("", true),
|
|
10553
|
-
createBaseVNode("div", _hoisted_3$
|
|
10837
|
+
createBaseVNode("div", _hoisted_3$o, [
|
|
10554
10838
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
10555
10839
|
return openBlock(), createElementBlock("div", {
|
|
10556
10840
|
class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -10567,7 +10851,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
10567
10851
|
createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
|
|
10568
10852
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
10569
10853
|
])
|
|
10570
|
-
], 10, _hoisted_4$
|
|
10854
|
+
], 10, _hoisted_4$i);
|
|
10571
10855
|
}), 128))
|
|
10572
10856
|
]),
|
|
10573
10857
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -11558,16 +11842,16 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
11558
11842
|
m.render = function(e, t, r, i, n, o) {
|
|
11559
11843
|
return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
|
|
11560
11844
|
}, m.__file = "src/Slider.vue";
|
|
11561
|
-
const _hoisted_1$
|
|
11562
|
-
const _hoisted_2$
|
|
11845
|
+
const _hoisted_1$I = { class: "lupa-search-result-facet-stats-values" };
|
|
11846
|
+
const _hoisted_2$w = {
|
|
11563
11847
|
key: 0,
|
|
11564
11848
|
class: "lupa-stats-facet-summary"
|
|
11565
11849
|
};
|
|
11566
|
-
const _hoisted_3$
|
|
11850
|
+
const _hoisted_3$n = {
|
|
11567
11851
|
key: 1,
|
|
11568
11852
|
class: "lupa-stats-facet-summary-input"
|
|
11569
11853
|
};
|
|
11570
|
-
const _hoisted_4$
|
|
11854
|
+
const _hoisted_4$h = {
|
|
11571
11855
|
key: 0,
|
|
11572
11856
|
class: "lupa-stats-range-label"
|
|
11573
11857
|
};
|
|
@@ -11586,7 +11870,7 @@ const _hoisted_13 = {
|
|
|
11586
11870
|
key: 2,
|
|
11587
11871
|
class: "lupa-stats-slider-wrapper"
|
|
11588
11872
|
};
|
|
11589
|
-
const _sfc_main$
|
|
11873
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
11590
11874
|
__name: "StatsFacet",
|
|
11591
11875
|
props: {
|
|
11592
11876
|
options: {},
|
|
@@ -11755,10 +12039,10 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
11755
12039
|
innerSliderRange.value = value;
|
|
11756
12040
|
};
|
|
11757
12041
|
return (_ctx, _cache) => {
|
|
11758
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11759
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12042
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
12043
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$n, [
|
|
11760
12044
|
createBaseVNode("div", null, [
|
|
11761
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
12045
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
11762
12046
|
createBaseVNode("div", _hoisted_5$b, [
|
|
11763
12047
|
withDirectives(createBaseVNode("input", {
|
|
11764
12048
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
@@ -11822,10 +12106,10 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
11822
12106
|
};
|
|
11823
12107
|
}
|
|
11824
12108
|
});
|
|
11825
|
-
const _hoisted_1$
|
|
11826
|
-
const _hoisted_2$
|
|
11827
|
-
const _hoisted_3$
|
|
11828
|
-
const _hoisted_4$
|
|
12109
|
+
const _hoisted_1$H = { class: "lupa-term-checkbox-wrapper" };
|
|
12110
|
+
const _hoisted_2$v = { class: "lupa-term-checkbox-label" };
|
|
12111
|
+
const _hoisted_3$m = { class: "lupa-term-label" };
|
|
12112
|
+
const _hoisted_4$g = {
|
|
11829
12113
|
key: 0,
|
|
11830
12114
|
class: "lupa-term-count"
|
|
11831
12115
|
};
|
|
@@ -11833,7 +12117,7 @@ const _hoisted_5$a = {
|
|
|
11833
12117
|
key: 0,
|
|
11834
12118
|
class: "lupa-facet-level"
|
|
11835
12119
|
};
|
|
11836
|
-
const _sfc_main$
|
|
12120
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
11837
12121
|
__name: "HierarchyFacetLevel",
|
|
11838
12122
|
props: {
|
|
11839
12123
|
options: {},
|
|
@@ -11879,14 +12163,14 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
11879
12163
|
"data-cy": "lupa-facet-term",
|
|
11880
12164
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
11881
12165
|
}, [
|
|
11882
|
-
createBaseVNode("div", _hoisted_1$
|
|
12166
|
+
createBaseVNode("div", _hoisted_1$H, [
|
|
11883
12167
|
createBaseVNode("span", {
|
|
11884
12168
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
11885
12169
|
}, null, 2)
|
|
11886
12170
|
]),
|
|
11887
|
-
createBaseVNode("div", _hoisted_2$
|
|
11888
|
-
createBaseVNode("span", _hoisted_3$
|
|
11889
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
12171
|
+
createBaseVNode("div", _hoisted_2$v, [
|
|
12172
|
+
createBaseVNode("span", _hoisted_3$m, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
12173
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
11890
12174
|
])
|
|
11891
12175
|
]),
|
|
11892
12176
|
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
|
|
@@ -11905,13 +12189,13 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
11905
12189
|
};
|
|
11906
12190
|
}
|
|
11907
12191
|
});
|
|
11908
|
-
const _hoisted_1$
|
|
12192
|
+
const _hoisted_1$G = {
|
|
11909
12193
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
11910
12194
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
11911
12195
|
};
|
|
11912
|
-
const _hoisted_2$
|
|
11913
|
-
const _hoisted_3$
|
|
11914
|
-
const _sfc_main$
|
|
12196
|
+
const _hoisted_2$u = { key: 0 };
|
|
12197
|
+
const _hoisted_3$l = ["placeholder"];
|
|
12198
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
11915
12199
|
__name: "HierarchyFacet",
|
|
11916
12200
|
props: {
|
|
11917
12201
|
options: {},
|
|
@@ -11961,19 +12245,19 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
11961
12245
|
showAll.value = true;
|
|
11962
12246
|
};
|
|
11963
12247
|
return (_ctx, _cache) => {
|
|
11964
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11965
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12248
|
+
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
12249
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
|
|
11966
12250
|
withDirectives(createBaseVNode("input", {
|
|
11967
12251
|
class: "lupa-term-filter",
|
|
11968
12252
|
"data-cy": "lupa-term-filter",
|
|
11969
12253
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
11970
12254
|
placeholder: _ctx.options.labels.facetFilter
|
|
11971
|
-
}, null, 8, _hoisted_3$
|
|
12255
|
+
}, null, 8, _hoisted_3$l), [
|
|
11972
12256
|
[vModelText, termFilter.value]
|
|
11973
12257
|
])
|
|
11974
12258
|
])) : createCommentVNode("", true),
|
|
11975
12259
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
11976
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12260
|
+
return openBlock(), createBlock(_sfc_main$K, {
|
|
11977
12261
|
key: item.title,
|
|
11978
12262
|
options: _ctx.options,
|
|
11979
12263
|
item,
|
|
@@ -11993,20 +12277,20 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
11993
12277
|
};
|
|
11994
12278
|
}
|
|
11995
12279
|
});
|
|
11996
|
-
const _hoisted_1$
|
|
11997
|
-
const _hoisted_2$
|
|
12280
|
+
const _hoisted_1$F = { class: "lupa-facet-label-text" };
|
|
12281
|
+
const _hoisted_2$t = {
|
|
11998
12282
|
key: 0,
|
|
11999
12283
|
class: "lupa-facet-content",
|
|
12000
12284
|
"data-cy": "lupa-facet-content"
|
|
12001
12285
|
};
|
|
12002
|
-
const __default__$
|
|
12286
|
+
const __default__$1 = {
|
|
12003
12287
|
components: {
|
|
12004
|
-
TermFacet: _sfc_main$
|
|
12005
|
-
StatsFacet: _sfc_main$
|
|
12006
|
-
HierarchyFacet: _sfc_main$
|
|
12288
|
+
TermFacet: _sfc_main$M,
|
|
12289
|
+
StatsFacet: _sfc_main$L,
|
|
12290
|
+
HierarchyFacet: _sfc_main$J
|
|
12007
12291
|
}
|
|
12008
12292
|
};
|
|
12009
|
-
const _sfc_main$
|
|
12293
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
12010
12294
|
__name: "FacetDisplay",
|
|
12011
12295
|
props: {
|
|
12012
12296
|
options: {},
|
|
@@ -12118,12 +12402,12 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
12118
12402
|
"data-cy": "lupa-search-result-facet-label",
|
|
12119
12403
|
onClick: toggleFacet
|
|
12120
12404
|
}, [
|
|
12121
|
-
createBaseVNode("div", _hoisted_1$
|
|
12405
|
+
createBaseVNode("div", _hoisted_1$F, toDisplayString(facet.value.label), 1),
|
|
12122
12406
|
createBaseVNode("div", {
|
|
12123
12407
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
12124
12408
|
}, null, 2)
|
|
12125
12409
|
], 2),
|
|
12126
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12410
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$t, [
|
|
12127
12411
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
12128
12412
|
facet: facet.value,
|
|
12129
12413
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -12141,12 +12425,12 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
12141
12425
|
};
|
|
12142
12426
|
}
|
|
12143
12427
|
}));
|
|
12144
|
-
const _hoisted_1$
|
|
12145
|
-
const _hoisted_2$
|
|
12428
|
+
const _hoisted_1$E = { class: "lupa-search-result-facet-section" };
|
|
12429
|
+
const _hoisted_2$s = {
|
|
12146
12430
|
key: 0,
|
|
12147
12431
|
class: "lupa-facets-title"
|
|
12148
12432
|
};
|
|
12149
|
-
const _sfc_main$
|
|
12433
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
12150
12434
|
__name: "FacetList",
|
|
12151
12435
|
props: {
|
|
12152
12436
|
options: {},
|
|
@@ -12180,14 +12464,14 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
12180
12464
|
};
|
|
12181
12465
|
return (_ctx, _cache) => {
|
|
12182
12466
|
var _a;
|
|
12183
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12184
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12467
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
12468
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$s, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
12185
12469
|
createBaseVNode("div", {
|
|
12186
12470
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
12187
12471
|
}, [
|
|
12188
12472
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
12189
12473
|
var _a2;
|
|
12190
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12474
|
+
return openBlock(), createBlock(_sfc_main$I, {
|
|
12191
12475
|
key: facet.key,
|
|
12192
12476
|
facet,
|
|
12193
12477
|
currentFilters: currentFiltersValue.value,
|
|
@@ -12202,8 +12486,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
12202
12486
|
};
|
|
12203
12487
|
}
|
|
12204
12488
|
});
|
|
12205
|
-
const _hoisted_1$
|
|
12206
|
-
const _sfc_main$
|
|
12489
|
+
const _hoisted_1$D = { class: "lupa-search-result-facets" };
|
|
12490
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
12207
12491
|
__name: "Facets",
|
|
12208
12492
|
props: {
|
|
12209
12493
|
options: {},
|
|
@@ -12279,8 +12563,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
12279
12563
|
paramStore.removeParameters({ paramsToRemove: [param] });
|
|
12280
12564
|
};
|
|
12281
12565
|
return (_ctx, _cache) => {
|
|
12282
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12283
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
12566
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
12567
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$H, {
|
|
12284
12568
|
key: 0,
|
|
12285
12569
|
options: _ctx.options,
|
|
12286
12570
|
facets: regularFacets.value,
|
|
@@ -12294,11 +12578,11 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
12294
12578
|
};
|
|
12295
12579
|
}
|
|
12296
12580
|
});
|
|
12297
|
-
const _hoisted_1$
|
|
12581
|
+
const _hoisted_1$C = {
|
|
12298
12582
|
id: "lupa-search-result-filters",
|
|
12299
12583
|
class: "lupa-search-result-filters"
|
|
12300
12584
|
};
|
|
12301
|
-
const _sfc_main$
|
|
12585
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
12302
12586
|
__name: "SearchResultsFilters",
|
|
12303
12587
|
props: {
|
|
12304
12588
|
options: {},
|
|
@@ -12327,19 +12611,19 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
12327
12611
|
__expose({ fetch: fetch2 });
|
|
12328
12612
|
return (_ctx, _cache) => {
|
|
12329
12613
|
var _a;
|
|
12330
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12331
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
12614
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
12615
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$P, {
|
|
12332
12616
|
key: 0,
|
|
12333
12617
|
options: _ctx.options.currentFilters,
|
|
12334
12618
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
12335
12619
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
12336
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
12620
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$N, {
|
|
12337
12621
|
key: 1,
|
|
12338
12622
|
options: _ctx.options.categories,
|
|
12339
12623
|
ref_key: "categoryFilters",
|
|
12340
12624
|
ref: categoryFilters
|
|
12341
12625
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
12342
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
12626
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$G, {
|
|
12343
12627
|
key: 2,
|
|
12344
12628
|
options: _ctx.options.facets
|
|
12345
12629
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -12347,20 +12631,20 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
12347
12631
|
};
|
|
12348
12632
|
}
|
|
12349
12633
|
});
|
|
12350
|
-
const _hoisted_1$
|
|
12634
|
+
const _hoisted_1$B = {
|
|
12351
12635
|
key: 0,
|
|
12352
12636
|
class: "lupa-mobile-filter-sidebar"
|
|
12353
12637
|
};
|
|
12354
|
-
const _hoisted_2$
|
|
12355
|
-
const _hoisted_3$
|
|
12356
|
-
const _hoisted_4$
|
|
12638
|
+
const _hoisted_2$r = ["onClick"];
|
|
12639
|
+
const _hoisted_3$k = { class: "lupa-mobile-sidebar-content" };
|
|
12640
|
+
const _hoisted_4$f = { class: "lupa-sidebar-top" };
|
|
12357
12641
|
const _hoisted_5$9 = { class: "lupa-sidebar-title" };
|
|
12358
12642
|
const _hoisted_6$6 = {
|
|
12359
12643
|
key: 0,
|
|
12360
12644
|
class: "lupa-sidebar-filter-count"
|
|
12361
12645
|
};
|
|
12362
12646
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
12363
|
-
const _sfc_main$
|
|
12647
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
12364
12648
|
__name: "MobileFilterSidebar",
|
|
12365
12649
|
props: {
|
|
12366
12650
|
options: {}
|
|
@@ -12386,13 +12670,13 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
12386
12670
|
searchResultStore.setSidebarState({ visible: false });
|
|
12387
12671
|
};
|
|
12388
12672
|
return (_ctx, _cache) => {
|
|
12389
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
12673
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
12390
12674
|
createBaseVNode("div", {
|
|
12391
12675
|
class: "lupa-sidebar-close",
|
|
12392
12676
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
12393
|
-
}, null, 8, _hoisted_2$
|
|
12394
|
-
createBaseVNode("div", _hoisted_3$
|
|
12395
|
-
createBaseVNode("div", _hoisted_4$
|
|
12677
|
+
}, null, 8, _hoisted_2$r),
|
|
12678
|
+
createBaseVNode("div", _hoisted_3$k, [
|
|
12679
|
+
createBaseVNode("div", _hoisted_4$f, [
|
|
12396
12680
|
createBaseVNode("div", _hoisted_5$9, [
|
|
12397
12681
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
12398
12682
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
@@ -12403,7 +12687,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
12403
12687
|
})
|
|
12404
12688
|
]),
|
|
12405
12689
|
createBaseVNode("div", _hoisted_7$4, [
|
|
12406
|
-
createVNode(_sfc_main$
|
|
12690
|
+
createVNode(_sfc_main$F, {
|
|
12407
12691
|
options: _ctx.options,
|
|
12408
12692
|
expandable: isActiveFiltersExpanded.value
|
|
12409
12693
|
}, null, 8, ["options", "expandable"])
|
|
@@ -12413,14 +12697,14 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
12413
12697
|
};
|
|
12414
12698
|
}
|
|
12415
12699
|
});
|
|
12416
|
-
const _hoisted_1$
|
|
12417
|
-
const _hoisted_2$
|
|
12418
|
-
const _hoisted_3$
|
|
12700
|
+
const _hoisted_1$A = { id: "lupa-search-results-breadcrumbs" };
|
|
12701
|
+
const _hoisted_2$q = ["href", "onClick"];
|
|
12702
|
+
const _hoisted_3$j = {
|
|
12419
12703
|
key: 1,
|
|
12420
12704
|
class: "lupa-search-results-breadcrumb-text"
|
|
12421
12705
|
};
|
|
12422
|
-
const _hoisted_4$
|
|
12423
|
-
const _sfc_main$
|
|
12706
|
+
const _hoisted_4$e = { key: 2 };
|
|
12707
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
12424
12708
|
__name: "SearchResultsBreadcrumbs",
|
|
12425
12709
|
props: {
|
|
12426
12710
|
breadcrumbs: {}
|
|
@@ -12445,7 +12729,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
12445
12729
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
12446
12730
|
};
|
|
12447
12731
|
return (_ctx, _cache) => {
|
|
12448
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12732
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
12449
12733
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
12450
12734
|
return openBlock(), createElementBlock("span", {
|
|
12451
12735
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -12459,19 +12743,19 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
12459
12743
|
var _a;
|
|
12460
12744
|
return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
12461
12745
|
}
|
|
12462
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
12463
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
12746
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (openBlock(), createElementBlock("span", _hoisted_3$j, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
12747
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
|
|
12464
12748
|
]);
|
|
12465
12749
|
}), 128))
|
|
12466
12750
|
]);
|
|
12467
12751
|
};
|
|
12468
12752
|
}
|
|
12469
12753
|
});
|
|
12470
|
-
const _hoisted_1$
|
|
12754
|
+
const _hoisted_1$z = {
|
|
12471
12755
|
id: "lupa-search-result-filters",
|
|
12472
12756
|
class: "lupa-search-result-filters"
|
|
12473
12757
|
};
|
|
12474
|
-
const _sfc_main$
|
|
12758
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
12475
12759
|
__name: "FiltersTopDropdown",
|
|
12476
12760
|
props: {
|
|
12477
12761
|
options: {}
|
|
@@ -12479,8 +12763,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
12479
12763
|
setup(__props) {
|
|
12480
12764
|
return (_ctx, _cache) => {
|
|
12481
12765
|
var _a;
|
|
12482
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12483
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
12766
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
12767
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$G, {
|
|
12484
12768
|
key: 0,
|
|
12485
12769
|
options: _ctx.options.facets,
|
|
12486
12770
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -12490,8 +12774,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
12490
12774
|
};
|
|
12491
12775
|
}
|
|
12492
12776
|
});
|
|
12493
|
-
const _hoisted_1$
|
|
12494
|
-
const _sfc_main$
|
|
12777
|
+
const _hoisted_1$y = { id: "lupa-search-results-layout-selection" };
|
|
12778
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
12495
12779
|
__name: "SearchResultsLayoutSelection",
|
|
12496
12780
|
setup(__props) {
|
|
12497
12781
|
const searchResultStore = useSearchResultStore();
|
|
@@ -12502,7 +12786,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
12502
12786
|
searchResultStore.setLayout(layout2);
|
|
12503
12787
|
};
|
|
12504
12788
|
return (_ctx, _cache) => {
|
|
12505
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12789
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
12506
12790
|
createBaseVNode("div", {
|
|
12507
12791
|
class: normalizeClass([
|
|
12508
12792
|
"lupa-layout-selection-grid",
|
|
@@ -12524,11 +12808,11 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
12524
12808
|
};
|
|
12525
12809
|
}
|
|
12526
12810
|
});
|
|
12527
|
-
const _hoisted_1$
|
|
12811
|
+
const _hoisted_1$x = {
|
|
12528
12812
|
key: 0,
|
|
12529
12813
|
class: "lupa-mobile-toggle-filter-count"
|
|
12530
12814
|
};
|
|
12531
|
-
const _sfc_main$
|
|
12815
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
12532
12816
|
__name: "SearchResultsMobileToggle",
|
|
12533
12817
|
props: {
|
|
12534
12818
|
label: {},
|
|
@@ -12546,26 +12830,26 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
12546
12830
|
onClick: handleMobileToggle
|
|
12547
12831
|
}, [
|
|
12548
12832
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
12549
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
12833
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$x, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
12550
12834
|
], 2);
|
|
12551
12835
|
};
|
|
12552
12836
|
}
|
|
12553
12837
|
});
|
|
12554
|
-
const _hoisted_1$
|
|
12838
|
+
const _hoisted_1$w = {
|
|
12555
12839
|
key: 0,
|
|
12556
12840
|
id: "lupa-search-results-page-select",
|
|
12557
12841
|
"data-cy": "lupa-search-results-page-select"
|
|
12558
12842
|
};
|
|
12559
|
-
const _hoisted_2$
|
|
12843
|
+
const _hoisted_2$p = {
|
|
12560
12844
|
key: 0,
|
|
12561
12845
|
class: "lupa-page-number-separator"
|
|
12562
12846
|
};
|
|
12563
|
-
const _hoisted_3$
|
|
12564
|
-
const _hoisted_4$
|
|
12847
|
+
const _hoisted_3$i = ["onClick"];
|
|
12848
|
+
const _hoisted_4$d = {
|
|
12565
12849
|
key: 0,
|
|
12566
12850
|
class: "lupa-page-number-separator"
|
|
12567
12851
|
};
|
|
12568
|
-
const _sfc_main$
|
|
12852
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
12569
12853
|
__name: "SearchResultsPageSelect",
|
|
12570
12854
|
props: {
|
|
12571
12855
|
lastPageLabel: {},
|
|
@@ -12642,7 +12926,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
12642
12926
|
}
|
|
12643
12927
|
};
|
|
12644
12928
|
return (_ctx, _cache) => {
|
|
12645
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
12929
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
12646
12930
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
12647
12931
|
key: 0,
|
|
12648
12932
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -12653,7 +12937,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
12653
12937
|
class: "lupa-page-number lupa-page-number-first",
|
|
12654
12938
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
12655
12939
|
}, " 1 "),
|
|
12656
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12940
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, "...")) : createCommentVNode("", true)
|
|
12657
12941
|
], 64)) : createCommentVNode("", true),
|
|
12658
12942
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
12659
12943
|
return openBlock(), createElementBlock("div", {
|
|
@@ -12664,10 +12948,10 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
12664
12948
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
12665
12949
|
]),
|
|
12666
12950
|
"data-cy": "lupa-page-number"
|
|
12667
|
-
}, toDisplayString(page), 11, _hoisted_3$
|
|
12951
|
+
}, toDisplayString(page), 11, _hoisted_3$i);
|
|
12668
12952
|
}), 128)),
|
|
12669
12953
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
12670
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
12954
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$d, "...")) : createCommentVNode("", true),
|
|
12671
12955
|
createBaseVNode("div", {
|
|
12672
12956
|
class: "lupa-page-number lupa-page-number-last",
|
|
12673
12957
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -12686,14 +12970,14 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
12686
12970
|
};
|
|
12687
12971
|
}
|
|
12688
12972
|
});
|
|
12689
|
-
const _hoisted_1$
|
|
12973
|
+
const _hoisted_1$v = {
|
|
12690
12974
|
id: "lupa-search-results-page-size",
|
|
12691
12975
|
"data-cy": "lupa-search-results-page-size"
|
|
12692
12976
|
};
|
|
12693
|
-
const _hoisted_2$
|
|
12694
|
-
const _hoisted_3$
|
|
12695
|
-
const _hoisted_4$
|
|
12696
|
-
const _sfc_main$
|
|
12977
|
+
const _hoisted_2$o = { id: "lupa-select" };
|
|
12978
|
+
const _hoisted_3$h = { class: "lupa-select-label" };
|
|
12979
|
+
const _hoisted_4$c = ["aria-label"];
|
|
12980
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
12697
12981
|
__name: "SearchResultsPageSize",
|
|
12698
12982
|
props: {
|
|
12699
12983
|
label: {},
|
|
@@ -12711,9 +12995,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
12711
12995
|
});
|
|
12712
12996
|
};
|
|
12713
12997
|
return (_ctx, _cache) => {
|
|
12714
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12715
|
-
createBaseVNode("div", _hoisted_2$
|
|
12716
|
-
createBaseVNode("label", _hoisted_3$
|
|
12998
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
12999
|
+
createBaseVNode("div", _hoisted_2$o, [
|
|
13000
|
+
createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.label), 1),
|
|
12717
13001
|
createBaseVNode("select", {
|
|
12718
13002
|
class: "lupa-select-dropdown",
|
|
12719
13003
|
"aria-label": _ctx.label,
|
|
@@ -12725,21 +13009,21 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
12725
13009
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options.sizes, (option) => {
|
|
12726
13010
|
return openBlock(), createElementBlock("option", { key: option }, toDisplayString(option), 1);
|
|
12727
13011
|
}), 128))
|
|
12728
|
-
], 40, _hoisted_4$
|
|
13012
|
+
], 40, _hoisted_4$c)
|
|
12729
13013
|
])
|
|
12730
13014
|
]);
|
|
12731
13015
|
};
|
|
12732
13016
|
}
|
|
12733
13017
|
});
|
|
12734
|
-
const _hoisted_1$
|
|
13018
|
+
const _hoisted_1$u = {
|
|
12735
13019
|
id: "lupa-search-results-sort",
|
|
12736
13020
|
class: "lupa-search-results-sort"
|
|
12737
13021
|
};
|
|
12738
|
-
const _hoisted_2$
|
|
12739
|
-
const _hoisted_3$
|
|
12740
|
-
const _hoisted_4$
|
|
13022
|
+
const _hoisted_2$n = { id: "lupa-select" };
|
|
13023
|
+
const _hoisted_3$g = { class: "lupa-select-label" };
|
|
13024
|
+
const _hoisted_4$b = ["aria-label"];
|
|
12741
13025
|
const _hoisted_5$8 = ["value"];
|
|
12742
|
-
const _sfc_main$
|
|
13026
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
12743
13027
|
__name: "SearchResultsSort",
|
|
12744
13028
|
props: {
|
|
12745
13029
|
options: {},
|
|
@@ -12788,9 +13072,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
12788
13072
|
previousKey.value = selectedKey.value;
|
|
12789
13073
|
};
|
|
12790
13074
|
return (_ctx, _cache) => {
|
|
12791
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12792
|
-
createBaseVNode("div", _hoisted_2$
|
|
12793
|
-
createBaseVNode("label", _hoisted_3$
|
|
13075
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
13076
|
+
createBaseVNode("div", _hoisted_2$n, [
|
|
13077
|
+
createBaseVNode("label", _hoisted_3$g, toDisplayString(_ctx.options.label), 1),
|
|
12794
13078
|
withDirectives(createBaseVNode("select", {
|
|
12795
13079
|
class: "lupa-select-dropdown",
|
|
12796
13080
|
"aria-label": _ctx.options.label,
|
|
@@ -12805,7 +13089,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
12805
13089
|
value: option.key
|
|
12806
13090
|
}, toDisplayString(option.label), 9, _hoisted_5$8);
|
|
12807
13091
|
}), 128))
|
|
12808
|
-
], 40, _hoisted_4$
|
|
13092
|
+
], 40, _hoisted_4$b), [
|
|
12809
13093
|
[vModelSelect, selectedKey.value]
|
|
12810
13094
|
])
|
|
12811
13095
|
])
|
|
@@ -12813,14 +13097,14 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
12813
13097
|
};
|
|
12814
13098
|
}
|
|
12815
13099
|
});
|
|
12816
|
-
const _hoisted_1$
|
|
12817
|
-
const _hoisted_2$
|
|
12818
|
-
const _hoisted_3$
|
|
12819
|
-
const _hoisted_4$
|
|
13100
|
+
const _hoisted_1$t = { class: "lupa-toolbar-left" };
|
|
13101
|
+
const _hoisted_2$m = { key: 1 };
|
|
13102
|
+
const _hoisted_3$f = { key: 3 };
|
|
13103
|
+
const _hoisted_4$a = { key: 5 };
|
|
12820
13104
|
const _hoisted_5$7 = { class: "lupa-toolbar-right" };
|
|
12821
13105
|
const _hoisted_6$5 = { key: 1 };
|
|
12822
13106
|
const _hoisted_7$3 = { key: 3 };
|
|
12823
|
-
const _sfc_main$
|
|
13107
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
12824
13108
|
__name: "SearchResultsToolbar",
|
|
12825
13109
|
props: {
|
|
12826
13110
|
options: {},
|
|
@@ -12919,32 +13203,32 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
12919
13203
|
id: "lupa-search-results-toolbar",
|
|
12920
13204
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
12921
13205
|
}, [
|
|
12922
|
-
createBaseVNode("div", _hoisted_1$
|
|
12923
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
12924
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
13206
|
+
createBaseVNode("div", _hoisted_1$t, [
|
|
13207
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$m)),
|
|
13208
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$S, {
|
|
12925
13209
|
key: 2,
|
|
12926
13210
|
label: searchSummaryLabel.value,
|
|
12927
13211
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
12928
13212
|
onClear: handleClearAll
|
|
12929
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
12930
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
13213
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$f)),
|
|
13214
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$z, {
|
|
12931
13215
|
key: 4,
|
|
12932
13216
|
options: paginationOptions.value.pageSelect,
|
|
12933
13217
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
12934
13218
|
"first-page-label": paginationOptions.value.labels.showLess
|
|
12935
|
-
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
13219
|
+
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$a))
|
|
12936
13220
|
]),
|
|
12937
13221
|
createBaseVNode("div", _hoisted_5$7, [
|
|
12938
|
-
createVNode(_sfc_main$
|
|
13222
|
+
createVNode(_sfc_main$A, {
|
|
12939
13223
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
12940
13224
|
"show-filter-count": showMobileFilterCount.value
|
|
12941
13225
|
}, null, 8, ["label", "show-filter-count"]),
|
|
12942
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
13226
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$y, {
|
|
12943
13227
|
key: 0,
|
|
12944
13228
|
options: paginationOptions.value.pageSize,
|
|
12945
13229
|
label: paginationOptions.value.labels.pageSize
|
|
12946
13230
|
}, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$5)),
|
|
12947
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
13231
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$x, {
|
|
12948
13232
|
key: 2,
|
|
12949
13233
|
options: sortOptions.value,
|
|
12950
13234
|
callbacks: callbacks.value
|
|
@@ -12954,259 +13238,6 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
12954
13238
|
};
|
|
12955
13239
|
}
|
|
12956
13240
|
});
|
|
12957
|
-
const _hoisted_1$y = { class: "lupa-badge-title" };
|
|
12958
|
-
const _hoisted_2$n = ["src"];
|
|
12959
|
-
const _hoisted_3$f = { key: 1 };
|
|
12960
|
-
const _hoisted_4$a = {
|
|
12961
|
-
key: 0,
|
|
12962
|
-
class: "lupa-badge-full-text"
|
|
12963
|
-
};
|
|
12964
|
-
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
12965
|
-
__name: "SearchResultGeneratedBadge",
|
|
12966
|
-
props: {
|
|
12967
|
-
options: {},
|
|
12968
|
-
badge: {}
|
|
12969
|
-
},
|
|
12970
|
-
setup(__props) {
|
|
12971
|
-
const props = __props;
|
|
12972
|
-
const image = computed(() => {
|
|
12973
|
-
var _a, _b, _c;
|
|
12974
|
-
return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.image) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : "";
|
|
12975
|
-
});
|
|
12976
|
-
const showTitle = computed(() => {
|
|
12977
|
-
var _a, _b, _c;
|
|
12978
|
-
return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.showTitle) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : true;
|
|
12979
|
-
});
|
|
12980
|
-
const hasAdditionalText = computed(() => {
|
|
12981
|
-
var _a, _b;
|
|
12982
|
-
return Boolean((_a = props.badge) == null ? void 0 : _a.additionalText) && typeof ((_b = props.badge) == null ? void 0 : _b.additionalText) === "string";
|
|
12983
|
-
});
|
|
12984
|
-
const hasTitleText = computed(() => {
|
|
12985
|
-
var _a, _b;
|
|
12986
|
-
return Boolean((_a = props.badge) == null ? void 0 : _a.titleText) && typeof ((_b = props.badge) == null ? void 0 : _b.titleText) === "string";
|
|
12987
|
-
});
|
|
12988
|
-
const customClassName = computed(() => {
|
|
12989
|
-
var _a, _b, _c;
|
|
12990
|
-
return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.customClass) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : "";
|
|
12991
|
-
});
|
|
12992
|
-
return (_ctx, _cache) => {
|
|
12993
|
-
return openBlock(), createElementBlock("div", {
|
|
12994
|
-
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
12995
|
-
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
12996
|
-
}, [
|
|
12997
|
-
createBaseVNode("span", _hoisted_1$y, [
|
|
12998
|
-
image.value ? (openBlock(), createElementBlock("img", {
|
|
12999
|
-
key: 0,
|
|
13000
|
-
src: image.value
|
|
13001
|
-
}, null, 8, _hoisted_2$n)) : createCommentVNode("", true),
|
|
13002
|
-
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
13003
|
-
]),
|
|
13004
|
-
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$a, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
13005
|
-
], 6);
|
|
13006
|
-
};
|
|
13007
|
-
}
|
|
13008
|
-
});
|
|
13009
|
-
const _hoisted_1$x = { class: "lupa-generated-badges" };
|
|
13010
|
-
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
13011
|
-
__name: "SearchResultGeneratedBadges",
|
|
13012
|
-
props: {
|
|
13013
|
-
options: {}
|
|
13014
|
-
},
|
|
13015
|
-
setup(__props) {
|
|
13016
|
-
const props = __props;
|
|
13017
|
-
const badgeField = computed(() => {
|
|
13018
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
13019
|
-
const fieldHasBadges = ((_a = props.options.generate) == null ? void 0 : _a.key) && props.options.product[(_c = (_b = props.options.generate) == null ? void 0 : _b.key) != null ? _c : ""] && Array.isArray(props.options.product[(_e = (_d = props.options.generate) == null ? void 0 : _d.key) != null ? _e : ""]);
|
|
13020
|
-
return fieldHasBadges ? props.options.product[(_g = (_f = props.options.generate) == null ? void 0 : _f.key) != null ? _g : ""] : [];
|
|
13021
|
-
});
|
|
13022
|
-
const keyMap = computed(() => {
|
|
13023
|
-
var _a, _b;
|
|
13024
|
-
return (_b = (_a = props.options.generate) == null ? void 0 : _a.keyMap) != null ? _b : {};
|
|
13025
|
-
});
|
|
13026
|
-
const badges = computed(() => {
|
|
13027
|
-
return badgeField.value.filter((f2) => Boolean(f2)).map((f2) => ({
|
|
13028
|
-
backgroundColor: keyMap.value.backgroundColor ? f2[keyMap.value.backgroundColor] : void 0,
|
|
13029
|
-
color: keyMap.value.color ? f2[keyMap.value.color] : void 0,
|
|
13030
|
-
titleText: keyMap.value.titleText ? f2[keyMap.value.titleText] : void 0,
|
|
13031
|
-
additionalText: keyMap.value.additionalText ? f2[keyMap.value.additionalText] : void 0,
|
|
13032
|
-
id: keyMap.value.id ? f2[keyMap.value.id] : void 0
|
|
13033
|
-
})).filter((b) => Boolean(b.id));
|
|
13034
|
-
});
|
|
13035
|
-
return (_ctx, _cache) => {
|
|
13036
|
-
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
13037
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
13038
|
-
return openBlock(), createBlock(_sfc_main$B, {
|
|
13039
|
-
key: badge.id,
|
|
13040
|
-
badge,
|
|
13041
|
-
options: _ctx.options
|
|
13042
|
-
}, null, 8, ["badge", "options"]);
|
|
13043
|
-
}), 128))
|
|
13044
|
-
]);
|
|
13045
|
-
};
|
|
13046
|
-
}
|
|
13047
|
-
});
|
|
13048
|
-
const _hoisted_1$w = ["innerHTML"];
|
|
13049
|
-
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
13050
|
-
__name: "CustomBadge",
|
|
13051
|
-
props: {
|
|
13052
|
-
badge: {}
|
|
13053
|
-
},
|
|
13054
|
-
setup(__props) {
|
|
13055
|
-
const props = __props;
|
|
13056
|
-
const text = computed(() => {
|
|
13057
|
-
var _a, _b, _c;
|
|
13058
|
-
return (_c = (_b = props.badge).html) == null ? void 0 : _c.call(_b, (_a = props.badge.product) != null ? _a : {});
|
|
13059
|
-
});
|
|
13060
|
-
const className = computed(() => {
|
|
13061
|
-
var _a;
|
|
13062
|
-
return (_a = props.badge.className) != null ? _a : "";
|
|
13063
|
-
});
|
|
13064
|
-
return (_ctx, _cache) => {
|
|
13065
|
-
return openBlock(), createElementBlock("div", {
|
|
13066
|
-
class: normalizeClass(className.value),
|
|
13067
|
-
innerHTML: text.value
|
|
13068
|
-
}, null, 10, _hoisted_1$w);
|
|
13069
|
-
};
|
|
13070
|
-
}
|
|
13071
|
-
});
|
|
13072
|
-
const _hoisted_1$v = { class: "lupa-text-badges" };
|
|
13073
|
-
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
13074
|
-
__name: "TextBadge",
|
|
13075
|
-
props: {
|
|
13076
|
-
badge: {}
|
|
13077
|
-
},
|
|
13078
|
-
setup(__props) {
|
|
13079
|
-
const props = __props;
|
|
13080
|
-
const badges = computed(() => {
|
|
13081
|
-
var _a, _b;
|
|
13082
|
-
return (_b = (_a = props.badge) == null ? void 0 : _a.value) != null ? _b : [];
|
|
13083
|
-
});
|
|
13084
|
-
const displayBadges = computed(() => {
|
|
13085
|
-
return badges.value.slice(0, props.badge.maxItems);
|
|
13086
|
-
});
|
|
13087
|
-
return (_ctx, _cache) => {
|
|
13088
|
-
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
13089
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
13090
|
-
return openBlock(), createElementBlock("div", {
|
|
13091
|
-
class: "lupa-badge lupa-text-badge",
|
|
13092
|
-
key: item
|
|
13093
|
-
}, toDisplayString(_ctx.badge.prefix) + toDisplayString(item), 1);
|
|
13094
|
-
}), 128))
|
|
13095
|
-
]);
|
|
13096
|
-
};
|
|
13097
|
-
}
|
|
13098
|
-
});
|
|
13099
|
-
const _hoisted_1$u = { class: "lupa-image-badges" };
|
|
13100
|
-
const _hoisted_2$m = ["src"];
|
|
13101
|
-
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
13102
|
-
__name: "ImageBadge",
|
|
13103
|
-
props: {
|
|
13104
|
-
badge: {}
|
|
13105
|
-
},
|
|
13106
|
-
setup(__props) {
|
|
13107
|
-
const props = __props;
|
|
13108
|
-
const badges = computed(() => {
|
|
13109
|
-
return props.badge.value;
|
|
13110
|
-
});
|
|
13111
|
-
const displayBadges = computed(() => {
|
|
13112
|
-
return badges.value.slice(0, props.badge.maxItems);
|
|
13113
|
-
});
|
|
13114
|
-
const getImageUrl = (src) => {
|
|
13115
|
-
if (!props.badge.rootImageUrl) {
|
|
13116
|
-
return src;
|
|
13117
|
-
}
|
|
13118
|
-
return `${props.badge.rootImageUrl}${src}`;
|
|
13119
|
-
};
|
|
13120
|
-
return (_ctx, _cache) => {
|
|
13121
|
-
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
13122
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
13123
|
-
return openBlock(), createElementBlock("div", {
|
|
13124
|
-
class: "lupa-badge lupa-image-badge",
|
|
13125
|
-
key: item
|
|
13126
|
-
}, [
|
|
13127
|
-
createBaseVNode("img", {
|
|
13128
|
-
src: getImageUrl(item)
|
|
13129
|
-
}, null, 8, _hoisted_2$m)
|
|
13130
|
-
]);
|
|
13131
|
-
}), 128))
|
|
13132
|
-
]);
|
|
13133
|
-
};
|
|
13134
|
-
}
|
|
13135
|
-
});
|
|
13136
|
-
const _hoisted_1$t = { id: "lupa-search-results-badges" };
|
|
13137
|
-
const __default__$1 = {
|
|
13138
|
-
components: {
|
|
13139
|
-
CustomBadge: _sfc_main$z,
|
|
13140
|
-
TextBadge: _sfc_main$y,
|
|
13141
|
-
ImageBadge: _sfc_main$x
|
|
13142
|
-
}
|
|
13143
|
-
};
|
|
13144
|
-
const _sfc_main$w = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
13145
|
-
__name: "SearchResultsBadgeWrapper",
|
|
13146
|
-
props: {
|
|
13147
|
-
position: {},
|
|
13148
|
-
options: {}
|
|
13149
|
-
},
|
|
13150
|
-
setup(__props) {
|
|
13151
|
-
const props = __props;
|
|
13152
|
-
const positionValue = computed(() => {
|
|
13153
|
-
var _a;
|
|
13154
|
-
return (_a = props.position) != null ? _a : "card";
|
|
13155
|
-
});
|
|
13156
|
-
const anchorPosition = computed(() => {
|
|
13157
|
-
return props.options.anchor;
|
|
13158
|
-
});
|
|
13159
|
-
const badges = computed(() => {
|
|
13160
|
-
if (!props.options.elements) {
|
|
13161
|
-
return [];
|
|
13162
|
-
}
|
|
13163
|
-
return props.options.elements.filter((e) => {
|
|
13164
|
-
var _a;
|
|
13165
|
-
return !e.display || e.display((_a = props.options.product) != null ? _a : {});
|
|
13166
|
-
}).map((x) => {
|
|
13167
|
-
var _a;
|
|
13168
|
-
return __spreadProps2(__spreadValues2({}, x), {
|
|
13169
|
-
value: ((_a = props.options.product) == null ? void 0 : _a[x.key]) || "badge",
|
|
13170
|
-
product: props.options.product
|
|
13171
|
-
});
|
|
13172
|
-
});
|
|
13173
|
-
});
|
|
13174
|
-
const displayBadges = computed(() => {
|
|
13175
|
-
return positionValue.value === "card" ? badges.value.filter((b) => !b.position || b.position === "card") : badges.value.filter((b) => b.position === "image");
|
|
13176
|
-
});
|
|
13177
|
-
const getBadgeComponent = (type) => {
|
|
13178
|
-
switch (type) {
|
|
13179
|
-
case BadgeType.TEXT:
|
|
13180
|
-
return "TextBadge";
|
|
13181
|
-
case BadgeType.IMAGE:
|
|
13182
|
-
return "ImageBadge";
|
|
13183
|
-
case BadgeType.CUSTOM_HTML:
|
|
13184
|
-
return "CustomBadge";
|
|
13185
|
-
default:
|
|
13186
|
-
return "CustomBadge";
|
|
13187
|
-
}
|
|
13188
|
-
};
|
|
13189
|
-
return (_ctx, _cache) => {
|
|
13190
|
-
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
13191
|
-
createBaseVNode("div", {
|
|
13192
|
-
id: "lupa-badges",
|
|
13193
|
-
class: normalizeClass(anchorPosition.value)
|
|
13194
|
-
}, [
|
|
13195
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (badge, index) => {
|
|
13196
|
-
return openBlock(), createBlock(resolveDynamicComponent(getBadgeComponent(badge.type)), {
|
|
13197
|
-
key: index,
|
|
13198
|
-
badge
|
|
13199
|
-
}, null, 8, ["badge"]);
|
|
13200
|
-
}), 128)),
|
|
13201
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$A, {
|
|
13202
|
-
key: 0,
|
|
13203
|
-
options: _ctx.options
|
|
13204
|
-
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
13205
|
-
], 2)
|
|
13206
|
-
]);
|
|
13207
|
-
};
|
|
13208
|
-
}
|
|
13209
|
-
}));
|
|
13210
13241
|
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
13211
13242
|
__name: "SearchResultsProductImage",
|
|
13212
13243
|
props: {
|
|
@@ -13853,7 +13884,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
13853
13884
|
"data-cy": "lupa-search-result-product-card",
|
|
13854
13885
|
class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
|
|
13855
13886
|
}, customDocumentHtmlAttributes.value, { onClick: handleClick }), [
|
|
13856
|
-
createVNode(_sfc_main$
|
|
13887
|
+
createVNode(_sfc_main$_, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
13857
13888
|
createBaseVNode("div", {
|
|
13858
13889
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
13859
13890
|
}, [
|
|
@@ -13873,7 +13904,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
13873
13904
|
link: link.value
|
|
13874
13905
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
13875
13906
|
}), 128)),
|
|
13876
|
-
createVNode(_sfc_main$
|
|
13907
|
+
createVNode(_sfc_main$_, {
|
|
13877
13908
|
options: badgesOptions.value,
|
|
13878
13909
|
position: "image",
|
|
13879
13910
|
class: "lupa-image-badges"
|
|
@@ -14315,17 +14346,17 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
14315
14346
|
class: "lupa-loader"
|
|
14316
14347
|
})) : createCommentVNode("", true),
|
|
14317
14348
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
14318
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
14349
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$C, {
|
|
14319
14350
|
key: 0,
|
|
14320
14351
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
14321
14352
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14322
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
14353
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$w, {
|
|
14323
14354
|
key: 1,
|
|
14324
14355
|
class: "lupa-toolbar-mobile",
|
|
14325
14356
|
options: _ctx.options,
|
|
14326
14357
|
"pagination-location": "top"
|
|
14327
14358
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14328
|
-
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
14359
|
+
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$P, {
|
|
14329
14360
|
key: 2,
|
|
14330
14361
|
class: normalizeClass(currentFiltersClass.value),
|
|
14331
14362
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -14339,7 +14370,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
14339
14370
|
sdkOptions: _ctx.options.options
|
|
14340
14371
|
}, null, 8, ["options", "sdkOptions"]),
|
|
14341
14372
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
14342
|
-
createVNode(_sfc_main$
|
|
14373
|
+
createVNode(_sfc_main$w, {
|
|
14343
14374
|
class: "lupa-toolbar-top",
|
|
14344
14375
|
options: _ctx.options,
|
|
14345
14376
|
"pagination-location": "top"
|
|
@@ -14369,7 +14400,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
14369
14400
|
onClick: goToFirstPage
|
|
14370
14401
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
14371
14402
|
])) : createCommentVNode("", true),
|
|
14372
|
-
createVNode(_sfc_main$
|
|
14403
|
+
createVNode(_sfc_main$w, {
|
|
14373
14404
|
class: "lupa-toolbar-bottom",
|
|
14374
14405
|
options: _ctx.options,
|
|
14375
14406
|
"pagination-location": "bottom"
|
|
@@ -14448,7 +14479,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
14448
14479
|
onClick: handleNavigationBack
|
|
14449
14480
|
}, toDisplayString(backTitle.value), 9, _hoisted_3$5)
|
|
14450
14481
|
])) : createCommentVNode("", true),
|
|
14451
|
-
createVNode(_sfc_main$
|
|
14482
|
+
createVNode(_sfc_main$w, {
|
|
14452
14483
|
class: "lupa-toolbar-mobile",
|
|
14453
14484
|
"pagination-location": "top",
|
|
14454
14485
|
options: _ctx.options
|
|
@@ -14680,8 +14711,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
14680
14711
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
14681
14712
|
}, [
|
|
14682
14713
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
14683
|
-
createVNode(_sfc_main$
|
|
14684
|
-
createVNode(_sfc_main$
|
|
14714
|
+
createVNode(_sfc_main$T, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14715
|
+
createVNode(_sfc_main$R, {
|
|
14685
14716
|
"show-summary": true,
|
|
14686
14717
|
options: _ctx.options,
|
|
14687
14718
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
@@ -14691,24 +14722,24 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
14691
14722
|
key: 1,
|
|
14692
14723
|
options: _ctx.options
|
|
14693
14724
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14694
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
14725
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$E, {
|
|
14695
14726
|
key: 2,
|
|
14696
14727
|
options: _ctx.options.filters
|
|
14697
14728
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14698
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
14729
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$D, {
|
|
14699
14730
|
key: 3,
|
|
14700
14731
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
14701
14732
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
14702
14733
|
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
14703
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14734
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$F, {
|
|
14704
14735
|
key: 0,
|
|
14705
14736
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
14706
14737
|
ref_key: "searchResultsFilters",
|
|
14707
14738
|
ref: searchResultsFilters
|
|
14708
14739
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14709
14740
|
createBaseVNode("div", _hoisted_3$4, [
|
|
14710
|
-
createVNode(_sfc_main$
|
|
14711
|
-
createVNode(_sfc_main$
|
|
14741
|
+
createVNode(_sfc_main$T, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14742
|
+
createVNode(_sfc_main$R, {
|
|
14712
14743
|
options: _ctx.options,
|
|
14713
14744
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
14714
14745
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -14723,13 +14754,13 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
14723
14754
|
}, 8, ["options", "ssr"])
|
|
14724
14755
|
])
|
|
14725
14756
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
14726
|
-
createVNode(_sfc_main$
|
|
14727
|
-
createVNode(_sfc_main$
|
|
14757
|
+
createVNode(_sfc_main$T, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14758
|
+
createVNode(_sfc_main$R, {
|
|
14728
14759
|
options: _ctx.options,
|
|
14729
14760
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
14730
14761
|
}, null, 8, ["options", "is-product-list"]),
|
|
14731
14762
|
createBaseVNode("div", _hoisted_4$3, [
|
|
14732
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14763
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$F, {
|
|
14733
14764
|
key: 0,
|
|
14734
14765
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
14735
14766
|
ref_key: "searchResultsFilters",
|
|
@@ -20359,7 +20390,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
20359
20390
|
onClick: withModifiers(innerClick, ["stop"])
|
|
20360
20391
|
}, [
|
|
20361
20392
|
createBaseVNode("div", _hoisted_2$7, [
|
|
20362
|
-
createVNode(_sfc_main$
|
|
20393
|
+
createVNode(_sfc_main$U, {
|
|
20363
20394
|
options: fullSearchBoxOptions.value,
|
|
20364
20395
|
"is-search-container": true,
|
|
20365
20396
|
ref_key: "searchBox",
|
|
@@ -27371,7 +27402,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
27371
27402
|
};
|
|
27372
27403
|
__expose({ fetch: fetch2 });
|
|
27373
27404
|
return (_ctx, _cache) => {
|
|
27374
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
27405
|
+
return openBlock(), createBlock(unref(_sfc_main$U), {
|
|
27375
27406
|
options: fullSearchBoxOptions.value,
|
|
27376
27407
|
ref_key: "searchBox",
|
|
27377
27408
|
ref: searchBox2
|