@getlupa/client 1.14.6 → 1.14.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lupaSearch.iife.js +707 -531
- package/dist/lupaSearch.js +707 -531
- package/dist/lupaSearch.mjs +707 -531
- package/dist/lupaSearch.umd.js +707 -531
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/lupaSearch.umd.js
CHANGED
|
@@ -8598,11 +8598,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8598
8598
|
resetHighlightIndex
|
|
8599
8599
|
};
|
|
8600
8600
|
});
|
|
8601
|
-
const _hoisted_1$
|
|
8602
|
-
const _hoisted_2$
|
|
8603
|
-
const _hoisted_3$
|
|
8604
|
-
const _hoisted_4$
|
|
8605
|
-
const _hoisted_5$
|
|
8601
|
+
const _hoisted_1$1g = { id: "lupa-search-box-input-container" };
|
|
8602
|
+
const _hoisted_2$U = { class: "lupa-input-clear" };
|
|
8603
|
+
const _hoisted_3$D = { id: "lupa-search-box-input" };
|
|
8604
|
+
const _hoisted_4$t = ["value"];
|
|
8605
|
+
const _hoisted_5$j = ["aria-label", "placeholder"];
|
|
8606
8606
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
8607
8607
|
const _hoisted_7$7 = [
|
|
8608
8608
|
_hoisted_6$9
|
|
@@ -8611,7 +8611,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8611
8611
|
key: 0,
|
|
8612
8612
|
class: "lupa-close-label"
|
|
8613
8613
|
};
|
|
8614
|
-
const _sfc_main$
|
|
8614
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
8615
8615
|
__name: "SearchBoxInput",
|
|
8616
8616
|
props: {
|
|
8617
8617
|
options: {},
|
|
@@ -8695,20 +8695,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8695
8695
|
};
|
|
8696
8696
|
__expose({ focus });
|
|
8697
8697
|
return (_ctx, _cache) => {
|
|
8698
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8699
|
-
createBaseVNode("div", _hoisted_2$
|
|
8698
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1g, [
|
|
8699
|
+
createBaseVNode("div", _hoisted_2$U, [
|
|
8700
8700
|
createBaseVNode("div", {
|
|
8701
8701
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
8702
8702
|
onClick: clear2
|
|
8703
8703
|
}, null, 2)
|
|
8704
8704
|
]),
|
|
8705
|
-
createBaseVNode("div", _hoisted_3$
|
|
8705
|
+
createBaseVNode("div", _hoisted_3$D, [
|
|
8706
8706
|
createBaseVNode("input", {
|
|
8707
8707
|
class: "lupa-hint",
|
|
8708
8708
|
"aria-hidden": "true",
|
|
8709
8709
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
8710
8710
|
disabled: ""
|
|
8711
|
-
}, null, 8, _hoisted_4$
|
|
8711
|
+
}, null, 8, _hoisted_4$t),
|
|
8712
8712
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
8713
8713
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
8714
8714
|
}, inputAttributes.value, {
|
|
@@ -8722,7 +8722,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8722
8722
|
placeholder: labels.value.placeholder,
|
|
8723
8723
|
onInput: handleInput,
|
|
8724
8724
|
onFocus: handleFocus
|
|
8725
|
-
}), null, 16, _hoisted_5$
|
|
8725
|
+
}), null, 16, _hoisted_5$j), [
|
|
8726
8726
|
[vModelText, inputValue.value]
|
|
8727
8727
|
]),
|
|
8728
8728
|
_ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
|
|
@@ -8741,7 +8741,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8741
8741
|
};
|
|
8742
8742
|
}
|
|
8743
8743
|
});
|
|
8744
|
-
const _sfc_main$
|
|
8744
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
8745
8745
|
__name: "SearchBoxMoreResults",
|
|
8746
8746
|
props: {
|
|
8747
8747
|
labels: {},
|
|
@@ -8773,9 +8773,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8773
8773
|
};
|
|
8774
8774
|
}
|
|
8775
8775
|
});
|
|
8776
|
-
const _hoisted_1$
|
|
8777
|
-
const _hoisted_2$
|
|
8778
|
-
const _sfc_main$
|
|
8776
|
+
const _hoisted_1$1f = { class: "lupa-search-box-history-item" };
|
|
8777
|
+
const _hoisted_2$T = { class: "lupa-search-box-history-item-content" };
|
|
8778
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
8779
8779
|
__name: "SearchBoxHistoryItem",
|
|
8780
8780
|
props: {
|
|
8781
8781
|
item: {},
|
|
@@ -8791,8 +8791,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8791
8791
|
emit2("click", { query: props.item });
|
|
8792
8792
|
};
|
|
8793
8793
|
return (_ctx, _cache) => {
|
|
8794
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8795
|
-
createBaseVNode("div", _hoisted_2$
|
|
8794
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1f, [
|
|
8795
|
+
createBaseVNode("div", _hoisted_2$T, [
|
|
8796
8796
|
createBaseVNode("div", {
|
|
8797
8797
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
8798
8798
|
onClick: click2
|
|
@@ -8806,11 +8806,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8806
8806
|
};
|
|
8807
8807
|
}
|
|
8808
8808
|
});
|
|
8809
|
-
const _hoisted_1$
|
|
8809
|
+
const _hoisted_1$1e = {
|
|
8810
8810
|
key: 0,
|
|
8811
8811
|
class: "lupa-search-box-history-panel"
|
|
8812
8812
|
};
|
|
8813
|
-
const _sfc_main$
|
|
8813
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
8814
8814
|
__name: "SearchBoxHistoryPanel",
|
|
8815
8815
|
props: {
|
|
8816
8816
|
options: {}
|
|
@@ -8851,9 +8851,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8851
8851
|
}
|
|
8852
8852
|
};
|
|
8853
8853
|
return (_ctx, _cache) => {
|
|
8854
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
8854
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1e, [
|
|
8855
8855
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
8856
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8856
|
+
return openBlock(), createBlock(_sfc_main$1p, {
|
|
8857
8857
|
key: item,
|
|
8858
8858
|
item,
|
|
8859
8859
|
highlighted: index === highlightIndex.value,
|
|
@@ -8869,15 +8869,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8869
8869
|
};
|
|
8870
8870
|
}
|
|
8871
8871
|
});
|
|
8872
|
-
const _hoisted_1$
|
|
8873
|
-
const _sfc_main$
|
|
8872
|
+
const _hoisted_1$1d = { class: "lupa-search-box-no-results" };
|
|
8873
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
8874
8874
|
__name: "SearchBoxNoResults",
|
|
8875
8875
|
props: {
|
|
8876
8876
|
labels: {}
|
|
8877
8877
|
},
|
|
8878
8878
|
setup(__props) {
|
|
8879
8879
|
return (_ctx, _cache) => {
|
|
8880
|
-
return openBlock(), createElementBlock("p", _hoisted_1$
|
|
8880
|
+
return openBlock(), createElementBlock("p", _hoisted_1$1d, toDisplayString(_ctx.labels.noResults), 1);
|
|
8881
8881
|
};
|
|
8882
8882
|
}
|
|
8883
8883
|
});
|
|
@@ -8909,26 +8909,26 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8909
8909
|
}
|
|
8910
8910
|
return gridTemplate.join(" ");
|
|
8911
8911
|
};
|
|
8912
|
-
const _hoisted_1$
|
|
8913
|
-
const _hoisted_2$
|
|
8912
|
+
const _hoisted_1$1c = ["innerHTML"];
|
|
8913
|
+
const _hoisted_2$S = {
|
|
8914
8914
|
key: 1,
|
|
8915
8915
|
"data-cy": "lupa-suggestion-value",
|
|
8916
8916
|
class: "lupa-suggestion-value"
|
|
8917
8917
|
};
|
|
8918
|
-
const _hoisted_3$
|
|
8918
|
+
const _hoisted_3$C = {
|
|
8919
8919
|
key: 2,
|
|
8920
8920
|
class: "lupa-suggestion-facet",
|
|
8921
8921
|
"data-cy": "lupa-suggestion-facet"
|
|
8922
8922
|
};
|
|
8923
|
-
const _hoisted_4$
|
|
8923
|
+
const _hoisted_4$s = {
|
|
8924
8924
|
class: "lupa-suggestion-facet-label",
|
|
8925
8925
|
"data-cy": "lupa-suggestion-facet-label"
|
|
8926
8926
|
};
|
|
8927
|
-
const _hoisted_5$
|
|
8927
|
+
const _hoisted_5$i = {
|
|
8928
8928
|
class: "lupa-suggestion-facet-value",
|
|
8929
8929
|
"data-cy": "lupa-suggestion-facet-value"
|
|
8930
8930
|
};
|
|
8931
|
-
const _sfc_main$
|
|
8931
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
8932
8932
|
__name: "SearchBoxSuggestion",
|
|
8933
8933
|
props: {
|
|
8934
8934
|
suggestion: {},
|
|
@@ -8964,20 +8964,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8964
8964
|
class: "lupa-suggestion-value",
|
|
8965
8965
|
"data-cy": "lupa-suggestion-value",
|
|
8966
8966
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
8967
|
-
}, null, 8, _hoisted_1$
|
|
8968
|
-
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
8969
|
-
createBaseVNode("span", _hoisted_4$
|
|
8970
|
-
createBaseVNode("span", _hoisted_5$
|
|
8967
|
+
}, null, 8, _hoisted_1$1c)) : (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8968
|
+
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
|
|
8969
|
+
createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
|
|
8970
|
+
createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8971
8971
|
])) : createCommentVNode("", true)
|
|
8972
8972
|
]);
|
|
8973
8973
|
};
|
|
8974
8974
|
}
|
|
8975
8975
|
});
|
|
8976
|
-
const _hoisted_1$
|
|
8976
|
+
const _hoisted_1$1b = {
|
|
8977
8977
|
id: "lupa-search-box-suggestions",
|
|
8978
8978
|
"data-cy": "lupa-search-box-suggestions"
|
|
8979
8979
|
};
|
|
8980
|
-
const _sfc_main$
|
|
8980
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
8981
8981
|
__name: "SearchBoxSuggestions",
|
|
8982
8982
|
props: {
|
|
8983
8983
|
items: {},
|
|
@@ -9037,9 +9037,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9037
9037
|
});
|
|
9038
9038
|
});
|
|
9039
9039
|
return (_ctx, _cache) => {
|
|
9040
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9040
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1b, [
|
|
9041
9041
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
9042
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9042
|
+
return openBlock(), createBlock(_sfc_main$1m, {
|
|
9043
9043
|
key: getSuggestionKey(item),
|
|
9044
9044
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
9045
9045
|
suggestion: item,
|
|
@@ -9067,7 +9067,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9067
9067
|
}, timeout);
|
|
9068
9068
|
};
|
|
9069
9069
|
};
|
|
9070
|
-
const _sfc_main$
|
|
9070
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
9071
9071
|
__name: "SearchBoxSuggestionsWrapper",
|
|
9072
9072
|
props: {
|
|
9073
9073
|
panel: {},
|
|
@@ -9109,7 +9109,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9109
9109
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
9110
9110
|
watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
9111
9111
|
return (_ctx, _cache) => {
|
|
9112
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9112
|
+
return openBlock(), createBlock(_sfc_main$1l, {
|
|
9113
9113
|
items: searchResult.value,
|
|
9114
9114
|
highlight: _ctx.panel.highlight,
|
|
9115
9115
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -18183,9 +18183,9 @@ and ensure you are accounting for this risk.
|
|
|
18183
18183
|
targetImage.src = placeholder;
|
|
18184
18184
|
}
|
|
18185
18185
|
};
|
|
18186
|
-
const _hoisted_1$
|
|
18187
|
-
const _hoisted_2$
|
|
18188
|
-
const _sfc_main$
|
|
18186
|
+
const _hoisted_1$1a = ["src"];
|
|
18187
|
+
const _hoisted_2$R = ["src"];
|
|
18188
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
18189
18189
|
__name: "ProductImage",
|
|
18190
18190
|
props: {
|
|
18191
18191
|
item: {},
|
|
@@ -18327,7 +18327,7 @@ and ensure you are accounting for this risk.
|
|
|
18327
18327
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
18328
18328
|
onError: replaceWithPlaceholder,
|
|
18329
18329
|
key: finalUrl.value
|
|
18330
|
-
}), null, 16, _hoisted_1$
|
|
18330
|
+
}), null, 16, _hoisted_1$1a))
|
|
18331
18331
|
]),
|
|
18332
18332
|
_: 1
|
|
18333
18333
|
})) : (openBlock(), createElementBlock("img", mergeProps({
|
|
@@ -18335,12 +18335,12 @@ and ensure you are accounting for this risk.
|
|
|
18335
18335
|
class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
|
|
18336
18336
|
style: styleOverride.value,
|
|
18337
18337
|
src: finalMainImageUrl.value
|
|
18338
|
-
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$
|
|
18338
|
+
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$R))
|
|
18339
18339
|
], 38);
|
|
18340
18340
|
};
|
|
18341
18341
|
}
|
|
18342
18342
|
});
|
|
18343
|
-
const _sfc_main$
|
|
18343
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
18344
18344
|
__name: "SearchBoxProductImage",
|
|
18345
18345
|
props: {
|
|
18346
18346
|
item: {},
|
|
@@ -18348,7 +18348,7 @@ and ensure you are accounting for this risk.
|
|
|
18348
18348
|
},
|
|
18349
18349
|
setup(__props) {
|
|
18350
18350
|
return (_ctx, _cache) => {
|
|
18351
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18351
|
+
return openBlock(), createBlock(_sfc_main$1j, {
|
|
18352
18352
|
item: _ctx.item,
|
|
18353
18353
|
options: _ctx.options,
|
|
18354
18354
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -18357,12 +18357,12 @@ and ensure you are accounting for this risk.
|
|
|
18357
18357
|
};
|
|
18358
18358
|
}
|
|
18359
18359
|
});
|
|
18360
|
-
const _hoisted_1$
|
|
18361
|
-
const _hoisted_2$
|
|
18360
|
+
const _hoisted_1$19 = ["innerHTML"];
|
|
18361
|
+
const _hoisted_2$Q = {
|
|
18362
18362
|
key: 1,
|
|
18363
18363
|
class: "lupa-search-box-product-title"
|
|
18364
18364
|
};
|
|
18365
|
-
const _sfc_main$
|
|
18365
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
18366
18366
|
__name: "SearchBoxProductTitle",
|
|
18367
18367
|
props: {
|
|
18368
18368
|
item: {},
|
|
@@ -18385,18 +18385,18 @@ and ensure you are accounting for this risk.
|
|
|
18385
18385
|
key: 0,
|
|
18386
18386
|
class: "lupa-search-box-product-title",
|
|
18387
18387
|
innerHTML: sanitizedTitle.value
|
|
18388
|
-
}, null, 8, _hoisted_1$
|
|
18388
|
+
}, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, [
|
|
18389
18389
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
18390
18390
|
]));
|
|
18391
18391
|
};
|
|
18392
18392
|
}
|
|
18393
18393
|
});
|
|
18394
|
-
const _hoisted_1$
|
|
18395
|
-
const _hoisted_2$
|
|
18394
|
+
const _hoisted_1$18 = ["innerHTML"];
|
|
18395
|
+
const _hoisted_2$P = {
|
|
18396
18396
|
key: 1,
|
|
18397
18397
|
class: "lupa-search-box-product-description"
|
|
18398
18398
|
};
|
|
18399
|
-
const _sfc_main$
|
|
18399
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
18400
18400
|
__name: "SearchBoxProductDescription",
|
|
18401
18401
|
props: {
|
|
18402
18402
|
item: {},
|
|
@@ -18419,12 +18419,12 @@ and ensure you are accounting for this risk.
|
|
|
18419
18419
|
key: 0,
|
|
18420
18420
|
class: "lupa-search-box-product-description",
|
|
18421
18421
|
innerHTML: sanitizedDescription.value
|
|
18422
|
-
}, null, 8, _hoisted_1$
|
|
18422
|
+
}, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(description.value), 1));
|
|
18423
18423
|
};
|
|
18424
18424
|
}
|
|
18425
18425
|
});
|
|
18426
|
-
const _hoisted_1$
|
|
18427
|
-
const _sfc_main$
|
|
18426
|
+
const _hoisted_1$17 = { class: "lupa-search-box-product-price" };
|
|
18427
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
18428
18428
|
__name: "SearchBoxProductPrice",
|
|
18429
18429
|
props: {
|
|
18430
18430
|
item: {},
|
|
@@ -18442,13 +18442,13 @@ and ensure you are accounting for this risk.
|
|
|
18442
18442
|
);
|
|
18443
18443
|
});
|
|
18444
18444
|
return (_ctx, _cache) => {
|
|
18445
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18445
|
+
return openBlock(), createElementBlock("div", _hoisted_1$17, [
|
|
18446
18446
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
18447
18447
|
]);
|
|
18448
18448
|
};
|
|
18449
18449
|
}
|
|
18450
18450
|
});
|
|
18451
|
-
const _sfc_main$
|
|
18451
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
18452
18452
|
__name: "SearchBoxProductRegularPrice",
|
|
18453
18453
|
props: {
|
|
18454
18454
|
item: {},
|
|
@@ -18475,12 +18475,12 @@ and ensure you are accounting for this risk.
|
|
|
18475
18475
|
};
|
|
18476
18476
|
}
|
|
18477
18477
|
});
|
|
18478
|
-
const _hoisted_1$
|
|
18479
|
-
const _hoisted_2$
|
|
18480
|
-
const _hoisted_3$
|
|
18481
|
-
const _hoisted_4$
|
|
18482
|
-
const _hoisted_5$
|
|
18483
|
-
const _sfc_main$
|
|
18478
|
+
const _hoisted_1$16 = ["innerHTML"];
|
|
18479
|
+
const _hoisted_2$O = { key: 0 };
|
|
18480
|
+
const _hoisted_3$B = { key: 1 };
|
|
18481
|
+
const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
|
|
18482
|
+
const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
|
|
18483
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
18484
18484
|
__name: "SearchBoxProductCustom",
|
|
18485
18485
|
props: {
|
|
18486
18486
|
item: {},
|
|
@@ -18506,20 +18506,20 @@ and ensure you are accounting for this risk.
|
|
|
18506
18506
|
key: 0,
|
|
18507
18507
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
18508
18508
|
innerHTML: text.value
|
|
18509
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
18509
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$16)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
18510
18510
|
key: 1,
|
|
18511
18511
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
18512
18512
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
18513
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
18514
|
-
createBaseVNode("div", _hoisted_4$
|
|
18515
|
-
createBaseVNode("div", _hoisted_5$
|
|
18513
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$O, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$B, [
|
|
18514
|
+
createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
|
|
18515
|
+
createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
|
|
18516
18516
|
]))
|
|
18517
18517
|
], 16));
|
|
18518
18518
|
};
|
|
18519
18519
|
}
|
|
18520
18520
|
});
|
|
18521
|
-
const _hoisted_1$
|
|
18522
|
-
const _sfc_main$
|
|
18521
|
+
const _hoisted_1$15 = ["innerHTML"];
|
|
18522
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
18523
18523
|
__name: "SearchBoxProductCustomHtml",
|
|
18524
18524
|
props: {
|
|
18525
18525
|
item: {},
|
|
@@ -18544,7 +18544,7 @@ and ensure you are accounting for this risk.
|
|
|
18544
18544
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
18545
18545
|
class: className.value,
|
|
18546
18546
|
innerHTML: text.value
|
|
18547
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
18547
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$15);
|
|
18548
18548
|
};
|
|
18549
18549
|
}
|
|
18550
18550
|
});
|
|
@@ -18778,10 +18778,10 @@ and ensure you are accounting for this risk.
|
|
|
18778
18778
|
setRelatedCategoryChildren
|
|
18779
18779
|
};
|
|
18780
18780
|
});
|
|
18781
|
-
const _hoisted_1$
|
|
18782
|
-
const _hoisted_2$
|
|
18783
|
-
const _hoisted_3$
|
|
18784
|
-
const _sfc_main$
|
|
18781
|
+
const _hoisted_1$14 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
18782
|
+
const _hoisted_2$N = { class: "lupa-search-box-product-addtocart" };
|
|
18783
|
+
const _hoisted_3$A = ["onClick", "disabled"];
|
|
18784
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
18785
18785
|
__name: "SearchBoxProductAddToCart",
|
|
18786
18786
|
props: {
|
|
18787
18787
|
item: {},
|
|
@@ -18814,37 +18814,37 @@ and ensure you are accounting for this risk.
|
|
|
18814
18814
|
loading.value = false;
|
|
18815
18815
|
});
|
|
18816
18816
|
return (_ctx, _cache) => {
|
|
18817
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18818
|
-
createBaseVNode("div", _hoisted_2$
|
|
18817
|
+
return openBlock(), createElementBlock("div", _hoisted_1$14, [
|
|
18818
|
+
createBaseVNode("div", _hoisted_2$N, [
|
|
18819
18819
|
createBaseVNode("button", {
|
|
18820
18820
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
18821
18821
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
18822
18822
|
"data-cy": "lupa-add-to-cart",
|
|
18823
18823
|
type: "button",
|
|
18824
18824
|
disabled: !inStockValue.value || loading.value
|
|
18825
|
-
}, toDisplayString(label.value), 11, _hoisted_3$
|
|
18825
|
+
}, toDisplayString(label.value), 11, _hoisted_3$A)
|
|
18826
18826
|
])
|
|
18827
18827
|
]);
|
|
18828
18828
|
};
|
|
18829
18829
|
}
|
|
18830
18830
|
});
|
|
18831
|
-
const _hoisted_1$
|
|
18831
|
+
const _hoisted_1$13 = {
|
|
18832
18832
|
key: 1,
|
|
18833
18833
|
class: "lupa-search-box-element-badge-wrapper"
|
|
18834
18834
|
};
|
|
18835
18835
|
const __default__$4 = {
|
|
18836
18836
|
components: {
|
|
18837
|
-
SearchBoxProductImage: _sfc_main$
|
|
18838
|
-
SearchBoxProductTitle: _sfc_main$
|
|
18839
|
-
SearchBoxProductDescription: _sfc_main$
|
|
18840
|
-
SearchBoxProductPrice: _sfc_main$
|
|
18841
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
18842
|
-
SearchBoxProductCustom: _sfc_main$
|
|
18843
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
18844
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
18837
|
+
SearchBoxProductImage: _sfc_main$1i,
|
|
18838
|
+
SearchBoxProductTitle: _sfc_main$1h,
|
|
18839
|
+
SearchBoxProductDescription: _sfc_main$1g,
|
|
18840
|
+
SearchBoxProductPrice: _sfc_main$1f,
|
|
18841
|
+
SearchBoxProductRegularPrice: _sfc_main$1e,
|
|
18842
|
+
SearchBoxProductCustom: _sfc_main$1d,
|
|
18843
|
+
SearchBoxProductCustomHtml: _sfc_main$1c,
|
|
18844
|
+
SearchBoxProductAddToCart: _sfc_main$1b
|
|
18845
18845
|
}
|
|
18846
18846
|
};
|
|
18847
|
-
const _sfc_main$
|
|
18847
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
18848
18848
|
__name: "SearchBoxProductElement",
|
|
18849
18849
|
props: {
|
|
18850
18850
|
item: {},
|
|
@@ -18907,7 +18907,7 @@ and ensure you are accounting for this risk.
|
|
|
18907
18907
|
class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
|
|
18908
18908
|
inStock: _ctx.isInStock
|
|
18909
18909
|
}, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
|
|
18910
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
18910
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$13, [
|
|
18911
18911
|
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
18912
18912
|
key: 0,
|
|
18913
18913
|
item: enhancedItem.value,
|
|
@@ -18921,14 +18921,14 @@ and ensure you are accounting for this risk.
|
|
|
18921
18921
|
};
|
|
18922
18922
|
}
|
|
18923
18923
|
}));
|
|
18924
|
-
const _hoisted_1$
|
|
18925
|
-
const _hoisted_2$
|
|
18926
|
-
const _hoisted_3$
|
|
18927
|
-
const _hoisted_4$
|
|
18924
|
+
const _hoisted_1$12 = { class: "lupa-badge-title" };
|
|
18925
|
+
const _hoisted_2$M = ["src"];
|
|
18926
|
+
const _hoisted_3$z = { key: 1 };
|
|
18927
|
+
const _hoisted_4$q = {
|
|
18928
18928
|
key: 0,
|
|
18929
18929
|
class: "lupa-badge-full-text"
|
|
18930
18930
|
};
|
|
18931
|
-
const _sfc_main$
|
|
18931
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
18932
18932
|
__name: "SearchResultGeneratedBadge",
|
|
18933
18933
|
props: {
|
|
18934
18934
|
options: {},
|
|
@@ -18961,20 +18961,20 @@ and ensure you are accounting for this risk.
|
|
|
18961
18961
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
18962
18962
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
18963
18963
|
}, [
|
|
18964
|
-
createBaseVNode("span", _hoisted_1$
|
|
18964
|
+
createBaseVNode("span", _hoisted_1$12, [
|
|
18965
18965
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
18966
18966
|
key: 0,
|
|
18967
18967
|
src: image.value
|
|
18968
|
-
}, null, 8, _hoisted_2$
|
|
18969
|
-
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
18968
|
+
}, null, 8, _hoisted_2$M)) : createCommentVNode("", true),
|
|
18969
|
+
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
18970
18970
|
]),
|
|
18971
|
-
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
18971
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
18972
18972
|
], 6);
|
|
18973
18973
|
};
|
|
18974
18974
|
}
|
|
18975
18975
|
});
|
|
18976
|
-
const _hoisted_1
|
|
18977
|
-
const _sfc_main$
|
|
18976
|
+
const _hoisted_1$11 = { class: "lupa-generated-badges" };
|
|
18977
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
18978
18978
|
__name: "SearchResultGeneratedBadges",
|
|
18979
18979
|
props: {
|
|
18980
18980
|
options: {}
|
|
@@ -19000,9 +19000,9 @@ and ensure you are accounting for this risk.
|
|
|
19000
19000
|
})).filter((b) => Boolean(b.id));
|
|
19001
19001
|
});
|
|
19002
19002
|
return (_ctx, _cache) => {
|
|
19003
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
19003
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
19004
19004
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
19005
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19005
|
+
return openBlock(), createBlock(_sfc_main$19, {
|
|
19006
19006
|
key: badge.id,
|
|
19007
19007
|
badge,
|
|
19008
19008
|
options: _ctx.options
|
|
@@ -19012,8 +19012,8 @@ and ensure you are accounting for this risk.
|
|
|
19012
19012
|
};
|
|
19013
19013
|
}
|
|
19014
19014
|
});
|
|
19015
|
-
const _hoisted_1$
|
|
19016
|
-
const _sfc_main$
|
|
19015
|
+
const _hoisted_1$10 = ["innerHTML"];
|
|
19016
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
19017
19017
|
__name: "CustomBadge",
|
|
19018
19018
|
props: {
|
|
19019
19019
|
badge: {}
|
|
@@ -19034,12 +19034,12 @@ and ensure you are accounting for this risk.
|
|
|
19034
19034
|
return openBlock(), createElementBlock("div", {
|
|
19035
19035
|
class: normalizeClass(className.value),
|
|
19036
19036
|
innerHTML: text.value
|
|
19037
|
-
}, null, 10, _hoisted_1$
|
|
19037
|
+
}, null, 10, _hoisted_1$10);
|
|
19038
19038
|
};
|
|
19039
19039
|
}
|
|
19040
19040
|
});
|
|
19041
|
-
const _hoisted_1
|
|
19042
|
-
const _sfc_main$
|
|
19041
|
+
const _hoisted_1$$ = { class: "lupa-text-badges" };
|
|
19042
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
19043
19043
|
__name: "TextBadge",
|
|
19044
19044
|
props: {
|
|
19045
19045
|
badge: {}
|
|
@@ -19054,7 +19054,7 @@ and ensure you are accounting for this risk.
|
|
|
19054
19054
|
return badges.value.slice(0, props.badge.maxItems);
|
|
19055
19055
|
});
|
|
19056
19056
|
return (_ctx, _cache) => {
|
|
19057
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
19057
|
+
return openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
19058
19058
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
19059
19059
|
return openBlock(), createElementBlock("div", {
|
|
19060
19060
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -19065,9 +19065,9 @@ and ensure you are accounting for this risk.
|
|
|
19065
19065
|
};
|
|
19066
19066
|
}
|
|
19067
19067
|
});
|
|
19068
|
-
const _hoisted_1$
|
|
19069
|
-
const _hoisted_2$
|
|
19070
|
-
const _sfc_main$
|
|
19068
|
+
const _hoisted_1$_ = { class: "lupa-image-badges" };
|
|
19069
|
+
const _hoisted_2$L = ["src"];
|
|
19070
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
19071
19071
|
__name: "ImageBadge",
|
|
19072
19072
|
props: {
|
|
19073
19073
|
badge: {}
|
|
@@ -19087,7 +19087,7 @@ and ensure you are accounting for this risk.
|
|
|
19087
19087
|
return `${props.badge.rootImageUrl}${src}`;
|
|
19088
19088
|
};
|
|
19089
19089
|
return (_ctx, _cache) => {
|
|
19090
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19090
|
+
return openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
19091
19091
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
19092
19092
|
return openBlock(), createElementBlock("div", {
|
|
19093
19093
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -19095,22 +19095,22 @@ and ensure you are accounting for this risk.
|
|
|
19095
19095
|
}, [
|
|
19096
19096
|
createBaseVNode("img", {
|
|
19097
19097
|
src: getImageUrl(item)
|
|
19098
|
-
}, null, 8, _hoisted_2$
|
|
19098
|
+
}, null, 8, _hoisted_2$L)
|
|
19099
19099
|
]);
|
|
19100
19100
|
}), 128))
|
|
19101
19101
|
]);
|
|
19102
19102
|
};
|
|
19103
19103
|
}
|
|
19104
19104
|
});
|
|
19105
|
-
const _hoisted_1$
|
|
19105
|
+
const _hoisted_1$Z = { id: "lupa-search-results-badges" };
|
|
19106
19106
|
const __default__$3 = {
|
|
19107
19107
|
components: {
|
|
19108
|
-
CustomBadge: _sfc_main$
|
|
19109
|
-
TextBadge: _sfc_main$
|
|
19110
|
-
ImageBadge: _sfc_main$
|
|
19108
|
+
CustomBadge: _sfc_main$17,
|
|
19109
|
+
TextBadge: _sfc_main$16,
|
|
19110
|
+
ImageBadge: _sfc_main$15
|
|
19111
19111
|
}
|
|
19112
19112
|
};
|
|
19113
|
-
const _sfc_main$
|
|
19113
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
19114
19114
|
__name: "SearchResultsBadgeWrapper",
|
|
19115
19115
|
props: {
|
|
19116
19116
|
position: {},
|
|
@@ -19171,7 +19171,7 @@ and ensure you are accounting for this risk.
|
|
|
19171
19171
|
}
|
|
19172
19172
|
};
|
|
19173
19173
|
return (_ctx, _cache) => {
|
|
19174
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19174
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
19175
19175
|
createBaseVNode("div", {
|
|
19176
19176
|
id: "lupa-badges",
|
|
19177
19177
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -19182,7 +19182,7 @@ and ensure you are accounting for this risk.
|
|
|
19182
19182
|
badge
|
|
19183
19183
|
}, null, 8, ["badge"]);
|
|
19184
19184
|
}), 128)),
|
|
19185
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
19185
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$18, {
|
|
19186
19186
|
key: 0,
|
|
19187
19187
|
options: _ctx.options
|
|
19188
19188
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -19191,13 +19191,13 @@ and ensure you are accounting for this risk.
|
|
|
19191
19191
|
};
|
|
19192
19192
|
}
|
|
19193
19193
|
}));
|
|
19194
|
-
const _hoisted_1$
|
|
19195
|
-
const _hoisted_2$
|
|
19196
|
-
const _hoisted_3$
|
|
19194
|
+
const _hoisted_1$Y = ["href"];
|
|
19195
|
+
const _hoisted_2$K = { class: "lupa-search-box-product-details-section" };
|
|
19196
|
+
const _hoisted_3$y = {
|
|
19197
19197
|
key: 0,
|
|
19198
19198
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
19199
19199
|
};
|
|
19200
|
-
const _sfc_main$
|
|
19200
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
19201
19201
|
__name: "SearchBoxProduct",
|
|
19202
19202
|
props: {
|
|
19203
19203
|
item: {},
|
|
@@ -19283,7 +19283,7 @@ and ensure you are accounting for this risk.
|
|
|
19283
19283
|
style: normalizeStyle(imageStyleOverride.value)
|
|
19284
19284
|
}, [
|
|
19285
19285
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
19286
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19286
|
+
return openBlock(), createBlock(_sfc_main$1a, {
|
|
19287
19287
|
class: "lupa-search-box-product-element",
|
|
19288
19288
|
item: _ctx.item,
|
|
19289
19289
|
element,
|
|
@@ -19293,10 +19293,10 @@ and ensure you are accounting for this risk.
|
|
|
19293
19293
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
19294
19294
|
}), 128))
|
|
19295
19295
|
], 4),
|
|
19296
|
-
createBaseVNode("div", _hoisted_2$
|
|
19296
|
+
createBaseVNode("div", _hoisted_2$K, [
|
|
19297
19297
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
19298
19298
|
var _a;
|
|
19299
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19299
|
+
return openBlock(), createBlock(_sfc_main$1a, {
|
|
19300
19300
|
key: element.key,
|
|
19301
19301
|
class: "lupa-search-box-product-element",
|
|
19302
19302
|
item: _ctx.item,
|
|
@@ -19307,7 +19307,7 @@ and ensure you are accounting for this risk.
|
|
|
19307
19307
|
badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
|
|
19308
19308
|
name: "badges",
|
|
19309
19309
|
fn: withCtx(() => [
|
|
19310
|
-
createVNode(_sfc_main$
|
|
19310
|
+
createVNode(_sfc_main$14, {
|
|
19311
19311
|
options: badgeOptions.value,
|
|
19312
19312
|
position: "card"
|
|
19313
19313
|
}, null, 8, ["options"])
|
|
@@ -19317,8 +19317,8 @@ and ensure you are accounting for this risk.
|
|
|
19317
19317
|
]), 1032, ["item", "element", "labels", "link"]);
|
|
19318
19318
|
}), 128))
|
|
19319
19319
|
]),
|
|
19320
|
-
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
19321
|
-
createVNode(_sfc_main$
|
|
19320
|
+
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$y, [
|
|
19321
|
+
createVNode(_sfc_main$1a, {
|
|
19322
19322
|
class: "lupa-search-box-product-element",
|
|
19323
19323
|
item: _ctx.item,
|
|
19324
19324
|
element: addToCartElement.value,
|
|
@@ -19327,7 +19327,7 @@ and ensure you are accounting for this risk.
|
|
|
19327
19327
|
isInStock: isInStock.value
|
|
19328
19328
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
19329
19329
|
])) : createCommentVNode("", true)
|
|
19330
|
-
], 16, _hoisted_1$
|
|
19330
|
+
], 16, _hoisted_1$Y);
|
|
19331
19331
|
};
|
|
19332
19332
|
}
|
|
19333
19333
|
});
|
|
@@ -19388,8 +19388,8 @@ and ensure you are accounting for this risk.
|
|
|
19388
19388
|
};
|
|
19389
19389
|
return { trackSearch, trackResults, trackEvent };
|
|
19390
19390
|
});
|
|
19391
|
-
const _hoisted_1$
|
|
19392
|
-
const _sfc_main$
|
|
19391
|
+
const _hoisted_1$X = { id: "lupa-search-box-products" };
|
|
19392
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
19393
19393
|
__name: "SearchBoxProducts",
|
|
19394
19394
|
props: {
|
|
19395
19395
|
items: {},
|
|
@@ -19450,7 +19450,7 @@ and ensure you are accounting for this risk.
|
|
|
19450
19450
|
handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
|
|
19451
19451
|
};
|
|
19452
19452
|
return (_ctx, _cache) => {
|
|
19453
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19453
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
19454
19454
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
19455
19455
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
19456
19456
|
key: index,
|
|
@@ -19462,7 +19462,7 @@ and ensure you are accounting for this risk.
|
|
|
19462
19462
|
itemClicked: handleProductClick
|
|
19463
19463
|
});
|
|
19464
19464
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
19465
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19465
|
+
return openBlock(), createBlock(_sfc_main$13, {
|
|
19466
19466
|
key: index,
|
|
19467
19467
|
item,
|
|
19468
19468
|
panelOptions: _ctx.panelOptions,
|
|
@@ -19477,9 +19477,9 @@ and ensure you are accounting for this risk.
|
|
|
19477
19477
|
};
|
|
19478
19478
|
}
|
|
19479
19479
|
});
|
|
19480
|
-
const _hoisted_1$
|
|
19481
|
-
const _hoisted_2$
|
|
19482
|
-
const _sfc_main
|
|
19480
|
+
const _hoisted_1$W = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
19481
|
+
const _hoisted_2$J = { key: 0 };
|
|
19482
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
19483
19483
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
19484
19484
|
props: {
|
|
19485
19485
|
options: {},
|
|
@@ -19509,19 +19509,19 @@ and ensure you are accounting for this risk.
|
|
|
19509
19509
|
emit2("goToResults");
|
|
19510
19510
|
};
|
|
19511
19511
|
return (_ctx, _cache) => {
|
|
19512
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19512
|
+
return openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
19513
19513
|
createBaseVNode("button", {
|
|
19514
19514
|
class: "lupa-search-box-documents-go-to-results-button",
|
|
19515
19515
|
onClick: goToResults
|
|
19516
19516
|
}, [
|
|
19517
19517
|
createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
|
|
19518
|
-
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
19518
|
+
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$J, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
|
|
19519
19519
|
])
|
|
19520
19520
|
]);
|
|
19521
19521
|
};
|
|
19522
19522
|
}
|
|
19523
19523
|
});
|
|
19524
|
-
const _sfc_main$
|
|
19524
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
19525
19525
|
__name: "SearchBoxProductsWrapper",
|
|
19526
19526
|
props: {
|
|
19527
19527
|
panel: {},
|
|
@@ -19578,7 +19578,7 @@ and ensure you are accounting for this risk.
|
|
|
19578
19578
|
watch(() => props.panel.limit, getItemsDebounced);
|
|
19579
19579
|
return (_ctx, _cache) => {
|
|
19580
19580
|
var _a, _b;
|
|
19581
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19581
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
19582
19582
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19583
19583
|
panelOptions: _ctx.panel,
|
|
19584
19584
|
labels: _ctx.labels,
|
|
@@ -19588,7 +19588,7 @@ and ensure you are accounting for this risk.
|
|
|
19588
19588
|
default: withCtx(() => {
|
|
19589
19589
|
var _a2;
|
|
19590
19590
|
return [
|
|
19591
|
-
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main
|
|
19591
|
+
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$11, {
|
|
19592
19592
|
key: 0,
|
|
19593
19593
|
options: _ctx.searchBoxOptions,
|
|
19594
19594
|
panel: _ctx.panel,
|
|
@@ -19609,7 +19609,7 @@ and ensure you are accounting for this risk.
|
|
|
19609
19609
|
};
|
|
19610
19610
|
}
|
|
19611
19611
|
});
|
|
19612
|
-
const _sfc_main
|
|
19612
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
19613
19613
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
19614
19614
|
props: {
|
|
19615
19615
|
panel: {},
|
|
@@ -19681,7 +19681,7 @@ and ensure you are accounting for this risk.
|
|
|
19681
19681
|
});
|
|
19682
19682
|
return (_ctx, _cache) => {
|
|
19683
19683
|
var _a, _b;
|
|
19684
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19684
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
19685
19685
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19686
19686
|
panelOptions: documentPanelOptions.value,
|
|
19687
19687
|
labels: _ctx.labels,
|
|
@@ -19699,31 +19699,31 @@ and ensure you are accounting for this risk.
|
|
|
19699
19699
|
};
|
|
19700
19700
|
}
|
|
19701
19701
|
});
|
|
19702
|
-
const _hoisted_1$
|
|
19702
|
+
const _hoisted_1$V = {
|
|
19703
19703
|
key: 0,
|
|
19704
19704
|
id: "lupa-search-box-panel"
|
|
19705
19705
|
};
|
|
19706
|
-
const _hoisted_2$
|
|
19707
|
-
const _hoisted_3$
|
|
19706
|
+
const _hoisted_2$I = ["data-cy"];
|
|
19707
|
+
const _hoisted_3$x = {
|
|
19708
19708
|
key: 0,
|
|
19709
19709
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
19710
19710
|
};
|
|
19711
|
-
const _hoisted_4$
|
|
19711
|
+
const _hoisted_4$p = {
|
|
19712
19712
|
key: 1,
|
|
19713
19713
|
class: "lupa-panel-title"
|
|
19714
19714
|
};
|
|
19715
|
-
const _hoisted_5$
|
|
19715
|
+
const _hoisted_5$g = {
|
|
19716
19716
|
key: 1,
|
|
19717
19717
|
id: "lupa-search-box-panel"
|
|
19718
19718
|
};
|
|
19719
19719
|
const __default__$2 = {
|
|
19720
19720
|
components: {
|
|
19721
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
19722
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
19723
|
-
SearchBoxRelatedSourceWrapper: _sfc_main
|
|
19721
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1k,
|
|
19722
|
+
SearchBoxProductsWrapper: _sfc_main$10,
|
|
19723
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$$
|
|
19724
19724
|
}
|
|
19725
19725
|
};
|
|
19726
|
-
const _sfc_main$
|
|
19726
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
19727
19727
|
__name: "SearchBoxMainPanel",
|
|
19728
19728
|
props: {
|
|
19729
19729
|
options: {},
|
|
@@ -19879,7 +19879,7 @@ and ensure you are accounting for this risk.
|
|
|
19879
19879
|
ref_key: "panelContainer",
|
|
19880
19880
|
ref: panelContainer
|
|
19881
19881
|
}, [
|
|
19882
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
19882
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
19883
19883
|
labels.value.closePanel ? (openBlock(), createElementBlock("a", {
|
|
19884
19884
|
key: 0,
|
|
19885
19885
|
class: "lupa-search-box-close-panel",
|
|
@@ -19901,8 +19901,8 @@ and ensure you are accounting for this risk.
|
|
|
19901
19901
|
style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
|
|
19902
19902
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
19903
19903
|
}, [
|
|
19904
|
-
((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
19905
|
-
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
19904
|
+
((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$x, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
|
|
19905
|
+
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$p, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
19906
19906
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
19907
19907
|
key: 2,
|
|
19908
19908
|
panel,
|
|
@@ -19924,21 +19924,21 @@ and ensure you are accounting for this risk.
|
|
|
19924
19924
|
key: "0"
|
|
19925
19925
|
} : void 0
|
|
19926
19926
|
]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
19927
|
-
], 14, _hoisted_2$
|
|
19927
|
+
], 14, _hoisted_2$I);
|
|
19928
19928
|
}), 128))
|
|
19929
19929
|
], 4),
|
|
19930
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
19930
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1n, {
|
|
19931
19931
|
key: 1,
|
|
19932
19932
|
labels: labels.value
|
|
19933
19933
|
}, null, 8, ["labels"])) : createCommentVNode("", true),
|
|
19934
|
-
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$
|
|
19934
|
+
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1q, {
|
|
19935
19935
|
key: 2,
|
|
19936
19936
|
labels: labels.value,
|
|
19937
19937
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
19938
19938
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
19939
19939
|
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
19940
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
19941
|
-
createVNode(_sfc_main$
|
|
19940
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
|
|
19941
|
+
createVNode(_sfc_main$1o, {
|
|
19942
19942
|
options: _ctx.options.history,
|
|
19943
19943
|
history: history.value,
|
|
19944
19944
|
onGoToResults: handleGoToResults,
|
|
@@ -19963,9 +19963,9 @@ and ensure you are accounting for this risk.
|
|
|
19963
19963
|
const elements = getElements(triggers);
|
|
19964
19964
|
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
19965
19965
|
};
|
|
19966
|
-
const _hoisted_1$
|
|
19967
|
-
const _hoisted_2$
|
|
19968
|
-
const _sfc_main$
|
|
19966
|
+
const _hoisted_1$U = { id: "lupa-search-box" };
|
|
19967
|
+
const _hoisted_2$H = { class: "lupa-search-box-wrapper" };
|
|
19968
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
19969
19969
|
__name: "SearchBox",
|
|
19970
19970
|
props: {
|
|
19971
19971
|
options: {},
|
|
@@ -20225,9 +20225,9 @@ and ensure you are accounting for this risk.
|
|
|
20225
20225
|
};
|
|
20226
20226
|
return (_ctx, _cache) => {
|
|
20227
20227
|
var _a2;
|
|
20228
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20229
|
-
createBaseVNode("div", _hoisted_2$
|
|
20230
|
-
createVNode(_sfc_main$
|
|
20228
|
+
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
20229
|
+
createBaseVNode("div", _hoisted_2$H, [
|
|
20230
|
+
createVNode(_sfc_main$1r, {
|
|
20231
20231
|
options: inputOptions.value,
|
|
20232
20232
|
suggestedValue: suggestedValue.value,
|
|
20233
20233
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -20240,7 +20240,7 @@ and ensure you are accounting for this risk.
|
|
|
20240
20240
|
onSearch: handleSearch,
|
|
20241
20241
|
onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
|
|
20242
20242
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
20243
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
20243
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$_, {
|
|
20244
20244
|
key: 0,
|
|
20245
20245
|
options: panelOptions.value,
|
|
20246
20246
|
inputValue: inputValue.value,
|
|
@@ -20329,20 +20329,20 @@ and ensure you are accounting for this risk.
|
|
|
20329
20329
|
}
|
|
20330
20330
|
return searchParams;
|
|
20331
20331
|
};
|
|
20332
|
-
const _hoisted_1$
|
|
20332
|
+
const _hoisted_1$T = {
|
|
20333
20333
|
key: 0,
|
|
20334
20334
|
id: "lupa-search-results-did-you-mean"
|
|
20335
20335
|
};
|
|
20336
|
-
const _hoisted_2$
|
|
20336
|
+
const _hoisted_2$G = {
|
|
20337
20337
|
key: 0,
|
|
20338
20338
|
"data-cy": "suggested-search-text-label"
|
|
20339
20339
|
};
|
|
20340
|
-
const _hoisted_3$
|
|
20340
|
+
const _hoisted_3$w = {
|
|
20341
20341
|
key: 1,
|
|
20342
20342
|
"data-cy": "did-you-mean-label"
|
|
20343
20343
|
};
|
|
20344
|
-
const _hoisted_4$
|
|
20345
|
-
const _sfc_main$
|
|
20344
|
+
const _hoisted_4$o = { key: 1 };
|
|
20345
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
20346
20346
|
__name: "SearchResultsDidYouMean",
|
|
20347
20347
|
props: {
|
|
20348
20348
|
labels: {}
|
|
@@ -20374,8 +20374,8 @@ and ensure you are accounting for this risk.
|
|
|
20374
20374
|
paramStore.goToResults({ searchText, facet });
|
|
20375
20375
|
};
|
|
20376
20376
|
return (_ctx, _cache) => {
|
|
20377
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20378
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
20377
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
20378
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$G, [
|
|
20379
20379
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
20380
20380
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
20381
20381
|
createBaseVNode("span", {
|
|
@@ -20384,7 +20384,7 @@ and ensure you are accounting for this risk.
|
|
|
20384
20384
|
]);
|
|
20385
20385
|
}), 128))
|
|
20386
20386
|
])) : createCommentVNode("", true),
|
|
20387
|
-
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20387
|
+
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
|
|
20388
20388
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
20389
20389
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
20390
20390
|
label.includes("{1}") ? (openBlock(), createElementBlock("span", {
|
|
@@ -20392,7 +20392,7 @@ and ensure you are accounting for this risk.
|
|
|
20392
20392
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
20393
20393
|
"data-cy": "did-you-mean-value",
|
|
20394
20394
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
20395
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
20395
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
|
|
20396
20396
|
]);
|
|
20397
20397
|
}), 128))
|
|
20398
20398
|
])) : createCommentVNode("", true)
|
|
@@ -20400,12 +20400,12 @@ and ensure you are accounting for this risk.
|
|
|
20400
20400
|
};
|
|
20401
20401
|
}
|
|
20402
20402
|
});
|
|
20403
|
-
const _hoisted_1$
|
|
20403
|
+
const _hoisted_1$S = {
|
|
20404
20404
|
key: 0,
|
|
20405
20405
|
class: "lupa-search-results-summary"
|
|
20406
20406
|
};
|
|
20407
|
-
const _hoisted_2$
|
|
20408
|
-
const _sfc_main$
|
|
20407
|
+
const _hoisted_2$F = ["innerHTML"];
|
|
20408
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
20409
20409
|
__name: "SearchResultsSummary",
|
|
20410
20410
|
props: {
|
|
20411
20411
|
label: {},
|
|
@@ -20420,8 +20420,8 @@ and ensure you are accounting for this risk.
|
|
|
20420
20420
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
20421
20421
|
});
|
|
20422
20422
|
return (_ctx, _cache) => {
|
|
20423
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20424
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
20423
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
20424
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$F),
|
|
20425
20425
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
20426
20426
|
key: 0,
|
|
20427
20427
|
class: "lupa-filter-clear",
|
|
@@ -20432,19 +20432,19 @@ and ensure you are accounting for this risk.
|
|
|
20432
20432
|
};
|
|
20433
20433
|
}
|
|
20434
20434
|
});
|
|
20435
|
-
const _hoisted_1$
|
|
20435
|
+
const _hoisted_1$R = {
|
|
20436
20436
|
key: 0,
|
|
20437
20437
|
class: "lupa-result-page-title",
|
|
20438
20438
|
"data-cy": "lupa-result-page-title"
|
|
20439
20439
|
};
|
|
20440
|
-
const _hoisted_2$
|
|
20441
|
-
const _hoisted_3$
|
|
20440
|
+
const _hoisted_2$E = { key: 0 };
|
|
20441
|
+
const _hoisted_3$v = {
|
|
20442
20442
|
key: 1,
|
|
20443
20443
|
class: "lupa-results-total-count"
|
|
20444
20444
|
};
|
|
20445
|
-
const _hoisted_4$
|
|
20446
|
-
const _hoisted_5$
|
|
20447
|
-
const _sfc_main$
|
|
20445
|
+
const _hoisted_4$n = { class: "lupa-results-total-count-number" };
|
|
20446
|
+
const _hoisted_5$f = ["innerHTML"];
|
|
20447
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
20448
20448
|
__name: "SearchResultsTitle",
|
|
20449
20449
|
props: {
|
|
20450
20450
|
options: {},
|
|
@@ -20483,16 +20483,16 @@ and ensure you are accounting for this risk.
|
|
|
20483
20483
|
});
|
|
20484
20484
|
return (_ctx, _cache) => {
|
|
20485
20485
|
return openBlock(), createElementBlock("div", null, [
|
|
20486
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
20486
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$R, [
|
|
20487
20487
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
20488
|
-
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
20489
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
20488
|
+
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$E, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
20489
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$v, [
|
|
20490
20490
|
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
20491
|
-
createBaseVNode("span", _hoisted_4$
|
|
20491
|
+
createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
|
|
20492
20492
|
createTextVNode(")")
|
|
20493
20493
|
])) : createCommentVNode("", true)
|
|
20494
20494
|
])) : createCommentVNode("", true),
|
|
20495
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
20495
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$X, {
|
|
20496
20496
|
key: 1,
|
|
20497
20497
|
label: summaryLabel.value
|
|
20498
20498
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -20500,21 +20500,21 @@ and ensure you are accounting for this risk.
|
|
|
20500
20500
|
key: 2,
|
|
20501
20501
|
class: "lupa-result-page-description-top",
|
|
20502
20502
|
innerHTML: descriptionTop.value
|
|
20503
|
-
}, null, 8, _hoisted_5$
|
|
20503
|
+
}, null, 8, _hoisted_5$f)) : createCommentVNode("", true)
|
|
20504
20504
|
]);
|
|
20505
20505
|
};
|
|
20506
20506
|
}
|
|
20507
20507
|
});
|
|
20508
|
-
const _hoisted_1$
|
|
20509
|
-
const _hoisted_2$
|
|
20508
|
+
const _hoisted_1$Q = { class: "lupa-search-result-filter-value" };
|
|
20509
|
+
const _hoisted_2$D = {
|
|
20510
20510
|
class: "lupa-current-filter-label",
|
|
20511
20511
|
"data-cy": "lupa-current-filter-label"
|
|
20512
20512
|
};
|
|
20513
|
-
const _hoisted_3$
|
|
20513
|
+
const _hoisted_3$u = {
|
|
20514
20514
|
class: "lupa-current-filter-value",
|
|
20515
20515
|
"data-cy": "lupa-current-filter-value"
|
|
20516
20516
|
};
|
|
20517
|
-
const _sfc_main$
|
|
20517
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
20518
20518
|
__name: "CurrentFilterDisplay",
|
|
20519
20519
|
props: {
|
|
20520
20520
|
filter: {}
|
|
@@ -20526,28 +20526,28 @@ and ensure you are accounting for this risk.
|
|
|
20526
20526
|
emit2("remove", { filter: props.filter });
|
|
20527
20527
|
};
|
|
20528
20528
|
return (_ctx, _cache) => {
|
|
20529
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20529
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
20530
20530
|
createBaseVNode("div", {
|
|
20531
20531
|
class: "lupa-current-filter-action",
|
|
20532
20532
|
onClick: handleClick
|
|
20533
20533
|
}, "⨉"),
|
|
20534
|
-
createBaseVNode("div", _hoisted_2$
|
|
20535
|
-
createBaseVNode("div", _hoisted_3$
|
|
20534
|
+
createBaseVNode("div", _hoisted_2$D, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
20535
|
+
createBaseVNode("div", _hoisted_3$u, toDisplayString(_ctx.filter.value), 1)
|
|
20536
20536
|
]);
|
|
20537
20537
|
};
|
|
20538
20538
|
}
|
|
20539
20539
|
});
|
|
20540
|
-
const _hoisted_1$
|
|
20541
|
-
const _hoisted_2$
|
|
20540
|
+
const _hoisted_1$P = { class: "lupa-filter-title-text" };
|
|
20541
|
+
const _hoisted_2$C = {
|
|
20542
20542
|
key: 0,
|
|
20543
20543
|
class: "lupa-filter-count"
|
|
20544
20544
|
};
|
|
20545
|
-
const _hoisted_3$
|
|
20545
|
+
const _hoisted_3$t = {
|
|
20546
20546
|
key: 0,
|
|
20547
20547
|
class: "filter-values"
|
|
20548
20548
|
};
|
|
20549
|
-
const _hoisted_4$
|
|
20550
|
-
const _sfc_main$
|
|
20549
|
+
const _hoisted_4$m = { class: "lupa-current-filter-list" };
|
|
20550
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
20551
20551
|
__name: "CurrentFilters",
|
|
20552
20552
|
props: {
|
|
20553
20553
|
options: {},
|
|
@@ -20620,19 +20620,19 @@ and ensure you are accounting for this risk.
|
|
|
20620
20620
|
class: "lupa-current-filter-title",
|
|
20621
20621
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
20622
20622
|
}, [
|
|
20623
|
-
createBaseVNode("div", _hoisted_1$
|
|
20623
|
+
createBaseVNode("div", _hoisted_1$P, [
|
|
20624
20624
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
20625
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
20625
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$C, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
20626
20626
|
]),
|
|
20627
20627
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
20628
20628
|
key: 0,
|
|
20629
20629
|
class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
20630
20630
|
}, null, 2)) : createCommentVNode("", true)
|
|
20631
20631
|
]),
|
|
20632
|
-
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20633
|
-
createBaseVNode("div", _hoisted_4$
|
|
20632
|
+
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
20633
|
+
createBaseVNode("div", _hoisted_4$m, [
|
|
20634
20634
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
|
|
20635
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20635
|
+
return openBlock(), createBlock(_sfc_main$V, {
|
|
20636
20636
|
key: filter2.key + "_" + filter2.value,
|
|
20637
20637
|
filter: filter2,
|
|
20638
20638
|
onRemove: handleRemove
|
|
@@ -20649,8 +20649,8 @@ and ensure you are accounting for this risk.
|
|
|
20649
20649
|
};
|
|
20650
20650
|
}
|
|
20651
20651
|
});
|
|
20652
|
-
const _hoisted_1$
|
|
20653
|
-
const _sfc_main$
|
|
20652
|
+
const _hoisted_1$O = ["href"];
|
|
20653
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
20654
20654
|
__name: "CategoryFilterItem",
|
|
20655
20655
|
props: {
|
|
20656
20656
|
options: {},
|
|
@@ -20687,20 +20687,20 @@ and ensure you are accounting for this risk.
|
|
|
20687
20687
|
"data-cy": "lupa-child-category-item",
|
|
20688
20688
|
href: urlLink.value,
|
|
20689
20689
|
onClick: handleNavigation
|
|
20690
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
20690
|
+
}, toDisplayString(title.value), 9, _hoisted_1$O)
|
|
20691
20691
|
], 2);
|
|
20692
20692
|
};
|
|
20693
20693
|
}
|
|
20694
20694
|
});
|
|
20695
|
-
const _hoisted_1$
|
|
20695
|
+
const _hoisted_1$N = {
|
|
20696
20696
|
class: "lupa-category-filter",
|
|
20697
20697
|
"data-cy": "lupa-category-filter"
|
|
20698
20698
|
};
|
|
20699
|
-
const _hoisted_2$
|
|
20700
|
-
const _hoisted_3$
|
|
20701
|
-
const _hoisted_4$
|
|
20702
|
-
const _hoisted_5$
|
|
20703
|
-
const _sfc_main$
|
|
20699
|
+
const _hoisted_2$B = { class: "lupa-category-back" };
|
|
20700
|
+
const _hoisted_3$s = ["href"];
|
|
20701
|
+
const _hoisted_4$l = ["href"];
|
|
20702
|
+
const _hoisted_5$e = { class: "lupa-child-category-list" };
|
|
20703
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
20704
20704
|
__name: "CategoryFilter",
|
|
20705
20705
|
props: {
|
|
20706
20706
|
options: {}
|
|
@@ -20788,14 +20788,14 @@ and ensure you are accounting for this risk.
|
|
|
20788
20788
|
};
|
|
20789
20789
|
__expose({ fetch: fetch2 });
|
|
20790
20790
|
return (_ctx, _cache) => {
|
|
20791
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20792
|
-
createBaseVNode("div", _hoisted_2$
|
|
20791
|
+
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
20792
|
+
createBaseVNode("div", _hoisted_2$B, [
|
|
20793
20793
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
20794
20794
|
key: 0,
|
|
20795
20795
|
"data-cy": "lupa-category-back",
|
|
20796
20796
|
href: backUrlLink.value,
|
|
20797
20797
|
onClick: handleNavigationBack
|
|
20798
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
20798
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$s)) : createCommentVNode("", true)
|
|
20799
20799
|
]),
|
|
20800
20800
|
createBaseVNode("div", {
|
|
20801
20801
|
class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -20805,11 +20805,11 @@ and ensure you are accounting for this risk.
|
|
|
20805
20805
|
href: parentUrlLink.value,
|
|
20806
20806
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
20807
20807
|
onClick: handleNavigationParent
|
|
20808
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
20808
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
|
|
20809
20809
|
], 2),
|
|
20810
|
-
createBaseVNode("div", _hoisted_5$
|
|
20810
|
+
createBaseVNode("div", _hoisted_5$e, [
|
|
20811
20811
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
20812
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20812
|
+
return openBlock(), createBlock(_sfc_main$T, {
|
|
20813
20813
|
key: getCategoryKey(child),
|
|
20814
20814
|
item: child,
|
|
20815
20815
|
options: _ctx.options
|
|
@@ -20820,14 +20820,14 @@ and ensure you are accounting for this risk.
|
|
|
20820
20820
|
};
|
|
20821
20821
|
}
|
|
20822
20822
|
});
|
|
20823
|
-
const _hoisted_1$
|
|
20823
|
+
const _hoisted_1$M = {
|
|
20824
20824
|
class: "lupa-search-result-facet-term-values",
|
|
20825
20825
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
20826
20826
|
};
|
|
20827
|
-
const _hoisted_2$
|
|
20828
|
-
const _hoisted_3$
|
|
20829
|
-
const _hoisted_4$
|
|
20830
|
-
const _hoisted_5$
|
|
20827
|
+
const _hoisted_2$A = ["placeholder"];
|
|
20828
|
+
const _hoisted_3$r = { class: "lupa-terms-list" };
|
|
20829
|
+
const _hoisted_4$k = ["onClick"];
|
|
20830
|
+
const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
|
|
20831
20831
|
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
20832
20832
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
20833
20833
|
const _hoisted_8$2 = {
|
|
@@ -20836,7 +20836,7 @@ and ensure you are accounting for this risk.
|
|
|
20836
20836
|
};
|
|
20837
20837
|
const _hoisted_9$2 = { key: 0 };
|
|
20838
20838
|
const _hoisted_10$1 = { key: 1 };
|
|
20839
|
-
const _sfc_main$
|
|
20839
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
20840
20840
|
__name: "TermFacet",
|
|
20841
20841
|
props: {
|
|
20842
20842
|
options: {},
|
|
@@ -20907,17 +20907,17 @@ and ensure you are accounting for this risk.
|
|
|
20907
20907
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
20908
20908
|
};
|
|
20909
20909
|
return (_ctx, _cache) => {
|
|
20910
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20910
|
+
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
20911
20911
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
20912
20912
|
key: 0,
|
|
20913
20913
|
class: "lupa-term-filter",
|
|
20914
20914
|
"data-cy": "lupa-term-filter",
|
|
20915
20915
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
20916
20916
|
placeholder: _ctx.options.labels.facetFilter
|
|
20917
|
-
}, null, 8, _hoisted_2$
|
|
20917
|
+
}, null, 8, _hoisted_2$A)), [
|
|
20918
20918
|
[vModelText, termFilter.value]
|
|
20919
20919
|
]) : createCommentVNode("", true),
|
|
20920
|
-
createBaseVNode("div", _hoisted_3$
|
|
20920
|
+
createBaseVNode("div", _hoisted_3$r, [
|
|
20921
20921
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
20922
20922
|
return openBlock(), createElementBlock("div", {
|
|
20923
20923
|
class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -20925,7 +20925,7 @@ and ensure you are accounting for this risk.
|
|
|
20925
20925
|
key: item.title,
|
|
20926
20926
|
onClick: ($event) => handleFacetClick(item)
|
|
20927
20927
|
}, [
|
|
20928
|
-
createBaseVNode("div", _hoisted_5$
|
|
20928
|
+
createBaseVNode("div", _hoisted_5$d, [
|
|
20929
20929
|
createBaseVNode("span", {
|
|
20930
20930
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
20931
20931
|
}, null, 2)
|
|
@@ -20934,7 +20934,7 @@ and ensure you are accounting for this risk.
|
|
|
20934
20934
|
createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
|
|
20935
20935
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
20936
20936
|
])
|
|
20937
|
-
], 10, _hoisted_4$
|
|
20937
|
+
], 10, _hoisted_4$k);
|
|
20938
20938
|
}), 128))
|
|
20939
20939
|
]),
|
|
20940
20940
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -21925,20 +21925,20 @@ and ensure you are accounting for this risk.
|
|
|
21925
21925
|
m.render = function(e2, t, r, i, n, o) {
|
|
21926
21926
|
return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
|
|
21927
21927
|
}, m.__file = "src/Slider.vue";
|
|
21928
|
-
const _hoisted_1$
|
|
21929
|
-
const _hoisted_2$
|
|
21928
|
+
const _hoisted_1$L = { class: "lupa-search-result-facet-stats-values" };
|
|
21929
|
+
const _hoisted_2$z = {
|
|
21930
21930
|
key: 0,
|
|
21931
21931
|
class: "lupa-stats-facet-summary"
|
|
21932
21932
|
};
|
|
21933
|
-
const _hoisted_3$
|
|
21933
|
+
const _hoisted_3$q = {
|
|
21934
21934
|
key: 1,
|
|
21935
21935
|
class: "lupa-stats-facet-summary-input"
|
|
21936
21936
|
};
|
|
21937
|
-
const _hoisted_4$
|
|
21937
|
+
const _hoisted_4$j = {
|
|
21938
21938
|
key: 0,
|
|
21939
21939
|
class: "lupa-stats-range-label"
|
|
21940
21940
|
};
|
|
21941
|
-
const _hoisted_5$
|
|
21941
|
+
const _hoisted_5$c = { class: "lupa-stats-from" };
|
|
21942
21942
|
const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
|
|
21943
21943
|
const _hoisted_7$5 = { key: 0 };
|
|
21944
21944
|
const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
@@ -21953,7 +21953,7 @@ and ensure you are accounting for this risk.
|
|
|
21953
21953
|
key: 2,
|
|
21954
21954
|
class: "lupa-stats-slider-wrapper"
|
|
21955
21955
|
};
|
|
21956
|
-
const _sfc_main$
|
|
21956
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
21957
21957
|
__name: "StatsFacet",
|
|
21958
21958
|
props: {
|
|
21959
21959
|
options: {},
|
|
@@ -22126,11 +22126,11 @@ and ensure you are accounting for this risk.
|
|
|
22126
22126
|
innerSliderRange.value = value;
|
|
22127
22127
|
};
|
|
22128
22128
|
return (_ctx, _cache) => {
|
|
22129
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22130
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22129
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
22130
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
|
|
22131
22131
|
createBaseVNode("div", null, [
|
|
22132
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
22133
|
-
createBaseVNode("div", _hoisted_5$
|
|
22132
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
22133
|
+
createBaseVNode("div", _hoisted_5$c, [
|
|
22134
22134
|
withDirectives(createBaseVNode("input", {
|
|
22135
22135
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
22136
22136
|
type: "text",
|
|
@@ -22193,18 +22193,18 @@ and ensure you are accounting for this risk.
|
|
|
22193
22193
|
};
|
|
22194
22194
|
}
|
|
22195
22195
|
});
|
|
22196
|
-
const _hoisted_1$
|
|
22197
|
-
const _hoisted_2$
|
|
22198
|
-
const _hoisted_3$
|
|
22199
|
-
const _hoisted_4$
|
|
22196
|
+
const _hoisted_1$K = { class: "lupa-term-checkbox-wrapper" };
|
|
22197
|
+
const _hoisted_2$y = { class: "lupa-term-checkbox-label" };
|
|
22198
|
+
const _hoisted_3$p = { class: "lupa-term-label" };
|
|
22199
|
+
const _hoisted_4$i = {
|
|
22200
22200
|
key: 0,
|
|
22201
22201
|
class: "lupa-term-count"
|
|
22202
22202
|
};
|
|
22203
|
-
const _hoisted_5$
|
|
22203
|
+
const _hoisted_5$b = {
|
|
22204
22204
|
key: 0,
|
|
22205
22205
|
class: "lupa-facet-level"
|
|
22206
22206
|
};
|
|
22207
|
-
const _sfc_main$
|
|
22207
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
22208
22208
|
__name: "HierarchyFacetLevel",
|
|
22209
22209
|
props: {
|
|
22210
22210
|
options: {},
|
|
@@ -22250,17 +22250,17 @@ and ensure you are accounting for this risk.
|
|
|
22250
22250
|
"data-cy": "lupa-facet-term",
|
|
22251
22251
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
22252
22252
|
}, [
|
|
22253
|
-
createBaseVNode("div", _hoisted_1$
|
|
22253
|
+
createBaseVNode("div", _hoisted_1$K, [
|
|
22254
22254
|
createBaseVNode("span", {
|
|
22255
22255
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
22256
22256
|
}, null, 2)
|
|
22257
22257
|
]),
|
|
22258
|
-
createBaseVNode("div", _hoisted_2$
|
|
22259
|
-
createBaseVNode("span", _hoisted_3$
|
|
22260
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
22258
|
+
createBaseVNode("div", _hoisted_2$y, [
|
|
22259
|
+
createBaseVNode("span", _hoisted_3$p, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
22260
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$i, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
22261
22261
|
])
|
|
22262
22262
|
]),
|
|
22263
|
-
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
22263
|
+
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
|
|
22264
22264
|
(openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
|
|
22265
22265
|
return openBlock(), createBlock(_component_HierarchyFacetLevel, {
|
|
22266
22266
|
key: itemChild.title,
|
|
@@ -22276,13 +22276,13 @@ and ensure you are accounting for this risk.
|
|
|
22276
22276
|
};
|
|
22277
22277
|
}
|
|
22278
22278
|
});
|
|
22279
|
-
const _hoisted_1$
|
|
22279
|
+
const _hoisted_1$J = {
|
|
22280
22280
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
22281
22281
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
22282
22282
|
};
|
|
22283
|
-
const _hoisted_2$
|
|
22284
|
-
const _hoisted_3$
|
|
22285
|
-
const _sfc_main$
|
|
22283
|
+
const _hoisted_2$x = { key: 0 };
|
|
22284
|
+
const _hoisted_3$o = ["placeholder"];
|
|
22285
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
22286
22286
|
__name: "HierarchyFacet",
|
|
22287
22287
|
props: {
|
|
22288
22288
|
options: {},
|
|
@@ -22332,19 +22332,19 @@ and ensure you are accounting for this risk.
|
|
|
22332
22332
|
showAll.value = true;
|
|
22333
22333
|
};
|
|
22334
22334
|
return (_ctx, _cache) => {
|
|
22335
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22336
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22335
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
22336
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
|
|
22337
22337
|
withDirectives(createBaseVNode("input", {
|
|
22338
22338
|
class: "lupa-term-filter",
|
|
22339
22339
|
"data-cy": "lupa-term-filter",
|
|
22340
22340
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
22341
22341
|
placeholder: _ctx.options.labels.facetFilter
|
|
22342
|
-
}, null, 8, _hoisted_3$
|
|
22342
|
+
}, null, 8, _hoisted_3$o), [
|
|
22343
22343
|
[vModelText, termFilter.value]
|
|
22344
22344
|
])
|
|
22345
22345
|
])) : createCommentVNode("", true),
|
|
22346
22346
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
22347
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22347
|
+
return openBlock(), createBlock(_sfc_main$P, {
|
|
22348
22348
|
key: item.title,
|
|
22349
22349
|
options: _ctx.options,
|
|
22350
22350
|
item,
|
|
@@ -22364,20 +22364,20 @@ and ensure you are accounting for this risk.
|
|
|
22364
22364
|
};
|
|
22365
22365
|
}
|
|
22366
22366
|
});
|
|
22367
|
-
const _hoisted_1$
|
|
22368
|
-
const _hoisted_2$
|
|
22367
|
+
const _hoisted_1$I = { class: "lupa-facet-label-text" };
|
|
22368
|
+
const _hoisted_2$w = {
|
|
22369
22369
|
key: 0,
|
|
22370
22370
|
class: "lupa-facet-content",
|
|
22371
22371
|
"data-cy": "lupa-facet-content"
|
|
22372
22372
|
};
|
|
22373
22373
|
const __default__$1 = {
|
|
22374
22374
|
components: {
|
|
22375
|
-
TermFacet: _sfc_main$
|
|
22376
|
-
StatsFacet: _sfc_main$
|
|
22377
|
-
HierarchyFacet: _sfc_main$
|
|
22375
|
+
TermFacet: _sfc_main$R,
|
|
22376
|
+
StatsFacet: _sfc_main$Q,
|
|
22377
|
+
HierarchyFacet: _sfc_main$O
|
|
22378
22378
|
}
|
|
22379
22379
|
};
|
|
22380
|
-
const _sfc_main$
|
|
22380
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
22381
22381
|
__name: "FacetDisplay",
|
|
22382
22382
|
props: {
|
|
22383
22383
|
options: {},
|
|
@@ -22489,12 +22489,12 @@ and ensure you are accounting for this risk.
|
|
|
22489
22489
|
"data-cy": "lupa-search-result-facet-label",
|
|
22490
22490
|
onClick: toggleFacet
|
|
22491
22491
|
}, [
|
|
22492
|
-
createBaseVNode("div", _hoisted_1$
|
|
22492
|
+
createBaseVNode("div", _hoisted_1$I, toDisplayString(facet.value.label), 1),
|
|
22493
22493
|
createBaseVNode("div", {
|
|
22494
22494
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
22495
22495
|
}, null, 2)
|
|
22496
22496
|
], 2),
|
|
22497
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22497
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
|
|
22498
22498
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
22499
22499
|
facet: facet.value,
|
|
22500
22500
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -22512,12 +22512,12 @@ and ensure you are accounting for this risk.
|
|
|
22512
22512
|
};
|
|
22513
22513
|
}
|
|
22514
22514
|
}));
|
|
22515
|
-
const _hoisted_1$
|
|
22516
|
-
const _hoisted_2$
|
|
22515
|
+
const _hoisted_1$H = { class: "lupa-search-result-facet-section" };
|
|
22516
|
+
const _hoisted_2$v = {
|
|
22517
22517
|
key: 0,
|
|
22518
22518
|
class: "lupa-facets-title"
|
|
22519
22519
|
};
|
|
22520
|
-
const _sfc_main$
|
|
22520
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
22521
22521
|
__name: "FacetList",
|
|
22522
22522
|
props: {
|
|
22523
22523
|
options: {},
|
|
@@ -22551,14 +22551,14 @@ and ensure you are accounting for this risk.
|
|
|
22551
22551
|
};
|
|
22552
22552
|
return (_ctx, _cache) => {
|
|
22553
22553
|
var _a;
|
|
22554
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22555
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22554
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
22555
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$v, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
22556
22556
|
createBaseVNode("div", {
|
|
22557
22557
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
22558
22558
|
}, [
|
|
22559
22559
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
22560
22560
|
var _a2;
|
|
22561
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22561
|
+
return openBlock(), createBlock(_sfc_main$N, {
|
|
22562
22562
|
key: facet.key,
|
|
22563
22563
|
facet,
|
|
22564
22564
|
currentFilters: currentFiltersValue.value,
|
|
@@ -22573,8 +22573,8 @@ and ensure you are accounting for this risk.
|
|
|
22573
22573
|
};
|
|
22574
22574
|
}
|
|
22575
22575
|
});
|
|
22576
|
-
const _hoisted_1$
|
|
22577
|
-
const _sfc_main$
|
|
22576
|
+
const _hoisted_1$G = ["onClick"];
|
|
22577
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
22578
22578
|
__name: "FacetsButton",
|
|
22579
22579
|
props: {
|
|
22580
22580
|
options: {}
|
|
@@ -22594,13 +22594,13 @@ and ensure you are accounting for this risk.
|
|
|
22594
22594
|
key: 0,
|
|
22595
22595
|
class: "lupa-facets-button-filter",
|
|
22596
22596
|
onClick: withModifiers(handleClick, ["stop"])
|
|
22597
|
-
}, toDisplayString(label.value), 9, _hoisted_1$
|
|
22597
|
+
}, toDisplayString(label.value), 9, _hoisted_1$G)) : createCommentVNode("", true);
|
|
22598
22598
|
};
|
|
22599
22599
|
}
|
|
22600
22600
|
});
|
|
22601
|
-
const _hoisted_1$
|
|
22602
|
-
const _hoisted_2$
|
|
22603
|
-
const _sfc_main$
|
|
22601
|
+
const _hoisted_1$F = { class: "lupa-search-result-facets" };
|
|
22602
|
+
const _hoisted_2$u = { class: "lupa-facets-filter-button-wrapper" };
|
|
22603
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
22604
22604
|
__name: "Facets",
|
|
22605
22605
|
props: {
|
|
22606
22606
|
options: {},
|
|
@@ -22683,8 +22683,8 @@ and ensure you are accounting for this risk.
|
|
|
22683
22683
|
emit2("filter");
|
|
22684
22684
|
};
|
|
22685
22685
|
return (_ctx, _cache) => {
|
|
22686
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22687
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
22686
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
22687
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$M, {
|
|
22688
22688
|
key: 0,
|
|
22689
22689
|
options: _ctx.options,
|
|
22690
22690
|
facets: regularFacets.value,
|
|
@@ -22694,8 +22694,8 @@ and ensure you are accounting for this risk.
|
|
|
22694
22694
|
onSelect: handleFacetSelect,
|
|
22695
22695
|
onClear: clear2
|
|
22696
22696
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
22697
|
-
createBaseVNode("div", _hoisted_2$
|
|
22698
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
22697
|
+
createBaseVNode("div", _hoisted_2$u, [
|
|
22698
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
22699
22699
|
key: 0,
|
|
22700
22700
|
options: _ctx.options,
|
|
22701
22701
|
onFilter: filter2
|
|
@@ -22705,11 +22705,11 @@ and ensure you are accounting for this risk.
|
|
|
22705
22705
|
};
|
|
22706
22706
|
}
|
|
22707
22707
|
});
|
|
22708
|
-
const _hoisted_1$
|
|
22708
|
+
const _hoisted_1$E = {
|
|
22709
22709
|
id: "lupa-search-result-filters",
|
|
22710
22710
|
class: "lupa-search-result-filters"
|
|
22711
22711
|
};
|
|
22712
|
-
const _sfc_main$
|
|
22712
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
22713
22713
|
__name: "SearchResultsFilters",
|
|
22714
22714
|
props: {
|
|
22715
22715
|
options: {},
|
|
@@ -22742,19 +22742,19 @@ and ensure you are accounting for this risk.
|
|
|
22742
22742
|
__expose({ fetch: fetch2 });
|
|
22743
22743
|
return (_ctx, _cache) => {
|
|
22744
22744
|
var _a;
|
|
22745
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22746
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
22745
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
22746
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$U, {
|
|
22747
22747
|
key: 0,
|
|
22748
22748
|
options: _ctx.options.currentFilters,
|
|
22749
22749
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
22750
22750
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
22751
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
22751
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$S, {
|
|
22752
22752
|
key: 1,
|
|
22753
22753
|
options: _ctx.options.categories,
|
|
22754
22754
|
ref_key: "categoryFilters",
|
|
22755
22755
|
ref: categoryFilters
|
|
22756
22756
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
22757
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
22757
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
|
|
22758
22758
|
key: 2,
|
|
22759
22759
|
options: _ctx.options.facets,
|
|
22760
22760
|
onFilter: filter2
|
|
@@ -22763,20 +22763,20 @@ and ensure you are accounting for this risk.
|
|
|
22763
22763
|
};
|
|
22764
22764
|
}
|
|
22765
22765
|
});
|
|
22766
|
-
const _hoisted_1$
|
|
22766
|
+
const _hoisted_1$D = {
|
|
22767
22767
|
key: 0,
|
|
22768
22768
|
class: "lupa-mobile-filter-sidebar"
|
|
22769
22769
|
};
|
|
22770
|
-
const _hoisted_2$
|
|
22771
|
-
const _hoisted_3$
|
|
22772
|
-
const _hoisted_4$
|
|
22773
|
-
const _hoisted_5$
|
|
22770
|
+
const _hoisted_2$t = ["onClick"];
|
|
22771
|
+
const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
|
|
22772
|
+
const _hoisted_4$h = { class: "lupa-sidebar-top" };
|
|
22773
|
+
const _hoisted_5$a = { class: "lupa-sidebar-title" };
|
|
22774
22774
|
const _hoisted_6$6 = {
|
|
22775
22775
|
key: 0,
|
|
22776
22776
|
class: "lupa-sidebar-filter-count"
|
|
22777
22777
|
};
|
|
22778
22778
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
22779
|
-
const _sfc_main$
|
|
22779
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
22780
22780
|
__name: "MobileFilterSidebar",
|
|
22781
22781
|
props: {
|
|
22782
22782
|
options: {}
|
|
@@ -22807,14 +22807,14 @@ and ensure you are accounting for this risk.
|
|
|
22807
22807
|
handleMobileToggle();
|
|
22808
22808
|
};
|
|
22809
22809
|
return (_ctx, _cache) => {
|
|
22810
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
22810
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
22811
22811
|
createBaseVNode("div", {
|
|
22812
22812
|
class: "lupa-sidebar-close",
|
|
22813
22813
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
22814
|
-
}, null, 8, _hoisted_2$
|
|
22815
|
-
createBaseVNode("div", _hoisted_3$
|
|
22816
|
-
createBaseVNode("div", _hoisted_4$
|
|
22817
|
-
createBaseVNode("div", _hoisted_5$
|
|
22814
|
+
}, null, 8, _hoisted_2$t),
|
|
22815
|
+
createBaseVNode("div", _hoisted_3$n, [
|
|
22816
|
+
createBaseVNode("div", _hoisted_4$h, [
|
|
22817
|
+
createBaseVNode("div", _hoisted_5$a, [
|
|
22818
22818
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
22819
22819
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
22820
22820
|
]),
|
|
@@ -22824,7 +22824,7 @@ and ensure you are accounting for this risk.
|
|
|
22824
22824
|
})
|
|
22825
22825
|
]),
|
|
22826
22826
|
createBaseVNode("div", _hoisted_7$4, [
|
|
22827
|
-
createVNode(_sfc_main$
|
|
22827
|
+
createVNode(_sfc_main$J, {
|
|
22828
22828
|
options: _ctx.options,
|
|
22829
22829
|
expandable: isActiveFiltersExpanded.value,
|
|
22830
22830
|
onFilter: filter2
|
|
@@ -22835,14 +22835,14 @@ and ensure you are accounting for this risk.
|
|
|
22835
22835
|
};
|
|
22836
22836
|
}
|
|
22837
22837
|
});
|
|
22838
|
-
const _hoisted_1$
|
|
22839
|
-
const _hoisted_2$
|
|
22840
|
-
const _hoisted_3$
|
|
22838
|
+
const _hoisted_1$C = { id: "lupa-search-results-breadcrumbs" };
|
|
22839
|
+
const _hoisted_2$s = ["href", "onClick"];
|
|
22840
|
+
const _hoisted_3$m = {
|
|
22841
22841
|
key: 1,
|
|
22842
22842
|
class: "lupa-search-results-breadcrumb-text"
|
|
22843
22843
|
};
|
|
22844
|
-
const _hoisted_4$
|
|
22845
|
-
const _sfc_main$
|
|
22844
|
+
const _hoisted_4$g = { key: 2 };
|
|
22845
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
22846
22846
|
__name: "SearchResultsBreadcrumbs",
|
|
22847
22847
|
props: {
|
|
22848
22848
|
breadcrumbs: {}
|
|
@@ -22867,7 +22867,7 @@ and ensure you are accounting for this risk.
|
|
|
22867
22867
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
22868
22868
|
};
|
|
22869
22869
|
return (_ctx, _cache) => {
|
|
22870
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22870
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
22871
22871
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
22872
22872
|
return openBlock(), createElementBlock("span", {
|
|
22873
22873
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -22881,19 +22881,19 @@ and ensure you are accounting for this risk.
|
|
|
22881
22881
|
var _a;
|
|
22882
22882
|
return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
22883
22883
|
}
|
|
22884
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
22885
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
22884
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
22885
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, " / ")) : createCommentVNode("", true)
|
|
22886
22886
|
]);
|
|
22887
22887
|
}), 128))
|
|
22888
22888
|
]);
|
|
22889
22889
|
};
|
|
22890
22890
|
}
|
|
22891
22891
|
});
|
|
22892
|
-
const _hoisted_1$
|
|
22892
|
+
const _hoisted_1$B = {
|
|
22893
22893
|
id: "lupa-search-result-filters",
|
|
22894
22894
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
22895
22895
|
};
|
|
22896
|
-
const _sfc_main$
|
|
22896
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
22897
22897
|
__name: "FiltersTopDropdown",
|
|
22898
22898
|
props: {
|
|
22899
22899
|
options: {}
|
|
@@ -22905,8 +22905,8 @@ and ensure you are accounting for this risk.
|
|
|
22905
22905
|
};
|
|
22906
22906
|
return (_ctx, _cache) => {
|
|
22907
22907
|
var _a;
|
|
22908
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22909
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
22908
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
22909
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
|
|
22910
22910
|
key: 0,
|
|
22911
22911
|
options: _ctx.options.facets,
|
|
22912
22912
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -22917,8 +22917,8 @@ and ensure you are accounting for this risk.
|
|
|
22917
22917
|
};
|
|
22918
22918
|
}
|
|
22919
22919
|
});
|
|
22920
|
-
const _hoisted_1$
|
|
22921
|
-
const _sfc_main$
|
|
22920
|
+
const _hoisted_1$A = { id: "lupa-search-results-layout-selection" };
|
|
22921
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
22922
22922
|
__name: "SearchResultsLayoutSelection",
|
|
22923
22923
|
setup(__props) {
|
|
22924
22924
|
const searchResultStore = useSearchResultStore();
|
|
@@ -22929,7 +22929,7 @@ and ensure you are accounting for this risk.
|
|
|
22929
22929
|
searchResultStore.setLayout(layout2);
|
|
22930
22930
|
};
|
|
22931
22931
|
return (_ctx, _cache) => {
|
|
22932
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22932
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
22933
22933
|
createBaseVNode("div", {
|
|
22934
22934
|
class: normalizeClass([
|
|
22935
22935
|
"lupa-layout-selection-grid",
|
|
@@ -22951,11 +22951,11 @@ and ensure you are accounting for this risk.
|
|
|
22951
22951
|
};
|
|
22952
22952
|
}
|
|
22953
22953
|
});
|
|
22954
|
-
const _hoisted_1$
|
|
22954
|
+
const _hoisted_1$z = {
|
|
22955
22955
|
key: 0,
|
|
22956
22956
|
class: "lupa-mobile-toggle-filter-count"
|
|
22957
22957
|
};
|
|
22958
|
-
const _sfc_main$
|
|
22958
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
22959
22959
|
__name: "SearchResultsMobileToggle",
|
|
22960
22960
|
props: {
|
|
22961
22961
|
label: {},
|
|
@@ -22973,26 +22973,26 @@ and ensure you are accounting for this risk.
|
|
|
22973
22973
|
onClick: handleMobileToggle
|
|
22974
22974
|
}, [
|
|
22975
22975
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
22976
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
22976
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$z, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
22977
22977
|
], 2);
|
|
22978
22978
|
};
|
|
22979
22979
|
}
|
|
22980
22980
|
});
|
|
22981
|
-
const _hoisted_1$
|
|
22981
|
+
const _hoisted_1$y = {
|
|
22982
22982
|
key: 0,
|
|
22983
22983
|
id: "lupa-search-results-page-select",
|
|
22984
22984
|
"data-cy": "lupa-search-results-page-select"
|
|
22985
22985
|
};
|
|
22986
|
-
const _hoisted_2$
|
|
22986
|
+
const _hoisted_2$r = {
|
|
22987
22987
|
key: 0,
|
|
22988
22988
|
class: "lupa-page-number-separator"
|
|
22989
22989
|
};
|
|
22990
|
-
const _hoisted_3$
|
|
22991
|
-
const _hoisted_4$
|
|
22990
|
+
const _hoisted_3$l = ["onClick"];
|
|
22991
|
+
const _hoisted_4$f = {
|
|
22992
22992
|
key: 0,
|
|
22993
22993
|
class: "lupa-page-number-separator"
|
|
22994
22994
|
};
|
|
22995
|
-
const _sfc_main$
|
|
22995
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
22996
22996
|
__name: "SearchResultsPageSelect",
|
|
22997
22997
|
props: {
|
|
22998
22998
|
lastPageLabel: {},
|
|
@@ -23069,7 +23069,7 @@ and ensure you are accounting for this risk.
|
|
|
23069
23069
|
}
|
|
23070
23070
|
};
|
|
23071
23071
|
return (_ctx, _cache) => {
|
|
23072
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
23072
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
23073
23073
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
23074
23074
|
key: 0,
|
|
23075
23075
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -23080,7 +23080,7 @@ and ensure you are accounting for this risk.
|
|
|
23080
23080
|
class: "lupa-page-number lupa-page-number-first",
|
|
23081
23081
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
23082
23082
|
}, " 1 "),
|
|
23083
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
23083
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, "...")) : createCommentVNode("", true)
|
|
23084
23084
|
], 64)) : createCommentVNode("", true),
|
|
23085
23085
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
23086
23086
|
return openBlock(), createElementBlock("div", {
|
|
@@ -23091,10 +23091,10 @@ and ensure you are accounting for this risk.
|
|
|
23091
23091
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
23092
23092
|
]),
|
|
23093
23093
|
"data-cy": "lupa-page-number"
|
|
23094
|
-
}, toDisplayString(page), 11, _hoisted_3$
|
|
23094
|
+
}, toDisplayString(page), 11, _hoisted_3$l);
|
|
23095
23095
|
}), 128)),
|
|
23096
23096
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
23097
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23097
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
|
|
23098
23098
|
createBaseVNode("div", {
|
|
23099
23099
|
class: "lupa-page-number lupa-page-number-last",
|
|
23100
23100
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -23113,15 +23113,15 @@ and ensure you are accounting for this risk.
|
|
|
23113
23113
|
};
|
|
23114
23114
|
}
|
|
23115
23115
|
});
|
|
23116
|
-
const _hoisted_1$
|
|
23116
|
+
const _hoisted_1$x = {
|
|
23117
23117
|
id: "lupa-search-results-page-size",
|
|
23118
23118
|
"data-cy": "lupa-search-results-page-size"
|
|
23119
23119
|
};
|
|
23120
|
-
const _hoisted_2$
|
|
23121
|
-
const _hoisted_3$
|
|
23122
|
-
const _hoisted_4$
|
|
23123
|
-
const _hoisted_5$
|
|
23124
|
-
const _sfc_main$
|
|
23120
|
+
const _hoisted_2$q = { id: "lupa-select" };
|
|
23121
|
+
const _hoisted_3$k = { class: "lupa-select-label" };
|
|
23122
|
+
const _hoisted_4$e = ["aria-label"];
|
|
23123
|
+
const _hoisted_5$9 = ["value"];
|
|
23124
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
23125
23125
|
__name: "SearchResultsPageSize",
|
|
23126
23126
|
props: {
|
|
23127
23127
|
labels: {},
|
|
@@ -23149,9 +23149,9 @@ and ensure you are accounting for this risk.
|
|
|
23149
23149
|
});
|
|
23150
23150
|
};
|
|
23151
23151
|
return (_ctx, _cache) => {
|
|
23152
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23153
|
-
createBaseVNode("div", _hoisted_2$
|
|
23154
|
-
createBaseVNode("label", _hoisted_3$
|
|
23152
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
23153
|
+
createBaseVNode("div", _hoisted_2$q, [
|
|
23154
|
+
createBaseVNode("label", _hoisted_3$k, toDisplayString(label.value), 1),
|
|
23155
23155
|
createBaseVNode("select", {
|
|
23156
23156
|
class: "lupa-select-dropdown",
|
|
23157
23157
|
"aria-label": label.value,
|
|
@@ -23164,23 +23164,23 @@ and ensure you are accounting for this risk.
|
|
|
23164
23164
|
return openBlock(), createElementBlock("option", {
|
|
23165
23165
|
key: option,
|
|
23166
23166
|
value: option
|
|
23167
|
-
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$
|
|
23167
|
+
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$9);
|
|
23168
23168
|
}), 128))
|
|
23169
|
-
], 40, _hoisted_4$
|
|
23169
|
+
], 40, _hoisted_4$e)
|
|
23170
23170
|
])
|
|
23171
23171
|
]);
|
|
23172
23172
|
};
|
|
23173
23173
|
}
|
|
23174
23174
|
});
|
|
23175
|
-
const _hoisted_1$
|
|
23175
|
+
const _hoisted_1$w = {
|
|
23176
23176
|
id: "lupa-search-results-sort",
|
|
23177
23177
|
class: "lupa-search-results-sort"
|
|
23178
23178
|
};
|
|
23179
|
-
const _hoisted_2$
|
|
23180
|
-
const _hoisted_3$
|
|
23181
|
-
const _hoisted_4$
|
|
23182
|
-
const _hoisted_5$
|
|
23183
|
-
const _sfc_main$
|
|
23179
|
+
const _hoisted_2$p = { id: "lupa-select" };
|
|
23180
|
+
const _hoisted_3$j = { class: "lupa-select-label" };
|
|
23181
|
+
const _hoisted_4$d = ["aria-label"];
|
|
23182
|
+
const _hoisted_5$8 = ["value"];
|
|
23183
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
23184
23184
|
__name: "SearchResultsSort",
|
|
23185
23185
|
props: {
|
|
23186
23186
|
options: {},
|
|
@@ -23229,9 +23229,9 @@ and ensure you are accounting for this risk.
|
|
|
23229
23229
|
previousKey.value = selectedKey.value;
|
|
23230
23230
|
};
|
|
23231
23231
|
return (_ctx, _cache) => {
|
|
23232
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23233
|
-
createBaseVNode("div", _hoisted_2$
|
|
23234
|
-
createBaseVNode("label", _hoisted_3$
|
|
23232
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
23233
|
+
createBaseVNode("div", _hoisted_2$p, [
|
|
23234
|
+
createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.options.label), 1),
|
|
23235
23235
|
withDirectives(createBaseVNode("select", {
|
|
23236
23236
|
class: "lupa-select-dropdown",
|
|
23237
23237
|
"aria-label": _ctx.options.label,
|
|
@@ -23244,9 +23244,9 @@ and ensure you are accounting for this risk.
|
|
|
23244
23244
|
return openBlock(), createElementBlock("option", {
|
|
23245
23245
|
key: option.key,
|
|
23246
23246
|
value: option.key
|
|
23247
|
-
}, toDisplayString(option.label), 9, _hoisted_5$
|
|
23247
|
+
}, toDisplayString(option.label), 9, _hoisted_5$8);
|
|
23248
23248
|
}), 128))
|
|
23249
|
-
], 40, _hoisted_4$
|
|
23249
|
+
], 40, _hoisted_4$d), [
|
|
23250
23250
|
[vModelSelect, selectedKey.value]
|
|
23251
23251
|
])
|
|
23252
23252
|
])
|
|
@@ -23254,14 +23254,14 @@ and ensure you are accounting for this risk.
|
|
|
23254
23254
|
};
|
|
23255
23255
|
}
|
|
23256
23256
|
});
|
|
23257
|
-
const _hoisted_1$
|
|
23258
|
-
const _hoisted_2$
|
|
23257
|
+
const _hoisted_1$v = { class: "lupa-toolbar-left" };
|
|
23258
|
+
const _hoisted_2$o = {
|
|
23259
23259
|
key: 0,
|
|
23260
23260
|
class: "lupa-toolbar-right-title"
|
|
23261
23261
|
};
|
|
23262
|
-
const _hoisted_3$
|
|
23263
|
-
const _hoisted_4$
|
|
23264
|
-
const _hoisted_5$
|
|
23262
|
+
const _hoisted_3$i = { key: 2 };
|
|
23263
|
+
const _hoisted_4$c = { key: 4 };
|
|
23264
|
+
const _hoisted_5$7 = { key: 6 };
|
|
23265
23265
|
const _hoisted_6$5 = { class: "lupa-toolbar-right" };
|
|
23266
23266
|
const _hoisted_7$3 = {
|
|
23267
23267
|
key: 0,
|
|
@@ -23269,7 +23269,7 @@ and ensure you are accounting for this risk.
|
|
|
23269
23269
|
};
|
|
23270
23270
|
const _hoisted_8 = { key: 2 };
|
|
23271
23271
|
const _hoisted_9 = { key: 4 };
|
|
23272
|
-
const _sfc_main$
|
|
23272
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
23273
23273
|
__name: "SearchResultsToolbar",
|
|
23274
23274
|
props: {
|
|
23275
23275
|
options: {},
|
|
@@ -23376,34 +23376,34 @@ and ensure you are accounting for this risk.
|
|
|
23376
23376
|
id: "lupa-search-results-toolbar",
|
|
23377
23377
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
23378
23378
|
}, [
|
|
23379
|
-
createBaseVNode("div", _hoisted_1$
|
|
23380
|
-
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
23381
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
23382
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
23379
|
+
createBaseVNode("div", _hoisted_1$v, [
|
|
23380
|
+
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$o, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
23381
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$F, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$i)),
|
|
23382
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$X, {
|
|
23383
23383
|
key: 3,
|
|
23384
23384
|
label: searchSummaryLabel.value,
|
|
23385
23385
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
23386
23386
|
onClear: handleClearAll
|
|
23387
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23388
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
23387
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
|
|
23388
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$D, {
|
|
23389
23389
|
key: 5,
|
|
23390
23390
|
options: paginationOptions.value.pageSelect,
|
|
23391
23391
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
23392
23392
|
"first-page-label": paginationOptions.value.labels.showLess
|
|
23393
|
-
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$
|
|
23393
|
+
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$7))
|
|
23394
23394
|
]),
|
|
23395
23395
|
createBaseVNode("div", _hoisted_6$5, [
|
|
23396
23396
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
23397
|
-
createVNode(_sfc_main$
|
|
23397
|
+
createVNode(_sfc_main$E, {
|
|
23398
23398
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
23399
23399
|
"show-filter-count": showMobileFilterCount.value
|
|
23400
23400
|
}, null, 8, ["label", "show-filter-count"]),
|
|
23401
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
23401
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$C, {
|
|
23402
23402
|
key: 1,
|
|
23403
23403
|
options: paginationOptions.value.pageSize,
|
|
23404
23404
|
labels: paginationOptions.value.labels
|
|
23405
23405
|
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
23406
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
23406
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$B, {
|
|
23407
23407
|
key: 3,
|
|
23408
23408
|
options: sortOptions.value,
|
|
23409
23409
|
callbacks: callbacks.value
|
|
@@ -23413,7 +23413,7 @@ and ensure you are accounting for this risk.
|
|
|
23413
23413
|
};
|
|
23414
23414
|
}
|
|
23415
23415
|
});
|
|
23416
|
-
const _sfc_main$
|
|
23416
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
23417
23417
|
__name: "SearchResultsProductImage",
|
|
23418
23418
|
props: {
|
|
23419
23419
|
item: {},
|
|
@@ -23421,7 +23421,7 @@ and ensure you are accounting for this risk.
|
|
|
23421
23421
|
},
|
|
23422
23422
|
setup(__props) {
|
|
23423
23423
|
return (_ctx, _cache) => {
|
|
23424
|
-
return openBlock(), createBlock(_sfc_main$
|
|
23424
|
+
return openBlock(), createBlock(_sfc_main$1j, {
|
|
23425
23425
|
item: _ctx.item,
|
|
23426
23426
|
options: _ctx.options,
|
|
23427
23427
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -23430,16 +23430,16 @@ and ensure you are accounting for this risk.
|
|
|
23430
23430
|
};
|
|
23431
23431
|
}
|
|
23432
23432
|
});
|
|
23433
|
-
const _hoisted_1$
|
|
23434
|
-
const _hoisted_2$
|
|
23435
|
-
const _hoisted_3$
|
|
23436
|
-
const _hoisted_4$
|
|
23437
|
-
const _hoisted_5$
|
|
23433
|
+
const _hoisted_1$u = ["title", "innerHTML"];
|
|
23434
|
+
const _hoisted_2$n = ["title"];
|
|
23435
|
+
const _hoisted_3$h = ["href", "innerHTML"];
|
|
23436
|
+
const _hoisted_4$b = ["title"];
|
|
23437
|
+
const _hoisted_5$6 = {
|
|
23438
23438
|
key: 0,
|
|
23439
23439
|
class: "lupa-search-results-product-title-text"
|
|
23440
23440
|
};
|
|
23441
23441
|
const _hoisted_6$4 = ["href"];
|
|
23442
|
-
const _sfc_main$
|
|
23442
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
23443
23443
|
__name: "SearchResultsProductTitle",
|
|
23444
23444
|
props: {
|
|
23445
23445
|
item: {},
|
|
@@ -23476,7 +23476,7 @@ and ensure you are accounting for this risk.
|
|
|
23476
23476
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23477
23477
|
title: sanitizedTitle.value,
|
|
23478
23478
|
innerHTML: sanitizedTitle.value
|
|
23479
|
-
}, null, 12, _hoisted_1$
|
|
23479
|
+
}, null, 12, _hoisted_1$u)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
|
|
23480
23480
|
key: 1,
|
|
23481
23481
|
class: "lupa-search-results-product-title",
|
|
23482
23482
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -23487,26 +23487,26 @@ and ensure you are accounting for this risk.
|
|
|
23487
23487
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
23488
23488
|
innerHTML: sanitizedTitle.value,
|
|
23489
23489
|
onClick: handleNavigation
|
|
23490
|
-
}, null, 8, _hoisted_3$
|
|
23491
|
-
], 12, _hoisted_2$
|
|
23490
|
+
}, null, 8, _hoisted_3$h)
|
|
23491
|
+
], 12, _hoisted_2$n)) : (openBlock(), createElementBlock("div", {
|
|
23492
23492
|
key: 2,
|
|
23493
23493
|
class: "lupa-search-results-product-title",
|
|
23494
23494
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23495
23495
|
title: title.value
|
|
23496
23496
|
}, [
|
|
23497
|
-
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
23497
|
+
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$6, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
23498
23498
|
_ctx.options.link ? (openBlock(), createElementBlock("a", {
|
|
23499
23499
|
key: 1,
|
|
23500
23500
|
href: _ctx.link,
|
|
23501
23501
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
23502
23502
|
onClick: handleNavigation
|
|
23503
23503
|
}, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
|
|
23504
|
-
], 12, _hoisted_4$
|
|
23504
|
+
], 12, _hoisted_4$b));
|
|
23505
23505
|
};
|
|
23506
23506
|
}
|
|
23507
23507
|
});
|
|
23508
|
-
const _hoisted_1$
|
|
23509
|
-
const _sfc_main$
|
|
23508
|
+
const _hoisted_1$t = ["innerHTML"];
|
|
23509
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
23510
23510
|
__name: "SearchResultsProductDescription",
|
|
23511
23511
|
props: {
|
|
23512
23512
|
item: {},
|
|
@@ -23533,7 +23533,7 @@ and ensure you are accounting for this risk.
|
|
|
23533
23533
|
class: "lupa-search-results-product-description",
|
|
23534
23534
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23535
23535
|
innerHTML: sanitizedDescription.value
|
|
23536
|
-
}, null, 12, _hoisted_1$
|
|
23536
|
+
}, null, 12, _hoisted_1$t)) : (openBlock(), createElementBlock("div", {
|
|
23537
23537
|
key: 1,
|
|
23538
23538
|
class: "lupa-search-results-product-description",
|
|
23539
23539
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -23541,15 +23541,15 @@ and ensure you are accounting for this risk.
|
|
|
23541
23541
|
};
|
|
23542
23542
|
}
|
|
23543
23543
|
});
|
|
23544
|
-
const _hoisted_1$
|
|
23545
|
-
const _hoisted_2$
|
|
23546
|
-
const _hoisted_3$
|
|
23547
|
-
const _hoisted_4$
|
|
23548
|
-
const _hoisted_5$
|
|
23544
|
+
const _hoisted_1$s = { id: "lupa-search-results-rating" };
|
|
23545
|
+
const _hoisted_2$m = { class: "lupa-ratings" };
|
|
23546
|
+
const _hoisted_3$g = { class: "lupa-ratings-base" };
|
|
23547
|
+
const _hoisted_4$a = ["innerHTML"];
|
|
23548
|
+
const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
|
|
23549
23549
|
const _hoisted_6$3 = ["innerHTML"];
|
|
23550
23550
|
const _hoisted_7$2 = ["href"];
|
|
23551
23551
|
const STAR_COUNT = 5;
|
|
23552
|
-
const _sfc_main$
|
|
23552
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
23553
23553
|
__name: "SearchResultsProductRating",
|
|
23554
23554
|
props: {
|
|
23555
23555
|
item: {},
|
|
@@ -23580,18 +23580,18 @@ and ensure you are accounting for this risk.
|
|
|
23580
23580
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
23581
23581
|
});
|
|
23582
23582
|
return (_ctx, _cache) => {
|
|
23583
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23584
|
-
createBaseVNode("div", _hoisted_2$
|
|
23585
|
-
createBaseVNode("div", _hoisted_3$
|
|
23583
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
23584
|
+
createBaseVNode("div", _hoisted_2$m, [
|
|
23585
|
+
createBaseVNode("div", _hoisted_3$g, [
|
|
23586
23586
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
23587
23587
|
return openBlock(), createElementBlock("div", {
|
|
23588
23588
|
key: index,
|
|
23589
23589
|
innerHTML: star,
|
|
23590
23590
|
class: "lupa-rating lupa-rating-not-highlighted"
|
|
23591
|
-
}, null, 8, _hoisted_4$
|
|
23591
|
+
}, null, 8, _hoisted_4$a);
|
|
23592
23592
|
}), 128))
|
|
23593
23593
|
]),
|
|
23594
|
-
createBaseVNode("div", _hoisted_5$
|
|
23594
|
+
createBaseVNode("div", _hoisted_5$5, [
|
|
23595
23595
|
createBaseVNode("div", {
|
|
23596
23596
|
class: "lupa-ratings-highlighted",
|
|
23597
23597
|
style: normalizeStyle({ width: ratingPercentage.value + "%" })
|
|
@@ -23614,11 +23614,11 @@ and ensure you are accounting for this risk.
|
|
|
23614
23614
|
};
|
|
23615
23615
|
}
|
|
23616
23616
|
});
|
|
23617
|
-
const _hoisted_1$
|
|
23617
|
+
const _hoisted_1$r = {
|
|
23618
23618
|
class: "lupa-search-results-product-regular-price",
|
|
23619
23619
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
23620
23620
|
};
|
|
23621
|
-
const _sfc_main$
|
|
23621
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
23622
23622
|
__name: "SearchResultsProductRegularPrice",
|
|
23623
23623
|
props: {
|
|
23624
23624
|
item: {},
|
|
@@ -23636,11 +23636,11 @@ and ensure you are accounting for this risk.
|
|
|
23636
23636
|
);
|
|
23637
23637
|
});
|
|
23638
23638
|
return (_ctx, _cache) => {
|
|
23639
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23639
|
+
return openBlock(), createElementBlock("div", _hoisted_1$r, toDisplayString(price.value), 1);
|
|
23640
23640
|
};
|
|
23641
23641
|
}
|
|
23642
23642
|
});
|
|
23643
|
-
const _sfc_main$
|
|
23643
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
23644
23644
|
__name: "SearchResultsProductPrice",
|
|
23645
23645
|
props: {
|
|
23646
23646
|
item: {},
|
|
@@ -23670,10 +23670,10 @@ and ensure you are accounting for this risk.
|
|
|
23670
23670
|
};
|
|
23671
23671
|
}
|
|
23672
23672
|
});
|
|
23673
|
-
const _hoisted_1$
|
|
23674
|
-
const _hoisted_2$
|
|
23675
|
-
const _hoisted_3$
|
|
23676
|
-
const _sfc_main$
|
|
23673
|
+
const _hoisted_1$q = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
23674
|
+
const _hoisted_2$l = { class: "lupa-search-results-product-addtocart" };
|
|
23675
|
+
const _hoisted_3$f = ["onClick", "disabled"];
|
|
23676
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
23677
23677
|
__name: "SearchResultsProductAddToCart",
|
|
23678
23678
|
props: {
|
|
23679
23679
|
item: {},
|
|
@@ -23706,25 +23706,25 @@ and ensure you are accounting for this risk.
|
|
|
23706
23706
|
loading.value = false;
|
|
23707
23707
|
});
|
|
23708
23708
|
return (_ctx, _cache) => {
|
|
23709
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23710
|
-
createBaseVNode("div", _hoisted_2$
|
|
23709
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
23710
|
+
createBaseVNode("div", _hoisted_2$l, [
|
|
23711
23711
|
createBaseVNode("button", {
|
|
23712
23712
|
onClick: withModifiers(handleClick, ["stop"]),
|
|
23713
23713
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
23714
23714
|
"data-cy": "lupa-add-to-cart",
|
|
23715
23715
|
disabled: !inStockValue.value || loading.value
|
|
23716
|
-
}, toDisplayString(label.value), 11, _hoisted_3$
|
|
23716
|
+
}, toDisplayString(label.value), 11, _hoisted_3$f)
|
|
23717
23717
|
])
|
|
23718
23718
|
]);
|
|
23719
23719
|
};
|
|
23720
23720
|
}
|
|
23721
23721
|
});
|
|
23722
|
-
const _hoisted_1$
|
|
23723
|
-
const _hoisted_2$
|
|
23724
|
-
const _hoisted_3$
|
|
23725
|
-
const _hoisted_4$
|
|
23726
|
-
const _hoisted_5$
|
|
23727
|
-
const _sfc_main$
|
|
23722
|
+
const _hoisted_1$p = ["innerHTML"];
|
|
23723
|
+
const _hoisted_2$k = { key: 0 };
|
|
23724
|
+
const _hoisted_3$e = { key: 1 };
|
|
23725
|
+
const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
|
|
23726
|
+
const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
|
|
23727
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
23728
23728
|
__name: "SearchResultsProductCustom",
|
|
23729
23729
|
props: {
|
|
23730
23730
|
item: {},
|
|
@@ -23762,20 +23762,20 @@ and ensure you are accounting for this risk.
|
|
|
23762
23762
|
key: 0,
|
|
23763
23763
|
class: className.value,
|
|
23764
23764
|
innerHTML: text.value
|
|
23765
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
23765
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$p)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
23766
23766
|
key: 1,
|
|
23767
23767
|
class: className.value
|
|
23768
23768
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
23769
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
23770
|
-
createBaseVNode("div", _hoisted_4$
|
|
23771
|
-
createBaseVNode("div", _hoisted_5$
|
|
23769
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$k, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
|
|
23770
|
+
createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
|
|
23771
|
+
createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
|
|
23772
23772
|
]))
|
|
23773
23773
|
], 16));
|
|
23774
23774
|
};
|
|
23775
23775
|
}
|
|
23776
23776
|
});
|
|
23777
|
-
const _hoisted_1$
|
|
23778
|
-
const _sfc_main$
|
|
23777
|
+
const _hoisted_1$o = ["innerHTML"];
|
|
23778
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
23779
23779
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
23780
23780
|
props: {
|
|
23781
23781
|
item: {},
|
|
@@ -23806,15 +23806,15 @@ and ensure you are accounting for this risk.
|
|
|
23806
23806
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
23807
23807
|
class: className.value,
|
|
23808
23808
|
innerHTML: text.value
|
|
23809
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
23809
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$o);
|
|
23810
23810
|
};
|
|
23811
23811
|
}
|
|
23812
23812
|
});
|
|
23813
|
-
const _hoisted_1$
|
|
23814
|
-
const _hoisted_2$
|
|
23815
|
-
const _hoisted_3$
|
|
23816
|
-
const _hoisted_4$
|
|
23817
|
-
const _sfc_main$
|
|
23813
|
+
const _hoisted_1$n = { id: "lupa-search-results-rating" };
|
|
23814
|
+
const _hoisted_2$j = ["innerHTML"];
|
|
23815
|
+
const _hoisted_3$d = { class: "lupa-ratings" };
|
|
23816
|
+
const _hoisted_4$8 = ["href"];
|
|
23817
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
23818
23818
|
__name: "SearchResultsProductSingleStarRating",
|
|
23819
23819
|
props: {
|
|
23820
23820
|
item: {},
|
|
@@ -23842,35 +23842,35 @@ and ensure you are accounting for this risk.
|
|
|
23842
23842
|
return RATING_STAR_HTML;
|
|
23843
23843
|
});
|
|
23844
23844
|
return (_ctx, _cache) => {
|
|
23845
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23845
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
23846
23846
|
createBaseVNode("div", {
|
|
23847
23847
|
innerHTML: star.value,
|
|
23848
23848
|
class: "lupa-rating lupa-rating-highlighted"
|
|
23849
|
-
}, null, 8, _hoisted_2$
|
|
23850
|
-
createBaseVNode("div", _hoisted_3$
|
|
23849
|
+
}, null, 8, _hoisted_2$j),
|
|
23850
|
+
createBaseVNode("div", _hoisted_3$d, toDisplayString(rating.value), 1),
|
|
23851
23851
|
createBaseVNode("a", {
|
|
23852
23852
|
href: ratingLink.value,
|
|
23853
23853
|
class: "lupa-total-ratings"
|
|
23854
|
-
}, toDisplayString(totalRatings.value), 9, _hoisted_4$
|
|
23854
|
+
}, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
|
|
23855
23855
|
]);
|
|
23856
23856
|
};
|
|
23857
23857
|
}
|
|
23858
23858
|
});
|
|
23859
23859
|
const __default__ = {
|
|
23860
23860
|
components: {
|
|
23861
|
-
SearchResultsProductImage: _sfc_main$
|
|
23862
|
-
SearchResultsProductTitle: _sfc_main$
|
|
23863
|
-
SearchResultsProductDescription: _sfc_main$
|
|
23864
|
-
SearchResultsProductRating: _sfc_main$
|
|
23865
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
23866
|
-
SearchResultsProductPrice: _sfc_main$
|
|
23867
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
23868
|
-
SearchResultsProductCustom: _sfc_main$
|
|
23869
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
23870
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
23871
|
-
}
|
|
23872
|
-
};
|
|
23873
|
-
const _sfc_main$
|
|
23861
|
+
SearchResultsProductImage: _sfc_main$z,
|
|
23862
|
+
SearchResultsProductTitle: _sfc_main$y,
|
|
23863
|
+
SearchResultsProductDescription: _sfc_main$x,
|
|
23864
|
+
SearchResultsProductRating: _sfc_main$w,
|
|
23865
|
+
SearchResultsProductRegularPrice: _sfc_main$v,
|
|
23866
|
+
SearchResultsProductPrice: _sfc_main$u,
|
|
23867
|
+
SearchResultsProductAddToCart: _sfc_main$t,
|
|
23868
|
+
SearchResultsProductCustom: _sfc_main$s,
|
|
23869
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$r,
|
|
23870
|
+
SearchResultsProductSingleStarRating: _sfc_main$q
|
|
23871
|
+
}
|
|
23872
|
+
};
|
|
23873
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
23874
23874
|
__name: "SearchResultsProductCardElement",
|
|
23875
23875
|
props: {
|
|
23876
23876
|
item: {},
|
|
@@ -23946,13 +23946,13 @@ and ensure you are accounting for this risk.
|
|
|
23946
23946
|
};
|
|
23947
23947
|
}
|
|
23948
23948
|
}));
|
|
23949
|
-
const _hoisted_1$
|
|
23950
|
-
const _hoisted_2$
|
|
23949
|
+
const _hoisted_1$m = ["href"];
|
|
23950
|
+
const _hoisted_2$i = {
|
|
23951
23951
|
key: 0,
|
|
23952
23952
|
class: "lupa-out-of-stock"
|
|
23953
23953
|
};
|
|
23954
|
-
const _hoisted_3$
|
|
23955
|
-
const _sfc_main$
|
|
23954
|
+
const _hoisted_3$c = { class: "lupa-search-result-product-details-section" };
|
|
23955
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
23956
23956
|
__name: "SearchResultsProductCard",
|
|
23957
23957
|
props: {
|
|
23958
23958
|
product: {},
|
|
@@ -24104,7 +24104,7 @@ and ensure you are accounting for this risk.
|
|
|
24104
24104
|
"data-cy": "lupa-search-result-product-card",
|
|
24105
24105
|
class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
|
|
24106
24106
|
}, customDocumentHtmlAttributes.value, { onClick: handleClick }), [
|
|
24107
|
-
createVNode(_sfc_main$
|
|
24107
|
+
createVNode(_sfc_main$14, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
24108
24108
|
createBaseVNode("div", {
|
|
24109
24109
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
24110
24110
|
}, [
|
|
@@ -24114,7 +24114,7 @@ and ensure you are accounting for this risk.
|
|
|
24114
24114
|
onClick: handleNavigation
|
|
24115
24115
|
}, [
|
|
24116
24116
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
24117
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24117
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
24118
24118
|
class: "lupa-search-results-product-element",
|
|
24119
24119
|
item: _ctx.product,
|
|
24120
24120
|
element,
|
|
@@ -24125,16 +24125,16 @@ and ensure you are accounting for this risk.
|
|
|
24125
24125
|
onProductEvent: handleProductEvent
|
|
24126
24126
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
24127
24127
|
}), 128)),
|
|
24128
|
-
createVNode(_sfc_main$
|
|
24128
|
+
createVNode(_sfc_main$14, {
|
|
24129
24129
|
options: badgesOptions.value,
|
|
24130
24130
|
position: "image",
|
|
24131
24131
|
class: "lupa-image-badges"
|
|
24132
24132
|
}, null, 8, ["options"]),
|
|
24133
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
24134
|
-
], 8, _hoisted_1$
|
|
24135
|
-
createBaseVNode("div", _hoisted_3$
|
|
24133
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
24134
|
+
], 8, _hoisted_1$m),
|
|
24135
|
+
createBaseVNode("div", _hoisted_3$c, [
|
|
24136
24136
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
24137
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24137
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
24138
24138
|
class: "lupa-search-results-product-element",
|
|
24139
24139
|
item: _ctx.product,
|
|
24140
24140
|
element,
|
|
@@ -24152,7 +24152,7 @@ and ensure you are accounting for this risk.
|
|
|
24152
24152
|
class: normalizeClass("lupa-element-group-" + group)
|
|
24153
24153
|
}, [
|
|
24154
24154
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
24155
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24155
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
24156
24156
|
class: "lupa-search-results-product-element",
|
|
24157
24157
|
item: _ctx.product,
|
|
24158
24158
|
element,
|
|
@@ -24170,23 +24170,23 @@ and ensure you are accounting for this risk.
|
|
|
24170
24170
|
};
|
|
24171
24171
|
}
|
|
24172
24172
|
});
|
|
24173
|
-
const _hoisted_1$
|
|
24173
|
+
const _hoisted_1$l = {
|
|
24174
24174
|
id: "lupa-search-results-similar-queries",
|
|
24175
24175
|
"data-cy": "lupa-search-results-similar-queries"
|
|
24176
24176
|
};
|
|
24177
|
-
const _hoisted_2$
|
|
24178
|
-
const _hoisted_3$
|
|
24177
|
+
const _hoisted_2$h = { class: "lupa-similar-queries-label" };
|
|
24178
|
+
const _hoisted_3$b = {
|
|
24179
24179
|
class: "lupa-similar-query-label",
|
|
24180
24180
|
"data-cy": "lupa-similar-query-label"
|
|
24181
24181
|
};
|
|
24182
|
-
const _hoisted_4$
|
|
24183
|
-
const _hoisted_5$
|
|
24182
|
+
const _hoisted_4$7 = ["onClick"];
|
|
24183
|
+
const _hoisted_5$3 = ["innerHTML"];
|
|
24184
24184
|
const _hoisted_6$2 = { key: 0 };
|
|
24185
24185
|
const _hoisted_7$1 = {
|
|
24186
24186
|
class: "lupa-products",
|
|
24187
24187
|
"data-cy": "lupa-products"
|
|
24188
24188
|
};
|
|
24189
|
-
const _sfc_main$
|
|
24189
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
24190
24190
|
__name: "SearchResultsSimilarQueries",
|
|
24191
24191
|
props: {
|
|
24192
24192
|
labels: {},
|
|
@@ -24216,11 +24216,11 @@ and ensure you are accounting for this risk.
|
|
|
24216
24216
|
paramsStore.goToResults({ searchText, facet });
|
|
24217
24217
|
};
|
|
24218
24218
|
return (_ctx, _cache) => {
|
|
24219
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24220
|
-
createBaseVNode("div", _hoisted_2$
|
|
24219
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
24220
|
+
createBaseVNode("div", _hoisted_2$h, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
24221
24221
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
24222
24222
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
24223
|
-
createBaseVNode("div", _hoisted_3$
|
|
24223
|
+
createBaseVNode("div", _hoisted_3$b, [
|
|
24224
24224
|
createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
|
|
24225
24225
|
createBaseVNode("span", {
|
|
24226
24226
|
id: "lupa-similar-query-text-component",
|
|
@@ -24230,13 +24230,13 @@ and ensure you are accounting for this risk.
|
|
|
24230
24230
|
}, [
|
|
24231
24231
|
createBaseVNode("span", {
|
|
24232
24232
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
24233
|
-
}, null, 8, _hoisted_5$
|
|
24233
|
+
}, null, 8, _hoisted_5$3),
|
|
24234
24234
|
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
24235
|
-
], 8, _hoisted_4$
|
|
24235
|
+
], 8, _hoisted_4$7)
|
|
24236
24236
|
]),
|
|
24237
24237
|
createBaseVNode("div", _hoisted_7$1, [
|
|
24238
24238
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
24239
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24239
|
+
return openBlock(), createBlock(_sfc_main$o, {
|
|
24240
24240
|
style: normalizeStyle(_ctx.columnSize),
|
|
24241
24241
|
key: getDocumentKey(index2, product),
|
|
24242
24242
|
product,
|
|
@@ -24250,15 +24250,15 @@ and ensure you are accounting for this risk.
|
|
|
24250
24250
|
};
|
|
24251
24251
|
}
|
|
24252
24252
|
});
|
|
24253
|
-
const _hoisted_1$
|
|
24253
|
+
const _hoisted_1$k = {
|
|
24254
24254
|
key: 0,
|
|
24255
24255
|
class: "lupa-results-additional-panel"
|
|
24256
24256
|
};
|
|
24257
|
-
const _hoisted_2$
|
|
24257
|
+
const _hoisted_2$g = {
|
|
24258
24258
|
class: "lupa-results-additional-panel-items",
|
|
24259
24259
|
"data-cy": "lupa-results-additional-panel-items"
|
|
24260
24260
|
};
|
|
24261
|
-
const _sfc_main$
|
|
24261
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
24262
24262
|
__name: "AdditionalPanel",
|
|
24263
24263
|
props: {
|
|
24264
24264
|
panel: {},
|
|
@@ -24330,10 +24330,10 @@ and ensure you are accounting for this risk.
|
|
|
24330
24330
|
handleQueryChange();
|
|
24331
24331
|
});
|
|
24332
24332
|
return (_ctx, _cache) => {
|
|
24333
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24334
|
-
createBaseVNode("div", _hoisted_2$
|
|
24333
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
24334
|
+
createBaseVNode("div", _hoisted_2$g, [
|
|
24335
24335
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
24336
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24336
|
+
return openBlock(), createBlock(_sfc_main$o, {
|
|
24337
24337
|
key: index,
|
|
24338
24338
|
product: item,
|
|
24339
24339
|
options: _ctx.panel,
|
|
@@ -24351,11 +24351,11 @@ and ensure you are accounting for this risk.
|
|
|
24351
24351
|
};
|
|
24352
24352
|
}
|
|
24353
24353
|
});
|
|
24354
|
-
const _hoisted_1$
|
|
24354
|
+
const _hoisted_1$j = {
|
|
24355
24355
|
key: 0,
|
|
24356
24356
|
class: "lupa-results-additional-panels"
|
|
24357
24357
|
};
|
|
24358
|
-
const _sfc_main$
|
|
24358
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
24359
24359
|
__name: "AdditionalPanels",
|
|
24360
24360
|
props: {
|
|
24361
24361
|
options: {},
|
|
@@ -24372,9 +24372,9 @@ and ensure you are accounting for this risk.
|
|
|
24372
24372
|
return locationPanels.value.length > 0;
|
|
24373
24373
|
});
|
|
24374
24374
|
return (_ctx, _cache) => {
|
|
24375
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24375
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
24376
24376
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
24377
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24377
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
24378
24378
|
key: panel.queryKey,
|
|
24379
24379
|
panel,
|
|
24380
24380
|
options: _ctx.sdkOptions
|
|
@@ -24391,29 +24391,29 @@ and ensure you are accounting for this risk.
|
|
|
24391
24391
|
}
|
|
24392
24392
|
return target;
|
|
24393
24393
|
};
|
|
24394
|
-
const _sfc_main$
|
|
24395
|
-
const _hoisted_1$
|
|
24396
|
-
const _hoisted_2$
|
|
24394
|
+
const _sfc_main$k = {};
|
|
24395
|
+
const _hoisted_1$i = { class: "lupa-spinner-wrapper" };
|
|
24396
|
+
const _hoisted_2$f = { class: "lupa-spinner" };
|
|
24397
24397
|
function _sfc_render(_ctx, _cache) {
|
|
24398
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24399
|
-
createBaseVNode("div", _hoisted_2$
|
|
24398
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
24399
|
+
createBaseVNode("div", _hoisted_2$f, [
|
|
24400
24400
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x2) => {
|
|
24401
24401
|
return createBaseVNode("div", { key: x2 });
|
|
24402
24402
|
}), 64))
|
|
24403
24403
|
])
|
|
24404
24404
|
]);
|
|
24405
24405
|
}
|
|
24406
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24407
|
-
const _hoisted_1$
|
|
24406
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render]]);
|
|
24407
|
+
const _hoisted_1$h = {
|
|
24408
24408
|
id: "lupa-search-results-similar-results",
|
|
24409
24409
|
"data-cy": "lupa-search-results-similar-results"
|
|
24410
24410
|
};
|
|
24411
|
-
const _hoisted_2$
|
|
24412
|
-
const _hoisted_3$
|
|
24411
|
+
const _hoisted_2$e = { class: "lupa-similar-results-label" };
|
|
24412
|
+
const _hoisted_3$a = {
|
|
24413
24413
|
class: "lupa-products",
|
|
24414
24414
|
"data-cy": "lupa-products"
|
|
24415
24415
|
};
|
|
24416
|
-
const _sfc_main$
|
|
24416
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
24417
24417
|
__name: "SearchResultsSimilarResults",
|
|
24418
24418
|
props: {
|
|
24419
24419
|
columnSize: {},
|
|
@@ -24429,11 +24429,11 @@ and ensure you are accounting for this risk.
|
|
|
24429
24429
|
return getProductKey(`${index}`, product, props.productCardOptions.idKey);
|
|
24430
24430
|
};
|
|
24431
24431
|
return (_ctx, _cache) => {
|
|
24432
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24433
|
-
createBaseVNode("div", _hoisted_2$
|
|
24434
|
-
createBaseVNode("div", _hoisted_3$
|
|
24432
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
24433
|
+
createBaseVNode("div", _hoisted_2$e, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
24434
|
+
createBaseVNode("div", _hoisted_3$a, [
|
|
24435
24435
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
24436
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24436
|
+
return openBlock(), createBlock(_sfc_main$o, {
|
|
24437
24437
|
style: normalizeStyle(_ctx.columnSize),
|
|
24438
24438
|
key: getDocumentKey(index, product),
|
|
24439
24439
|
product,
|
|
@@ -24445,6 +24445,179 @@ and ensure you are accounting for this risk.
|
|
|
24445
24445
|
};
|
|
24446
24446
|
}
|
|
24447
24447
|
});
|
|
24448
|
+
var RelatedQuerySourceType = /* @__PURE__ */ ((RelatedQuerySourceType2) => {
|
|
24449
|
+
RelatedQuerySourceType2["FACETS"] = "facets";
|
|
24450
|
+
return RelatedQuerySourceType2;
|
|
24451
|
+
})(RelatedQuerySourceType || {});
|
|
24452
|
+
const extractFacetsRelatedSource = (source, searchResults2) => {
|
|
24453
|
+
var _a, _b, _c, _d, _e;
|
|
24454
|
+
const facet = (_a = searchResults2.facets) == null ? void 0 : _a.find((facet2) => facet2.key === source.key);
|
|
24455
|
+
if (!facet) {
|
|
24456
|
+
return [];
|
|
24457
|
+
}
|
|
24458
|
+
if (facet.type === "terms") {
|
|
24459
|
+
return (_c = (_b = facet.items) == null ? void 0 : _b.slice(0, source.count)) == null ? void 0 : _c.map((item) => item.title);
|
|
24460
|
+
}
|
|
24461
|
+
if (facet.type === "hierarchy") {
|
|
24462
|
+
return (_e = (_d = facet.items) == null ? void 0 : _d.slice(0, source.count)) == null ? void 0 : _e.map((item) => item.title);
|
|
24463
|
+
}
|
|
24464
|
+
return [];
|
|
24465
|
+
};
|
|
24466
|
+
const extractRelatedSource = (source, searchResults2) => {
|
|
24467
|
+
switch (source.type) {
|
|
24468
|
+
case RelatedQuerySourceType.FACETS:
|
|
24469
|
+
return extractFacetsRelatedSource(source, searchResults2);
|
|
24470
|
+
}
|
|
24471
|
+
};
|
|
24472
|
+
const _hoisted_1$g = { class: "lupa-related-query-item" };
|
|
24473
|
+
const _hoisted_2$d = { class: "lupa-related-query-image" };
|
|
24474
|
+
const _hoisted_3$9 = { class: "lupa-related-query-label" };
|
|
24475
|
+
const _hoisted_4$6 = { class: "lupa-related-query-title" };
|
|
24476
|
+
const _hoisted_5$2 = {
|
|
24477
|
+
key: 0,
|
|
24478
|
+
class: "lupa-related-query-count"
|
|
24479
|
+
};
|
|
24480
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
24481
|
+
__name: "RelatedQueryPanel",
|
|
24482
|
+
props: {
|
|
24483
|
+
query: {},
|
|
24484
|
+
options: {}
|
|
24485
|
+
},
|
|
24486
|
+
setup(__props) {
|
|
24487
|
+
const props = __props;
|
|
24488
|
+
const loading = ref(false);
|
|
24489
|
+
const relatedQueryResult = ref(null);
|
|
24490
|
+
const optionsStore = useOptionsStore();
|
|
24491
|
+
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
24492
|
+
const mainImage = computed(() => {
|
|
24493
|
+
var _a, _b, _c;
|
|
24494
|
+
return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.elements) == null ? void 0 : _b.find((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _c : "";
|
|
24495
|
+
});
|
|
24496
|
+
const image = computed(() => {
|
|
24497
|
+
var _a, _b, _c;
|
|
24498
|
+
return (_c = (_b = (_a = props.options) == null ? void 0 : _a.image) != null ? _b : mainImage == null ? void 0 : mainImage.value) != null ? _c : "";
|
|
24499
|
+
});
|
|
24500
|
+
const queryKey = computed(() => {
|
|
24501
|
+
var _a, _b;
|
|
24502
|
+
return (_b = (_a = props.options) == null ? void 0 : _a.queryKey) != null ? _b : searchResultOptions.value.queryKey;
|
|
24503
|
+
});
|
|
24504
|
+
computed(() => {
|
|
24505
|
+
var _a, _b;
|
|
24506
|
+
return ((_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.items) == null ? void 0 : _b.length) > 0;
|
|
24507
|
+
});
|
|
24508
|
+
const firstResultItem = computed(() => {
|
|
24509
|
+
var _a, _b;
|
|
24510
|
+
return (_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.items) == null ? void 0 : _b[0];
|
|
24511
|
+
});
|
|
24512
|
+
const totalItemCount = computed(() => {
|
|
24513
|
+
var _a, _b;
|
|
24514
|
+
return (_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.total) != null ? _b : 0;
|
|
24515
|
+
});
|
|
24516
|
+
const searchForRelatedQuery = () => __async2(this, null, function* () {
|
|
24517
|
+
var _a, _b, _c, _d;
|
|
24518
|
+
if (!props.query) {
|
|
24519
|
+
return;
|
|
24520
|
+
}
|
|
24521
|
+
const lupaQuery = { searchText: (_a = props.query) == null ? void 0 : _a.toLowerCase(), limit: 1 };
|
|
24522
|
+
try {
|
|
24523
|
+
loading.value = true;
|
|
24524
|
+
const result2 = yield LupaSearchSdk.query(
|
|
24525
|
+
queryKey.value,
|
|
24526
|
+
lupaQuery,
|
|
24527
|
+
(_b = searchResultOptions.value) == null ? void 0 : _b.options
|
|
24528
|
+
);
|
|
24529
|
+
if (result2.success) {
|
|
24530
|
+
relatedQueryResult.value = result2;
|
|
24531
|
+
}
|
|
24532
|
+
} catch (error) {
|
|
24533
|
+
(_d = (_c = searchResultOptions.value) == null ? void 0 : _c.options) == null ? void 0 : _d.onError(error);
|
|
24534
|
+
} finally {
|
|
24535
|
+
loading.value = false;
|
|
24536
|
+
}
|
|
24537
|
+
});
|
|
24538
|
+
watch(
|
|
24539
|
+
() => props.query,
|
|
24540
|
+
() => {
|
|
24541
|
+
console.log("query changed", props.query);
|
|
24542
|
+
searchForRelatedQuery();
|
|
24543
|
+
}
|
|
24544
|
+
);
|
|
24545
|
+
onMounted(() => {
|
|
24546
|
+
searchForRelatedQuery();
|
|
24547
|
+
});
|
|
24548
|
+
return (_ctx, _cache) => {
|
|
24549
|
+
var _a;
|
|
24550
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
24551
|
+
createBaseVNode("div", _hoisted_2$d, [
|
|
24552
|
+
firstResultItem.value && image.value ? (openBlock(), createBlock(_sfc_main$1j, {
|
|
24553
|
+
key: 0,
|
|
24554
|
+
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
24555
|
+
"image-class": "lupa-related-query-image",
|
|
24556
|
+
item: firstResultItem.value,
|
|
24557
|
+
options: image.value
|
|
24558
|
+
}, null, 8, ["item", "options"])) : createCommentVNode("", true)
|
|
24559
|
+
]),
|
|
24560
|
+
createBaseVNode("div", _hoisted_3$9, [
|
|
24561
|
+
createBaseVNode("span", _hoisted_4$6, toDisplayString(_ctx.query), 1),
|
|
24562
|
+
((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
24563
|
+
])
|
|
24564
|
+
]);
|
|
24565
|
+
};
|
|
24566
|
+
}
|
|
24567
|
+
});
|
|
24568
|
+
const _hoisted_1$f = {
|
|
24569
|
+
key: 0,
|
|
24570
|
+
class: "lupa-related-queries"
|
|
24571
|
+
};
|
|
24572
|
+
const _hoisted_2$c = {
|
|
24573
|
+
key: 0,
|
|
24574
|
+
class: "lupa-related-queries-title"
|
|
24575
|
+
};
|
|
24576
|
+
const _hoisted_3$8 = ["onClick"];
|
|
24577
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
24578
|
+
__name: "RelatedQueries",
|
|
24579
|
+
props: {
|
|
24580
|
+
options: {}
|
|
24581
|
+
},
|
|
24582
|
+
setup(__props) {
|
|
24583
|
+
const props = __props;
|
|
24584
|
+
const searchResultStore = useSearchResultStore();
|
|
24585
|
+
const paramsStore = useParamsStore();
|
|
24586
|
+
const { searchResult } = storeToRefs(searchResultStore);
|
|
24587
|
+
const relatedQueries = computed(() => {
|
|
24588
|
+
if (!props.options || !searchResult.value) {
|
|
24589
|
+
return [];
|
|
24590
|
+
}
|
|
24591
|
+
return extractRelatedSource(props.options.source, searchResult.value);
|
|
24592
|
+
});
|
|
24593
|
+
const hasEnoughRelatedQueries = computed(() => {
|
|
24594
|
+
return relatedQueries.value.length > 1;
|
|
24595
|
+
});
|
|
24596
|
+
const goToResults = ({ searchText }) => {
|
|
24597
|
+
paramsStore.goToResults({ searchText });
|
|
24598
|
+
};
|
|
24599
|
+
return (_ctx, _cache) => {
|
|
24600
|
+
var _a, _b, _c, _d;
|
|
24601
|
+
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
24602
|
+
((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$c, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
24603
|
+
createBaseVNode("ul", null, [
|
|
24604
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries.value, (query) => {
|
|
24605
|
+
return openBlock(), createElementBlock("li", { key: query }, [
|
|
24606
|
+
createBaseVNode("a", {
|
|
24607
|
+
onClick: ($event) => goToResults({ searchText: query })
|
|
24608
|
+
}, [
|
|
24609
|
+
createVNode(_sfc_main$i, {
|
|
24610
|
+
options: _ctx.options,
|
|
24611
|
+
query
|
|
24612
|
+
}, null, 8, ["options", "query"])
|
|
24613
|
+
], 8, _hoisted_3$8)
|
|
24614
|
+
]);
|
|
24615
|
+
}), 128))
|
|
24616
|
+
])
|
|
24617
|
+
])) : createCommentVNode("", true);
|
|
24618
|
+
};
|
|
24619
|
+
}
|
|
24620
|
+
});
|
|
24448
24621
|
const _hoisted_1$e = { id: "lupa-search-results-products" };
|
|
24449
24622
|
const _hoisted_2$b = {
|
|
24450
24623
|
class: "lupa-products",
|
|
@@ -24574,19 +24747,27 @@ and ensure you are accounting for this risk.
|
|
|
24574
24747
|
key: 0,
|
|
24575
24748
|
class: "lupa-loader"
|
|
24576
24749
|
})) : createCommentVNode("", true),
|
|
24750
|
+
createVNode(_sfc_main$l, {
|
|
24751
|
+
options: _ctx.options,
|
|
24752
|
+
location: "top",
|
|
24753
|
+
sdkOptions: _ctx.options.options
|
|
24754
|
+
}, null, 8, ["options", "sdkOptions"]),
|
|
24755
|
+
createVNode(_sfc_main$h, {
|
|
24756
|
+
options: _ctx.options.relatedQueries
|
|
24757
|
+
}, null, 8, ["options"]),
|
|
24577
24758
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
24578
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
24759
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$G, {
|
|
24579
24760
|
key: 0,
|
|
24580
24761
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
24581
24762
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24582
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
24763
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$A, {
|
|
24583
24764
|
key: 1,
|
|
24584
24765
|
class: "lupa-toolbar-mobile",
|
|
24585
24766
|
options: _ctx.options,
|
|
24586
24767
|
"pagination-location": "top",
|
|
24587
24768
|
onFilter: filter2
|
|
24588
24769
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24589
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
24770
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$U, {
|
|
24590
24771
|
key: 2,
|
|
24591
24772
|
class: normalizeClass(currentFiltersClass.value),
|
|
24592
24773
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -24594,18 +24775,13 @@ and ensure you are accounting for this risk.
|
|
|
24594
24775
|
expandable: !desktopFiltersExpanded.value
|
|
24595
24776
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
24596
24777
|
], 64)) : createCommentVNode("", true),
|
|
24597
|
-
createVNode(_sfc_main$j, {
|
|
24598
|
-
options: _ctx.options,
|
|
24599
|
-
location: "top",
|
|
24600
|
-
sdkOptions: _ctx.options.options
|
|
24601
|
-
}, null, 8, ["options", "sdkOptions"]),
|
|
24602
24778
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
24603
|
-
createVNode(_sfc_main$
|
|
24779
|
+
createVNode(_sfc_main$A, {
|
|
24604
24780
|
class: "lupa-toolbar-top",
|
|
24605
24781
|
options: _ctx.options,
|
|
24606
24782
|
"pagination-location": "top"
|
|
24607
24783
|
}, null, 8, ["options"]),
|
|
24608
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
24784
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$U, {
|
|
24609
24785
|
key: 0,
|
|
24610
24786
|
class: normalizeClass(currentFiltersClass.value),
|
|
24611
24787
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -24621,7 +24797,7 @@ and ensure you are accounting for this risk.
|
|
|
24621
24797
|
options: productCardOptions.value
|
|
24622
24798
|
});
|
|
24623
24799
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
24624
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24800
|
+
return openBlock(), createBlock(_sfc_main$o, {
|
|
24625
24801
|
style: normalizeStyle(columnSize.value),
|
|
24626
24802
|
key: getProductKeyAction(index, product),
|
|
24627
24803
|
product,
|
|
@@ -24637,12 +24813,12 @@ and ensure you are accounting for this risk.
|
|
|
24637
24813
|
onClick: goToFirstPage
|
|
24638
24814
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
24639
24815
|
])) : createCommentVNode("", true),
|
|
24640
|
-
createVNode(_sfc_main$
|
|
24816
|
+
createVNode(_sfc_main$A, {
|
|
24641
24817
|
class: "lupa-toolbar-bottom",
|
|
24642
24818
|
options: _ctx.options,
|
|
24643
24819
|
"pagination-location": "bottom"
|
|
24644
24820
|
}, null, 8, ["options"]),
|
|
24645
|
-
createVNode(_sfc_main$
|
|
24821
|
+
createVNode(_sfc_main$l, {
|
|
24646
24822
|
options: _ctx.options,
|
|
24647
24823
|
location: "bottom",
|
|
24648
24824
|
sdkOptions: _ctx.options.options
|
|
@@ -24652,14 +24828,14 @@ and ensure you are accounting for this risk.
|
|
|
24652
24828
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
24653
24829
|
])) : createCommentVNode("", true),
|
|
24654
24830
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
24655
|
-
createVNode(_sfc_main$
|
|
24831
|
+
createVNode(_sfc_main$n, {
|
|
24656
24832
|
labels: similarQueriesLabels.value,
|
|
24657
24833
|
columnSize: columnSize.value,
|
|
24658
24834
|
productCardOptions: productCardOptions.value
|
|
24659
24835
|
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
24660
24836
|
])) : createCommentVNode("", true),
|
|
24661
24837
|
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
24662
|
-
createVNode(_sfc_main$
|
|
24838
|
+
createVNode(_sfc_main$j, {
|
|
24663
24839
|
labels: similarResultsLabels.value,
|
|
24664
24840
|
columnSize: columnSize.value,
|
|
24665
24841
|
productCardOptions: productCardOptions.value
|
|
@@ -24728,14 +24904,14 @@ and ensure you are accounting for this risk.
|
|
|
24728
24904
|
])) : createCommentVNode("", true),
|
|
24729
24905
|
createBaseVNode("div", _hoisted_4$4, [
|
|
24730
24906
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
24731
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24907
|
+
return openBlock(), createBlock(_sfc_main$T, {
|
|
24732
24908
|
key: getCategoryKey(child),
|
|
24733
24909
|
item: child,
|
|
24734
24910
|
options: categoryOptions.value
|
|
24735
24911
|
}, null, 8, ["item", "options"]);
|
|
24736
24912
|
}), 128))
|
|
24737
24913
|
]),
|
|
24738
|
-
createVNode(_sfc_main$
|
|
24914
|
+
createVNode(_sfc_main$A, {
|
|
24739
24915
|
class: "lupa-toolbar-mobile",
|
|
24740
24916
|
"pagination-location": "top",
|
|
24741
24917
|
options: _ctx.options
|
|
@@ -24967,8 +25143,8 @@ and ensure you are accounting for this risk.
|
|
|
24967
25143
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
24968
25144
|
}, [
|
|
24969
25145
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
24970
|
-
createVNode(_sfc_main$
|
|
24971
|
-
createVNode(_sfc_main$
|
|
25146
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25147
|
+
createVNode(_sfc_main$W, {
|
|
24972
25148
|
"show-summary": true,
|
|
24973
25149
|
options: _ctx.options,
|
|
24974
25150
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
@@ -24978,17 +25154,17 @@ and ensure you are accounting for this risk.
|
|
|
24978
25154
|
key: 1,
|
|
24979
25155
|
options: _ctx.options
|
|
24980
25156
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24981
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
25157
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$I, {
|
|
24982
25158
|
key: 2,
|
|
24983
25159
|
options: _ctx.options.filters,
|
|
24984
25160
|
onFilter: handleParamsChange
|
|
24985
25161
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24986
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
25162
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$H, {
|
|
24987
25163
|
key: 3,
|
|
24988
25164
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
24989
25165
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
24990
25166
|
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
24991
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
25167
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
|
|
24992
25168
|
key: 0,
|
|
24993
25169
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
24994
25170
|
ref_key: "searchResultsFilters",
|
|
@@ -24996,8 +25172,8 @@ and ensure you are accounting for this risk.
|
|
|
24996
25172
|
onFilter: handleParamsChange
|
|
24997
25173
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24998
25174
|
createBaseVNode("div", _hoisted_3$5, [
|
|
24999
|
-
createVNode(_sfc_main$
|
|
25000
|
-
createVNode(_sfc_main$
|
|
25175
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25176
|
+
createVNode(_sfc_main$W, {
|
|
25001
25177
|
options: _ctx.options,
|
|
25002
25178
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
25003
25179
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -25013,13 +25189,13 @@ and ensure you are accounting for this risk.
|
|
|
25013
25189
|
}, 8, ["options", "ssr"])
|
|
25014
25190
|
])
|
|
25015
25191
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
25016
|
-
createVNode(_sfc_main$
|
|
25017
|
-
createVNode(_sfc_main$
|
|
25192
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25193
|
+
createVNode(_sfc_main$W, {
|
|
25018
25194
|
options: _ctx.options,
|
|
25019
25195
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
25020
25196
|
}, null, 8, ["options", "is-product-list"]),
|
|
25021
25197
|
createBaseVNode("div", _hoisted_4$3, [
|
|
25022
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
25198
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
|
|
25023
25199
|
key: 0,
|
|
25024
25200
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
25025
25201
|
ref_key: "searchResultsFilters",
|
|
@@ -30709,7 +30885,7 @@ and ensure you are accounting for this risk.
|
|
|
30709
30885
|
onClick: withModifiers(innerClick, ["stop"])
|
|
30710
30886
|
}, [
|
|
30711
30887
|
createBaseVNode("div", _hoisted_2$7, [
|
|
30712
|
-
createVNode(_sfc_main$
|
|
30888
|
+
createVNode(_sfc_main$Z, {
|
|
30713
30889
|
options: fullSearchBoxOptions.value,
|
|
30714
30890
|
"is-search-container": true,
|
|
30715
30891
|
ref_key: "searchBox",
|
|
@@ -31573,7 +31749,7 @@ and ensure you are accounting for this risk.
|
|
|
31573
31749
|
key: getProductKeyAction(index, product)
|
|
31574
31750
|
}, {
|
|
31575
31751
|
default: withCtx(() => [
|
|
31576
|
-
createVNode(_sfc_main$
|
|
31752
|
+
createVNode(_sfc_main$o, {
|
|
31577
31753
|
product,
|
|
31578
31754
|
options: _ctx.options,
|
|
31579
31755
|
"click-tracking-settings": clickTrackingSettings.value
|
|
@@ -31586,7 +31762,7 @@ and ensure you are accounting for this risk.
|
|
|
31586
31762
|
_: 1
|
|
31587
31763
|
}, 16)) : (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
31588
31764
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
31589
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31765
|
+
return openBlock(), createBlock(_sfc_main$o, {
|
|
31590
31766
|
style: normalizeStyle(columnSize.value),
|
|
31591
31767
|
key: getProductKeyAction(index, product),
|
|
31592
31768
|
product,
|
|
@@ -31849,7 +32025,7 @@ and ensure you are accounting for this risk.
|
|
|
31849
32025
|
createBaseVNode("a", {
|
|
31850
32026
|
href: getLink(product)
|
|
31851
32027
|
}, [
|
|
31852
|
-
createVNode(_sfc_main$
|
|
32028
|
+
createVNode(_sfc_main$z, {
|
|
31853
32029
|
item: product,
|
|
31854
32030
|
options: image.value
|
|
31855
32031
|
}, null, 8, ["item", "options"])
|
|
@@ -32013,7 +32189,7 @@ and ensure you are accounting for this risk.
|
|
|
32013
32189
|
return (_ctx, _cache) => {
|
|
32014
32190
|
return openBlock(), createElementBlock("section", _hoisted_1$3, [
|
|
32015
32191
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
32016
|
-
return openBlock(), createBlock(_sfc_main$
|
|
32192
|
+
return openBlock(), createBlock(_sfc_main$o, {
|
|
32017
32193
|
class: "lupa-chat-product-card",
|
|
32018
32194
|
key: getProductKeyAction(index, product),
|
|
32019
32195
|
product,
|
|
@@ -32206,7 +32382,7 @@ and ensure you are accounting for this risk.
|
|
|
32206
32382
|
key: 0,
|
|
32207
32383
|
class: "lupasearch-chat-content"
|
|
32208
32384
|
};
|
|
32209
|
-
const _sfc_main$
|
|
32385
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
32210
32386
|
__name: "ChatContainer",
|
|
32211
32387
|
props: {
|
|
32212
32388
|
options: {}
|
|
@@ -38224,7 +38400,7 @@ and ensure you are accounting for this risk.
|
|
|
38224
38400
|
};
|
|
38225
38401
|
__expose({ fetch: fetch2 });
|
|
38226
38402
|
return (_ctx, _cache) => {
|
|
38227
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
38403
|
+
return openBlock(), createBlock(unref(_sfc_main$Z), {
|
|
38228
38404
|
options: fullSearchBoxOptions.value,
|
|
38229
38405
|
ref_key: "searchBox",
|
|
38230
38406
|
ref: searchBox2
|
|
@@ -38751,7 +38927,7 @@ and ensure you are accounting for this risk.
|
|
|
38751
38927
|
const instance = createVue(
|
|
38752
38928
|
options.displayOptions.containerSelector,
|
|
38753
38929
|
mountOptions == null ? void 0 : mountOptions.mountingBehavior,
|
|
38754
|
-
_sfc_main$
|
|
38930
|
+
_sfc_main$1s,
|
|
38755
38931
|
{
|
|
38756
38932
|
options
|
|
38757
38933
|
}
|