@getlupa/client 1.15.1 → 1.15.6
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 +648 -490
- package/dist/lupaSearch.js +648 -490
- package/dist/lupaSearch.mjs +648 -490
- package/dist/lupaSearch.umd.js +648 -490
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/lupaSearch.iife.js
CHANGED
|
@@ -8190,7 +8190,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8190
8190
|
try {
|
|
8191
8191
|
localStorage.setItem(
|
|
8192
8192
|
CACHE_KEY,
|
|
8193
|
-
JSON.stringify({
|
|
8193
|
+
JSON.stringify({
|
|
8194
|
+
redirections: redirections.value,
|
|
8195
|
+
savedAt: Date.now(),
|
|
8196
|
+
queryKey: redirectionOptions.value.queryKey
|
|
8197
|
+
})
|
|
8194
8198
|
);
|
|
8195
8199
|
} catch (e2) {
|
|
8196
8200
|
}
|
|
@@ -8201,6 +8205,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8201
8205
|
return false;
|
|
8202
8206
|
try {
|
|
8203
8207
|
const data = JSON.parse((_a = localStorage.getItem(CACHE_KEY)) != null ? _a : "");
|
|
8208
|
+
if (data.queryKey !== config.queryKey) {
|
|
8209
|
+
return false;
|
|
8210
|
+
}
|
|
8204
8211
|
if ((data == null ? void 0 : data.redirections) && Date.now() - data.savedAt < 1e3 * config.cacheSeconds) {
|
|
8205
8212
|
redirections.value = data.redirections;
|
|
8206
8213
|
return true;
|
|
@@ -8225,6 +8232,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8225
8232
|
try {
|
|
8226
8233
|
const result2 = yield LupaSearchSdk.loadRedirectionRules(config.queryKey, options);
|
|
8227
8234
|
if (!((_d = result2 == null ? void 0 : result2.rules) == null ? void 0 : _d.length)) {
|
|
8235
|
+
redirections.value = { rules: [] };
|
|
8228
8236
|
return;
|
|
8229
8237
|
}
|
|
8230
8238
|
redirections.value = result2;
|
|
@@ -8662,9 +8670,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8662
8670
|
resetHighlightIndex
|
|
8663
8671
|
};
|
|
8664
8672
|
});
|
|
8665
|
-
const _hoisted_1$
|
|
8666
|
-
const _hoisted_2$
|
|
8667
|
-
const _hoisted_3$
|
|
8673
|
+
const _hoisted_1$1h = { id: "lupa-search-box-input-container" };
|
|
8674
|
+
const _hoisted_2$V = { class: "lupa-input-clear" };
|
|
8675
|
+
const _hoisted_3$E = { id: "lupa-search-box-input" };
|
|
8668
8676
|
const _hoisted_4$t = ["value"];
|
|
8669
8677
|
const _hoisted_5$j = ["aria-label", "placeholder"];
|
|
8670
8678
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
@@ -8675,7 +8683,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8675
8683
|
key: 0,
|
|
8676
8684
|
class: "lupa-close-label"
|
|
8677
8685
|
};
|
|
8678
|
-
const _sfc_main$
|
|
8686
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
8679
8687
|
__name: "SearchBoxInput",
|
|
8680
8688
|
props: {
|
|
8681
8689
|
options: {},
|
|
@@ -8759,14 +8767,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8759
8767
|
};
|
|
8760
8768
|
__expose({ focus });
|
|
8761
8769
|
return (_ctx, _cache) => {
|
|
8762
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8763
|
-
createBaseVNode("div", _hoisted_2$
|
|
8770
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1h, [
|
|
8771
|
+
createBaseVNode("div", _hoisted_2$V, [
|
|
8764
8772
|
createBaseVNode("div", {
|
|
8765
8773
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
8766
8774
|
onClick: clear2
|
|
8767
8775
|
}, null, 2)
|
|
8768
8776
|
]),
|
|
8769
|
-
createBaseVNode("div", _hoisted_3$
|
|
8777
|
+
createBaseVNode("div", _hoisted_3$E, [
|
|
8770
8778
|
createBaseVNode("input", {
|
|
8771
8779
|
class: "lupa-hint",
|
|
8772
8780
|
"aria-hidden": "true",
|
|
@@ -8805,7 +8813,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8805
8813
|
};
|
|
8806
8814
|
}
|
|
8807
8815
|
});
|
|
8808
|
-
const _sfc_main$
|
|
8816
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
8809
8817
|
__name: "SearchBoxMoreResults",
|
|
8810
8818
|
props: {
|
|
8811
8819
|
labels: {},
|
|
@@ -8837,9 +8845,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8837
8845
|
};
|
|
8838
8846
|
}
|
|
8839
8847
|
});
|
|
8840
|
-
const _hoisted_1$
|
|
8841
|
-
const _hoisted_2$
|
|
8842
|
-
const _sfc_main$
|
|
8848
|
+
const _hoisted_1$1g = { class: "lupa-search-box-history-item" };
|
|
8849
|
+
const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
|
|
8850
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
8843
8851
|
__name: "SearchBoxHistoryItem",
|
|
8844
8852
|
props: {
|
|
8845
8853
|
item: {},
|
|
@@ -8855,8 +8863,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8855
8863
|
emit2("click", { query: props.item });
|
|
8856
8864
|
};
|
|
8857
8865
|
return (_ctx, _cache) => {
|
|
8858
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8859
|
-
createBaseVNode("div", _hoisted_2$
|
|
8866
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1g, [
|
|
8867
|
+
createBaseVNode("div", _hoisted_2$U, [
|
|
8860
8868
|
createBaseVNode("div", {
|
|
8861
8869
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
8862
8870
|
onClick: click2
|
|
@@ -8870,11 +8878,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8870
8878
|
};
|
|
8871
8879
|
}
|
|
8872
8880
|
});
|
|
8873
|
-
const _hoisted_1$
|
|
8881
|
+
const _hoisted_1$1f = {
|
|
8874
8882
|
key: 0,
|
|
8875
8883
|
class: "lupa-search-box-history-panel"
|
|
8876
8884
|
};
|
|
8877
|
-
const _sfc_main$
|
|
8885
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
8878
8886
|
__name: "SearchBoxHistoryPanel",
|
|
8879
8887
|
props: {
|
|
8880
8888
|
options: {}
|
|
@@ -8915,9 +8923,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8915
8923
|
}
|
|
8916
8924
|
};
|
|
8917
8925
|
return (_ctx, _cache) => {
|
|
8918
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
8926
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1f, [
|
|
8919
8927
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
8920
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8928
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
8921
8929
|
key: item,
|
|
8922
8930
|
item,
|
|
8923
8931
|
highlighted: index === highlightIndex.value,
|
|
@@ -8933,15 +8941,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8933
8941
|
};
|
|
8934
8942
|
}
|
|
8935
8943
|
});
|
|
8936
|
-
const _hoisted_1$
|
|
8937
|
-
const _sfc_main$
|
|
8944
|
+
const _hoisted_1$1e = { class: "lupa-search-box-no-results" };
|
|
8945
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
8938
8946
|
__name: "SearchBoxNoResults",
|
|
8939
8947
|
props: {
|
|
8940
8948
|
labels: {}
|
|
8941
8949
|
},
|
|
8942
8950
|
setup(__props) {
|
|
8943
8951
|
return (_ctx, _cache) => {
|
|
8944
|
-
return openBlock(), createElementBlock("p", _hoisted_1$
|
|
8952
|
+
return openBlock(), createElementBlock("p", _hoisted_1$1e, toDisplayString(_ctx.labels.noResults), 1);
|
|
8945
8953
|
};
|
|
8946
8954
|
}
|
|
8947
8955
|
});
|
|
@@ -8973,13 +8981,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8973
8981
|
}
|
|
8974
8982
|
return gridTemplate.join(" ");
|
|
8975
8983
|
};
|
|
8976
|
-
const _hoisted_1$
|
|
8977
|
-
const _hoisted_2$
|
|
8984
|
+
const _hoisted_1$1d = ["innerHTML"];
|
|
8985
|
+
const _hoisted_2$T = {
|
|
8978
8986
|
key: 1,
|
|
8979
8987
|
"data-cy": "lupa-suggestion-value",
|
|
8980
8988
|
class: "lupa-suggestion-value"
|
|
8981
8989
|
};
|
|
8982
|
-
const _hoisted_3$
|
|
8990
|
+
const _hoisted_3$D = {
|
|
8983
8991
|
key: 2,
|
|
8984
8992
|
class: "lupa-suggestion-facet",
|
|
8985
8993
|
"data-cy": "lupa-suggestion-facet"
|
|
@@ -8992,7 +9000,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8992
9000
|
class: "lupa-suggestion-facet-value",
|
|
8993
9001
|
"data-cy": "lupa-suggestion-facet-value"
|
|
8994
9002
|
};
|
|
8995
|
-
const _sfc_main$
|
|
9003
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
8996
9004
|
__name: "SearchBoxSuggestion",
|
|
8997
9005
|
props: {
|
|
8998
9006
|
suggestion: {},
|
|
@@ -9028,8 +9036,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9028
9036
|
class: "lupa-suggestion-value",
|
|
9029
9037
|
"data-cy": "lupa-suggestion-value",
|
|
9030
9038
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
9031
|
-
}, null, 8, _hoisted_1$
|
|
9032
|
-
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9039
|
+
}, null, 8, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
|
|
9040
|
+
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
|
|
9033
9041
|
createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
|
|
9034
9042
|
createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
9035
9043
|
])) : createCommentVNode("", true)
|
|
@@ -9037,11 +9045,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9037
9045
|
};
|
|
9038
9046
|
}
|
|
9039
9047
|
});
|
|
9040
|
-
const _hoisted_1$
|
|
9048
|
+
const _hoisted_1$1c = {
|
|
9041
9049
|
id: "lupa-search-box-suggestions",
|
|
9042
9050
|
"data-cy": "lupa-search-box-suggestions"
|
|
9043
9051
|
};
|
|
9044
|
-
const _sfc_main$
|
|
9052
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
9045
9053
|
__name: "SearchBoxSuggestions",
|
|
9046
9054
|
props: {
|
|
9047
9055
|
items: {},
|
|
@@ -9101,9 +9109,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9101
9109
|
});
|
|
9102
9110
|
});
|
|
9103
9111
|
return (_ctx, _cache) => {
|
|
9104
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9112
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
9105
9113
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
9106
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9114
|
+
return openBlock(), createBlock(_sfc_main$1o, {
|
|
9107
9115
|
key: getSuggestionKey(item),
|
|
9108
9116
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
9109
9117
|
suggestion: item,
|
|
@@ -9131,7 +9139,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9131
9139
|
}, timeout);
|
|
9132
9140
|
};
|
|
9133
9141
|
};
|
|
9134
|
-
const _sfc_main$
|
|
9142
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
9135
9143
|
__name: "SearchBoxSuggestionsWrapper",
|
|
9136
9144
|
props: {
|
|
9137
9145
|
panel: {},
|
|
@@ -9173,7 +9181,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9173
9181
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
9174
9182
|
watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
9175
9183
|
return (_ctx, _cache) => {
|
|
9176
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9184
|
+
return openBlock(), createBlock(_sfc_main$1n, {
|
|
9177
9185
|
items: searchResult.value,
|
|
9178
9186
|
highlight: _ctx.panel.highlight,
|
|
9179
9187
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -18169,6 +18177,17 @@ and ensure you are accounting for this risk.
|
|
|
18169
18177
|
const rendered = mustache.render(template, document2);
|
|
18170
18178
|
return sanitizeHtml$1(rendered);
|
|
18171
18179
|
};
|
|
18180
|
+
const getDynamicAttributes = (dynamicAttributes = [], document2 = {}) => {
|
|
18181
|
+
var _a, _b;
|
|
18182
|
+
const parsedAttributes = {};
|
|
18183
|
+
for (const attribute of dynamicAttributes) {
|
|
18184
|
+
if (!((_a = attribute == null ? void 0 : attribute.key) == null ? void 0 : _a.startsWith("data-"))) {
|
|
18185
|
+
continue;
|
|
18186
|
+
}
|
|
18187
|
+
parsedAttributes[attribute == null ? void 0 : attribute.key] = escapeHtml$1(mustache.render((_b = attribute == null ? void 0 : attribute.value) != null ? _b : "", document2));
|
|
18188
|
+
}
|
|
18189
|
+
return parsedAttributes;
|
|
18190
|
+
};
|
|
18172
18191
|
const getFieldValue = (doc2, field = "") => {
|
|
18173
18192
|
var _a;
|
|
18174
18193
|
if (typeof field === "number") {
|
|
@@ -18251,9 +18270,9 @@ and ensure you are accounting for this risk.
|
|
|
18251
18270
|
targetImage.src = placeholder;
|
|
18252
18271
|
}
|
|
18253
18272
|
};
|
|
18254
|
-
const _hoisted_1$
|
|
18255
|
-
const _hoisted_2$
|
|
18256
|
-
const _sfc_main$
|
|
18273
|
+
const _hoisted_1$1b = ["src"];
|
|
18274
|
+
const _hoisted_2$S = ["src"];
|
|
18275
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
18257
18276
|
__name: "ProductImage",
|
|
18258
18277
|
props: {
|
|
18259
18278
|
item: {},
|
|
@@ -18395,7 +18414,7 @@ and ensure you are accounting for this risk.
|
|
|
18395
18414
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
18396
18415
|
onError: replaceWithPlaceholder,
|
|
18397
18416
|
key: finalUrl.value
|
|
18398
|
-
}), null, 16, _hoisted_1$
|
|
18417
|
+
}), null, 16, _hoisted_1$1b))
|
|
18399
18418
|
]),
|
|
18400
18419
|
_: 1
|
|
18401
18420
|
})) : (openBlock(), createElementBlock("img", mergeProps({
|
|
@@ -18403,12 +18422,12 @@ and ensure you are accounting for this risk.
|
|
|
18403
18422
|
class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
|
|
18404
18423
|
style: styleOverride.value,
|
|
18405
18424
|
src: finalMainImageUrl.value
|
|
18406
|
-
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$
|
|
18425
|
+
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$S))
|
|
18407
18426
|
], 38);
|
|
18408
18427
|
};
|
|
18409
18428
|
}
|
|
18410
18429
|
});
|
|
18411
|
-
const _sfc_main$
|
|
18430
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
18412
18431
|
__name: "SearchBoxProductImage",
|
|
18413
18432
|
props: {
|
|
18414
18433
|
item: {},
|
|
@@ -18416,7 +18435,7 @@ and ensure you are accounting for this risk.
|
|
|
18416
18435
|
},
|
|
18417
18436
|
setup(__props) {
|
|
18418
18437
|
return (_ctx, _cache) => {
|
|
18419
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18438
|
+
return openBlock(), createBlock(_sfc_main$1l, {
|
|
18420
18439
|
item: _ctx.item,
|
|
18421
18440
|
options: _ctx.options,
|
|
18422
18441
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -18425,12 +18444,12 @@ and ensure you are accounting for this risk.
|
|
|
18425
18444
|
};
|
|
18426
18445
|
}
|
|
18427
18446
|
});
|
|
18428
|
-
const _hoisted_1$
|
|
18429
|
-
const _hoisted_2$
|
|
18447
|
+
const _hoisted_1$1a = ["innerHTML"];
|
|
18448
|
+
const _hoisted_2$R = {
|
|
18430
18449
|
key: 1,
|
|
18431
18450
|
class: "lupa-search-box-product-title"
|
|
18432
18451
|
};
|
|
18433
|
-
const _sfc_main$
|
|
18452
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
18434
18453
|
__name: "SearchBoxProductTitle",
|
|
18435
18454
|
props: {
|
|
18436
18455
|
item: {},
|
|
@@ -18453,18 +18472,18 @@ and ensure you are accounting for this risk.
|
|
|
18453
18472
|
key: 0,
|
|
18454
18473
|
class: "lupa-search-box-product-title",
|
|
18455
18474
|
innerHTML: sanitizedTitle.value
|
|
18456
|
-
}, null, 8, _hoisted_1$
|
|
18475
|
+
}, null, 8, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", _hoisted_2$R, [
|
|
18457
18476
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
18458
18477
|
]));
|
|
18459
18478
|
};
|
|
18460
18479
|
}
|
|
18461
18480
|
});
|
|
18462
|
-
const _hoisted_1$
|
|
18463
|
-
const _hoisted_2$
|
|
18481
|
+
const _hoisted_1$19 = ["innerHTML"];
|
|
18482
|
+
const _hoisted_2$Q = {
|
|
18464
18483
|
key: 1,
|
|
18465
18484
|
class: "lupa-search-box-product-description"
|
|
18466
18485
|
};
|
|
18467
|
-
const _sfc_main$
|
|
18486
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
18468
18487
|
__name: "SearchBoxProductDescription",
|
|
18469
18488
|
props: {
|
|
18470
18489
|
item: {},
|
|
@@ -18487,12 +18506,12 @@ and ensure you are accounting for this risk.
|
|
|
18487
18506
|
key: 0,
|
|
18488
18507
|
class: "lupa-search-box-product-description",
|
|
18489
18508
|
innerHTML: sanitizedDescription.value
|
|
18490
|
-
}, null, 8, _hoisted_1$
|
|
18509
|
+
}, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(description.value), 1));
|
|
18491
18510
|
};
|
|
18492
18511
|
}
|
|
18493
18512
|
});
|
|
18494
|
-
const _hoisted_1$
|
|
18495
|
-
const _sfc_main$
|
|
18513
|
+
const _hoisted_1$18 = { class: "lupa-search-box-product-price" };
|
|
18514
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
18496
18515
|
__name: "SearchBoxProductPrice",
|
|
18497
18516
|
props: {
|
|
18498
18517
|
item: {},
|
|
@@ -18510,13 +18529,13 @@ and ensure you are accounting for this risk.
|
|
|
18510
18529
|
);
|
|
18511
18530
|
});
|
|
18512
18531
|
return (_ctx, _cache) => {
|
|
18513
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18532
|
+
return openBlock(), createElementBlock("div", _hoisted_1$18, [
|
|
18514
18533
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
18515
18534
|
]);
|
|
18516
18535
|
};
|
|
18517
18536
|
}
|
|
18518
18537
|
});
|
|
18519
|
-
const _sfc_main$
|
|
18538
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
18520
18539
|
__name: "SearchBoxProductRegularPrice",
|
|
18521
18540
|
props: {
|
|
18522
18541
|
item: {},
|
|
@@ -18543,12 +18562,12 @@ and ensure you are accounting for this risk.
|
|
|
18543
18562
|
};
|
|
18544
18563
|
}
|
|
18545
18564
|
});
|
|
18546
|
-
const _hoisted_1$
|
|
18547
|
-
const _hoisted_2$
|
|
18548
|
-
const _hoisted_3$
|
|
18565
|
+
const _hoisted_1$17 = ["innerHTML"];
|
|
18566
|
+
const _hoisted_2$P = { key: 0 };
|
|
18567
|
+
const _hoisted_3$C = { key: 1 };
|
|
18549
18568
|
const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
|
|
18550
18569
|
const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
|
|
18551
|
-
const _sfc_main$
|
|
18570
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
18552
18571
|
__name: "SearchBoxProductCustom",
|
|
18553
18572
|
props: {
|
|
18554
18573
|
item: {},
|
|
@@ -18574,11 +18593,11 @@ and ensure you are accounting for this risk.
|
|
|
18574
18593
|
key: 0,
|
|
18575
18594
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
18576
18595
|
innerHTML: text.value
|
|
18577
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
18596
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$17)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
18578
18597
|
key: 1,
|
|
18579
18598
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
18580
18599
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
18581
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
18600
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$C, [
|
|
18582
18601
|
createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
|
|
18583
18602
|
createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
|
|
18584
18603
|
]))
|
|
@@ -18586,8 +18605,8 @@ and ensure you are accounting for this risk.
|
|
|
18586
18605
|
};
|
|
18587
18606
|
}
|
|
18588
18607
|
});
|
|
18589
|
-
const _hoisted_1$
|
|
18590
|
-
const _sfc_main$
|
|
18608
|
+
const _hoisted_1$16 = ["innerHTML"];
|
|
18609
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
18591
18610
|
__name: "SearchBoxProductCustomHtml",
|
|
18592
18611
|
props: {
|
|
18593
18612
|
item: {},
|
|
@@ -18612,7 +18631,7 @@ and ensure you are accounting for this risk.
|
|
|
18612
18631
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
18613
18632
|
class: className.value,
|
|
18614
18633
|
innerHTML: text.value
|
|
18615
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
18634
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$16);
|
|
18616
18635
|
};
|
|
18617
18636
|
}
|
|
18618
18637
|
});
|
|
@@ -18846,15 +18865,16 @@ and ensure you are accounting for this risk.
|
|
|
18846
18865
|
setRelatedCategoryChildren
|
|
18847
18866
|
};
|
|
18848
18867
|
});
|
|
18849
|
-
const _hoisted_1$
|
|
18850
|
-
const _hoisted_2$
|
|
18851
|
-
const _hoisted_3$
|
|
18852
|
-
const _sfc_main$
|
|
18868
|
+
const _hoisted_1$15 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
18869
|
+
const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
|
|
18870
|
+
const _hoisted_3$B = ["onClick", "disabled"];
|
|
18871
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
18853
18872
|
__name: "SearchBoxProductAddToCart",
|
|
18854
18873
|
props: {
|
|
18855
18874
|
item: {},
|
|
18856
18875
|
options: {},
|
|
18857
|
-
inStock: { type: Boolean }
|
|
18876
|
+
inStock: { type: Boolean },
|
|
18877
|
+
dynamicAttributes: {}
|
|
18858
18878
|
},
|
|
18859
18879
|
emits: ["productEvent"],
|
|
18860
18880
|
setup(__props, { emit: emit2 }) {
|
|
@@ -18882,37 +18902,37 @@ and ensure you are accounting for this risk.
|
|
|
18882
18902
|
loading.value = false;
|
|
18883
18903
|
});
|
|
18884
18904
|
return (_ctx, _cache) => {
|
|
18885
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18886
|
-
createBaseVNode("div", _hoisted_2$
|
|
18887
|
-
createBaseVNode("button", {
|
|
18905
|
+
return openBlock(), createElementBlock("div", _hoisted_1$15, [
|
|
18906
|
+
createBaseVNode("div", _hoisted_2$O, [
|
|
18907
|
+
createBaseVNode("button", mergeProps({
|
|
18888
18908
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
18889
|
-
class:
|
|
18909
|
+
class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
|
|
18890
18910
|
"data-cy": "lupa-add-to-cart",
|
|
18891
18911
|
type: "button",
|
|
18892
18912
|
disabled: !inStockValue.value || loading.value
|
|
18893
|
-
}, toDisplayString(label.value),
|
|
18913
|
+
}, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_3$B)
|
|
18894
18914
|
])
|
|
18895
18915
|
]);
|
|
18896
18916
|
};
|
|
18897
18917
|
}
|
|
18898
18918
|
});
|
|
18899
|
-
const _hoisted_1$
|
|
18919
|
+
const _hoisted_1$14 = {
|
|
18900
18920
|
key: 1,
|
|
18901
18921
|
class: "lupa-search-box-element-badge-wrapper"
|
|
18902
18922
|
};
|
|
18903
18923
|
const __default__$4 = {
|
|
18904
18924
|
components: {
|
|
18905
|
-
SearchBoxProductImage: _sfc_main$
|
|
18906
|
-
SearchBoxProductTitle: _sfc_main$
|
|
18907
|
-
SearchBoxProductDescription: _sfc_main$
|
|
18908
|
-
SearchBoxProductPrice: _sfc_main$
|
|
18909
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
18910
|
-
SearchBoxProductCustom: _sfc_main$
|
|
18911
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
18912
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
18925
|
+
SearchBoxProductImage: _sfc_main$1k,
|
|
18926
|
+
SearchBoxProductTitle: _sfc_main$1j,
|
|
18927
|
+
SearchBoxProductDescription: _sfc_main$1i,
|
|
18928
|
+
SearchBoxProductPrice: _sfc_main$1h,
|
|
18929
|
+
SearchBoxProductRegularPrice: _sfc_main$1g,
|
|
18930
|
+
SearchBoxProductCustom: _sfc_main$1f,
|
|
18931
|
+
SearchBoxProductCustomHtml: _sfc_main$1e,
|
|
18932
|
+
SearchBoxProductAddToCart: _sfc_main$1d
|
|
18913
18933
|
}
|
|
18914
18934
|
};
|
|
18915
|
-
const _sfc_main$
|
|
18935
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
18916
18936
|
__name: "SearchBoxProductElement",
|
|
18917
18937
|
props: {
|
|
18918
18938
|
item: {},
|
|
@@ -18945,6 +18965,9 @@ and ensure you are accounting for this risk.
|
|
|
18945
18965
|
}
|
|
18946
18966
|
return "search-box-product-title";
|
|
18947
18967
|
});
|
|
18968
|
+
const renderDynamicAttributesOnParentElement = computed(() => {
|
|
18969
|
+
return props.element.type !== DocumentElementType.ADDTOCART;
|
|
18970
|
+
});
|
|
18948
18971
|
const displayElement = computed(() => {
|
|
18949
18972
|
const element = props.element;
|
|
18950
18973
|
const item = props.item;
|
|
@@ -18961,21 +18984,25 @@ and ensure you are accounting for this risk.
|
|
|
18961
18984
|
const enhancementData = (_d = (_c = dynamicDataIdMap.value) == null ? void 0 : _c[(_b = props.item) == null ? void 0 : _b.id]) != null ? _d : {};
|
|
18962
18985
|
return __spreadValues2(__spreadValues2({}, props.item), enhancementData);
|
|
18963
18986
|
});
|
|
18987
|
+
const dynamicAttributes = computed(() => {
|
|
18988
|
+
return getDynamicAttributes(props.element.dynamicAttributes, enhancedItem.value);
|
|
18989
|
+
});
|
|
18964
18990
|
const isLoadingDynamicData = (id) => {
|
|
18965
18991
|
return Boolean(props.element.dynamic && id && loading.value && (loadingIds == null ? void 0 : loadingIds.value[id]));
|
|
18966
18992
|
};
|
|
18967
18993
|
return (_ctx, _cache) => {
|
|
18968
18994
|
var _a, _b;
|
|
18969
18995
|
return !_ctx.$slots.badges ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
18970
|
-
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
18996
|
+
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), mergeProps({
|
|
18971
18997
|
key: 0,
|
|
18972
18998
|
item: enhancedItem.value,
|
|
18973
18999
|
options: _ctx.element,
|
|
18974
19000
|
labels: _ctx.labels,
|
|
18975
|
-
class:
|
|
18976
|
-
inStock: _ctx.isInStock
|
|
18977
|
-
|
|
18978
|
-
|
|
19001
|
+
class: { "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) },
|
|
19002
|
+
inStock: _ctx.isInStock,
|
|
19003
|
+
"dynamic-attributes": dynamicAttributes.value
|
|
19004
|
+
}, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes"])) : createCommentVNode("", true)
|
|
19005
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$14, [
|
|
18979
19006
|
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
18980
19007
|
key: 0,
|
|
18981
19008
|
item: enhancedItem.value,
|
|
@@ -18989,14 +19016,14 @@ and ensure you are accounting for this risk.
|
|
|
18989
19016
|
};
|
|
18990
19017
|
}
|
|
18991
19018
|
}));
|
|
18992
|
-
const _hoisted_1$
|
|
18993
|
-
const _hoisted_2$
|
|
18994
|
-
const _hoisted_3$
|
|
19019
|
+
const _hoisted_1$13 = { class: "lupa-badge-title" };
|
|
19020
|
+
const _hoisted_2$N = ["src"];
|
|
19021
|
+
const _hoisted_3$A = { key: 1 };
|
|
18995
19022
|
const _hoisted_4$q = {
|
|
18996
19023
|
key: 0,
|
|
18997
19024
|
class: "lupa-badge-full-text"
|
|
18998
19025
|
};
|
|
18999
|
-
const _sfc_main$
|
|
19026
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
19000
19027
|
__name: "SearchResultGeneratedBadge",
|
|
19001
19028
|
props: {
|
|
19002
19029
|
options: {},
|
|
@@ -19029,20 +19056,20 @@ and ensure you are accounting for this risk.
|
|
|
19029
19056
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
19030
19057
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
19031
19058
|
}, [
|
|
19032
|
-
createBaseVNode("span", _hoisted_1$
|
|
19059
|
+
createBaseVNode("span", _hoisted_1$13, [
|
|
19033
19060
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
19034
19061
|
key: 0,
|
|
19035
19062
|
src: image.value
|
|
19036
|
-
}, null, 8, _hoisted_2$
|
|
19037
|
-
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
19063
|
+
}, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
|
|
19064
|
+
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
19038
19065
|
]),
|
|
19039
19066
|
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
19040
19067
|
], 6);
|
|
19041
19068
|
};
|
|
19042
19069
|
}
|
|
19043
19070
|
});
|
|
19044
|
-
const _hoisted_1$
|
|
19045
|
-
const _sfc_main$
|
|
19071
|
+
const _hoisted_1$12 = { class: "lupa-generated-badges" };
|
|
19072
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
19046
19073
|
__name: "SearchResultGeneratedBadges",
|
|
19047
19074
|
props: {
|
|
19048
19075
|
options: {}
|
|
@@ -19068,9 +19095,9 @@ and ensure you are accounting for this risk.
|
|
|
19068
19095
|
})).filter((b) => Boolean(b.id));
|
|
19069
19096
|
});
|
|
19070
19097
|
return (_ctx, _cache) => {
|
|
19071
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19098
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
19072
19099
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
19073
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19100
|
+
return openBlock(), createBlock(_sfc_main$1b, {
|
|
19074
19101
|
key: badge.id,
|
|
19075
19102
|
badge,
|
|
19076
19103
|
options: _ctx.options
|
|
@@ -19080,8 +19107,8 @@ and ensure you are accounting for this risk.
|
|
|
19080
19107
|
};
|
|
19081
19108
|
}
|
|
19082
19109
|
});
|
|
19083
|
-
const _hoisted_1$
|
|
19084
|
-
const _sfc_main$
|
|
19110
|
+
const _hoisted_1$11 = ["innerHTML"];
|
|
19111
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
19085
19112
|
__name: "CustomBadge",
|
|
19086
19113
|
props: {
|
|
19087
19114
|
badge: {}
|
|
@@ -19102,12 +19129,12 @@ and ensure you are accounting for this risk.
|
|
|
19102
19129
|
return openBlock(), createElementBlock("div", {
|
|
19103
19130
|
class: normalizeClass(className.value),
|
|
19104
19131
|
innerHTML: text.value
|
|
19105
|
-
}, null, 10, _hoisted_1$
|
|
19132
|
+
}, null, 10, _hoisted_1$11);
|
|
19106
19133
|
};
|
|
19107
19134
|
}
|
|
19108
19135
|
});
|
|
19109
|
-
const _hoisted_1
|
|
19110
|
-
const _sfc_main$
|
|
19136
|
+
const _hoisted_1$10 = { class: "lupa-text-badges" };
|
|
19137
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
19111
19138
|
__name: "TextBadge",
|
|
19112
19139
|
props: {
|
|
19113
19140
|
badge: {}
|
|
@@ -19121,7 +19148,7 @@ and ensure you are accounting for this risk.
|
|
|
19121
19148
|
return badges.value.slice(0, props.badge.maxItems);
|
|
19122
19149
|
});
|
|
19123
19150
|
return (_ctx, _cache) => {
|
|
19124
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
19151
|
+
return openBlock(), createElementBlock("div", _hoisted_1$10, [
|
|
19125
19152
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
19126
19153
|
return openBlock(), createElementBlock("div", {
|
|
19127
19154
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -19132,9 +19159,9 @@ and ensure you are accounting for this risk.
|
|
|
19132
19159
|
};
|
|
19133
19160
|
}
|
|
19134
19161
|
});
|
|
19135
|
-
const _hoisted_1
|
|
19136
|
-
const _hoisted_2$
|
|
19137
|
-
const _sfc_main$
|
|
19162
|
+
const _hoisted_1$$ = { class: "lupa-image-badges" };
|
|
19163
|
+
const _hoisted_2$M = ["src"];
|
|
19164
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
19138
19165
|
__name: "ImageBadge",
|
|
19139
19166
|
props: {
|
|
19140
19167
|
badge: {}
|
|
@@ -19154,7 +19181,7 @@ and ensure you are accounting for this risk.
|
|
|
19154
19181
|
return `${props.badge.rootImageUrl}${src}`;
|
|
19155
19182
|
};
|
|
19156
19183
|
return (_ctx, _cache) => {
|
|
19157
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
19184
|
+
return openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
19158
19185
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
19159
19186
|
return openBlock(), createElementBlock("div", {
|
|
19160
19187
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -19162,14 +19189,14 @@ and ensure you are accounting for this risk.
|
|
|
19162
19189
|
}, [
|
|
19163
19190
|
createBaseVNode("img", {
|
|
19164
19191
|
src: getImageUrl(item)
|
|
19165
|
-
}, null, 8, _hoisted_2$
|
|
19192
|
+
}, null, 8, _hoisted_2$M)
|
|
19166
19193
|
]);
|
|
19167
19194
|
}), 128))
|
|
19168
19195
|
]);
|
|
19169
19196
|
};
|
|
19170
19197
|
}
|
|
19171
19198
|
});
|
|
19172
|
-
const _sfc_main$
|
|
19199
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
19173
19200
|
__name: "DiscountBadge",
|
|
19174
19201
|
props: {
|
|
19175
19202
|
badge: {}
|
|
@@ -19227,16 +19254,16 @@ and ensure you are accounting for this risk.
|
|
|
19227
19254
|
};
|
|
19228
19255
|
}
|
|
19229
19256
|
});
|
|
19230
|
-
const _hoisted_1$
|
|
19257
|
+
const _hoisted_1$_ = { id: "lupa-search-results-badges" };
|
|
19231
19258
|
const __default__$3 = {
|
|
19232
19259
|
components: {
|
|
19233
|
-
CustomBadge: _sfc_main$
|
|
19234
|
-
TextBadge: _sfc_main$
|
|
19235
|
-
ImageBadge: _sfc_main$
|
|
19236
|
-
DiscountBadge: _sfc_main$
|
|
19260
|
+
CustomBadge: _sfc_main$19,
|
|
19261
|
+
TextBadge: _sfc_main$18,
|
|
19262
|
+
ImageBadge: _sfc_main$17,
|
|
19263
|
+
DiscountBadge: _sfc_main$16
|
|
19237
19264
|
}
|
|
19238
19265
|
};
|
|
19239
|
-
const _sfc_main$
|
|
19266
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
19240
19267
|
__name: "SearchResultsBadgeWrapper",
|
|
19241
19268
|
props: {
|
|
19242
19269
|
position: {},
|
|
@@ -19299,7 +19326,7 @@ and ensure you are accounting for this risk.
|
|
|
19299
19326
|
}
|
|
19300
19327
|
};
|
|
19301
19328
|
return (_ctx, _cache) => {
|
|
19302
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19329
|
+
return openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
19303
19330
|
createBaseVNode("div", {
|
|
19304
19331
|
id: "lupa-badges",
|
|
19305
19332
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -19310,7 +19337,7 @@ and ensure you are accounting for this risk.
|
|
|
19310
19337
|
badge
|
|
19311
19338
|
}, null, 8, ["badge"]);
|
|
19312
19339
|
}), 128)),
|
|
19313
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
19340
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1a, {
|
|
19314
19341
|
key: 0,
|
|
19315
19342
|
options: _ctx.options
|
|
19316
19343
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -19319,13 +19346,13 @@ and ensure you are accounting for this risk.
|
|
|
19319
19346
|
};
|
|
19320
19347
|
}
|
|
19321
19348
|
}));
|
|
19322
|
-
const _hoisted_1$
|
|
19323
|
-
const _hoisted_2$
|
|
19324
|
-
const _hoisted_3$
|
|
19349
|
+
const _hoisted_1$Z = ["href"];
|
|
19350
|
+
const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
|
|
19351
|
+
const _hoisted_3$z = {
|
|
19325
19352
|
key: 0,
|
|
19326
19353
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
19327
19354
|
};
|
|
19328
|
-
const _sfc_main$
|
|
19355
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
19329
19356
|
__name: "SearchBoxProduct",
|
|
19330
19357
|
props: {
|
|
19331
19358
|
item: {},
|
|
@@ -19411,7 +19438,7 @@ and ensure you are accounting for this risk.
|
|
|
19411
19438
|
style: normalizeStyle(imageStyleOverride.value)
|
|
19412
19439
|
}, [
|
|
19413
19440
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
19414
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19441
|
+
return openBlock(), createBlock(_sfc_main$1c, {
|
|
19415
19442
|
class: "lupa-search-box-product-element",
|
|
19416
19443
|
item: _ctx.item,
|
|
19417
19444
|
element,
|
|
@@ -19421,10 +19448,10 @@ and ensure you are accounting for this risk.
|
|
|
19421
19448
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
19422
19449
|
}), 128))
|
|
19423
19450
|
], 4),
|
|
19424
|
-
createBaseVNode("div", _hoisted_2$
|
|
19451
|
+
createBaseVNode("div", _hoisted_2$L, [
|
|
19425
19452
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
19426
19453
|
var _a;
|
|
19427
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19454
|
+
return openBlock(), createBlock(_sfc_main$1c, {
|
|
19428
19455
|
key: element.key,
|
|
19429
19456
|
class: "lupa-search-box-product-element",
|
|
19430
19457
|
item: _ctx.item,
|
|
@@ -19435,7 +19462,7 @@ and ensure you are accounting for this risk.
|
|
|
19435
19462
|
badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
|
|
19436
19463
|
name: "badges",
|
|
19437
19464
|
fn: withCtx(() => [
|
|
19438
|
-
createVNode(_sfc_main$
|
|
19465
|
+
createVNode(_sfc_main$15, {
|
|
19439
19466
|
options: badgeOptions.value,
|
|
19440
19467
|
position: "card"
|
|
19441
19468
|
}, null, 8, ["options"])
|
|
@@ -19445,8 +19472,8 @@ and ensure you are accounting for this risk.
|
|
|
19445
19472
|
]), 1032, ["item", "element", "labels", "link"]);
|
|
19446
19473
|
}), 128))
|
|
19447
19474
|
]),
|
|
19448
|
-
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
19449
|
-
createVNode(_sfc_main$
|
|
19475
|
+
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
19476
|
+
createVNode(_sfc_main$1c, {
|
|
19450
19477
|
class: "lupa-search-box-product-element",
|
|
19451
19478
|
item: _ctx.item,
|
|
19452
19479
|
element: addToCartElement.value,
|
|
@@ -19455,7 +19482,7 @@ and ensure you are accounting for this risk.
|
|
|
19455
19482
|
isInStock: isInStock.value
|
|
19456
19483
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
19457
19484
|
])) : createCommentVNode("", true)
|
|
19458
|
-
], 16, _hoisted_1$
|
|
19485
|
+
], 16, _hoisted_1$Z);
|
|
19459
19486
|
};
|
|
19460
19487
|
}
|
|
19461
19488
|
});
|
|
@@ -19527,8 +19554,8 @@ and ensure you are accounting for this risk.
|
|
|
19527
19554
|
};
|
|
19528
19555
|
return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
|
|
19529
19556
|
});
|
|
19530
|
-
const _hoisted_1$
|
|
19531
|
-
const _sfc_main$
|
|
19557
|
+
const _hoisted_1$Y = { id: "lupa-search-box-products" };
|
|
19558
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
19532
19559
|
__name: "SearchBoxProducts",
|
|
19533
19560
|
props: {
|
|
19534
19561
|
items: {},
|
|
@@ -19596,7 +19623,7 @@ and ensure you are accounting for this risk.
|
|
|
19596
19623
|
handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
|
|
19597
19624
|
};
|
|
19598
19625
|
return (_ctx, _cache) => {
|
|
19599
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19626
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Y, [
|
|
19600
19627
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
19601
19628
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
19602
19629
|
key: index,
|
|
@@ -19608,7 +19635,7 @@ and ensure you are accounting for this risk.
|
|
|
19608
19635
|
itemClicked: handleProductClick
|
|
19609
19636
|
});
|
|
19610
19637
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
19611
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19638
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
19612
19639
|
key: index,
|
|
19613
19640
|
item,
|
|
19614
19641
|
panelOptions: _ctx.panelOptions,
|
|
@@ -19623,9 +19650,9 @@ and ensure you are accounting for this risk.
|
|
|
19623
19650
|
};
|
|
19624
19651
|
}
|
|
19625
19652
|
});
|
|
19626
|
-
const _hoisted_1$
|
|
19627
|
-
const _hoisted_2$
|
|
19628
|
-
const _sfc_main$
|
|
19653
|
+
const _hoisted_1$X = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
19654
|
+
const _hoisted_2$K = { key: 0 };
|
|
19655
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
19629
19656
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
19630
19657
|
props: {
|
|
19631
19658
|
options: {},
|
|
@@ -19655,19 +19682,19 @@ and ensure you are accounting for this risk.
|
|
|
19655
19682
|
emit2("goToResults");
|
|
19656
19683
|
};
|
|
19657
19684
|
return (_ctx, _cache) => {
|
|
19658
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19685
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
19659
19686
|
createBaseVNode("button", {
|
|
19660
19687
|
class: "lupa-search-box-documents-go-to-results-button",
|
|
19661
19688
|
onClick: goToResults
|
|
19662
19689
|
}, [
|
|
19663
19690
|
createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
|
|
19664
|
-
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
19691
|
+
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$K, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
|
|
19665
19692
|
])
|
|
19666
19693
|
]);
|
|
19667
19694
|
};
|
|
19668
19695
|
}
|
|
19669
19696
|
});
|
|
19670
|
-
const _sfc_main$
|
|
19697
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
19671
19698
|
__name: "SearchBoxProductsWrapper",
|
|
19672
19699
|
props: {
|
|
19673
19700
|
panel: {},
|
|
@@ -19724,7 +19751,7 @@ and ensure you are accounting for this risk.
|
|
|
19724
19751
|
watch(() => props.panel.limit, getItemsDebounced);
|
|
19725
19752
|
return (_ctx, _cache) => {
|
|
19726
19753
|
var _a, _b;
|
|
19727
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19754
|
+
return openBlock(), createBlock(_sfc_main$13, {
|
|
19728
19755
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19729
19756
|
panelOptions: _ctx.panel,
|
|
19730
19757
|
labels: _ctx.labels,
|
|
@@ -19734,7 +19761,7 @@ and ensure you are accounting for this risk.
|
|
|
19734
19761
|
default: withCtx(() => {
|
|
19735
19762
|
var _a2;
|
|
19736
19763
|
return [
|
|
19737
|
-
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$
|
|
19764
|
+
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$12, {
|
|
19738
19765
|
key: 0,
|
|
19739
19766
|
options: _ctx.searchBoxOptions,
|
|
19740
19767
|
panel: _ctx.panel,
|
|
@@ -19755,7 +19782,7 @@ and ensure you are accounting for this risk.
|
|
|
19755
19782
|
};
|
|
19756
19783
|
}
|
|
19757
19784
|
});
|
|
19758
|
-
const _sfc_main
|
|
19785
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
19759
19786
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
19760
19787
|
props: {
|
|
19761
19788
|
panel: {},
|
|
@@ -19827,7 +19854,7 @@ and ensure you are accounting for this risk.
|
|
|
19827
19854
|
});
|
|
19828
19855
|
return (_ctx, _cache) => {
|
|
19829
19856
|
var _a, _b;
|
|
19830
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19857
|
+
return openBlock(), createBlock(_sfc_main$13, {
|
|
19831
19858
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19832
19859
|
panelOptions: documentPanelOptions.value,
|
|
19833
19860
|
labels: _ctx.labels,
|
|
@@ -19845,12 +19872,12 @@ and ensure you are accounting for this risk.
|
|
|
19845
19872
|
};
|
|
19846
19873
|
}
|
|
19847
19874
|
});
|
|
19848
|
-
const _hoisted_1$
|
|
19875
|
+
const _hoisted_1$W = {
|
|
19849
19876
|
key: 0,
|
|
19850
19877
|
id: "lupa-search-box-panel"
|
|
19851
19878
|
};
|
|
19852
|
-
const _hoisted_2$
|
|
19853
|
-
const _hoisted_3$
|
|
19879
|
+
const _hoisted_2$J = ["data-cy"];
|
|
19880
|
+
const _hoisted_3$y = {
|
|
19854
19881
|
key: 0,
|
|
19855
19882
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
19856
19883
|
};
|
|
@@ -19864,12 +19891,12 @@ and ensure you are accounting for this risk.
|
|
|
19864
19891
|
};
|
|
19865
19892
|
const __default__$2 = {
|
|
19866
19893
|
components: {
|
|
19867
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
19868
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
19869
|
-
SearchBoxRelatedSourceWrapper: _sfc_main
|
|
19894
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1m,
|
|
19895
|
+
SearchBoxProductsWrapper: _sfc_main$11,
|
|
19896
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$10
|
|
19870
19897
|
}
|
|
19871
19898
|
};
|
|
19872
|
-
const _sfc_main
|
|
19899
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
19873
19900
|
__name: "SearchBoxMainPanel",
|
|
19874
19901
|
props: {
|
|
19875
19902
|
options: {},
|
|
@@ -20025,7 +20052,7 @@ and ensure you are accounting for this risk.
|
|
|
20025
20052
|
ref_key: "panelContainer",
|
|
20026
20053
|
ref: panelContainer
|
|
20027
20054
|
}, [
|
|
20028
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20055
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
20029
20056
|
labels.value.closePanel ? (openBlock(), createElementBlock("a", {
|
|
20030
20057
|
key: 0,
|
|
20031
20058
|
class: "lupa-search-box-close-panel",
|
|
@@ -20047,7 +20074,7 @@ and ensure you are accounting for this risk.
|
|
|
20047
20074
|
style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
|
|
20048
20075
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
20049
20076
|
}, [
|
|
20050
|
-
((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20077
|
+
((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$y, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
|
|
20051
20078
|
((_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),
|
|
20052
20079
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
20053
20080
|
key: 2,
|
|
@@ -20070,21 +20097,21 @@ and ensure you are accounting for this risk.
|
|
|
20070
20097
|
key: "0"
|
|
20071
20098
|
} : void 0
|
|
20072
20099
|
]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
20073
|
-
], 14, _hoisted_2$
|
|
20100
|
+
], 14, _hoisted_2$J);
|
|
20074
20101
|
}), 128))
|
|
20075
20102
|
], 4),
|
|
20076
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
20103
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1p, {
|
|
20077
20104
|
key: 1,
|
|
20078
20105
|
labels: labels.value
|
|
20079
20106
|
}, null, 8, ["labels"])) : createCommentVNode("", true),
|
|
20080
|
-
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$
|
|
20107
|
+
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1s, {
|
|
20081
20108
|
key: 2,
|
|
20082
20109
|
labels: labels.value,
|
|
20083
20110
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
20084
20111
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
20085
20112
|
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
20086
20113
|
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
|
|
20087
|
-
createVNode(_sfc_main$
|
|
20114
|
+
createVNode(_sfc_main$1q, {
|
|
20088
20115
|
options: _ctx.options.history,
|
|
20089
20116
|
history: history.value,
|
|
20090
20117
|
onGoToResults: handleGoToResults,
|
|
@@ -20109,9 +20136,9 @@ and ensure you are accounting for this risk.
|
|
|
20109
20136
|
const elements = getElements(triggers);
|
|
20110
20137
|
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
20111
20138
|
};
|
|
20112
|
-
const _hoisted_1$
|
|
20113
|
-
const _hoisted_2$
|
|
20114
|
-
const _sfc_main$
|
|
20139
|
+
const _hoisted_1$V = { id: "lupa-search-box" };
|
|
20140
|
+
const _hoisted_2$I = { class: "lupa-search-box-wrapper" };
|
|
20141
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
20115
20142
|
__name: "SearchBox",
|
|
20116
20143
|
props: {
|
|
20117
20144
|
options: {},
|
|
@@ -20378,9 +20405,9 @@ and ensure you are accounting for this risk.
|
|
|
20378
20405
|
};
|
|
20379
20406
|
return (_ctx, _cache) => {
|
|
20380
20407
|
var _a2;
|
|
20381
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20382
|
-
createBaseVNode("div", _hoisted_2$
|
|
20383
|
-
createVNode(_sfc_main$
|
|
20408
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
20409
|
+
createBaseVNode("div", _hoisted_2$I, [
|
|
20410
|
+
createVNode(_sfc_main$1t, {
|
|
20384
20411
|
options: inputOptions.value,
|
|
20385
20412
|
suggestedValue: suggestedValue.value,
|
|
20386
20413
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -20393,7 +20420,7 @@ and ensure you are accounting for this risk.
|
|
|
20393
20420
|
onSearch: handleSearch,
|
|
20394
20421
|
onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
|
|
20395
20422
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
20396
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main
|
|
20423
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$$, {
|
|
20397
20424
|
key: 0,
|
|
20398
20425
|
options: panelOptions.value,
|
|
20399
20426
|
inputValue: inputValue.value,
|
|
@@ -20482,20 +20509,20 @@ and ensure you are accounting for this risk.
|
|
|
20482
20509
|
}
|
|
20483
20510
|
return searchParams;
|
|
20484
20511
|
};
|
|
20485
|
-
const _hoisted_1$
|
|
20512
|
+
const _hoisted_1$U = {
|
|
20486
20513
|
key: 0,
|
|
20487
20514
|
id: "lupa-search-results-did-you-mean"
|
|
20488
20515
|
};
|
|
20489
|
-
const _hoisted_2$
|
|
20516
|
+
const _hoisted_2$H = {
|
|
20490
20517
|
key: 0,
|
|
20491
20518
|
"data-cy": "suggested-search-text-label"
|
|
20492
20519
|
};
|
|
20493
|
-
const _hoisted_3$
|
|
20520
|
+
const _hoisted_3$x = {
|
|
20494
20521
|
key: 1,
|
|
20495
20522
|
"data-cy": "did-you-mean-label"
|
|
20496
20523
|
};
|
|
20497
20524
|
const _hoisted_4$o = { key: 1 };
|
|
20498
|
-
const _sfc_main$
|
|
20525
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
20499
20526
|
__name: "SearchResultsDidYouMean",
|
|
20500
20527
|
props: {
|
|
20501
20528
|
labels: {}
|
|
@@ -20527,8 +20554,8 @@ and ensure you are accounting for this risk.
|
|
|
20527
20554
|
paramStore.goToResults({ searchText, facet });
|
|
20528
20555
|
};
|
|
20529
20556
|
return (_ctx, _cache) => {
|
|
20530
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20531
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
20557
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
20558
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$H, [
|
|
20532
20559
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
20533
20560
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
20534
20561
|
createBaseVNode("span", {
|
|
@@ -20537,7 +20564,7 @@ and ensure you are accounting for this risk.
|
|
|
20537
20564
|
]);
|
|
20538
20565
|
}), 128))
|
|
20539
20566
|
])) : createCommentVNode("", true),
|
|
20540
|
-
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20567
|
+
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
|
|
20541
20568
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
20542
20569
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
20543
20570
|
label.includes("{1}") ? (openBlock(), createElementBlock("span", {
|
|
@@ -20553,12 +20580,12 @@ and ensure you are accounting for this risk.
|
|
|
20553
20580
|
};
|
|
20554
20581
|
}
|
|
20555
20582
|
});
|
|
20556
|
-
const _hoisted_1$
|
|
20583
|
+
const _hoisted_1$T = {
|
|
20557
20584
|
key: 0,
|
|
20558
20585
|
class: "lupa-search-results-summary"
|
|
20559
20586
|
};
|
|
20560
|
-
const _hoisted_2$
|
|
20561
|
-
const _sfc_main$
|
|
20587
|
+
const _hoisted_2$G = ["innerHTML"];
|
|
20588
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
20562
20589
|
__name: "SearchResultsSummary",
|
|
20563
20590
|
props: {
|
|
20564
20591
|
label: {},
|
|
@@ -20573,8 +20600,8 @@ and ensure you are accounting for this risk.
|
|
|
20573
20600
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
20574
20601
|
});
|
|
20575
20602
|
return (_ctx, _cache) => {
|
|
20576
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20577
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
20603
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
20604
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$G),
|
|
20578
20605
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
20579
20606
|
key: 0,
|
|
20580
20607
|
class: "lupa-filter-clear",
|
|
@@ -20585,19 +20612,19 @@ and ensure you are accounting for this risk.
|
|
|
20585
20612
|
};
|
|
20586
20613
|
}
|
|
20587
20614
|
});
|
|
20588
|
-
const _hoisted_1$
|
|
20615
|
+
const _hoisted_1$S = {
|
|
20589
20616
|
key: 0,
|
|
20590
20617
|
class: "lupa-result-page-title",
|
|
20591
20618
|
"data-cy": "lupa-result-page-title"
|
|
20592
20619
|
};
|
|
20593
|
-
const _hoisted_2$
|
|
20594
|
-
const _hoisted_3$
|
|
20620
|
+
const _hoisted_2$F = { key: 0 };
|
|
20621
|
+
const _hoisted_3$w = {
|
|
20595
20622
|
key: 1,
|
|
20596
20623
|
class: "lupa-results-total-count"
|
|
20597
20624
|
};
|
|
20598
20625
|
const _hoisted_4$n = { class: "lupa-results-total-count-number" };
|
|
20599
20626
|
const _hoisted_5$f = ["innerHTML"];
|
|
20600
|
-
const _sfc_main$
|
|
20627
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
20601
20628
|
__name: "SearchResultsTitle",
|
|
20602
20629
|
props: {
|
|
20603
20630
|
options: {},
|
|
@@ -20636,16 +20663,16 @@ and ensure you are accounting for this risk.
|
|
|
20636
20663
|
});
|
|
20637
20664
|
return (_ctx, _cache) => {
|
|
20638
20665
|
return openBlock(), createElementBlock("div", null, [
|
|
20639
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
20666
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$S, [
|
|
20640
20667
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
20641
|
-
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
20642
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
20668
|
+
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$F, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
20669
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, [
|
|
20643
20670
|
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
20644
20671
|
createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
|
|
20645
20672
|
createTextVNode(")")
|
|
20646
20673
|
])) : createCommentVNode("", true)
|
|
20647
20674
|
])) : createCommentVNode("", true),
|
|
20648
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
20675
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Y, {
|
|
20649
20676
|
key: 1,
|
|
20650
20677
|
label: summaryLabel.value
|
|
20651
20678
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -20658,16 +20685,16 @@ and ensure you are accounting for this risk.
|
|
|
20658
20685
|
};
|
|
20659
20686
|
}
|
|
20660
20687
|
});
|
|
20661
|
-
const _hoisted_1$
|
|
20662
|
-
const _hoisted_2$
|
|
20688
|
+
const _hoisted_1$R = { class: "lupa-search-result-filter-value" };
|
|
20689
|
+
const _hoisted_2$E = {
|
|
20663
20690
|
class: "lupa-current-filter-label",
|
|
20664
20691
|
"data-cy": "lupa-current-filter-label"
|
|
20665
20692
|
};
|
|
20666
|
-
const _hoisted_3$
|
|
20693
|
+
const _hoisted_3$v = {
|
|
20667
20694
|
class: "lupa-current-filter-value",
|
|
20668
20695
|
"data-cy": "lupa-current-filter-value"
|
|
20669
20696
|
};
|
|
20670
|
-
const _sfc_main$
|
|
20697
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
20671
20698
|
__name: "CurrentFilterDisplay",
|
|
20672
20699
|
props: {
|
|
20673
20700
|
filter: {}
|
|
@@ -20679,28 +20706,28 @@ and ensure you are accounting for this risk.
|
|
|
20679
20706
|
emit2("remove", { filter: props.filter });
|
|
20680
20707
|
};
|
|
20681
20708
|
return (_ctx, _cache) => {
|
|
20682
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20709
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
20683
20710
|
createBaseVNode("div", {
|
|
20684
20711
|
class: "lupa-current-filter-action",
|
|
20685
20712
|
onClick: handleClick
|
|
20686
20713
|
}, "⨉"),
|
|
20687
|
-
createBaseVNode("div", _hoisted_2$
|
|
20688
|
-
createBaseVNode("div", _hoisted_3$
|
|
20714
|
+
createBaseVNode("div", _hoisted_2$E, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
20715
|
+
createBaseVNode("div", _hoisted_3$v, toDisplayString(_ctx.filter.value), 1)
|
|
20689
20716
|
]);
|
|
20690
20717
|
};
|
|
20691
20718
|
}
|
|
20692
20719
|
});
|
|
20693
|
-
const _hoisted_1$
|
|
20694
|
-
const _hoisted_2$
|
|
20720
|
+
const _hoisted_1$Q = { class: "lupa-filter-title-text" };
|
|
20721
|
+
const _hoisted_2$D = {
|
|
20695
20722
|
key: 0,
|
|
20696
20723
|
class: "lupa-filter-count"
|
|
20697
20724
|
};
|
|
20698
|
-
const _hoisted_3$
|
|
20725
|
+
const _hoisted_3$u = {
|
|
20699
20726
|
key: 0,
|
|
20700
20727
|
class: "filter-values"
|
|
20701
20728
|
};
|
|
20702
20729
|
const _hoisted_4$m = { class: "lupa-current-filter-list" };
|
|
20703
|
-
const _sfc_main$
|
|
20730
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
20704
20731
|
__name: "CurrentFilters",
|
|
20705
20732
|
props: {
|
|
20706
20733
|
options: {},
|
|
@@ -20773,19 +20800,19 @@ and ensure you are accounting for this risk.
|
|
|
20773
20800
|
class: "lupa-current-filter-title",
|
|
20774
20801
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
20775
20802
|
}, [
|
|
20776
|
-
createBaseVNode("div", _hoisted_1$
|
|
20803
|
+
createBaseVNode("div", _hoisted_1$Q, [
|
|
20777
20804
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
20778
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
20805
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$D, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
20779
20806
|
]),
|
|
20780
20807
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
20781
20808
|
key: 0,
|
|
20782
20809
|
class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
20783
20810
|
}, null, 2)) : createCommentVNode("", true)
|
|
20784
20811
|
]),
|
|
20785
|
-
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20812
|
+
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
|
|
20786
20813
|
createBaseVNode("div", _hoisted_4$m, [
|
|
20787
20814
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
|
|
20788
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20815
|
+
return openBlock(), createBlock(_sfc_main$W, {
|
|
20789
20816
|
key: filter2.key + "_" + filter2.value,
|
|
20790
20817
|
filter: filter2,
|
|
20791
20818
|
onRemove: handleRemove
|
|
@@ -20802,8 +20829,8 @@ and ensure you are accounting for this risk.
|
|
|
20802
20829
|
};
|
|
20803
20830
|
}
|
|
20804
20831
|
});
|
|
20805
|
-
const _hoisted_1$
|
|
20806
|
-
const _sfc_main$
|
|
20832
|
+
const _hoisted_1$P = ["href"];
|
|
20833
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
20807
20834
|
__name: "CategoryFilterItem",
|
|
20808
20835
|
props: {
|
|
20809
20836
|
options: {},
|
|
@@ -20840,20 +20867,20 @@ and ensure you are accounting for this risk.
|
|
|
20840
20867
|
"data-cy": "lupa-child-category-item",
|
|
20841
20868
|
href: urlLink.value,
|
|
20842
20869
|
onClick: handleNavigation
|
|
20843
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
20870
|
+
}, toDisplayString(title.value), 9, _hoisted_1$P)
|
|
20844
20871
|
], 2);
|
|
20845
20872
|
};
|
|
20846
20873
|
}
|
|
20847
20874
|
});
|
|
20848
|
-
const _hoisted_1$
|
|
20875
|
+
const _hoisted_1$O = {
|
|
20849
20876
|
class: "lupa-category-filter",
|
|
20850
20877
|
"data-cy": "lupa-category-filter"
|
|
20851
20878
|
};
|
|
20852
|
-
const _hoisted_2$
|
|
20853
|
-
const _hoisted_3$
|
|
20879
|
+
const _hoisted_2$C = { class: "lupa-category-back" };
|
|
20880
|
+
const _hoisted_3$t = ["href"];
|
|
20854
20881
|
const _hoisted_4$l = ["href"];
|
|
20855
20882
|
const _hoisted_5$e = { class: "lupa-child-category-list" };
|
|
20856
|
-
const _sfc_main$
|
|
20883
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
20857
20884
|
__name: "CategoryFilter",
|
|
20858
20885
|
props: {
|
|
20859
20886
|
options: {}
|
|
@@ -20941,14 +20968,14 @@ and ensure you are accounting for this risk.
|
|
|
20941
20968
|
};
|
|
20942
20969
|
__expose({ fetch: fetch2 });
|
|
20943
20970
|
return (_ctx, _cache) => {
|
|
20944
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20945
|
-
createBaseVNode("div", _hoisted_2$
|
|
20971
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
20972
|
+
createBaseVNode("div", _hoisted_2$C, [
|
|
20946
20973
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
20947
20974
|
key: 0,
|
|
20948
20975
|
"data-cy": "lupa-category-back",
|
|
20949
20976
|
href: backUrlLink.value,
|
|
20950
20977
|
onClick: handleNavigationBack
|
|
20951
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
20978
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$t)) : createCommentVNode("", true)
|
|
20952
20979
|
]),
|
|
20953
20980
|
createBaseVNode("div", {
|
|
20954
20981
|
class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -20962,7 +20989,7 @@ and ensure you are accounting for this risk.
|
|
|
20962
20989
|
], 2),
|
|
20963
20990
|
createBaseVNode("div", _hoisted_5$e, [
|
|
20964
20991
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
20965
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20992
|
+
return openBlock(), createBlock(_sfc_main$U, {
|
|
20966
20993
|
key: getCategoryKey(child),
|
|
20967
20994
|
item: child,
|
|
20968
20995
|
options: _ctx.options
|
|
@@ -20973,12 +21000,12 @@ and ensure you are accounting for this risk.
|
|
|
20973
21000
|
};
|
|
20974
21001
|
}
|
|
20975
21002
|
});
|
|
20976
|
-
const _hoisted_1$
|
|
21003
|
+
const _hoisted_1$N = {
|
|
20977
21004
|
class: "lupa-search-result-facet-term-values",
|
|
20978
21005
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
20979
21006
|
};
|
|
20980
|
-
const _hoisted_2$
|
|
20981
|
-
const _hoisted_3$
|
|
21007
|
+
const _hoisted_2$B = ["placeholder"];
|
|
21008
|
+
const _hoisted_3$s = { class: "lupa-terms-list" };
|
|
20982
21009
|
const _hoisted_4$k = ["onClick"];
|
|
20983
21010
|
const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
|
|
20984
21011
|
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
@@ -20989,7 +21016,7 @@ and ensure you are accounting for this risk.
|
|
|
20989
21016
|
};
|
|
20990
21017
|
const _hoisted_9$2 = { key: 0 };
|
|
20991
21018
|
const _hoisted_10$1 = { key: 1 };
|
|
20992
|
-
const _sfc_main$
|
|
21019
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
20993
21020
|
__name: "TermFacet",
|
|
20994
21021
|
props: {
|
|
20995
21022
|
options: {},
|
|
@@ -21060,17 +21087,17 @@ and ensure you are accounting for this risk.
|
|
|
21060
21087
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
21061
21088
|
};
|
|
21062
21089
|
return (_ctx, _cache) => {
|
|
21063
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21090
|
+
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
21064
21091
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
21065
21092
|
key: 0,
|
|
21066
21093
|
class: "lupa-term-filter",
|
|
21067
21094
|
"data-cy": "lupa-term-filter",
|
|
21068
21095
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
21069
21096
|
placeholder: _ctx.options.labels.facetFilter
|
|
21070
|
-
}, null, 8, _hoisted_2$
|
|
21097
|
+
}, null, 8, _hoisted_2$B)), [
|
|
21071
21098
|
[vModelText, termFilter.value]
|
|
21072
21099
|
]) : createCommentVNode("", true),
|
|
21073
|
-
createBaseVNode("div", _hoisted_3$
|
|
21100
|
+
createBaseVNode("div", _hoisted_3$s, [
|
|
21074
21101
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
21075
21102
|
return openBlock(), createElementBlock("div", {
|
|
21076
21103
|
class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -22078,12 +22105,12 @@ and ensure you are accounting for this risk.
|
|
|
22078
22105
|
m.render = function(e2, t, r, i, n, o) {
|
|
22079
22106
|
return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
|
|
22080
22107
|
}, m.__file = "src/Slider.vue";
|
|
22081
|
-
const _hoisted_1$
|
|
22082
|
-
const _hoisted_2$
|
|
22108
|
+
const _hoisted_1$M = { class: "lupa-search-result-facet-stats-values" };
|
|
22109
|
+
const _hoisted_2$A = {
|
|
22083
22110
|
key: 0,
|
|
22084
22111
|
class: "lupa-stats-facet-summary"
|
|
22085
22112
|
};
|
|
22086
|
-
const _hoisted_3$
|
|
22113
|
+
const _hoisted_3$r = {
|
|
22087
22114
|
key: 1,
|
|
22088
22115
|
class: "lupa-stats-facet-summary-input"
|
|
22089
22116
|
};
|
|
@@ -22106,7 +22133,7 @@ and ensure you are accounting for this risk.
|
|
|
22106
22133
|
key: 2,
|
|
22107
22134
|
class: "lupa-stats-slider-wrapper"
|
|
22108
22135
|
};
|
|
22109
|
-
const _sfc_main$
|
|
22136
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
22110
22137
|
__name: "StatsFacet",
|
|
22111
22138
|
props: {
|
|
22112
22139
|
options: {},
|
|
@@ -22283,8 +22310,8 @@ and ensure you are accounting for this risk.
|
|
|
22283
22310
|
innerSliderRange.value = value;
|
|
22284
22311
|
};
|
|
22285
22312
|
return (_ctx, _cache) => {
|
|
22286
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22287
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22313
|
+
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
22314
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$r, [
|
|
22288
22315
|
createBaseVNode("div", null, [
|
|
22289
22316
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
22290
22317
|
createBaseVNode("div", _hoisted_5$c, [
|
|
@@ -22350,9 +22377,9 @@ and ensure you are accounting for this risk.
|
|
|
22350
22377
|
};
|
|
22351
22378
|
}
|
|
22352
22379
|
});
|
|
22353
|
-
const _hoisted_1$
|
|
22354
|
-
const _hoisted_2$
|
|
22355
|
-
const _hoisted_3$
|
|
22380
|
+
const _hoisted_1$L = { class: "lupa-term-checkbox-wrapper" };
|
|
22381
|
+
const _hoisted_2$z = { class: "lupa-term-checkbox-label" };
|
|
22382
|
+
const _hoisted_3$q = { class: "lupa-term-label" };
|
|
22356
22383
|
const _hoisted_4$i = {
|
|
22357
22384
|
key: 0,
|
|
22358
22385
|
class: "lupa-term-count"
|
|
@@ -22361,7 +22388,7 @@ and ensure you are accounting for this risk.
|
|
|
22361
22388
|
key: 0,
|
|
22362
22389
|
class: "lupa-facet-level"
|
|
22363
22390
|
};
|
|
22364
|
-
const _sfc_main$
|
|
22391
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
22365
22392
|
__name: "HierarchyFacetLevel",
|
|
22366
22393
|
props: {
|
|
22367
22394
|
options: {},
|
|
@@ -22407,13 +22434,13 @@ and ensure you are accounting for this risk.
|
|
|
22407
22434
|
"data-cy": "lupa-facet-term",
|
|
22408
22435
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
22409
22436
|
}, [
|
|
22410
|
-
createBaseVNode("div", _hoisted_1$
|
|
22437
|
+
createBaseVNode("div", _hoisted_1$L, [
|
|
22411
22438
|
createBaseVNode("span", {
|
|
22412
22439
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
22413
22440
|
}, null, 2)
|
|
22414
22441
|
]),
|
|
22415
|
-
createBaseVNode("div", _hoisted_2$
|
|
22416
|
-
createBaseVNode("span", _hoisted_3$
|
|
22442
|
+
createBaseVNode("div", _hoisted_2$z, [
|
|
22443
|
+
createBaseVNode("span", _hoisted_3$q, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
22417
22444
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$i, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
22418
22445
|
])
|
|
22419
22446
|
]),
|
|
@@ -22433,13 +22460,13 @@ and ensure you are accounting for this risk.
|
|
|
22433
22460
|
};
|
|
22434
22461
|
}
|
|
22435
22462
|
});
|
|
22436
|
-
const _hoisted_1$
|
|
22463
|
+
const _hoisted_1$K = {
|
|
22437
22464
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
22438
22465
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
22439
22466
|
};
|
|
22440
|
-
const _hoisted_2$
|
|
22441
|
-
const _hoisted_3$
|
|
22442
|
-
const _sfc_main$
|
|
22467
|
+
const _hoisted_2$y = { key: 0 };
|
|
22468
|
+
const _hoisted_3$p = ["placeholder"];
|
|
22469
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
22443
22470
|
__name: "HierarchyFacet",
|
|
22444
22471
|
props: {
|
|
22445
22472
|
options: {},
|
|
@@ -22494,19 +22521,19 @@ and ensure you are accounting for this risk.
|
|
|
22494
22521
|
showAll.value = false;
|
|
22495
22522
|
};
|
|
22496
22523
|
return (_ctx, _cache) => {
|
|
22497
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22498
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22524
|
+
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
22525
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
|
|
22499
22526
|
withDirectives(createBaseVNode("input", {
|
|
22500
22527
|
class: "lupa-term-filter",
|
|
22501
22528
|
"data-cy": "lupa-term-filter",
|
|
22502
22529
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
22503
22530
|
placeholder: _ctx.options.labels.facetFilter
|
|
22504
|
-
}, null, 8, _hoisted_3$
|
|
22531
|
+
}, null, 8, _hoisted_3$p), [
|
|
22505
22532
|
[vModelText, termFilter.value]
|
|
22506
22533
|
])
|
|
22507
22534
|
])) : createCommentVNode("", true),
|
|
22508
22535
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
22509
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22536
|
+
return openBlock(), createBlock(_sfc_main$Q, {
|
|
22510
22537
|
key: item.title,
|
|
22511
22538
|
options: _ctx.options,
|
|
22512
22539
|
item,
|
|
@@ -22530,20 +22557,20 @@ and ensure you are accounting for this risk.
|
|
|
22530
22557
|
};
|
|
22531
22558
|
}
|
|
22532
22559
|
});
|
|
22533
|
-
const _hoisted_1$
|
|
22534
|
-
const _hoisted_2$
|
|
22560
|
+
const _hoisted_1$J = { class: "lupa-facet-label-text" };
|
|
22561
|
+
const _hoisted_2$x = {
|
|
22535
22562
|
key: 0,
|
|
22536
22563
|
class: "lupa-facet-content",
|
|
22537
22564
|
"data-cy": "lupa-facet-content"
|
|
22538
22565
|
};
|
|
22539
22566
|
const __default__$1 = {
|
|
22540
22567
|
components: {
|
|
22541
|
-
TermFacet: _sfc_main$
|
|
22542
|
-
StatsFacet: _sfc_main$
|
|
22543
|
-
HierarchyFacet: _sfc_main$
|
|
22568
|
+
TermFacet: _sfc_main$S,
|
|
22569
|
+
StatsFacet: _sfc_main$R,
|
|
22570
|
+
HierarchyFacet: _sfc_main$P
|
|
22544
22571
|
}
|
|
22545
22572
|
};
|
|
22546
|
-
const _sfc_main$
|
|
22573
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
22547
22574
|
__name: "FacetDisplay",
|
|
22548
22575
|
props: {
|
|
22549
22576
|
options: {},
|
|
@@ -22655,12 +22682,12 @@ and ensure you are accounting for this risk.
|
|
|
22655
22682
|
"data-cy": "lupa-search-result-facet-label",
|
|
22656
22683
|
onClick: toggleFacet
|
|
22657
22684
|
}, [
|
|
22658
|
-
createBaseVNode("div", _hoisted_1$
|
|
22685
|
+
createBaseVNode("div", _hoisted_1$J, toDisplayString(facet.value.label), 1),
|
|
22659
22686
|
createBaseVNode("div", {
|
|
22660
22687
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
22661
22688
|
}, null, 2)
|
|
22662
22689
|
], 2),
|
|
22663
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22690
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
|
|
22664
22691
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
22665
22692
|
facet: facet.value,
|
|
22666
22693
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -22678,12 +22705,12 @@ and ensure you are accounting for this risk.
|
|
|
22678
22705
|
};
|
|
22679
22706
|
}
|
|
22680
22707
|
}));
|
|
22681
|
-
const _hoisted_1$
|
|
22682
|
-
const _hoisted_2$
|
|
22708
|
+
const _hoisted_1$I = { class: "lupa-search-result-facet-section" };
|
|
22709
|
+
const _hoisted_2$w = {
|
|
22683
22710
|
key: 0,
|
|
22684
22711
|
class: "lupa-facets-title"
|
|
22685
22712
|
};
|
|
22686
|
-
const _sfc_main$
|
|
22713
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
22687
22714
|
__name: "FacetList",
|
|
22688
22715
|
props: {
|
|
22689
22716
|
options: {},
|
|
@@ -22717,14 +22744,14 @@ and ensure you are accounting for this risk.
|
|
|
22717
22744
|
};
|
|
22718
22745
|
return (_ctx, _cache) => {
|
|
22719
22746
|
var _a;
|
|
22720
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22721
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22747
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
22748
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$w, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
22722
22749
|
createBaseVNode("div", {
|
|
22723
22750
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
22724
22751
|
}, [
|
|
22725
22752
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
22726
22753
|
var _a2;
|
|
22727
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22754
|
+
return openBlock(), createBlock(_sfc_main$O, {
|
|
22728
22755
|
key: facet.key,
|
|
22729
22756
|
facet,
|
|
22730
22757
|
currentFilters: currentFiltersValue.value,
|
|
@@ -22739,8 +22766,8 @@ and ensure you are accounting for this risk.
|
|
|
22739
22766
|
};
|
|
22740
22767
|
}
|
|
22741
22768
|
});
|
|
22742
|
-
const _hoisted_1$
|
|
22743
|
-
const _sfc_main$
|
|
22769
|
+
const _hoisted_1$H = ["onClick"];
|
|
22770
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
22744
22771
|
__name: "FacetsButton",
|
|
22745
22772
|
props: {
|
|
22746
22773
|
options: {}
|
|
@@ -22760,13 +22787,13 @@ and ensure you are accounting for this risk.
|
|
|
22760
22787
|
key: 0,
|
|
22761
22788
|
class: "lupa-facets-button-filter",
|
|
22762
22789
|
onClick: withModifiers(handleClick, ["stop"])
|
|
22763
|
-
}, toDisplayString(label.value), 9, _hoisted_1$
|
|
22790
|
+
}, toDisplayString(label.value), 9, _hoisted_1$H)) : createCommentVNode("", true);
|
|
22764
22791
|
};
|
|
22765
22792
|
}
|
|
22766
22793
|
});
|
|
22767
|
-
const _hoisted_1$
|
|
22768
|
-
const _hoisted_2$
|
|
22769
|
-
const _sfc_main$
|
|
22794
|
+
const _hoisted_1$G = { class: "lupa-search-result-facets" };
|
|
22795
|
+
const _hoisted_2$v = { class: "lupa-facets-filter-button-wrapper" };
|
|
22796
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
22770
22797
|
__name: "Facets",
|
|
22771
22798
|
props: {
|
|
22772
22799
|
options: {},
|
|
@@ -22849,8 +22876,8 @@ and ensure you are accounting for this risk.
|
|
|
22849
22876
|
emit2("filter");
|
|
22850
22877
|
};
|
|
22851
22878
|
return (_ctx, _cache) => {
|
|
22852
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22853
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
22879
|
+
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
22880
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$N, {
|
|
22854
22881
|
key: 0,
|
|
22855
22882
|
options: _ctx.options,
|
|
22856
22883
|
facets: regularFacets.value,
|
|
@@ -22860,8 +22887,8 @@ and ensure you are accounting for this risk.
|
|
|
22860
22887
|
onSelect: handleFacetSelect,
|
|
22861
22888
|
onClear: clear2
|
|
22862
22889
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
22863
|
-
createBaseVNode("div", _hoisted_2$
|
|
22864
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
22890
|
+
createBaseVNode("div", _hoisted_2$v, [
|
|
22891
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$M, {
|
|
22865
22892
|
key: 0,
|
|
22866
22893
|
options: _ctx.options,
|
|
22867
22894
|
onFilter: filter2
|
|
@@ -22871,11 +22898,11 @@ and ensure you are accounting for this risk.
|
|
|
22871
22898
|
};
|
|
22872
22899
|
}
|
|
22873
22900
|
});
|
|
22874
|
-
const _hoisted_1$
|
|
22901
|
+
const _hoisted_1$F = {
|
|
22875
22902
|
id: "lupa-search-result-filters",
|
|
22876
22903
|
class: "lupa-search-result-filters"
|
|
22877
22904
|
};
|
|
22878
|
-
const _sfc_main$
|
|
22905
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
22879
22906
|
__name: "SearchResultsFilters",
|
|
22880
22907
|
props: {
|
|
22881
22908
|
options: {},
|
|
@@ -22908,19 +22935,19 @@ and ensure you are accounting for this risk.
|
|
|
22908
22935
|
__expose({ fetch: fetch2 });
|
|
22909
22936
|
return (_ctx, _cache) => {
|
|
22910
22937
|
var _a;
|
|
22911
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22912
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
22938
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
22939
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$V, {
|
|
22913
22940
|
key: 0,
|
|
22914
22941
|
options: _ctx.options.currentFilters,
|
|
22915
22942
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
22916
22943
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
22917
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
22944
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$T, {
|
|
22918
22945
|
key: 1,
|
|
22919
22946
|
options: _ctx.options.categories,
|
|
22920
22947
|
ref_key: "categoryFilters",
|
|
22921
22948
|
ref: categoryFilters
|
|
22922
22949
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
22923
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
22950
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
|
|
22924
22951
|
key: 2,
|
|
22925
22952
|
options: _ctx.options.facets,
|
|
22926
22953
|
onFilter: filter2
|
|
@@ -22929,12 +22956,12 @@ and ensure you are accounting for this risk.
|
|
|
22929
22956
|
};
|
|
22930
22957
|
}
|
|
22931
22958
|
});
|
|
22932
|
-
const _hoisted_1$
|
|
22959
|
+
const _hoisted_1$E = {
|
|
22933
22960
|
key: 0,
|
|
22934
22961
|
class: "lupa-mobile-filter-sidebar"
|
|
22935
22962
|
};
|
|
22936
|
-
const _hoisted_2$
|
|
22937
|
-
const _hoisted_3$
|
|
22963
|
+
const _hoisted_2$u = ["onClick"];
|
|
22964
|
+
const _hoisted_3$o = { class: "lupa-mobile-sidebar-content" };
|
|
22938
22965
|
const _hoisted_4$h = { class: "lupa-sidebar-top" };
|
|
22939
22966
|
const _hoisted_5$a = { class: "lupa-sidebar-title" };
|
|
22940
22967
|
const _hoisted_6$6 = {
|
|
@@ -22942,7 +22969,7 @@ and ensure you are accounting for this risk.
|
|
|
22942
22969
|
class: "lupa-sidebar-filter-count"
|
|
22943
22970
|
};
|
|
22944
22971
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
22945
|
-
const _sfc_main$
|
|
22972
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
22946
22973
|
__name: "MobileFilterSidebar",
|
|
22947
22974
|
props: {
|
|
22948
22975
|
options: {}
|
|
@@ -22973,12 +23000,12 @@ and ensure you are accounting for this risk.
|
|
|
22973
23000
|
handleMobileToggle();
|
|
22974
23001
|
};
|
|
22975
23002
|
return (_ctx, _cache) => {
|
|
22976
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
23003
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
22977
23004
|
createBaseVNode("div", {
|
|
22978
23005
|
class: "lupa-sidebar-close",
|
|
22979
23006
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
22980
|
-
}, null, 8, _hoisted_2$
|
|
22981
|
-
createBaseVNode("div", _hoisted_3$
|
|
23007
|
+
}, null, 8, _hoisted_2$u),
|
|
23008
|
+
createBaseVNode("div", _hoisted_3$o, [
|
|
22982
23009
|
createBaseVNode("div", _hoisted_4$h, [
|
|
22983
23010
|
createBaseVNode("div", _hoisted_5$a, [
|
|
22984
23011
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
@@ -22990,7 +23017,7 @@ and ensure you are accounting for this risk.
|
|
|
22990
23017
|
})
|
|
22991
23018
|
]),
|
|
22992
23019
|
createBaseVNode("div", _hoisted_7$4, [
|
|
22993
|
-
createVNode(_sfc_main$
|
|
23020
|
+
createVNode(_sfc_main$K, {
|
|
22994
23021
|
options: _ctx.options,
|
|
22995
23022
|
expandable: isActiveFiltersExpanded.value,
|
|
22996
23023
|
onFilter: filter2
|
|
@@ -23001,14 +23028,14 @@ and ensure you are accounting for this risk.
|
|
|
23001
23028
|
};
|
|
23002
23029
|
}
|
|
23003
23030
|
});
|
|
23004
|
-
const _hoisted_1$
|
|
23005
|
-
const _hoisted_2$
|
|
23006
|
-
const _hoisted_3$
|
|
23031
|
+
const _hoisted_1$D = { id: "lupa-search-results-breadcrumbs" };
|
|
23032
|
+
const _hoisted_2$t = ["href", "onClick"];
|
|
23033
|
+
const _hoisted_3$n = {
|
|
23007
23034
|
key: 1,
|
|
23008
23035
|
class: "lupa-search-results-breadcrumb-text"
|
|
23009
23036
|
};
|
|
23010
23037
|
const _hoisted_4$g = { key: 2 };
|
|
23011
|
-
const _sfc_main$
|
|
23038
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
23012
23039
|
__name: "SearchResultsBreadcrumbs",
|
|
23013
23040
|
props: {
|
|
23014
23041
|
breadcrumbs: {}
|
|
@@ -23033,7 +23060,7 @@ and ensure you are accounting for this risk.
|
|
|
23033
23060
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
23034
23061
|
};
|
|
23035
23062
|
return (_ctx, _cache) => {
|
|
23036
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23063
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
23037
23064
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
23038
23065
|
return openBlock(), createElementBlock("span", {
|
|
23039
23066
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -23047,7 +23074,7 @@ and ensure you are accounting for this risk.
|
|
|
23047
23074
|
var _a;
|
|
23048
23075
|
return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
23049
23076
|
}
|
|
23050
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
23077
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$n, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
23051
23078
|
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, " / ")) : createCommentVNode("", true)
|
|
23052
23079
|
]);
|
|
23053
23080
|
}), 128))
|
|
@@ -23055,11 +23082,11 @@ and ensure you are accounting for this risk.
|
|
|
23055
23082
|
};
|
|
23056
23083
|
}
|
|
23057
23084
|
});
|
|
23058
|
-
const _hoisted_1$
|
|
23085
|
+
const _hoisted_1$C = {
|
|
23059
23086
|
id: "lupa-search-result-filters",
|
|
23060
23087
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
23061
23088
|
};
|
|
23062
|
-
const _sfc_main$
|
|
23089
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
23063
23090
|
__name: "FiltersTopDropdown",
|
|
23064
23091
|
props: {
|
|
23065
23092
|
options: {}
|
|
@@ -23071,8 +23098,8 @@ and ensure you are accounting for this risk.
|
|
|
23071
23098
|
};
|
|
23072
23099
|
return (_ctx, _cache) => {
|
|
23073
23100
|
var _a;
|
|
23074
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23075
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
23101
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
23102
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
|
|
23076
23103
|
key: 0,
|
|
23077
23104
|
options: _ctx.options.facets,
|
|
23078
23105
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -23083,8 +23110,8 @@ and ensure you are accounting for this risk.
|
|
|
23083
23110
|
};
|
|
23084
23111
|
}
|
|
23085
23112
|
});
|
|
23086
|
-
const _hoisted_1$
|
|
23087
|
-
const _sfc_main$
|
|
23113
|
+
const _hoisted_1$B = { id: "lupa-search-results-layout-selection" };
|
|
23114
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
23088
23115
|
__name: "SearchResultsLayoutSelection",
|
|
23089
23116
|
setup(__props) {
|
|
23090
23117
|
const searchResultStore = useSearchResultStore();
|
|
@@ -23095,7 +23122,7 @@ and ensure you are accounting for this risk.
|
|
|
23095
23122
|
searchResultStore.setLayout(layout2);
|
|
23096
23123
|
};
|
|
23097
23124
|
return (_ctx, _cache) => {
|
|
23098
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23125
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
23099
23126
|
createBaseVNode("div", {
|
|
23100
23127
|
class: normalizeClass([
|
|
23101
23128
|
"lupa-layout-selection-grid",
|
|
@@ -23117,11 +23144,11 @@ and ensure you are accounting for this risk.
|
|
|
23117
23144
|
};
|
|
23118
23145
|
}
|
|
23119
23146
|
});
|
|
23120
|
-
const _hoisted_1$
|
|
23147
|
+
const _hoisted_1$A = {
|
|
23121
23148
|
key: 0,
|
|
23122
23149
|
class: "lupa-mobile-toggle-filter-count"
|
|
23123
23150
|
};
|
|
23124
|
-
const _sfc_main$
|
|
23151
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
23125
23152
|
__name: "SearchResultsMobileToggle",
|
|
23126
23153
|
props: {
|
|
23127
23154
|
label: {},
|
|
@@ -23139,26 +23166,26 @@ and ensure you are accounting for this risk.
|
|
|
23139
23166
|
onClick: handleMobileToggle
|
|
23140
23167
|
}, [
|
|
23141
23168
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
23142
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
23169
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$A, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
23143
23170
|
], 2);
|
|
23144
23171
|
};
|
|
23145
23172
|
}
|
|
23146
23173
|
});
|
|
23147
|
-
const _hoisted_1$
|
|
23174
|
+
const _hoisted_1$z = {
|
|
23148
23175
|
key: 0,
|
|
23149
23176
|
id: "lupa-search-results-page-select",
|
|
23150
23177
|
"data-cy": "lupa-search-results-page-select"
|
|
23151
23178
|
};
|
|
23152
|
-
const _hoisted_2$
|
|
23179
|
+
const _hoisted_2$s = {
|
|
23153
23180
|
key: 0,
|
|
23154
23181
|
class: "lupa-page-number-separator"
|
|
23155
23182
|
};
|
|
23156
|
-
const _hoisted_3$
|
|
23183
|
+
const _hoisted_3$m = ["onClick"];
|
|
23157
23184
|
const _hoisted_4$f = {
|
|
23158
23185
|
key: 0,
|
|
23159
23186
|
class: "lupa-page-number-separator"
|
|
23160
23187
|
};
|
|
23161
|
-
const _sfc_main$
|
|
23188
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
23162
23189
|
__name: "SearchResultsPageSelect",
|
|
23163
23190
|
props: {
|
|
23164
23191
|
lastPageLabel: {},
|
|
@@ -23235,7 +23262,7 @@ and ensure you are accounting for this risk.
|
|
|
23235
23262
|
}
|
|
23236
23263
|
};
|
|
23237
23264
|
return (_ctx, _cache) => {
|
|
23238
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
23265
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
23239
23266
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
23240
23267
|
key: 0,
|
|
23241
23268
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -23246,7 +23273,7 @@ and ensure you are accounting for this risk.
|
|
|
23246
23273
|
class: "lupa-page-number lupa-page-number-first",
|
|
23247
23274
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
23248
23275
|
}, " 1 "),
|
|
23249
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
23276
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$s, "...")) : createCommentVNode("", true)
|
|
23250
23277
|
], 64)) : createCommentVNode("", true),
|
|
23251
23278
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
23252
23279
|
return openBlock(), createElementBlock("div", {
|
|
@@ -23257,7 +23284,7 @@ and ensure you are accounting for this risk.
|
|
|
23257
23284
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
23258
23285
|
]),
|
|
23259
23286
|
"data-cy": "lupa-page-number"
|
|
23260
|
-
}, toDisplayString(page), 11, _hoisted_3$
|
|
23287
|
+
}, toDisplayString(page), 11, _hoisted_3$m);
|
|
23261
23288
|
}), 128)),
|
|
23262
23289
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
23263
23290
|
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
|
|
@@ -23279,15 +23306,15 @@ and ensure you are accounting for this risk.
|
|
|
23279
23306
|
};
|
|
23280
23307
|
}
|
|
23281
23308
|
});
|
|
23282
|
-
const _hoisted_1$
|
|
23309
|
+
const _hoisted_1$y = {
|
|
23283
23310
|
id: "lupa-search-results-page-size",
|
|
23284
23311
|
"data-cy": "lupa-search-results-page-size"
|
|
23285
23312
|
};
|
|
23286
|
-
const _hoisted_2$
|
|
23287
|
-
const _hoisted_3$
|
|
23313
|
+
const _hoisted_2$r = { id: "lupa-select" };
|
|
23314
|
+
const _hoisted_3$l = { class: "lupa-select-label" };
|
|
23288
23315
|
const _hoisted_4$e = ["aria-label"];
|
|
23289
23316
|
const _hoisted_5$9 = ["value"];
|
|
23290
|
-
const _sfc_main$
|
|
23317
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
23291
23318
|
__name: "SearchResultsPageSize",
|
|
23292
23319
|
props: {
|
|
23293
23320
|
labels: {},
|
|
@@ -23315,9 +23342,9 @@ and ensure you are accounting for this risk.
|
|
|
23315
23342
|
});
|
|
23316
23343
|
};
|
|
23317
23344
|
return (_ctx, _cache) => {
|
|
23318
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23319
|
-
createBaseVNode("div", _hoisted_2$
|
|
23320
|
-
createBaseVNode("label", _hoisted_3$
|
|
23345
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
23346
|
+
createBaseVNode("div", _hoisted_2$r, [
|
|
23347
|
+
createBaseVNode("label", _hoisted_3$l, toDisplayString(label.value), 1),
|
|
23321
23348
|
createBaseVNode("select", {
|
|
23322
23349
|
class: "lupa-select-dropdown",
|
|
23323
23350
|
"aria-label": label.value,
|
|
@@ -23338,15 +23365,15 @@ and ensure you are accounting for this risk.
|
|
|
23338
23365
|
};
|
|
23339
23366
|
}
|
|
23340
23367
|
});
|
|
23341
|
-
const _hoisted_1$
|
|
23368
|
+
const _hoisted_1$x = {
|
|
23342
23369
|
id: "lupa-search-results-sort",
|
|
23343
23370
|
class: "lupa-search-results-sort"
|
|
23344
23371
|
};
|
|
23345
|
-
const _hoisted_2$
|
|
23346
|
-
const _hoisted_3$
|
|
23372
|
+
const _hoisted_2$q = { id: "lupa-select" };
|
|
23373
|
+
const _hoisted_3$k = { class: "lupa-select-label" };
|
|
23347
23374
|
const _hoisted_4$d = ["aria-label"];
|
|
23348
23375
|
const _hoisted_5$8 = ["value"];
|
|
23349
|
-
const _sfc_main$
|
|
23376
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
23350
23377
|
__name: "SearchResultsSort",
|
|
23351
23378
|
props: {
|
|
23352
23379
|
options: {},
|
|
@@ -23395,9 +23422,9 @@ and ensure you are accounting for this risk.
|
|
|
23395
23422
|
previousKey.value = selectedKey.value;
|
|
23396
23423
|
};
|
|
23397
23424
|
return (_ctx, _cache) => {
|
|
23398
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23399
|
-
createBaseVNode("div", _hoisted_2$
|
|
23400
|
-
createBaseVNode("label", _hoisted_3$
|
|
23425
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
23426
|
+
createBaseVNode("div", _hoisted_2$q, [
|
|
23427
|
+
createBaseVNode("label", _hoisted_3$k, toDisplayString(_ctx.options.label), 1),
|
|
23401
23428
|
withDirectives(createBaseVNode("select", {
|
|
23402
23429
|
class: "lupa-select-dropdown",
|
|
23403
23430
|
"aria-label": _ctx.options.label,
|
|
@@ -23420,12 +23447,12 @@ and ensure you are accounting for this risk.
|
|
|
23420
23447
|
};
|
|
23421
23448
|
}
|
|
23422
23449
|
});
|
|
23423
|
-
const _hoisted_1$
|
|
23424
|
-
const _hoisted_2$
|
|
23450
|
+
const _hoisted_1$w = { class: "lupa-toolbar-left" };
|
|
23451
|
+
const _hoisted_2$p = {
|
|
23425
23452
|
key: 0,
|
|
23426
23453
|
class: "lupa-toolbar-right-title"
|
|
23427
23454
|
};
|
|
23428
|
-
const _hoisted_3$
|
|
23455
|
+
const _hoisted_3$j = { key: 2 };
|
|
23429
23456
|
const _hoisted_4$c = { key: 4 };
|
|
23430
23457
|
const _hoisted_5$7 = { key: 6 };
|
|
23431
23458
|
const _hoisted_6$5 = { class: "lupa-toolbar-right" };
|
|
@@ -23435,7 +23462,7 @@ and ensure you are accounting for this risk.
|
|
|
23435
23462
|
};
|
|
23436
23463
|
const _hoisted_8 = { key: 2 };
|
|
23437
23464
|
const _hoisted_9 = { key: 4 };
|
|
23438
|
-
const _sfc_main$
|
|
23465
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
23439
23466
|
__name: "SearchResultsToolbar",
|
|
23440
23467
|
props: {
|
|
23441
23468
|
options: {},
|
|
@@ -23542,16 +23569,16 @@ and ensure you are accounting for this risk.
|
|
|
23542
23569
|
id: "lupa-search-results-toolbar",
|
|
23543
23570
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
23544
23571
|
}, [
|
|
23545
|
-
createBaseVNode("div", _hoisted_1$
|
|
23546
|
-
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
23547
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
23548
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
23572
|
+
createBaseVNode("div", _hoisted_1$w, [
|
|
23573
|
+
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
23574
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$G, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$j)),
|
|
23575
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Y, {
|
|
23549
23576
|
key: 3,
|
|
23550
23577
|
label: searchSummaryLabel.value,
|
|
23551
23578
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
23552
23579
|
onClear: handleClearAll
|
|
23553
23580
|
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
|
|
23554
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
23581
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
|
|
23555
23582
|
key: 5,
|
|
23556
23583
|
options: paginationOptions.value.pageSelect,
|
|
23557
23584
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
@@ -23560,16 +23587,16 @@ and ensure you are accounting for this risk.
|
|
|
23560
23587
|
]),
|
|
23561
23588
|
createBaseVNode("div", _hoisted_6$5, [
|
|
23562
23589
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
23563
|
-
createVNode(_sfc_main$
|
|
23590
|
+
createVNode(_sfc_main$F, {
|
|
23564
23591
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
23565
23592
|
"show-filter-count": showMobileFilterCount.value
|
|
23566
23593
|
}, null, 8, ["label", "show-filter-count"]),
|
|
23567
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
23594
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$D, {
|
|
23568
23595
|
key: 1,
|
|
23569
23596
|
options: paginationOptions.value.pageSize,
|
|
23570
23597
|
labels: paginationOptions.value.labels
|
|
23571
23598
|
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
23572
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
23599
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$C, {
|
|
23573
23600
|
key: 3,
|
|
23574
23601
|
options: sortOptions.value,
|
|
23575
23602
|
callbacks: callbacks.value
|
|
@@ -23579,7 +23606,7 @@ and ensure you are accounting for this risk.
|
|
|
23579
23606
|
};
|
|
23580
23607
|
}
|
|
23581
23608
|
});
|
|
23582
|
-
const _sfc_main$
|
|
23609
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
23583
23610
|
__name: "SearchResultsProductImage",
|
|
23584
23611
|
props: {
|
|
23585
23612
|
item: {},
|
|
@@ -23587,7 +23614,7 @@ and ensure you are accounting for this risk.
|
|
|
23587
23614
|
},
|
|
23588
23615
|
setup(__props) {
|
|
23589
23616
|
return (_ctx, _cache) => {
|
|
23590
|
-
return openBlock(), createBlock(_sfc_main$
|
|
23617
|
+
return openBlock(), createBlock(_sfc_main$1l, {
|
|
23591
23618
|
item: _ctx.item,
|
|
23592
23619
|
options: _ctx.options,
|
|
23593
23620
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -23596,16 +23623,16 @@ and ensure you are accounting for this risk.
|
|
|
23596
23623
|
};
|
|
23597
23624
|
}
|
|
23598
23625
|
});
|
|
23599
|
-
const _hoisted_1$
|
|
23600
|
-
const _hoisted_2$
|
|
23601
|
-
const _hoisted_3$
|
|
23626
|
+
const _hoisted_1$v = ["title", "innerHTML"];
|
|
23627
|
+
const _hoisted_2$o = ["title"];
|
|
23628
|
+
const _hoisted_3$i = ["href", "innerHTML"];
|
|
23602
23629
|
const _hoisted_4$b = ["title"];
|
|
23603
23630
|
const _hoisted_5$6 = {
|
|
23604
23631
|
key: 0,
|
|
23605
23632
|
class: "lupa-search-results-product-title-text"
|
|
23606
23633
|
};
|
|
23607
23634
|
const _hoisted_6$4 = ["href"];
|
|
23608
|
-
const _sfc_main$
|
|
23635
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
23609
23636
|
__name: "SearchResultsProductTitle",
|
|
23610
23637
|
props: {
|
|
23611
23638
|
item: {},
|
|
@@ -23642,7 +23669,7 @@ and ensure you are accounting for this risk.
|
|
|
23642
23669
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23643
23670
|
title: sanitizedTitle.value,
|
|
23644
23671
|
innerHTML: sanitizedTitle.value
|
|
23645
|
-
}, null, 12, _hoisted_1$
|
|
23672
|
+
}, null, 12, _hoisted_1$v)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
|
|
23646
23673
|
key: 1,
|
|
23647
23674
|
class: "lupa-search-results-product-title",
|
|
23648
23675
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -23653,8 +23680,8 @@ and ensure you are accounting for this risk.
|
|
|
23653
23680
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
23654
23681
|
innerHTML: sanitizedTitle.value,
|
|
23655
23682
|
onClick: handleNavigation
|
|
23656
|
-
}, null, 8, _hoisted_3$
|
|
23657
|
-
], 12, _hoisted_2$
|
|
23683
|
+
}, null, 8, _hoisted_3$i)
|
|
23684
|
+
], 12, _hoisted_2$o)) : (openBlock(), createElementBlock("div", {
|
|
23658
23685
|
key: 2,
|
|
23659
23686
|
class: "lupa-search-results-product-title",
|
|
23660
23687
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -23671,8 +23698,8 @@ and ensure you are accounting for this risk.
|
|
|
23671
23698
|
};
|
|
23672
23699
|
}
|
|
23673
23700
|
});
|
|
23674
|
-
const _hoisted_1$
|
|
23675
|
-
const _sfc_main$
|
|
23701
|
+
const _hoisted_1$u = ["innerHTML"];
|
|
23702
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
23676
23703
|
__name: "SearchResultsProductDescription",
|
|
23677
23704
|
props: {
|
|
23678
23705
|
item: {},
|
|
@@ -23699,7 +23726,7 @@ and ensure you are accounting for this risk.
|
|
|
23699
23726
|
class: "lupa-search-results-product-description",
|
|
23700
23727
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23701
23728
|
innerHTML: sanitizedDescription.value
|
|
23702
|
-
}, null, 12, _hoisted_1$
|
|
23729
|
+
}, null, 12, _hoisted_1$u)) : (openBlock(), createElementBlock("div", {
|
|
23703
23730
|
key: 1,
|
|
23704
23731
|
class: "lupa-search-results-product-description",
|
|
23705
23732
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -23707,15 +23734,15 @@ and ensure you are accounting for this risk.
|
|
|
23707
23734
|
};
|
|
23708
23735
|
}
|
|
23709
23736
|
});
|
|
23710
|
-
const _hoisted_1$
|
|
23711
|
-
const _hoisted_2$
|
|
23712
|
-
const _hoisted_3$
|
|
23737
|
+
const _hoisted_1$t = { id: "lupa-search-results-rating" };
|
|
23738
|
+
const _hoisted_2$n = { class: "lupa-ratings" };
|
|
23739
|
+
const _hoisted_3$h = { class: "lupa-ratings-base" };
|
|
23713
23740
|
const _hoisted_4$a = ["innerHTML"];
|
|
23714
23741
|
const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
|
|
23715
23742
|
const _hoisted_6$3 = ["innerHTML"];
|
|
23716
23743
|
const _hoisted_7$2 = ["href"];
|
|
23717
23744
|
const STAR_COUNT = 5;
|
|
23718
|
-
const _sfc_main$
|
|
23745
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
23719
23746
|
__name: "SearchResultsProductRating",
|
|
23720
23747
|
props: {
|
|
23721
23748
|
item: {},
|
|
@@ -23752,9 +23779,9 @@ and ensure you are accounting for this risk.
|
|
|
23752
23779
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
23753
23780
|
});
|
|
23754
23781
|
return (_ctx, _cache) => {
|
|
23755
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23756
|
-
createBaseVNode("div", _hoisted_2$
|
|
23757
|
-
createBaseVNode("div", _hoisted_3$
|
|
23782
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
23783
|
+
createBaseVNode("div", _hoisted_2$n, [
|
|
23784
|
+
createBaseVNode("div", _hoisted_3$h, [
|
|
23758
23785
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
23759
23786
|
return openBlock(), createElementBlock("div", {
|
|
23760
23787
|
key: index,
|
|
@@ -23786,11 +23813,11 @@ and ensure you are accounting for this risk.
|
|
|
23786
23813
|
};
|
|
23787
23814
|
}
|
|
23788
23815
|
});
|
|
23789
|
-
const _hoisted_1$
|
|
23816
|
+
const _hoisted_1$s = {
|
|
23790
23817
|
class: "lupa-search-results-product-regular-price",
|
|
23791
23818
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
23792
23819
|
};
|
|
23793
|
-
const _sfc_main$
|
|
23820
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
23794
23821
|
__name: "SearchResultsProductRegularPrice",
|
|
23795
23822
|
props: {
|
|
23796
23823
|
item: {},
|
|
@@ -23808,11 +23835,11 @@ and ensure you are accounting for this risk.
|
|
|
23808
23835
|
);
|
|
23809
23836
|
});
|
|
23810
23837
|
return (_ctx, _cache) => {
|
|
23811
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23838
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, toDisplayString(price.value), 1);
|
|
23812
23839
|
};
|
|
23813
23840
|
}
|
|
23814
23841
|
});
|
|
23815
|
-
const _sfc_main$
|
|
23842
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
23816
23843
|
__name: "SearchResultsProductPrice",
|
|
23817
23844
|
props: {
|
|
23818
23845
|
item: {},
|
|
@@ -23842,15 +23869,16 @@ and ensure you are accounting for this risk.
|
|
|
23842
23869
|
};
|
|
23843
23870
|
}
|
|
23844
23871
|
});
|
|
23845
|
-
const _hoisted_1$
|
|
23846
|
-
const _hoisted_2$
|
|
23847
|
-
const _hoisted_3$
|
|
23848
|
-
const _sfc_main$
|
|
23872
|
+
const _hoisted_1$r = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
23873
|
+
const _hoisted_2$m = { class: "lupa-search-results-product-addtocart" };
|
|
23874
|
+
const _hoisted_3$g = ["id", "disabled", "onClick"];
|
|
23875
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
23849
23876
|
__name: "SearchResultsProductAddToCart",
|
|
23850
23877
|
props: {
|
|
23851
23878
|
item: {},
|
|
23852
23879
|
options: {},
|
|
23853
|
-
inStock: { type: Boolean }
|
|
23880
|
+
inStock: { type: Boolean },
|
|
23881
|
+
dynamicAttributes: {}
|
|
23854
23882
|
},
|
|
23855
23883
|
emits: ["productEvent"],
|
|
23856
23884
|
setup(__props, { emit: emit2 }) {
|
|
@@ -23883,26 +23911,27 @@ and ensure you are accounting for this risk.
|
|
|
23883
23911
|
loading.value = false;
|
|
23884
23912
|
});
|
|
23885
23913
|
return (_ctx, _cache) => {
|
|
23886
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23887
|
-
createBaseVNode("div", _hoisted_2$
|
|
23888
|
-
createBaseVNode("button", {
|
|
23914
|
+
return openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
23915
|
+
createBaseVNode("div", _hoisted_2$m, [
|
|
23916
|
+
createBaseVNode("button", mergeProps({
|
|
23889
23917
|
id: id.value,
|
|
23890
|
-
class:
|
|
23918
|
+
class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
|
|
23891
23919
|
"data-cy": "lupa-add-to-cart",
|
|
23892
|
-
disabled: !inStockValue.value || loading.value
|
|
23920
|
+
disabled: !inStockValue.value || loading.value
|
|
23921
|
+
}, _ctx.dynamicAttributes, {
|
|
23893
23922
|
onClick: withModifiers(handleClick, ["stop"])
|
|
23894
|
-
}, toDisplayString(label.value),
|
|
23923
|
+
}), toDisplayString(label.value), 17, _hoisted_3$g)
|
|
23895
23924
|
])
|
|
23896
23925
|
]);
|
|
23897
23926
|
};
|
|
23898
23927
|
}
|
|
23899
23928
|
});
|
|
23900
|
-
const _hoisted_1$
|
|
23901
|
-
const _hoisted_2$
|
|
23902
|
-
const _hoisted_3$
|
|
23929
|
+
const _hoisted_1$q = ["innerHTML"];
|
|
23930
|
+
const _hoisted_2$l = { key: 0 };
|
|
23931
|
+
const _hoisted_3$f = { key: 1 };
|
|
23903
23932
|
const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
|
|
23904
23933
|
const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
|
|
23905
|
-
const _sfc_main$
|
|
23934
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
23906
23935
|
__name: "SearchResultsProductCustom",
|
|
23907
23936
|
props: {
|
|
23908
23937
|
item: {},
|
|
@@ -23940,11 +23969,11 @@ and ensure you are accounting for this risk.
|
|
|
23940
23969
|
key: 0,
|
|
23941
23970
|
class: className.value,
|
|
23942
23971
|
innerHTML: text.value
|
|
23943
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
23972
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$q)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
23944
23973
|
key: 1,
|
|
23945
23974
|
class: className.value
|
|
23946
23975
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
23947
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
23976
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$f, [
|
|
23948
23977
|
createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
|
|
23949
23978
|
createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
|
|
23950
23979
|
]))
|
|
@@ -23952,8 +23981,8 @@ and ensure you are accounting for this risk.
|
|
|
23952
23981
|
};
|
|
23953
23982
|
}
|
|
23954
23983
|
});
|
|
23955
|
-
const _hoisted_1$
|
|
23956
|
-
const _sfc_main$
|
|
23984
|
+
const _hoisted_1$p = ["innerHTML"];
|
|
23985
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
23957
23986
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
23958
23987
|
props: {
|
|
23959
23988
|
item: {},
|
|
@@ -23984,15 +24013,15 @@ and ensure you are accounting for this risk.
|
|
|
23984
24013
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
23985
24014
|
class: className.value,
|
|
23986
24015
|
innerHTML: text.value
|
|
23987
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
24016
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$p);
|
|
23988
24017
|
};
|
|
23989
24018
|
}
|
|
23990
24019
|
});
|
|
23991
|
-
const _hoisted_1$
|
|
23992
|
-
const _hoisted_2$
|
|
23993
|
-
const _hoisted_3$
|
|
24020
|
+
const _hoisted_1$o = { id: "lupa-search-results-rating" };
|
|
24021
|
+
const _hoisted_2$k = ["innerHTML"];
|
|
24022
|
+
const _hoisted_3$e = { class: "lupa-ratings" };
|
|
23994
24023
|
const _hoisted_4$8 = ["href"];
|
|
23995
|
-
const _sfc_main$
|
|
24024
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
23996
24025
|
__name: "SearchResultsProductSingleStarRating",
|
|
23997
24026
|
props: {
|
|
23998
24027
|
item: {},
|
|
@@ -24020,12 +24049,12 @@ and ensure you are accounting for this risk.
|
|
|
24020
24049
|
return RATING_STAR_HTML;
|
|
24021
24050
|
});
|
|
24022
24051
|
return (_ctx, _cache) => {
|
|
24023
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24052
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
24024
24053
|
createBaseVNode("div", {
|
|
24025
24054
|
innerHTML: star.value,
|
|
24026
24055
|
class: "lupa-rating lupa-rating-highlighted"
|
|
24027
|
-
}, null, 8, _hoisted_2$
|
|
24028
|
-
createBaseVNode("div", _hoisted_3$
|
|
24056
|
+
}, null, 8, _hoisted_2$k),
|
|
24057
|
+
createBaseVNode("div", _hoisted_3$e, toDisplayString(rating.value), 1),
|
|
24029
24058
|
createBaseVNode("a", {
|
|
24030
24059
|
href: ratingLink.value,
|
|
24031
24060
|
class: "lupa-total-ratings"
|
|
@@ -24036,19 +24065,19 @@ and ensure you are accounting for this risk.
|
|
|
24036
24065
|
});
|
|
24037
24066
|
const __default__ = {
|
|
24038
24067
|
components: {
|
|
24039
|
-
SearchResultsProductImage: _sfc_main$
|
|
24040
|
-
SearchResultsProductTitle: _sfc_main$
|
|
24041
|
-
SearchResultsProductDescription: _sfc_main$
|
|
24042
|
-
SearchResultsProductRating: _sfc_main$
|
|
24043
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
24044
|
-
SearchResultsProductPrice: _sfc_main$
|
|
24045
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
24046
|
-
SearchResultsProductCustom: _sfc_main$
|
|
24047
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
24048
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
24049
|
-
}
|
|
24050
|
-
};
|
|
24051
|
-
const _sfc_main$
|
|
24068
|
+
SearchResultsProductImage: _sfc_main$A,
|
|
24069
|
+
SearchResultsProductTitle: _sfc_main$z,
|
|
24070
|
+
SearchResultsProductDescription: _sfc_main$y,
|
|
24071
|
+
SearchResultsProductRating: _sfc_main$x,
|
|
24072
|
+
SearchResultsProductRegularPrice: _sfc_main$w,
|
|
24073
|
+
SearchResultsProductPrice: _sfc_main$v,
|
|
24074
|
+
SearchResultsProductAddToCart: _sfc_main$u,
|
|
24075
|
+
SearchResultsProductCustom: _sfc_main$t,
|
|
24076
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$s,
|
|
24077
|
+
SearchResultsProductSingleStarRating: _sfc_main$r
|
|
24078
|
+
}
|
|
24079
|
+
};
|
|
24080
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
24052
24081
|
__name: "SearchResultsProductCardElement",
|
|
24053
24082
|
props: {
|
|
24054
24083
|
item: {},
|
|
@@ -24087,6 +24116,9 @@ and ensure you are accounting for this risk.
|
|
|
24087
24116
|
}
|
|
24088
24117
|
return "searchResultsProductTitle";
|
|
24089
24118
|
});
|
|
24119
|
+
const renderDynamicAttributesOnParentElement = computed(() => {
|
|
24120
|
+
return props.element.type !== DocumentElementType.ADDTOCART;
|
|
24121
|
+
});
|
|
24090
24122
|
const enhancedItem = computed(() => {
|
|
24091
24123
|
var _a, _b, _c, _d;
|
|
24092
24124
|
if (!((_a = props.item) == null ? void 0 : _a.id)) {
|
|
@@ -24103,6 +24135,9 @@ and ensure you are accounting for this risk.
|
|
|
24103
24135
|
}
|
|
24104
24136
|
return typeof element.display === "function" ? element.display(item) : processDisplayCondition(element.display, item);
|
|
24105
24137
|
});
|
|
24138
|
+
const dynamicAttributes = computed(() => {
|
|
24139
|
+
return getDynamicAttributes(props.element.dynamicAttributes, enhancedItem.value);
|
|
24140
|
+
});
|
|
24106
24141
|
const handleProductEvent = (item) => {
|
|
24107
24142
|
emit2("productEvent", item);
|
|
24108
24143
|
};
|
|
@@ -24111,27 +24146,27 @@ and ensure you are accounting for this risk.
|
|
|
24111
24146
|
};
|
|
24112
24147
|
return (_ctx, _cache) => {
|
|
24113
24148
|
var _a;
|
|
24114
|
-
return displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
24149
|
+
return displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), mergeProps({
|
|
24115
24150
|
key: 0,
|
|
24116
24151
|
item: enhancedItem.value,
|
|
24117
24152
|
options: _ctx.element,
|
|
24118
24153
|
labels: _ctx.labels,
|
|
24119
24154
|
inStock: _ctx.inStock,
|
|
24120
24155
|
link: _ctx.link,
|
|
24121
|
-
class:
|
|
24122
|
-
|
|
24123
|
-
}, null,
|
|
24156
|
+
class: { "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) },
|
|
24157
|
+
"dynamic-attributes": dynamicAttributes.value
|
|
24158
|
+
}, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value, { onProductEvent: handleProductEvent }), null, 16, ["item", "options", "labels", "inStock", "link", "class", "dynamic-attributes"])) : createCommentVNode("", true);
|
|
24124
24159
|
};
|
|
24125
24160
|
}
|
|
24126
24161
|
}));
|
|
24127
|
-
const _hoisted_1$
|
|
24128
|
-
const _hoisted_2$
|
|
24129
|
-
const _hoisted_3$
|
|
24162
|
+
const _hoisted_1$n = ["onMouseup"];
|
|
24163
|
+
const _hoisted_2$j = ["href"];
|
|
24164
|
+
const _hoisted_3$d = {
|
|
24130
24165
|
key: 0,
|
|
24131
24166
|
class: "lupa-out-of-stock"
|
|
24132
24167
|
};
|
|
24133
24168
|
const _hoisted_4$7 = { class: "lupa-search-result-product-details-section" };
|
|
24134
|
-
const _sfc_main$
|
|
24169
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
24135
24170
|
__name: "SearchResultsProductCard",
|
|
24136
24171
|
props: {
|
|
24137
24172
|
product: {},
|
|
@@ -24292,7 +24327,7 @@ and ensure you are accounting for this risk.
|
|
|
24292
24327
|
onClick: handleClick,
|
|
24293
24328
|
onMouseup: withModifiers(handleClick, ["middle", "exact"])
|
|
24294
24329
|
}), [
|
|
24295
|
-
createVNode(_sfc_main$
|
|
24330
|
+
createVNode(_sfc_main$15, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
24296
24331
|
createBaseVNode("div", {
|
|
24297
24332
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
24298
24333
|
}, [
|
|
@@ -24302,7 +24337,7 @@ and ensure you are accounting for this risk.
|
|
|
24302
24337
|
onClick: handleNavigation
|
|
24303
24338
|
}, [
|
|
24304
24339
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
24305
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24340
|
+
return openBlock(), createBlock(_sfc_main$q, {
|
|
24306
24341
|
class: "lupa-search-results-product-element",
|
|
24307
24342
|
item: _ctx.product,
|
|
24308
24343
|
element,
|
|
@@ -24313,16 +24348,16 @@ and ensure you are accounting for this risk.
|
|
|
24313
24348
|
onProductEvent: handleProductEvent
|
|
24314
24349
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
24315
24350
|
}), 128)),
|
|
24316
|
-
createVNode(_sfc_main$
|
|
24351
|
+
createVNode(_sfc_main$15, {
|
|
24317
24352
|
options: badgesOptions.value,
|
|
24318
24353
|
position: "image",
|
|
24319
24354
|
class: "lupa-image-badges"
|
|
24320
24355
|
}, null, 8, ["options"]),
|
|
24321
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
24322
|
-
], 8, _hoisted_2$
|
|
24356
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$d, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
24357
|
+
], 8, _hoisted_2$j),
|
|
24323
24358
|
createBaseVNode("div", _hoisted_4$7, [
|
|
24324
24359
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
24325
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24360
|
+
return openBlock(), createBlock(_sfc_main$q, {
|
|
24326
24361
|
class: "lupa-search-results-product-element",
|
|
24327
24362
|
item: _ctx.product,
|
|
24328
24363
|
element,
|
|
@@ -24340,7 +24375,7 @@ and ensure you are accounting for this risk.
|
|
|
24340
24375
|
class: normalizeClass("lupa-element-group-" + group)
|
|
24341
24376
|
}, [
|
|
24342
24377
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
24343
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24378
|
+
return openBlock(), createBlock(_sfc_main$q, {
|
|
24344
24379
|
class: "lupa-search-results-product-element",
|
|
24345
24380
|
item: _ctx.product,
|
|
24346
24381
|
element,
|
|
@@ -24354,16 +24389,16 @@ and ensure you are accounting for this risk.
|
|
|
24354
24389
|
], 2);
|
|
24355
24390
|
}), 128))
|
|
24356
24391
|
], 2)
|
|
24357
|
-
], 16, _hoisted_1$
|
|
24392
|
+
], 16, _hoisted_1$n);
|
|
24358
24393
|
};
|
|
24359
24394
|
}
|
|
24360
24395
|
});
|
|
24361
|
-
const _hoisted_1$
|
|
24396
|
+
const _hoisted_1$m = {
|
|
24362
24397
|
id: "lupa-search-results-similar-queries",
|
|
24363
24398
|
"data-cy": "lupa-search-results-similar-queries"
|
|
24364
24399
|
};
|
|
24365
|
-
const _hoisted_2$
|
|
24366
|
-
const _hoisted_3$
|
|
24400
|
+
const _hoisted_2$i = { class: "lupa-similar-queries-label" };
|
|
24401
|
+
const _hoisted_3$c = {
|
|
24367
24402
|
class: "lupa-similar-query-label",
|
|
24368
24403
|
"data-cy": "lupa-similar-query-label"
|
|
24369
24404
|
};
|
|
@@ -24374,7 +24409,7 @@ and ensure you are accounting for this risk.
|
|
|
24374
24409
|
class: "lupa-products",
|
|
24375
24410
|
"data-cy": "lupa-products"
|
|
24376
24411
|
};
|
|
24377
|
-
const _sfc_main$
|
|
24412
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
24378
24413
|
__name: "SearchResultsSimilarQueries",
|
|
24379
24414
|
props: {
|
|
24380
24415
|
labels: {},
|
|
@@ -24404,11 +24439,11 @@ and ensure you are accounting for this risk.
|
|
|
24404
24439
|
paramsStore.goToResults({ searchText, facet });
|
|
24405
24440
|
};
|
|
24406
24441
|
return (_ctx, _cache) => {
|
|
24407
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24408
|
-
createBaseVNode("div", _hoisted_2$
|
|
24442
|
+
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
24443
|
+
createBaseVNode("div", _hoisted_2$i, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
24409
24444
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
24410
24445
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
24411
|
-
createBaseVNode("div", _hoisted_3$
|
|
24446
|
+
createBaseVNode("div", _hoisted_3$c, [
|
|
24412
24447
|
createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
|
|
24413
24448
|
createBaseVNode("span", {
|
|
24414
24449
|
id: "lupa-similar-query-text-component",
|
|
@@ -24424,7 +24459,7 @@ and ensure you are accounting for this risk.
|
|
|
24424
24459
|
]),
|
|
24425
24460
|
createBaseVNode("div", _hoisted_7$1, [
|
|
24426
24461
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
24427
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24462
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
24428
24463
|
style: normalizeStyle(_ctx.columnSize),
|
|
24429
24464
|
key: getDocumentKey(index2, product),
|
|
24430
24465
|
product,
|
|
@@ -24438,15 +24473,15 @@ and ensure you are accounting for this risk.
|
|
|
24438
24473
|
};
|
|
24439
24474
|
}
|
|
24440
24475
|
});
|
|
24441
|
-
const _hoisted_1$
|
|
24476
|
+
const _hoisted_1$l = {
|
|
24442
24477
|
key: 0,
|
|
24443
24478
|
class: "lupa-results-additional-panel"
|
|
24444
24479
|
};
|
|
24445
|
-
const _hoisted_2$
|
|
24480
|
+
const _hoisted_2$h = {
|
|
24446
24481
|
class: "lupa-results-additional-panel-items",
|
|
24447
24482
|
"data-cy": "lupa-results-additional-panel-items"
|
|
24448
24483
|
};
|
|
24449
|
-
const _sfc_main$
|
|
24484
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
24450
24485
|
__name: "AdditionalPanel",
|
|
24451
24486
|
props: {
|
|
24452
24487
|
panel: {},
|
|
@@ -24519,10 +24554,10 @@ and ensure you are accounting for this risk.
|
|
|
24519
24554
|
handleQueryChange();
|
|
24520
24555
|
});
|
|
24521
24556
|
return (_ctx, _cache) => {
|
|
24522
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24523
|
-
createBaseVNode("div", _hoisted_2$
|
|
24557
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
24558
|
+
createBaseVNode("div", _hoisted_2$h, [
|
|
24524
24559
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
24525
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24560
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
24526
24561
|
key: index,
|
|
24527
24562
|
product: item,
|
|
24528
24563
|
options: _ctx.panel,
|
|
@@ -24540,11 +24575,11 @@ and ensure you are accounting for this risk.
|
|
|
24540
24575
|
};
|
|
24541
24576
|
}
|
|
24542
24577
|
});
|
|
24543
|
-
const _hoisted_1$
|
|
24578
|
+
const _hoisted_1$k = {
|
|
24544
24579
|
key: 0,
|
|
24545
24580
|
class: "lupa-results-additional-panels"
|
|
24546
24581
|
};
|
|
24547
|
-
const _sfc_main$
|
|
24582
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
24548
24583
|
__name: "AdditionalPanels",
|
|
24549
24584
|
props: {
|
|
24550
24585
|
options: {},
|
|
@@ -24561,9 +24596,9 @@ and ensure you are accounting for this risk.
|
|
|
24561
24596
|
return locationPanels.value.length > 0;
|
|
24562
24597
|
});
|
|
24563
24598
|
return (_ctx, _cache) => {
|
|
24564
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24599
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
24565
24600
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
24566
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24601
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
24567
24602
|
key: panel.queryKey,
|
|
24568
24603
|
panel,
|
|
24569
24604
|
options: _ctx.sdkOptions
|
|
@@ -24580,29 +24615,29 @@ and ensure you are accounting for this risk.
|
|
|
24580
24615
|
}
|
|
24581
24616
|
return target;
|
|
24582
24617
|
};
|
|
24583
|
-
const _sfc_main$
|
|
24584
|
-
const _hoisted_1$
|
|
24585
|
-
const _hoisted_2$
|
|
24618
|
+
const _sfc_main$l = {};
|
|
24619
|
+
const _hoisted_1$j = { class: "lupa-spinner-wrapper" };
|
|
24620
|
+
const _hoisted_2$g = { class: "lupa-spinner" };
|
|
24586
24621
|
function _sfc_render(_ctx, _cache) {
|
|
24587
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24588
|
-
createBaseVNode("div", _hoisted_2$
|
|
24622
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
24623
|
+
createBaseVNode("div", _hoisted_2$g, [
|
|
24589
24624
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x2) => {
|
|
24590
24625
|
return createBaseVNode("div", { key: x2 });
|
|
24591
24626
|
}), 64))
|
|
24592
24627
|
])
|
|
24593
24628
|
]);
|
|
24594
24629
|
}
|
|
24595
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24596
|
-
const _hoisted_1$
|
|
24630
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render]]);
|
|
24631
|
+
const _hoisted_1$i = {
|
|
24597
24632
|
id: "lupa-search-results-similar-results",
|
|
24598
24633
|
"data-cy": "lupa-search-results-similar-results"
|
|
24599
24634
|
};
|
|
24600
|
-
const _hoisted_2$
|
|
24601
|
-
const _hoisted_3$
|
|
24635
|
+
const _hoisted_2$f = { class: "lupa-similar-results-label" };
|
|
24636
|
+
const _hoisted_3$b = {
|
|
24602
24637
|
class: "lupa-products",
|
|
24603
24638
|
"data-cy": "lupa-products"
|
|
24604
24639
|
};
|
|
24605
|
-
const _sfc_main$
|
|
24640
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
24606
24641
|
__name: "SearchResultsSimilarResults",
|
|
24607
24642
|
props: {
|
|
24608
24643
|
columnSize: {},
|
|
@@ -24618,11 +24653,11 @@ and ensure you are accounting for this risk.
|
|
|
24618
24653
|
return getProductKey(`${index}`, product, props.productCardOptions.idKey);
|
|
24619
24654
|
};
|
|
24620
24655
|
return (_ctx, _cache) => {
|
|
24621
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24622
|
-
createBaseVNode("div", _hoisted_2$
|
|
24623
|
-
createBaseVNode("div", _hoisted_3$
|
|
24656
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
24657
|
+
createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
24658
|
+
createBaseVNode("div", _hoisted_3$b, [
|
|
24624
24659
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
24625
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24660
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
24626
24661
|
style: normalizeStyle(_ctx.columnSize),
|
|
24627
24662
|
key: getDocumentKey(index, product),
|
|
24628
24663
|
product,
|
|
@@ -24658,15 +24693,15 @@ and ensure you are accounting for this risk.
|
|
|
24658
24693
|
return extractFacetsRelatedSource(source, searchResults2);
|
|
24659
24694
|
}
|
|
24660
24695
|
};
|
|
24661
|
-
const _hoisted_1$
|
|
24662
|
-
const _hoisted_2$
|
|
24663
|
-
const _hoisted_3$
|
|
24696
|
+
const _hoisted_1$h = { class: "lupa-related-query-item" };
|
|
24697
|
+
const _hoisted_2$e = { class: "lupa-related-query-image" };
|
|
24698
|
+
const _hoisted_3$a = { class: "lupa-related-query-label" };
|
|
24664
24699
|
const _hoisted_4$5 = { class: "lupa-related-query-title" };
|
|
24665
24700
|
const _hoisted_5$2 = {
|
|
24666
24701
|
key: 0,
|
|
24667
24702
|
class: "lupa-related-query-count"
|
|
24668
24703
|
};
|
|
24669
|
-
const _sfc_main$
|
|
24704
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
24670
24705
|
__name: "RelatedQueryPanel",
|
|
24671
24706
|
props: {
|
|
24672
24707
|
query: {},
|
|
@@ -24677,7 +24712,9 @@ and ensure you are accounting for this risk.
|
|
|
24677
24712
|
const loading = ref(false);
|
|
24678
24713
|
const relatedQueryResult = ref(null);
|
|
24679
24714
|
const optionsStore = useOptionsStore();
|
|
24715
|
+
const searchResultStore = useSearchResultStore();
|
|
24680
24716
|
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
24717
|
+
const { searchResult } = storeToRefs(searchResultStore);
|
|
24681
24718
|
const mainImage = computed(() => {
|
|
24682
24719
|
var _a, _b, _c;
|
|
24683
24720
|
return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.elements) == null ? void 0 : _b.find((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _c : "";
|
|
@@ -24702,24 +24739,34 @@ and ensure you are accounting for this risk.
|
|
|
24702
24739
|
var _a, _b;
|
|
24703
24740
|
return (_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.total) != null ? _b : 0;
|
|
24704
24741
|
});
|
|
24742
|
+
const searchText = computed(() => {
|
|
24743
|
+
var _a, _b, _c;
|
|
24744
|
+
return ((_a = props.options.source) == null ? void 0 : _a.mode) === "filter" ? (_b = searchResult.value) == null ? void 0 : _b.searchText : (_c = props.query) == null ? void 0 : _c.toLowerCase();
|
|
24745
|
+
});
|
|
24746
|
+
const relatedQueryFilters = computed(() => {
|
|
24747
|
+
var _a, _b, _c;
|
|
24748
|
+
return ((_a = props.options.source) == null ? void 0 : _a.mode) === "filter" ? {
|
|
24749
|
+
[(_c = (_b = props.options) == null ? void 0 : _b.source) == null ? void 0 : _c.key]: [props.query]
|
|
24750
|
+
} : {};
|
|
24751
|
+
});
|
|
24705
24752
|
const searchForRelatedQuery = () => __async2(this, null, function* () {
|
|
24706
|
-
var _a, _b, _c
|
|
24753
|
+
var _a, _b, _c;
|
|
24707
24754
|
if (!props.query) {
|
|
24708
24755
|
return;
|
|
24709
24756
|
}
|
|
24710
|
-
const lupaQuery = { searchText:
|
|
24757
|
+
const lupaQuery = { searchText: searchText.value, limit: 1, filters: relatedQueryFilters.value };
|
|
24711
24758
|
try {
|
|
24712
24759
|
loading.value = true;
|
|
24713
24760
|
const result2 = yield LupaSearchSdk.query(
|
|
24714
24761
|
queryKey.value,
|
|
24715
24762
|
lupaQuery,
|
|
24716
|
-
(
|
|
24763
|
+
(_a = searchResultOptions.value) == null ? void 0 : _a.options
|
|
24717
24764
|
);
|
|
24718
24765
|
if (result2.success) {
|
|
24719
24766
|
relatedQueryResult.value = result2;
|
|
24720
24767
|
}
|
|
24721
24768
|
} catch (error) {
|
|
24722
|
-
(
|
|
24769
|
+
(_c = (_b = searchResultOptions.value) == null ? void 0 : _b.options) == null ? void 0 : _c.onError(error);
|
|
24723
24770
|
} finally {
|
|
24724
24771
|
loading.value = false;
|
|
24725
24772
|
}
|
|
@@ -24735,9 +24782,9 @@ and ensure you are accounting for this risk.
|
|
|
24735
24782
|
});
|
|
24736
24783
|
return (_ctx, _cache) => {
|
|
24737
24784
|
var _a;
|
|
24738
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24739
|
-
createBaseVNode("div", _hoisted_2$
|
|
24740
|
-
firstResultItem.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
24785
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
24786
|
+
createBaseVNode("div", _hoisted_2$e, [
|
|
24787
|
+
firstResultItem.value && image.value ? (openBlock(), createBlock(_sfc_main$1l, {
|
|
24741
24788
|
key: 0,
|
|
24742
24789
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
24743
24790
|
"image-class": "lupa-related-query-image",
|
|
@@ -24745,7 +24792,7 @@ and ensure you are accounting for this risk.
|
|
|
24745
24792
|
options: image.value
|
|
24746
24793
|
}, null, 8, ["item", "options"])) : createCommentVNode("", true)
|
|
24747
24794
|
]),
|
|
24748
|
-
createBaseVNode("div", _hoisted_3$
|
|
24795
|
+
createBaseVNode("div", _hoisted_3$a, [
|
|
24749
24796
|
createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
|
|
24750
24797
|
((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
24751
24798
|
])
|
|
@@ -24753,16 +24800,16 @@ and ensure you are accounting for this risk.
|
|
|
24753
24800
|
};
|
|
24754
24801
|
}
|
|
24755
24802
|
});
|
|
24756
|
-
const _hoisted_1$
|
|
24803
|
+
const _hoisted_1$g = {
|
|
24757
24804
|
key: 0,
|
|
24758
24805
|
class: "lupa-related-queries"
|
|
24759
24806
|
};
|
|
24760
|
-
const _hoisted_2$
|
|
24807
|
+
const _hoisted_2$d = {
|
|
24761
24808
|
key: 0,
|
|
24762
24809
|
class: "lupa-related-queries-title"
|
|
24763
24810
|
};
|
|
24764
|
-
const _hoisted_3$
|
|
24765
|
-
const _sfc_main$
|
|
24811
|
+
const _hoisted_3$9 = ["onClick"];
|
|
24812
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
24766
24813
|
__name: "RelatedQueries",
|
|
24767
24814
|
props: {
|
|
24768
24815
|
options: {}
|
|
@@ -24771,12 +24818,18 @@ and ensure you are accounting for this risk.
|
|
|
24771
24818
|
const props = __props;
|
|
24772
24819
|
const searchResultStore = useSearchResultStore();
|
|
24773
24820
|
const paramsStore = useParamsStore();
|
|
24821
|
+
const optionsStore = useOptionsStore();
|
|
24774
24822
|
const { searchResult } = storeToRefs(searchResultStore);
|
|
24823
|
+
const currentSearchText = computed(() => {
|
|
24824
|
+
var _a, _b;
|
|
24825
|
+
return (_b = (_a = searchResult.value) == null ? void 0 : _a.searchText) != null ? _b : "";
|
|
24826
|
+
});
|
|
24775
24827
|
const relatedQueries = computed(() => {
|
|
24776
24828
|
if (!props.options || !searchResult.value) {
|
|
24777
24829
|
return [];
|
|
24778
24830
|
}
|
|
24779
|
-
|
|
24831
|
+
const queries = extractRelatedSource(props.options.source, searchResult.value);
|
|
24832
|
+
return queries;
|
|
24780
24833
|
});
|
|
24781
24834
|
const hasEnoughRelatedQueries = computed(() => {
|
|
24782
24835
|
return relatedQueries.value.length > 1;
|
|
@@ -24784,28 +24837,130 @@ and ensure you are accounting for this risk.
|
|
|
24784
24837
|
const goToResults = ({ searchText }) => {
|
|
24785
24838
|
paramsStore.goToResults({ searchText });
|
|
24786
24839
|
};
|
|
24840
|
+
const handleRelatedQueryClick = (query) => {
|
|
24841
|
+
var _a;
|
|
24842
|
+
if (((_a = props.options.source) == null ? void 0 : _a.mode) === "filter") {
|
|
24843
|
+
handleFilter(query);
|
|
24844
|
+
} else {
|
|
24845
|
+
goToResults({ searchText: query });
|
|
24846
|
+
}
|
|
24847
|
+
};
|
|
24848
|
+
const handleFilter = (query) => {
|
|
24849
|
+
var _a, _b;
|
|
24850
|
+
const facet = (_b = (_a = searchResult.value) == null ? void 0 : _a.facets) == null ? void 0 : _b.find(
|
|
24851
|
+
(facet2) => {
|
|
24852
|
+
var _a2, _b2;
|
|
24853
|
+
return facet2.key === ((_b2 = (_a2 = props.options) == null ? void 0 : _a2.source) == null ? void 0 : _b2.key);
|
|
24854
|
+
}
|
|
24855
|
+
);
|
|
24856
|
+
if (!facet || facet.type !== "terms") {
|
|
24857
|
+
return [];
|
|
24858
|
+
}
|
|
24859
|
+
toggleTermFilter(
|
|
24860
|
+
paramsStore.appendParams,
|
|
24861
|
+
{ type: "terms", key: facet.key, value: query },
|
|
24862
|
+
optionsStore.getQueryParamName,
|
|
24863
|
+
{}
|
|
24864
|
+
);
|
|
24865
|
+
};
|
|
24866
|
+
const getSelectedFilterClass = (query) => {
|
|
24867
|
+
var _a, _b, _c, _d, _e, _f;
|
|
24868
|
+
if (((_a = props.options.source) == null ? void 0 : _a.mode) !== "filter") {
|
|
24869
|
+
return "";
|
|
24870
|
+
}
|
|
24871
|
+
return Array.isArray((_c = (_b = searchResult.value) == null ? void 0 : _b.filters) == null ? void 0 : _c[props.options.source.key]) && ((_f = (_e = (_d = searchResult.value) == null ? void 0 : _d.filters) == null ? void 0 : _e[props.options.source.key]) == null ? void 0 : _f.includes(
|
|
24872
|
+
query
|
|
24873
|
+
)) ? "lupa-selected-related-query-filter" : "";
|
|
24874
|
+
};
|
|
24787
24875
|
return (_ctx, _cache) => {
|
|
24788
24876
|
var _a, _b, _c, _d;
|
|
24789
|
-
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24790
|
-
((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$
|
|
24877
|
+
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
24878
|
+
((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$d, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
24791
24879
|
createBaseVNode("ul", null, [
|
|
24792
24880
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries.value, (query) => {
|
|
24793
|
-
return openBlock(), createElementBlock("li", {
|
|
24881
|
+
return openBlock(), createElementBlock("li", {
|
|
24882
|
+
key: query + currentSearchText.value,
|
|
24883
|
+
class: normalizeClass(getSelectedFilterClass(query))
|
|
24884
|
+
}, [
|
|
24794
24885
|
createBaseVNode("a", {
|
|
24795
|
-
onClick: ($event) =>
|
|
24886
|
+
onClick: ($event) => handleRelatedQueryClick(query)
|
|
24796
24887
|
}, [
|
|
24797
|
-
createVNode(_sfc_main$
|
|
24888
|
+
createVNode(_sfc_main$j, {
|
|
24798
24889
|
options: _ctx.options,
|
|
24799
24890
|
query
|
|
24800
24891
|
}, null, 8, ["options", "query"])
|
|
24801
|
-
], 8, _hoisted_3$
|
|
24802
|
-
]);
|
|
24892
|
+
], 8, _hoisted_3$9)
|
|
24893
|
+
], 2);
|
|
24803
24894
|
}), 128))
|
|
24804
24895
|
])
|
|
24805
24896
|
])) : createCommentVNode("", true);
|
|
24806
24897
|
};
|
|
24807
24898
|
}
|
|
24808
24899
|
});
|
|
24900
|
+
const checkHasMatchCharacters = (option, searchText) => {
|
|
24901
|
+
var _a, _b;
|
|
24902
|
+
return (_b = (_a = option.matchCharacters) == null ? void 0 : _a.split("")) == null ? void 0 : _b.some((char) => searchText.includes(char));
|
|
24903
|
+
};
|
|
24904
|
+
const checkHasMatchWords = (option, searchText) => {
|
|
24905
|
+
var _a;
|
|
24906
|
+
return (_a = searchText.split(" ")) == null ? void 0 : _a.some((word) => {
|
|
24907
|
+
var _a2;
|
|
24908
|
+
return (_a2 = option.matchWords) == null ? void 0 : _a2.includes(word);
|
|
24909
|
+
});
|
|
24910
|
+
};
|
|
24911
|
+
const extractRedirectionSuggestion = (searchText = "", options) => {
|
|
24912
|
+
for (const option of options || []) {
|
|
24913
|
+
const hasMatchCharacters = option.matchCharacters;
|
|
24914
|
+
const hasMatchWords = option.matchWords;
|
|
24915
|
+
if (hasMatchCharacters && !hasMatchWords && checkHasMatchCharacters(option, searchText)) {
|
|
24916
|
+
return option;
|
|
24917
|
+
}
|
|
24918
|
+
if (hasMatchWords && !hasMatchCharacters && checkHasMatchWords(option, searchText)) {
|
|
24919
|
+
return option;
|
|
24920
|
+
}
|
|
24921
|
+
if (hasMatchCharacters && hasMatchWords && checkHasMatchCharacters(option, searchText) && checkHasMatchWords(option, searchText)) {
|
|
24922
|
+
return option;
|
|
24923
|
+
}
|
|
24924
|
+
}
|
|
24925
|
+
return null;
|
|
24926
|
+
};
|
|
24927
|
+
const _hoisted_1$f = {
|
|
24928
|
+
key: 0,
|
|
24929
|
+
class: "lupa-redirection-suggestion"
|
|
24930
|
+
};
|
|
24931
|
+
const _hoisted_2$c = { class: "lupa-redirections-suggestion-label" };
|
|
24932
|
+
const _hoisted_3$8 = ["href"];
|
|
24933
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
24934
|
+
__name: "RedirectionSuggestions",
|
|
24935
|
+
props: {
|
|
24936
|
+
options: {}
|
|
24937
|
+
},
|
|
24938
|
+
setup(__props) {
|
|
24939
|
+
const props = __props;
|
|
24940
|
+
const searchResultStore = useSearchResultStore();
|
|
24941
|
+
const optionsStore = useOptionsStore();
|
|
24942
|
+
const { searchResult } = storeToRefs(searchResultStore);
|
|
24943
|
+
const searchText = computed(() => searchResult.value.searchText);
|
|
24944
|
+
const redirectionSuggestion = computed(() => {
|
|
24945
|
+
return extractRedirectionSuggestion(searchText.value, props.options);
|
|
24946
|
+
});
|
|
24947
|
+
const label = computed(() => addParamsToLabel(redirectionSuggestion.value.label, searchText.value));
|
|
24948
|
+
const link = computed(
|
|
24949
|
+
() => generateResultLink(
|
|
24950
|
+
redirectionSuggestion.value.link,
|
|
24951
|
+
optionsStore.getQueryParamName,
|
|
24952
|
+
searchText.value
|
|
24953
|
+
)
|
|
24954
|
+
);
|
|
24955
|
+
return (_ctx, _cache) => {
|
|
24956
|
+
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
24957
|
+
createBaseVNode("h4", _hoisted_2$c, [
|
|
24958
|
+
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$8)
|
|
24959
|
+
])
|
|
24960
|
+
])) : createCommentVNode("", true);
|
|
24961
|
+
};
|
|
24962
|
+
}
|
|
24963
|
+
});
|
|
24809
24964
|
const _hoisted_1$e = { id: "lupa-search-results-products" };
|
|
24810
24965
|
const _hoisted_2$b = {
|
|
24811
24966
|
class: "lupa-products",
|
|
@@ -24935,27 +25090,30 @@ and ensure you are accounting for this risk.
|
|
|
24935
25090
|
key: 0,
|
|
24936
25091
|
class: "lupa-loader"
|
|
24937
25092
|
})) : createCommentVNode("", true),
|
|
24938
|
-
createVNode(_sfc_main$
|
|
25093
|
+
createVNode(_sfc_main$h, {
|
|
25094
|
+
options: _ctx.options.redirectionSuggestions
|
|
25095
|
+
}, null, 8, ["options"]),
|
|
25096
|
+
createVNode(_sfc_main$m, {
|
|
24939
25097
|
options: _ctx.options,
|
|
24940
25098
|
location: "top",
|
|
24941
25099
|
sdkOptions: _ctx.options.options
|
|
24942
25100
|
}, null, 8, ["options", "sdkOptions"]),
|
|
24943
|
-
createVNode(_sfc_main$
|
|
25101
|
+
createVNode(_sfc_main$i, {
|
|
24944
25102
|
options: _ctx.options.relatedQueries
|
|
24945
25103
|
}, null, 8, ["options"]),
|
|
24946
25104
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
24947
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
25105
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
|
|
24948
25106
|
key: 0,
|
|
24949
25107
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
24950
25108
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24951
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
25109
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$B, {
|
|
24952
25110
|
key: 1,
|
|
24953
25111
|
class: "lupa-toolbar-mobile",
|
|
24954
25112
|
options: _ctx.options,
|
|
24955
25113
|
"pagination-location": "top",
|
|
24956
25114
|
onFilter: filter2
|
|
24957
25115
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24958
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
25116
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$V, {
|
|
24959
25117
|
key: 2,
|
|
24960
25118
|
class: normalizeClass(currentFiltersClass.value),
|
|
24961
25119
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -24964,12 +25122,12 @@ and ensure you are accounting for this risk.
|
|
|
24964
25122
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
24965
25123
|
], 64)) : createCommentVNode("", true),
|
|
24966
25124
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
24967
|
-
createVNode(_sfc_main$
|
|
25125
|
+
createVNode(_sfc_main$B, {
|
|
24968
25126
|
class: "lupa-toolbar-top",
|
|
24969
25127
|
options: _ctx.options,
|
|
24970
25128
|
"pagination-location": "top"
|
|
24971
25129
|
}, null, 8, ["options"]),
|
|
24972
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
25130
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$V, {
|
|
24973
25131
|
key: 0,
|
|
24974
25132
|
class: normalizeClass(currentFiltersClass.value),
|
|
24975
25133
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -24985,7 +25143,7 @@ and ensure you are accounting for this risk.
|
|
|
24985
25143
|
options: productCardOptions.value
|
|
24986
25144
|
});
|
|
24987
25145
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
24988
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25146
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
24989
25147
|
style: normalizeStyle(columnSize.value),
|
|
24990
25148
|
key: getProductKeyAction(index, product),
|
|
24991
25149
|
product,
|
|
@@ -25001,12 +25159,12 @@ and ensure you are accounting for this risk.
|
|
|
25001
25159
|
onClick: goToFirstPage
|
|
25002
25160
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
25003
25161
|
])) : createCommentVNode("", true),
|
|
25004
|
-
createVNode(_sfc_main$
|
|
25162
|
+
createVNode(_sfc_main$B, {
|
|
25005
25163
|
class: "lupa-toolbar-bottom",
|
|
25006
25164
|
options: _ctx.options,
|
|
25007
25165
|
"pagination-location": "bottom"
|
|
25008
25166
|
}, null, 8, ["options"]),
|
|
25009
|
-
createVNode(_sfc_main$
|
|
25167
|
+
createVNode(_sfc_main$m, {
|
|
25010
25168
|
options: _ctx.options,
|
|
25011
25169
|
location: "bottom",
|
|
25012
25170
|
sdkOptions: _ctx.options.options
|
|
@@ -25016,14 +25174,14 @@ and ensure you are accounting for this risk.
|
|
|
25016
25174
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
25017
25175
|
])) : createCommentVNode("", true),
|
|
25018
25176
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
25019
|
-
createVNode(_sfc_main$
|
|
25177
|
+
createVNode(_sfc_main$o, {
|
|
25020
25178
|
labels: similarQueriesLabels.value,
|
|
25021
25179
|
columnSize: columnSize.value,
|
|
25022
25180
|
productCardOptions: productCardOptions.value
|
|
25023
25181
|
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
25024
25182
|
])) : createCommentVNode("", true),
|
|
25025
25183
|
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
25026
|
-
createVNode(_sfc_main$
|
|
25184
|
+
createVNode(_sfc_main$k, {
|
|
25027
25185
|
labels: similarResultsLabels.value,
|
|
25028
25186
|
columnSize: columnSize.value,
|
|
25029
25187
|
productCardOptions: productCardOptions.value
|
|
@@ -25092,14 +25250,14 @@ and ensure you are accounting for this risk.
|
|
|
25092
25250
|
])) : createCommentVNode("", true),
|
|
25093
25251
|
createBaseVNode("div", _hoisted_4$3, [
|
|
25094
25252
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
25095
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25253
|
+
return openBlock(), createBlock(_sfc_main$U, {
|
|
25096
25254
|
key: getCategoryKey(child),
|
|
25097
25255
|
item: child,
|
|
25098
25256
|
options: categoryOptions.value
|
|
25099
25257
|
}, null, 8, ["item", "options"]);
|
|
25100
25258
|
}), 128))
|
|
25101
25259
|
]),
|
|
25102
|
-
createVNode(_sfc_main$
|
|
25260
|
+
createVNode(_sfc_main$B, {
|
|
25103
25261
|
class: "lupa-toolbar-mobile",
|
|
25104
25262
|
"pagination-location": "top",
|
|
25105
25263
|
options: _ctx.options
|
|
@@ -25331,8 +25489,8 @@ and ensure you are accounting for this risk.
|
|
|
25331
25489
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
25332
25490
|
}, [
|
|
25333
25491
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
25334
|
-
createVNode(_sfc_main$
|
|
25335
|
-
createVNode(_sfc_main$
|
|
25492
|
+
createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25493
|
+
createVNode(_sfc_main$X, {
|
|
25336
25494
|
"show-summary": true,
|
|
25337
25495
|
options: _ctx.options,
|
|
25338
25496
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
@@ -25342,17 +25500,17 @@ and ensure you are accounting for this risk.
|
|
|
25342
25500
|
key: 1,
|
|
25343
25501
|
options: _ctx.options
|
|
25344
25502
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25345
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
25503
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$J, {
|
|
25346
25504
|
key: 2,
|
|
25347
25505
|
options: _ctx.options.filters,
|
|
25348
25506
|
onFilter: handleParamsChange
|
|
25349
25507
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25350
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
25508
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$I, {
|
|
25351
25509
|
key: 3,
|
|
25352
25510
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
25353
25511
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
25354
25512
|
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
25355
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
25513
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
25356
25514
|
key: 0,
|
|
25357
25515
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
25358
25516
|
ref_key: "searchResultsFilters",
|
|
@@ -25360,8 +25518,8 @@ and ensure you are accounting for this risk.
|
|
|
25360
25518
|
onFilter: handleParamsChange
|
|
25361
25519
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25362
25520
|
createBaseVNode("div", _hoisted_3$5, [
|
|
25363
|
-
createVNode(_sfc_main$
|
|
25364
|
-
createVNode(_sfc_main$
|
|
25521
|
+
createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25522
|
+
createVNode(_sfc_main$X, {
|
|
25365
25523
|
options: _ctx.options,
|
|
25366
25524
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
25367
25525
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -25377,13 +25535,13 @@ and ensure you are accounting for this risk.
|
|
|
25377
25535
|
}, 8, ["options", "ssr"])
|
|
25378
25536
|
])
|
|
25379
25537
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
25380
|
-
createVNode(_sfc_main$
|
|
25381
|
-
createVNode(_sfc_main$
|
|
25538
|
+
createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25539
|
+
createVNode(_sfc_main$X, {
|
|
25382
25540
|
options: _ctx.options,
|
|
25383
25541
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
25384
25542
|
}, null, 8, ["options", "is-product-list"]),
|
|
25385
25543
|
createBaseVNode("div", _hoisted_4$2, [
|
|
25386
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
25544
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
25387
25545
|
key: 0,
|
|
25388
25546
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
25389
25547
|
ref_key: "searchResultsFilters",
|
|
@@ -31073,7 +31231,7 @@ and ensure you are accounting for this risk.
|
|
|
31073
31231
|
onClick: withModifiers(innerClick, ["stop"])
|
|
31074
31232
|
}, [
|
|
31075
31233
|
createBaseVNode("div", _hoisted_2$7, [
|
|
31076
|
-
createVNode(_sfc_main$
|
|
31234
|
+
createVNode(_sfc_main$_, {
|
|
31077
31235
|
options: fullSearchBoxOptions.value,
|
|
31078
31236
|
"is-search-container": true,
|
|
31079
31237
|
ref_key: "searchBox",
|
|
@@ -31963,7 +32121,7 @@ and ensure you are accounting for this risk.
|
|
|
31963
32121
|
key: getProductKeyAction(index, product)
|
|
31964
32122
|
}, {
|
|
31965
32123
|
default: withCtx(() => [
|
|
31966
|
-
createVNode(_sfc_main$
|
|
32124
|
+
createVNode(_sfc_main$p, {
|
|
31967
32125
|
product,
|
|
31968
32126
|
options: _ctx.options,
|
|
31969
32127
|
"click-tracking-settings": clickTrackingSettings.value
|
|
@@ -31976,7 +32134,7 @@ and ensure you are accounting for this risk.
|
|
|
31976
32134
|
_: 1
|
|
31977
32135
|
}, 16)) : (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
31978
32136
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
31979
|
-
return openBlock(), createBlock(_sfc_main$
|
|
32137
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
31980
32138
|
style: normalizeStyle(columnSize.value),
|
|
31981
32139
|
key: getProductKeyAction(index, product),
|
|
31982
32140
|
product,
|
|
@@ -32240,7 +32398,7 @@ and ensure you are accounting for this risk.
|
|
|
32240
32398
|
createBaseVNode("a", {
|
|
32241
32399
|
href: getLink(product)
|
|
32242
32400
|
}, [
|
|
32243
|
-
createVNode(_sfc_main$
|
|
32401
|
+
createVNode(_sfc_main$A, {
|
|
32244
32402
|
item: product,
|
|
32245
32403
|
options: image.value
|
|
32246
32404
|
}, null, 8, ["item", "options"])
|
|
@@ -32404,7 +32562,7 @@ and ensure you are accounting for this risk.
|
|
|
32404
32562
|
return (_ctx, _cache) => {
|
|
32405
32563
|
return openBlock(), createElementBlock("section", _hoisted_1$3, [
|
|
32406
32564
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
32407
|
-
return openBlock(), createBlock(_sfc_main$
|
|
32565
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
32408
32566
|
class: "lupa-chat-product-card",
|
|
32409
32567
|
key: getProductKeyAction(index, product),
|
|
32410
32568
|
product,
|
|
@@ -32597,7 +32755,7 @@ and ensure you are accounting for this risk.
|
|
|
32597
32755
|
key: 0,
|
|
32598
32756
|
class: "lupasearch-chat-content"
|
|
32599
32757
|
};
|
|
32600
|
-
const _sfc_main$
|
|
32758
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
32601
32759
|
__name: "ChatContainer",
|
|
32602
32760
|
props: {
|
|
32603
32761
|
options: {}
|
|
@@ -38615,7 +38773,7 @@ and ensure you are accounting for this risk.
|
|
|
38615
38773
|
};
|
|
38616
38774
|
__expose({ fetch: fetch2 });
|
|
38617
38775
|
return (_ctx, _cache) => {
|
|
38618
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
38776
|
+
return openBlock(), createBlock(unref(_sfc_main$_), {
|
|
38619
38777
|
options: fullSearchBoxOptions.value,
|
|
38620
38778
|
ref_key: "searchBox",
|
|
38621
38779
|
ref: searchBox2
|
|
@@ -39170,7 +39328,7 @@ and ensure you are accounting for this risk.
|
|
|
39170
39328
|
const instance = createVue(
|
|
39171
39329
|
options.displayOptions.containerSelector,
|
|
39172
39330
|
mountOptions == null ? void 0 : mountOptions.mountingBehavior,
|
|
39173
|
-
_sfc_main$
|
|
39331
|
+
_sfc_main$1u,
|
|
39174
39332
|
{
|
|
39175
39333
|
options
|
|
39176
39334
|
}
|