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