@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.iife.js
CHANGED
|
@@ -8596,11 +8596,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8596
8596
|
resetHighlightIndex
|
|
8597
8597
|
};
|
|
8598
8598
|
});
|
|
8599
|
-
const _hoisted_1$
|
|
8600
|
-
const _hoisted_2$
|
|
8601
|
-
const _hoisted_3$
|
|
8602
|
-
const _hoisted_4$
|
|
8603
|
-
const _hoisted_5$
|
|
8599
|
+
const _hoisted_1$1g = { id: "lupa-search-box-input-container" };
|
|
8600
|
+
const _hoisted_2$U = { class: "lupa-input-clear" };
|
|
8601
|
+
const _hoisted_3$D = { id: "lupa-search-box-input" };
|
|
8602
|
+
const _hoisted_4$t = ["value"];
|
|
8603
|
+
const _hoisted_5$j = ["aria-label", "placeholder"];
|
|
8604
8604
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
8605
8605
|
const _hoisted_7$7 = [
|
|
8606
8606
|
_hoisted_6$9
|
|
@@ -8609,7 +8609,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8609
8609
|
key: 0,
|
|
8610
8610
|
class: "lupa-close-label"
|
|
8611
8611
|
};
|
|
8612
|
-
const _sfc_main$
|
|
8612
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
8613
8613
|
__name: "SearchBoxInput",
|
|
8614
8614
|
props: {
|
|
8615
8615
|
options: {},
|
|
@@ -8693,20 +8693,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8693
8693
|
};
|
|
8694
8694
|
__expose({ focus });
|
|
8695
8695
|
return (_ctx, _cache) => {
|
|
8696
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8697
|
-
createBaseVNode("div", _hoisted_2$
|
|
8696
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1g, [
|
|
8697
|
+
createBaseVNode("div", _hoisted_2$U, [
|
|
8698
8698
|
createBaseVNode("div", {
|
|
8699
8699
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
8700
8700
|
onClick: clear2
|
|
8701
8701
|
}, null, 2)
|
|
8702
8702
|
]),
|
|
8703
|
-
createBaseVNode("div", _hoisted_3$
|
|
8703
|
+
createBaseVNode("div", _hoisted_3$D, [
|
|
8704
8704
|
createBaseVNode("input", {
|
|
8705
8705
|
class: "lupa-hint",
|
|
8706
8706
|
"aria-hidden": "true",
|
|
8707
8707
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
8708
8708
|
disabled: ""
|
|
8709
|
-
}, null, 8, _hoisted_4$
|
|
8709
|
+
}, null, 8, _hoisted_4$t),
|
|
8710
8710
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
8711
8711
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
8712
8712
|
}, inputAttributes.value, {
|
|
@@ -8720,7 +8720,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8720
8720
|
placeholder: labels.value.placeholder,
|
|
8721
8721
|
onInput: handleInput,
|
|
8722
8722
|
onFocus: handleFocus
|
|
8723
|
-
}), null, 16, _hoisted_5$
|
|
8723
|
+
}), null, 16, _hoisted_5$j), [
|
|
8724
8724
|
[vModelText, inputValue.value]
|
|
8725
8725
|
]),
|
|
8726
8726
|
_ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
|
|
@@ -8739,7 +8739,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8739
8739
|
};
|
|
8740
8740
|
}
|
|
8741
8741
|
});
|
|
8742
|
-
const _sfc_main$
|
|
8742
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
8743
8743
|
__name: "SearchBoxMoreResults",
|
|
8744
8744
|
props: {
|
|
8745
8745
|
labels: {},
|
|
@@ -8771,9 +8771,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8771
8771
|
};
|
|
8772
8772
|
}
|
|
8773
8773
|
});
|
|
8774
|
-
const _hoisted_1$
|
|
8775
|
-
const _hoisted_2$
|
|
8776
|
-
const _sfc_main$
|
|
8774
|
+
const _hoisted_1$1f = { class: "lupa-search-box-history-item" };
|
|
8775
|
+
const _hoisted_2$T = { class: "lupa-search-box-history-item-content" };
|
|
8776
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
8777
8777
|
__name: "SearchBoxHistoryItem",
|
|
8778
8778
|
props: {
|
|
8779
8779
|
item: {},
|
|
@@ -8789,8 +8789,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8789
8789
|
emit2("click", { query: props.item });
|
|
8790
8790
|
};
|
|
8791
8791
|
return (_ctx, _cache) => {
|
|
8792
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8793
|
-
createBaseVNode("div", _hoisted_2$
|
|
8792
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1f, [
|
|
8793
|
+
createBaseVNode("div", _hoisted_2$T, [
|
|
8794
8794
|
createBaseVNode("div", {
|
|
8795
8795
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
8796
8796
|
onClick: click2
|
|
@@ -8804,11 +8804,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8804
8804
|
};
|
|
8805
8805
|
}
|
|
8806
8806
|
});
|
|
8807
|
-
const _hoisted_1$
|
|
8807
|
+
const _hoisted_1$1e = {
|
|
8808
8808
|
key: 0,
|
|
8809
8809
|
class: "lupa-search-box-history-panel"
|
|
8810
8810
|
};
|
|
8811
|
-
const _sfc_main$
|
|
8811
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
8812
8812
|
__name: "SearchBoxHistoryPanel",
|
|
8813
8813
|
props: {
|
|
8814
8814
|
options: {}
|
|
@@ -8849,9 +8849,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8849
8849
|
}
|
|
8850
8850
|
};
|
|
8851
8851
|
return (_ctx, _cache) => {
|
|
8852
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
8852
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1e, [
|
|
8853
8853
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
8854
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8854
|
+
return openBlock(), createBlock(_sfc_main$1p, {
|
|
8855
8855
|
key: item,
|
|
8856
8856
|
item,
|
|
8857
8857
|
highlighted: index === highlightIndex.value,
|
|
@@ -8867,15 +8867,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8867
8867
|
};
|
|
8868
8868
|
}
|
|
8869
8869
|
});
|
|
8870
|
-
const _hoisted_1$
|
|
8871
|
-
const _sfc_main$
|
|
8870
|
+
const _hoisted_1$1d = { class: "lupa-search-box-no-results" };
|
|
8871
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
8872
8872
|
__name: "SearchBoxNoResults",
|
|
8873
8873
|
props: {
|
|
8874
8874
|
labels: {}
|
|
8875
8875
|
},
|
|
8876
8876
|
setup(__props) {
|
|
8877
8877
|
return (_ctx, _cache) => {
|
|
8878
|
-
return openBlock(), createElementBlock("p", _hoisted_1$
|
|
8878
|
+
return openBlock(), createElementBlock("p", _hoisted_1$1d, toDisplayString(_ctx.labels.noResults), 1);
|
|
8879
8879
|
};
|
|
8880
8880
|
}
|
|
8881
8881
|
});
|
|
@@ -8907,26 +8907,26 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8907
8907
|
}
|
|
8908
8908
|
return gridTemplate.join(" ");
|
|
8909
8909
|
};
|
|
8910
|
-
const _hoisted_1$
|
|
8911
|
-
const _hoisted_2$
|
|
8910
|
+
const _hoisted_1$1c = ["innerHTML"];
|
|
8911
|
+
const _hoisted_2$S = {
|
|
8912
8912
|
key: 1,
|
|
8913
8913
|
"data-cy": "lupa-suggestion-value",
|
|
8914
8914
|
class: "lupa-suggestion-value"
|
|
8915
8915
|
};
|
|
8916
|
-
const _hoisted_3$
|
|
8916
|
+
const _hoisted_3$C = {
|
|
8917
8917
|
key: 2,
|
|
8918
8918
|
class: "lupa-suggestion-facet",
|
|
8919
8919
|
"data-cy": "lupa-suggestion-facet"
|
|
8920
8920
|
};
|
|
8921
|
-
const _hoisted_4$
|
|
8921
|
+
const _hoisted_4$s = {
|
|
8922
8922
|
class: "lupa-suggestion-facet-label",
|
|
8923
8923
|
"data-cy": "lupa-suggestion-facet-label"
|
|
8924
8924
|
};
|
|
8925
|
-
const _hoisted_5$
|
|
8925
|
+
const _hoisted_5$i = {
|
|
8926
8926
|
class: "lupa-suggestion-facet-value",
|
|
8927
8927
|
"data-cy": "lupa-suggestion-facet-value"
|
|
8928
8928
|
};
|
|
8929
|
-
const _sfc_main$
|
|
8929
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
8930
8930
|
__name: "SearchBoxSuggestion",
|
|
8931
8931
|
props: {
|
|
8932
8932
|
suggestion: {},
|
|
@@ -8962,20 +8962,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8962
8962
|
class: "lupa-suggestion-value",
|
|
8963
8963
|
"data-cy": "lupa-suggestion-value",
|
|
8964
8964
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
8965
|
-
}, null, 8, _hoisted_1$
|
|
8966
|
-
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
8967
|
-
createBaseVNode("span", _hoisted_4$
|
|
8968
|
-
createBaseVNode("span", _hoisted_5$
|
|
8965
|
+
}, null, 8, _hoisted_1$1c)) : (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8966
|
+
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
|
|
8967
|
+
createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
|
|
8968
|
+
createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8969
8969
|
])) : createCommentVNode("", true)
|
|
8970
8970
|
]);
|
|
8971
8971
|
};
|
|
8972
8972
|
}
|
|
8973
8973
|
});
|
|
8974
|
-
const _hoisted_1$
|
|
8974
|
+
const _hoisted_1$1b = {
|
|
8975
8975
|
id: "lupa-search-box-suggestions",
|
|
8976
8976
|
"data-cy": "lupa-search-box-suggestions"
|
|
8977
8977
|
};
|
|
8978
|
-
const _sfc_main$
|
|
8978
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
8979
8979
|
__name: "SearchBoxSuggestions",
|
|
8980
8980
|
props: {
|
|
8981
8981
|
items: {},
|
|
@@ -9035,9 +9035,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9035
9035
|
});
|
|
9036
9036
|
});
|
|
9037
9037
|
return (_ctx, _cache) => {
|
|
9038
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9038
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1b, [
|
|
9039
9039
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
9040
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9040
|
+
return openBlock(), createBlock(_sfc_main$1m, {
|
|
9041
9041
|
key: getSuggestionKey(item),
|
|
9042
9042
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
9043
9043
|
suggestion: item,
|
|
@@ -9065,7 +9065,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9065
9065
|
}, timeout);
|
|
9066
9066
|
};
|
|
9067
9067
|
};
|
|
9068
|
-
const _sfc_main$
|
|
9068
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
9069
9069
|
__name: "SearchBoxSuggestionsWrapper",
|
|
9070
9070
|
props: {
|
|
9071
9071
|
panel: {},
|
|
@@ -9107,7 +9107,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9107
9107
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
9108
9108
|
watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
9109
9109
|
return (_ctx, _cache) => {
|
|
9110
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9110
|
+
return openBlock(), createBlock(_sfc_main$1l, {
|
|
9111
9111
|
items: searchResult.value,
|
|
9112
9112
|
highlight: _ctx.panel.highlight,
|
|
9113
9113
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -18181,9 +18181,9 @@ and ensure you are accounting for this risk.
|
|
|
18181
18181
|
targetImage.src = placeholder;
|
|
18182
18182
|
}
|
|
18183
18183
|
};
|
|
18184
|
-
const _hoisted_1$
|
|
18185
|
-
const _hoisted_2$
|
|
18186
|
-
const _sfc_main$
|
|
18184
|
+
const _hoisted_1$1a = ["src"];
|
|
18185
|
+
const _hoisted_2$R = ["src"];
|
|
18186
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
18187
18187
|
__name: "ProductImage",
|
|
18188
18188
|
props: {
|
|
18189
18189
|
item: {},
|
|
@@ -18325,7 +18325,7 @@ and ensure you are accounting for this risk.
|
|
|
18325
18325
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
18326
18326
|
onError: replaceWithPlaceholder,
|
|
18327
18327
|
key: finalUrl.value
|
|
18328
|
-
}), null, 16, _hoisted_1$
|
|
18328
|
+
}), null, 16, _hoisted_1$1a))
|
|
18329
18329
|
]),
|
|
18330
18330
|
_: 1
|
|
18331
18331
|
})) : (openBlock(), createElementBlock("img", mergeProps({
|
|
@@ -18333,12 +18333,12 @@ and ensure you are accounting for this risk.
|
|
|
18333
18333
|
class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
|
|
18334
18334
|
style: styleOverride.value,
|
|
18335
18335
|
src: finalMainImageUrl.value
|
|
18336
|
-
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$
|
|
18336
|
+
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$R))
|
|
18337
18337
|
], 38);
|
|
18338
18338
|
};
|
|
18339
18339
|
}
|
|
18340
18340
|
});
|
|
18341
|
-
const _sfc_main$
|
|
18341
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
18342
18342
|
__name: "SearchBoxProductImage",
|
|
18343
18343
|
props: {
|
|
18344
18344
|
item: {},
|
|
@@ -18346,7 +18346,7 @@ and ensure you are accounting for this risk.
|
|
|
18346
18346
|
},
|
|
18347
18347
|
setup(__props) {
|
|
18348
18348
|
return (_ctx, _cache) => {
|
|
18349
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18349
|
+
return openBlock(), createBlock(_sfc_main$1j, {
|
|
18350
18350
|
item: _ctx.item,
|
|
18351
18351
|
options: _ctx.options,
|
|
18352
18352
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -18355,12 +18355,12 @@ and ensure you are accounting for this risk.
|
|
|
18355
18355
|
};
|
|
18356
18356
|
}
|
|
18357
18357
|
});
|
|
18358
|
-
const _hoisted_1$
|
|
18359
|
-
const _hoisted_2$
|
|
18358
|
+
const _hoisted_1$19 = ["innerHTML"];
|
|
18359
|
+
const _hoisted_2$Q = {
|
|
18360
18360
|
key: 1,
|
|
18361
18361
|
class: "lupa-search-box-product-title"
|
|
18362
18362
|
};
|
|
18363
|
-
const _sfc_main$
|
|
18363
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
18364
18364
|
__name: "SearchBoxProductTitle",
|
|
18365
18365
|
props: {
|
|
18366
18366
|
item: {},
|
|
@@ -18383,18 +18383,18 @@ and ensure you are accounting for this risk.
|
|
|
18383
18383
|
key: 0,
|
|
18384
18384
|
class: "lupa-search-box-product-title",
|
|
18385
18385
|
innerHTML: sanitizedTitle.value
|
|
18386
|
-
}, null, 8, _hoisted_1$
|
|
18386
|
+
}, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, [
|
|
18387
18387
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
18388
18388
|
]));
|
|
18389
18389
|
};
|
|
18390
18390
|
}
|
|
18391
18391
|
});
|
|
18392
|
-
const _hoisted_1$
|
|
18393
|
-
const _hoisted_2$
|
|
18392
|
+
const _hoisted_1$18 = ["innerHTML"];
|
|
18393
|
+
const _hoisted_2$P = {
|
|
18394
18394
|
key: 1,
|
|
18395
18395
|
class: "lupa-search-box-product-description"
|
|
18396
18396
|
};
|
|
18397
|
-
const _sfc_main$
|
|
18397
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
18398
18398
|
__name: "SearchBoxProductDescription",
|
|
18399
18399
|
props: {
|
|
18400
18400
|
item: {},
|
|
@@ -18417,12 +18417,12 @@ and ensure you are accounting for this risk.
|
|
|
18417
18417
|
key: 0,
|
|
18418
18418
|
class: "lupa-search-box-product-description",
|
|
18419
18419
|
innerHTML: sanitizedDescription.value
|
|
18420
|
-
}, null, 8, _hoisted_1$
|
|
18420
|
+
}, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(description.value), 1));
|
|
18421
18421
|
};
|
|
18422
18422
|
}
|
|
18423
18423
|
});
|
|
18424
|
-
const _hoisted_1$
|
|
18425
|
-
const _sfc_main$
|
|
18424
|
+
const _hoisted_1$17 = { class: "lupa-search-box-product-price" };
|
|
18425
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
18426
18426
|
__name: "SearchBoxProductPrice",
|
|
18427
18427
|
props: {
|
|
18428
18428
|
item: {},
|
|
@@ -18440,13 +18440,13 @@ and ensure you are accounting for this risk.
|
|
|
18440
18440
|
);
|
|
18441
18441
|
});
|
|
18442
18442
|
return (_ctx, _cache) => {
|
|
18443
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18443
|
+
return openBlock(), createElementBlock("div", _hoisted_1$17, [
|
|
18444
18444
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
18445
18445
|
]);
|
|
18446
18446
|
};
|
|
18447
18447
|
}
|
|
18448
18448
|
});
|
|
18449
|
-
const _sfc_main$
|
|
18449
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
18450
18450
|
__name: "SearchBoxProductRegularPrice",
|
|
18451
18451
|
props: {
|
|
18452
18452
|
item: {},
|
|
@@ -18473,12 +18473,12 @@ and ensure you are accounting for this risk.
|
|
|
18473
18473
|
};
|
|
18474
18474
|
}
|
|
18475
18475
|
});
|
|
18476
|
-
const _hoisted_1$
|
|
18477
|
-
const _hoisted_2$
|
|
18478
|
-
const _hoisted_3$
|
|
18479
|
-
const _hoisted_4$
|
|
18480
|
-
const _hoisted_5$
|
|
18481
|
-
const _sfc_main$
|
|
18476
|
+
const _hoisted_1$16 = ["innerHTML"];
|
|
18477
|
+
const _hoisted_2$O = { key: 0 };
|
|
18478
|
+
const _hoisted_3$B = { key: 1 };
|
|
18479
|
+
const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
|
|
18480
|
+
const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
|
|
18481
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
18482
18482
|
__name: "SearchBoxProductCustom",
|
|
18483
18483
|
props: {
|
|
18484
18484
|
item: {},
|
|
@@ -18504,20 +18504,20 @@ and ensure you are accounting for this risk.
|
|
|
18504
18504
|
key: 0,
|
|
18505
18505
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
18506
18506
|
innerHTML: text.value
|
|
18507
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
18507
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$16)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
18508
18508
|
key: 1,
|
|
18509
18509
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
18510
18510
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
18511
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
18512
|
-
createBaseVNode("div", _hoisted_4$
|
|
18513
|
-
createBaseVNode("div", _hoisted_5$
|
|
18511
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$O, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$B, [
|
|
18512
|
+
createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
|
|
18513
|
+
createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
|
|
18514
18514
|
]))
|
|
18515
18515
|
], 16));
|
|
18516
18516
|
};
|
|
18517
18517
|
}
|
|
18518
18518
|
});
|
|
18519
|
-
const _hoisted_1$
|
|
18520
|
-
const _sfc_main$
|
|
18519
|
+
const _hoisted_1$15 = ["innerHTML"];
|
|
18520
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
18521
18521
|
__name: "SearchBoxProductCustomHtml",
|
|
18522
18522
|
props: {
|
|
18523
18523
|
item: {},
|
|
@@ -18542,7 +18542,7 @@ and ensure you are accounting for this risk.
|
|
|
18542
18542
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
18543
18543
|
class: className.value,
|
|
18544
18544
|
innerHTML: text.value
|
|
18545
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
18545
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$15);
|
|
18546
18546
|
};
|
|
18547
18547
|
}
|
|
18548
18548
|
});
|
|
@@ -18776,10 +18776,10 @@ and ensure you are accounting for this risk.
|
|
|
18776
18776
|
setRelatedCategoryChildren
|
|
18777
18777
|
};
|
|
18778
18778
|
});
|
|
18779
|
-
const _hoisted_1$
|
|
18780
|
-
const _hoisted_2$
|
|
18781
|
-
const _hoisted_3$
|
|
18782
|
-
const _sfc_main$
|
|
18779
|
+
const _hoisted_1$14 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
18780
|
+
const _hoisted_2$N = { class: "lupa-search-box-product-addtocart" };
|
|
18781
|
+
const _hoisted_3$A = ["onClick", "disabled"];
|
|
18782
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
18783
18783
|
__name: "SearchBoxProductAddToCart",
|
|
18784
18784
|
props: {
|
|
18785
18785
|
item: {},
|
|
@@ -18812,37 +18812,37 @@ and ensure you are accounting for this risk.
|
|
|
18812
18812
|
loading.value = false;
|
|
18813
18813
|
});
|
|
18814
18814
|
return (_ctx, _cache) => {
|
|
18815
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18816
|
-
createBaseVNode("div", _hoisted_2$
|
|
18815
|
+
return openBlock(), createElementBlock("div", _hoisted_1$14, [
|
|
18816
|
+
createBaseVNode("div", _hoisted_2$N, [
|
|
18817
18817
|
createBaseVNode("button", {
|
|
18818
18818
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
18819
18819
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
18820
18820
|
"data-cy": "lupa-add-to-cart",
|
|
18821
18821
|
type: "button",
|
|
18822
18822
|
disabled: !inStockValue.value || loading.value
|
|
18823
|
-
}, toDisplayString(label.value), 11, _hoisted_3$
|
|
18823
|
+
}, toDisplayString(label.value), 11, _hoisted_3$A)
|
|
18824
18824
|
])
|
|
18825
18825
|
]);
|
|
18826
18826
|
};
|
|
18827
18827
|
}
|
|
18828
18828
|
});
|
|
18829
|
-
const _hoisted_1$
|
|
18829
|
+
const _hoisted_1$13 = {
|
|
18830
18830
|
key: 1,
|
|
18831
18831
|
class: "lupa-search-box-element-badge-wrapper"
|
|
18832
18832
|
};
|
|
18833
18833
|
const __default__$4 = {
|
|
18834
18834
|
components: {
|
|
18835
|
-
SearchBoxProductImage: _sfc_main$
|
|
18836
|
-
SearchBoxProductTitle: _sfc_main$
|
|
18837
|
-
SearchBoxProductDescription: _sfc_main$
|
|
18838
|
-
SearchBoxProductPrice: _sfc_main$
|
|
18839
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
18840
|
-
SearchBoxProductCustom: _sfc_main$
|
|
18841
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
18842
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
18835
|
+
SearchBoxProductImage: _sfc_main$1i,
|
|
18836
|
+
SearchBoxProductTitle: _sfc_main$1h,
|
|
18837
|
+
SearchBoxProductDescription: _sfc_main$1g,
|
|
18838
|
+
SearchBoxProductPrice: _sfc_main$1f,
|
|
18839
|
+
SearchBoxProductRegularPrice: _sfc_main$1e,
|
|
18840
|
+
SearchBoxProductCustom: _sfc_main$1d,
|
|
18841
|
+
SearchBoxProductCustomHtml: _sfc_main$1c,
|
|
18842
|
+
SearchBoxProductAddToCart: _sfc_main$1b
|
|
18843
18843
|
}
|
|
18844
18844
|
};
|
|
18845
|
-
const _sfc_main$
|
|
18845
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
18846
18846
|
__name: "SearchBoxProductElement",
|
|
18847
18847
|
props: {
|
|
18848
18848
|
item: {},
|
|
@@ -18905,7 +18905,7 @@ and ensure you are accounting for this risk.
|
|
|
18905
18905
|
class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
|
|
18906
18906
|
inStock: _ctx.isInStock
|
|
18907
18907
|
}, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
|
|
18908
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
18908
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$13, [
|
|
18909
18909
|
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
18910
18910
|
key: 0,
|
|
18911
18911
|
item: enhancedItem.value,
|
|
@@ -18919,14 +18919,14 @@ and ensure you are accounting for this risk.
|
|
|
18919
18919
|
};
|
|
18920
18920
|
}
|
|
18921
18921
|
}));
|
|
18922
|
-
const _hoisted_1$
|
|
18923
|
-
const _hoisted_2$
|
|
18924
|
-
const _hoisted_3$
|
|
18925
|
-
const _hoisted_4$
|
|
18922
|
+
const _hoisted_1$12 = { class: "lupa-badge-title" };
|
|
18923
|
+
const _hoisted_2$M = ["src"];
|
|
18924
|
+
const _hoisted_3$z = { key: 1 };
|
|
18925
|
+
const _hoisted_4$q = {
|
|
18926
18926
|
key: 0,
|
|
18927
18927
|
class: "lupa-badge-full-text"
|
|
18928
18928
|
};
|
|
18929
|
-
const _sfc_main$
|
|
18929
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
18930
18930
|
__name: "SearchResultGeneratedBadge",
|
|
18931
18931
|
props: {
|
|
18932
18932
|
options: {},
|
|
@@ -18959,20 +18959,20 @@ and ensure you are accounting for this risk.
|
|
|
18959
18959
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
18960
18960
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
18961
18961
|
}, [
|
|
18962
|
-
createBaseVNode("span", _hoisted_1$
|
|
18962
|
+
createBaseVNode("span", _hoisted_1$12, [
|
|
18963
18963
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
18964
18964
|
key: 0,
|
|
18965
18965
|
src: image.value
|
|
18966
|
-
}, null, 8, _hoisted_2$
|
|
18967
|
-
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
18966
|
+
}, null, 8, _hoisted_2$M)) : createCommentVNode("", true),
|
|
18967
|
+
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
18968
18968
|
]),
|
|
18969
|
-
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
18969
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
18970
18970
|
], 6);
|
|
18971
18971
|
};
|
|
18972
18972
|
}
|
|
18973
18973
|
});
|
|
18974
|
-
const _hoisted_1
|
|
18975
|
-
const _sfc_main$
|
|
18974
|
+
const _hoisted_1$11 = { class: "lupa-generated-badges" };
|
|
18975
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
18976
18976
|
__name: "SearchResultGeneratedBadges",
|
|
18977
18977
|
props: {
|
|
18978
18978
|
options: {}
|
|
@@ -18998,9 +18998,9 @@ and ensure you are accounting for this risk.
|
|
|
18998
18998
|
})).filter((b) => Boolean(b.id));
|
|
18999
18999
|
});
|
|
19000
19000
|
return (_ctx, _cache) => {
|
|
19001
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
19001
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
19002
19002
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
19003
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19003
|
+
return openBlock(), createBlock(_sfc_main$19, {
|
|
19004
19004
|
key: badge.id,
|
|
19005
19005
|
badge,
|
|
19006
19006
|
options: _ctx.options
|
|
@@ -19010,8 +19010,8 @@ and ensure you are accounting for this risk.
|
|
|
19010
19010
|
};
|
|
19011
19011
|
}
|
|
19012
19012
|
});
|
|
19013
|
-
const _hoisted_1$
|
|
19014
|
-
const _sfc_main$
|
|
19013
|
+
const _hoisted_1$10 = ["innerHTML"];
|
|
19014
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
19015
19015
|
__name: "CustomBadge",
|
|
19016
19016
|
props: {
|
|
19017
19017
|
badge: {}
|
|
@@ -19032,12 +19032,12 @@ and ensure you are accounting for this risk.
|
|
|
19032
19032
|
return openBlock(), createElementBlock("div", {
|
|
19033
19033
|
class: normalizeClass(className.value),
|
|
19034
19034
|
innerHTML: text.value
|
|
19035
|
-
}, null, 10, _hoisted_1$
|
|
19035
|
+
}, null, 10, _hoisted_1$10);
|
|
19036
19036
|
};
|
|
19037
19037
|
}
|
|
19038
19038
|
});
|
|
19039
|
-
const _hoisted_1
|
|
19040
|
-
const _sfc_main$
|
|
19039
|
+
const _hoisted_1$$ = { class: "lupa-text-badges" };
|
|
19040
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
19041
19041
|
__name: "TextBadge",
|
|
19042
19042
|
props: {
|
|
19043
19043
|
badge: {}
|
|
@@ -19052,7 +19052,7 @@ and ensure you are accounting for this risk.
|
|
|
19052
19052
|
return badges.value.slice(0, props.badge.maxItems);
|
|
19053
19053
|
});
|
|
19054
19054
|
return (_ctx, _cache) => {
|
|
19055
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
19055
|
+
return openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
19056
19056
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
19057
19057
|
return openBlock(), createElementBlock("div", {
|
|
19058
19058
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -19063,9 +19063,9 @@ and ensure you are accounting for this risk.
|
|
|
19063
19063
|
};
|
|
19064
19064
|
}
|
|
19065
19065
|
});
|
|
19066
|
-
const _hoisted_1$
|
|
19067
|
-
const _hoisted_2$
|
|
19068
|
-
const _sfc_main$
|
|
19066
|
+
const _hoisted_1$_ = { class: "lupa-image-badges" };
|
|
19067
|
+
const _hoisted_2$L = ["src"];
|
|
19068
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
19069
19069
|
__name: "ImageBadge",
|
|
19070
19070
|
props: {
|
|
19071
19071
|
badge: {}
|
|
@@ -19085,7 +19085,7 @@ and ensure you are accounting for this risk.
|
|
|
19085
19085
|
return `${props.badge.rootImageUrl}${src}`;
|
|
19086
19086
|
};
|
|
19087
19087
|
return (_ctx, _cache) => {
|
|
19088
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19088
|
+
return openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
19089
19089
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
19090
19090
|
return openBlock(), createElementBlock("div", {
|
|
19091
19091
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -19093,22 +19093,22 @@ and ensure you are accounting for this risk.
|
|
|
19093
19093
|
}, [
|
|
19094
19094
|
createBaseVNode("img", {
|
|
19095
19095
|
src: getImageUrl(item)
|
|
19096
|
-
}, null, 8, _hoisted_2$
|
|
19096
|
+
}, null, 8, _hoisted_2$L)
|
|
19097
19097
|
]);
|
|
19098
19098
|
}), 128))
|
|
19099
19099
|
]);
|
|
19100
19100
|
};
|
|
19101
19101
|
}
|
|
19102
19102
|
});
|
|
19103
|
-
const _hoisted_1$
|
|
19103
|
+
const _hoisted_1$Z = { id: "lupa-search-results-badges" };
|
|
19104
19104
|
const __default__$3 = {
|
|
19105
19105
|
components: {
|
|
19106
|
-
CustomBadge: _sfc_main$
|
|
19107
|
-
TextBadge: _sfc_main$
|
|
19108
|
-
ImageBadge: _sfc_main$
|
|
19106
|
+
CustomBadge: _sfc_main$17,
|
|
19107
|
+
TextBadge: _sfc_main$16,
|
|
19108
|
+
ImageBadge: _sfc_main$15
|
|
19109
19109
|
}
|
|
19110
19110
|
};
|
|
19111
|
-
const _sfc_main$
|
|
19111
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
19112
19112
|
__name: "SearchResultsBadgeWrapper",
|
|
19113
19113
|
props: {
|
|
19114
19114
|
position: {},
|
|
@@ -19169,7 +19169,7 @@ and ensure you are accounting for this risk.
|
|
|
19169
19169
|
}
|
|
19170
19170
|
};
|
|
19171
19171
|
return (_ctx, _cache) => {
|
|
19172
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19172
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
19173
19173
|
createBaseVNode("div", {
|
|
19174
19174
|
id: "lupa-badges",
|
|
19175
19175
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -19180,7 +19180,7 @@ and ensure you are accounting for this risk.
|
|
|
19180
19180
|
badge
|
|
19181
19181
|
}, null, 8, ["badge"]);
|
|
19182
19182
|
}), 128)),
|
|
19183
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
19183
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$18, {
|
|
19184
19184
|
key: 0,
|
|
19185
19185
|
options: _ctx.options
|
|
19186
19186
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -19189,13 +19189,13 @@ and ensure you are accounting for this risk.
|
|
|
19189
19189
|
};
|
|
19190
19190
|
}
|
|
19191
19191
|
}));
|
|
19192
|
-
const _hoisted_1$
|
|
19193
|
-
const _hoisted_2$
|
|
19194
|
-
const _hoisted_3$
|
|
19192
|
+
const _hoisted_1$Y = ["href"];
|
|
19193
|
+
const _hoisted_2$K = { class: "lupa-search-box-product-details-section" };
|
|
19194
|
+
const _hoisted_3$y = {
|
|
19195
19195
|
key: 0,
|
|
19196
19196
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
19197
19197
|
};
|
|
19198
|
-
const _sfc_main$
|
|
19198
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
19199
19199
|
__name: "SearchBoxProduct",
|
|
19200
19200
|
props: {
|
|
19201
19201
|
item: {},
|
|
@@ -19281,7 +19281,7 @@ and ensure you are accounting for this risk.
|
|
|
19281
19281
|
style: normalizeStyle(imageStyleOverride.value)
|
|
19282
19282
|
}, [
|
|
19283
19283
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
19284
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19284
|
+
return openBlock(), createBlock(_sfc_main$1a, {
|
|
19285
19285
|
class: "lupa-search-box-product-element",
|
|
19286
19286
|
item: _ctx.item,
|
|
19287
19287
|
element,
|
|
@@ -19291,10 +19291,10 @@ and ensure you are accounting for this risk.
|
|
|
19291
19291
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
19292
19292
|
}), 128))
|
|
19293
19293
|
], 4),
|
|
19294
|
-
createBaseVNode("div", _hoisted_2$
|
|
19294
|
+
createBaseVNode("div", _hoisted_2$K, [
|
|
19295
19295
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
19296
19296
|
var _a;
|
|
19297
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19297
|
+
return openBlock(), createBlock(_sfc_main$1a, {
|
|
19298
19298
|
key: element.key,
|
|
19299
19299
|
class: "lupa-search-box-product-element",
|
|
19300
19300
|
item: _ctx.item,
|
|
@@ -19305,7 +19305,7 @@ and ensure you are accounting for this risk.
|
|
|
19305
19305
|
badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
|
|
19306
19306
|
name: "badges",
|
|
19307
19307
|
fn: withCtx(() => [
|
|
19308
|
-
createVNode(_sfc_main$
|
|
19308
|
+
createVNode(_sfc_main$14, {
|
|
19309
19309
|
options: badgeOptions.value,
|
|
19310
19310
|
position: "card"
|
|
19311
19311
|
}, null, 8, ["options"])
|
|
@@ -19315,8 +19315,8 @@ and ensure you are accounting for this risk.
|
|
|
19315
19315
|
]), 1032, ["item", "element", "labels", "link"]);
|
|
19316
19316
|
}), 128))
|
|
19317
19317
|
]),
|
|
19318
|
-
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
19319
|
-
createVNode(_sfc_main$
|
|
19318
|
+
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$y, [
|
|
19319
|
+
createVNode(_sfc_main$1a, {
|
|
19320
19320
|
class: "lupa-search-box-product-element",
|
|
19321
19321
|
item: _ctx.item,
|
|
19322
19322
|
element: addToCartElement.value,
|
|
@@ -19325,7 +19325,7 @@ and ensure you are accounting for this risk.
|
|
|
19325
19325
|
isInStock: isInStock.value
|
|
19326
19326
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
19327
19327
|
])) : createCommentVNode("", true)
|
|
19328
|
-
], 16, _hoisted_1$
|
|
19328
|
+
], 16, _hoisted_1$Y);
|
|
19329
19329
|
};
|
|
19330
19330
|
}
|
|
19331
19331
|
});
|
|
@@ -19386,8 +19386,8 @@ and ensure you are accounting for this risk.
|
|
|
19386
19386
|
};
|
|
19387
19387
|
return { trackSearch, trackResults, trackEvent };
|
|
19388
19388
|
});
|
|
19389
|
-
const _hoisted_1$
|
|
19390
|
-
const _sfc_main$
|
|
19389
|
+
const _hoisted_1$X = { id: "lupa-search-box-products" };
|
|
19390
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
19391
19391
|
__name: "SearchBoxProducts",
|
|
19392
19392
|
props: {
|
|
19393
19393
|
items: {},
|
|
@@ -19448,7 +19448,7 @@ and ensure you are accounting for this risk.
|
|
|
19448
19448
|
handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
|
|
19449
19449
|
};
|
|
19450
19450
|
return (_ctx, _cache) => {
|
|
19451
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19451
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
19452
19452
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
19453
19453
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
19454
19454
|
key: index,
|
|
@@ -19460,7 +19460,7 @@ and ensure you are accounting for this risk.
|
|
|
19460
19460
|
itemClicked: handleProductClick
|
|
19461
19461
|
});
|
|
19462
19462
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
19463
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19463
|
+
return openBlock(), createBlock(_sfc_main$13, {
|
|
19464
19464
|
key: index,
|
|
19465
19465
|
item,
|
|
19466
19466
|
panelOptions: _ctx.panelOptions,
|
|
@@ -19475,9 +19475,9 @@ and ensure you are accounting for this risk.
|
|
|
19475
19475
|
};
|
|
19476
19476
|
}
|
|
19477
19477
|
});
|
|
19478
|
-
const _hoisted_1$
|
|
19479
|
-
const _hoisted_2$
|
|
19480
|
-
const _sfc_main
|
|
19478
|
+
const _hoisted_1$W = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
19479
|
+
const _hoisted_2$J = { key: 0 };
|
|
19480
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
19481
19481
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
19482
19482
|
props: {
|
|
19483
19483
|
options: {},
|
|
@@ -19507,19 +19507,19 @@ and ensure you are accounting for this risk.
|
|
|
19507
19507
|
emit2("goToResults");
|
|
19508
19508
|
};
|
|
19509
19509
|
return (_ctx, _cache) => {
|
|
19510
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19510
|
+
return openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
19511
19511
|
createBaseVNode("button", {
|
|
19512
19512
|
class: "lupa-search-box-documents-go-to-results-button",
|
|
19513
19513
|
onClick: goToResults
|
|
19514
19514
|
}, [
|
|
19515
19515
|
createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
|
|
19516
|
-
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
19516
|
+
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$J, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
|
|
19517
19517
|
])
|
|
19518
19518
|
]);
|
|
19519
19519
|
};
|
|
19520
19520
|
}
|
|
19521
19521
|
});
|
|
19522
|
-
const _sfc_main$
|
|
19522
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
19523
19523
|
__name: "SearchBoxProductsWrapper",
|
|
19524
19524
|
props: {
|
|
19525
19525
|
panel: {},
|
|
@@ -19576,7 +19576,7 @@ and ensure you are accounting for this risk.
|
|
|
19576
19576
|
watch(() => props.panel.limit, getItemsDebounced);
|
|
19577
19577
|
return (_ctx, _cache) => {
|
|
19578
19578
|
var _a, _b;
|
|
19579
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19579
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
19580
19580
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19581
19581
|
panelOptions: _ctx.panel,
|
|
19582
19582
|
labels: _ctx.labels,
|
|
@@ -19586,7 +19586,7 @@ and ensure you are accounting for this risk.
|
|
|
19586
19586
|
default: withCtx(() => {
|
|
19587
19587
|
var _a2;
|
|
19588
19588
|
return [
|
|
19589
|
-
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main
|
|
19589
|
+
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$11, {
|
|
19590
19590
|
key: 0,
|
|
19591
19591
|
options: _ctx.searchBoxOptions,
|
|
19592
19592
|
panel: _ctx.panel,
|
|
@@ -19607,7 +19607,7 @@ and ensure you are accounting for this risk.
|
|
|
19607
19607
|
};
|
|
19608
19608
|
}
|
|
19609
19609
|
});
|
|
19610
|
-
const _sfc_main
|
|
19610
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
19611
19611
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
19612
19612
|
props: {
|
|
19613
19613
|
panel: {},
|
|
@@ -19679,7 +19679,7 @@ and ensure you are accounting for this risk.
|
|
|
19679
19679
|
});
|
|
19680
19680
|
return (_ctx, _cache) => {
|
|
19681
19681
|
var _a, _b;
|
|
19682
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19682
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
19683
19683
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19684
19684
|
panelOptions: documentPanelOptions.value,
|
|
19685
19685
|
labels: _ctx.labels,
|
|
@@ -19697,31 +19697,31 @@ and ensure you are accounting for this risk.
|
|
|
19697
19697
|
};
|
|
19698
19698
|
}
|
|
19699
19699
|
});
|
|
19700
|
-
const _hoisted_1$
|
|
19700
|
+
const _hoisted_1$V = {
|
|
19701
19701
|
key: 0,
|
|
19702
19702
|
id: "lupa-search-box-panel"
|
|
19703
19703
|
};
|
|
19704
|
-
const _hoisted_2$
|
|
19705
|
-
const _hoisted_3$
|
|
19704
|
+
const _hoisted_2$I = ["data-cy"];
|
|
19705
|
+
const _hoisted_3$x = {
|
|
19706
19706
|
key: 0,
|
|
19707
19707
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
19708
19708
|
};
|
|
19709
|
-
const _hoisted_4$
|
|
19709
|
+
const _hoisted_4$p = {
|
|
19710
19710
|
key: 1,
|
|
19711
19711
|
class: "lupa-panel-title"
|
|
19712
19712
|
};
|
|
19713
|
-
const _hoisted_5$
|
|
19713
|
+
const _hoisted_5$g = {
|
|
19714
19714
|
key: 1,
|
|
19715
19715
|
id: "lupa-search-box-panel"
|
|
19716
19716
|
};
|
|
19717
19717
|
const __default__$2 = {
|
|
19718
19718
|
components: {
|
|
19719
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
19720
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
19721
|
-
SearchBoxRelatedSourceWrapper: _sfc_main
|
|
19719
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1k,
|
|
19720
|
+
SearchBoxProductsWrapper: _sfc_main$10,
|
|
19721
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$$
|
|
19722
19722
|
}
|
|
19723
19723
|
};
|
|
19724
|
-
const _sfc_main$
|
|
19724
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
19725
19725
|
__name: "SearchBoxMainPanel",
|
|
19726
19726
|
props: {
|
|
19727
19727
|
options: {},
|
|
@@ -19877,7 +19877,7 @@ and ensure you are accounting for this risk.
|
|
|
19877
19877
|
ref_key: "panelContainer",
|
|
19878
19878
|
ref: panelContainer
|
|
19879
19879
|
}, [
|
|
19880
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
19880
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
19881
19881
|
labels.value.closePanel ? (openBlock(), createElementBlock("a", {
|
|
19882
19882
|
key: 0,
|
|
19883
19883
|
class: "lupa-search-box-close-panel",
|
|
@@ -19899,8 +19899,8 @@ and ensure you are accounting for this risk.
|
|
|
19899
19899
|
style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
|
|
19900
19900
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
19901
19901
|
}, [
|
|
19902
|
-
((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
19903
|
-
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
19902
|
+
((_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),
|
|
19903
|
+
((_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),
|
|
19904
19904
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
19905
19905
|
key: 2,
|
|
19906
19906
|
panel,
|
|
@@ -19922,21 +19922,21 @@ and ensure you are accounting for this risk.
|
|
|
19922
19922
|
key: "0"
|
|
19923
19923
|
} : void 0
|
|
19924
19924
|
]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
19925
|
-
], 14, _hoisted_2$
|
|
19925
|
+
], 14, _hoisted_2$I);
|
|
19926
19926
|
}), 128))
|
|
19927
19927
|
], 4),
|
|
19928
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
19928
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1n, {
|
|
19929
19929
|
key: 1,
|
|
19930
19930
|
labels: labels.value
|
|
19931
19931
|
}, null, 8, ["labels"])) : createCommentVNode("", true),
|
|
19932
|
-
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$
|
|
19932
|
+
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1q, {
|
|
19933
19933
|
key: 2,
|
|
19934
19934
|
labels: labels.value,
|
|
19935
19935
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
19936
19936
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
19937
19937
|
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
19938
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
19939
|
-
createVNode(_sfc_main$
|
|
19938
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
|
|
19939
|
+
createVNode(_sfc_main$1o, {
|
|
19940
19940
|
options: _ctx.options.history,
|
|
19941
19941
|
history: history.value,
|
|
19942
19942
|
onGoToResults: handleGoToResults,
|
|
@@ -19961,9 +19961,9 @@ and ensure you are accounting for this risk.
|
|
|
19961
19961
|
const elements = getElements(triggers);
|
|
19962
19962
|
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
19963
19963
|
};
|
|
19964
|
-
const _hoisted_1$
|
|
19965
|
-
const _hoisted_2$
|
|
19966
|
-
const _sfc_main$
|
|
19964
|
+
const _hoisted_1$U = { id: "lupa-search-box" };
|
|
19965
|
+
const _hoisted_2$H = { class: "lupa-search-box-wrapper" };
|
|
19966
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
19967
19967
|
__name: "SearchBox",
|
|
19968
19968
|
props: {
|
|
19969
19969
|
options: {},
|
|
@@ -20223,9 +20223,9 @@ and ensure you are accounting for this risk.
|
|
|
20223
20223
|
};
|
|
20224
20224
|
return (_ctx, _cache) => {
|
|
20225
20225
|
var _a2;
|
|
20226
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20227
|
-
createBaseVNode("div", _hoisted_2$
|
|
20228
|
-
createVNode(_sfc_main$
|
|
20226
|
+
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
20227
|
+
createBaseVNode("div", _hoisted_2$H, [
|
|
20228
|
+
createVNode(_sfc_main$1r, {
|
|
20229
20229
|
options: inputOptions.value,
|
|
20230
20230
|
suggestedValue: suggestedValue.value,
|
|
20231
20231
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -20238,7 +20238,7 @@ and ensure you are accounting for this risk.
|
|
|
20238
20238
|
onSearch: handleSearch,
|
|
20239
20239
|
onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
|
|
20240
20240
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
20241
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
20241
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$_, {
|
|
20242
20242
|
key: 0,
|
|
20243
20243
|
options: panelOptions.value,
|
|
20244
20244
|
inputValue: inputValue.value,
|
|
@@ -20327,20 +20327,20 @@ and ensure you are accounting for this risk.
|
|
|
20327
20327
|
}
|
|
20328
20328
|
return searchParams;
|
|
20329
20329
|
};
|
|
20330
|
-
const _hoisted_1$
|
|
20330
|
+
const _hoisted_1$T = {
|
|
20331
20331
|
key: 0,
|
|
20332
20332
|
id: "lupa-search-results-did-you-mean"
|
|
20333
20333
|
};
|
|
20334
|
-
const _hoisted_2$
|
|
20334
|
+
const _hoisted_2$G = {
|
|
20335
20335
|
key: 0,
|
|
20336
20336
|
"data-cy": "suggested-search-text-label"
|
|
20337
20337
|
};
|
|
20338
|
-
const _hoisted_3$
|
|
20338
|
+
const _hoisted_3$w = {
|
|
20339
20339
|
key: 1,
|
|
20340
20340
|
"data-cy": "did-you-mean-label"
|
|
20341
20341
|
};
|
|
20342
|
-
const _hoisted_4$
|
|
20343
|
-
const _sfc_main$
|
|
20342
|
+
const _hoisted_4$o = { key: 1 };
|
|
20343
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
20344
20344
|
__name: "SearchResultsDidYouMean",
|
|
20345
20345
|
props: {
|
|
20346
20346
|
labels: {}
|
|
@@ -20372,8 +20372,8 @@ and ensure you are accounting for this risk.
|
|
|
20372
20372
|
paramStore.goToResults({ searchText, facet });
|
|
20373
20373
|
};
|
|
20374
20374
|
return (_ctx, _cache) => {
|
|
20375
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20376
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
20375
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
20376
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$G, [
|
|
20377
20377
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
20378
20378
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
20379
20379
|
createBaseVNode("span", {
|
|
@@ -20382,7 +20382,7 @@ and ensure you are accounting for this risk.
|
|
|
20382
20382
|
]);
|
|
20383
20383
|
}), 128))
|
|
20384
20384
|
])) : createCommentVNode("", true),
|
|
20385
|
-
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20385
|
+
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
|
|
20386
20386
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
20387
20387
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
20388
20388
|
label.includes("{1}") ? (openBlock(), createElementBlock("span", {
|
|
@@ -20390,7 +20390,7 @@ and ensure you are accounting for this risk.
|
|
|
20390
20390
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
20391
20391
|
"data-cy": "did-you-mean-value",
|
|
20392
20392
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
20393
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
20393
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
|
|
20394
20394
|
]);
|
|
20395
20395
|
}), 128))
|
|
20396
20396
|
])) : createCommentVNode("", true)
|
|
@@ -20398,12 +20398,12 @@ and ensure you are accounting for this risk.
|
|
|
20398
20398
|
};
|
|
20399
20399
|
}
|
|
20400
20400
|
});
|
|
20401
|
-
const _hoisted_1$
|
|
20401
|
+
const _hoisted_1$S = {
|
|
20402
20402
|
key: 0,
|
|
20403
20403
|
class: "lupa-search-results-summary"
|
|
20404
20404
|
};
|
|
20405
|
-
const _hoisted_2$
|
|
20406
|
-
const _sfc_main$
|
|
20405
|
+
const _hoisted_2$F = ["innerHTML"];
|
|
20406
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
20407
20407
|
__name: "SearchResultsSummary",
|
|
20408
20408
|
props: {
|
|
20409
20409
|
label: {},
|
|
@@ -20418,8 +20418,8 @@ and ensure you are accounting for this risk.
|
|
|
20418
20418
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
20419
20419
|
});
|
|
20420
20420
|
return (_ctx, _cache) => {
|
|
20421
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20422
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
20421
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
20422
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$F),
|
|
20423
20423
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
20424
20424
|
key: 0,
|
|
20425
20425
|
class: "lupa-filter-clear",
|
|
@@ -20430,19 +20430,19 @@ and ensure you are accounting for this risk.
|
|
|
20430
20430
|
};
|
|
20431
20431
|
}
|
|
20432
20432
|
});
|
|
20433
|
-
const _hoisted_1$
|
|
20433
|
+
const _hoisted_1$R = {
|
|
20434
20434
|
key: 0,
|
|
20435
20435
|
class: "lupa-result-page-title",
|
|
20436
20436
|
"data-cy": "lupa-result-page-title"
|
|
20437
20437
|
};
|
|
20438
|
-
const _hoisted_2$
|
|
20439
|
-
const _hoisted_3$
|
|
20438
|
+
const _hoisted_2$E = { key: 0 };
|
|
20439
|
+
const _hoisted_3$v = {
|
|
20440
20440
|
key: 1,
|
|
20441
20441
|
class: "lupa-results-total-count"
|
|
20442
20442
|
};
|
|
20443
|
-
const _hoisted_4$
|
|
20444
|
-
const _hoisted_5$
|
|
20445
|
-
const _sfc_main$
|
|
20443
|
+
const _hoisted_4$n = { class: "lupa-results-total-count-number" };
|
|
20444
|
+
const _hoisted_5$f = ["innerHTML"];
|
|
20445
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
20446
20446
|
__name: "SearchResultsTitle",
|
|
20447
20447
|
props: {
|
|
20448
20448
|
options: {},
|
|
@@ -20481,16 +20481,16 @@ and ensure you are accounting for this risk.
|
|
|
20481
20481
|
});
|
|
20482
20482
|
return (_ctx, _cache) => {
|
|
20483
20483
|
return openBlock(), createElementBlock("div", null, [
|
|
20484
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
20484
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$R, [
|
|
20485
20485
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
20486
|
-
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
20487
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
20486
|
+
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$E, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
20487
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$v, [
|
|
20488
20488
|
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
20489
|
-
createBaseVNode("span", _hoisted_4$
|
|
20489
|
+
createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
|
|
20490
20490
|
createTextVNode(")")
|
|
20491
20491
|
])) : createCommentVNode("", true)
|
|
20492
20492
|
])) : createCommentVNode("", true),
|
|
20493
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
20493
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$X, {
|
|
20494
20494
|
key: 1,
|
|
20495
20495
|
label: summaryLabel.value
|
|
20496
20496
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -20498,21 +20498,21 @@ and ensure you are accounting for this risk.
|
|
|
20498
20498
|
key: 2,
|
|
20499
20499
|
class: "lupa-result-page-description-top",
|
|
20500
20500
|
innerHTML: descriptionTop.value
|
|
20501
|
-
}, null, 8, _hoisted_5$
|
|
20501
|
+
}, null, 8, _hoisted_5$f)) : createCommentVNode("", true)
|
|
20502
20502
|
]);
|
|
20503
20503
|
};
|
|
20504
20504
|
}
|
|
20505
20505
|
});
|
|
20506
|
-
const _hoisted_1$
|
|
20507
|
-
const _hoisted_2$
|
|
20506
|
+
const _hoisted_1$Q = { class: "lupa-search-result-filter-value" };
|
|
20507
|
+
const _hoisted_2$D = {
|
|
20508
20508
|
class: "lupa-current-filter-label",
|
|
20509
20509
|
"data-cy": "lupa-current-filter-label"
|
|
20510
20510
|
};
|
|
20511
|
-
const _hoisted_3$
|
|
20511
|
+
const _hoisted_3$u = {
|
|
20512
20512
|
class: "lupa-current-filter-value",
|
|
20513
20513
|
"data-cy": "lupa-current-filter-value"
|
|
20514
20514
|
};
|
|
20515
|
-
const _sfc_main$
|
|
20515
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
20516
20516
|
__name: "CurrentFilterDisplay",
|
|
20517
20517
|
props: {
|
|
20518
20518
|
filter: {}
|
|
@@ -20524,28 +20524,28 @@ and ensure you are accounting for this risk.
|
|
|
20524
20524
|
emit2("remove", { filter: props.filter });
|
|
20525
20525
|
};
|
|
20526
20526
|
return (_ctx, _cache) => {
|
|
20527
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20527
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
20528
20528
|
createBaseVNode("div", {
|
|
20529
20529
|
class: "lupa-current-filter-action",
|
|
20530
20530
|
onClick: handleClick
|
|
20531
20531
|
}, "⨉"),
|
|
20532
|
-
createBaseVNode("div", _hoisted_2$
|
|
20533
|
-
createBaseVNode("div", _hoisted_3$
|
|
20532
|
+
createBaseVNode("div", _hoisted_2$D, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
20533
|
+
createBaseVNode("div", _hoisted_3$u, toDisplayString(_ctx.filter.value), 1)
|
|
20534
20534
|
]);
|
|
20535
20535
|
};
|
|
20536
20536
|
}
|
|
20537
20537
|
});
|
|
20538
|
-
const _hoisted_1$
|
|
20539
|
-
const _hoisted_2$
|
|
20538
|
+
const _hoisted_1$P = { class: "lupa-filter-title-text" };
|
|
20539
|
+
const _hoisted_2$C = {
|
|
20540
20540
|
key: 0,
|
|
20541
20541
|
class: "lupa-filter-count"
|
|
20542
20542
|
};
|
|
20543
|
-
const _hoisted_3$
|
|
20543
|
+
const _hoisted_3$t = {
|
|
20544
20544
|
key: 0,
|
|
20545
20545
|
class: "filter-values"
|
|
20546
20546
|
};
|
|
20547
|
-
const _hoisted_4$
|
|
20548
|
-
const _sfc_main$
|
|
20547
|
+
const _hoisted_4$m = { class: "lupa-current-filter-list" };
|
|
20548
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
20549
20549
|
__name: "CurrentFilters",
|
|
20550
20550
|
props: {
|
|
20551
20551
|
options: {},
|
|
@@ -20618,19 +20618,19 @@ and ensure you are accounting for this risk.
|
|
|
20618
20618
|
class: "lupa-current-filter-title",
|
|
20619
20619
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
20620
20620
|
}, [
|
|
20621
|
-
createBaseVNode("div", _hoisted_1$
|
|
20621
|
+
createBaseVNode("div", _hoisted_1$P, [
|
|
20622
20622
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
20623
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
20623
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$C, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
20624
20624
|
]),
|
|
20625
20625
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
20626
20626
|
key: 0,
|
|
20627
20627
|
class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
20628
20628
|
}, null, 2)) : createCommentVNode("", true)
|
|
20629
20629
|
]),
|
|
20630
|
-
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20631
|
-
createBaseVNode("div", _hoisted_4$
|
|
20630
|
+
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
20631
|
+
createBaseVNode("div", _hoisted_4$m, [
|
|
20632
20632
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
|
|
20633
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20633
|
+
return openBlock(), createBlock(_sfc_main$V, {
|
|
20634
20634
|
key: filter2.key + "_" + filter2.value,
|
|
20635
20635
|
filter: filter2,
|
|
20636
20636
|
onRemove: handleRemove
|
|
@@ -20647,8 +20647,8 @@ and ensure you are accounting for this risk.
|
|
|
20647
20647
|
};
|
|
20648
20648
|
}
|
|
20649
20649
|
});
|
|
20650
|
-
const _hoisted_1$
|
|
20651
|
-
const _sfc_main$
|
|
20650
|
+
const _hoisted_1$O = ["href"];
|
|
20651
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
20652
20652
|
__name: "CategoryFilterItem",
|
|
20653
20653
|
props: {
|
|
20654
20654
|
options: {},
|
|
@@ -20685,20 +20685,20 @@ and ensure you are accounting for this risk.
|
|
|
20685
20685
|
"data-cy": "lupa-child-category-item",
|
|
20686
20686
|
href: urlLink.value,
|
|
20687
20687
|
onClick: handleNavigation
|
|
20688
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
20688
|
+
}, toDisplayString(title.value), 9, _hoisted_1$O)
|
|
20689
20689
|
], 2);
|
|
20690
20690
|
};
|
|
20691
20691
|
}
|
|
20692
20692
|
});
|
|
20693
|
-
const _hoisted_1$
|
|
20693
|
+
const _hoisted_1$N = {
|
|
20694
20694
|
class: "lupa-category-filter",
|
|
20695
20695
|
"data-cy": "lupa-category-filter"
|
|
20696
20696
|
};
|
|
20697
|
-
const _hoisted_2$
|
|
20698
|
-
const _hoisted_3$
|
|
20699
|
-
const _hoisted_4$
|
|
20700
|
-
const _hoisted_5$
|
|
20701
|
-
const _sfc_main$
|
|
20697
|
+
const _hoisted_2$B = { class: "lupa-category-back" };
|
|
20698
|
+
const _hoisted_3$s = ["href"];
|
|
20699
|
+
const _hoisted_4$l = ["href"];
|
|
20700
|
+
const _hoisted_5$e = { class: "lupa-child-category-list" };
|
|
20701
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
20702
20702
|
__name: "CategoryFilter",
|
|
20703
20703
|
props: {
|
|
20704
20704
|
options: {}
|
|
@@ -20786,14 +20786,14 @@ and ensure you are accounting for this risk.
|
|
|
20786
20786
|
};
|
|
20787
20787
|
__expose({ fetch: fetch2 });
|
|
20788
20788
|
return (_ctx, _cache) => {
|
|
20789
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20790
|
-
createBaseVNode("div", _hoisted_2$
|
|
20789
|
+
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
20790
|
+
createBaseVNode("div", _hoisted_2$B, [
|
|
20791
20791
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
20792
20792
|
key: 0,
|
|
20793
20793
|
"data-cy": "lupa-category-back",
|
|
20794
20794
|
href: backUrlLink.value,
|
|
20795
20795
|
onClick: handleNavigationBack
|
|
20796
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
20796
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$s)) : createCommentVNode("", true)
|
|
20797
20797
|
]),
|
|
20798
20798
|
createBaseVNode("div", {
|
|
20799
20799
|
class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -20803,11 +20803,11 @@ and ensure you are accounting for this risk.
|
|
|
20803
20803
|
href: parentUrlLink.value,
|
|
20804
20804
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
20805
20805
|
onClick: handleNavigationParent
|
|
20806
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
20806
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
|
|
20807
20807
|
], 2),
|
|
20808
|
-
createBaseVNode("div", _hoisted_5$
|
|
20808
|
+
createBaseVNode("div", _hoisted_5$e, [
|
|
20809
20809
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
20810
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20810
|
+
return openBlock(), createBlock(_sfc_main$T, {
|
|
20811
20811
|
key: getCategoryKey(child),
|
|
20812
20812
|
item: child,
|
|
20813
20813
|
options: _ctx.options
|
|
@@ -20818,14 +20818,14 @@ and ensure you are accounting for this risk.
|
|
|
20818
20818
|
};
|
|
20819
20819
|
}
|
|
20820
20820
|
});
|
|
20821
|
-
const _hoisted_1$
|
|
20821
|
+
const _hoisted_1$M = {
|
|
20822
20822
|
class: "lupa-search-result-facet-term-values",
|
|
20823
20823
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
20824
20824
|
};
|
|
20825
|
-
const _hoisted_2$
|
|
20826
|
-
const _hoisted_3$
|
|
20827
|
-
const _hoisted_4$
|
|
20828
|
-
const _hoisted_5$
|
|
20825
|
+
const _hoisted_2$A = ["placeholder"];
|
|
20826
|
+
const _hoisted_3$r = { class: "lupa-terms-list" };
|
|
20827
|
+
const _hoisted_4$k = ["onClick"];
|
|
20828
|
+
const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
|
|
20829
20829
|
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
20830
20830
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
20831
20831
|
const _hoisted_8$2 = {
|
|
@@ -20834,7 +20834,7 @@ and ensure you are accounting for this risk.
|
|
|
20834
20834
|
};
|
|
20835
20835
|
const _hoisted_9$2 = { key: 0 };
|
|
20836
20836
|
const _hoisted_10$1 = { key: 1 };
|
|
20837
|
-
const _sfc_main$
|
|
20837
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
20838
20838
|
__name: "TermFacet",
|
|
20839
20839
|
props: {
|
|
20840
20840
|
options: {},
|
|
@@ -20905,17 +20905,17 @@ and ensure you are accounting for this risk.
|
|
|
20905
20905
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
20906
20906
|
};
|
|
20907
20907
|
return (_ctx, _cache) => {
|
|
20908
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20908
|
+
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
20909
20909
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
20910
20910
|
key: 0,
|
|
20911
20911
|
class: "lupa-term-filter",
|
|
20912
20912
|
"data-cy": "lupa-term-filter",
|
|
20913
20913
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
20914
20914
|
placeholder: _ctx.options.labels.facetFilter
|
|
20915
|
-
}, null, 8, _hoisted_2$
|
|
20915
|
+
}, null, 8, _hoisted_2$A)), [
|
|
20916
20916
|
[vModelText, termFilter.value]
|
|
20917
20917
|
]) : createCommentVNode("", true),
|
|
20918
|
-
createBaseVNode("div", _hoisted_3$
|
|
20918
|
+
createBaseVNode("div", _hoisted_3$r, [
|
|
20919
20919
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
20920
20920
|
return openBlock(), createElementBlock("div", {
|
|
20921
20921
|
class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -20923,7 +20923,7 @@ and ensure you are accounting for this risk.
|
|
|
20923
20923
|
key: item.title,
|
|
20924
20924
|
onClick: ($event) => handleFacetClick(item)
|
|
20925
20925
|
}, [
|
|
20926
|
-
createBaseVNode("div", _hoisted_5$
|
|
20926
|
+
createBaseVNode("div", _hoisted_5$d, [
|
|
20927
20927
|
createBaseVNode("span", {
|
|
20928
20928
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
20929
20929
|
}, null, 2)
|
|
@@ -20932,7 +20932,7 @@ and ensure you are accounting for this risk.
|
|
|
20932
20932
|
createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
|
|
20933
20933
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
20934
20934
|
])
|
|
20935
|
-
], 10, _hoisted_4$
|
|
20935
|
+
], 10, _hoisted_4$k);
|
|
20936
20936
|
}), 128))
|
|
20937
20937
|
]),
|
|
20938
20938
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -21923,20 +21923,20 @@ and ensure you are accounting for this risk.
|
|
|
21923
21923
|
m.render = function(e2, t, r, i, n, o) {
|
|
21924
21924
|
return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
|
|
21925
21925
|
}, m.__file = "src/Slider.vue";
|
|
21926
|
-
const _hoisted_1$
|
|
21927
|
-
const _hoisted_2$
|
|
21926
|
+
const _hoisted_1$L = { class: "lupa-search-result-facet-stats-values" };
|
|
21927
|
+
const _hoisted_2$z = {
|
|
21928
21928
|
key: 0,
|
|
21929
21929
|
class: "lupa-stats-facet-summary"
|
|
21930
21930
|
};
|
|
21931
|
-
const _hoisted_3$
|
|
21931
|
+
const _hoisted_3$q = {
|
|
21932
21932
|
key: 1,
|
|
21933
21933
|
class: "lupa-stats-facet-summary-input"
|
|
21934
21934
|
};
|
|
21935
|
-
const _hoisted_4$
|
|
21935
|
+
const _hoisted_4$j = {
|
|
21936
21936
|
key: 0,
|
|
21937
21937
|
class: "lupa-stats-range-label"
|
|
21938
21938
|
};
|
|
21939
|
-
const _hoisted_5$
|
|
21939
|
+
const _hoisted_5$c = { class: "lupa-stats-from" };
|
|
21940
21940
|
const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
|
|
21941
21941
|
const _hoisted_7$5 = { key: 0 };
|
|
21942
21942
|
const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
@@ -21951,7 +21951,7 @@ and ensure you are accounting for this risk.
|
|
|
21951
21951
|
key: 2,
|
|
21952
21952
|
class: "lupa-stats-slider-wrapper"
|
|
21953
21953
|
};
|
|
21954
|
-
const _sfc_main$
|
|
21954
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
21955
21955
|
__name: "StatsFacet",
|
|
21956
21956
|
props: {
|
|
21957
21957
|
options: {},
|
|
@@ -22124,11 +22124,11 @@ and ensure you are accounting for this risk.
|
|
|
22124
22124
|
innerSliderRange.value = value;
|
|
22125
22125
|
};
|
|
22126
22126
|
return (_ctx, _cache) => {
|
|
22127
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22128
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22127
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
22128
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
|
|
22129
22129
|
createBaseVNode("div", null, [
|
|
22130
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
22131
|
-
createBaseVNode("div", _hoisted_5$
|
|
22130
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
22131
|
+
createBaseVNode("div", _hoisted_5$c, [
|
|
22132
22132
|
withDirectives(createBaseVNode("input", {
|
|
22133
22133
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
22134
22134
|
type: "text",
|
|
@@ -22191,18 +22191,18 @@ and ensure you are accounting for this risk.
|
|
|
22191
22191
|
};
|
|
22192
22192
|
}
|
|
22193
22193
|
});
|
|
22194
|
-
const _hoisted_1$
|
|
22195
|
-
const _hoisted_2$
|
|
22196
|
-
const _hoisted_3$
|
|
22197
|
-
const _hoisted_4$
|
|
22194
|
+
const _hoisted_1$K = { class: "lupa-term-checkbox-wrapper" };
|
|
22195
|
+
const _hoisted_2$y = { class: "lupa-term-checkbox-label" };
|
|
22196
|
+
const _hoisted_3$p = { class: "lupa-term-label" };
|
|
22197
|
+
const _hoisted_4$i = {
|
|
22198
22198
|
key: 0,
|
|
22199
22199
|
class: "lupa-term-count"
|
|
22200
22200
|
};
|
|
22201
|
-
const _hoisted_5$
|
|
22201
|
+
const _hoisted_5$b = {
|
|
22202
22202
|
key: 0,
|
|
22203
22203
|
class: "lupa-facet-level"
|
|
22204
22204
|
};
|
|
22205
|
-
const _sfc_main$
|
|
22205
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
22206
22206
|
__name: "HierarchyFacetLevel",
|
|
22207
22207
|
props: {
|
|
22208
22208
|
options: {},
|
|
@@ -22248,17 +22248,17 @@ and ensure you are accounting for this risk.
|
|
|
22248
22248
|
"data-cy": "lupa-facet-term",
|
|
22249
22249
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
22250
22250
|
}, [
|
|
22251
|
-
createBaseVNode("div", _hoisted_1$
|
|
22251
|
+
createBaseVNode("div", _hoisted_1$K, [
|
|
22252
22252
|
createBaseVNode("span", {
|
|
22253
22253
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
22254
22254
|
}, null, 2)
|
|
22255
22255
|
]),
|
|
22256
|
-
createBaseVNode("div", _hoisted_2$
|
|
22257
|
-
createBaseVNode("span", _hoisted_3$
|
|
22258
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
22256
|
+
createBaseVNode("div", _hoisted_2$y, [
|
|
22257
|
+
createBaseVNode("span", _hoisted_3$p, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
22258
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$i, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
22259
22259
|
])
|
|
22260
22260
|
]),
|
|
22261
|
-
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
22261
|
+
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
|
|
22262
22262
|
(openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
|
|
22263
22263
|
return openBlock(), createBlock(_component_HierarchyFacetLevel, {
|
|
22264
22264
|
key: itemChild.title,
|
|
@@ -22274,13 +22274,13 @@ and ensure you are accounting for this risk.
|
|
|
22274
22274
|
};
|
|
22275
22275
|
}
|
|
22276
22276
|
});
|
|
22277
|
-
const _hoisted_1$
|
|
22277
|
+
const _hoisted_1$J = {
|
|
22278
22278
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
22279
22279
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
22280
22280
|
};
|
|
22281
|
-
const _hoisted_2$
|
|
22282
|
-
const _hoisted_3$
|
|
22283
|
-
const _sfc_main$
|
|
22281
|
+
const _hoisted_2$x = { key: 0 };
|
|
22282
|
+
const _hoisted_3$o = ["placeholder"];
|
|
22283
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
22284
22284
|
__name: "HierarchyFacet",
|
|
22285
22285
|
props: {
|
|
22286
22286
|
options: {},
|
|
@@ -22330,19 +22330,19 @@ and ensure you are accounting for this risk.
|
|
|
22330
22330
|
showAll.value = true;
|
|
22331
22331
|
};
|
|
22332
22332
|
return (_ctx, _cache) => {
|
|
22333
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22334
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22333
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
22334
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
|
|
22335
22335
|
withDirectives(createBaseVNode("input", {
|
|
22336
22336
|
class: "lupa-term-filter",
|
|
22337
22337
|
"data-cy": "lupa-term-filter",
|
|
22338
22338
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
22339
22339
|
placeholder: _ctx.options.labels.facetFilter
|
|
22340
|
-
}, null, 8, _hoisted_3$
|
|
22340
|
+
}, null, 8, _hoisted_3$o), [
|
|
22341
22341
|
[vModelText, termFilter.value]
|
|
22342
22342
|
])
|
|
22343
22343
|
])) : createCommentVNode("", true),
|
|
22344
22344
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
22345
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22345
|
+
return openBlock(), createBlock(_sfc_main$P, {
|
|
22346
22346
|
key: item.title,
|
|
22347
22347
|
options: _ctx.options,
|
|
22348
22348
|
item,
|
|
@@ -22362,20 +22362,20 @@ and ensure you are accounting for this risk.
|
|
|
22362
22362
|
};
|
|
22363
22363
|
}
|
|
22364
22364
|
});
|
|
22365
|
-
const _hoisted_1$
|
|
22366
|
-
const _hoisted_2$
|
|
22365
|
+
const _hoisted_1$I = { class: "lupa-facet-label-text" };
|
|
22366
|
+
const _hoisted_2$w = {
|
|
22367
22367
|
key: 0,
|
|
22368
22368
|
class: "lupa-facet-content",
|
|
22369
22369
|
"data-cy": "lupa-facet-content"
|
|
22370
22370
|
};
|
|
22371
22371
|
const __default__$1 = {
|
|
22372
22372
|
components: {
|
|
22373
|
-
TermFacet: _sfc_main$
|
|
22374
|
-
StatsFacet: _sfc_main$
|
|
22375
|
-
HierarchyFacet: _sfc_main$
|
|
22373
|
+
TermFacet: _sfc_main$R,
|
|
22374
|
+
StatsFacet: _sfc_main$Q,
|
|
22375
|
+
HierarchyFacet: _sfc_main$O
|
|
22376
22376
|
}
|
|
22377
22377
|
};
|
|
22378
|
-
const _sfc_main$
|
|
22378
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
22379
22379
|
__name: "FacetDisplay",
|
|
22380
22380
|
props: {
|
|
22381
22381
|
options: {},
|
|
@@ -22487,12 +22487,12 @@ and ensure you are accounting for this risk.
|
|
|
22487
22487
|
"data-cy": "lupa-search-result-facet-label",
|
|
22488
22488
|
onClick: toggleFacet
|
|
22489
22489
|
}, [
|
|
22490
|
-
createBaseVNode("div", _hoisted_1$
|
|
22490
|
+
createBaseVNode("div", _hoisted_1$I, toDisplayString(facet.value.label), 1),
|
|
22491
22491
|
createBaseVNode("div", {
|
|
22492
22492
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
22493
22493
|
}, null, 2)
|
|
22494
22494
|
], 2),
|
|
22495
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22495
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
|
|
22496
22496
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
22497
22497
|
facet: facet.value,
|
|
22498
22498
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -22510,12 +22510,12 @@ and ensure you are accounting for this risk.
|
|
|
22510
22510
|
};
|
|
22511
22511
|
}
|
|
22512
22512
|
}));
|
|
22513
|
-
const _hoisted_1$
|
|
22514
|
-
const _hoisted_2$
|
|
22513
|
+
const _hoisted_1$H = { class: "lupa-search-result-facet-section" };
|
|
22514
|
+
const _hoisted_2$v = {
|
|
22515
22515
|
key: 0,
|
|
22516
22516
|
class: "lupa-facets-title"
|
|
22517
22517
|
};
|
|
22518
|
-
const _sfc_main$
|
|
22518
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
22519
22519
|
__name: "FacetList",
|
|
22520
22520
|
props: {
|
|
22521
22521
|
options: {},
|
|
@@ -22549,14 +22549,14 @@ and ensure you are accounting for this risk.
|
|
|
22549
22549
|
};
|
|
22550
22550
|
return (_ctx, _cache) => {
|
|
22551
22551
|
var _a;
|
|
22552
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22553
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22552
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
22553
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$v, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
22554
22554
|
createBaseVNode("div", {
|
|
22555
22555
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
22556
22556
|
}, [
|
|
22557
22557
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
22558
22558
|
var _a2;
|
|
22559
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22559
|
+
return openBlock(), createBlock(_sfc_main$N, {
|
|
22560
22560
|
key: facet.key,
|
|
22561
22561
|
facet,
|
|
22562
22562
|
currentFilters: currentFiltersValue.value,
|
|
@@ -22571,8 +22571,8 @@ and ensure you are accounting for this risk.
|
|
|
22571
22571
|
};
|
|
22572
22572
|
}
|
|
22573
22573
|
});
|
|
22574
|
-
const _hoisted_1$
|
|
22575
|
-
const _sfc_main$
|
|
22574
|
+
const _hoisted_1$G = ["onClick"];
|
|
22575
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
22576
22576
|
__name: "FacetsButton",
|
|
22577
22577
|
props: {
|
|
22578
22578
|
options: {}
|
|
@@ -22592,13 +22592,13 @@ and ensure you are accounting for this risk.
|
|
|
22592
22592
|
key: 0,
|
|
22593
22593
|
class: "lupa-facets-button-filter",
|
|
22594
22594
|
onClick: withModifiers(handleClick, ["stop"])
|
|
22595
|
-
}, toDisplayString(label.value), 9, _hoisted_1$
|
|
22595
|
+
}, toDisplayString(label.value), 9, _hoisted_1$G)) : createCommentVNode("", true);
|
|
22596
22596
|
};
|
|
22597
22597
|
}
|
|
22598
22598
|
});
|
|
22599
|
-
const _hoisted_1$
|
|
22600
|
-
const _hoisted_2$
|
|
22601
|
-
const _sfc_main$
|
|
22599
|
+
const _hoisted_1$F = { class: "lupa-search-result-facets" };
|
|
22600
|
+
const _hoisted_2$u = { class: "lupa-facets-filter-button-wrapper" };
|
|
22601
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
22602
22602
|
__name: "Facets",
|
|
22603
22603
|
props: {
|
|
22604
22604
|
options: {},
|
|
@@ -22681,8 +22681,8 @@ and ensure you are accounting for this risk.
|
|
|
22681
22681
|
emit2("filter");
|
|
22682
22682
|
};
|
|
22683
22683
|
return (_ctx, _cache) => {
|
|
22684
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22685
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
22684
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
22685
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$M, {
|
|
22686
22686
|
key: 0,
|
|
22687
22687
|
options: _ctx.options,
|
|
22688
22688
|
facets: regularFacets.value,
|
|
@@ -22692,8 +22692,8 @@ and ensure you are accounting for this risk.
|
|
|
22692
22692
|
onSelect: handleFacetSelect,
|
|
22693
22693
|
onClear: clear2
|
|
22694
22694
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
22695
|
-
createBaseVNode("div", _hoisted_2$
|
|
22696
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
22695
|
+
createBaseVNode("div", _hoisted_2$u, [
|
|
22696
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
22697
22697
|
key: 0,
|
|
22698
22698
|
options: _ctx.options,
|
|
22699
22699
|
onFilter: filter2
|
|
@@ -22703,11 +22703,11 @@ and ensure you are accounting for this risk.
|
|
|
22703
22703
|
};
|
|
22704
22704
|
}
|
|
22705
22705
|
});
|
|
22706
|
-
const _hoisted_1$
|
|
22706
|
+
const _hoisted_1$E = {
|
|
22707
22707
|
id: "lupa-search-result-filters",
|
|
22708
22708
|
class: "lupa-search-result-filters"
|
|
22709
22709
|
};
|
|
22710
|
-
const _sfc_main$
|
|
22710
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
22711
22711
|
__name: "SearchResultsFilters",
|
|
22712
22712
|
props: {
|
|
22713
22713
|
options: {},
|
|
@@ -22740,19 +22740,19 @@ and ensure you are accounting for this risk.
|
|
|
22740
22740
|
__expose({ fetch: fetch2 });
|
|
22741
22741
|
return (_ctx, _cache) => {
|
|
22742
22742
|
var _a;
|
|
22743
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22744
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
22743
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
22744
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$U, {
|
|
22745
22745
|
key: 0,
|
|
22746
22746
|
options: _ctx.options.currentFilters,
|
|
22747
22747
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
22748
22748
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
22749
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
22749
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$S, {
|
|
22750
22750
|
key: 1,
|
|
22751
22751
|
options: _ctx.options.categories,
|
|
22752
22752
|
ref_key: "categoryFilters",
|
|
22753
22753
|
ref: categoryFilters
|
|
22754
22754
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
22755
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
22755
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
|
|
22756
22756
|
key: 2,
|
|
22757
22757
|
options: _ctx.options.facets,
|
|
22758
22758
|
onFilter: filter2
|
|
@@ -22761,20 +22761,20 @@ and ensure you are accounting for this risk.
|
|
|
22761
22761
|
};
|
|
22762
22762
|
}
|
|
22763
22763
|
});
|
|
22764
|
-
const _hoisted_1$
|
|
22764
|
+
const _hoisted_1$D = {
|
|
22765
22765
|
key: 0,
|
|
22766
22766
|
class: "lupa-mobile-filter-sidebar"
|
|
22767
22767
|
};
|
|
22768
|
-
const _hoisted_2$
|
|
22769
|
-
const _hoisted_3$
|
|
22770
|
-
const _hoisted_4$
|
|
22771
|
-
const _hoisted_5$
|
|
22768
|
+
const _hoisted_2$t = ["onClick"];
|
|
22769
|
+
const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
|
|
22770
|
+
const _hoisted_4$h = { class: "lupa-sidebar-top" };
|
|
22771
|
+
const _hoisted_5$a = { class: "lupa-sidebar-title" };
|
|
22772
22772
|
const _hoisted_6$6 = {
|
|
22773
22773
|
key: 0,
|
|
22774
22774
|
class: "lupa-sidebar-filter-count"
|
|
22775
22775
|
};
|
|
22776
22776
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
22777
|
-
const _sfc_main$
|
|
22777
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
22778
22778
|
__name: "MobileFilterSidebar",
|
|
22779
22779
|
props: {
|
|
22780
22780
|
options: {}
|
|
@@ -22805,14 +22805,14 @@ and ensure you are accounting for this risk.
|
|
|
22805
22805
|
handleMobileToggle();
|
|
22806
22806
|
};
|
|
22807
22807
|
return (_ctx, _cache) => {
|
|
22808
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
22808
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
22809
22809
|
createBaseVNode("div", {
|
|
22810
22810
|
class: "lupa-sidebar-close",
|
|
22811
22811
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
22812
|
-
}, null, 8, _hoisted_2$
|
|
22813
|
-
createBaseVNode("div", _hoisted_3$
|
|
22814
|
-
createBaseVNode("div", _hoisted_4$
|
|
22815
|
-
createBaseVNode("div", _hoisted_5$
|
|
22812
|
+
}, null, 8, _hoisted_2$t),
|
|
22813
|
+
createBaseVNode("div", _hoisted_3$n, [
|
|
22814
|
+
createBaseVNode("div", _hoisted_4$h, [
|
|
22815
|
+
createBaseVNode("div", _hoisted_5$a, [
|
|
22816
22816
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
22817
22817
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
22818
22818
|
]),
|
|
@@ -22822,7 +22822,7 @@ and ensure you are accounting for this risk.
|
|
|
22822
22822
|
})
|
|
22823
22823
|
]),
|
|
22824
22824
|
createBaseVNode("div", _hoisted_7$4, [
|
|
22825
|
-
createVNode(_sfc_main$
|
|
22825
|
+
createVNode(_sfc_main$J, {
|
|
22826
22826
|
options: _ctx.options,
|
|
22827
22827
|
expandable: isActiveFiltersExpanded.value,
|
|
22828
22828
|
onFilter: filter2
|
|
@@ -22833,14 +22833,14 @@ and ensure you are accounting for this risk.
|
|
|
22833
22833
|
};
|
|
22834
22834
|
}
|
|
22835
22835
|
});
|
|
22836
|
-
const _hoisted_1$
|
|
22837
|
-
const _hoisted_2$
|
|
22838
|
-
const _hoisted_3$
|
|
22836
|
+
const _hoisted_1$C = { id: "lupa-search-results-breadcrumbs" };
|
|
22837
|
+
const _hoisted_2$s = ["href", "onClick"];
|
|
22838
|
+
const _hoisted_3$m = {
|
|
22839
22839
|
key: 1,
|
|
22840
22840
|
class: "lupa-search-results-breadcrumb-text"
|
|
22841
22841
|
};
|
|
22842
|
-
const _hoisted_4$
|
|
22843
|
-
const _sfc_main$
|
|
22842
|
+
const _hoisted_4$g = { key: 2 };
|
|
22843
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
22844
22844
|
__name: "SearchResultsBreadcrumbs",
|
|
22845
22845
|
props: {
|
|
22846
22846
|
breadcrumbs: {}
|
|
@@ -22865,7 +22865,7 @@ and ensure you are accounting for this risk.
|
|
|
22865
22865
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
22866
22866
|
};
|
|
22867
22867
|
return (_ctx, _cache) => {
|
|
22868
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22868
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
22869
22869
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
22870
22870
|
return openBlock(), createElementBlock("span", {
|
|
22871
22871
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -22879,19 +22879,19 @@ and ensure you are accounting for this risk.
|
|
|
22879
22879
|
var _a;
|
|
22880
22880
|
return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
22881
22881
|
}
|
|
22882
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
22883
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
22882
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
22883
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, " / ")) : createCommentVNode("", true)
|
|
22884
22884
|
]);
|
|
22885
22885
|
}), 128))
|
|
22886
22886
|
]);
|
|
22887
22887
|
};
|
|
22888
22888
|
}
|
|
22889
22889
|
});
|
|
22890
|
-
const _hoisted_1$
|
|
22890
|
+
const _hoisted_1$B = {
|
|
22891
22891
|
id: "lupa-search-result-filters",
|
|
22892
22892
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
22893
22893
|
};
|
|
22894
|
-
const _sfc_main$
|
|
22894
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
22895
22895
|
__name: "FiltersTopDropdown",
|
|
22896
22896
|
props: {
|
|
22897
22897
|
options: {}
|
|
@@ -22903,8 +22903,8 @@ and ensure you are accounting for this risk.
|
|
|
22903
22903
|
};
|
|
22904
22904
|
return (_ctx, _cache) => {
|
|
22905
22905
|
var _a;
|
|
22906
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22907
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
22906
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
22907
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
|
|
22908
22908
|
key: 0,
|
|
22909
22909
|
options: _ctx.options.facets,
|
|
22910
22910
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -22915,8 +22915,8 @@ and ensure you are accounting for this risk.
|
|
|
22915
22915
|
};
|
|
22916
22916
|
}
|
|
22917
22917
|
});
|
|
22918
|
-
const _hoisted_1$
|
|
22919
|
-
const _sfc_main$
|
|
22918
|
+
const _hoisted_1$A = { id: "lupa-search-results-layout-selection" };
|
|
22919
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
22920
22920
|
__name: "SearchResultsLayoutSelection",
|
|
22921
22921
|
setup(__props) {
|
|
22922
22922
|
const searchResultStore = useSearchResultStore();
|
|
@@ -22927,7 +22927,7 @@ and ensure you are accounting for this risk.
|
|
|
22927
22927
|
searchResultStore.setLayout(layout2);
|
|
22928
22928
|
};
|
|
22929
22929
|
return (_ctx, _cache) => {
|
|
22930
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22930
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
22931
22931
|
createBaseVNode("div", {
|
|
22932
22932
|
class: normalizeClass([
|
|
22933
22933
|
"lupa-layout-selection-grid",
|
|
@@ -22949,11 +22949,11 @@ and ensure you are accounting for this risk.
|
|
|
22949
22949
|
};
|
|
22950
22950
|
}
|
|
22951
22951
|
});
|
|
22952
|
-
const _hoisted_1$
|
|
22952
|
+
const _hoisted_1$z = {
|
|
22953
22953
|
key: 0,
|
|
22954
22954
|
class: "lupa-mobile-toggle-filter-count"
|
|
22955
22955
|
};
|
|
22956
|
-
const _sfc_main$
|
|
22956
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
22957
22957
|
__name: "SearchResultsMobileToggle",
|
|
22958
22958
|
props: {
|
|
22959
22959
|
label: {},
|
|
@@ -22971,26 +22971,26 @@ and ensure you are accounting for this risk.
|
|
|
22971
22971
|
onClick: handleMobileToggle
|
|
22972
22972
|
}, [
|
|
22973
22973
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
22974
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
22974
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$z, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
22975
22975
|
], 2);
|
|
22976
22976
|
};
|
|
22977
22977
|
}
|
|
22978
22978
|
});
|
|
22979
|
-
const _hoisted_1$
|
|
22979
|
+
const _hoisted_1$y = {
|
|
22980
22980
|
key: 0,
|
|
22981
22981
|
id: "lupa-search-results-page-select",
|
|
22982
22982
|
"data-cy": "lupa-search-results-page-select"
|
|
22983
22983
|
};
|
|
22984
|
-
const _hoisted_2$
|
|
22984
|
+
const _hoisted_2$r = {
|
|
22985
22985
|
key: 0,
|
|
22986
22986
|
class: "lupa-page-number-separator"
|
|
22987
22987
|
};
|
|
22988
|
-
const _hoisted_3$
|
|
22989
|
-
const _hoisted_4$
|
|
22988
|
+
const _hoisted_3$l = ["onClick"];
|
|
22989
|
+
const _hoisted_4$f = {
|
|
22990
22990
|
key: 0,
|
|
22991
22991
|
class: "lupa-page-number-separator"
|
|
22992
22992
|
};
|
|
22993
|
-
const _sfc_main$
|
|
22993
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
22994
22994
|
__name: "SearchResultsPageSelect",
|
|
22995
22995
|
props: {
|
|
22996
22996
|
lastPageLabel: {},
|
|
@@ -23067,7 +23067,7 @@ and ensure you are accounting for this risk.
|
|
|
23067
23067
|
}
|
|
23068
23068
|
};
|
|
23069
23069
|
return (_ctx, _cache) => {
|
|
23070
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
23070
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
23071
23071
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
23072
23072
|
key: 0,
|
|
23073
23073
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -23078,7 +23078,7 @@ and ensure you are accounting for this risk.
|
|
|
23078
23078
|
class: "lupa-page-number lupa-page-number-first",
|
|
23079
23079
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
23080
23080
|
}, " 1 "),
|
|
23081
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
23081
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, "...")) : createCommentVNode("", true)
|
|
23082
23082
|
], 64)) : createCommentVNode("", true),
|
|
23083
23083
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
23084
23084
|
return openBlock(), createElementBlock("div", {
|
|
@@ -23089,10 +23089,10 @@ and ensure you are accounting for this risk.
|
|
|
23089
23089
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
23090
23090
|
]),
|
|
23091
23091
|
"data-cy": "lupa-page-number"
|
|
23092
|
-
}, toDisplayString(page), 11, _hoisted_3$
|
|
23092
|
+
}, toDisplayString(page), 11, _hoisted_3$l);
|
|
23093
23093
|
}), 128)),
|
|
23094
23094
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
23095
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23095
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
|
|
23096
23096
|
createBaseVNode("div", {
|
|
23097
23097
|
class: "lupa-page-number lupa-page-number-last",
|
|
23098
23098
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -23111,15 +23111,15 @@ and ensure you are accounting for this risk.
|
|
|
23111
23111
|
};
|
|
23112
23112
|
}
|
|
23113
23113
|
});
|
|
23114
|
-
const _hoisted_1$
|
|
23114
|
+
const _hoisted_1$x = {
|
|
23115
23115
|
id: "lupa-search-results-page-size",
|
|
23116
23116
|
"data-cy": "lupa-search-results-page-size"
|
|
23117
23117
|
};
|
|
23118
|
-
const _hoisted_2$
|
|
23119
|
-
const _hoisted_3$
|
|
23120
|
-
const _hoisted_4$
|
|
23121
|
-
const _hoisted_5$
|
|
23122
|
-
const _sfc_main$
|
|
23118
|
+
const _hoisted_2$q = { id: "lupa-select" };
|
|
23119
|
+
const _hoisted_3$k = { class: "lupa-select-label" };
|
|
23120
|
+
const _hoisted_4$e = ["aria-label"];
|
|
23121
|
+
const _hoisted_5$9 = ["value"];
|
|
23122
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
23123
23123
|
__name: "SearchResultsPageSize",
|
|
23124
23124
|
props: {
|
|
23125
23125
|
labels: {},
|
|
@@ -23147,9 +23147,9 @@ and ensure you are accounting for this risk.
|
|
|
23147
23147
|
});
|
|
23148
23148
|
};
|
|
23149
23149
|
return (_ctx, _cache) => {
|
|
23150
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23151
|
-
createBaseVNode("div", _hoisted_2$
|
|
23152
|
-
createBaseVNode("label", _hoisted_3$
|
|
23150
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
23151
|
+
createBaseVNode("div", _hoisted_2$q, [
|
|
23152
|
+
createBaseVNode("label", _hoisted_3$k, toDisplayString(label.value), 1),
|
|
23153
23153
|
createBaseVNode("select", {
|
|
23154
23154
|
class: "lupa-select-dropdown",
|
|
23155
23155
|
"aria-label": label.value,
|
|
@@ -23162,23 +23162,23 @@ and ensure you are accounting for this risk.
|
|
|
23162
23162
|
return openBlock(), createElementBlock("option", {
|
|
23163
23163
|
key: option,
|
|
23164
23164
|
value: option
|
|
23165
|
-
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$
|
|
23165
|
+
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$9);
|
|
23166
23166
|
}), 128))
|
|
23167
|
-
], 40, _hoisted_4$
|
|
23167
|
+
], 40, _hoisted_4$e)
|
|
23168
23168
|
])
|
|
23169
23169
|
]);
|
|
23170
23170
|
};
|
|
23171
23171
|
}
|
|
23172
23172
|
});
|
|
23173
|
-
const _hoisted_1$
|
|
23173
|
+
const _hoisted_1$w = {
|
|
23174
23174
|
id: "lupa-search-results-sort",
|
|
23175
23175
|
class: "lupa-search-results-sort"
|
|
23176
23176
|
};
|
|
23177
|
-
const _hoisted_2$
|
|
23178
|
-
const _hoisted_3$
|
|
23179
|
-
const _hoisted_4$
|
|
23180
|
-
const _hoisted_5$
|
|
23181
|
-
const _sfc_main$
|
|
23177
|
+
const _hoisted_2$p = { id: "lupa-select" };
|
|
23178
|
+
const _hoisted_3$j = { class: "lupa-select-label" };
|
|
23179
|
+
const _hoisted_4$d = ["aria-label"];
|
|
23180
|
+
const _hoisted_5$8 = ["value"];
|
|
23181
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
23182
23182
|
__name: "SearchResultsSort",
|
|
23183
23183
|
props: {
|
|
23184
23184
|
options: {},
|
|
@@ -23227,9 +23227,9 @@ and ensure you are accounting for this risk.
|
|
|
23227
23227
|
previousKey.value = selectedKey.value;
|
|
23228
23228
|
};
|
|
23229
23229
|
return (_ctx, _cache) => {
|
|
23230
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23231
|
-
createBaseVNode("div", _hoisted_2$
|
|
23232
|
-
createBaseVNode("label", _hoisted_3$
|
|
23230
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
23231
|
+
createBaseVNode("div", _hoisted_2$p, [
|
|
23232
|
+
createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.options.label), 1),
|
|
23233
23233
|
withDirectives(createBaseVNode("select", {
|
|
23234
23234
|
class: "lupa-select-dropdown",
|
|
23235
23235
|
"aria-label": _ctx.options.label,
|
|
@@ -23242,9 +23242,9 @@ and ensure you are accounting for this risk.
|
|
|
23242
23242
|
return openBlock(), createElementBlock("option", {
|
|
23243
23243
|
key: option.key,
|
|
23244
23244
|
value: option.key
|
|
23245
|
-
}, toDisplayString(option.label), 9, _hoisted_5$
|
|
23245
|
+
}, toDisplayString(option.label), 9, _hoisted_5$8);
|
|
23246
23246
|
}), 128))
|
|
23247
|
-
], 40, _hoisted_4$
|
|
23247
|
+
], 40, _hoisted_4$d), [
|
|
23248
23248
|
[vModelSelect, selectedKey.value]
|
|
23249
23249
|
])
|
|
23250
23250
|
])
|
|
@@ -23252,14 +23252,14 @@ and ensure you are accounting for this risk.
|
|
|
23252
23252
|
};
|
|
23253
23253
|
}
|
|
23254
23254
|
});
|
|
23255
|
-
const _hoisted_1$
|
|
23256
|
-
const _hoisted_2$
|
|
23255
|
+
const _hoisted_1$v = { class: "lupa-toolbar-left" };
|
|
23256
|
+
const _hoisted_2$o = {
|
|
23257
23257
|
key: 0,
|
|
23258
23258
|
class: "lupa-toolbar-right-title"
|
|
23259
23259
|
};
|
|
23260
|
-
const _hoisted_3$
|
|
23261
|
-
const _hoisted_4$
|
|
23262
|
-
const _hoisted_5$
|
|
23260
|
+
const _hoisted_3$i = { key: 2 };
|
|
23261
|
+
const _hoisted_4$c = { key: 4 };
|
|
23262
|
+
const _hoisted_5$7 = { key: 6 };
|
|
23263
23263
|
const _hoisted_6$5 = { class: "lupa-toolbar-right" };
|
|
23264
23264
|
const _hoisted_7$3 = {
|
|
23265
23265
|
key: 0,
|
|
@@ -23267,7 +23267,7 @@ and ensure you are accounting for this risk.
|
|
|
23267
23267
|
};
|
|
23268
23268
|
const _hoisted_8 = { key: 2 };
|
|
23269
23269
|
const _hoisted_9 = { key: 4 };
|
|
23270
|
-
const _sfc_main$
|
|
23270
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
23271
23271
|
__name: "SearchResultsToolbar",
|
|
23272
23272
|
props: {
|
|
23273
23273
|
options: {},
|
|
@@ -23374,34 +23374,34 @@ and ensure you are accounting for this risk.
|
|
|
23374
23374
|
id: "lupa-search-results-toolbar",
|
|
23375
23375
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
23376
23376
|
}, [
|
|
23377
|
-
createBaseVNode("div", _hoisted_1$
|
|
23378
|
-
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
23379
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
23380
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
23377
|
+
createBaseVNode("div", _hoisted_1$v, [
|
|
23378
|
+
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$o, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
23379
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$F, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$i)),
|
|
23380
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$X, {
|
|
23381
23381
|
key: 3,
|
|
23382
23382
|
label: searchSummaryLabel.value,
|
|
23383
23383
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
23384
23384
|
onClear: handleClearAll
|
|
23385
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23386
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
23385
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
|
|
23386
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$D, {
|
|
23387
23387
|
key: 5,
|
|
23388
23388
|
options: paginationOptions.value.pageSelect,
|
|
23389
23389
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
23390
23390
|
"first-page-label": paginationOptions.value.labels.showLess
|
|
23391
|
-
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$
|
|
23391
|
+
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$7))
|
|
23392
23392
|
]),
|
|
23393
23393
|
createBaseVNode("div", _hoisted_6$5, [
|
|
23394
23394
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
23395
|
-
createVNode(_sfc_main$
|
|
23395
|
+
createVNode(_sfc_main$E, {
|
|
23396
23396
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
23397
23397
|
"show-filter-count": showMobileFilterCount.value
|
|
23398
23398
|
}, null, 8, ["label", "show-filter-count"]),
|
|
23399
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
23399
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$C, {
|
|
23400
23400
|
key: 1,
|
|
23401
23401
|
options: paginationOptions.value.pageSize,
|
|
23402
23402
|
labels: paginationOptions.value.labels
|
|
23403
23403
|
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
23404
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
23404
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$B, {
|
|
23405
23405
|
key: 3,
|
|
23406
23406
|
options: sortOptions.value,
|
|
23407
23407
|
callbacks: callbacks.value
|
|
@@ -23411,7 +23411,7 @@ and ensure you are accounting for this risk.
|
|
|
23411
23411
|
};
|
|
23412
23412
|
}
|
|
23413
23413
|
});
|
|
23414
|
-
const _sfc_main$
|
|
23414
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
23415
23415
|
__name: "SearchResultsProductImage",
|
|
23416
23416
|
props: {
|
|
23417
23417
|
item: {},
|
|
@@ -23419,7 +23419,7 @@ and ensure you are accounting for this risk.
|
|
|
23419
23419
|
},
|
|
23420
23420
|
setup(__props) {
|
|
23421
23421
|
return (_ctx, _cache) => {
|
|
23422
|
-
return openBlock(), createBlock(_sfc_main$
|
|
23422
|
+
return openBlock(), createBlock(_sfc_main$1j, {
|
|
23423
23423
|
item: _ctx.item,
|
|
23424
23424
|
options: _ctx.options,
|
|
23425
23425
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -23428,16 +23428,16 @@ and ensure you are accounting for this risk.
|
|
|
23428
23428
|
};
|
|
23429
23429
|
}
|
|
23430
23430
|
});
|
|
23431
|
-
const _hoisted_1$
|
|
23432
|
-
const _hoisted_2$
|
|
23433
|
-
const _hoisted_3$
|
|
23434
|
-
const _hoisted_4$
|
|
23435
|
-
const _hoisted_5$
|
|
23431
|
+
const _hoisted_1$u = ["title", "innerHTML"];
|
|
23432
|
+
const _hoisted_2$n = ["title"];
|
|
23433
|
+
const _hoisted_3$h = ["href", "innerHTML"];
|
|
23434
|
+
const _hoisted_4$b = ["title"];
|
|
23435
|
+
const _hoisted_5$6 = {
|
|
23436
23436
|
key: 0,
|
|
23437
23437
|
class: "lupa-search-results-product-title-text"
|
|
23438
23438
|
};
|
|
23439
23439
|
const _hoisted_6$4 = ["href"];
|
|
23440
|
-
const _sfc_main$
|
|
23440
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
23441
23441
|
__name: "SearchResultsProductTitle",
|
|
23442
23442
|
props: {
|
|
23443
23443
|
item: {},
|
|
@@ -23474,7 +23474,7 @@ and ensure you are accounting for this risk.
|
|
|
23474
23474
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23475
23475
|
title: sanitizedTitle.value,
|
|
23476
23476
|
innerHTML: sanitizedTitle.value
|
|
23477
|
-
}, null, 12, _hoisted_1$
|
|
23477
|
+
}, null, 12, _hoisted_1$u)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
|
|
23478
23478
|
key: 1,
|
|
23479
23479
|
class: "lupa-search-results-product-title",
|
|
23480
23480
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -23485,26 +23485,26 @@ and ensure you are accounting for this risk.
|
|
|
23485
23485
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
23486
23486
|
innerHTML: sanitizedTitle.value,
|
|
23487
23487
|
onClick: handleNavigation
|
|
23488
|
-
}, null, 8, _hoisted_3$
|
|
23489
|
-
], 12, _hoisted_2$
|
|
23488
|
+
}, null, 8, _hoisted_3$h)
|
|
23489
|
+
], 12, _hoisted_2$n)) : (openBlock(), createElementBlock("div", {
|
|
23490
23490
|
key: 2,
|
|
23491
23491
|
class: "lupa-search-results-product-title",
|
|
23492
23492
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23493
23493
|
title: title.value
|
|
23494
23494
|
}, [
|
|
23495
|
-
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
23495
|
+
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$6, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
23496
23496
|
_ctx.options.link ? (openBlock(), createElementBlock("a", {
|
|
23497
23497
|
key: 1,
|
|
23498
23498
|
href: _ctx.link,
|
|
23499
23499
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
23500
23500
|
onClick: handleNavigation
|
|
23501
23501
|
}, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
|
|
23502
|
-
], 12, _hoisted_4$
|
|
23502
|
+
], 12, _hoisted_4$b));
|
|
23503
23503
|
};
|
|
23504
23504
|
}
|
|
23505
23505
|
});
|
|
23506
|
-
const _hoisted_1$
|
|
23507
|
-
const _sfc_main$
|
|
23506
|
+
const _hoisted_1$t = ["innerHTML"];
|
|
23507
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
23508
23508
|
__name: "SearchResultsProductDescription",
|
|
23509
23509
|
props: {
|
|
23510
23510
|
item: {},
|
|
@@ -23531,7 +23531,7 @@ and ensure you are accounting for this risk.
|
|
|
23531
23531
|
class: "lupa-search-results-product-description",
|
|
23532
23532
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23533
23533
|
innerHTML: sanitizedDescription.value
|
|
23534
|
-
}, null, 12, _hoisted_1$
|
|
23534
|
+
}, null, 12, _hoisted_1$t)) : (openBlock(), createElementBlock("div", {
|
|
23535
23535
|
key: 1,
|
|
23536
23536
|
class: "lupa-search-results-product-description",
|
|
23537
23537
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -23539,15 +23539,15 @@ and ensure you are accounting for this risk.
|
|
|
23539
23539
|
};
|
|
23540
23540
|
}
|
|
23541
23541
|
});
|
|
23542
|
-
const _hoisted_1$
|
|
23543
|
-
const _hoisted_2$
|
|
23544
|
-
const _hoisted_3$
|
|
23545
|
-
const _hoisted_4$
|
|
23546
|
-
const _hoisted_5$
|
|
23542
|
+
const _hoisted_1$s = { id: "lupa-search-results-rating" };
|
|
23543
|
+
const _hoisted_2$m = { class: "lupa-ratings" };
|
|
23544
|
+
const _hoisted_3$g = { class: "lupa-ratings-base" };
|
|
23545
|
+
const _hoisted_4$a = ["innerHTML"];
|
|
23546
|
+
const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
|
|
23547
23547
|
const _hoisted_6$3 = ["innerHTML"];
|
|
23548
23548
|
const _hoisted_7$2 = ["href"];
|
|
23549
23549
|
const STAR_COUNT = 5;
|
|
23550
|
-
const _sfc_main$
|
|
23550
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
23551
23551
|
__name: "SearchResultsProductRating",
|
|
23552
23552
|
props: {
|
|
23553
23553
|
item: {},
|
|
@@ -23578,18 +23578,18 @@ and ensure you are accounting for this risk.
|
|
|
23578
23578
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
23579
23579
|
});
|
|
23580
23580
|
return (_ctx, _cache) => {
|
|
23581
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23582
|
-
createBaseVNode("div", _hoisted_2$
|
|
23583
|
-
createBaseVNode("div", _hoisted_3$
|
|
23581
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
23582
|
+
createBaseVNode("div", _hoisted_2$m, [
|
|
23583
|
+
createBaseVNode("div", _hoisted_3$g, [
|
|
23584
23584
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
23585
23585
|
return openBlock(), createElementBlock("div", {
|
|
23586
23586
|
key: index,
|
|
23587
23587
|
innerHTML: star,
|
|
23588
23588
|
class: "lupa-rating lupa-rating-not-highlighted"
|
|
23589
|
-
}, null, 8, _hoisted_4$
|
|
23589
|
+
}, null, 8, _hoisted_4$a);
|
|
23590
23590
|
}), 128))
|
|
23591
23591
|
]),
|
|
23592
|
-
createBaseVNode("div", _hoisted_5$
|
|
23592
|
+
createBaseVNode("div", _hoisted_5$5, [
|
|
23593
23593
|
createBaseVNode("div", {
|
|
23594
23594
|
class: "lupa-ratings-highlighted",
|
|
23595
23595
|
style: normalizeStyle({ width: ratingPercentage.value + "%" })
|
|
@@ -23612,11 +23612,11 @@ and ensure you are accounting for this risk.
|
|
|
23612
23612
|
};
|
|
23613
23613
|
}
|
|
23614
23614
|
});
|
|
23615
|
-
const _hoisted_1$
|
|
23615
|
+
const _hoisted_1$r = {
|
|
23616
23616
|
class: "lupa-search-results-product-regular-price",
|
|
23617
23617
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
23618
23618
|
};
|
|
23619
|
-
const _sfc_main$
|
|
23619
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
23620
23620
|
__name: "SearchResultsProductRegularPrice",
|
|
23621
23621
|
props: {
|
|
23622
23622
|
item: {},
|
|
@@ -23634,11 +23634,11 @@ and ensure you are accounting for this risk.
|
|
|
23634
23634
|
);
|
|
23635
23635
|
});
|
|
23636
23636
|
return (_ctx, _cache) => {
|
|
23637
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23637
|
+
return openBlock(), createElementBlock("div", _hoisted_1$r, toDisplayString(price.value), 1);
|
|
23638
23638
|
};
|
|
23639
23639
|
}
|
|
23640
23640
|
});
|
|
23641
|
-
const _sfc_main$
|
|
23641
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
23642
23642
|
__name: "SearchResultsProductPrice",
|
|
23643
23643
|
props: {
|
|
23644
23644
|
item: {},
|
|
@@ -23668,10 +23668,10 @@ and ensure you are accounting for this risk.
|
|
|
23668
23668
|
};
|
|
23669
23669
|
}
|
|
23670
23670
|
});
|
|
23671
|
-
const _hoisted_1$
|
|
23672
|
-
const _hoisted_2$
|
|
23673
|
-
const _hoisted_3$
|
|
23674
|
-
const _sfc_main$
|
|
23671
|
+
const _hoisted_1$q = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
23672
|
+
const _hoisted_2$l = { class: "lupa-search-results-product-addtocart" };
|
|
23673
|
+
const _hoisted_3$f = ["onClick", "disabled"];
|
|
23674
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
23675
23675
|
__name: "SearchResultsProductAddToCart",
|
|
23676
23676
|
props: {
|
|
23677
23677
|
item: {},
|
|
@@ -23704,25 +23704,25 @@ and ensure you are accounting for this risk.
|
|
|
23704
23704
|
loading.value = false;
|
|
23705
23705
|
});
|
|
23706
23706
|
return (_ctx, _cache) => {
|
|
23707
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23708
|
-
createBaseVNode("div", _hoisted_2$
|
|
23707
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
23708
|
+
createBaseVNode("div", _hoisted_2$l, [
|
|
23709
23709
|
createBaseVNode("button", {
|
|
23710
23710
|
onClick: withModifiers(handleClick, ["stop"]),
|
|
23711
23711
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
23712
23712
|
"data-cy": "lupa-add-to-cart",
|
|
23713
23713
|
disabled: !inStockValue.value || loading.value
|
|
23714
|
-
}, toDisplayString(label.value), 11, _hoisted_3$
|
|
23714
|
+
}, toDisplayString(label.value), 11, _hoisted_3$f)
|
|
23715
23715
|
])
|
|
23716
23716
|
]);
|
|
23717
23717
|
};
|
|
23718
23718
|
}
|
|
23719
23719
|
});
|
|
23720
|
-
const _hoisted_1$
|
|
23721
|
-
const _hoisted_2$
|
|
23722
|
-
const _hoisted_3$
|
|
23723
|
-
const _hoisted_4$
|
|
23724
|
-
const _hoisted_5$
|
|
23725
|
-
const _sfc_main$
|
|
23720
|
+
const _hoisted_1$p = ["innerHTML"];
|
|
23721
|
+
const _hoisted_2$k = { key: 0 };
|
|
23722
|
+
const _hoisted_3$e = { key: 1 };
|
|
23723
|
+
const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
|
|
23724
|
+
const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
|
|
23725
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
23726
23726
|
__name: "SearchResultsProductCustom",
|
|
23727
23727
|
props: {
|
|
23728
23728
|
item: {},
|
|
@@ -23760,20 +23760,20 @@ and ensure you are accounting for this risk.
|
|
|
23760
23760
|
key: 0,
|
|
23761
23761
|
class: className.value,
|
|
23762
23762
|
innerHTML: text.value
|
|
23763
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
23763
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$p)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
23764
23764
|
key: 1,
|
|
23765
23765
|
class: className.value
|
|
23766
23766
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
23767
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
23768
|
-
createBaseVNode("div", _hoisted_4$
|
|
23769
|
-
createBaseVNode("div", _hoisted_5$
|
|
23767
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$k, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
|
|
23768
|
+
createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
|
|
23769
|
+
createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
|
|
23770
23770
|
]))
|
|
23771
23771
|
], 16));
|
|
23772
23772
|
};
|
|
23773
23773
|
}
|
|
23774
23774
|
});
|
|
23775
|
-
const _hoisted_1$
|
|
23776
|
-
const _sfc_main$
|
|
23775
|
+
const _hoisted_1$o = ["innerHTML"];
|
|
23776
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
23777
23777
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
23778
23778
|
props: {
|
|
23779
23779
|
item: {},
|
|
@@ -23804,15 +23804,15 @@ and ensure you are accounting for this risk.
|
|
|
23804
23804
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
23805
23805
|
class: className.value,
|
|
23806
23806
|
innerHTML: text.value
|
|
23807
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
23807
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$o);
|
|
23808
23808
|
};
|
|
23809
23809
|
}
|
|
23810
23810
|
});
|
|
23811
|
-
const _hoisted_1$
|
|
23812
|
-
const _hoisted_2$
|
|
23813
|
-
const _hoisted_3$
|
|
23814
|
-
const _hoisted_4$
|
|
23815
|
-
const _sfc_main$
|
|
23811
|
+
const _hoisted_1$n = { id: "lupa-search-results-rating" };
|
|
23812
|
+
const _hoisted_2$j = ["innerHTML"];
|
|
23813
|
+
const _hoisted_3$d = { class: "lupa-ratings" };
|
|
23814
|
+
const _hoisted_4$8 = ["href"];
|
|
23815
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
23816
23816
|
__name: "SearchResultsProductSingleStarRating",
|
|
23817
23817
|
props: {
|
|
23818
23818
|
item: {},
|
|
@@ -23840,35 +23840,35 @@ and ensure you are accounting for this risk.
|
|
|
23840
23840
|
return RATING_STAR_HTML;
|
|
23841
23841
|
});
|
|
23842
23842
|
return (_ctx, _cache) => {
|
|
23843
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23843
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
23844
23844
|
createBaseVNode("div", {
|
|
23845
23845
|
innerHTML: star.value,
|
|
23846
23846
|
class: "lupa-rating lupa-rating-highlighted"
|
|
23847
|
-
}, null, 8, _hoisted_2$
|
|
23848
|
-
createBaseVNode("div", _hoisted_3$
|
|
23847
|
+
}, null, 8, _hoisted_2$j),
|
|
23848
|
+
createBaseVNode("div", _hoisted_3$d, toDisplayString(rating.value), 1),
|
|
23849
23849
|
createBaseVNode("a", {
|
|
23850
23850
|
href: ratingLink.value,
|
|
23851
23851
|
class: "lupa-total-ratings"
|
|
23852
|
-
}, toDisplayString(totalRatings.value), 9, _hoisted_4$
|
|
23852
|
+
}, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
|
|
23853
23853
|
]);
|
|
23854
23854
|
};
|
|
23855
23855
|
}
|
|
23856
23856
|
});
|
|
23857
23857
|
const __default__ = {
|
|
23858
23858
|
components: {
|
|
23859
|
-
SearchResultsProductImage: _sfc_main$
|
|
23860
|
-
SearchResultsProductTitle: _sfc_main$
|
|
23861
|
-
SearchResultsProductDescription: _sfc_main$
|
|
23862
|
-
SearchResultsProductRating: _sfc_main$
|
|
23863
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
23864
|
-
SearchResultsProductPrice: _sfc_main$
|
|
23865
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
23866
|
-
SearchResultsProductCustom: _sfc_main$
|
|
23867
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
23868
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
23869
|
-
}
|
|
23870
|
-
};
|
|
23871
|
-
const _sfc_main$
|
|
23859
|
+
SearchResultsProductImage: _sfc_main$z,
|
|
23860
|
+
SearchResultsProductTitle: _sfc_main$y,
|
|
23861
|
+
SearchResultsProductDescription: _sfc_main$x,
|
|
23862
|
+
SearchResultsProductRating: _sfc_main$w,
|
|
23863
|
+
SearchResultsProductRegularPrice: _sfc_main$v,
|
|
23864
|
+
SearchResultsProductPrice: _sfc_main$u,
|
|
23865
|
+
SearchResultsProductAddToCart: _sfc_main$t,
|
|
23866
|
+
SearchResultsProductCustom: _sfc_main$s,
|
|
23867
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$r,
|
|
23868
|
+
SearchResultsProductSingleStarRating: _sfc_main$q
|
|
23869
|
+
}
|
|
23870
|
+
};
|
|
23871
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
23872
23872
|
__name: "SearchResultsProductCardElement",
|
|
23873
23873
|
props: {
|
|
23874
23874
|
item: {},
|
|
@@ -23944,13 +23944,13 @@ and ensure you are accounting for this risk.
|
|
|
23944
23944
|
};
|
|
23945
23945
|
}
|
|
23946
23946
|
}));
|
|
23947
|
-
const _hoisted_1$
|
|
23948
|
-
const _hoisted_2$
|
|
23947
|
+
const _hoisted_1$m = ["href"];
|
|
23948
|
+
const _hoisted_2$i = {
|
|
23949
23949
|
key: 0,
|
|
23950
23950
|
class: "lupa-out-of-stock"
|
|
23951
23951
|
};
|
|
23952
|
-
const _hoisted_3$
|
|
23953
|
-
const _sfc_main$
|
|
23952
|
+
const _hoisted_3$c = { class: "lupa-search-result-product-details-section" };
|
|
23953
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
23954
23954
|
__name: "SearchResultsProductCard",
|
|
23955
23955
|
props: {
|
|
23956
23956
|
product: {},
|
|
@@ -24102,7 +24102,7 @@ and ensure you are accounting for this risk.
|
|
|
24102
24102
|
"data-cy": "lupa-search-result-product-card",
|
|
24103
24103
|
class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
|
|
24104
24104
|
}, customDocumentHtmlAttributes.value, { onClick: handleClick }), [
|
|
24105
|
-
createVNode(_sfc_main$
|
|
24105
|
+
createVNode(_sfc_main$14, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
24106
24106
|
createBaseVNode("div", {
|
|
24107
24107
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
24108
24108
|
}, [
|
|
@@ -24112,7 +24112,7 @@ and ensure you are accounting for this risk.
|
|
|
24112
24112
|
onClick: handleNavigation
|
|
24113
24113
|
}, [
|
|
24114
24114
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
24115
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24115
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
24116
24116
|
class: "lupa-search-results-product-element",
|
|
24117
24117
|
item: _ctx.product,
|
|
24118
24118
|
element,
|
|
@@ -24123,16 +24123,16 @@ and ensure you are accounting for this risk.
|
|
|
24123
24123
|
onProductEvent: handleProductEvent
|
|
24124
24124
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
24125
24125
|
}), 128)),
|
|
24126
|
-
createVNode(_sfc_main$
|
|
24126
|
+
createVNode(_sfc_main$14, {
|
|
24127
24127
|
options: badgesOptions.value,
|
|
24128
24128
|
position: "image",
|
|
24129
24129
|
class: "lupa-image-badges"
|
|
24130
24130
|
}, null, 8, ["options"]),
|
|
24131
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
24132
|
-
], 8, _hoisted_1$
|
|
24133
|
-
createBaseVNode("div", _hoisted_3$
|
|
24131
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
24132
|
+
], 8, _hoisted_1$m),
|
|
24133
|
+
createBaseVNode("div", _hoisted_3$c, [
|
|
24134
24134
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
24135
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24135
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
24136
24136
|
class: "lupa-search-results-product-element",
|
|
24137
24137
|
item: _ctx.product,
|
|
24138
24138
|
element,
|
|
@@ -24150,7 +24150,7 @@ and ensure you are accounting for this risk.
|
|
|
24150
24150
|
class: normalizeClass("lupa-element-group-" + group)
|
|
24151
24151
|
}, [
|
|
24152
24152
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
24153
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24153
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
24154
24154
|
class: "lupa-search-results-product-element",
|
|
24155
24155
|
item: _ctx.product,
|
|
24156
24156
|
element,
|
|
@@ -24168,23 +24168,23 @@ and ensure you are accounting for this risk.
|
|
|
24168
24168
|
};
|
|
24169
24169
|
}
|
|
24170
24170
|
});
|
|
24171
|
-
const _hoisted_1$
|
|
24171
|
+
const _hoisted_1$l = {
|
|
24172
24172
|
id: "lupa-search-results-similar-queries",
|
|
24173
24173
|
"data-cy": "lupa-search-results-similar-queries"
|
|
24174
24174
|
};
|
|
24175
|
-
const _hoisted_2$
|
|
24176
|
-
const _hoisted_3$
|
|
24175
|
+
const _hoisted_2$h = { class: "lupa-similar-queries-label" };
|
|
24176
|
+
const _hoisted_3$b = {
|
|
24177
24177
|
class: "lupa-similar-query-label",
|
|
24178
24178
|
"data-cy": "lupa-similar-query-label"
|
|
24179
24179
|
};
|
|
24180
|
-
const _hoisted_4$
|
|
24181
|
-
const _hoisted_5$
|
|
24180
|
+
const _hoisted_4$7 = ["onClick"];
|
|
24181
|
+
const _hoisted_5$3 = ["innerHTML"];
|
|
24182
24182
|
const _hoisted_6$2 = { key: 0 };
|
|
24183
24183
|
const _hoisted_7$1 = {
|
|
24184
24184
|
class: "lupa-products",
|
|
24185
24185
|
"data-cy": "lupa-products"
|
|
24186
24186
|
};
|
|
24187
|
-
const _sfc_main$
|
|
24187
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
24188
24188
|
__name: "SearchResultsSimilarQueries",
|
|
24189
24189
|
props: {
|
|
24190
24190
|
labels: {},
|
|
@@ -24214,11 +24214,11 @@ and ensure you are accounting for this risk.
|
|
|
24214
24214
|
paramsStore.goToResults({ searchText, facet });
|
|
24215
24215
|
};
|
|
24216
24216
|
return (_ctx, _cache) => {
|
|
24217
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24218
|
-
createBaseVNode("div", _hoisted_2$
|
|
24217
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
24218
|
+
createBaseVNode("div", _hoisted_2$h, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
24219
24219
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
24220
24220
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
24221
|
-
createBaseVNode("div", _hoisted_3$
|
|
24221
|
+
createBaseVNode("div", _hoisted_3$b, [
|
|
24222
24222
|
createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
|
|
24223
24223
|
createBaseVNode("span", {
|
|
24224
24224
|
id: "lupa-similar-query-text-component",
|
|
@@ -24228,13 +24228,13 @@ and ensure you are accounting for this risk.
|
|
|
24228
24228
|
}, [
|
|
24229
24229
|
createBaseVNode("span", {
|
|
24230
24230
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
24231
|
-
}, null, 8, _hoisted_5$
|
|
24231
|
+
}, null, 8, _hoisted_5$3),
|
|
24232
24232
|
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
24233
|
-
], 8, _hoisted_4$
|
|
24233
|
+
], 8, _hoisted_4$7)
|
|
24234
24234
|
]),
|
|
24235
24235
|
createBaseVNode("div", _hoisted_7$1, [
|
|
24236
24236
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
24237
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24237
|
+
return openBlock(), createBlock(_sfc_main$o, {
|
|
24238
24238
|
style: normalizeStyle(_ctx.columnSize),
|
|
24239
24239
|
key: getDocumentKey(index2, product),
|
|
24240
24240
|
product,
|
|
@@ -24248,15 +24248,15 @@ and ensure you are accounting for this risk.
|
|
|
24248
24248
|
};
|
|
24249
24249
|
}
|
|
24250
24250
|
});
|
|
24251
|
-
const _hoisted_1$
|
|
24251
|
+
const _hoisted_1$k = {
|
|
24252
24252
|
key: 0,
|
|
24253
24253
|
class: "lupa-results-additional-panel"
|
|
24254
24254
|
};
|
|
24255
|
-
const _hoisted_2$
|
|
24255
|
+
const _hoisted_2$g = {
|
|
24256
24256
|
class: "lupa-results-additional-panel-items",
|
|
24257
24257
|
"data-cy": "lupa-results-additional-panel-items"
|
|
24258
24258
|
};
|
|
24259
|
-
const _sfc_main$
|
|
24259
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
24260
24260
|
__name: "AdditionalPanel",
|
|
24261
24261
|
props: {
|
|
24262
24262
|
panel: {},
|
|
@@ -24328,10 +24328,10 @@ and ensure you are accounting for this risk.
|
|
|
24328
24328
|
handleQueryChange();
|
|
24329
24329
|
});
|
|
24330
24330
|
return (_ctx, _cache) => {
|
|
24331
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24332
|
-
createBaseVNode("div", _hoisted_2$
|
|
24331
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
24332
|
+
createBaseVNode("div", _hoisted_2$g, [
|
|
24333
24333
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
24334
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24334
|
+
return openBlock(), createBlock(_sfc_main$o, {
|
|
24335
24335
|
key: index,
|
|
24336
24336
|
product: item,
|
|
24337
24337
|
options: _ctx.panel,
|
|
@@ -24349,11 +24349,11 @@ and ensure you are accounting for this risk.
|
|
|
24349
24349
|
};
|
|
24350
24350
|
}
|
|
24351
24351
|
});
|
|
24352
|
-
const _hoisted_1$
|
|
24352
|
+
const _hoisted_1$j = {
|
|
24353
24353
|
key: 0,
|
|
24354
24354
|
class: "lupa-results-additional-panels"
|
|
24355
24355
|
};
|
|
24356
|
-
const _sfc_main$
|
|
24356
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
24357
24357
|
__name: "AdditionalPanels",
|
|
24358
24358
|
props: {
|
|
24359
24359
|
options: {},
|
|
@@ -24370,9 +24370,9 @@ and ensure you are accounting for this risk.
|
|
|
24370
24370
|
return locationPanels.value.length > 0;
|
|
24371
24371
|
});
|
|
24372
24372
|
return (_ctx, _cache) => {
|
|
24373
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24373
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
24374
24374
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
24375
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24375
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
24376
24376
|
key: panel.queryKey,
|
|
24377
24377
|
panel,
|
|
24378
24378
|
options: _ctx.sdkOptions
|
|
@@ -24389,29 +24389,29 @@ and ensure you are accounting for this risk.
|
|
|
24389
24389
|
}
|
|
24390
24390
|
return target;
|
|
24391
24391
|
};
|
|
24392
|
-
const _sfc_main$
|
|
24393
|
-
const _hoisted_1$
|
|
24394
|
-
const _hoisted_2$
|
|
24392
|
+
const _sfc_main$k = {};
|
|
24393
|
+
const _hoisted_1$i = { class: "lupa-spinner-wrapper" };
|
|
24394
|
+
const _hoisted_2$f = { class: "lupa-spinner" };
|
|
24395
24395
|
function _sfc_render(_ctx, _cache) {
|
|
24396
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24397
|
-
createBaseVNode("div", _hoisted_2$
|
|
24396
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
24397
|
+
createBaseVNode("div", _hoisted_2$f, [
|
|
24398
24398
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x2) => {
|
|
24399
24399
|
return createBaseVNode("div", { key: x2 });
|
|
24400
24400
|
}), 64))
|
|
24401
24401
|
])
|
|
24402
24402
|
]);
|
|
24403
24403
|
}
|
|
24404
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24405
|
-
const _hoisted_1$
|
|
24404
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render]]);
|
|
24405
|
+
const _hoisted_1$h = {
|
|
24406
24406
|
id: "lupa-search-results-similar-results",
|
|
24407
24407
|
"data-cy": "lupa-search-results-similar-results"
|
|
24408
24408
|
};
|
|
24409
|
-
const _hoisted_2$
|
|
24410
|
-
const _hoisted_3$
|
|
24409
|
+
const _hoisted_2$e = { class: "lupa-similar-results-label" };
|
|
24410
|
+
const _hoisted_3$a = {
|
|
24411
24411
|
class: "lupa-products",
|
|
24412
24412
|
"data-cy": "lupa-products"
|
|
24413
24413
|
};
|
|
24414
|
-
const _sfc_main$
|
|
24414
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
24415
24415
|
__name: "SearchResultsSimilarResults",
|
|
24416
24416
|
props: {
|
|
24417
24417
|
columnSize: {},
|
|
@@ -24427,11 +24427,11 @@ and ensure you are accounting for this risk.
|
|
|
24427
24427
|
return getProductKey(`${index}`, product, props.productCardOptions.idKey);
|
|
24428
24428
|
};
|
|
24429
24429
|
return (_ctx, _cache) => {
|
|
24430
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24431
|
-
createBaseVNode("div", _hoisted_2$
|
|
24432
|
-
createBaseVNode("div", _hoisted_3$
|
|
24430
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
24431
|
+
createBaseVNode("div", _hoisted_2$e, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
24432
|
+
createBaseVNode("div", _hoisted_3$a, [
|
|
24433
24433
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
24434
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24434
|
+
return openBlock(), createBlock(_sfc_main$o, {
|
|
24435
24435
|
style: normalizeStyle(_ctx.columnSize),
|
|
24436
24436
|
key: getDocumentKey(index, product),
|
|
24437
24437
|
product,
|
|
@@ -24443,6 +24443,179 @@ and ensure you are accounting for this risk.
|
|
|
24443
24443
|
};
|
|
24444
24444
|
}
|
|
24445
24445
|
});
|
|
24446
|
+
var RelatedQuerySourceType = /* @__PURE__ */ ((RelatedQuerySourceType2) => {
|
|
24447
|
+
RelatedQuerySourceType2["FACETS"] = "facets";
|
|
24448
|
+
return RelatedQuerySourceType2;
|
|
24449
|
+
})(RelatedQuerySourceType || {});
|
|
24450
|
+
const extractFacetsRelatedSource = (source, searchResults2) => {
|
|
24451
|
+
var _a, _b, _c, _d, _e;
|
|
24452
|
+
const facet = (_a = searchResults2.facets) == null ? void 0 : _a.find((facet2) => facet2.key === source.key);
|
|
24453
|
+
if (!facet) {
|
|
24454
|
+
return [];
|
|
24455
|
+
}
|
|
24456
|
+
if (facet.type === "terms") {
|
|
24457
|
+
return (_c = (_b = facet.items) == null ? void 0 : _b.slice(0, source.count)) == null ? void 0 : _c.map((item) => item.title);
|
|
24458
|
+
}
|
|
24459
|
+
if (facet.type === "hierarchy") {
|
|
24460
|
+
return (_e = (_d = facet.items) == null ? void 0 : _d.slice(0, source.count)) == null ? void 0 : _e.map((item) => item.title);
|
|
24461
|
+
}
|
|
24462
|
+
return [];
|
|
24463
|
+
};
|
|
24464
|
+
const extractRelatedSource = (source, searchResults2) => {
|
|
24465
|
+
switch (source.type) {
|
|
24466
|
+
case RelatedQuerySourceType.FACETS:
|
|
24467
|
+
return extractFacetsRelatedSource(source, searchResults2);
|
|
24468
|
+
}
|
|
24469
|
+
};
|
|
24470
|
+
const _hoisted_1$g = { class: "lupa-related-query-item" };
|
|
24471
|
+
const _hoisted_2$d = { class: "lupa-related-query-image" };
|
|
24472
|
+
const _hoisted_3$9 = { class: "lupa-related-query-label" };
|
|
24473
|
+
const _hoisted_4$6 = { class: "lupa-related-query-title" };
|
|
24474
|
+
const _hoisted_5$2 = {
|
|
24475
|
+
key: 0,
|
|
24476
|
+
class: "lupa-related-query-count"
|
|
24477
|
+
};
|
|
24478
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
24479
|
+
__name: "RelatedQueryPanel",
|
|
24480
|
+
props: {
|
|
24481
|
+
query: {},
|
|
24482
|
+
options: {}
|
|
24483
|
+
},
|
|
24484
|
+
setup(__props) {
|
|
24485
|
+
const props = __props;
|
|
24486
|
+
const loading = ref(false);
|
|
24487
|
+
const relatedQueryResult = ref(null);
|
|
24488
|
+
const optionsStore = useOptionsStore();
|
|
24489
|
+
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
24490
|
+
const mainImage = computed(() => {
|
|
24491
|
+
var _a, _b, _c;
|
|
24492
|
+
return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.elements) == null ? void 0 : _b.find((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _c : "";
|
|
24493
|
+
});
|
|
24494
|
+
const image = computed(() => {
|
|
24495
|
+
var _a, _b, _c;
|
|
24496
|
+
return (_c = (_b = (_a = props.options) == null ? void 0 : _a.image) != null ? _b : mainImage == null ? void 0 : mainImage.value) != null ? _c : "";
|
|
24497
|
+
});
|
|
24498
|
+
const queryKey = computed(() => {
|
|
24499
|
+
var _a, _b;
|
|
24500
|
+
return (_b = (_a = props.options) == null ? void 0 : _a.queryKey) != null ? _b : searchResultOptions.value.queryKey;
|
|
24501
|
+
});
|
|
24502
|
+
computed(() => {
|
|
24503
|
+
var _a, _b;
|
|
24504
|
+
return ((_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.items) == null ? void 0 : _b.length) > 0;
|
|
24505
|
+
});
|
|
24506
|
+
const firstResultItem = computed(() => {
|
|
24507
|
+
var _a, _b;
|
|
24508
|
+
return (_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.items) == null ? void 0 : _b[0];
|
|
24509
|
+
});
|
|
24510
|
+
const totalItemCount = computed(() => {
|
|
24511
|
+
var _a, _b;
|
|
24512
|
+
return (_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.total) != null ? _b : 0;
|
|
24513
|
+
});
|
|
24514
|
+
const searchForRelatedQuery = () => __async2(this, null, function* () {
|
|
24515
|
+
var _a, _b, _c, _d;
|
|
24516
|
+
if (!props.query) {
|
|
24517
|
+
return;
|
|
24518
|
+
}
|
|
24519
|
+
const lupaQuery = { searchText: (_a = props.query) == null ? void 0 : _a.toLowerCase(), limit: 1 };
|
|
24520
|
+
try {
|
|
24521
|
+
loading.value = true;
|
|
24522
|
+
const result2 = yield LupaSearchSdk.query(
|
|
24523
|
+
queryKey.value,
|
|
24524
|
+
lupaQuery,
|
|
24525
|
+
(_b = searchResultOptions.value) == null ? void 0 : _b.options
|
|
24526
|
+
);
|
|
24527
|
+
if (result2.success) {
|
|
24528
|
+
relatedQueryResult.value = result2;
|
|
24529
|
+
}
|
|
24530
|
+
} catch (error) {
|
|
24531
|
+
(_d = (_c = searchResultOptions.value) == null ? void 0 : _c.options) == null ? void 0 : _d.onError(error);
|
|
24532
|
+
} finally {
|
|
24533
|
+
loading.value = false;
|
|
24534
|
+
}
|
|
24535
|
+
});
|
|
24536
|
+
watch(
|
|
24537
|
+
() => props.query,
|
|
24538
|
+
() => {
|
|
24539
|
+
console.log("query changed", props.query);
|
|
24540
|
+
searchForRelatedQuery();
|
|
24541
|
+
}
|
|
24542
|
+
);
|
|
24543
|
+
onMounted(() => {
|
|
24544
|
+
searchForRelatedQuery();
|
|
24545
|
+
});
|
|
24546
|
+
return (_ctx, _cache) => {
|
|
24547
|
+
var _a;
|
|
24548
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
24549
|
+
createBaseVNode("div", _hoisted_2$d, [
|
|
24550
|
+
firstResultItem.value && image.value ? (openBlock(), createBlock(_sfc_main$1j, {
|
|
24551
|
+
key: 0,
|
|
24552
|
+
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
24553
|
+
"image-class": "lupa-related-query-image",
|
|
24554
|
+
item: firstResultItem.value,
|
|
24555
|
+
options: image.value
|
|
24556
|
+
}, null, 8, ["item", "options"])) : createCommentVNode("", true)
|
|
24557
|
+
]),
|
|
24558
|
+
createBaseVNode("div", _hoisted_3$9, [
|
|
24559
|
+
createBaseVNode("span", _hoisted_4$6, toDisplayString(_ctx.query), 1),
|
|
24560
|
+
((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
24561
|
+
])
|
|
24562
|
+
]);
|
|
24563
|
+
};
|
|
24564
|
+
}
|
|
24565
|
+
});
|
|
24566
|
+
const _hoisted_1$f = {
|
|
24567
|
+
key: 0,
|
|
24568
|
+
class: "lupa-related-queries"
|
|
24569
|
+
};
|
|
24570
|
+
const _hoisted_2$c = {
|
|
24571
|
+
key: 0,
|
|
24572
|
+
class: "lupa-related-queries-title"
|
|
24573
|
+
};
|
|
24574
|
+
const _hoisted_3$8 = ["onClick"];
|
|
24575
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
24576
|
+
__name: "RelatedQueries",
|
|
24577
|
+
props: {
|
|
24578
|
+
options: {}
|
|
24579
|
+
},
|
|
24580
|
+
setup(__props) {
|
|
24581
|
+
const props = __props;
|
|
24582
|
+
const searchResultStore = useSearchResultStore();
|
|
24583
|
+
const paramsStore = useParamsStore();
|
|
24584
|
+
const { searchResult } = storeToRefs(searchResultStore);
|
|
24585
|
+
const relatedQueries = computed(() => {
|
|
24586
|
+
if (!props.options || !searchResult.value) {
|
|
24587
|
+
return [];
|
|
24588
|
+
}
|
|
24589
|
+
return extractRelatedSource(props.options.source, searchResult.value);
|
|
24590
|
+
});
|
|
24591
|
+
const hasEnoughRelatedQueries = computed(() => {
|
|
24592
|
+
return relatedQueries.value.length > 1;
|
|
24593
|
+
});
|
|
24594
|
+
const goToResults = ({ searchText }) => {
|
|
24595
|
+
paramsStore.goToResults({ searchText });
|
|
24596
|
+
};
|
|
24597
|
+
return (_ctx, _cache) => {
|
|
24598
|
+
var _a, _b, _c, _d;
|
|
24599
|
+
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
24600
|
+
((_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),
|
|
24601
|
+
createBaseVNode("ul", null, [
|
|
24602
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries.value, (query) => {
|
|
24603
|
+
return openBlock(), createElementBlock("li", { key: query }, [
|
|
24604
|
+
createBaseVNode("a", {
|
|
24605
|
+
onClick: ($event) => goToResults({ searchText: query })
|
|
24606
|
+
}, [
|
|
24607
|
+
createVNode(_sfc_main$i, {
|
|
24608
|
+
options: _ctx.options,
|
|
24609
|
+
query
|
|
24610
|
+
}, null, 8, ["options", "query"])
|
|
24611
|
+
], 8, _hoisted_3$8)
|
|
24612
|
+
]);
|
|
24613
|
+
}), 128))
|
|
24614
|
+
])
|
|
24615
|
+
])) : createCommentVNode("", true);
|
|
24616
|
+
};
|
|
24617
|
+
}
|
|
24618
|
+
});
|
|
24446
24619
|
const _hoisted_1$e = { id: "lupa-search-results-products" };
|
|
24447
24620
|
const _hoisted_2$b = {
|
|
24448
24621
|
class: "lupa-products",
|
|
@@ -24572,19 +24745,27 @@ and ensure you are accounting for this risk.
|
|
|
24572
24745
|
key: 0,
|
|
24573
24746
|
class: "lupa-loader"
|
|
24574
24747
|
})) : createCommentVNode("", true),
|
|
24748
|
+
createVNode(_sfc_main$l, {
|
|
24749
|
+
options: _ctx.options,
|
|
24750
|
+
location: "top",
|
|
24751
|
+
sdkOptions: _ctx.options.options
|
|
24752
|
+
}, null, 8, ["options", "sdkOptions"]),
|
|
24753
|
+
createVNode(_sfc_main$h, {
|
|
24754
|
+
options: _ctx.options.relatedQueries
|
|
24755
|
+
}, null, 8, ["options"]),
|
|
24575
24756
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
24576
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
24757
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$G, {
|
|
24577
24758
|
key: 0,
|
|
24578
24759
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
24579
24760
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24580
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
24761
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$A, {
|
|
24581
24762
|
key: 1,
|
|
24582
24763
|
class: "lupa-toolbar-mobile",
|
|
24583
24764
|
options: _ctx.options,
|
|
24584
24765
|
"pagination-location": "top",
|
|
24585
24766
|
onFilter: filter2
|
|
24586
24767
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24587
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
24768
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$U, {
|
|
24588
24769
|
key: 2,
|
|
24589
24770
|
class: normalizeClass(currentFiltersClass.value),
|
|
24590
24771
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -24592,18 +24773,13 @@ and ensure you are accounting for this risk.
|
|
|
24592
24773
|
expandable: !desktopFiltersExpanded.value
|
|
24593
24774
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
24594
24775
|
], 64)) : createCommentVNode("", true),
|
|
24595
|
-
createVNode(_sfc_main$j, {
|
|
24596
|
-
options: _ctx.options,
|
|
24597
|
-
location: "top",
|
|
24598
|
-
sdkOptions: _ctx.options.options
|
|
24599
|
-
}, null, 8, ["options", "sdkOptions"]),
|
|
24600
24776
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
24601
|
-
createVNode(_sfc_main$
|
|
24777
|
+
createVNode(_sfc_main$A, {
|
|
24602
24778
|
class: "lupa-toolbar-top",
|
|
24603
24779
|
options: _ctx.options,
|
|
24604
24780
|
"pagination-location": "top"
|
|
24605
24781
|
}, null, 8, ["options"]),
|
|
24606
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
24782
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$U, {
|
|
24607
24783
|
key: 0,
|
|
24608
24784
|
class: normalizeClass(currentFiltersClass.value),
|
|
24609
24785
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -24619,7 +24795,7 @@ and ensure you are accounting for this risk.
|
|
|
24619
24795
|
options: productCardOptions.value
|
|
24620
24796
|
});
|
|
24621
24797
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
24622
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24798
|
+
return openBlock(), createBlock(_sfc_main$o, {
|
|
24623
24799
|
style: normalizeStyle(columnSize.value),
|
|
24624
24800
|
key: getProductKeyAction(index, product),
|
|
24625
24801
|
product,
|
|
@@ -24635,12 +24811,12 @@ and ensure you are accounting for this risk.
|
|
|
24635
24811
|
onClick: goToFirstPage
|
|
24636
24812
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
24637
24813
|
])) : createCommentVNode("", true),
|
|
24638
|
-
createVNode(_sfc_main$
|
|
24814
|
+
createVNode(_sfc_main$A, {
|
|
24639
24815
|
class: "lupa-toolbar-bottom",
|
|
24640
24816
|
options: _ctx.options,
|
|
24641
24817
|
"pagination-location": "bottom"
|
|
24642
24818
|
}, null, 8, ["options"]),
|
|
24643
|
-
createVNode(_sfc_main$
|
|
24819
|
+
createVNode(_sfc_main$l, {
|
|
24644
24820
|
options: _ctx.options,
|
|
24645
24821
|
location: "bottom",
|
|
24646
24822
|
sdkOptions: _ctx.options.options
|
|
@@ -24650,14 +24826,14 @@ and ensure you are accounting for this risk.
|
|
|
24650
24826
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
24651
24827
|
])) : createCommentVNode("", true),
|
|
24652
24828
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
24653
|
-
createVNode(_sfc_main$
|
|
24829
|
+
createVNode(_sfc_main$n, {
|
|
24654
24830
|
labels: similarQueriesLabels.value,
|
|
24655
24831
|
columnSize: columnSize.value,
|
|
24656
24832
|
productCardOptions: productCardOptions.value
|
|
24657
24833
|
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
24658
24834
|
])) : createCommentVNode("", true),
|
|
24659
24835
|
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
24660
|
-
createVNode(_sfc_main$
|
|
24836
|
+
createVNode(_sfc_main$j, {
|
|
24661
24837
|
labels: similarResultsLabels.value,
|
|
24662
24838
|
columnSize: columnSize.value,
|
|
24663
24839
|
productCardOptions: productCardOptions.value
|
|
@@ -24726,14 +24902,14 @@ and ensure you are accounting for this risk.
|
|
|
24726
24902
|
])) : createCommentVNode("", true),
|
|
24727
24903
|
createBaseVNode("div", _hoisted_4$4, [
|
|
24728
24904
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
24729
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24905
|
+
return openBlock(), createBlock(_sfc_main$T, {
|
|
24730
24906
|
key: getCategoryKey(child),
|
|
24731
24907
|
item: child,
|
|
24732
24908
|
options: categoryOptions.value
|
|
24733
24909
|
}, null, 8, ["item", "options"]);
|
|
24734
24910
|
}), 128))
|
|
24735
24911
|
]),
|
|
24736
|
-
createVNode(_sfc_main$
|
|
24912
|
+
createVNode(_sfc_main$A, {
|
|
24737
24913
|
class: "lupa-toolbar-mobile",
|
|
24738
24914
|
"pagination-location": "top",
|
|
24739
24915
|
options: _ctx.options
|
|
@@ -24965,8 +25141,8 @@ and ensure you are accounting for this risk.
|
|
|
24965
25141
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
24966
25142
|
}, [
|
|
24967
25143
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
24968
|
-
createVNode(_sfc_main$
|
|
24969
|
-
createVNode(_sfc_main$
|
|
25144
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25145
|
+
createVNode(_sfc_main$W, {
|
|
24970
25146
|
"show-summary": true,
|
|
24971
25147
|
options: _ctx.options,
|
|
24972
25148
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
@@ -24976,17 +25152,17 @@ and ensure you are accounting for this risk.
|
|
|
24976
25152
|
key: 1,
|
|
24977
25153
|
options: _ctx.options
|
|
24978
25154
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24979
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
25155
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$I, {
|
|
24980
25156
|
key: 2,
|
|
24981
25157
|
options: _ctx.options.filters,
|
|
24982
25158
|
onFilter: handleParamsChange
|
|
24983
25159
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24984
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
25160
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$H, {
|
|
24985
25161
|
key: 3,
|
|
24986
25162
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
24987
25163
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
24988
25164
|
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
24989
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
25165
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
|
|
24990
25166
|
key: 0,
|
|
24991
25167
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
24992
25168
|
ref_key: "searchResultsFilters",
|
|
@@ -24994,8 +25170,8 @@ and ensure you are accounting for this risk.
|
|
|
24994
25170
|
onFilter: handleParamsChange
|
|
24995
25171
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24996
25172
|
createBaseVNode("div", _hoisted_3$5, [
|
|
24997
|
-
createVNode(_sfc_main$
|
|
24998
|
-
createVNode(_sfc_main$
|
|
25173
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25174
|
+
createVNode(_sfc_main$W, {
|
|
24999
25175
|
options: _ctx.options,
|
|
25000
25176
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
25001
25177
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -25011,13 +25187,13 @@ and ensure you are accounting for this risk.
|
|
|
25011
25187
|
}, 8, ["options", "ssr"])
|
|
25012
25188
|
])
|
|
25013
25189
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
25014
|
-
createVNode(_sfc_main$
|
|
25015
|
-
createVNode(_sfc_main$
|
|
25190
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25191
|
+
createVNode(_sfc_main$W, {
|
|
25016
25192
|
options: _ctx.options,
|
|
25017
25193
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
25018
25194
|
}, null, 8, ["options", "is-product-list"]),
|
|
25019
25195
|
createBaseVNode("div", _hoisted_4$3, [
|
|
25020
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
25196
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
|
|
25021
25197
|
key: 0,
|
|
25022
25198
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
25023
25199
|
ref_key: "searchResultsFilters",
|
|
@@ -30707,7 +30883,7 @@ and ensure you are accounting for this risk.
|
|
|
30707
30883
|
onClick: withModifiers(innerClick, ["stop"])
|
|
30708
30884
|
}, [
|
|
30709
30885
|
createBaseVNode("div", _hoisted_2$7, [
|
|
30710
|
-
createVNode(_sfc_main$
|
|
30886
|
+
createVNode(_sfc_main$Z, {
|
|
30711
30887
|
options: fullSearchBoxOptions.value,
|
|
30712
30888
|
"is-search-container": true,
|
|
30713
30889
|
ref_key: "searchBox",
|
|
@@ -31571,7 +31747,7 @@ and ensure you are accounting for this risk.
|
|
|
31571
31747
|
key: getProductKeyAction(index, product)
|
|
31572
31748
|
}, {
|
|
31573
31749
|
default: withCtx(() => [
|
|
31574
|
-
createVNode(_sfc_main$
|
|
31750
|
+
createVNode(_sfc_main$o, {
|
|
31575
31751
|
product,
|
|
31576
31752
|
options: _ctx.options,
|
|
31577
31753
|
"click-tracking-settings": clickTrackingSettings.value
|
|
@@ -31584,7 +31760,7 @@ and ensure you are accounting for this risk.
|
|
|
31584
31760
|
_: 1
|
|
31585
31761
|
}, 16)) : (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
31586
31762
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
31587
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31763
|
+
return openBlock(), createBlock(_sfc_main$o, {
|
|
31588
31764
|
style: normalizeStyle(columnSize.value),
|
|
31589
31765
|
key: getProductKeyAction(index, product),
|
|
31590
31766
|
product,
|
|
@@ -31847,7 +32023,7 @@ and ensure you are accounting for this risk.
|
|
|
31847
32023
|
createBaseVNode("a", {
|
|
31848
32024
|
href: getLink(product)
|
|
31849
32025
|
}, [
|
|
31850
|
-
createVNode(_sfc_main$
|
|
32026
|
+
createVNode(_sfc_main$z, {
|
|
31851
32027
|
item: product,
|
|
31852
32028
|
options: image.value
|
|
31853
32029
|
}, null, 8, ["item", "options"])
|
|
@@ -32011,7 +32187,7 @@ and ensure you are accounting for this risk.
|
|
|
32011
32187
|
return (_ctx, _cache) => {
|
|
32012
32188
|
return openBlock(), createElementBlock("section", _hoisted_1$3, [
|
|
32013
32189
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
32014
|
-
return openBlock(), createBlock(_sfc_main$
|
|
32190
|
+
return openBlock(), createBlock(_sfc_main$o, {
|
|
32015
32191
|
class: "lupa-chat-product-card",
|
|
32016
32192
|
key: getProductKeyAction(index, product),
|
|
32017
32193
|
product,
|
|
@@ -32204,7 +32380,7 @@ and ensure you are accounting for this risk.
|
|
|
32204
32380
|
key: 0,
|
|
32205
32381
|
class: "lupasearch-chat-content"
|
|
32206
32382
|
};
|
|
32207
|
-
const _sfc_main$
|
|
32383
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
32208
32384
|
__name: "ChatContainer",
|
|
32209
32385
|
props: {
|
|
32210
32386
|
options: {}
|
|
@@ -38222,7 +38398,7 @@ and ensure you are accounting for this risk.
|
|
|
38222
38398
|
};
|
|
38223
38399
|
__expose({ fetch: fetch2 });
|
|
38224
38400
|
return (_ctx, _cache) => {
|
|
38225
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
38401
|
+
return openBlock(), createBlock(unref(_sfc_main$Z), {
|
|
38226
38402
|
options: fullSearchBoxOptions.value,
|
|
38227
38403
|
ref_key: "searchBox",
|
|
38228
38404
|
ref: searchBox2
|
|
@@ -38749,7 +38925,7 @@ and ensure you are accounting for this risk.
|
|
|
38749
38925
|
const instance = createVue(
|
|
38750
38926
|
options.displayOptions.containerSelector,
|
|
38751
38927
|
mountOptions == null ? void 0 : mountOptions.mountingBehavior,
|
|
38752
|
-
_sfc_main$
|
|
38928
|
+
_sfc_main$1s,
|
|
38753
38929
|
{
|
|
38754
38930
|
options
|
|
38755
38931
|
}
|