@getlupa/client 1.17.11 → 1.17.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lupaSearch.iife.js +134 -91
- package/dist/lupaSearch.js +134 -91
- package/dist/lupaSearch.mjs +134 -91
- package/dist/lupaSearch.umd.js +134 -91
- package/package.json +2 -2
package/dist/lupaSearch.umd.js
CHANGED
|
@@ -14300,8 +14300,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
14300
14300
|
const _hoisted_1$1i = { id: "lupa-search-box-input-container" };
|
|
14301
14301
|
const _hoisted_2$T = { class: "lupa-input-clear" };
|
|
14302
14302
|
const _hoisted_3$C = { id: "lupa-search-box-input" };
|
|
14303
|
-
const _hoisted_4$
|
|
14304
|
-
const _hoisted_5$
|
|
14303
|
+
const _hoisted_4$u = ["value"];
|
|
14304
|
+
const _hoisted_5$k = ["aria-label", "placeholder"];
|
|
14305
14305
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
14306
14306
|
const _hoisted_7$7 = [
|
|
14307
14307
|
_hoisted_6$9
|
|
@@ -14407,7 +14407,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
14407
14407
|
"aria-hidden": "true",
|
|
14408
14408
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
14409
14409
|
disabled: ""
|
|
14410
|
-
}, null, 8, _hoisted_4$
|
|
14410
|
+
}, null, 8, _hoisted_4$u),
|
|
14411
14411
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
14412
14412
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
14413
14413
|
}, inputAttributes.value, {
|
|
@@ -14421,7 +14421,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
14421
14421
|
placeholder: labels.value.placeholder,
|
|
14422
14422
|
onInput: handleInput,
|
|
14423
14423
|
onFocus: handleFocus
|
|
14424
|
-
}), null, 16, _hoisted_5$
|
|
14424
|
+
}), null, 16, _hoisted_5$k), [
|
|
14425
14425
|
[vModelText, inputValue.value]
|
|
14426
14426
|
]),
|
|
14427
14427
|
_ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
|
|
@@ -14633,11 +14633,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
14633
14633
|
class: "lupa-suggestion-facet",
|
|
14634
14634
|
"data-cy": "lupa-suggestion-facet"
|
|
14635
14635
|
};
|
|
14636
|
-
const _hoisted_4$
|
|
14636
|
+
const _hoisted_4$t = {
|
|
14637
14637
|
class: "lupa-suggestion-facet-label",
|
|
14638
14638
|
"data-cy": "lupa-suggestion-facet-label"
|
|
14639
14639
|
};
|
|
14640
|
-
const _hoisted_5$
|
|
14640
|
+
const _hoisted_5$j = {
|
|
14641
14641
|
class: "lupa-suggestion-facet-value",
|
|
14642
14642
|
"data-cy": "lupa-suggestion-facet-value"
|
|
14643
14643
|
};
|
|
@@ -14679,8 +14679,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
14679
14679
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
14680
14680
|
}, null, 8, _hoisted_1$1e)) : (openBlock(), createElementBlock("div", _hoisted_2$R, toDisplayString(_ctx.suggestion.display), 1)),
|
|
14681
14681
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$B, [
|
|
14682
|
-
createBaseVNode("span", _hoisted_4$
|
|
14683
|
-
createBaseVNode("span", _hoisted_5$
|
|
14682
|
+
createBaseVNode("span", _hoisted_4$t, toDisplayString(facetLabel.value), 1),
|
|
14683
|
+
createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
14684
14684
|
])) : createCommentVNode("", true)
|
|
14685
14685
|
]);
|
|
14686
14686
|
};
|
|
@@ -24173,8 +24173,8 @@ and ensure you are accounting for this risk.
|
|
|
24173
24173
|
const _hoisted_1$18 = ["innerHTML"];
|
|
24174
24174
|
const _hoisted_2$N = { key: 0 };
|
|
24175
24175
|
const _hoisted_3$A = { key: 1 };
|
|
24176
|
-
const _hoisted_4$
|
|
24177
|
-
const _hoisted_5$
|
|
24176
|
+
const _hoisted_4$s = { class: "lupa-search-box-custom-label" };
|
|
24177
|
+
const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
|
|
24178
24178
|
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
24179
24179
|
__name: "SearchBoxProductCustom",
|
|
24180
24180
|
props: {
|
|
@@ -24206,8 +24206,8 @@ and ensure you are accounting for this risk.
|
|
|
24206
24206
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
24207
24207
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
24208
24208
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
24209
|
-
createBaseVNode("div", _hoisted_4$
|
|
24210
|
-
createBaseVNode("div", _hoisted_5$
|
|
24209
|
+
createBaseVNode("div", _hoisted_4$s, toDisplayString(label.value), 1),
|
|
24210
|
+
createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
|
|
24211
24211
|
]))
|
|
24212
24212
|
], 16));
|
|
24213
24213
|
};
|
|
@@ -24300,13 +24300,11 @@ and ensure you are accounting for this risk.
|
|
|
24300
24300
|
const relatedCategoryChildren = ref([]);
|
|
24301
24301
|
const lastRequestId = ref("");
|
|
24302
24302
|
const searchRequestResults = ref({});
|
|
24303
|
+
const lastResultsSource = ref(void 0);
|
|
24303
24304
|
const optionsStore = useOptionsStore();
|
|
24304
24305
|
const paramsStore = useParamsStore();
|
|
24305
24306
|
const screenStore = useScreenStore();
|
|
24306
24307
|
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
24307
|
-
computed(
|
|
24308
|
-
() => loading.value || loadingFacets.value || loadingRefiners.value
|
|
24309
|
-
);
|
|
24310
24308
|
const facets2 = computed(() => searchResult.value.facets);
|
|
24311
24309
|
const filters = computed(() => searchResult.value.filters);
|
|
24312
24310
|
const currentQueryText = computed(() => searchResult.value.searchText);
|
|
@@ -24403,13 +24401,14 @@ and ensure you are accounting for this risk.
|
|
|
24403
24401
|
});
|
|
24404
24402
|
searchResult.value = updatedResult;
|
|
24405
24403
|
});
|
|
24406
|
-
const saveRequestResult = (requestId, result2) => {
|
|
24404
|
+
const saveRequestResult = (requestId, result2, source = "items") => {
|
|
24407
24405
|
var _a;
|
|
24408
24406
|
const existingResult = (_a = searchRequestResults.value[requestId]) != null ? _a : {};
|
|
24409
24407
|
const combinedResult = __spreadValues2(__spreadValues2({}, existingResult), result2);
|
|
24410
24408
|
searchRequestResults.value = __spreadProps2(__spreadValues2({}, searchRequestResults.value), {
|
|
24411
24409
|
[requestId]: combinedResult
|
|
24412
24410
|
});
|
|
24411
|
+
lastResultsSource.value = source;
|
|
24413
24412
|
searchResult.value = combinedResult;
|
|
24414
24413
|
};
|
|
24415
24414
|
const setLastRequestId = (requestId) => {
|
|
@@ -24435,14 +24434,13 @@ and ensure you are accounting for this risk.
|
|
|
24435
24434
|
} else {
|
|
24436
24435
|
saveRequestResult(requestId, newSearchResult);
|
|
24437
24436
|
}
|
|
24438
|
-
saveRequestResult(requestId, newSearchResult);
|
|
24439
24437
|
return { searchResult: newSearchResult };
|
|
24440
24438
|
};
|
|
24441
|
-
const addPartial = (requestId, newSearchResult) => {
|
|
24439
|
+
const addPartial = (requestId, newSearchResult, source) => {
|
|
24442
24440
|
if (lastRequestId.value !== requestId || !newSearchResult) {
|
|
24443
24441
|
return;
|
|
24444
24442
|
}
|
|
24445
|
-
saveRequestResult(requestId, newSearchResult);
|
|
24443
|
+
saveRequestResult(requestId, newSearchResult, source);
|
|
24446
24444
|
return { searchResult: searchResult.value };
|
|
24447
24445
|
};
|
|
24448
24446
|
const setColumnCount = ({ width, grid }) => {
|
|
@@ -24509,6 +24507,7 @@ and ensure you are accounting for this risk.
|
|
|
24509
24507
|
hideFiltersOnExactMatchForKeys,
|
|
24510
24508
|
relatedCategoryChildren,
|
|
24511
24509
|
searchRequestResults,
|
|
24510
|
+
lastResultsSource,
|
|
24512
24511
|
setSidebarState,
|
|
24513
24512
|
queryFacet,
|
|
24514
24513
|
setLastRequestId,
|
|
@@ -24525,14 +24524,17 @@ and ensure you are accounting for this risk.
|
|
|
24525
24524
|
});
|
|
24526
24525
|
const _hoisted_1$16 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
24527
24526
|
const _hoisted_2$M = { class: "lupa-search-box-product-addtocart" };
|
|
24528
|
-
const _hoisted_3$z = ["
|
|
24527
|
+
const _hoisted_3$z = ["disabled"];
|
|
24528
|
+
const _hoisted_4$r = ["href"];
|
|
24529
|
+
const _hoisted_5$h = ["onClick", "disabled"];
|
|
24529
24530
|
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
24530
24531
|
__name: "SearchBoxProductAddToCart",
|
|
24531
24532
|
props: {
|
|
24532
24533
|
item: {},
|
|
24533
24534
|
options: {},
|
|
24534
24535
|
inStock: { type: Boolean },
|
|
24535
|
-
dynamicAttributes: {}
|
|
24536
|
+
dynamicAttributes: {},
|
|
24537
|
+
link: {}
|
|
24536
24538
|
},
|
|
24537
24539
|
emits: ["productEvent"],
|
|
24538
24540
|
setup(__props, { emit: emit2 }) {
|
|
@@ -24559,16 +24561,27 @@ and ensure you are accounting for this risk.
|
|
|
24559
24561
|
emit2("productEvent", { type: "addToCart" });
|
|
24560
24562
|
loading.value = false;
|
|
24561
24563
|
});
|
|
24564
|
+
const hasLink = computed(() => {
|
|
24565
|
+
return Boolean(props.link && props.options.link);
|
|
24566
|
+
});
|
|
24562
24567
|
return (_ctx, _cache) => {
|
|
24563
24568
|
return openBlock(), createElementBlock("div", _hoisted_1$16, [
|
|
24564
24569
|
createBaseVNode("div", _hoisted_2$M, [
|
|
24565
|
-
|
|
24570
|
+
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
24571
|
+
key: 0,
|
|
24572
|
+
class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
|
|
24573
|
+
"data-cy": "lupa-add-to-cart",
|
|
24574
|
+
disabled: !inStockValue.value || loading.value
|
|
24575
|
+
}, _ctx.dynamicAttributes, { onClick: handleClick }), [
|
|
24576
|
+
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$r)
|
|
24577
|
+
], 16, _hoisted_3$z)) : (openBlock(), createElementBlock("button", mergeProps({
|
|
24578
|
+
key: 1,
|
|
24566
24579
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
24567
24580
|
class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
|
|
24568
24581
|
"data-cy": "lupa-add-to-cart",
|
|
24569
24582
|
type: "button",
|
|
24570
24583
|
disabled: !inStockValue.value || loading.value
|
|
24571
|
-
}, _ctx.dynamicAttributes), toDisplayString(label.value), 17,
|
|
24584
|
+
}, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_5$h))
|
|
24572
24585
|
])
|
|
24573
24586
|
]);
|
|
24574
24587
|
};
|
|
@@ -24596,7 +24609,8 @@ and ensure you are accounting for this risk.
|
|
|
24596
24609
|
item: {},
|
|
24597
24610
|
element: {},
|
|
24598
24611
|
labels: {},
|
|
24599
|
-
isInStock: { type: Boolean }
|
|
24612
|
+
isInStock: { type: Boolean },
|
|
24613
|
+
link: {}
|
|
24600
24614
|
},
|
|
24601
24615
|
setup(__props) {
|
|
24602
24616
|
const props = __props;
|
|
@@ -24658,17 +24672,19 @@ and ensure you are accounting for this risk.
|
|
|
24658
24672
|
labels: _ctx.labels,
|
|
24659
24673
|
class: { "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) },
|
|
24660
24674
|
inStock: _ctx.isInStock,
|
|
24661
|
-
"dynamic-attributes": dynamicAttributes.value
|
|
24662
|
-
|
|
24675
|
+
"dynamic-attributes": dynamicAttributes.value,
|
|
24676
|
+
link: _ctx.link
|
|
24677
|
+
}, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : createCommentVNode("", true)
|
|
24663
24678
|
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$15, [
|
|
24664
24679
|
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
24665
24680
|
key: 0,
|
|
24666
24681
|
item: enhancedItem.value,
|
|
24667
24682
|
options: _ctx.element,
|
|
24668
24683
|
labels: _ctx.labels,
|
|
24684
|
+
link: _ctx.link,
|
|
24669
24685
|
class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_b = _ctx.item) == null ? void 0 : _b.id) }),
|
|
24670
24686
|
inStock: _ctx.isInStock
|
|
24671
|
-
}, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true),
|
|
24687
|
+
}, null, 8, ["item", "options", "labels", "link", "class", "inStock"])) : createCommentVNode("", true),
|
|
24672
24688
|
renderSlot(_ctx.$slots, "badges")
|
|
24673
24689
|
]));
|
|
24674
24690
|
};
|
|
@@ -24677,7 +24693,7 @@ and ensure you are accounting for this risk.
|
|
|
24677
24693
|
const _hoisted_1$14 = { class: "lupa-badge-title" };
|
|
24678
24694
|
const _hoisted_2$L = ["src"];
|
|
24679
24695
|
const _hoisted_3$y = { key: 1 };
|
|
24680
|
-
const _hoisted_4$
|
|
24696
|
+
const _hoisted_4$q = {
|
|
24681
24697
|
key: 0,
|
|
24682
24698
|
class: "lupa-badge-full-text"
|
|
24683
24699
|
};
|
|
@@ -24721,7 +24737,7 @@ and ensure you are accounting for this risk.
|
|
|
24721
24737
|
}, null, 8, _hoisted_2$L)) : createCommentVNode("", true),
|
|
24722
24738
|
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$y, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
24723
24739
|
]),
|
|
24724
|
-
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
24740
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
24725
24741
|
], 6);
|
|
24726
24742
|
};
|
|
24727
24743
|
}
|
|
@@ -25636,11 +25652,11 @@ and ensure you are accounting for this risk.
|
|
|
25636
25652
|
key: 0,
|
|
25637
25653
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
25638
25654
|
};
|
|
25639
|
-
const _hoisted_4$
|
|
25655
|
+
const _hoisted_4$p = {
|
|
25640
25656
|
key: 1,
|
|
25641
25657
|
class: "lupa-panel-title"
|
|
25642
25658
|
};
|
|
25643
|
-
const _hoisted_5$
|
|
25659
|
+
const _hoisted_5$g = {
|
|
25644
25660
|
key: 1,
|
|
25645
25661
|
id: "lupa-search-box-panel"
|
|
25646
25662
|
};
|
|
@@ -25829,7 +25845,7 @@ and ensure you are accounting for this risk.
|
|
|
25829
25845
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
25830
25846
|
}, [
|
|
25831
25847
|
((_a = panel.labels) == null ? void 0 : _a.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$w, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
|
|
25832
|
-
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
25848
|
+
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$p, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
25833
25849
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
25834
25850
|
key: 2,
|
|
25835
25851
|
panel,
|
|
@@ -25864,7 +25880,7 @@ and ensure you are accounting for this risk.
|
|
|
25864
25880
|
options: _ctx.options,
|
|
25865
25881
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
25866
25882
|
}, null, 8, ["labels", "options"])) : createCommentVNode("", true)
|
|
25867
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
25883
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
|
|
25868
25884
|
createVNode(_sfc_main$1s, {
|
|
25869
25885
|
options: _ctx.options.history,
|
|
25870
25886
|
history: history.value,
|
|
@@ -26327,7 +26343,7 @@ and ensure you are accounting for this risk.
|
|
|
26327
26343
|
key: 1,
|
|
26328
26344
|
"data-cy": "did-you-mean-label"
|
|
26329
26345
|
};
|
|
26330
|
-
const _hoisted_4$
|
|
26346
|
+
const _hoisted_4$o = { key: 1 };
|
|
26331
26347
|
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
26332
26348
|
__name: "SearchResultsDidYouMean",
|
|
26333
26349
|
props: {
|
|
@@ -26378,7 +26394,7 @@ and ensure you are accounting for this risk.
|
|
|
26378
26394
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
26379
26395
|
"data-cy": "did-you-mean-value",
|
|
26380
26396
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
26381
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
26397
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
|
|
26382
26398
|
]);
|
|
26383
26399
|
}), 128))
|
|
26384
26400
|
])) : createCommentVNode("", true)
|
|
@@ -26428,8 +26444,8 @@ and ensure you are accounting for this risk.
|
|
|
26428
26444
|
key: 1,
|
|
26429
26445
|
class: "lupa-results-total-count"
|
|
26430
26446
|
};
|
|
26431
|
-
const _hoisted_4$
|
|
26432
|
-
const _hoisted_5$
|
|
26447
|
+
const _hoisted_4$n = { class: "lupa-results-total-count-number" };
|
|
26448
|
+
const _hoisted_5$f = ["innerHTML"];
|
|
26433
26449
|
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
26434
26450
|
__name: "SearchResultsTitle",
|
|
26435
26451
|
props: {
|
|
@@ -26478,7 +26494,7 @@ and ensure you are accounting for this risk.
|
|
|
26478
26494
|
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$E, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
26479
26495
|
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$u, [
|
|
26480
26496
|
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
26481
|
-
createBaseVNode("span", _hoisted_4$
|
|
26497
|
+
createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
|
|
26482
26498
|
createTextVNode(")")
|
|
26483
26499
|
])) : createCommentVNode("", true)
|
|
26484
26500
|
])) : createCommentVNode("", true),
|
|
@@ -26490,7 +26506,7 @@ and ensure you are accounting for this risk.
|
|
|
26490
26506
|
key: 2,
|
|
26491
26507
|
class: "lupa-result-page-description-top",
|
|
26492
26508
|
innerHTML: descriptionTop.value
|
|
26493
|
-
}, null, 8, _hoisted_5$
|
|
26509
|
+
}, null, 8, _hoisted_5$f)) : createCommentVNode("", true)
|
|
26494
26510
|
]);
|
|
26495
26511
|
};
|
|
26496
26512
|
}
|
|
@@ -26540,7 +26556,7 @@ and ensure you are accounting for this risk.
|
|
|
26540
26556
|
key: 0,
|
|
26541
26557
|
class: "filter-values"
|
|
26542
26558
|
};
|
|
26543
|
-
const _hoisted_4$
|
|
26559
|
+
const _hoisted_4$m = { class: "lupa-current-filter-list" };
|
|
26544
26560
|
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
26545
26561
|
__name: "CurrentFilters",
|
|
26546
26562
|
props: {
|
|
@@ -26624,7 +26640,7 @@ and ensure you are accounting for this risk.
|
|
|
26624
26640
|
}, null, 2)) : createCommentVNode("", true)
|
|
26625
26641
|
]),
|
|
26626
26642
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
26627
|
-
createBaseVNode("div", _hoisted_4$
|
|
26643
|
+
createBaseVNode("div", _hoisted_4$m, [
|
|
26628
26644
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
|
|
26629
26645
|
return openBlock(), createBlock(_sfc_main$Y, {
|
|
26630
26646
|
key: filter2.key + "_" + filter2.value,
|
|
@@ -26692,8 +26708,8 @@ and ensure you are accounting for this risk.
|
|
|
26692
26708
|
};
|
|
26693
26709
|
const _hoisted_2$B = { class: "lupa-category-back" };
|
|
26694
26710
|
const _hoisted_3$s = ["href"];
|
|
26695
|
-
const _hoisted_4$
|
|
26696
|
-
const _hoisted_5$
|
|
26711
|
+
const _hoisted_4$l = ["href"];
|
|
26712
|
+
const _hoisted_5$e = { class: "lupa-child-category-list" };
|
|
26697
26713
|
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
26698
26714
|
__name: "CategoryFilter",
|
|
26699
26715
|
props: {
|
|
@@ -26799,9 +26815,9 @@ and ensure you are accounting for this risk.
|
|
|
26799
26815
|
href: parentUrlLink.value,
|
|
26800
26816
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
26801
26817
|
onClick: handleNavigationParent
|
|
26802
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
26818
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
|
|
26803
26819
|
], 2),
|
|
26804
|
-
createBaseVNode("div", _hoisted_5$
|
|
26820
|
+
createBaseVNode("div", _hoisted_5$e, [
|
|
26805
26821
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
26806
26822
|
return openBlock(), createBlock(_sfc_main$W, {
|
|
26807
26823
|
key: getCategoryKey(child),
|
|
@@ -26820,8 +26836,8 @@ and ensure you are accounting for this risk.
|
|
|
26820
26836
|
};
|
|
26821
26837
|
const _hoisted_2$A = ["placeholder"];
|
|
26822
26838
|
const _hoisted_3$r = { class: "lupa-terms-list" };
|
|
26823
|
-
const _hoisted_4$
|
|
26824
|
-
const _hoisted_5$
|
|
26839
|
+
const _hoisted_4$k = ["onClick"];
|
|
26840
|
+
const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
|
|
26825
26841
|
const _hoisted_6$8 = { class: "lupa-term-label" };
|
|
26826
26842
|
const _hoisted_7$6 = {
|
|
26827
26843
|
key: 0,
|
|
@@ -26936,7 +26952,7 @@ and ensure you are accounting for this risk.
|
|
|
26936
26952
|
key: item.title,
|
|
26937
26953
|
onClick: ($event) => handleFacetClick(item)
|
|
26938
26954
|
}, [
|
|
26939
|
-
createBaseVNode("div", _hoisted_5$
|
|
26955
|
+
createBaseVNode("div", _hoisted_5$d, [
|
|
26940
26956
|
createBaseVNode("span", {
|
|
26941
26957
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
26942
26958
|
}, null, 2)
|
|
@@ -26947,7 +26963,7 @@ and ensure you are accounting for this risk.
|
|
|
26947
26963
|
createBaseVNode("span", _hoisted_6$8, toDisplayString(getItemLabel(item)), 1),
|
|
26948
26964
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_7$6, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
26949
26965
|
], 2)
|
|
26950
|
-
], 10, _hoisted_4$
|
|
26966
|
+
], 10, _hoisted_4$k);
|
|
26951
26967
|
}), 128))
|
|
26952
26968
|
]),
|
|
26953
26969
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -27947,11 +27963,11 @@ and ensure you are accounting for this risk.
|
|
|
27947
27963
|
key: 1,
|
|
27948
27964
|
class: "lupa-stats-facet-summary-input"
|
|
27949
27965
|
};
|
|
27950
|
-
const _hoisted_4$
|
|
27966
|
+
const _hoisted_4$j = {
|
|
27951
27967
|
key: 0,
|
|
27952
27968
|
class: "lupa-stats-range-label"
|
|
27953
27969
|
};
|
|
27954
|
-
const _hoisted_5$
|
|
27970
|
+
const _hoisted_5$c = { class: "lupa-stats-from" };
|
|
27955
27971
|
const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
|
|
27956
27972
|
const _hoisted_7$5 = { key: 0 };
|
|
27957
27973
|
const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
@@ -28150,8 +28166,8 @@ and ensure you are accounting for this risk.
|
|
|
28150
28166
|
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
28151
28167
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
|
|
28152
28168
|
createBaseVNode("div", null, [
|
|
28153
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
28154
|
-
createBaseVNode("div", _hoisted_5$
|
|
28169
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
28170
|
+
createBaseVNode("div", _hoisted_5$c, [
|
|
28155
28171
|
withDirectives(createBaseVNode("input", {
|
|
28156
28172
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
28157
28173
|
type: "text",
|
|
@@ -28220,7 +28236,7 @@ and ensure you are accounting for this risk.
|
|
|
28220
28236
|
key: 0,
|
|
28221
28237
|
class: "lupa-term-count"
|
|
28222
28238
|
};
|
|
28223
|
-
const _hoisted_4$
|
|
28239
|
+
const _hoisted_4$i = {
|
|
28224
28240
|
key: 0,
|
|
28225
28241
|
class: "lupa-facet-level"
|
|
28226
28242
|
};
|
|
@@ -28289,7 +28305,7 @@ and ensure you are accounting for this risk.
|
|
|
28289
28305
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$p, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
28290
28306
|
], 2)
|
|
28291
28307
|
]),
|
|
28292
|
-
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
28308
|
+
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, [
|
|
28293
28309
|
(openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
|
|
28294
28310
|
return openBlock(), createBlock(_component_HierarchyFacetLevel, {
|
|
28295
28311
|
key: itemChild.title,
|
|
@@ -28822,8 +28838,8 @@ and ensure you are accounting for this risk.
|
|
|
28822
28838
|
};
|
|
28823
28839
|
const _hoisted_2$u = ["onClick"];
|
|
28824
28840
|
const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
|
|
28825
|
-
const _hoisted_4$
|
|
28826
|
-
const _hoisted_5$
|
|
28841
|
+
const _hoisted_4$h = { class: "lupa-sidebar-top" };
|
|
28842
|
+
const _hoisted_5$b = { class: "lupa-sidebar-title" };
|
|
28827
28843
|
const _hoisted_6$6 = {
|
|
28828
28844
|
key: 0,
|
|
28829
28845
|
class: "lupa-sidebar-filter-count"
|
|
@@ -28866,8 +28882,8 @@ and ensure you are accounting for this risk.
|
|
|
28866
28882
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
28867
28883
|
}, null, 8, _hoisted_2$u),
|
|
28868
28884
|
createBaseVNode("div", _hoisted_3$n, [
|
|
28869
|
-
createBaseVNode("div", _hoisted_4$
|
|
28870
|
-
createBaseVNode("div", _hoisted_5$
|
|
28885
|
+
createBaseVNode("div", _hoisted_4$h, [
|
|
28886
|
+
createBaseVNode("div", _hoisted_5$b, [
|
|
28871
28887
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
28872
28888
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
28873
28889
|
]),
|
|
@@ -28894,7 +28910,7 @@ and ensure you are accounting for this risk.
|
|
|
28894
28910
|
key: 1,
|
|
28895
28911
|
class: "lupa-search-results-breadcrumb-text"
|
|
28896
28912
|
};
|
|
28897
|
-
const _hoisted_4$
|
|
28913
|
+
const _hoisted_4$g = { key: 2 };
|
|
28898
28914
|
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
28899
28915
|
__name: "SearchResultsBreadcrumbs",
|
|
28900
28916
|
props: {
|
|
@@ -28936,7 +28952,7 @@ and ensure you are accounting for this risk.
|
|
|
28936
28952
|
return handleNavigation(e2, (_a2 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a2 : "");
|
|
28937
28953
|
}
|
|
28938
28954
|
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
28939
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
28955
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : createCommentVNode("", true)
|
|
28940
28956
|
]);
|
|
28941
28957
|
}), 128))
|
|
28942
28958
|
]);
|
|
@@ -29098,7 +29114,7 @@ and ensure you are accounting for this risk.
|
|
|
29098
29114
|
class: "lupa-page-number-separator"
|
|
29099
29115
|
};
|
|
29100
29116
|
const _hoisted_3$l = ["onClick"];
|
|
29101
|
-
const _hoisted_4$
|
|
29117
|
+
const _hoisted_4$f = {
|
|
29102
29118
|
key: 0,
|
|
29103
29119
|
class: "lupa-page-number-separator"
|
|
29104
29120
|
};
|
|
@@ -29204,7 +29220,7 @@ and ensure you are accounting for this risk.
|
|
|
29204
29220
|
}, toDisplayString(page), 11, _hoisted_3$l);
|
|
29205
29221
|
}), 128)),
|
|
29206
29222
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
29207
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
29223
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
|
|
29208
29224
|
createBaseVNode("div", {
|
|
29209
29225
|
class: "lupa-page-number lupa-page-number-last",
|
|
29210
29226
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -29229,8 +29245,8 @@ and ensure you are accounting for this risk.
|
|
|
29229
29245
|
};
|
|
29230
29246
|
const _hoisted_2$r = { id: "lupa-select" };
|
|
29231
29247
|
const _hoisted_3$k = { class: "lupa-select-label" };
|
|
29232
|
-
const _hoisted_4$
|
|
29233
|
-
const _hoisted_5$
|
|
29248
|
+
const _hoisted_4$e = ["aria-label"];
|
|
29249
|
+
const _hoisted_5$a = ["value"];
|
|
29234
29250
|
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
29235
29251
|
__name: "SearchResultsPageSize",
|
|
29236
29252
|
props: {
|
|
@@ -29274,9 +29290,9 @@ and ensure you are accounting for this risk.
|
|
|
29274
29290
|
return openBlock(), createElementBlock("option", {
|
|
29275
29291
|
key: option,
|
|
29276
29292
|
value: option
|
|
29277
|
-
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$
|
|
29293
|
+
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$a);
|
|
29278
29294
|
}), 128))
|
|
29279
|
-
], 40, _hoisted_4$
|
|
29295
|
+
], 40, _hoisted_4$e)
|
|
29280
29296
|
])
|
|
29281
29297
|
]);
|
|
29282
29298
|
};
|
|
@@ -29288,8 +29304,8 @@ and ensure you are accounting for this risk.
|
|
|
29288
29304
|
};
|
|
29289
29305
|
const _hoisted_2$q = { id: "lupa-select" };
|
|
29290
29306
|
const _hoisted_3$j = { class: "lupa-select-label" };
|
|
29291
|
-
const _hoisted_4$
|
|
29292
|
-
const _hoisted_5$
|
|
29307
|
+
const _hoisted_4$d = ["aria-label"];
|
|
29308
|
+
const _hoisted_5$9 = ["value"];
|
|
29293
29309
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
29294
29310
|
__name: "SearchResultsSort",
|
|
29295
29311
|
props: {
|
|
@@ -29354,9 +29370,9 @@ and ensure you are accounting for this risk.
|
|
|
29354
29370
|
return openBlock(), createElementBlock("option", {
|
|
29355
29371
|
key: option.key,
|
|
29356
29372
|
value: option.key
|
|
29357
|
-
}, toDisplayString(option.label), 9, _hoisted_5$
|
|
29373
|
+
}, toDisplayString(option.label), 9, _hoisted_5$9);
|
|
29358
29374
|
}), 128))
|
|
29359
|
-
], 40, _hoisted_4$
|
|
29375
|
+
], 40, _hoisted_4$d), [
|
|
29360
29376
|
[vModelSelect, selectedKey.value]
|
|
29361
29377
|
])
|
|
29362
29378
|
])
|
|
@@ -29370,8 +29386,8 @@ and ensure you are accounting for this risk.
|
|
|
29370
29386
|
class: "lupa-toolbar-right-title"
|
|
29371
29387
|
};
|
|
29372
29388
|
const _hoisted_3$i = { key: 2 };
|
|
29373
|
-
const _hoisted_4$
|
|
29374
|
-
const _hoisted_5$
|
|
29389
|
+
const _hoisted_4$c = { key: 4 };
|
|
29390
|
+
const _hoisted_5$8 = { key: 6 };
|
|
29375
29391
|
const _hoisted_6$5 = { class: "lupa-toolbar-right" };
|
|
29376
29392
|
const _hoisted_7$3 = {
|
|
29377
29393
|
key: 0,
|
|
@@ -29498,13 +29514,13 @@ and ensure you are accounting for this risk.
|
|
|
29498
29514
|
label: searchSummaryLabel.value,
|
|
29499
29515
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
29500
29516
|
onClear: handleClearAll
|
|
29501
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
29517
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
|
|
29502
29518
|
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$F, {
|
|
29503
29519
|
key: 5,
|
|
29504
29520
|
options: paginationOptions.value.pageSelect,
|
|
29505
29521
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
29506
29522
|
"first-page-label": paginationOptions.value.labels.showLess
|
|
29507
|
-
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$
|
|
29523
|
+
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$8))
|
|
29508
29524
|
]),
|
|
29509
29525
|
createBaseVNode("div", _hoisted_6$5, [
|
|
29510
29526
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
@@ -29551,8 +29567,8 @@ and ensure you are accounting for this risk.
|
|
|
29551
29567
|
const _hoisted_1$w = ["title", "innerHTML"];
|
|
29552
29568
|
const _hoisted_2$o = ["title"];
|
|
29553
29569
|
const _hoisted_3$h = ["href", "innerHTML"];
|
|
29554
|
-
const _hoisted_4$
|
|
29555
|
-
const _hoisted_5$
|
|
29570
|
+
const _hoisted_4$b = ["title"];
|
|
29571
|
+
const _hoisted_5$7 = {
|
|
29556
29572
|
key: 0,
|
|
29557
29573
|
class: "lupa-search-results-product-title-text"
|
|
29558
29574
|
};
|
|
@@ -29612,14 +29628,14 @@ and ensure you are accounting for this risk.
|
|
|
29612
29628
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
29613
29629
|
title: title.value
|
|
29614
29630
|
}, [
|
|
29615
|
-
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
29631
|
+
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$7, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
29616
29632
|
_ctx.options.link ? (openBlock(), createElementBlock("a", {
|
|
29617
29633
|
key: 1,
|
|
29618
29634
|
href: _ctx.link,
|
|
29619
29635
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
29620
29636
|
onClick: handleNavigation
|
|
29621
29637
|
}, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
|
|
29622
|
-
], 12, _hoisted_4$
|
|
29638
|
+
], 12, _hoisted_4$b));
|
|
29623
29639
|
};
|
|
29624
29640
|
}
|
|
29625
29641
|
});
|
|
@@ -29662,8 +29678,8 @@ and ensure you are accounting for this risk.
|
|
|
29662
29678
|
const _hoisted_1$u = { id: "lupa-search-results-rating" };
|
|
29663
29679
|
const _hoisted_2$n = { class: "lupa-ratings" };
|
|
29664
29680
|
const _hoisted_3$g = { class: "lupa-ratings-base" };
|
|
29665
|
-
const _hoisted_4$
|
|
29666
|
-
const _hoisted_5$
|
|
29681
|
+
const _hoisted_4$a = ["innerHTML"];
|
|
29682
|
+
const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
|
|
29667
29683
|
const _hoisted_6$3 = ["innerHTML"];
|
|
29668
29684
|
const _hoisted_7$2 = ["href"];
|
|
29669
29685
|
const STAR_COUNT = 5;
|
|
@@ -29712,10 +29728,10 @@ and ensure you are accounting for this risk.
|
|
|
29712
29728
|
key: index,
|
|
29713
29729
|
innerHTML: star,
|
|
29714
29730
|
class: "lupa-rating lupa-rating-not-highlighted"
|
|
29715
|
-
}, null, 8, _hoisted_4$
|
|
29731
|
+
}, null, 8, _hoisted_4$a);
|
|
29716
29732
|
}), 128))
|
|
29717
29733
|
]),
|
|
29718
|
-
createBaseVNode("div", _hoisted_5$
|
|
29734
|
+
createBaseVNode("div", _hoisted_5$6, [
|
|
29719
29735
|
createBaseVNode("div", {
|
|
29720
29736
|
class: "lupa-ratings-highlighted",
|
|
29721
29737
|
style: normalizeStyle({ width: ratingPercentage.value + "%" })
|
|
@@ -29798,14 +29814,17 @@ and ensure you are accounting for this risk.
|
|
|
29798
29814
|
});
|
|
29799
29815
|
const _hoisted_1$s = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
29800
29816
|
const _hoisted_2$m = { class: "lupa-search-results-product-addtocart" };
|
|
29801
|
-
const _hoisted_3$f = ["
|
|
29817
|
+
const _hoisted_3$f = ["disabled"];
|
|
29818
|
+
const _hoisted_4$9 = ["href"];
|
|
29819
|
+
const _hoisted_5$5 = ["id", "disabled", "onClick"];
|
|
29802
29820
|
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
29803
29821
|
__name: "SearchResultsProductAddToCart",
|
|
29804
29822
|
props: {
|
|
29805
29823
|
item: {},
|
|
29806
29824
|
options: {},
|
|
29807
29825
|
inStock: { type: Boolean },
|
|
29808
|
-
dynamicAttributes: {}
|
|
29826
|
+
dynamicAttributes: {},
|
|
29827
|
+
link: {}
|
|
29809
29828
|
},
|
|
29810
29829
|
emits: ["productEvent"],
|
|
29811
29830
|
setup(__props, { emit: emit2 }) {
|
|
@@ -29837,17 +29856,28 @@ and ensure you are accounting for this risk.
|
|
|
29837
29856
|
emit2("productEvent", { type: "addToCart" });
|
|
29838
29857
|
loading.value = false;
|
|
29839
29858
|
});
|
|
29859
|
+
const hasLink = computed(() => {
|
|
29860
|
+
return Boolean(props.link && props.options.link);
|
|
29861
|
+
});
|
|
29840
29862
|
return (_ctx, _cache) => {
|
|
29841
29863
|
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
29842
29864
|
createBaseVNode("div", _hoisted_2$m, [
|
|
29843
|
-
|
|
29865
|
+
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
29866
|
+
key: 0,
|
|
29867
|
+
class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
|
|
29868
|
+
"data-cy": "lupa-add-to-cart",
|
|
29869
|
+
disabled: !inStockValue.value || loading.value
|
|
29870
|
+
}, _ctx.dynamicAttributes, { onClick: handleClick }), [
|
|
29871
|
+
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$9)
|
|
29872
|
+
], 16, _hoisted_3$f)) : (openBlock(), createElementBlock("button", mergeProps({
|
|
29873
|
+
key: 1,
|
|
29844
29874
|
id: id.value,
|
|
29845
29875
|
class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
|
|
29846
29876
|
"data-cy": "lupa-add-to-cart",
|
|
29847
29877
|
disabled: !inStockValue.value || loading.value
|
|
29848
29878
|
}, _ctx.dynamicAttributes, {
|
|
29849
29879
|
onClick: withModifiers(handleClick, ["stop"])
|
|
29850
|
-
}), toDisplayString(label.value), 17,
|
|
29880
|
+
}), toDisplayString(label.value), 17, _hoisted_5$5))
|
|
29851
29881
|
])
|
|
29852
29882
|
]);
|
|
29853
29883
|
};
|
|
@@ -30860,7 +30890,7 @@ and ensure you are accounting for this risk.
|
|
|
30860
30890
|
const searchResultStore = useSearchResultStore();
|
|
30861
30891
|
const paramsStore = useParamsStore();
|
|
30862
30892
|
const optionsStore = useOptionsStore();
|
|
30863
|
-
const { searchResult } = storeToRefs(searchResultStore);
|
|
30893
|
+
const { searchResult, lastResultsSource } = storeToRefs(searchResultStore);
|
|
30864
30894
|
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
30865
30895
|
const relatedQueries = ref([]);
|
|
30866
30896
|
const allDisplayItems = ref({});
|
|
@@ -30886,8 +30916,12 @@ and ensure you are accounting for this risk.
|
|
|
30886
30916
|
return filters;
|
|
30887
30917
|
});
|
|
30888
30918
|
watch(searchResult, () => __async2(this, null, function* () {
|
|
30919
|
+
var _a;
|
|
30889
30920
|
allDisplayItems.value = {};
|
|
30890
30921
|
querySourceResultMap.value = {};
|
|
30922
|
+
if (((_a = searchResult.value) == null ? void 0 : _a.searchText) === void 0 || lastResultsSource.value !== "items") {
|
|
30923
|
+
return;
|
|
30924
|
+
}
|
|
30891
30925
|
if (!props.options || !searchResult.value) {
|
|
30892
30926
|
relatedQueries.value = [];
|
|
30893
30927
|
}
|
|
@@ -31488,7 +31522,12 @@ and ensure you are accounting for this risk.
|
|
|
31488
31522
|
const hasResults2 = Boolean(
|
|
31489
31523
|
results.total > 0 || ((_a = results.similarQueries) == null ? void 0 : _a.length) || ((_b = results.didYouMean) == null ? void 0 : _b.options) || ((_d = (_c = results.similarResults) == null ? void 0 : _c.items) == null ? void 0 : _d.length)
|
|
31490
31524
|
);
|
|
31491
|
-
(_f = (_e = props.options.callbacks) == null ? void 0 : _e.onSearchResults) == null ? void 0 : _f.call(_e, {
|
|
31525
|
+
(_f = (_e = props.options.callbacks) == null ? void 0 : _e.onSearchResults) == null ? void 0 : _f.call(_e, {
|
|
31526
|
+
queryKey,
|
|
31527
|
+
hasResults: hasResults2,
|
|
31528
|
+
params: paramStore.params,
|
|
31529
|
+
results
|
|
31530
|
+
});
|
|
31492
31531
|
if (!hasResults2) {
|
|
31493
31532
|
return;
|
|
31494
31533
|
}
|
|
@@ -31547,7 +31586,7 @@ and ensure you are accounting for this risk.
|
|
|
31547
31586
|
if (!res.success) {
|
|
31548
31587
|
return;
|
|
31549
31588
|
}
|
|
31550
|
-
searchResultStore.addPartial(requestId, __spreadValues2({}, res));
|
|
31589
|
+
searchResultStore.addPartial(requestId, __spreadValues2({}, res), "facets");
|
|
31551
31590
|
}).catch((err) => {
|
|
31552
31591
|
console.error(err);
|
|
31553
31592
|
}).finally(() => {
|
|
@@ -31565,7 +31604,11 @@ and ensure you are accounting for this risk.
|
|
|
31565
31604
|
if (!res.success) {
|
|
31566
31605
|
return;
|
|
31567
31606
|
}
|
|
31568
|
-
searchResultStore.addPartial(
|
|
31607
|
+
searchResultStore.addPartial(
|
|
31608
|
+
requestId,
|
|
31609
|
+
__spreadValues2({}, res),
|
|
31610
|
+
"refiners"
|
|
31611
|
+
);
|
|
31569
31612
|
}).catch((err) => {
|
|
31570
31613
|
console.error(err);
|
|
31571
31614
|
}).finally(() => {
|