@getlupa/client 1.14.4 → 1.14.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/lupaChatStyle.css +1 -1
- package/dist/lupaSearch.iife.js +684 -537
- package/dist/lupaSearch.js +684 -537
- package/dist/lupaSearch.mjs +684 -537
- package/dist/lupaSearch.umd.js +684 -537
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/lupaSearch.umd.js
CHANGED
|
@@ -6318,6 +6318,44 @@ var __async = (__this, __arguments, generator) => {
|
|
|
6318
6318
|
return fn(event, ...args);
|
|
6319
6319
|
};
|
|
6320
6320
|
};
|
|
6321
|
+
const vShow = {
|
|
6322
|
+
beforeMount(el, { value }, { transition }) {
|
|
6323
|
+
el._vod = el.style.display === "none" ? "" : el.style.display;
|
|
6324
|
+
if (transition && value) {
|
|
6325
|
+
transition.beforeEnter(el);
|
|
6326
|
+
} else {
|
|
6327
|
+
setDisplay(el, value);
|
|
6328
|
+
}
|
|
6329
|
+
},
|
|
6330
|
+
mounted(el, { value }, { transition }) {
|
|
6331
|
+
if (transition && value) {
|
|
6332
|
+
transition.enter(el);
|
|
6333
|
+
}
|
|
6334
|
+
},
|
|
6335
|
+
updated(el, { value, oldValue }, { transition }) {
|
|
6336
|
+
if (!value === !oldValue)
|
|
6337
|
+
return;
|
|
6338
|
+
if (transition) {
|
|
6339
|
+
if (value) {
|
|
6340
|
+
transition.beforeEnter(el);
|
|
6341
|
+
setDisplay(el, true);
|
|
6342
|
+
transition.enter(el);
|
|
6343
|
+
} else {
|
|
6344
|
+
transition.leave(el, () => {
|
|
6345
|
+
setDisplay(el, false);
|
|
6346
|
+
});
|
|
6347
|
+
}
|
|
6348
|
+
} else {
|
|
6349
|
+
setDisplay(el, value);
|
|
6350
|
+
}
|
|
6351
|
+
},
|
|
6352
|
+
beforeUnmount(el, { value }) {
|
|
6353
|
+
setDisplay(el, value);
|
|
6354
|
+
}
|
|
6355
|
+
};
|
|
6356
|
+
function setDisplay(el, value) {
|
|
6357
|
+
el.style.display = value ? el._vod : "none";
|
|
6358
|
+
}
|
|
6321
6359
|
const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
|
|
6322
6360
|
let renderer;
|
|
6323
6361
|
function ensureRenderer() {
|
|
@@ -8560,20 +8598,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8560
8598
|
resetHighlightIndex
|
|
8561
8599
|
};
|
|
8562
8600
|
});
|
|
8563
|
-
const _hoisted_1$
|
|
8601
|
+
const _hoisted_1$1e = { id: "lupa-search-box-input-container" };
|
|
8564
8602
|
const _hoisted_2$S = { class: "lupa-input-clear" };
|
|
8565
8603
|
const _hoisted_3$B = { id: "lupa-search-box-input" };
|
|
8566
8604
|
const _hoisted_4$s = ["value"];
|
|
8567
|
-
const _hoisted_5$
|
|
8568
|
-
const _hoisted_6$
|
|
8605
|
+
const _hoisted_5$i = ["aria-label", "placeholder"];
|
|
8606
|
+
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
8569
8607
|
const _hoisted_7$7 = [
|
|
8570
|
-
_hoisted_6$
|
|
8608
|
+
_hoisted_6$9
|
|
8571
8609
|
];
|
|
8572
8610
|
const _hoisted_8$3 = {
|
|
8573
8611
|
key: 0,
|
|
8574
8612
|
class: "lupa-close-label"
|
|
8575
8613
|
};
|
|
8576
|
-
const _sfc_main$
|
|
8614
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
8577
8615
|
__name: "SearchBoxInput",
|
|
8578
8616
|
props: {
|
|
8579
8617
|
options: {},
|
|
@@ -8657,7 +8695,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8657
8695
|
};
|
|
8658
8696
|
__expose({ focus });
|
|
8659
8697
|
return (_ctx, _cache) => {
|
|
8660
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8698
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1e, [
|
|
8661
8699
|
createBaseVNode("div", _hoisted_2$S, [
|
|
8662
8700
|
createBaseVNode("div", {
|
|
8663
8701
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
@@ -8684,7 +8722,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8684
8722
|
placeholder: labels.value.placeholder,
|
|
8685
8723
|
onInput: handleInput,
|
|
8686
8724
|
onFocus: handleFocus
|
|
8687
|
-
}), null, 16, _hoisted_5$
|
|
8725
|
+
}), null, 16, _hoisted_5$i), [
|
|
8688
8726
|
[vModelText, inputValue.value]
|
|
8689
8727
|
]),
|
|
8690
8728
|
_ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
|
|
@@ -8703,7 +8741,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8703
8741
|
};
|
|
8704
8742
|
}
|
|
8705
8743
|
});
|
|
8706
|
-
const _sfc_main$
|
|
8744
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
8707
8745
|
__name: "SearchBoxMoreResults",
|
|
8708
8746
|
props: {
|
|
8709
8747
|
labels: {},
|
|
@@ -8735,9 +8773,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8735
8773
|
};
|
|
8736
8774
|
}
|
|
8737
8775
|
});
|
|
8738
|
-
const _hoisted_1$
|
|
8776
|
+
const _hoisted_1$1d = { class: "lupa-search-box-history-item" };
|
|
8739
8777
|
const _hoisted_2$R = { class: "lupa-search-box-history-item-content" };
|
|
8740
|
-
const _sfc_main$
|
|
8778
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
8741
8779
|
__name: "SearchBoxHistoryItem",
|
|
8742
8780
|
props: {
|
|
8743
8781
|
item: {},
|
|
@@ -8753,7 +8791,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8753
8791
|
emit2("click", { query: props.item });
|
|
8754
8792
|
};
|
|
8755
8793
|
return (_ctx, _cache) => {
|
|
8756
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8794
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1d, [
|
|
8757
8795
|
createBaseVNode("div", _hoisted_2$R, [
|
|
8758
8796
|
createBaseVNode("div", {
|
|
8759
8797
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
@@ -8768,11 +8806,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8768
8806
|
};
|
|
8769
8807
|
}
|
|
8770
8808
|
});
|
|
8771
|
-
const _hoisted_1$
|
|
8809
|
+
const _hoisted_1$1c = {
|
|
8772
8810
|
key: 0,
|
|
8773
8811
|
class: "lupa-search-box-history-panel"
|
|
8774
8812
|
};
|
|
8775
|
-
const _sfc_main$
|
|
8813
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
8776
8814
|
__name: "SearchBoxHistoryPanel",
|
|
8777
8815
|
props: {
|
|
8778
8816
|
options: {}
|
|
@@ -8813,9 +8851,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8813
8851
|
}
|
|
8814
8852
|
};
|
|
8815
8853
|
return (_ctx, _cache) => {
|
|
8816
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
8854
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
8817
8855
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
8818
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8856
|
+
return openBlock(), createBlock(_sfc_main$1n, {
|
|
8819
8857
|
key: item,
|
|
8820
8858
|
item,
|
|
8821
8859
|
highlighted: index === highlightIndex.value,
|
|
@@ -8831,15 +8869,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8831
8869
|
};
|
|
8832
8870
|
}
|
|
8833
8871
|
});
|
|
8834
|
-
const _hoisted_1$
|
|
8835
|
-
const _sfc_main$
|
|
8872
|
+
const _hoisted_1$1b = { class: "lupa-search-box-no-results" };
|
|
8873
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
8836
8874
|
__name: "SearchBoxNoResults",
|
|
8837
8875
|
props: {
|
|
8838
8876
|
labels: {}
|
|
8839
8877
|
},
|
|
8840
8878
|
setup(__props) {
|
|
8841
8879
|
return (_ctx, _cache) => {
|
|
8842
|
-
return openBlock(), createElementBlock("p", _hoisted_1$
|
|
8880
|
+
return openBlock(), createElementBlock("p", _hoisted_1$1b, toDisplayString(_ctx.labels.noResults), 1);
|
|
8843
8881
|
};
|
|
8844
8882
|
}
|
|
8845
8883
|
});
|
|
@@ -8871,7 +8909,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8871
8909
|
}
|
|
8872
8910
|
return gridTemplate.join(" ");
|
|
8873
8911
|
};
|
|
8874
|
-
const _hoisted_1$
|
|
8912
|
+
const _hoisted_1$1a = ["innerHTML"];
|
|
8875
8913
|
const _hoisted_2$Q = {
|
|
8876
8914
|
key: 1,
|
|
8877
8915
|
"data-cy": "lupa-suggestion-value",
|
|
@@ -8886,11 +8924,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8886
8924
|
class: "lupa-suggestion-facet-label",
|
|
8887
8925
|
"data-cy": "lupa-suggestion-facet-label"
|
|
8888
8926
|
};
|
|
8889
|
-
const _hoisted_5$
|
|
8927
|
+
const _hoisted_5$h = {
|
|
8890
8928
|
class: "lupa-suggestion-facet-value",
|
|
8891
8929
|
"data-cy": "lupa-suggestion-facet-value"
|
|
8892
8930
|
};
|
|
8893
|
-
const _sfc_main$
|
|
8931
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
8894
8932
|
__name: "SearchBoxSuggestion",
|
|
8895
8933
|
props: {
|
|
8896
8934
|
suggestion: {},
|
|
@@ -8926,20 +8964,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8926
8964
|
class: "lupa-suggestion-value",
|
|
8927
8965
|
"data-cy": "lupa-suggestion-value",
|
|
8928
8966
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
8929
|
-
}, null, 8, _hoisted_1$
|
|
8967
|
+
}, null, 8, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8930
8968
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
8931
8969
|
createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
|
|
8932
|
-
createBaseVNode("span", _hoisted_5$
|
|
8970
|
+
createBaseVNode("span", _hoisted_5$h, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8933
8971
|
])) : createCommentVNode("", true)
|
|
8934
8972
|
]);
|
|
8935
8973
|
};
|
|
8936
8974
|
}
|
|
8937
8975
|
});
|
|
8938
|
-
const _hoisted_1$
|
|
8976
|
+
const _hoisted_1$19 = {
|
|
8939
8977
|
id: "lupa-search-box-suggestions",
|
|
8940
8978
|
"data-cy": "lupa-search-box-suggestions"
|
|
8941
8979
|
};
|
|
8942
|
-
const _sfc_main$
|
|
8980
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
8943
8981
|
__name: "SearchBoxSuggestions",
|
|
8944
8982
|
props: {
|
|
8945
8983
|
items: {},
|
|
@@ -8999,9 +9037,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8999
9037
|
});
|
|
9000
9038
|
});
|
|
9001
9039
|
return (_ctx, _cache) => {
|
|
9002
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9040
|
+
return openBlock(), createElementBlock("div", _hoisted_1$19, [
|
|
9003
9041
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
9004
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9042
|
+
return openBlock(), createBlock(_sfc_main$1k, {
|
|
9005
9043
|
key: getSuggestionKey(item),
|
|
9006
9044
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
9007
9045
|
suggestion: item,
|
|
@@ -9029,7 +9067,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9029
9067
|
}, timeout);
|
|
9030
9068
|
};
|
|
9031
9069
|
};
|
|
9032
|
-
const _sfc_main$
|
|
9070
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
9033
9071
|
__name: "SearchBoxSuggestionsWrapper",
|
|
9034
9072
|
props: {
|
|
9035
9073
|
panel: {},
|
|
@@ -9071,7 +9109,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9071
9109
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
9072
9110
|
watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
9073
9111
|
return (_ctx, _cache) => {
|
|
9074
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9112
|
+
return openBlock(), createBlock(_sfc_main$1j, {
|
|
9075
9113
|
items: searchResult.value,
|
|
9076
9114
|
highlight: _ctx.panel.highlight,
|
|
9077
9115
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -18145,9 +18183,9 @@ and ensure you are accounting for this risk.
|
|
|
18145
18183
|
targetImage.src = placeholder;
|
|
18146
18184
|
}
|
|
18147
18185
|
};
|
|
18148
|
-
const _hoisted_1$
|
|
18186
|
+
const _hoisted_1$18 = ["src"];
|
|
18149
18187
|
const _hoisted_2$P = ["src"];
|
|
18150
|
-
const _sfc_main$
|
|
18188
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
18151
18189
|
__name: "ProductImage",
|
|
18152
18190
|
props: {
|
|
18153
18191
|
item: {},
|
|
@@ -18289,7 +18327,7 @@ and ensure you are accounting for this risk.
|
|
|
18289
18327
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
18290
18328
|
onError: replaceWithPlaceholder,
|
|
18291
18329
|
key: finalUrl.value
|
|
18292
|
-
}), null, 16, _hoisted_1$
|
|
18330
|
+
}), null, 16, _hoisted_1$18))
|
|
18293
18331
|
]),
|
|
18294
18332
|
_: 1
|
|
18295
18333
|
})) : (openBlock(), createElementBlock("img", mergeProps({
|
|
@@ -18302,7 +18340,7 @@ and ensure you are accounting for this risk.
|
|
|
18302
18340
|
};
|
|
18303
18341
|
}
|
|
18304
18342
|
});
|
|
18305
|
-
const _sfc_main$
|
|
18343
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
18306
18344
|
__name: "SearchBoxProductImage",
|
|
18307
18345
|
props: {
|
|
18308
18346
|
item: {},
|
|
@@ -18310,7 +18348,7 @@ and ensure you are accounting for this risk.
|
|
|
18310
18348
|
},
|
|
18311
18349
|
setup(__props) {
|
|
18312
18350
|
return (_ctx, _cache) => {
|
|
18313
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18351
|
+
return openBlock(), createBlock(_sfc_main$1h, {
|
|
18314
18352
|
item: _ctx.item,
|
|
18315
18353
|
options: _ctx.options,
|
|
18316
18354
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -18319,12 +18357,12 @@ and ensure you are accounting for this risk.
|
|
|
18319
18357
|
};
|
|
18320
18358
|
}
|
|
18321
18359
|
});
|
|
18322
|
-
const _hoisted_1$
|
|
18360
|
+
const _hoisted_1$17 = ["innerHTML"];
|
|
18323
18361
|
const _hoisted_2$O = {
|
|
18324
18362
|
key: 1,
|
|
18325
18363
|
class: "lupa-search-box-product-title"
|
|
18326
18364
|
};
|
|
18327
|
-
const _sfc_main$
|
|
18365
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
18328
18366
|
__name: "SearchBoxProductTitle",
|
|
18329
18367
|
props: {
|
|
18330
18368
|
item: {},
|
|
@@ -18347,18 +18385,18 @@ and ensure you are accounting for this risk.
|
|
|
18347
18385
|
key: 0,
|
|
18348
18386
|
class: "lupa-search-box-product-title",
|
|
18349
18387
|
innerHTML: sanitizedTitle.value
|
|
18350
|
-
}, null, 8, _hoisted_1$
|
|
18388
|
+
}, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("div", _hoisted_2$O, [
|
|
18351
18389
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
18352
18390
|
]));
|
|
18353
18391
|
};
|
|
18354
18392
|
}
|
|
18355
18393
|
});
|
|
18356
|
-
const _hoisted_1$
|
|
18394
|
+
const _hoisted_1$16 = ["innerHTML"];
|
|
18357
18395
|
const _hoisted_2$N = {
|
|
18358
18396
|
key: 1,
|
|
18359
18397
|
class: "lupa-search-box-product-description"
|
|
18360
18398
|
};
|
|
18361
|
-
const _sfc_main$
|
|
18399
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
18362
18400
|
__name: "SearchBoxProductDescription",
|
|
18363
18401
|
props: {
|
|
18364
18402
|
item: {},
|
|
@@ -18381,12 +18419,12 @@ and ensure you are accounting for this risk.
|
|
|
18381
18419
|
key: 0,
|
|
18382
18420
|
class: "lupa-search-box-product-description",
|
|
18383
18421
|
innerHTML: sanitizedDescription.value
|
|
18384
|
-
}, null, 8, _hoisted_1$
|
|
18422
|
+
}, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(description.value), 1));
|
|
18385
18423
|
};
|
|
18386
18424
|
}
|
|
18387
18425
|
});
|
|
18388
|
-
const _hoisted_1$
|
|
18389
|
-
const _sfc_main$
|
|
18426
|
+
const _hoisted_1$15 = { class: "lupa-search-box-product-price" };
|
|
18427
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
18390
18428
|
__name: "SearchBoxProductPrice",
|
|
18391
18429
|
props: {
|
|
18392
18430
|
item: {},
|
|
@@ -18404,13 +18442,13 @@ and ensure you are accounting for this risk.
|
|
|
18404
18442
|
);
|
|
18405
18443
|
});
|
|
18406
18444
|
return (_ctx, _cache) => {
|
|
18407
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18445
|
+
return openBlock(), createElementBlock("div", _hoisted_1$15, [
|
|
18408
18446
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
18409
18447
|
]);
|
|
18410
18448
|
};
|
|
18411
18449
|
}
|
|
18412
18450
|
});
|
|
18413
|
-
const _sfc_main$
|
|
18451
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
18414
18452
|
__name: "SearchBoxProductRegularPrice",
|
|
18415
18453
|
props: {
|
|
18416
18454
|
item: {},
|
|
@@ -18437,12 +18475,12 @@ and ensure you are accounting for this risk.
|
|
|
18437
18475
|
};
|
|
18438
18476
|
}
|
|
18439
18477
|
});
|
|
18440
|
-
const _hoisted_1$
|
|
18478
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
18441
18479
|
const _hoisted_2$M = { key: 0 };
|
|
18442
18480
|
const _hoisted_3$z = { key: 1 };
|
|
18443
18481
|
const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
|
|
18444
|
-
const _hoisted_5$
|
|
18445
|
-
const _sfc_main$
|
|
18482
|
+
const _hoisted_5$g = { class: "lupa-search-box-custom-text" };
|
|
18483
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
18446
18484
|
__name: "SearchBoxProductCustom",
|
|
18447
18485
|
props: {
|
|
18448
18486
|
item: {},
|
|
@@ -18468,20 +18506,20 @@ and ensure you are accounting for this risk.
|
|
|
18468
18506
|
key: 0,
|
|
18469
18507
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
18470
18508
|
innerHTML: text.value
|
|
18471
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
18509
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$14)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
18472
18510
|
key: 1,
|
|
18473
18511
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
18474
18512
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
18475
18513
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
18476
18514
|
createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
|
|
18477
|
-
createBaseVNode("div", _hoisted_5$
|
|
18515
|
+
createBaseVNode("div", _hoisted_5$g, toDisplayString(text.value), 1)
|
|
18478
18516
|
]))
|
|
18479
18517
|
], 16));
|
|
18480
18518
|
};
|
|
18481
18519
|
}
|
|
18482
18520
|
});
|
|
18483
|
-
const _hoisted_1$
|
|
18484
|
-
const _sfc_main$
|
|
18521
|
+
const _hoisted_1$13 = ["innerHTML"];
|
|
18522
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
18485
18523
|
__name: "SearchBoxProductCustomHtml",
|
|
18486
18524
|
props: {
|
|
18487
18525
|
item: {},
|
|
@@ -18506,7 +18544,7 @@ and ensure you are accounting for this risk.
|
|
|
18506
18544
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
18507
18545
|
class: className.value,
|
|
18508
18546
|
innerHTML: text.value
|
|
18509
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
18547
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$13);
|
|
18510
18548
|
};
|
|
18511
18549
|
}
|
|
18512
18550
|
});
|
|
@@ -18562,6 +18600,7 @@ and ensure you are accounting for this risk.
|
|
|
18562
18600
|
const layout = ref(ResultsLayoutEnum.GRID);
|
|
18563
18601
|
const loading = ref(false);
|
|
18564
18602
|
const isMobileSidebarVisible = ref(false);
|
|
18603
|
+
const relatedCategoryChildren = ref([]);
|
|
18565
18604
|
const optionsStore = useOptionsStore();
|
|
18566
18605
|
const paramsStore = useParamsStore();
|
|
18567
18606
|
const screenStore = useScreenStore();
|
|
@@ -18703,6 +18742,9 @@ and ensure you are accounting for this risk.
|
|
|
18703
18742
|
const hasExactMatch = items.some((item) => getNormalizedString(item.title) === searchInput);
|
|
18704
18743
|
return hasExactMatch ? items.filter((item) => getNormalizedString(item.title) === searchInput) : items;
|
|
18705
18744
|
};
|
|
18745
|
+
const setRelatedCategoryChildren = (children) => {
|
|
18746
|
+
relatedCategoryChildren.value = [...children];
|
|
18747
|
+
};
|
|
18706
18748
|
return {
|
|
18707
18749
|
isMobileSidebarVisible,
|
|
18708
18750
|
searchResult,
|
|
@@ -18723,6 +18765,7 @@ and ensure you are accounting for this risk.
|
|
|
18723
18765
|
itemRange,
|
|
18724
18766
|
isPageEmpty,
|
|
18725
18767
|
hideFiltersOnExactMatchForKeys,
|
|
18768
|
+
relatedCategoryChildren,
|
|
18726
18769
|
setSidebarState,
|
|
18727
18770
|
queryFacet,
|
|
18728
18771
|
add: add2,
|
|
@@ -18731,13 +18774,14 @@ and ensure you are accounting for this risk.
|
|
|
18731
18774
|
setLayout,
|
|
18732
18775
|
setLoading,
|
|
18733
18776
|
clearSearchResult,
|
|
18734
|
-
filterVisibleFilterValues
|
|
18777
|
+
filterVisibleFilterValues,
|
|
18778
|
+
setRelatedCategoryChildren
|
|
18735
18779
|
};
|
|
18736
18780
|
});
|
|
18737
|
-
const _hoisted_1$
|
|
18781
|
+
const _hoisted_1$12 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
18738
18782
|
const _hoisted_2$L = { class: "lupa-search-box-product-addtocart" };
|
|
18739
18783
|
const _hoisted_3$y = ["onClick", "disabled"];
|
|
18740
|
-
const _sfc_main$
|
|
18784
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
18741
18785
|
__name: "SearchBoxProductAddToCart",
|
|
18742
18786
|
props: {
|
|
18743
18787
|
item: {},
|
|
@@ -18770,7 +18814,7 @@ and ensure you are accounting for this risk.
|
|
|
18770
18814
|
loading.value = false;
|
|
18771
18815
|
});
|
|
18772
18816
|
return (_ctx, _cache) => {
|
|
18773
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18817
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
18774
18818
|
createBaseVNode("div", _hoisted_2$L, [
|
|
18775
18819
|
createBaseVNode("button", {
|
|
18776
18820
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
@@ -18784,23 +18828,23 @@ and ensure you are accounting for this risk.
|
|
|
18784
18828
|
};
|
|
18785
18829
|
}
|
|
18786
18830
|
});
|
|
18787
|
-
const _hoisted_1$
|
|
18831
|
+
const _hoisted_1$11 = {
|
|
18788
18832
|
key: 1,
|
|
18789
18833
|
class: "lupa-search-box-element-badge-wrapper"
|
|
18790
18834
|
};
|
|
18791
18835
|
const __default__$4 = {
|
|
18792
18836
|
components: {
|
|
18793
|
-
SearchBoxProductImage: _sfc_main$
|
|
18794
|
-
SearchBoxProductTitle: _sfc_main$
|
|
18795
|
-
SearchBoxProductDescription: _sfc_main$
|
|
18796
|
-
SearchBoxProductPrice: _sfc_main$
|
|
18797
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
18798
|
-
SearchBoxProductCustom: _sfc_main$
|
|
18799
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
18800
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
18837
|
+
SearchBoxProductImage: _sfc_main$1g,
|
|
18838
|
+
SearchBoxProductTitle: _sfc_main$1f,
|
|
18839
|
+
SearchBoxProductDescription: _sfc_main$1e,
|
|
18840
|
+
SearchBoxProductPrice: _sfc_main$1d,
|
|
18841
|
+
SearchBoxProductRegularPrice: _sfc_main$1c,
|
|
18842
|
+
SearchBoxProductCustom: _sfc_main$1b,
|
|
18843
|
+
SearchBoxProductCustomHtml: _sfc_main$1a,
|
|
18844
|
+
SearchBoxProductAddToCart: _sfc_main$19
|
|
18801
18845
|
}
|
|
18802
18846
|
};
|
|
18803
|
-
const _sfc_main$
|
|
18847
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
18804
18848
|
__name: "SearchBoxProductElement",
|
|
18805
18849
|
props: {
|
|
18806
18850
|
item: {},
|
|
@@ -18863,7 +18907,7 @@ and ensure you are accounting for this risk.
|
|
|
18863
18907
|
class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
|
|
18864
18908
|
inStock: _ctx.isInStock
|
|
18865
18909
|
}, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
|
|
18866
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
18910
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
18867
18911
|
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
18868
18912
|
key: 0,
|
|
18869
18913
|
item: enhancedItem.value,
|
|
@@ -18877,14 +18921,14 @@ and ensure you are accounting for this risk.
|
|
|
18877
18921
|
};
|
|
18878
18922
|
}
|
|
18879
18923
|
}));
|
|
18880
|
-
const _hoisted_1
|
|
18924
|
+
const _hoisted_1$10 = { class: "lupa-badge-title" };
|
|
18881
18925
|
const _hoisted_2$K = ["src"];
|
|
18882
18926
|
const _hoisted_3$x = { key: 1 };
|
|
18883
18927
|
const _hoisted_4$p = {
|
|
18884
18928
|
key: 0,
|
|
18885
18929
|
class: "lupa-badge-full-text"
|
|
18886
18930
|
};
|
|
18887
|
-
const _sfc_main$
|
|
18931
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
18888
18932
|
__name: "SearchResultGeneratedBadge",
|
|
18889
18933
|
props: {
|
|
18890
18934
|
options: {},
|
|
@@ -18917,7 +18961,7 @@ and ensure you are accounting for this risk.
|
|
|
18917
18961
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
18918
18962
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
18919
18963
|
}, [
|
|
18920
|
-
createBaseVNode("span", _hoisted_1
|
|
18964
|
+
createBaseVNode("span", _hoisted_1$10, [
|
|
18921
18965
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
18922
18966
|
key: 0,
|
|
18923
18967
|
src: image.value
|
|
@@ -18929,8 +18973,8 @@ and ensure you are accounting for this risk.
|
|
|
18929
18973
|
};
|
|
18930
18974
|
}
|
|
18931
18975
|
});
|
|
18932
|
-
const _hoisted_1
|
|
18933
|
-
const _sfc_main$
|
|
18976
|
+
const _hoisted_1$$ = { class: "lupa-generated-badges" };
|
|
18977
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
18934
18978
|
__name: "SearchResultGeneratedBadges",
|
|
18935
18979
|
props: {
|
|
18936
18980
|
options: {}
|
|
@@ -18956,9 +19000,9 @@ and ensure you are accounting for this risk.
|
|
|
18956
19000
|
})).filter((b) => Boolean(b.id));
|
|
18957
19001
|
});
|
|
18958
19002
|
return (_ctx, _cache) => {
|
|
18959
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
19003
|
+
return openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
18960
19004
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
18961
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19005
|
+
return openBlock(), createBlock(_sfc_main$17, {
|
|
18962
19006
|
key: badge.id,
|
|
18963
19007
|
badge,
|
|
18964
19008
|
options: _ctx.options
|
|
@@ -18968,8 +19012,8 @@ and ensure you are accounting for this risk.
|
|
|
18968
19012
|
};
|
|
18969
19013
|
}
|
|
18970
19014
|
});
|
|
18971
|
-
const _hoisted_1$
|
|
18972
|
-
const _sfc_main$
|
|
19015
|
+
const _hoisted_1$_ = ["innerHTML"];
|
|
19016
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
18973
19017
|
__name: "CustomBadge",
|
|
18974
19018
|
props: {
|
|
18975
19019
|
badge: {}
|
|
@@ -18990,12 +19034,12 @@ and ensure you are accounting for this risk.
|
|
|
18990
19034
|
return openBlock(), createElementBlock("div", {
|
|
18991
19035
|
class: normalizeClass(className.value),
|
|
18992
19036
|
innerHTML: text.value
|
|
18993
|
-
}, null, 10, _hoisted_1$
|
|
19037
|
+
}, null, 10, _hoisted_1$_);
|
|
18994
19038
|
};
|
|
18995
19039
|
}
|
|
18996
19040
|
});
|
|
18997
|
-
const _hoisted_1$
|
|
18998
|
-
const _sfc_main$
|
|
19041
|
+
const _hoisted_1$Z = { class: "lupa-text-badges" };
|
|
19042
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
18999
19043
|
__name: "TextBadge",
|
|
19000
19044
|
props: {
|
|
19001
19045
|
badge: {}
|
|
@@ -19010,7 +19054,7 @@ and ensure you are accounting for this risk.
|
|
|
19010
19054
|
return badges.value.slice(0, props.badge.maxItems);
|
|
19011
19055
|
});
|
|
19012
19056
|
return (_ctx, _cache) => {
|
|
19013
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19057
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
19014
19058
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
19015
19059
|
return openBlock(), createElementBlock("div", {
|
|
19016
19060
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -19021,9 +19065,9 @@ and ensure you are accounting for this risk.
|
|
|
19021
19065
|
};
|
|
19022
19066
|
}
|
|
19023
19067
|
});
|
|
19024
|
-
const _hoisted_1$
|
|
19068
|
+
const _hoisted_1$Y = { class: "lupa-image-badges" };
|
|
19025
19069
|
const _hoisted_2$J = ["src"];
|
|
19026
|
-
const _sfc_main$
|
|
19070
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
19027
19071
|
__name: "ImageBadge",
|
|
19028
19072
|
props: {
|
|
19029
19073
|
badge: {}
|
|
@@ -19043,7 +19087,7 @@ and ensure you are accounting for this risk.
|
|
|
19043
19087
|
return `${props.badge.rootImageUrl}${src}`;
|
|
19044
19088
|
};
|
|
19045
19089
|
return (_ctx, _cache) => {
|
|
19046
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19090
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Y, [
|
|
19047
19091
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
19048
19092
|
return openBlock(), createElementBlock("div", {
|
|
19049
19093
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -19058,15 +19102,15 @@ and ensure you are accounting for this risk.
|
|
|
19058
19102
|
};
|
|
19059
19103
|
}
|
|
19060
19104
|
});
|
|
19061
|
-
const _hoisted_1$
|
|
19105
|
+
const _hoisted_1$X = { id: "lupa-search-results-badges" };
|
|
19062
19106
|
const __default__$3 = {
|
|
19063
19107
|
components: {
|
|
19064
|
-
CustomBadge: _sfc_main$
|
|
19065
|
-
TextBadge: _sfc_main$
|
|
19066
|
-
ImageBadge: _sfc_main$
|
|
19108
|
+
CustomBadge: _sfc_main$15,
|
|
19109
|
+
TextBadge: _sfc_main$14,
|
|
19110
|
+
ImageBadge: _sfc_main$13
|
|
19067
19111
|
}
|
|
19068
19112
|
};
|
|
19069
|
-
const _sfc_main$
|
|
19113
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
19070
19114
|
__name: "SearchResultsBadgeWrapper",
|
|
19071
19115
|
props: {
|
|
19072
19116
|
position: {},
|
|
@@ -19127,7 +19171,7 @@ and ensure you are accounting for this risk.
|
|
|
19127
19171
|
}
|
|
19128
19172
|
};
|
|
19129
19173
|
return (_ctx, _cache) => {
|
|
19130
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19174
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
19131
19175
|
createBaseVNode("div", {
|
|
19132
19176
|
id: "lupa-badges",
|
|
19133
19177
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -19138,7 +19182,7 @@ and ensure you are accounting for this risk.
|
|
|
19138
19182
|
badge
|
|
19139
19183
|
}, null, 8, ["badge"]);
|
|
19140
19184
|
}), 128)),
|
|
19141
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
19185
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$16, {
|
|
19142
19186
|
key: 0,
|
|
19143
19187
|
options: _ctx.options
|
|
19144
19188
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -19147,13 +19191,13 @@ and ensure you are accounting for this risk.
|
|
|
19147
19191
|
};
|
|
19148
19192
|
}
|
|
19149
19193
|
}));
|
|
19150
|
-
const _hoisted_1$
|
|
19194
|
+
const _hoisted_1$W = ["href"];
|
|
19151
19195
|
const _hoisted_2$I = { class: "lupa-search-box-product-details-section" };
|
|
19152
19196
|
const _hoisted_3$w = {
|
|
19153
19197
|
key: 0,
|
|
19154
19198
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
19155
19199
|
};
|
|
19156
|
-
const _sfc_main
|
|
19200
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
19157
19201
|
__name: "SearchBoxProduct",
|
|
19158
19202
|
props: {
|
|
19159
19203
|
item: {},
|
|
@@ -19239,7 +19283,7 @@ and ensure you are accounting for this risk.
|
|
|
19239
19283
|
style: normalizeStyle(imageStyleOverride.value)
|
|
19240
19284
|
}, [
|
|
19241
19285
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
19242
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19286
|
+
return openBlock(), createBlock(_sfc_main$18, {
|
|
19243
19287
|
class: "lupa-search-box-product-element",
|
|
19244
19288
|
item: _ctx.item,
|
|
19245
19289
|
element,
|
|
@@ -19252,7 +19296,7 @@ and ensure you are accounting for this risk.
|
|
|
19252
19296
|
createBaseVNode("div", _hoisted_2$I, [
|
|
19253
19297
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
19254
19298
|
var _a;
|
|
19255
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19299
|
+
return openBlock(), createBlock(_sfc_main$18, {
|
|
19256
19300
|
key: element.key,
|
|
19257
19301
|
class: "lupa-search-box-product-element",
|
|
19258
19302
|
item: _ctx.item,
|
|
@@ -19263,7 +19307,7 @@ and ensure you are accounting for this risk.
|
|
|
19263
19307
|
badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
|
|
19264
19308
|
name: "badges",
|
|
19265
19309
|
fn: withCtx(() => [
|
|
19266
|
-
createVNode(_sfc_main$
|
|
19310
|
+
createVNode(_sfc_main$12, {
|
|
19267
19311
|
options: badgeOptions.value,
|
|
19268
19312
|
position: "card"
|
|
19269
19313
|
}, null, 8, ["options"])
|
|
@@ -19274,7 +19318,7 @@ and ensure you are accounting for this risk.
|
|
|
19274
19318
|
}), 128))
|
|
19275
19319
|
]),
|
|
19276
19320
|
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
|
|
19277
|
-
createVNode(_sfc_main$
|
|
19321
|
+
createVNode(_sfc_main$18, {
|
|
19278
19322
|
class: "lupa-search-box-product-element",
|
|
19279
19323
|
item: _ctx.item,
|
|
19280
19324
|
element: addToCartElement.value,
|
|
@@ -19283,7 +19327,7 @@ and ensure you are accounting for this risk.
|
|
|
19283
19327
|
isInStock: isInStock.value
|
|
19284
19328
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
19285
19329
|
])) : createCommentVNode("", true)
|
|
19286
|
-
], 16, _hoisted_1$
|
|
19330
|
+
], 16, _hoisted_1$W);
|
|
19287
19331
|
};
|
|
19288
19332
|
}
|
|
19289
19333
|
});
|
|
@@ -19344,8 +19388,8 @@ and ensure you are accounting for this risk.
|
|
|
19344
19388
|
};
|
|
19345
19389
|
return { trackSearch, trackResults, trackEvent };
|
|
19346
19390
|
});
|
|
19347
|
-
const _hoisted_1$
|
|
19348
|
-
const _sfc_main$
|
|
19391
|
+
const _hoisted_1$V = { id: "lupa-search-box-products" };
|
|
19392
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
19349
19393
|
__name: "SearchBoxProducts",
|
|
19350
19394
|
props: {
|
|
19351
19395
|
items: {},
|
|
@@ -19406,7 +19450,7 @@ and ensure you are accounting for this risk.
|
|
|
19406
19450
|
handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
|
|
19407
19451
|
};
|
|
19408
19452
|
return (_ctx, _cache) => {
|
|
19409
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19453
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
19410
19454
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
19411
19455
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
19412
19456
|
key: index,
|
|
@@ -19418,7 +19462,7 @@ and ensure you are accounting for this risk.
|
|
|
19418
19462
|
itemClicked: handleProductClick
|
|
19419
19463
|
});
|
|
19420
19464
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
19421
|
-
return openBlock(), createBlock(_sfc_main
|
|
19465
|
+
return openBlock(), createBlock(_sfc_main$11, {
|
|
19422
19466
|
key: index,
|
|
19423
19467
|
item,
|
|
19424
19468
|
panelOptions: _ctx.panelOptions,
|
|
@@ -19433,9 +19477,9 @@ and ensure you are accounting for this risk.
|
|
|
19433
19477
|
};
|
|
19434
19478
|
}
|
|
19435
19479
|
});
|
|
19436
|
-
const _hoisted_1$
|
|
19480
|
+
const _hoisted_1$U = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
19437
19481
|
const _hoisted_2$H = { key: 0 };
|
|
19438
|
-
const _sfc_main
|
|
19482
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
19439
19483
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
19440
19484
|
props: {
|
|
19441
19485
|
options: {},
|
|
@@ -19465,7 +19509,7 @@ and ensure you are accounting for this risk.
|
|
|
19465
19509
|
emit2("goToResults");
|
|
19466
19510
|
};
|
|
19467
19511
|
return (_ctx, _cache) => {
|
|
19468
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19512
|
+
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
19469
19513
|
createBaseVNode("button", {
|
|
19470
19514
|
class: "lupa-search-box-documents-go-to-results-button",
|
|
19471
19515
|
onClick: goToResults
|
|
@@ -19477,7 +19521,7 @@ and ensure you are accounting for this risk.
|
|
|
19477
19521
|
};
|
|
19478
19522
|
}
|
|
19479
19523
|
});
|
|
19480
|
-
const _sfc_main$
|
|
19524
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
19481
19525
|
__name: "SearchBoxProductsWrapper",
|
|
19482
19526
|
props: {
|
|
19483
19527
|
panel: {},
|
|
@@ -19534,7 +19578,7 @@ and ensure you are accounting for this risk.
|
|
|
19534
19578
|
watch(() => props.panel.limit, getItemsDebounced);
|
|
19535
19579
|
return (_ctx, _cache) => {
|
|
19536
19580
|
var _a, _b;
|
|
19537
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19581
|
+
return openBlock(), createBlock(_sfc_main$10, {
|
|
19538
19582
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19539
19583
|
panelOptions: _ctx.panel,
|
|
19540
19584
|
labels: _ctx.labels,
|
|
@@ -19544,7 +19588,7 @@ and ensure you are accounting for this risk.
|
|
|
19544
19588
|
default: withCtx(() => {
|
|
19545
19589
|
var _a2;
|
|
19546
19590
|
return [
|
|
19547
|
-
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main
|
|
19591
|
+
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$$, {
|
|
19548
19592
|
key: 0,
|
|
19549
19593
|
options: _ctx.searchBoxOptions,
|
|
19550
19594
|
panel: _ctx.panel,
|
|
@@ -19565,7 +19609,7 @@ and ensure you are accounting for this risk.
|
|
|
19565
19609
|
};
|
|
19566
19610
|
}
|
|
19567
19611
|
});
|
|
19568
|
-
const _sfc_main$
|
|
19612
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
19569
19613
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
19570
19614
|
props: {
|
|
19571
19615
|
panel: {},
|
|
@@ -19637,7 +19681,7 @@ and ensure you are accounting for this risk.
|
|
|
19637
19681
|
});
|
|
19638
19682
|
return (_ctx, _cache) => {
|
|
19639
19683
|
var _a, _b;
|
|
19640
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19684
|
+
return openBlock(), createBlock(_sfc_main$10, {
|
|
19641
19685
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19642
19686
|
panelOptions: documentPanelOptions.value,
|
|
19643
19687
|
labels: _ctx.labels,
|
|
@@ -19655,7 +19699,7 @@ and ensure you are accounting for this risk.
|
|
|
19655
19699
|
};
|
|
19656
19700
|
}
|
|
19657
19701
|
});
|
|
19658
|
-
const _hoisted_1$
|
|
19702
|
+
const _hoisted_1$T = {
|
|
19659
19703
|
key: 0,
|
|
19660
19704
|
id: "lupa-search-box-panel"
|
|
19661
19705
|
};
|
|
@@ -19668,18 +19712,18 @@ and ensure you are accounting for this risk.
|
|
|
19668
19712
|
key: 1,
|
|
19669
19713
|
class: "lupa-panel-title"
|
|
19670
19714
|
};
|
|
19671
|
-
const _hoisted_5$
|
|
19715
|
+
const _hoisted_5$f = {
|
|
19672
19716
|
key: 1,
|
|
19673
19717
|
id: "lupa-search-box-panel"
|
|
19674
19718
|
};
|
|
19675
19719
|
const __default__$2 = {
|
|
19676
19720
|
components: {
|
|
19677
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
19678
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
19679
|
-
SearchBoxRelatedSourceWrapper: _sfc_main$
|
|
19721
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1i,
|
|
19722
|
+
SearchBoxProductsWrapper: _sfc_main$_,
|
|
19723
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$Z
|
|
19680
19724
|
}
|
|
19681
19725
|
};
|
|
19682
|
-
const _sfc_main$
|
|
19726
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
19683
19727
|
__name: "SearchBoxMainPanel",
|
|
19684
19728
|
props: {
|
|
19685
19729
|
options: {},
|
|
@@ -19835,7 +19879,7 @@ and ensure you are accounting for this risk.
|
|
|
19835
19879
|
ref_key: "panelContainer",
|
|
19836
19880
|
ref: panelContainer
|
|
19837
19881
|
}, [
|
|
19838
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
19882
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
19839
19883
|
labels.value.closePanel ? (openBlock(), createElementBlock("a", {
|
|
19840
19884
|
key: 0,
|
|
19841
19885
|
class: "lupa-search-box-close-panel",
|
|
@@ -19883,18 +19927,18 @@ and ensure you are accounting for this risk.
|
|
|
19883
19927
|
], 14, _hoisted_2$G);
|
|
19884
19928
|
}), 128))
|
|
19885
19929
|
], 4),
|
|
19886
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
19930
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1l, {
|
|
19887
19931
|
key: 1,
|
|
19888
19932
|
labels: labels.value
|
|
19889
19933
|
}, null, 8, ["labels"])) : createCommentVNode("", true),
|
|
19890
|
-
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$
|
|
19934
|
+
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1o, {
|
|
19891
19935
|
key: 2,
|
|
19892
19936
|
labels: labels.value,
|
|
19893
19937
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
19894
19938
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
19895
19939
|
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
19896
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
19897
|
-
createVNode(_sfc_main$
|
|
19940
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$f, [
|
|
19941
|
+
createVNode(_sfc_main$1m, {
|
|
19898
19942
|
options: _ctx.options.history,
|
|
19899
19943
|
history: history.value,
|
|
19900
19944
|
onGoToResults: handleGoToResults,
|
|
@@ -19919,9 +19963,9 @@ and ensure you are accounting for this risk.
|
|
|
19919
19963
|
const elements = getElements(triggers);
|
|
19920
19964
|
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
19921
19965
|
};
|
|
19922
|
-
const _hoisted_1$
|
|
19966
|
+
const _hoisted_1$S = { id: "lupa-search-box" };
|
|
19923
19967
|
const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
|
|
19924
|
-
const _sfc_main$
|
|
19968
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
19925
19969
|
__name: "SearchBox",
|
|
19926
19970
|
props: {
|
|
19927
19971
|
options: {},
|
|
@@ -20181,9 +20225,9 @@ and ensure you are accounting for this risk.
|
|
|
20181
20225
|
};
|
|
20182
20226
|
return (_ctx, _cache) => {
|
|
20183
20227
|
var _a2;
|
|
20184
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20228
|
+
return openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
20185
20229
|
createBaseVNode("div", _hoisted_2$F, [
|
|
20186
|
-
createVNode(_sfc_main$
|
|
20230
|
+
createVNode(_sfc_main$1p, {
|
|
20187
20231
|
options: inputOptions.value,
|
|
20188
20232
|
suggestedValue: suggestedValue.value,
|
|
20189
20233
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -20196,7 +20240,7 @@ and ensure you are accounting for this risk.
|
|
|
20196
20240
|
onSearch: handleSearch,
|
|
20197
20241
|
onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
|
|
20198
20242
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
20199
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
20243
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$Y, {
|
|
20200
20244
|
key: 0,
|
|
20201
20245
|
options: panelOptions.value,
|
|
20202
20246
|
inputValue: inputValue.value,
|
|
@@ -20285,7 +20329,7 @@ and ensure you are accounting for this risk.
|
|
|
20285
20329
|
}
|
|
20286
20330
|
return searchParams;
|
|
20287
20331
|
};
|
|
20288
|
-
const _hoisted_1$
|
|
20332
|
+
const _hoisted_1$R = {
|
|
20289
20333
|
key: 0,
|
|
20290
20334
|
id: "lupa-search-results-did-you-mean"
|
|
20291
20335
|
};
|
|
@@ -20298,7 +20342,7 @@ and ensure you are accounting for this risk.
|
|
|
20298
20342
|
"data-cy": "did-you-mean-label"
|
|
20299
20343
|
};
|
|
20300
20344
|
const _hoisted_4$n = { key: 1 };
|
|
20301
|
-
const _sfc_main$
|
|
20345
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
20302
20346
|
__name: "SearchResultsDidYouMean",
|
|
20303
20347
|
props: {
|
|
20304
20348
|
labels: {}
|
|
@@ -20330,7 +20374,7 @@ and ensure you are accounting for this risk.
|
|
|
20330
20374
|
paramStore.goToResults({ searchText, facet });
|
|
20331
20375
|
};
|
|
20332
20376
|
return (_ctx, _cache) => {
|
|
20333
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20377
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
20334
20378
|
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
|
|
20335
20379
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
20336
20380
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
@@ -20356,12 +20400,12 @@ and ensure you are accounting for this risk.
|
|
|
20356
20400
|
};
|
|
20357
20401
|
}
|
|
20358
20402
|
});
|
|
20359
|
-
const _hoisted_1$
|
|
20403
|
+
const _hoisted_1$Q = {
|
|
20360
20404
|
key: 0,
|
|
20361
20405
|
class: "lupa-search-results-summary"
|
|
20362
20406
|
};
|
|
20363
20407
|
const _hoisted_2$D = ["innerHTML"];
|
|
20364
|
-
const _sfc_main$
|
|
20408
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
20365
20409
|
__name: "SearchResultsSummary",
|
|
20366
20410
|
props: {
|
|
20367
20411
|
label: {},
|
|
@@ -20376,7 +20420,7 @@ and ensure you are accounting for this risk.
|
|
|
20376
20420
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
20377
20421
|
});
|
|
20378
20422
|
return (_ctx, _cache) => {
|
|
20379
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20423
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
20380
20424
|
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$D),
|
|
20381
20425
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
20382
20426
|
key: 0,
|
|
@@ -20388,7 +20432,7 @@ and ensure you are accounting for this risk.
|
|
|
20388
20432
|
};
|
|
20389
20433
|
}
|
|
20390
20434
|
});
|
|
20391
|
-
const _hoisted_1$
|
|
20435
|
+
const _hoisted_1$P = {
|
|
20392
20436
|
key: 0,
|
|
20393
20437
|
class: "lupa-result-page-title",
|
|
20394
20438
|
"data-cy": "lupa-result-page-title"
|
|
@@ -20399,8 +20443,8 @@ and ensure you are accounting for this risk.
|
|
|
20399
20443
|
class: "lupa-results-total-count"
|
|
20400
20444
|
};
|
|
20401
20445
|
const _hoisted_4$m = { class: "lupa-results-total-count-number" };
|
|
20402
|
-
const _hoisted_5$
|
|
20403
|
-
const _sfc_main$
|
|
20446
|
+
const _hoisted_5$e = ["innerHTML"];
|
|
20447
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
20404
20448
|
__name: "SearchResultsTitle",
|
|
20405
20449
|
props: {
|
|
20406
20450
|
options: {},
|
|
@@ -20439,7 +20483,7 @@ and ensure you are accounting for this risk.
|
|
|
20439
20483
|
});
|
|
20440
20484
|
return (_ctx, _cache) => {
|
|
20441
20485
|
return openBlock(), createElementBlock("div", null, [
|
|
20442
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
20486
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$P, [
|
|
20443
20487
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
20444
20488
|
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
20445
20489
|
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, [
|
|
@@ -20448,7 +20492,7 @@ and ensure you are accounting for this risk.
|
|
|
20448
20492
|
createTextVNode(")")
|
|
20449
20493
|
])) : createCommentVNode("", true)
|
|
20450
20494
|
])) : createCommentVNode("", true),
|
|
20451
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
20495
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$V, {
|
|
20452
20496
|
key: 1,
|
|
20453
20497
|
label: summaryLabel.value
|
|
20454
20498
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -20456,12 +20500,12 @@ and ensure you are accounting for this risk.
|
|
|
20456
20500
|
key: 2,
|
|
20457
20501
|
class: "lupa-result-page-description-top",
|
|
20458
20502
|
innerHTML: descriptionTop.value
|
|
20459
|
-
}, null, 8, _hoisted_5$
|
|
20503
|
+
}, null, 8, _hoisted_5$e)) : createCommentVNode("", true)
|
|
20460
20504
|
]);
|
|
20461
20505
|
};
|
|
20462
20506
|
}
|
|
20463
20507
|
});
|
|
20464
|
-
const _hoisted_1$
|
|
20508
|
+
const _hoisted_1$O = { class: "lupa-search-result-filter-value" };
|
|
20465
20509
|
const _hoisted_2$B = {
|
|
20466
20510
|
class: "lupa-current-filter-label",
|
|
20467
20511
|
"data-cy": "lupa-current-filter-label"
|
|
@@ -20470,7 +20514,7 @@ and ensure you are accounting for this risk.
|
|
|
20470
20514
|
class: "lupa-current-filter-value",
|
|
20471
20515
|
"data-cy": "lupa-current-filter-value"
|
|
20472
20516
|
};
|
|
20473
|
-
const _sfc_main$
|
|
20517
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
20474
20518
|
__name: "CurrentFilterDisplay",
|
|
20475
20519
|
props: {
|
|
20476
20520
|
filter: {}
|
|
@@ -20482,7 +20526,7 @@ and ensure you are accounting for this risk.
|
|
|
20482
20526
|
emit2("remove", { filter: props.filter });
|
|
20483
20527
|
};
|
|
20484
20528
|
return (_ctx, _cache) => {
|
|
20485
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20529
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
20486
20530
|
createBaseVNode("div", {
|
|
20487
20531
|
class: "lupa-current-filter-action",
|
|
20488
20532
|
onClick: handleClick
|
|
@@ -20493,7 +20537,7 @@ and ensure you are accounting for this risk.
|
|
|
20493
20537
|
};
|
|
20494
20538
|
}
|
|
20495
20539
|
});
|
|
20496
|
-
const _hoisted_1$
|
|
20540
|
+
const _hoisted_1$N = { class: "lupa-filter-title-text" };
|
|
20497
20541
|
const _hoisted_2$A = {
|
|
20498
20542
|
key: 0,
|
|
20499
20543
|
class: "lupa-filter-count"
|
|
@@ -20503,7 +20547,7 @@ and ensure you are accounting for this risk.
|
|
|
20503
20547
|
class: "filter-values"
|
|
20504
20548
|
};
|
|
20505
20549
|
const _hoisted_4$l = { class: "lupa-current-filter-list" };
|
|
20506
|
-
const _sfc_main$
|
|
20550
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
20507
20551
|
__name: "CurrentFilters",
|
|
20508
20552
|
props: {
|
|
20509
20553
|
options: {},
|
|
@@ -20576,7 +20620,7 @@ and ensure you are accounting for this risk.
|
|
|
20576
20620
|
class: "lupa-current-filter-title",
|
|
20577
20621
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
20578
20622
|
}, [
|
|
20579
|
-
createBaseVNode("div", _hoisted_1$
|
|
20623
|
+
createBaseVNode("div", _hoisted_1$N, [
|
|
20580
20624
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
20581
20625
|
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$A, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
20582
20626
|
]),
|
|
@@ -20588,7 +20632,7 @@ and ensure you are accounting for this risk.
|
|
|
20588
20632
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
|
|
20589
20633
|
createBaseVNode("div", _hoisted_4$l, [
|
|
20590
20634
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
|
|
20591
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20635
|
+
return openBlock(), createBlock(_sfc_main$T, {
|
|
20592
20636
|
key: filter2.key + "_" + filter2.value,
|
|
20593
20637
|
filter: filter2,
|
|
20594
20638
|
onRemove: handleRemove
|
|
@@ -20605,8 +20649,8 @@ and ensure you are accounting for this risk.
|
|
|
20605
20649
|
};
|
|
20606
20650
|
}
|
|
20607
20651
|
});
|
|
20608
|
-
const _hoisted_1$
|
|
20609
|
-
const _sfc_main$
|
|
20652
|
+
const _hoisted_1$M = ["href"];
|
|
20653
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
20610
20654
|
__name: "CategoryFilterItem",
|
|
20611
20655
|
props: {
|
|
20612
20656
|
options: {},
|
|
@@ -20643,20 +20687,20 @@ and ensure you are accounting for this risk.
|
|
|
20643
20687
|
"data-cy": "lupa-child-category-item",
|
|
20644
20688
|
href: urlLink.value,
|
|
20645
20689
|
onClick: handleNavigation
|
|
20646
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
20690
|
+
}, toDisplayString(title.value), 9, _hoisted_1$M)
|
|
20647
20691
|
], 2);
|
|
20648
20692
|
};
|
|
20649
20693
|
}
|
|
20650
20694
|
});
|
|
20651
|
-
const _hoisted_1$
|
|
20695
|
+
const _hoisted_1$L = {
|
|
20652
20696
|
class: "lupa-category-filter",
|
|
20653
20697
|
"data-cy": "lupa-category-filter"
|
|
20654
20698
|
};
|
|
20655
20699
|
const _hoisted_2$z = { class: "lupa-category-back" };
|
|
20656
20700
|
const _hoisted_3$q = ["href"];
|
|
20657
20701
|
const _hoisted_4$k = ["href"];
|
|
20658
|
-
const _hoisted_5$
|
|
20659
|
-
const _sfc_main$
|
|
20702
|
+
const _hoisted_5$d = { class: "lupa-child-category-list" };
|
|
20703
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
20660
20704
|
__name: "CategoryFilter",
|
|
20661
20705
|
props: {
|
|
20662
20706
|
options: {}
|
|
@@ -20665,6 +20709,7 @@ and ensure you are accounting for this risk.
|
|
|
20665
20709
|
const props = __props;
|
|
20666
20710
|
const categoryChildren = ref([]);
|
|
20667
20711
|
const optionStore = useOptionsStore();
|
|
20712
|
+
const searchResultsStore = useSearchResultStore();
|
|
20668
20713
|
const { envOptions, searchResultOptions } = storeToRefs(optionStore);
|
|
20669
20714
|
const hasBackButton = computed(() => {
|
|
20670
20715
|
var _a;
|
|
@@ -20701,6 +20746,7 @@ and ensure you are accounting for this risk.
|
|
|
20701
20746
|
return;
|
|
20702
20747
|
}
|
|
20703
20748
|
categoryChildren.value = result2.items;
|
|
20749
|
+
searchResultsStore.setRelatedCategoryChildren(categoryChildren.value);
|
|
20704
20750
|
(_c = (_b = searchResultOptions.value.callbacks) == null ? void 0 : _b.onCategoryFilterResults) == null ? void 0 : _c.call(_b, {
|
|
20705
20751
|
queryKey: props.options.queryKey,
|
|
20706
20752
|
hasResults: result2.total > 0
|
|
@@ -20742,7 +20788,7 @@ and ensure you are accounting for this risk.
|
|
|
20742
20788
|
};
|
|
20743
20789
|
__expose({ fetch: fetch2 });
|
|
20744
20790
|
return (_ctx, _cache) => {
|
|
20745
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20791
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
20746
20792
|
createBaseVNode("div", _hoisted_2$z, [
|
|
20747
20793
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
20748
20794
|
key: 0,
|
|
@@ -20761,9 +20807,9 @@ and ensure you are accounting for this risk.
|
|
|
20761
20807
|
onClick: handleNavigationParent
|
|
20762
20808
|
}, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
|
|
20763
20809
|
], 2),
|
|
20764
|
-
createBaseVNode("div", _hoisted_5$
|
|
20810
|
+
createBaseVNode("div", _hoisted_5$d, [
|
|
20765
20811
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
20766
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20812
|
+
return openBlock(), createBlock(_sfc_main$R, {
|
|
20767
20813
|
key: getCategoryKey(child),
|
|
20768
20814
|
item: child,
|
|
20769
20815
|
options: _ctx.options
|
|
@@ -20774,15 +20820,15 @@ and ensure you are accounting for this risk.
|
|
|
20774
20820
|
};
|
|
20775
20821
|
}
|
|
20776
20822
|
});
|
|
20777
|
-
const _hoisted_1$
|
|
20823
|
+
const _hoisted_1$K = {
|
|
20778
20824
|
class: "lupa-search-result-facet-term-values",
|
|
20779
20825
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
20780
20826
|
};
|
|
20781
20827
|
const _hoisted_2$y = ["placeholder"];
|
|
20782
20828
|
const _hoisted_3$p = { class: "lupa-terms-list" };
|
|
20783
20829
|
const _hoisted_4$j = ["onClick"];
|
|
20784
|
-
const _hoisted_5$
|
|
20785
|
-
const _hoisted_6$
|
|
20830
|
+
const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
|
|
20831
|
+
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
20786
20832
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
20787
20833
|
const _hoisted_8$2 = {
|
|
20788
20834
|
key: 0,
|
|
@@ -20790,7 +20836,7 @@ and ensure you are accounting for this risk.
|
|
|
20790
20836
|
};
|
|
20791
20837
|
const _hoisted_9$2 = { key: 0 };
|
|
20792
20838
|
const _hoisted_10$1 = { key: 1 };
|
|
20793
|
-
const _sfc_main$
|
|
20839
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
20794
20840
|
__name: "TermFacet",
|
|
20795
20841
|
props: {
|
|
20796
20842
|
options: {},
|
|
@@ -20861,7 +20907,7 @@ and ensure you are accounting for this risk.
|
|
|
20861
20907
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
20862
20908
|
};
|
|
20863
20909
|
return (_ctx, _cache) => {
|
|
20864
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20910
|
+
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
20865
20911
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
20866
20912
|
key: 0,
|
|
20867
20913
|
class: "lupa-term-filter",
|
|
@@ -20879,12 +20925,12 @@ and ensure you are accounting for this risk.
|
|
|
20879
20925
|
key: item.title,
|
|
20880
20926
|
onClick: ($event) => handleFacetClick(item)
|
|
20881
20927
|
}, [
|
|
20882
|
-
createBaseVNode("div", _hoisted_5$
|
|
20928
|
+
createBaseVNode("div", _hoisted_5$c, [
|
|
20883
20929
|
createBaseVNode("span", {
|
|
20884
20930
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
20885
20931
|
}, null, 2)
|
|
20886
20932
|
]),
|
|
20887
|
-
createBaseVNode("div", _hoisted_6$
|
|
20933
|
+
createBaseVNode("div", _hoisted_6$8, [
|
|
20888
20934
|
createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
|
|
20889
20935
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
20890
20936
|
])
|
|
@@ -21879,7 +21925,7 @@ and ensure you are accounting for this risk.
|
|
|
21879
21925
|
m.render = function(e2, t, r, i, n, o) {
|
|
21880
21926
|
return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
|
|
21881
21927
|
}, m.__file = "src/Slider.vue";
|
|
21882
|
-
const _hoisted_1$
|
|
21928
|
+
const _hoisted_1$J = { class: "lupa-search-result-facet-stats-values" };
|
|
21883
21929
|
const _hoisted_2$x = {
|
|
21884
21930
|
key: 0,
|
|
21885
21931
|
class: "lupa-stats-facet-summary"
|
|
@@ -21892,8 +21938,8 @@ and ensure you are accounting for this risk.
|
|
|
21892
21938
|
key: 0,
|
|
21893
21939
|
class: "lupa-stats-range-label"
|
|
21894
21940
|
};
|
|
21895
|
-
const _hoisted_5$
|
|
21896
|
-
const _hoisted_6$
|
|
21941
|
+
const _hoisted_5$b = { class: "lupa-stats-from" };
|
|
21942
|
+
const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
|
|
21897
21943
|
const _hoisted_7$5 = { key: 0 };
|
|
21898
21944
|
const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
21899
21945
|
const _hoisted_9$1 = {
|
|
@@ -21907,7 +21953,7 @@ and ensure you are accounting for this risk.
|
|
|
21907
21953
|
key: 2,
|
|
21908
21954
|
class: "lupa-stats-slider-wrapper"
|
|
21909
21955
|
};
|
|
21910
|
-
const _sfc_main$
|
|
21956
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
21911
21957
|
__name: "StatsFacet",
|
|
21912
21958
|
props: {
|
|
21913
21959
|
options: {},
|
|
@@ -22080,11 +22126,11 @@ and ensure you are accounting for this risk.
|
|
|
22080
22126
|
innerSliderRange.value = value;
|
|
22081
22127
|
};
|
|
22082
22128
|
return (_ctx, _cache) => {
|
|
22083
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22129
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
22084
22130
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
|
|
22085
22131
|
createBaseVNode("div", null, [
|
|
22086
22132
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
22087
|
-
createBaseVNode("div", _hoisted_5$
|
|
22133
|
+
createBaseVNode("div", _hoisted_5$b, [
|
|
22088
22134
|
withDirectives(createBaseVNode("input", {
|
|
22089
22135
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
22090
22136
|
type: "text",
|
|
@@ -22093,7 +22139,7 @@ and ensure you are accounting for this risk.
|
|
|
22093
22139
|
min: facetMin.value,
|
|
22094
22140
|
pattern: sliderInputFormat.value,
|
|
22095
22141
|
"aria-label": ariaLabelFrom.value
|
|
22096
|
-
}, null, 8, _hoisted_6$
|
|
22142
|
+
}, null, 8, _hoisted_6$7), [
|
|
22097
22143
|
[
|
|
22098
22144
|
vModelText,
|
|
22099
22145
|
fromValue.value,
|
|
@@ -22147,18 +22193,18 @@ and ensure you are accounting for this risk.
|
|
|
22147
22193
|
};
|
|
22148
22194
|
}
|
|
22149
22195
|
});
|
|
22150
|
-
const _hoisted_1$
|
|
22196
|
+
const _hoisted_1$I = { class: "lupa-term-checkbox-wrapper" };
|
|
22151
22197
|
const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
|
|
22152
22198
|
const _hoisted_3$n = { class: "lupa-term-label" };
|
|
22153
22199
|
const _hoisted_4$h = {
|
|
22154
22200
|
key: 0,
|
|
22155
22201
|
class: "lupa-term-count"
|
|
22156
22202
|
};
|
|
22157
|
-
const _hoisted_5$
|
|
22203
|
+
const _hoisted_5$a = {
|
|
22158
22204
|
key: 0,
|
|
22159
22205
|
class: "lupa-facet-level"
|
|
22160
22206
|
};
|
|
22161
|
-
const _sfc_main$
|
|
22207
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
22162
22208
|
__name: "HierarchyFacetLevel",
|
|
22163
22209
|
props: {
|
|
22164
22210
|
options: {},
|
|
@@ -22204,7 +22250,7 @@ and ensure you are accounting for this risk.
|
|
|
22204
22250
|
"data-cy": "lupa-facet-term",
|
|
22205
22251
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
22206
22252
|
}, [
|
|
22207
|
-
createBaseVNode("div", _hoisted_1$
|
|
22253
|
+
createBaseVNode("div", _hoisted_1$I, [
|
|
22208
22254
|
createBaseVNode("span", {
|
|
22209
22255
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
22210
22256
|
}, null, 2)
|
|
@@ -22214,7 +22260,7 @@ and ensure you are accounting for this risk.
|
|
|
22214
22260
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
22215
22261
|
])
|
|
22216
22262
|
]),
|
|
22217
|
-
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
22263
|
+
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
|
|
22218
22264
|
(openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
|
|
22219
22265
|
return openBlock(), createBlock(_component_HierarchyFacetLevel, {
|
|
22220
22266
|
key: itemChild.title,
|
|
@@ -22230,13 +22276,13 @@ and ensure you are accounting for this risk.
|
|
|
22230
22276
|
};
|
|
22231
22277
|
}
|
|
22232
22278
|
});
|
|
22233
|
-
const _hoisted_1$
|
|
22279
|
+
const _hoisted_1$H = {
|
|
22234
22280
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
22235
22281
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
22236
22282
|
};
|
|
22237
22283
|
const _hoisted_2$v = { key: 0 };
|
|
22238
22284
|
const _hoisted_3$m = ["placeholder"];
|
|
22239
|
-
const _sfc_main$
|
|
22285
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
22240
22286
|
__name: "HierarchyFacet",
|
|
22241
22287
|
props: {
|
|
22242
22288
|
options: {},
|
|
@@ -22286,7 +22332,7 @@ and ensure you are accounting for this risk.
|
|
|
22286
22332
|
showAll.value = true;
|
|
22287
22333
|
};
|
|
22288
22334
|
return (_ctx, _cache) => {
|
|
22289
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22335
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
22290
22336
|
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
|
|
22291
22337
|
withDirectives(createBaseVNode("input", {
|
|
22292
22338
|
class: "lupa-term-filter",
|
|
@@ -22298,7 +22344,7 @@ and ensure you are accounting for this risk.
|
|
|
22298
22344
|
])
|
|
22299
22345
|
])) : createCommentVNode("", true),
|
|
22300
22346
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
22301
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22347
|
+
return openBlock(), createBlock(_sfc_main$N, {
|
|
22302
22348
|
key: item.title,
|
|
22303
22349
|
options: _ctx.options,
|
|
22304
22350
|
item,
|
|
@@ -22318,7 +22364,7 @@ and ensure you are accounting for this risk.
|
|
|
22318
22364
|
};
|
|
22319
22365
|
}
|
|
22320
22366
|
});
|
|
22321
|
-
const _hoisted_1$
|
|
22367
|
+
const _hoisted_1$G = { class: "lupa-facet-label-text" };
|
|
22322
22368
|
const _hoisted_2$u = {
|
|
22323
22369
|
key: 0,
|
|
22324
22370
|
class: "lupa-facet-content",
|
|
@@ -22326,12 +22372,12 @@ and ensure you are accounting for this risk.
|
|
|
22326
22372
|
};
|
|
22327
22373
|
const __default__$1 = {
|
|
22328
22374
|
components: {
|
|
22329
|
-
TermFacet: _sfc_main$
|
|
22330
|
-
StatsFacet: _sfc_main$
|
|
22331
|
-
HierarchyFacet: _sfc_main$
|
|
22375
|
+
TermFacet: _sfc_main$P,
|
|
22376
|
+
StatsFacet: _sfc_main$O,
|
|
22377
|
+
HierarchyFacet: _sfc_main$M
|
|
22332
22378
|
}
|
|
22333
22379
|
};
|
|
22334
|
-
const _sfc_main$
|
|
22380
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
22335
22381
|
__name: "FacetDisplay",
|
|
22336
22382
|
props: {
|
|
22337
22383
|
options: {},
|
|
@@ -22443,7 +22489,7 @@ and ensure you are accounting for this risk.
|
|
|
22443
22489
|
"data-cy": "lupa-search-result-facet-label",
|
|
22444
22490
|
onClick: toggleFacet
|
|
22445
22491
|
}, [
|
|
22446
|
-
createBaseVNode("div", _hoisted_1$
|
|
22492
|
+
createBaseVNode("div", _hoisted_1$G, toDisplayString(facet.value.label), 1),
|
|
22447
22493
|
createBaseVNode("div", {
|
|
22448
22494
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
22449
22495
|
}, null, 2)
|
|
@@ -22466,12 +22512,12 @@ and ensure you are accounting for this risk.
|
|
|
22466
22512
|
};
|
|
22467
22513
|
}
|
|
22468
22514
|
}));
|
|
22469
|
-
const _hoisted_1$
|
|
22515
|
+
const _hoisted_1$F = { class: "lupa-search-result-facet-section" };
|
|
22470
22516
|
const _hoisted_2$t = {
|
|
22471
22517
|
key: 0,
|
|
22472
22518
|
class: "lupa-facets-title"
|
|
22473
22519
|
};
|
|
22474
|
-
const _sfc_main$
|
|
22520
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
22475
22521
|
__name: "FacetList",
|
|
22476
22522
|
props: {
|
|
22477
22523
|
options: {},
|
|
@@ -22505,14 +22551,14 @@ and ensure you are accounting for this risk.
|
|
|
22505
22551
|
};
|
|
22506
22552
|
return (_ctx, _cache) => {
|
|
22507
22553
|
var _a;
|
|
22508
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22554
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
22509
22555
|
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
22510
22556
|
createBaseVNode("div", {
|
|
22511
22557
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
22512
22558
|
}, [
|
|
22513
22559
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
22514
22560
|
var _a2;
|
|
22515
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22561
|
+
return openBlock(), createBlock(_sfc_main$L, {
|
|
22516
22562
|
key: facet.key,
|
|
22517
22563
|
facet,
|
|
22518
22564
|
currentFilters: currentFiltersValue.value,
|
|
@@ -22527,8 +22573,8 @@ and ensure you are accounting for this risk.
|
|
|
22527
22573
|
};
|
|
22528
22574
|
}
|
|
22529
22575
|
});
|
|
22530
|
-
const _hoisted_1$
|
|
22531
|
-
const _sfc_main$
|
|
22576
|
+
const _hoisted_1$E = ["onClick"];
|
|
22577
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
22532
22578
|
__name: "FacetsButton",
|
|
22533
22579
|
props: {
|
|
22534
22580
|
options: {}
|
|
@@ -22548,13 +22594,13 @@ and ensure you are accounting for this risk.
|
|
|
22548
22594
|
key: 0,
|
|
22549
22595
|
class: "lupa-facets-button-filter",
|
|
22550
22596
|
onClick: withModifiers(handleClick, ["stop"])
|
|
22551
|
-
}, toDisplayString(label.value), 9, _hoisted_1$
|
|
22597
|
+
}, toDisplayString(label.value), 9, _hoisted_1$E)) : createCommentVNode("", true);
|
|
22552
22598
|
};
|
|
22553
22599
|
}
|
|
22554
22600
|
});
|
|
22555
|
-
const _hoisted_1$
|
|
22601
|
+
const _hoisted_1$D = { class: "lupa-search-result-facets" };
|
|
22556
22602
|
const _hoisted_2$s = { class: "lupa-facets-filter-button-wrapper" };
|
|
22557
|
-
const _sfc_main$
|
|
22603
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
22558
22604
|
__name: "Facets",
|
|
22559
22605
|
props: {
|
|
22560
22606
|
options: {},
|
|
@@ -22637,8 +22683,8 @@ and ensure you are accounting for this risk.
|
|
|
22637
22683
|
emit2("filter");
|
|
22638
22684
|
};
|
|
22639
22685
|
return (_ctx, _cache) => {
|
|
22640
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22641
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
22686
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
22687
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
22642
22688
|
key: 0,
|
|
22643
22689
|
options: _ctx.options,
|
|
22644
22690
|
facets: regularFacets.value,
|
|
@@ -22649,7 +22695,7 @@ and ensure you are accounting for this risk.
|
|
|
22649
22695
|
onClear: clear2
|
|
22650
22696
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
22651
22697
|
createBaseVNode("div", _hoisted_2$s, [
|
|
22652
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
22698
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$J, {
|
|
22653
22699
|
key: 0,
|
|
22654
22700
|
options: _ctx.options,
|
|
22655
22701
|
onFilter: filter2
|
|
@@ -22659,11 +22705,11 @@ and ensure you are accounting for this risk.
|
|
|
22659
22705
|
};
|
|
22660
22706
|
}
|
|
22661
22707
|
});
|
|
22662
|
-
const _hoisted_1$
|
|
22708
|
+
const _hoisted_1$C = {
|
|
22663
22709
|
id: "lupa-search-result-filters",
|
|
22664
22710
|
class: "lupa-search-result-filters"
|
|
22665
22711
|
};
|
|
22666
|
-
const _sfc_main$
|
|
22712
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
22667
22713
|
__name: "SearchResultsFilters",
|
|
22668
22714
|
props: {
|
|
22669
22715
|
options: {},
|
|
@@ -22696,19 +22742,19 @@ and ensure you are accounting for this risk.
|
|
|
22696
22742
|
__expose({ fetch: fetch2 });
|
|
22697
22743
|
return (_ctx, _cache) => {
|
|
22698
22744
|
var _a;
|
|
22699
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22700
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
22745
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
22746
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$S, {
|
|
22701
22747
|
key: 0,
|
|
22702
22748
|
options: _ctx.options.currentFilters,
|
|
22703
22749
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
22704
22750
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
22705
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
22751
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
22706
22752
|
key: 1,
|
|
22707
22753
|
options: _ctx.options.categories,
|
|
22708
22754
|
ref_key: "categoryFilters",
|
|
22709
22755
|
ref: categoryFilters
|
|
22710
22756
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
22711
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
22757
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$I, {
|
|
22712
22758
|
key: 2,
|
|
22713
22759
|
options: _ctx.options.facets,
|
|
22714
22760
|
onFilter: filter2
|
|
@@ -22717,20 +22763,20 @@ and ensure you are accounting for this risk.
|
|
|
22717
22763
|
};
|
|
22718
22764
|
}
|
|
22719
22765
|
});
|
|
22720
|
-
const _hoisted_1$
|
|
22766
|
+
const _hoisted_1$B = {
|
|
22721
22767
|
key: 0,
|
|
22722
22768
|
class: "lupa-mobile-filter-sidebar"
|
|
22723
22769
|
};
|
|
22724
22770
|
const _hoisted_2$r = ["onClick"];
|
|
22725
22771
|
const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
|
|
22726
22772
|
const _hoisted_4$g = { class: "lupa-sidebar-top" };
|
|
22727
|
-
const _hoisted_5$
|
|
22728
|
-
const _hoisted_6$
|
|
22773
|
+
const _hoisted_5$9 = { class: "lupa-sidebar-title" };
|
|
22774
|
+
const _hoisted_6$6 = {
|
|
22729
22775
|
key: 0,
|
|
22730
22776
|
class: "lupa-sidebar-filter-count"
|
|
22731
22777
|
};
|
|
22732
22778
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
22733
|
-
const _sfc_main$
|
|
22779
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
22734
22780
|
__name: "MobileFilterSidebar",
|
|
22735
22781
|
props: {
|
|
22736
22782
|
options: {}
|
|
@@ -22761,16 +22807,16 @@ and ensure you are accounting for this risk.
|
|
|
22761
22807
|
handleMobileToggle();
|
|
22762
22808
|
};
|
|
22763
22809
|
return (_ctx, _cache) => {
|
|
22764
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
22810
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
22765
22811
|
createBaseVNode("div", {
|
|
22766
22812
|
class: "lupa-sidebar-close",
|
|
22767
22813
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
22768
22814
|
}, null, 8, _hoisted_2$r),
|
|
22769
22815
|
createBaseVNode("div", _hoisted_3$l, [
|
|
22770
22816
|
createBaseVNode("div", _hoisted_4$g, [
|
|
22771
|
-
createBaseVNode("div", _hoisted_5$
|
|
22817
|
+
createBaseVNode("div", _hoisted_5$9, [
|
|
22772
22818
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
22773
|
-
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
22819
|
+
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
22774
22820
|
]),
|
|
22775
22821
|
createBaseVNode("div", {
|
|
22776
22822
|
class: "lupa-filter-toggle-mobile",
|
|
@@ -22778,7 +22824,7 @@ and ensure you are accounting for this risk.
|
|
|
22778
22824
|
})
|
|
22779
22825
|
]),
|
|
22780
22826
|
createBaseVNode("div", _hoisted_7$4, [
|
|
22781
|
-
createVNode(_sfc_main$
|
|
22827
|
+
createVNode(_sfc_main$H, {
|
|
22782
22828
|
options: _ctx.options,
|
|
22783
22829
|
expandable: isActiveFiltersExpanded.value,
|
|
22784
22830
|
onFilter: filter2
|
|
@@ -22789,14 +22835,14 @@ and ensure you are accounting for this risk.
|
|
|
22789
22835
|
};
|
|
22790
22836
|
}
|
|
22791
22837
|
});
|
|
22792
|
-
const _hoisted_1$
|
|
22838
|
+
const _hoisted_1$A = { id: "lupa-search-results-breadcrumbs" };
|
|
22793
22839
|
const _hoisted_2$q = ["href", "onClick"];
|
|
22794
22840
|
const _hoisted_3$k = {
|
|
22795
22841
|
key: 1,
|
|
22796
22842
|
class: "lupa-search-results-breadcrumb-text"
|
|
22797
22843
|
};
|
|
22798
22844
|
const _hoisted_4$f = { key: 2 };
|
|
22799
|
-
const _sfc_main$
|
|
22845
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
22800
22846
|
__name: "SearchResultsBreadcrumbs",
|
|
22801
22847
|
props: {
|
|
22802
22848
|
breadcrumbs: {}
|
|
@@ -22821,7 +22867,7 @@ and ensure you are accounting for this risk.
|
|
|
22821
22867
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
22822
22868
|
};
|
|
22823
22869
|
return (_ctx, _cache) => {
|
|
22824
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22870
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
22825
22871
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
22826
22872
|
return openBlock(), createElementBlock("span", {
|
|
22827
22873
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -22843,11 +22889,11 @@ and ensure you are accounting for this risk.
|
|
|
22843
22889
|
};
|
|
22844
22890
|
}
|
|
22845
22891
|
});
|
|
22846
|
-
const _hoisted_1$
|
|
22892
|
+
const _hoisted_1$z = {
|
|
22847
22893
|
id: "lupa-search-result-filters",
|
|
22848
22894
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
22849
22895
|
};
|
|
22850
|
-
const _sfc_main$
|
|
22896
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
22851
22897
|
__name: "FiltersTopDropdown",
|
|
22852
22898
|
props: {
|
|
22853
22899
|
options: {}
|
|
@@ -22859,8 +22905,8 @@ and ensure you are accounting for this risk.
|
|
|
22859
22905
|
};
|
|
22860
22906
|
return (_ctx, _cache) => {
|
|
22861
22907
|
var _a;
|
|
22862
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22863
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
22908
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
22909
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$I, {
|
|
22864
22910
|
key: 0,
|
|
22865
22911
|
options: _ctx.options.facets,
|
|
22866
22912
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -22871,8 +22917,8 @@ and ensure you are accounting for this risk.
|
|
|
22871
22917
|
};
|
|
22872
22918
|
}
|
|
22873
22919
|
});
|
|
22874
|
-
const _hoisted_1$
|
|
22875
|
-
const _sfc_main$
|
|
22920
|
+
const _hoisted_1$y = { id: "lupa-search-results-layout-selection" };
|
|
22921
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
22876
22922
|
__name: "SearchResultsLayoutSelection",
|
|
22877
22923
|
setup(__props) {
|
|
22878
22924
|
const searchResultStore = useSearchResultStore();
|
|
@@ -22883,7 +22929,7 @@ and ensure you are accounting for this risk.
|
|
|
22883
22929
|
searchResultStore.setLayout(layout2);
|
|
22884
22930
|
};
|
|
22885
22931
|
return (_ctx, _cache) => {
|
|
22886
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22932
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
22887
22933
|
createBaseVNode("div", {
|
|
22888
22934
|
class: normalizeClass([
|
|
22889
22935
|
"lupa-layout-selection-grid",
|
|
@@ -22905,11 +22951,11 @@ and ensure you are accounting for this risk.
|
|
|
22905
22951
|
};
|
|
22906
22952
|
}
|
|
22907
22953
|
});
|
|
22908
|
-
const _hoisted_1$
|
|
22954
|
+
const _hoisted_1$x = {
|
|
22909
22955
|
key: 0,
|
|
22910
22956
|
class: "lupa-mobile-toggle-filter-count"
|
|
22911
22957
|
};
|
|
22912
|
-
const _sfc_main$
|
|
22958
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
22913
22959
|
__name: "SearchResultsMobileToggle",
|
|
22914
22960
|
props: {
|
|
22915
22961
|
label: {},
|
|
@@ -22927,12 +22973,12 @@ and ensure you are accounting for this risk.
|
|
|
22927
22973
|
onClick: handleMobileToggle
|
|
22928
22974
|
}, [
|
|
22929
22975
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
22930
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
22976
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$x, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
22931
22977
|
], 2);
|
|
22932
22978
|
};
|
|
22933
22979
|
}
|
|
22934
22980
|
});
|
|
22935
|
-
const _hoisted_1$
|
|
22981
|
+
const _hoisted_1$w = {
|
|
22936
22982
|
key: 0,
|
|
22937
22983
|
id: "lupa-search-results-page-select",
|
|
22938
22984
|
"data-cy": "lupa-search-results-page-select"
|
|
@@ -22946,7 +22992,7 @@ and ensure you are accounting for this risk.
|
|
|
22946
22992
|
key: 0,
|
|
22947
22993
|
class: "lupa-page-number-separator"
|
|
22948
22994
|
};
|
|
22949
|
-
const _sfc_main$
|
|
22995
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
22950
22996
|
__name: "SearchResultsPageSelect",
|
|
22951
22997
|
props: {
|
|
22952
22998
|
lastPageLabel: {},
|
|
@@ -23023,7 +23069,7 @@ and ensure you are accounting for this risk.
|
|
|
23023
23069
|
}
|
|
23024
23070
|
};
|
|
23025
23071
|
return (_ctx, _cache) => {
|
|
23026
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
23072
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
23027
23073
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
23028
23074
|
key: 0,
|
|
23029
23075
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -23067,15 +23113,15 @@ and ensure you are accounting for this risk.
|
|
|
23067
23113
|
};
|
|
23068
23114
|
}
|
|
23069
23115
|
});
|
|
23070
|
-
const _hoisted_1$
|
|
23116
|
+
const _hoisted_1$v = {
|
|
23071
23117
|
id: "lupa-search-results-page-size",
|
|
23072
23118
|
"data-cy": "lupa-search-results-page-size"
|
|
23073
23119
|
};
|
|
23074
23120
|
const _hoisted_2$o = { id: "lupa-select" };
|
|
23075
23121
|
const _hoisted_3$i = { class: "lupa-select-label" };
|
|
23076
23122
|
const _hoisted_4$d = ["aria-label"];
|
|
23077
|
-
const _hoisted_5$
|
|
23078
|
-
const _sfc_main$
|
|
23123
|
+
const _hoisted_5$8 = ["value"];
|
|
23124
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
23079
23125
|
__name: "SearchResultsPageSize",
|
|
23080
23126
|
props: {
|
|
23081
23127
|
labels: {},
|
|
@@ -23103,7 +23149,7 @@ and ensure you are accounting for this risk.
|
|
|
23103
23149
|
});
|
|
23104
23150
|
};
|
|
23105
23151
|
return (_ctx, _cache) => {
|
|
23106
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23152
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
23107
23153
|
createBaseVNode("div", _hoisted_2$o, [
|
|
23108
23154
|
createBaseVNode("label", _hoisted_3$i, toDisplayString(label.value), 1),
|
|
23109
23155
|
createBaseVNode("select", {
|
|
@@ -23118,7 +23164,7 @@ and ensure you are accounting for this risk.
|
|
|
23118
23164
|
return openBlock(), createElementBlock("option", {
|
|
23119
23165
|
key: option,
|
|
23120
23166
|
value: option
|
|
23121
|
-
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$
|
|
23167
|
+
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$8);
|
|
23122
23168
|
}), 128))
|
|
23123
23169
|
], 40, _hoisted_4$d)
|
|
23124
23170
|
])
|
|
@@ -23126,15 +23172,15 @@ and ensure you are accounting for this risk.
|
|
|
23126
23172
|
};
|
|
23127
23173
|
}
|
|
23128
23174
|
});
|
|
23129
|
-
const _hoisted_1$
|
|
23175
|
+
const _hoisted_1$u = {
|
|
23130
23176
|
id: "lupa-search-results-sort",
|
|
23131
23177
|
class: "lupa-search-results-sort"
|
|
23132
23178
|
};
|
|
23133
23179
|
const _hoisted_2$n = { id: "lupa-select" };
|
|
23134
23180
|
const _hoisted_3$h = { class: "lupa-select-label" };
|
|
23135
23181
|
const _hoisted_4$c = ["aria-label"];
|
|
23136
|
-
const _hoisted_5$
|
|
23137
|
-
const _sfc_main$
|
|
23182
|
+
const _hoisted_5$7 = ["value"];
|
|
23183
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
23138
23184
|
__name: "SearchResultsSort",
|
|
23139
23185
|
props: {
|
|
23140
23186
|
options: {},
|
|
@@ -23183,7 +23229,7 @@ and ensure you are accounting for this risk.
|
|
|
23183
23229
|
previousKey.value = selectedKey.value;
|
|
23184
23230
|
};
|
|
23185
23231
|
return (_ctx, _cache) => {
|
|
23186
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23232
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
23187
23233
|
createBaseVNode("div", _hoisted_2$n, [
|
|
23188
23234
|
createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
|
|
23189
23235
|
withDirectives(createBaseVNode("select", {
|
|
@@ -23198,7 +23244,7 @@ and ensure you are accounting for this risk.
|
|
|
23198
23244
|
return openBlock(), createElementBlock("option", {
|
|
23199
23245
|
key: option.key,
|
|
23200
23246
|
value: option.key
|
|
23201
|
-
}, toDisplayString(option.label), 9, _hoisted_5$
|
|
23247
|
+
}, toDisplayString(option.label), 9, _hoisted_5$7);
|
|
23202
23248
|
}), 128))
|
|
23203
23249
|
], 40, _hoisted_4$c), [
|
|
23204
23250
|
[vModelSelect, selectedKey.value]
|
|
@@ -23208,22 +23254,22 @@ and ensure you are accounting for this risk.
|
|
|
23208
23254
|
};
|
|
23209
23255
|
}
|
|
23210
23256
|
});
|
|
23211
|
-
const _hoisted_1$
|
|
23257
|
+
const _hoisted_1$t = { class: "lupa-toolbar-left" };
|
|
23212
23258
|
const _hoisted_2$m = {
|
|
23213
23259
|
key: 0,
|
|
23214
23260
|
class: "lupa-toolbar-right-title"
|
|
23215
23261
|
};
|
|
23216
23262
|
const _hoisted_3$g = { key: 2 };
|
|
23217
23263
|
const _hoisted_4$b = { key: 4 };
|
|
23218
|
-
const _hoisted_5$
|
|
23219
|
-
const _hoisted_6$
|
|
23264
|
+
const _hoisted_5$6 = { key: 6 };
|
|
23265
|
+
const _hoisted_6$5 = { class: "lupa-toolbar-right" };
|
|
23220
23266
|
const _hoisted_7$3 = {
|
|
23221
23267
|
key: 0,
|
|
23222
23268
|
class: "lupa-toolbar-right-title"
|
|
23223
23269
|
};
|
|
23224
23270
|
const _hoisted_8 = { key: 2 };
|
|
23225
23271
|
const _hoisted_9 = { key: 4 };
|
|
23226
|
-
const _sfc_main$
|
|
23272
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
23227
23273
|
__name: "SearchResultsToolbar",
|
|
23228
23274
|
props: {
|
|
23229
23275
|
options: {},
|
|
@@ -23330,34 +23376,34 @@ and ensure you are accounting for this risk.
|
|
|
23330
23376
|
id: "lupa-search-results-toolbar",
|
|
23331
23377
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
23332
23378
|
}, [
|
|
23333
|
-
createBaseVNode("div", _hoisted_1$
|
|
23379
|
+
createBaseVNode("div", _hoisted_1$t, [
|
|
23334
23380
|
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$m, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
23335
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
23336
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
23381
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$D, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
|
|
23382
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$V, {
|
|
23337
23383
|
key: 3,
|
|
23338
23384
|
label: searchSummaryLabel.value,
|
|
23339
23385
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
23340
23386
|
onClear: handleClearAll
|
|
23341
23387
|
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
|
|
23342
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
23388
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$B, {
|
|
23343
23389
|
key: 5,
|
|
23344
23390
|
options: paginationOptions.value.pageSelect,
|
|
23345
23391
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
23346
23392
|
"first-page-label": paginationOptions.value.labels.showLess
|
|
23347
|
-
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$
|
|
23393
|
+
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$6))
|
|
23348
23394
|
]),
|
|
23349
|
-
createBaseVNode("div", _hoisted_6$
|
|
23395
|
+
createBaseVNode("div", _hoisted_6$5, [
|
|
23350
23396
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
23351
|
-
createVNode(_sfc_main$
|
|
23397
|
+
createVNode(_sfc_main$C, {
|
|
23352
23398
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
23353
23399
|
"show-filter-count": showMobileFilterCount.value
|
|
23354
23400
|
}, null, 8, ["label", "show-filter-count"]),
|
|
23355
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
23401
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$A, {
|
|
23356
23402
|
key: 1,
|
|
23357
23403
|
options: paginationOptions.value.pageSize,
|
|
23358
23404
|
labels: paginationOptions.value.labels
|
|
23359
23405
|
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
23360
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
23406
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$z, {
|
|
23361
23407
|
key: 3,
|
|
23362
23408
|
options: sortOptions.value,
|
|
23363
23409
|
callbacks: callbacks.value
|
|
@@ -23367,7 +23413,7 @@ and ensure you are accounting for this risk.
|
|
|
23367
23413
|
};
|
|
23368
23414
|
}
|
|
23369
23415
|
});
|
|
23370
|
-
const _sfc_main$
|
|
23416
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
23371
23417
|
__name: "SearchResultsProductImage",
|
|
23372
23418
|
props: {
|
|
23373
23419
|
item: {},
|
|
@@ -23375,7 +23421,7 @@ and ensure you are accounting for this risk.
|
|
|
23375
23421
|
},
|
|
23376
23422
|
setup(__props) {
|
|
23377
23423
|
return (_ctx, _cache) => {
|
|
23378
|
-
return openBlock(), createBlock(_sfc_main$
|
|
23424
|
+
return openBlock(), createBlock(_sfc_main$1h, {
|
|
23379
23425
|
item: _ctx.item,
|
|
23380
23426
|
options: _ctx.options,
|
|
23381
23427
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -23384,16 +23430,16 @@ and ensure you are accounting for this risk.
|
|
|
23384
23430
|
};
|
|
23385
23431
|
}
|
|
23386
23432
|
});
|
|
23387
|
-
const _hoisted_1$
|
|
23433
|
+
const _hoisted_1$s = ["title", "innerHTML"];
|
|
23388
23434
|
const _hoisted_2$l = ["title"];
|
|
23389
23435
|
const _hoisted_3$f = ["href", "innerHTML"];
|
|
23390
23436
|
const _hoisted_4$a = ["title"];
|
|
23391
|
-
const _hoisted_5$
|
|
23437
|
+
const _hoisted_5$5 = {
|
|
23392
23438
|
key: 0,
|
|
23393
23439
|
class: "lupa-search-results-product-title-text"
|
|
23394
23440
|
};
|
|
23395
|
-
const _hoisted_6$
|
|
23396
|
-
const _sfc_main$
|
|
23441
|
+
const _hoisted_6$4 = ["href"];
|
|
23442
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
23397
23443
|
__name: "SearchResultsProductTitle",
|
|
23398
23444
|
props: {
|
|
23399
23445
|
item: {},
|
|
@@ -23430,7 +23476,7 @@ and ensure you are accounting for this risk.
|
|
|
23430
23476
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23431
23477
|
title: sanitizedTitle.value,
|
|
23432
23478
|
innerHTML: sanitizedTitle.value
|
|
23433
|
-
}, null, 12, _hoisted_1$
|
|
23479
|
+
}, null, 12, _hoisted_1$s)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
|
|
23434
23480
|
key: 1,
|
|
23435
23481
|
class: "lupa-search-results-product-title",
|
|
23436
23482
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -23448,19 +23494,19 @@ and ensure you are accounting for this risk.
|
|
|
23448
23494
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23449
23495
|
title: title.value
|
|
23450
23496
|
}, [
|
|
23451
|
-
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
23497
|
+
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$5, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
23452
23498
|
_ctx.options.link ? (openBlock(), createElementBlock("a", {
|
|
23453
23499
|
key: 1,
|
|
23454
23500
|
href: _ctx.link,
|
|
23455
23501
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
23456
23502
|
onClick: handleNavigation
|
|
23457
|
-
}, toDisplayString(title.value), 9, _hoisted_6$
|
|
23503
|
+
}, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
|
|
23458
23504
|
], 12, _hoisted_4$a));
|
|
23459
23505
|
};
|
|
23460
23506
|
}
|
|
23461
23507
|
});
|
|
23462
|
-
const _hoisted_1$
|
|
23463
|
-
const _sfc_main$
|
|
23508
|
+
const _hoisted_1$r = ["innerHTML"];
|
|
23509
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
23464
23510
|
__name: "SearchResultsProductDescription",
|
|
23465
23511
|
props: {
|
|
23466
23512
|
item: {},
|
|
@@ -23487,7 +23533,7 @@ and ensure you are accounting for this risk.
|
|
|
23487
23533
|
class: "lupa-search-results-product-description",
|
|
23488
23534
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23489
23535
|
innerHTML: sanitizedDescription.value
|
|
23490
|
-
}, null, 12, _hoisted_1$
|
|
23536
|
+
}, null, 12, _hoisted_1$r)) : (openBlock(), createElementBlock("div", {
|
|
23491
23537
|
key: 1,
|
|
23492
23538
|
class: "lupa-search-results-product-description",
|
|
23493
23539
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -23495,15 +23541,15 @@ and ensure you are accounting for this risk.
|
|
|
23495
23541
|
};
|
|
23496
23542
|
}
|
|
23497
23543
|
});
|
|
23498
|
-
const _hoisted_1$
|
|
23544
|
+
const _hoisted_1$q = { id: "lupa-search-results-rating" };
|
|
23499
23545
|
const _hoisted_2$k = { class: "lupa-ratings" };
|
|
23500
23546
|
const _hoisted_3$e = { class: "lupa-ratings-base" };
|
|
23501
23547
|
const _hoisted_4$9 = ["innerHTML"];
|
|
23502
|
-
const _hoisted_5$
|
|
23503
|
-
const _hoisted_6$
|
|
23548
|
+
const _hoisted_5$4 = { class: "lupa-rating-wrapper" };
|
|
23549
|
+
const _hoisted_6$3 = ["innerHTML"];
|
|
23504
23550
|
const _hoisted_7$2 = ["href"];
|
|
23505
23551
|
const STAR_COUNT = 5;
|
|
23506
|
-
const _sfc_main$
|
|
23552
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
23507
23553
|
__name: "SearchResultsProductRating",
|
|
23508
23554
|
props: {
|
|
23509
23555
|
item: {},
|
|
@@ -23534,7 +23580,7 @@ and ensure you are accounting for this risk.
|
|
|
23534
23580
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
23535
23581
|
});
|
|
23536
23582
|
return (_ctx, _cache) => {
|
|
23537
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23583
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
23538
23584
|
createBaseVNode("div", _hoisted_2$k, [
|
|
23539
23585
|
createBaseVNode("div", _hoisted_3$e, [
|
|
23540
23586
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
@@ -23545,7 +23591,7 @@ and ensure you are accounting for this risk.
|
|
|
23545
23591
|
}, null, 8, _hoisted_4$9);
|
|
23546
23592
|
}), 128))
|
|
23547
23593
|
]),
|
|
23548
|
-
createBaseVNode("div", _hoisted_5$
|
|
23594
|
+
createBaseVNode("div", _hoisted_5$4, [
|
|
23549
23595
|
createBaseVNode("div", {
|
|
23550
23596
|
class: "lupa-ratings-highlighted",
|
|
23551
23597
|
style: normalizeStyle({ width: ratingPercentage.value + "%" })
|
|
@@ -23555,7 +23601,7 @@ and ensure you are accounting for this risk.
|
|
|
23555
23601
|
key: index,
|
|
23556
23602
|
innerHTML: star,
|
|
23557
23603
|
class: "lupa-rating lupa-rating-highlighted"
|
|
23558
|
-
}, null, 8, _hoisted_6$
|
|
23604
|
+
}, null, 8, _hoisted_6$3);
|
|
23559
23605
|
}), 128))
|
|
23560
23606
|
], 4)
|
|
23561
23607
|
])
|
|
@@ -23568,11 +23614,11 @@ and ensure you are accounting for this risk.
|
|
|
23568
23614
|
};
|
|
23569
23615
|
}
|
|
23570
23616
|
});
|
|
23571
|
-
const _hoisted_1$
|
|
23617
|
+
const _hoisted_1$p = {
|
|
23572
23618
|
class: "lupa-search-results-product-regular-price",
|
|
23573
23619
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
23574
23620
|
};
|
|
23575
|
-
const _sfc_main$
|
|
23621
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
23576
23622
|
__name: "SearchResultsProductRegularPrice",
|
|
23577
23623
|
props: {
|
|
23578
23624
|
item: {},
|
|
@@ -23590,11 +23636,11 @@ and ensure you are accounting for this risk.
|
|
|
23590
23636
|
);
|
|
23591
23637
|
});
|
|
23592
23638
|
return (_ctx, _cache) => {
|
|
23593
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23639
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, toDisplayString(price.value), 1);
|
|
23594
23640
|
};
|
|
23595
23641
|
}
|
|
23596
23642
|
});
|
|
23597
|
-
const _sfc_main$
|
|
23643
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
23598
23644
|
__name: "SearchResultsProductPrice",
|
|
23599
23645
|
props: {
|
|
23600
23646
|
item: {},
|
|
@@ -23624,10 +23670,10 @@ and ensure you are accounting for this risk.
|
|
|
23624
23670
|
};
|
|
23625
23671
|
}
|
|
23626
23672
|
});
|
|
23627
|
-
const _hoisted_1$
|
|
23673
|
+
const _hoisted_1$o = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
23628
23674
|
const _hoisted_2$j = { class: "lupa-search-results-product-addtocart" };
|
|
23629
23675
|
const _hoisted_3$d = ["onClick", "disabled"];
|
|
23630
|
-
const _sfc_main$
|
|
23676
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
23631
23677
|
__name: "SearchResultsProductAddToCart",
|
|
23632
23678
|
props: {
|
|
23633
23679
|
item: {},
|
|
@@ -23660,7 +23706,7 @@ and ensure you are accounting for this risk.
|
|
|
23660
23706
|
loading.value = false;
|
|
23661
23707
|
});
|
|
23662
23708
|
return (_ctx, _cache) => {
|
|
23663
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23709
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
23664
23710
|
createBaseVNode("div", _hoisted_2$j, [
|
|
23665
23711
|
createBaseVNode("button", {
|
|
23666
23712
|
onClick: withModifiers(handleClick, ["stop"]),
|
|
@@ -23673,12 +23719,12 @@ and ensure you are accounting for this risk.
|
|
|
23673
23719
|
};
|
|
23674
23720
|
}
|
|
23675
23721
|
});
|
|
23676
|
-
const _hoisted_1$
|
|
23722
|
+
const _hoisted_1$n = ["innerHTML"];
|
|
23677
23723
|
const _hoisted_2$i = { key: 0 };
|
|
23678
23724
|
const _hoisted_3$c = { key: 1 };
|
|
23679
23725
|
const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
|
|
23680
|
-
const _hoisted_5$
|
|
23681
|
-
const _sfc_main$
|
|
23726
|
+
const _hoisted_5$3 = { class: "lupa-search-box-custom-text" };
|
|
23727
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
23682
23728
|
__name: "SearchResultsProductCustom",
|
|
23683
23729
|
props: {
|
|
23684
23730
|
item: {},
|
|
@@ -23716,20 +23762,20 @@ and ensure you are accounting for this risk.
|
|
|
23716
23762
|
key: 0,
|
|
23717
23763
|
class: className.value,
|
|
23718
23764
|
innerHTML: text.value
|
|
23719
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
23765
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$n)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
23720
23766
|
key: 1,
|
|
23721
23767
|
class: className.value
|
|
23722
23768
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
23723
23769
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$c, [
|
|
23724
23770
|
createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
|
|
23725
|
-
createBaseVNode("div", _hoisted_5$
|
|
23771
|
+
createBaseVNode("div", _hoisted_5$3, toDisplayString(text.value), 1)
|
|
23726
23772
|
]))
|
|
23727
23773
|
], 16));
|
|
23728
23774
|
};
|
|
23729
23775
|
}
|
|
23730
23776
|
});
|
|
23731
|
-
const _hoisted_1$
|
|
23732
|
-
const _sfc_main$
|
|
23777
|
+
const _hoisted_1$m = ["innerHTML"];
|
|
23778
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
23733
23779
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
23734
23780
|
props: {
|
|
23735
23781
|
item: {},
|
|
@@ -23760,15 +23806,15 @@ and ensure you are accounting for this risk.
|
|
|
23760
23806
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
23761
23807
|
class: className.value,
|
|
23762
23808
|
innerHTML: text.value
|
|
23763
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
23809
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$m);
|
|
23764
23810
|
};
|
|
23765
23811
|
}
|
|
23766
23812
|
});
|
|
23767
|
-
const _hoisted_1$
|
|
23813
|
+
const _hoisted_1$l = { id: "lupa-search-results-rating" };
|
|
23768
23814
|
const _hoisted_2$h = ["innerHTML"];
|
|
23769
23815
|
const _hoisted_3$b = { class: "lupa-ratings" };
|
|
23770
23816
|
const _hoisted_4$7 = ["href"];
|
|
23771
|
-
const _sfc_main$
|
|
23817
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
23772
23818
|
__name: "SearchResultsProductSingleStarRating",
|
|
23773
23819
|
props: {
|
|
23774
23820
|
item: {},
|
|
@@ -23796,7 +23842,7 @@ and ensure you are accounting for this risk.
|
|
|
23796
23842
|
return RATING_STAR_HTML;
|
|
23797
23843
|
});
|
|
23798
23844
|
return (_ctx, _cache) => {
|
|
23799
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23845
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
23800
23846
|
createBaseVNode("div", {
|
|
23801
23847
|
innerHTML: star.value,
|
|
23802
23848
|
class: "lupa-rating lupa-rating-highlighted"
|
|
@@ -23812,19 +23858,19 @@ and ensure you are accounting for this risk.
|
|
|
23812
23858
|
});
|
|
23813
23859
|
const __default__ = {
|
|
23814
23860
|
components: {
|
|
23815
|
-
SearchResultsProductImage: _sfc_main$
|
|
23816
|
-
SearchResultsProductTitle: _sfc_main$
|
|
23817
|
-
SearchResultsProductDescription: _sfc_main$
|
|
23818
|
-
SearchResultsProductRating: _sfc_main$
|
|
23819
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
23820
|
-
SearchResultsProductPrice: _sfc_main$
|
|
23821
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
23822
|
-
SearchResultsProductCustom: _sfc_main$
|
|
23823
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
23824
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
23825
|
-
}
|
|
23826
|
-
};
|
|
23827
|
-
const _sfc_main$
|
|
23861
|
+
SearchResultsProductImage: _sfc_main$x,
|
|
23862
|
+
SearchResultsProductTitle: _sfc_main$w,
|
|
23863
|
+
SearchResultsProductDescription: _sfc_main$v,
|
|
23864
|
+
SearchResultsProductRating: _sfc_main$u,
|
|
23865
|
+
SearchResultsProductRegularPrice: _sfc_main$t,
|
|
23866
|
+
SearchResultsProductPrice: _sfc_main$s,
|
|
23867
|
+
SearchResultsProductAddToCart: _sfc_main$r,
|
|
23868
|
+
SearchResultsProductCustom: _sfc_main$q,
|
|
23869
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$p,
|
|
23870
|
+
SearchResultsProductSingleStarRating: _sfc_main$o
|
|
23871
|
+
}
|
|
23872
|
+
};
|
|
23873
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
23828
23874
|
__name: "SearchResultsProductCardElement",
|
|
23829
23875
|
props: {
|
|
23830
23876
|
item: {},
|
|
@@ -23900,13 +23946,13 @@ and ensure you are accounting for this risk.
|
|
|
23900
23946
|
};
|
|
23901
23947
|
}
|
|
23902
23948
|
}));
|
|
23903
|
-
const _hoisted_1$
|
|
23949
|
+
const _hoisted_1$k = ["href"];
|
|
23904
23950
|
const _hoisted_2$g = {
|
|
23905
23951
|
key: 0,
|
|
23906
23952
|
class: "lupa-out-of-stock"
|
|
23907
23953
|
};
|
|
23908
23954
|
const _hoisted_3$a = { class: "lupa-search-result-product-details-section" };
|
|
23909
|
-
const _sfc_main$
|
|
23955
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
23910
23956
|
__name: "SearchResultsProductCard",
|
|
23911
23957
|
props: {
|
|
23912
23958
|
product: {},
|
|
@@ -24058,7 +24104,7 @@ and ensure you are accounting for this risk.
|
|
|
24058
24104
|
"data-cy": "lupa-search-result-product-card",
|
|
24059
24105
|
class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
|
|
24060
24106
|
}, customDocumentHtmlAttributes.value, { onClick: handleClick }), [
|
|
24061
|
-
createVNode(_sfc_main$
|
|
24107
|
+
createVNode(_sfc_main$12, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
24062
24108
|
createBaseVNode("div", {
|
|
24063
24109
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
24064
24110
|
}, [
|
|
@@ -24068,7 +24114,7 @@ and ensure you are accounting for this risk.
|
|
|
24068
24114
|
onClick: handleNavigation
|
|
24069
24115
|
}, [
|
|
24070
24116
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
24071
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24117
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
24072
24118
|
class: "lupa-search-results-product-element",
|
|
24073
24119
|
item: _ctx.product,
|
|
24074
24120
|
element,
|
|
@@ -24079,16 +24125,16 @@ and ensure you are accounting for this risk.
|
|
|
24079
24125
|
onProductEvent: handleProductEvent
|
|
24080
24126
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
24081
24127
|
}), 128)),
|
|
24082
|
-
createVNode(_sfc_main$
|
|
24128
|
+
createVNode(_sfc_main$12, {
|
|
24083
24129
|
options: badgesOptions.value,
|
|
24084
24130
|
position: "image",
|
|
24085
24131
|
class: "lupa-image-badges"
|
|
24086
24132
|
}, null, 8, ["options"]),
|
|
24087
24133
|
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
24088
|
-
], 8, _hoisted_1$
|
|
24134
|
+
], 8, _hoisted_1$k),
|
|
24089
24135
|
createBaseVNode("div", _hoisted_3$a, [
|
|
24090
24136
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
24091
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24137
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
24092
24138
|
class: "lupa-search-results-product-element",
|
|
24093
24139
|
item: _ctx.product,
|
|
24094
24140
|
element,
|
|
@@ -24106,7 +24152,7 @@ and ensure you are accounting for this risk.
|
|
|
24106
24152
|
class: normalizeClass("lupa-element-group-" + group)
|
|
24107
24153
|
}, [
|
|
24108
24154
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
24109
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24155
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
24110
24156
|
class: "lupa-search-results-product-element",
|
|
24111
24157
|
item: _ctx.product,
|
|
24112
24158
|
element,
|
|
@@ -24124,7 +24170,7 @@ and ensure you are accounting for this risk.
|
|
|
24124
24170
|
};
|
|
24125
24171
|
}
|
|
24126
24172
|
});
|
|
24127
|
-
const _hoisted_1$
|
|
24173
|
+
const _hoisted_1$j = {
|
|
24128
24174
|
id: "lupa-search-results-similar-queries",
|
|
24129
24175
|
"data-cy": "lupa-search-results-similar-queries"
|
|
24130
24176
|
};
|
|
@@ -24134,13 +24180,13 @@ and ensure you are accounting for this risk.
|
|
|
24134
24180
|
"data-cy": "lupa-similar-query-label"
|
|
24135
24181
|
};
|
|
24136
24182
|
const _hoisted_4$6 = ["onClick"];
|
|
24137
|
-
const _hoisted_5$
|
|
24138
|
-
const _hoisted_6$
|
|
24183
|
+
const _hoisted_5$2 = ["innerHTML"];
|
|
24184
|
+
const _hoisted_6$2 = { key: 0 };
|
|
24139
24185
|
const _hoisted_7$1 = {
|
|
24140
24186
|
class: "lupa-products",
|
|
24141
24187
|
"data-cy": "lupa-products"
|
|
24142
24188
|
};
|
|
24143
|
-
const _sfc_main$
|
|
24189
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
24144
24190
|
__name: "SearchResultsSimilarQueries",
|
|
24145
24191
|
props: {
|
|
24146
24192
|
labels: {},
|
|
@@ -24170,7 +24216,7 @@ and ensure you are accounting for this risk.
|
|
|
24170
24216
|
paramsStore.goToResults({ searchText, facet });
|
|
24171
24217
|
};
|
|
24172
24218
|
return (_ctx, _cache) => {
|
|
24173
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24219
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
24174
24220
|
createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
24175
24221
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
24176
24222
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
@@ -24184,13 +24230,13 @@ and ensure you are accounting for this risk.
|
|
|
24184
24230
|
}, [
|
|
24185
24231
|
createBaseVNode("span", {
|
|
24186
24232
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
24187
|
-
}, null, 8, _hoisted_5$
|
|
24188
|
-
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
24233
|
+
}, null, 8, _hoisted_5$2),
|
|
24234
|
+
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
24189
24235
|
], 8, _hoisted_4$6)
|
|
24190
24236
|
]),
|
|
24191
24237
|
createBaseVNode("div", _hoisted_7$1, [
|
|
24192
24238
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
24193
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24239
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
24194
24240
|
style: normalizeStyle(_ctx.columnSize),
|
|
24195
24241
|
key: getDocumentKey(index2, product),
|
|
24196
24242
|
product,
|
|
@@ -24204,7 +24250,7 @@ and ensure you are accounting for this risk.
|
|
|
24204
24250
|
};
|
|
24205
24251
|
}
|
|
24206
24252
|
});
|
|
24207
|
-
const _hoisted_1$
|
|
24253
|
+
const _hoisted_1$i = {
|
|
24208
24254
|
key: 0,
|
|
24209
24255
|
class: "lupa-results-additional-panel"
|
|
24210
24256
|
};
|
|
@@ -24212,7 +24258,7 @@ and ensure you are accounting for this risk.
|
|
|
24212
24258
|
class: "lupa-results-additional-panel-items",
|
|
24213
24259
|
"data-cy": "lupa-results-additional-panel-items"
|
|
24214
24260
|
};
|
|
24215
|
-
const _sfc_main$
|
|
24261
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
24216
24262
|
__name: "AdditionalPanel",
|
|
24217
24263
|
props: {
|
|
24218
24264
|
panel: {},
|
|
@@ -24284,10 +24330,10 @@ and ensure you are accounting for this risk.
|
|
|
24284
24330
|
handleQueryChange();
|
|
24285
24331
|
});
|
|
24286
24332
|
return (_ctx, _cache) => {
|
|
24287
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24333
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
24288
24334
|
createBaseVNode("div", _hoisted_2$e, [
|
|
24289
24335
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
24290
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24336
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
24291
24337
|
key: index,
|
|
24292
24338
|
product: item,
|
|
24293
24339
|
options: _ctx.panel,
|
|
@@ -24305,11 +24351,11 @@ and ensure you are accounting for this risk.
|
|
|
24305
24351
|
};
|
|
24306
24352
|
}
|
|
24307
24353
|
});
|
|
24308
|
-
const _hoisted_1$
|
|
24354
|
+
const _hoisted_1$h = {
|
|
24309
24355
|
key: 0,
|
|
24310
24356
|
class: "lupa-results-additional-panels"
|
|
24311
24357
|
};
|
|
24312
|
-
const _sfc_main$
|
|
24358
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
24313
24359
|
__name: "AdditionalPanels",
|
|
24314
24360
|
props: {
|
|
24315
24361
|
options: {},
|
|
@@ -24326,9 +24372,9 @@ and ensure you are accounting for this risk.
|
|
|
24326
24372
|
return locationPanels.value.length > 0;
|
|
24327
24373
|
});
|
|
24328
24374
|
return (_ctx, _cache) => {
|
|
24329
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24375
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
24330
24376
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
24331
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24377
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
24332
24378
|
key: panel.queryKey,
|
|
24333
24379
|
panel,
|
|
24334
24380
|
options: _ctx.sdkOptions
|
|
@@ -24345,11 +24391,11 @@ and ensure you are accounting for this risk.
|
|
|
24345
24391
|
}
|
|
24346
24392
|
return target;
|
|
24347
24393
|
};
|
|
24348
|
-
const _sfc_main$
|
|
24349
|
-
const _hoisted_1$
|
|
24394
|
+
const _sfc_main$i = {};
|
|
24395
|
+
const _hoisted_1$g = { class: "lupa-spinner-wrapper" };
|
|
24350
24396
|
const _hoisted_2$d = { class: "lupa-spinner" };
|
|
24351
24397
|
function _sfc_render(_ctx, _cache) {
|
|
24352
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24398
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
24353
24399
|
createBaseVNode("div", _hoisted_2$d, [
|
|
24354
24400
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x2) => {
|
|
24355
24401
|
return createBaseVNode("div", { key: x2 });
|
|
@@ -24357,8 +24403,8 @@ and ensure you are accounting for this risk.
|
|
|
24357
24403
|
])
|
|
24358
24404
|
]);
|
|
24359
24405
|
}
|
|
24360
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24361
|
-
const _hoisted_1$
|
|
24406
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render]]);
|
|
24407
|
+
const _hoisted_1$f = {
|
|
24362
24408
|
id: "lupa-search-results-similar-results",
|
|
24363
24409
|
"data-cy": "lupa-search-results-similar-results"
|
|
24364
24410
|
};
|
|
@@ -24367,7 +24413,7 @@ and ensure you are accounting for this risk.
|
|
|
24367
24413
|
class: "lupa-products",
|
|
24368
24414
|
"data-cy": "lupa-products"
|
|
24369
24415
|
};
|
|
24370
|
-
const _sfc_main$
|
|
24416
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
24371
24417
|
__name: "SearchResultsSimilarResults",
|
|
24372
24418
|
props: {
|
|
24373
24419
|
columnSize: {},
|
|
@@ -24383,11 +24429,11 @@ and ensure you are accounting for this risk.
|
|
|
24383
24429
|
return getProductKey(`${index}`, product, props.productCardOptions.idKey);
|
|
24384
24430
|
};
|
|
24385
24431
|
return (_ctx, _cache) => {
|
|
24386
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24432
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
24387
24433
|
createBaseVNode("div", _hoisted_2$c, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
24388
24434
|
createBaseVNode("div", _hoisted_3$8, [
|
|
24389
24435
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
24390
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24436
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
24391
24437
|
style: normalizeStyle(_ctx.columnSize),
|
|
24392
24438
|
key: getDocumentKey(index, product),
|
|
24393
24439
|
product,
|
|
@@ -24399,7 +24445,7 @@ and ensure you are accounting for this risk.
|
|
|
24399
24445
|
};
|
|
24400
24446
|
}
|
|
24401
24447
|
});
|
|
24402
|
-
const _hoisted_1$
|
|
24448
|
+
const _hoisted_1$e = { id: "lupa-search-results-products" };
|
|
24403
24449
|
const _hoisted_2$b = {
|
|
24404
24450
|
class: "lupa-products",
|
|
24405
24451
|
"data-cy": "lupa-products"
|
|
@@ -24414,9 +24460,9 @@ and ensure you are accounting for this risk.
|
|
|
24414
24460
|
class: "lupa-empty-results",
|
|
24415
24461
|
"data-cy": "lupa-no-results"
|
|
24416
24462
|
};
|
|
24417
|
-
const _hoisted_5$
|
|
24418
|
-
const _hoisted_6$
|
|
24419
|
-
const _sfc_main$
|
|
24463
|
+
const _hoisted_5$1 = { key: 4 };
|
|
24464
|
+
const _hoisted_6$1 = { key: 5 };
|
|
24465
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
24420
24466
|
__name: "SearchResultsProducts",
|
|
24421
24467
|
props: {
|
|
24422
24468
|
options: {},
|
|
@@ -24523,24 +24569,24 @@ and ensure you are accounting for this risk.
|
|
|
24523
24569
|
};
|
|
24524
24570
|
return (_ctx, _cache) => {
|
|
24525
24571
|
var _a;
|
|
24526
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24572
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
24527
24573
|
unref(loading) && !unref(isMobileSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
24528
24574
|
key: 0,
|
|
24529
24575
|
class: "lupa-loader"
|
|
24530
24576
|
})) : createCommentVNode("", true),
|
|
24531
24577
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
24532
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
24578
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$E, {
|
|
24533
24579
|
key: 0,
|
|
24534
24580
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
24535
24581
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24536
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
24582
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$y, {
|
|
24537
24583
|
key: 1,
|
|
24538
24584
|
class: "lupa-toolbar-mobile",
|
|
24539
24585
|
options: _ctx.options,
|
|
24540
24586
|
"pagination-location": "top",
|
|
24541
24587
|
onFilter: filter2
|
|
24542
24588
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24543
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
24589
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$S, {
|
|
24544
24590
|
key: 2,
|
|
24545
24591
|
class: normalizeClass(currentFiltersClass.value),
|
|
24546
24592
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -24548,18 +24594,18 @@ and ensure you are accounting for this risk.
|
|
|
24548
24594
|
expandable: !desktopFiltersExpanded.value
|
|
24549
24595
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
24550
24596
|
], 64)) : createCommentVNode("", true),
|
|
24551
|
-
createVNode(_sfc_main$
|
|
24597
|
+
createVNode(_sfc_main$j, {
|
|
24552
24598
|
options: _ctx.options,
|
|
24553
24599
|
location: "top",
|
|
24554
24600
|
sdkOptions: _ctx.options.options
|
|
24555
24601
|
}, null, 8, ["options", "sdkOptions"]),
|
|
24556
24602
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
24557
|
-
createVNode(_sfc_main$
|
|
24603
|
+
createVNode(_sfc_main$y, {
|
|
24558
24604
|
class: "lupa-toolbar-top",
|
|
24559
24605
|
options: _ctx.options,
|
|
24560
24606
|
"pagination-location": "top"
|
|
24561
24607
|
}, null, 8, ["options"]),
|
|
24562
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
24608
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$S, {
|
|
24563
24609
|
key: 0,
|
|
24564
24610
|
class: normalizeClass(currentFiltersClass.value),
|
|
24565
24611
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -24575,7 +24621,7 @@ and ensure you are accounting for this risk.
|
|
|
24575
24621
|
options: productCardOptions.value
|
|
24576
24622
|
});
|
|
24577
24623
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
24578
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24624
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
24579
24625
|
style: normalizeStyle(columnSize.value),
|
|
24580
24626
|
key: getProductKeyAction(index, product),
|
|
24581
24627
|
product,
|
|
@@ -24591,12 +24637,12 @@ and ensure you are accounting for this risk.
|
|
|
24591
24637
|
onClick: goToFirstPage
|
|
24592
24638
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
24593
24639
|
])) : createCommentVNode("", true),
|
|
24594
|
-
createVNode(_sfc_main$
|
|
24640
|
+
createVNode(_sfc_main$y, {
|
|
24595
24641
|
class: "lupa-toolbar-bottom",
|
|
24596
24642
|
options: _ctx.options,
|
|
24597
24643
|
"pagination-location": "bottom"
|
|
24598
24644
|
}, null, 8, ["options"]),
|
|
24599
|
-
createVNode(_sfc_main$
|
|
24645
|
+
createVNode(_sfc_main$j, {
|
|
24600
24646
|
options: _ctx.options,
|
|
24601
24647
|
location: "bottom",
|
|
24602
24648
|
sdkOptions: _ctx.options.options
|
|
@@ -24605,15 +24651,15 @@ and ensure you are accounting for this risk.
|
|
|
24605
24651
|
createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
|
|
24606
24652
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
24607
24653
|
])) : createCommentVNode("", true),
|
|
24608
|
-
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
24609
|
-
createVNode(_sfc_main$
|
|
24654
|
+
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
24655
|
+
createVNode(_sfc_main$l, {
|
|
24610
24656
|
labels: similarQueriesLabels.value,
|
|
24611
24657
|
columnSize: columnSize.value,
|
|
24612
24658
|
productCardOptions: productCardOptions.value
|
|
24613
24659
|
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
24614
24660
|
])) : createCommentVNode("", true),
|
|
24615
|
-
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
24616
|
-
createVNode(_sfc_main$
|
|
24661
|
+
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
24662
|
+
createVNode(_sfc_main$h, {
|
|
24617
24663
|
labels: similarResultsLabels.value,
|
|
24618
24664
|
columnSize: columnSize.value,
|
|
24619
24665
|
productCardOptions: productCardOptions.value
|
|
@@ -24624,19 +24670,22 @@ and ensure you are accounting for this risk.
|
|
|
24624
24670
|
};
|
|
24625
24671
|
}
|
|
24626
24672
|
});
|
|
24627
|
-
const _hoisted_1$
|
|
24673
|
+
const _hoisted_1$d = { class: "lupa-top-mobile-filter-wrapper" };
|
|
24628
24674
|
const _hoisted_2$a = {
|
|
24629
24675
|
key: 0,
|
|
24630
24676
|
class: "lupa-category-back"
|
|
24631
24677
|
};
|
|
24632
24678
|
const _hoisted_3$6 = ["href"];
|
|
24633
|
-
const
|
|
24679
|
+
const _hoisted_4$4 = { class: "lupa-child-category-list" };
|
|
24680
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
24634
24681
|
__name: "CategoryTopFilters",
|
|
24635
24682
|
props: {
|
|
24636
24683
|
options: {}
|
|
24637
24684
|
},
|
|
24638
24685
|
setup(__props) {
|
|
24639
24686
|
const props = __props;
|
|
24687
|
+
const searchResultsStore = useSearchResultStore();
|
|
24688
|
+
const { relatedCategoryChildren } = storeToRefs(searchResultsStore);
|
|
24640
24689
|
const hasBackButton = computed(() => {
|
|
24641
24690
|
var _a, _b;
|
|
24642
24691
|
return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.back) == null ? void 0 : _b.title);
|
|
@@ -24652,17 +24701,24 @@ and ensure you are accounting for this risk.
|
|
|
24652
24701
|
const hasEventRouting = computed(() => {
|
|
24653
24702
|
return props.options.routingBehavior === "event";
|
|
24654
24703
|
});
|
|
24704
|
+
const categoryOptions = computed(() => {
|
|
24705
|
+
return props.options.categories;
|
|
24706
|
+
});
|
|
24655
24707
|
const handleNavigationBack = (event) => {
|
|
24656
24708
|
if (!backUrlLink.value) {
|
|
24657
24709
|
return;
|
|
24658
24710
|
}
|
|
24659
24711
|
handleRoutingEvent(backUrlLink.value, event, hasEventRouting.value);
|
|
24660
24712
|
};
|
|
24713
|
+
const getCategoryKey = (item) => {
|
|
24714
|
+
var _a, _b, _c, _d, _e, _f;
|
|
24715
|
+
return (item == null ? void 0 : item[(_c = (_b = (_a = categoryOptions.value) == null ? void 0 : _a.keys) == null ? void 0 : _b.titleKey) != null ? _c : ""]) + (item == null ? void 0 : item[(_f = (_e = (_d = categoryOptions.value) == null ? void 0 : _d.keys) == null ? void 0 : _e.urlKey) != null ? _f : ""]);
|
|
24716
|
+
};
|
|
24661
24717
|
return (_ctx, _cache) => {
|
|
24662
24718
|
return openBlock(), createElementBlock("div", {
|
|
24663
24719
|
class: normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
|
|
24664
24720
|
}, [
|
|
24665
|
-
createBaseVNode("div", _hoisted_1$
|
|
24721
|
+
createBaseVNode("div", _hoisted_1$d, [
|
|
24666
24722
|
hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
24667
24723
|
createBaseVNode("a", {
|
|
24668
24724
|
"data-cy": "lupa-category-back",
|
|
@@ -24670,7 +24726,16 @@ and ensure you are accounting for this risk.
|
|
|
24670
24726
|
onClick: handleNavigationBack
|
|
24671
24727
|
}, toDisplayString(backTitle.value), 9, _hoisted_3$6)
|
|
24672
24728
|
])) : createCommentVNode("", true),
|
|
24673
|
-
|
|
24729
|
+
createBaseVNode("div", _hoisted_4$4, [
|
|
24730
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
24731
|
+
return openBlock(), createBlock(_sfc_main$R, {
|
|
24732
|
+
key: getCategoryKey(child),
|
|
24733
|
+
item: child,
|
|
24734
|
+
options: categoryOptions.value
|
|
24735
|
+
}, null, 8, ["item", "options"]);
|
|
24736
|
+
}), 128))
|
|
24737
|
+
]),
|
|
24738
|
+
createVNode(_sfc_main$y, {
|
|
24674
24739
|
class: "lupa-toolbar-mobile",
|
|
24675
24740
|
"pagination-location": "top",
|
|
24676
24741
|
options: _ctx.options
|
|
@@ -24680,7 +24745,7 @@ and ensure you are accounting for this risk.
|
|
|
24680
24745
|
};
|
|
24681
24746
|
}
|
|
24682
24747
|
});
|
|
24683
|
-
const _hoisted_1$
|
|
24748
|
+
const _hoisted_1$c = {
|
|
24684
24749
|
key: 0,
|
|
24685
24750
|
class: "lupa-container-title-summary-mobile"
|
|
24686
24751
|
};
|
|
@@ -24690,8 +24755,8 @@ and ensure you are accounting for this risk.
|
|
|
24690
24755
|
class: "top-layout-wrapper"
|
|
24691
24756
|
};
|
|
24692
24757
|
const _hoisted_3$5 = { class: "search-content" };
|
|
24693
|
-
const _hoisted_4$
|
|
24694
|
-
const _sfc_main$
|
|
24758
|
+
const _hoisted_4$3 = { id: "lupa-search-results" };
|
|
24759
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
24695
24760
|
__name: "SearchResults",
|
|
24696
24761
|
props: {
|
|
24697
24762
|
options: {},
|
|
@@ -24901,29 +24966,29 @@ and ensure you are accounting for this risk.
|
|
|
24901
24966
|
return openBlock(), createElementBlock("div", {
|
|
24902
24967
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
24903
24968
|
}, [
|
|
24904
|
-
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24905
|
-
createVNode(_sfc_main$
|
|
24906
|
-
createVNode(_sfc_main$
|
|
24969
|
+
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
24970
|
+
createVNode(_sfc_main$W, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
24971
|
+
createVNode(_sfc_main$U, {
|
|
24907
24972
|
"show-summary": true,
|
|
24908
24973
|
options: _ctx.options,
|
|
24909
24974
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
24910
24975
|
}, null, 8, ["options", "is-product-list"])
|
|
24911
24976
|
])) : createCommentVNode("", true),
|
|
24912
|
-
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$
|
|
24977
|
+
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$f, {
|
|
24913
24978
|
key: 1,
|
|
24914
24979
|
options: _ctx.options
|
|
24915
24980
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24916
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
24981
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$G, {
|
|
24917
24982
|
key: 2,
|
|
24918
24983
|
options: _ctx.options.filters,
|
|
24919
24984
|
onFilter: handleParamsChange
|
|
24920
24985
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24921
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
24986
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$F, {
|
|
24922
24987
|
key: 3,
|
|
24923
24988
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
24924
24989
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
24925
24990
|
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
24926
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
24991
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$H, {
|
|
24927
24992
|
key: 0,
|
|
24928
24993
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
24929
24994
|
ref_key: "searchResultsFilters",
|
|
@@ -24931,12 +24996,12 @@ and ensure you are accounting for this risk.
|
|
|
24931
24996
|
onFilter: handleParamsChange
|
|
24932
24997
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24933
24998
|
createBaseVNode("div", _hoisted_3$5, [
|
|
24934
|
-
createVNode(_sfc_main$
|
|
24935
|
-
createVNode(_sfc_main$
|
|
24999
|
+
createVNode(_sfc_main$W, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25000
|
+
createVNode(_sfc_main$U, {
|
|
24936
25001
|
options: _ctx.options,
|
|
24937
25002
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
24938
25003
|
}, null, 8, ["options", "is-product-list"]),
|
|
24939
|
-
createVNode(_sfc_main$
|
|
25004
|
+
createVNode(_sfc_main$g, {
|
|
24940
25005
|
options: _ctx.options,
|
|
24941
25006
|
ssr: ssrEnabled.value,
|
|
24942
25007
|
onFilter: handleParamsChange
|
|
@@ -24948,20 +25013,20 @@ and ensure you are accounting for this risk.
|
|
|
24948
25013
|
}, 8, ["options", "ssr"])
|
|
24949
25014
|
])
|
|
24950
25015
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
24951
|
-
createVNode(_sfc_main$
|
|
24952
|
-
createVNode(_sfc_main$
|
|
25016
|
+
createVNode(_sfc_main$W, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25017
|
+
createVNode(_sfc_main$U, {
|
|
24953
25018
|
options: _ctx.options,
|
|
24954
25019
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
24955
25020
|
}, null, 8, ["options", "is-product-list"]),
|
|
24956
|
-
createBaseVNode("div", _hoisted_4$
|
|
24957
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
25021
|
+
createBaseVNode("div", _hoisted_4$3, [
|
|
25022
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$H, {
|
|
24958
25023
|
key: 0,
|
|
24959
25024
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
24960
25025
|
ref_key: "searchResultsFilters",
|
|
24961
25026
|
ref: searchResultsFilters,
|
|
24962
25027
|
onFilter: handleParamsChange
|
|
24963
25028
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24964
|
-
createVNode(_sfc_main$
|
|
25029
|
+
createVNode(_sfc_main$g, {
|
|
24965
25030
|
options: _ctx.options,
|
|
24966
25031
|
ssr: ssrEnabled.value,
|
|
24967
25032
|
onFilter: handleParamsChange
|
|
@@ -24985,12 +25050,12 @@ and ensure you are accounting for this risk.
|
|
|
24985
25050
|
};
|
|
24986
25051
|
}
|
|
24987
25052
|
});
|
|
24988
|
-
const _hoisted_1$
|
|
25053
|
+
const _hoisted_1$b = {
|
|
24989
25054
|
key: 0,
|
|
24990
25055
|
class: "lupa-category-overview"
|
|
24991
25056
|
};
|
|
24992
25057
|
const _hoisted_2$8 = ["innerHTML"];
|
|
24993
|
-
const _sfc_main$
|
|
25058
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
24994
25059
|
__name: "CategoryDescription",
|
|
24995
25060
|
props: {
|
|
24996
25061
|
options: {}
|
|
@@ -25008,7 +25073,7 @@ and ensure you are accounting for this risk.
|
|
|
25008
25073
|
return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
|
|
25009
25074
|
});
|
|
25010
25075
|
return (_ctx, _cache) => {
|
|
25011
|
-
return overviewVisible.value && unref(hasResults) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
25076
|
+
return overviewVisible.value && unref(hasResults) ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
25012
25077
|
createBaseVNode("div", {
|
|
25013
25078
|
class: "lupa-category-description",
|
|
25014
25079
|
innerHTML: description.value
|
|
@@ -25073,7 +25138,7 @@ and ensure you are accounting for this risk.
|
|
|
25073
25138
|
}
|
|
25074
25139
|
return parsedObject;
|
|
25075
25140
|
};
|
|
25076
|
-
const _sfc_main$
|
|
25141
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
25077
25142
|
__name: "ProductList",
|
|
25078
25143
|
props: {
|
|
25079
25144
|
options: {}
|
|
@@ -25098,7 +25163,7 @@ and ensure you are accounting for this risk.
|
|
|
25098
25163
|
__expose({ fetch: fetch2 });
|
|
25099
25164
|
return (_ctx, _cache) => {
|
|
25100
25165
|
return openBlock(), createElementBlock("div", null, [
|
|
25101
|
-
createVNode(_sfc_main$
|
|
25166
|
+
createVNode(_sfc_main$e, {
|
|
25102
25167
|
options: componentOptions.value,
|
|
25103
25168
|
"initial-filters": _ctx.options.initialFilters,
|
|
25104
25169
|
"is-product-list": true,
|
|
@@ -25106,7 +25171,7 @@ and ensure you are accounting for this risk.
|
|
|
25106
25171
|
ref: searchResults2
|
|
25107
25172
|
}, {
|
|
25108
25173
|
default: withCtx(() => [
|
|
25109
|
-
createVNode(_sfc_main$
|
|
25174
|
+
createVNode(_sfc_main$d, { options: _ctx.options }, null, 8, ["options"])
|
|
25110
25175
|
]),
|
|
25111
25176
|
_: 1
|
|
25112
25177
|
}, 8, ["options", "initial-filters"])
|
|
@@ -30596,9 +30661,9 @@ and ensure you are accounting for this risk.
|
|
|
30596
30661
|
}).call(commonjsGlobal$1);
|
|
30597
30662
|
})(lodash$1, lodash$1.exports);
|
|
30598
30663
|
var lodashExports$1 = lodash$1.exports;
|
|
30599
|
-
const _hoisted_1$
|
|
30664
|
+
const _hoisted_1$a = ["onClick"];
|
|
30600
30665
|
const _hoisted_2$7 = { class: "lupa-search-box-container" };
|
|
30601
|
-
const _sfc_main$
|
|
30666
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
30602
30667
|
__name: "SearchContainer",
|
|
30603
30668
|
props: {
|
|
30604
30669
|
options: {}
|
|
@@ -30644,7 +30709,7 @@ and ensure you are accounting for this risk.
|
|
|
30644
30709
|
onClick: withModifiers(innerClick, ["stop"])
|
|
30645
30710
|
}, [
|
|
30646
30711
|
createBaseVNode("div", _hoisted_2$7, [
|
|
30647
|
-
createVNode(_sfc_main$
|
|
30712
|
+
createVNode(_sfc_main$X, {
|
|
30648
30713
|
options: fullSearchBoxOptions.value,
|
|
30649
30714
|
"is-search-container": true,
|
|
30650
30715
|
ref_key: "searchBox",
|
|
@@ -30652,13 +30717,13 @@ and ensure you are accounting for this risk.
|
|
|
30652
30717
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
30653
30718
|
}, null, 8, ["options"])
|
|
30654
30719
|
]),
|
|
30655
|
-
createVNode(_sfc_main$
|
|
30720
|
+
createVNode(_sfc_main$e, {
|
|
30656
30721
|
options: fullSearchResultsOptions.value,
|
|
30657
30722
|
"is-container": true,
|
|
30658
30723
|
ref_key: "searchResults",
|
|
30659
30724
|
ref: searchResults2
|
|
30660
30725
|
}, null, 8, ["options"])
|
|
30661
|
-
], 8, _hoisted_1$
|
|
30726
|
+
], 8, _hoisted_1$a)
|
|
30662
30727
|
]);
|
|
30663
30728
|
};
|
|
30664
30729
|
}
|
|
@@ -31361,7 +31426,7 @@ and ensure you are accounting for this risk.
|
|
|
31361
31426
|
};
|
|
31362
31427
|
}
|
|
31363
31428
|
});
|
|
31364
|
-
const _hoisted_1$
|
|
31429
|
+
const _hoisted_1$9 = {
|
|
31365
31430
|
key: 0,
|
|
31366
31431
|
class: "lupa-search-product-recommendations-wrapper"
|
|
31367
31432
|
};
|
|
@@ -31374,12 +31439,12 @@ and ensure you are accounting for this risk.
|
|
|
31374
31439
|
class: "lupa-recommended-products",
|
|
31375
31440
|
"data-cy": "lupa-recommended-products"
|
|
31376
31441
|
};
|
|
31377
|
-
const _hoisted_4$
|
|
31442
|
+
const _hoisted_4$2 = {
|
|
31378
31443
|
key: 1,
|
|
31379
31444
|
class: "lupa-products",
|
|
31380
31445
|
"data-cy": "lupa-products"
|
|
31381
31446
|
};
|
|
31382
|
-
const _sfc_main$
|
|
31447
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
31383
31448
|
__name: "Recommendations",
|
|
31384
31449
|
props: {
|
|
31385
31450
|
options: {}
|
|
@@ -31495,7 +31560,7 @@ and ensure you are accounting for this risk.
|
|
|
31495
31560
|
});
|
|
31496
31561
|
__expose({ fetch: fetch2 });
|
|
31497
31562
|
return (_ctx, _cache) => {
|
|
31498
|
-
return hasRecommendations.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31563
|
+
return hasRecommendations.value ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
31499
31564
|
title.value ? (openBlock(), createElementBlock("h2", _hoisted_2$6, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
31500
31565
|
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
31501
31566
|
layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": true }), {
|
|
@@ -31508,7 +31573,7 @@ and ensure you are accounting for this risk.
|
|
|
31508
31573
|
key: getProductKeyAction(index, product)
|
|
31509
31574
|
}, {
|
|
31510
31575
|
default: withCtx(() => [
|
|
31511
|
-
createVNode(_sfc_main$
|
|
31576
|
+
createVNode(_sfc_main$m, {
|
|
31512
31577
|
product,
|
|
31513
31578
|
options: _ctx.options,
|
|
31514
31579
|
"click-tracking-settings": clickTrackingSettings.value
|
|
@@ -31519,9 +31584,9 @@ and ensure you are accounting for this risk.
|
|
|
31519
31584
|
}), 128))
|
|
31520
31585
|
]),
|
|
31521
31586
|
_: 1
|
|
31522
|
-
}, 16)) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
31587
|
+
}, 16)) : (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
31523
31588
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
31524
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31589
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
31525
31590
|
style: normalizeStyle(columnSize.value),
|
|
31526
31591
|
key: getProductKeyAction(index, product),
|
|
31527
31592
|
product,
|
|
@@ -31535,19 +31600,19 @@ and ensure you are accounting for this risk.
|
|
|
31535
31600
|
};
|
|
31536
31601
|
}
|
|
31537
31602
|
});
|
|
31538
|
-
const _hoisted_1$
|
|
31603
|
+
const _hoisted_1$8 = { class: "lupa-chat-spinner" };
|
|
31539
31604
|
const _hoisted_2$5 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
31540
31605
|
const _hoisted_3$3 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
31541
|
-
const _hoisted_4$
|
|
31542
|
-
const _hoisted_5
|
|
31543
|
-
const _hoisted_6
|
|
31606
|
+
const _hoisted_4$1 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
31607
|
+
const _hoisted_5 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
31608
|
+
const _hoisted_6 = [
|
|
31544
31609
|
_hoisted_2$5,
|
|
31545
31610
|
_hoisted_3$3,
|
|
31546
|
-
_hoisted_4$
|
|
31547
|
-
_hoisted_5
|
|
31611
|
+
_hoisted_4$1,
|
|
31612
|
+
_hoisted_5
|
|
31548
31613
|
];
|
|
31549
31614
|
const _hoisted_7 = { class: "lupa-chat-spinner-message" };
|
|
31550
|
-
const _sfc_main$
|
|
31615
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
31551
31616
|
__name: "ChatSpinner",
|
|
31552
31617
|
props: {
|
|
31553
31618
|
small: { type: Boolean },
|
|
@@ -31555,27 +31620,25 @@ and ensure you are accounting for this risk.
|
|
|
31555
31620
|
},
|
|
31556
31621
|
setup(__props) {
|
|
31557
31622
|
return (_ctx, _cache) => {
|
|
31558
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
31623
|
+
return openBlock(), createElementBlock("section", _hoisted_1$8, [
|
|
31559
31624
|
createBaseVNode("div", {
|
|
31560
31625
|
class: normalizeClass([{ small: _ctx.small }, "lds-ring"])
|
|
31561
|
-
}, _hoisted_6
|
|
31626
|
+
}, _hoisted_6, 2),
|
|
31562
31627
|
createBaseVNode("div", _hoisted_7, toDisplayString(_ctx.message), 1)
|
|
31563
31628
|
]);
|
|
31564
31629
|
};
|
|
31565
31630
|
}
|
|
31566
31631
|
});
|
|
31567
|
-
const _hoisted_1$
|
|
31632
|
+
const _hoisted_1$7 = { class: "lupa-chat-input-container" };
|
|
31568
31633
|
const _hoisted_2$4 = { id: "lupa-search-box-input" };
|
|
31569
|
-
const _hoisted_3$2 = {
|
|
31570
|
-
|
|
31571
|
-
class: "lupa-chat-form-submit"
|
|
31572
|
-
};
|
|
31573
|
-
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
31634
|
+
const _hoisted_3$2 = { class: "lupa-chat-form-submit" };
|
|
31635
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
31574
31636
|
__name: "ChatInput",
|
|
31575
31637
|
props: {
|
|
31576
|
-
disabled: { type: Boolean }
|
|
31638
|
+
disabled: { type: Boolean },
|
|
31639
|
+
options: {}
|
|
31577
31640
|
},
|
|
31578
|
-
emits: ["submit"],
|
|
31641
|
+
emits: ["submit", "focus", "blur", "clear"],
|
|
31579
31642
|
setup(__props, { emit: emit2 }) {
|
|
31580
31643
|
const inputValue = ref("");
|
|
31581
31644
|
const submit = () => {
|
|
@@ -31583,7 +31646,8 @@ and ensure you are accounting for this risk.
|
|
|
31583
31646
|
inputValue.value = "";
|
|
31584
31647
|
};
|
|
31585
31648
|
return (_ctx, _cache) => {
|
|
31586
|
-
|
|
31649
|
+
var _a, _b, _c, _d, _e, _f;
|
|
31650
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
31587
31651
|
createBaseVNode("form", {
|
|
31588
31652
|
action: "javascript:void(0);",
|
|
31589
31653
|
class: "chat-input-form",
|
|
@@ -31597,12 +31661,22 @@ and ensure you are accounting for this risk.
|
|
|
31597
31661
|
class: "lupa-search-box-input-field",
|
|
31598
31662
|
"data-cy": "lupa-search-box-input-field",
|
|
31599
31663
|
type: "text",
|
|
31600
|
-
placeholder: "Type your request here..."
|
|
31601
|
-
|
|
31664
|
+
placeholder: "Type your request here...",
|
|
31665
|
+
onFocus: _cache[1] || (_cache[1] = ($event) => emit2("focus")),
|
|
31666
|
+
onBlur: _cache[2] || (_cache[2] = ($event) => emit2("blur"))
|
|
31667
|
+
}, null, 544), [
|
|
31602
31668
|
[vModelText, inputValue.value]
|
|
31603
31669
|
])
|
|
31604
31670
|
]),
|
|
31605
|
-
!_ctx.disabled ? (openBlock(), createElementBlock(
|
|
31671
|
+
!_ctx.disabled ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
31672
|
+
createBaseVNode("button", _hoisted_3$2, toDisplayString(((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.chatSettings) == null ? void 0 : _b.labels) == null ? void 0 : _c.ask) || "Ask LupaChat"), 1),
|
|
31673
|
+
!_ctx.disabled ? (openBlock(), createElementBlock("button", {
|
|
31674
|
+
key: 0,
|
|
31675
|
+
type: "button",
|
|
31676
|
+
class: "lupa-chat-form-clear",
|
|
31677
|
+
onClick: _cache[3] || (_cache[3] = ($event) => emit2("clear"))
|
|
31678
|
+
}, toDisplayString(((_f = (_e = (_d = _ctx.options) == null ? void 0 : _d.chatSettings) == null ? void 0 : _e.labels) == null ? void 0 : _f.clear) || "Clear Chat"), 1)) : createCommentVNode("", true)
|
|
31679
|
+
], 64)) : (openBlock(), createBlock(_sfc_main$9, {
|
|
31606
31680
|
key: 1,
|
|
31607
31681
|
small: true
|
|
31608
31682
|
}))
|
|
@@ -31741,8 +31815,9 @@ and ensure you are accounting for this risk.
|
|
|
31741
31815
|
prepareChatHistory,
|
|
31742
31816
|
getTextResponseChunkStream
|
|
31743
31817
|
};
|
|
31744
|
-
const _hoisted_1$
|
|
31745
|
-
const
|
|
31818
|
+
const _hoisted_1$6 = { class: "lupa-chat-results" };
|
|
31819
|
+
const _hoisted_2$3 = ["href"];
|
|
31820
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
31746
31821
|
__name: "ChatPhraseProductsList",
|
|
31747
31822
|
props: {
|
|
31748
31823
|
options: {},
|
|
@@ -31753,35 +31828,40 @@ and ensure you are accounting for this risk.
|
|
|
31753
31828
|
const getProductKeyAction = (index, product) => {
|
|
31754
31829
|
return getProductKey(`${index}`, product, props.options.idKey);
|
|
31755
31830
|
};
|
|
31831
|
+
const image = computed(() => {
|
|
31832
|
+
var _a;
|
|
31833
|
+
return (_a = props.options.elements) == null ? void 0 : _a.find((e2) => e2.type === "image");
|
|
31834
|
+
});
|
|
31835
|
+
const getLink = (item) => {
|
|
31836
|
+
var _a, _b, _c;
|
|
31837
|
+
if (!((_a = props.options.links) == null ? void 0 : _a.details)) {
|
|
31838
|
+
return "";
|
|
31839
|
+
}
|
|
31840
|
+
return generateLink((_c = (_b = props.options.links) == null ? void 0 : _b.details) != null ? _c : "", item);
|
|
31841
|
+
};
|
|
31756
31842
|
return (_ctx, _cache) => {
|
|
31757
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
31843
|
+
return openBlock(), createElementBlock("section", _hoisted_1$6, [
|
|
31758
31844
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
31759
|
-
return openBlock(),
|
|
31760
|
-
class: "lupa-chat-product-card",
|
|
31761
|
-
key: getProductKeyAction(index, product)
|
|
31762
|
-
|
|
31763
|
-
|
|
31764
|
-
|
|
31845
|
+
return openBlock(), createElementBlock("div", {
|
|
31846
|
+
class: "lupa-chat-item lupa-chat-product-card-image",
|
|
31847
|
+
key: getProductKeyAction(index, product)
|
|
31848
|
+
}, [
|
|
31849
|
+
createBaseVNode("a", {
|
|
31850
|
+
href: getLink(product)
|
|
31851
|
+
}, [
|
|
31852
|
+
createVNode(_sfc_main$x, {
|
|
31853
|
+
item: product,
|
|
31854
|
+
options: image.value
|
|
31855
|
+
}, null, 8, ["item", "options"])
|
|
31856
|
+
], 8, _hoisted_2$3)
|
|
31857
|
+
]);
|
|
31765
31858
|
}), 128))
|
|
31766
31859
|
]);
|
|
31767
31860
|
};
|
|
31768
31861
|
}
|
|
31769
31862
|
});
|
|
31770
|
-
const _hoisted_1$
|
|
31771
|
-
const
|
|
31772
|
-
const _hoisted_3$1 = {
|
|
31773
|
-
key: 0,
|
|
31774
|
-
class: "alert"
|
|
31775
|
-
};
|
|
31776
|
-
const _hoisted_4$1 = {
|
|
31777
|
-
key: 0,
|
|
31778
|
-
class: "lupa-chat-no-results"
|
|
31779
|
-
};
|
|
31780
|
-
const _hoisted_5$1 = /* @__PURE__ */ createBaseVNode("p", null, "We found no matches for this search term", -1);
|
|
31781
|
-
const _hoisted_6 = [
|
|
31782
|
-
_hoisted_5$1
|
|
31783
|
-
];
|
|
31784
|
-
const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
31863
|
+
const _hoisted_1$5 = { class: "lupa-chat-phrase-title" };
|
|
31864
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
31785
31865
|
__name: "ChatContentEntryPhrase",
|
|
31786
31866
|
props: {
|
|
31787
31867
|
options: {},
|
|
@@ -31866,29 +31946,87 @@ and ensure you are accounting for this risk.
|
|
|
31866
31946
|
return phrases != null ? phrases : [];
|
|
31867
31947
|
});
|
|
31868
31948
|
return (_ctx, _cache) => {
|
|
31869
|
-
return openBlock(), createElementBlock("div",
|
|
31870
|
-
|
|
31871
|
-
|
|
31872
|
-
|
|
31873
|
-
|
|
31949
|
+
return !loading.value && searchResults2.value.length ? (openBlock(), createElementBlock("div", {
|
|
31950
|
+
key: 0,
|
|
31951
|
+
class: normalizeClass(["lupa-chat-content-entry-phrase", { "lupa-chat-incomplete-results": usedPartialResults.value }])
|
|
31952
|
+
}, [
|
|
31953
|
+
createBaseVNode("div", _hoisted_1$5, [
|
|
31954
|
+
createBaseVNode("h3", null, toDisplayString(displayPhrase.value), 1)
|
|
31874
31955
|
]),
|
|
31875
31956
|
createBaseVNode("div", null, [
|
|
31876
|
-
createVNode(_sfc_main$
|
|
31957
|
+
createVNode(_sfc_main$7, {
|
|
31877
31958
|
"search-results": searchResults2.value,
|
|
31878
31959
|
options: _ctx.options.displayOptions
|
|
31879
31960
|
}, null, 8, ["search-results", "options"])
|
|
31880
|
-
])
|
|
31881
|
-
|
|
31882
|
-
|
|
31883
|
-
|
|
31884
|
-
|
|
31885
|
-
|
|
31961
|
+
])
|
|
31962
|
+
], 2)) : createCommentVNode("", true);
|
|
31963
|
+
};
|
|
31964
|
+
}
|
|
31965
|
+
});
|
|
31966
|
+
const _hoisted_1$4 = { class: "lupa-chat-text-response" };
|
|
31967
|
+
const _hoisted_2$2 = ["innerHTML"];
|
|
31968
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
31969
|
+
__name: "ChatTextEntry",
|
|
31970
|
+
props: {
|
|
31971
|
+
content: {},
|
|
31972
|
+
options: {},
|
|
31973
|
+
history: {}
|
|
31974
|
+
},
|
|
31975
|
+
setup(__props) {
|
|
31976
|
+
const props = __props;
|
|
31977
|
+
const content = ref("");
|
|
31978
|
+
const processChunk = (chunk) => {
|
|
31979
|
+
content.value += chunk;
|
|
31980
|
+
};
|
|
31981
|
+
onMounted(() => {
|
|
31982
|
+
var _a;
|
|
31983
|
+
ChatService.getTextResponseChunkStream(
|
|
31984
|
+
props.options.sdkOptions,
|
|
31985
|
+
{
|
|
31986
|
+
initialQuery: props.content,
|
|
31987
|
+
messageHistory: (_a = props.history) != null ? _a : [],
|
|
31988
|
+
queryKey: props.options.displayOptions.queryKey
|
|
31989
|
+
},
|
|
31990
|
+
processChunk,
|
|
31991
|
+
props.options.chatSettings
|
|
31992
|
+
);
|
|
31993
|
+
});
|
|
31994
|
+
return (_ctx, _cache) => {
|
|
31995
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
31996
|
+
createBaseVNode("p", { innerHTML: content.value }, null, 8, _hoisted_2$2)
|
|
31886
31997
|
]);
|
|
31887
31998
|
};
|
|
31888
31999
|
}
|
|
31889
32000
|
});
|
|
31890
|
-
const _hoisted_1$3 = { class: "lupa-chat-
|
|
31891
|
-
const
|
|
32001
|
+
const _hoisted_1$3 = { class: "lupa-chat-results" };
|
|
32002
|
+
const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
32003
|
+
__name: "ChatPhraseProductsCardList",
|
|
32004
|
+
props: {
|
|
32005
|
+
options: {},
|
|
32006
|
+
searchResults: {}
|
|
32007
|
+
},
|
|
32008
|
+
setup(__props) {
|
|
32009
|
+
const props = __props;
|
|
32010
|
+
const getProductKeyAction = (index, product) => {
|
|
32011
|
+
return getProductKey(`${index}`, product, props.options.idKey);
|
|
32012
|
+
};
|
|
32013
|
+
return (_ctx, _cache) => {
|
|
32014
|
+
return openBlock(), createElementBlock("section", _hoisted_1$3, [
|
|
32015
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
32016
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
32017
|
+
class: "lupa-chat-product-card",
|
|
32018
|
+
key: getProductKeyAction(index, product),
|
|
32019
|
+
product,
|
|
32020
|
+
options: _ctx.options
|
|
32021
|
+
}, null, 8, ["product", "options"]);
|
|
32022
|
+
}), 128))
|
|
32023
|
+
]);
|
|
32024
|
+
};
|
|
32025
|
+
}
|
|
32026
|
+
});
|
|
32027
|
+
const _hoisted_1$2 = { class: "lupa-chat-section-content" };
|
|
32028
|
+
const _hoisted_2$1 = { class: "lupa-chat-content-entry-wrapper" };
|
|
32029
|
+
const _hoisted_3$1 = { class: "lupa-chat-best-matches lupa-chat-content-entry" };
|
|
31892
32030
|
const MAX_SOURCES_FOR_BEST_ITEM_MATCHING = 250;
|
|
31893
32031
|
const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
|
|
31894
32032
|
__name: "ChatContentEntry",
|
|
@@ -31947,74 +32085,87 @@ and ensure you are accounting for this risk.
|
|
|
31947
32085
|
}).filter(Boolean);
|
|
31948
32086
|
});
|
|
31949
32087
|
return (_ctx, _cache) => {
|
|
31950
|
-
|
|
31951
|
-
|
|
31952
|
-
|
|
31953
|
-
|
|
31954
|
-
|
|
31955
|
-
|
|
31956
|
-
|
|
31957
|
-
|
|
31958
|
-
|
|
31959
|
-
|
|
31960
|
-
|
|
31961
|
-
|
|
31962
|
-
|
|
31963
|
-
|
|
31964
|
-
|
|
32088
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
32089
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
32090
|
+
createBaseVNode("section", _hoisted_1$2, [
|
|
32091
|
+
createVNode(_sfc_main$5, {
|
|
32092
|
+
content: _ctx.entry.userInput,
|
|
32093
|
+
history: _ctx.history,
|
|
32094
|
+
options: _ctx.options
|
|
32095
|
+
}, null, 8, ["content", "history", "options"]),
|
|
32096
|
+
createBaseVNode("div", _hoisted_2$1, [
|
|
32097
|
+
createBaseVNode("ul", null, [
|
|
32098
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.entry.allPhrases, (phrase) => {
|
|
32099
|
+
return openBlock(), createElementBlock("li", {
|
|
32100
|
+
key: phrase,
|
|
32101
|
+
class: "lupa-chat-content-entry"
|
|
32102
|
+
}, [
|
|
32103
|
+
phrase ? (openBlock(), createBlock(_sfc_main$6, {
|
|
32104
|
+
key: 0,
|
|
32105
|
+
phrase,
|
|
32106
|
+
options: _ctx.options,
|
|
32107
|
+
onLoaded: loaded
|
|
32108
|
+
}, null, 8, ["phrase", "options"])) : createCommentVNode("", true)
|
|
32109
|
+
]);
|
|
32110
|
+
}), 128))
|
|
32111
|
+
]),
|
|
32112
|
+
loading.value ? (openBlock(), createBlock(_sfc_main$9, {
|
|
32113
|
+
key: 0,
|
|
32114
|
+
message: (_c = (_b = (_a = _ctx.options.chatSettings) == null ? void 0 : _a.labels) == null ? void 0 : _b.bestMatches) != null ? _c : "Checking for more matches..."
|
|
32115
|
+
}, null, 8, ["message"])) : createCommentVNode("", true)
|
|
32116
|
+
])
|
|
31965
32117
|
]),
|
|
31966
|
-
createBaseVNode("section",
|
|
31967
|
-
|
|
31968
|
-
loading.value ? (openBlock(), createBlock(_sfc_main$
|
|
32118
|
+
createBaseVNode("section", _hoisted_3$1, [
|
|
32119
|
+
createBaseVNode("h3", null, toDisplayString((_f = (_e = (_d = _ctx.options.chatSettings) == null ? void 0 : _d.labels) == null ? void 0 : _e.checkingForMorePhraseMatches) != null ? _f : "Best matches"), 1),
|
|
32120
|
+
loading.value ? (openBlock(), createBlock(_sfc_main$9, {
|
|
31969
32121
|
key: 0,
|
|
31970
|
-
message: "Selecting the best matches for you. This might take a few seconds."
|
|
31971
|
-
})) : createCommentVNode("", true),
|
|
31972
|
-
bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$
|
|
32122
|
+
message: (_i = (_h = (_g = _ctx.options.chatSettings) == null ? void 0 : _g.labels) == null ? void 0 : _h.selectingBestPhrases) != null ? _i : "Selecting the best matches for you. This might take a few seconds."
|
|
32123
|
+
}, null, 8, ["message"])) : createCommentVNode("", true),
|
|
32124
|
+
bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$4$1, {
|
|
31973
32125
|
key: 1,
|
|
31974
32126
|
"search-results": bestMatchProducts.value,
|
|
31975
|
-
options: _ctx.options.displayOptions
|
|
32127
|
+
options: _ctx.options.displayOptions,
|
|
32128
|
+
full: true
|
|
31976
32129
|
}, null, 8, ["search-results", "options"])) : createCommentVNode("", true)
|
|
31977
32130
|
])
|
|
31978
|
-
]);
|
|
32131
|
+
], 64);
|
|
31979
32132
|
};
|
|
31980
32133
|
}
|
|
31981
32134
|
});
|
|
31982
|
-
const _hoisted_1$
|
|
31983
|
-
const _hoisted_2$1 = ["innerHTML"];
|
|
32135
|
+
const _hoisted_1$1 = { key: 0 };
|
|
31984
32136
|
const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
31985
|
-
__name: "
|
|
32137
|
+
__name: "ChatContentListEntry",
|
|
31986
32138
|
props: {
|
|
31987
|
-
|
|
32139
|
+
entry: {},
|
|
31988
32140
|
options: {},
|
|
31989
32141
|
history: {}
|
|
31990
32142
|
},
|
|
31991
|
-
|
|
31992
|
-
|
|
31993
|
-
const
|
|
31994
|
-
|
|
31995
|
-
content.value += chunk;
|
|
32143
|
+
emits: ["loaded"],
|
|
32144
|
+
setup(__props, { emit: emit2 }) {
|
|
32145
|
+
const bestItemsLoaded = (items, key) => {
|
|
32146
|
+
emit2("loaded", { items, key });
|
|
31996
32147
|
};
|
|
31997
|
-
onMounted(() => {
|
|
31998
|
-
var _a;
|
|
31999
|
-
ChatService.getTextResponseChunkStream(
|
|
32000
|
-
props.options.sdkOptions,
|
|
32001
|
-
{
|
|
32002
|
-
initialQuery: props.content,
|
|
32003
|
-
messageHistory: (_a = props.history) != null ? _a : [],
|
|
32004
|
-
queryKey: props.options.displayOptions.queryKey
|
|
32005
|
-
},
|
|
32006
|
-
processChunk,
|
|
32007
|
-
props.options.chatSettings
|
|
32008
|
-
);
|
|
32009
|
-
});
|
|
32010
32148
|
return (_ctx, _cache) => {
|
|
32011
|
-
|
|
32012
|
-
|
|
32149
|
+
var _a;
|
|
32150
|
+
return openBlock(), createElementBlock("div", null, [
|
|
32151
|
+
createBaseVNode("h4", {
|
|
32152
|
+
class: "lupa-chat-section-title",
|
|
32153
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.entry.expanded = !_ctx.entry.expanded)
|
|
32154
|
+
}, toDisplayString(_ctx.entry.userInput), 1),
|
|
32155
|
+
((_a = _ctx.entry.suggestedPhrases) == null ? void 0 : _a.length) ? withDirectives((openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
32156
|
+
createVNode(_sfc_main$3$1, {
|
|
32157
|
+
entry: _ctx.entry,
|
|
32158
|
+
options: _ctx.options,
|
|
32159
|
+
history: _ctx.history,
|
|
32160
|
+
onLoaded: _cache[1] || (_cache[1] = (items) => bestItemsLoaded(items, _ctx.entry.key))
|
|
32161
|
+
}, null, 8, ["entry", "options", "history"])
|
|
32162
|
+
], 512)), [
|
|
32163
|
+
[vShow, _ctx.entry.expanded]
|
|
32164
|
+
]) : createCommentVNode("", true)
|
|
32013
32165
|
]);
|
|
32014
32166
|
};
|
|
32015
32167
|
}
|
|
32016
32168
|
});
|
|
32017
|
-
const _hoisted_1$1 = { class: "lupa-chat-section-title" };
|
|
32018
32169
|
const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
32019
32170
|
__name: "ChatContentList",
|
|
32020
32171
|
props: {
|
|
@@ -32031,23 +32182,16 @@ and ensure you are accounting for this risk.
|
|
|
32031
32182
|
return openBlock(), createElementBlock("div", null, [
|
|
32032
32183
|
createBaseVNode("ul", null, [
|
|
32033
32184
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.content, (entry) => {
|
|
32034
|
-
var _a;
|
|
32035
32185
|
return openBlock(), createElementBlock("li", {
|
|
32036
|
-
key: entry.key
|
|
32186
|
+
key: entry.key,
|
|
32187
|
+
class: "chat-content-list-entry"
|
|
32037
32188
|
}, [
|
|
32038
|
-
createBaseVNode("h4", _hoisted_1$1, toDisplayString(entry.userInput), 1),
|
|
32039
32189
|
createVNode(_sfc_main$2$1, {
|
|
32040
|
-
content: entry.userInput,
|
|
32041
|
-
history: _ctx.history,
|
|
32042
|
-
options: _ctx.options
|
|
32043
|
-
}, null, 8, ["content", "history", "options"]),
|
|
32044
|
-
((_a = entry.suggestedPhrases) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_sfc_main$3$1, {
|
|
32045
|
-
key: 0,
|
|
32046
32190
|
entry,
|
|
32047
32191
|
options: _ctx.options,
|
|
32048
32192
|
history: _ctx.history,
|
|
32049
32193
|
onLoaded: (items) => bestItemsLoaded(items, entry.key)
|
|
32050
|
-
}, null, 8, ["entry", "options", "history", "onLoaded"])
|
|
32194
|
+
}, null, 8, ["entry", "options", "history", "onLoaded"])
|
|
32051
32195
|
]);
|
|
32052
32196
|
}), 128))
|
|
32053
32197
|
])
|
|
@@ -32056,19 +32200,13 @@ and ensure you are accounting for this risk.
|
|
|
32056
32200
|
}
|
|
32057
32201
|
});
|
|
32058
32202
|
const _hoisted_1 = { class: "lupasearch-chat" };
|
|
32059
|
-
const _hoisted_2 =
|
|
32060
|
-
|
|
32061
|
-
|
|
32062
|
-
const _hoisted_3 = {
|
|
32203
|
+
const _hoisted_2 = { class: "lupasearch-chat-input" };
|
|
32204
|
+
const _hoisted_3 = { class: "lupasearch-chat-content-wrapper" };
|
|
32205
|
+
const _hoisted_4 = {
|
|
32063
32206
|
key: 0,
|
|
32064
32207
|
class: "lupasearch-chat-content"
|
|
32065
32208
|
};
|
|
32066
|
-
const
|
|
32067
|
-
key: 1,
|
|
32068
|
-
class: "lupa-chat-spinner-main"
|
|
32069
|
-
};
|
|
32070
|
-
const _hoisted_5 = { class: "lupasearch-chat-input" };
|
|
32071
|
-
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
32209
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
32072
32210
|
__name: "ChatContainer",
|
|
32073
32211
|
props: {
|
|
32074
32212
|
options: {}
|
|
@@ -32077,6 +32215,7 @@ and ensure you are accounting for this risk.
|
|
|
32077
32215
|
const props = __props;
|
|
32078
32216
|
const loading = ref(false);
|
|
32079
32217
|
const error = ref("");
|
|
32218
|
+
const focused = ref(false);
|
|
32080
32219
|
const chatContent = ref([]);
|
|
32081
32220
|
const history = computed(() => ChatService.prepareChatHistory(chatContent.value));
|
|
32082
32221
|
const submitChatInput = (input2) => __async2(this, null, function* () {
|
|
@@ -32091,8 +32230,10 @@ and ensure you are accounting for this risk.
|
|
|
32091
32230
|
key,
|
|
32092
32231
|
userInput: input2,
|
|
32093
32232
|
allPhrases: [],
|
|
32094
|
-
suggestedPhrases: []
|
|
32233
|
+
suggestedPhrases: [],
|
|
32234
|
+
expanded: true
|
|
32095
32235
|
};
|
|
32236
|
+
chatContent.value = chatContent.value.map((c2) => __spreadProps2(__spreadValues2({}, c2), { expanded: false }));
|
|
32096
32237
|
chatContent.value.push(chatLog);
|
|
32097
32238
|
const request = {
|
|
32098
32239
|
userPrompt: input2,
|
|
@@ -32123,25 +32264,31 @@ and ensure you are accounting for this risk.
|
|
|
32123
32264
|
const entry = chatContent.value.find((c2) => c2.key === key);
|
|
32124
32265
|
entry.bestItems = items;
|
|
32125
32266
|
};
|
|
32267
|
+
const clearChatContent = () => {
|
|
32268
|
+
chatContent.value = [];
|
|
32269
|
+
};
|
|
32126
32270
|
return (_ctx, _cache) => {
|
|
32127
32271
|
return openBlock(), createElementBlock("section", _hoisted_1, [
|
|
32128
|
-
_hoisted_2,
|
|
32129
|
-
|
|
32130
|
-
createVNode(_sfc_main$1$1, {
|
|
32131
|
-
content: chatContent.value,
|
|
32132
|
-
options: _ctx.options,
|
|
32133
|
-
onLoaded: bestItemsLoaded,
|
|
32134
|
-
history: history.value
|
|
32135
|
-
}, null, 8, ["content", "options", "history"])
|
|
32136
|
-
])) : createCommentVNode("", true),
|
|
32137
|
-
loading.value ? (openBlock(), createElementBlock("section", _hoisted_4, [
|
|
32138
|
-
createVNode(_sfc_main$7, { message: "Loading initial recommendations... This might take up to 20s" })
|
|
32139
|
-
])) : createCommentVNode("", true),
|
|
32140
|
-
createBaseVNode("section", _hoisted_5, [
|
|
32141
|
-
createVNode(_sfc_main$6, {
|
|
32272
|
+
createBaseVNode("section", _hoisted_2, [
|
|
32273
|
+
createVNode(_sfc_main$8, {
|
|
32142
32274
|
onSubmit: submitChatInput,
|
|
32143
|
-
disabled: loading.value
|
|
32144
|
-
|
|
32275
|
+
disabled: loading.value,
|
|
32276
|
+
options: _ctx.options,
|
|
32277
|
+
onFocus: _cache[0] || (_cache[0] = ($event) => focused.value = true),
|
|
32278
|
+
onClear: clearChatContent
|
|
32279
|
+
}, null, 8, ["disabled", "options"]),
|
|
32280
|
+
createBaseVNode("div", _hoisted_3, [
|
|
32281
|
+
chatContent.value.length ? withDirectives((openBlock(), createElementBlock("section", _hoisted_4, [
|
|
32282
|
+
createVNode(_sfc_main$1$1, {
|
|
32283
|
+
content: chatContent.value,
|
|
32284
|
+
options: _ctx.options,
|
|
32285
|
+
history: history.value,
|
|
32286
|
+
onLoaded: bestItemsLoaded
|
|
32287
|
+
}, null, 8, ["content", "options", "history"])
|
|
32288
|
+
], 512)), [
|
|
32289
|
+
[vShow, focused.value]
|
|
32290
|
+
]) : createCommentVNode("", true)
|
|
32291
|
+
])
|
|
32145
32292
|
])
|
|
32146
32293
|
]);
|
|
32147
32294
|
};
|
|
@@ -38077,7 +38224,7 @@ and ensure you are accounting for this risk.
|
|
|
38077
38224
|
};
|
|
38078
38225
|
__expose({ fetch: fetch2 });
|
|
38079
38226
|
return (_ctx, _cache) => {
|
|
38080
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
38227
|
+
return openBlock(), createBlock(unref(_sfc_main$X), {
|
|
38081
38228
|
options: fullSearchBoxOptions.value,
|
|
38082
38229
|
ref_key: "searchBox",
|
|
38083
38230
|
ref: searchBox2
|
|
@@ -38204,7 +38351,7 @@ and ensure you are accounting for this risk.
|
|
|
38204
38351
|
};
|
|
38205
38352
|
__expose({ fetch: fetch2 });
|
|
38206
38353
|
return (_ctx, _cache) => {
|
|
38207
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
38354
|
+
return openBlock(), createBlock(unref(_sfc_main$e), {
|
|
38208
38355
|
options: fullSearchResultsOptions.value,
|
|
38209
38356
|
ref_key: "searchResults",
|
|
38210
38357
|
ref: searchResults2
|
|
@@ -38229,7 +38376,7 @@ and ensure you are accounting for this risk.
|
|
|
38229
38376
|
};
|
|
38230
38377
|
__expose({ fetch: fetch2 });
|
|
38231
38378
|
return (_ctx, _cache) => {
|
|
38232
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
38379
|
+
return openBlock(), createBlock(unref(_sfc_main$c), {
|
|
38233
38380
|
options: fullProductListOptions.value,
|
|
38234
38381
|
ref_key: "productList",
|
|
38235
38382
|
ref: productList2
|
|
@@ -38309,7 +38456,7 @@ and ensure you are accounting for this risk.
|
|
|
38309
38456
|
__expose({ fetch: fetch2, reloadOptions });
|
|
38310
38457
|
return (_ctx, _cache) => {
|
|
38311
38458
|
return openBlock(), createElementBlock("div", null, [
|
|
38312
|
-
containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
38459
|
+
containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$b), {
|
|
38313
38460
|
key: 0,
|
|
38314
38461
|
options: containerOptions.value,
|
|
38315
38462
|
ref_key: "productList",
|
|
@@ -38333,7 +38480,7 @@ and ensure you are accounting for this risk.
|
|
|
38333
38480
|
};
|
|
38334
38481
|
__expose({ fetch: fetch2 });
|
|
38335
38482
|
return (_ctx, _cache) => {
|
|
38336
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
38483
|
+
return openBlock(), createBlock(unref(_sfc_main$a), {
|
|
38337
38484
|
options: _ctx.recommendationOptions,
|
|
38338
38485
|
ref_key: "productRecommendations",
|
|
38339
38486
|
ref: productRecommendations
|
|
@@ -38604,7 +38751,7 @@ and ensure you are accounting for this risk.
|
|
|
38604
38751
|
const instance = createVue(
|
|
38605
38752
|
options.displayOptions.containerSelector,
|
|
38606
38753
|
mountOptions == null ? void 0 : mountOptions.mountingBehavior,
|
|
38607
|
-
_sfc_main$
|
|
38754
|
+
_sfc_main$1q,
|
|
38608
38755
|
{
|
|
38609
38756
|
options
|
|
38610
38757
|
}
|