@getlupa/client 1.17.10 → 1.17.13
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 +141 -90
- package/dist/lupaSearch.js +141 -90
- package/dist/lupaSearch.mjs +141 -90
- package/dist/lupaSearch.umd.js +141 -90
- 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
|
}
|
|
@@ -25365,6 +25381,8 @@ and ensure you are accounting for this risk.
|
|
|
25365
25381
|
return extractFromStorage(options);
|
|
25366
25382
|
case "htmlElementText":
|
|
25367
25383
|
return extractFromHtmlElementText(options);
|
|
25384
|
+
case "htmlElementAttribute":
|
|
25385
|
+
return extractFromHtmlElementAttribute(options);
|
|
25368
25386
|
case "cookie":
|
|
25369
25387
|
return extractFromCookie(options);
|
|
25370
25388
|
default:
|
|
@@ -25408,6 +25426,17 @@ and ensure you are accounting for this risk.
|
|
|
25408
25426
|
const element = document.querySelector(options.querySelector);
|
|
25409
25427
|
return element ? ((_a = element.textContent) == null ? void 0 : _a.trim()) || options.default : options.default;
|
|
25410
25428
|
};
|
|
25429
|
+
const extractFromHtmlElementAttribute = (options) => {
|
|
25430
|
+
const element = document.querySelector(options.querySelector);
|
|
25431
|
+
if (!element) {
|
|
25432
|
+
return options.default;
|
|
25433
|
+
}
|
|
25434
|
+
const attr = options.attribute;
|
|
25435
|
+
if (attr === "value" && (element == null ? void 0 : element.value)) {
|
|
25436
|
+
return element.value;
|
|
25437
|
+
}
|
|
25438
|
+
return element.getAttribute(attr) || options.default;
|
|
25439
|
+
};
|
|
25411
25440
|
const getValueFromPath = (obj, path) => {
|
|
25412
25441
|
return path.split(".").reduce((value, key) => value && value[key] || null, obj);
|
|
25413
25442
|
};
|
|
@@ -25623,11 +25652,11 @@ and ensure you are accounting for this risk.
|
|
|
25623
25652
|
key: 0,
|
|
25624
25653
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
25625
25654
|
};
|
|
25626
|
-
const _hoisted_4$
|
|
25655
|
+
const _hoisted_4$p = {
|
|
25627
25656
|
key: 1,
|
|
25628
25657
|
class: "lupa-panel-title"
|
|
25629
25658
|
};
|
|
25630
|
-
const _hoisted_5$
|
|
25659
|
+
const _hoisted_5$g = {
|
|
25631
25660
|
key: 1,
|
|
25632
25661
|
id: "lupa-search-box-panel"
|
|
25633
25662
|
};
|
|
@@ -25816,7 +25845,7 @@ and ensure you are accounting for this risk.
|
|
|
25816
25845
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
25817
25846
|
}, [
|
|
25818
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),
|
|
25819
|
-
((_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),
|
|
25820
25849
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
25821
25850
|
key: 2,
|
|
25822
25851
|
panel,
|
|
@@ -25851,7 +25880,7 @@ and ensure you are accounting for this risk.
|
|
|
25851
25880
|
options: _ctx.options,
|
|
25852
25881
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
25853
25882
|
}, null, 8, ["labels", "options"])) : createCommentVNode("", true)
|
|
25854
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
25883
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
|
|
25855
25884
|
createVNode(_sfc_main$1s, {
|
|
25856
25885
|
options: _ctx.options.history,
|
|
25857
25886
|
history: history.value,
|
|
@@ -26314,7 +26343,7 @@ and ensure you are accounting for this risk.
|
|
|
26314
26343
|
key: 1,
|
|
26315
26344
|
"data-cy": "did-you-mean-label"
|
|
26316
26345
|
};
|
|
26317
|
-
const _hoisted_4$
|
|
26346
|
+
const _hoisted_4$o = { key: 1 };
|
|
26318
26347
|
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
26319
26348
|
__name: "SearchResultsDidYouMean",
|
|
26320
26349
|
props: {
|
|
@@ -26365,7 +26394,7 @@ and ensure you are accounting for this risk.
|
|
|
26365
26394
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
26366
26395
|
"data-cy": "did-you-mean-value",
|
|
26367
26396
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
26368
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
26397
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
|
|
26369
26398
|
]);
|
|
26370
26399
|
}), 128))
|
|
26371
26400
|
])) : createCommentVNode("", true)
|
|
@@ -26415,8 +26444,8 @@ and ensure you are accounting for this risk.
|
|
|
26415
26444
|
key: 1,
|
|
26416
26445
|
class: "lupa-results-total-count"
|
|
26417
26446
|
};
|
|
26418
|
-
const _hoisted_4$
|
|
26419
|
-
const _hoisted_5$
|
|
26447
|
+
const _hoisted_4$n = { class: "lupa-results-total-count-number" };
|
|
26448
|
+
const _hoisted_5$f = ["innerHTML"];
|
|
26420
26449
|
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
26421
26450
|
__name: "SearchResultsTitle",
|
|
26422
26451
|
props: {
|
|
@@ -26465,7 +26494,7 @@ and ensure you are accounting for this risk.
|
|
|
26465
26494
|
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$E, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
26466
26495
|
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$u, [
|
|
26467
26496
|
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
26468
|
-
createBaseVNode("span", _hoisted_4$
|
|
26497
|
+
createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
|
|
26469
26498
|
createTextVNode(")")
|
|
26470
26499
|
])) : createCommentVNode("", true)
|
|
26471
26500
|
])) : createCommentVNode("", true),
|
|
@@ -26477,7 +26506,7 @@ and ensure you are accounting for this risk.
|
|
|
26477
26506
|
key: 2,
|
|
26478
26507
|
class: "lupa-result-page-description-top",
|
|
26479
26508
|
innerHTML: descriptionTop.value
|
|
26480
|
-
}, null, 8, _hoisted_5$
|
|
26509
|
+
}, null, 8, _hoisted_5$f)) : createCommentVNode("", true)
|
|
26481
26510
|
]);
|
|
26482
26511
|
};
|
|
26483
26512
|
}
|
|
@@ -26527,7 +26556,7 @@ and ensure you are accounting for this risk.
|
|
|
26527
26556
|
key: 0,
|
|
26528
26557
|
class: "filter-values"
|
|
26529
26558
|
};
|
|
26530
|
-
const _hoisted_4$
|
|
26559
|
+
const _hoisted_4$m = { class: "lupa-current-filter-list" };
|
|
26531
26560
|
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
26532
26561
|
__name: "CurrentFilters",
|
|
26533
26562
|
props: {
|
|
@@ -26611,7 +26640,7 @@ and ensure you are accounting for this risk.
|
|
|
26611
26640
|
}, null, 2)) : createCommentVNode("", true)
|
|
26612
26641
|
]),
|
|
26613
26642
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
26614
|
-
createBaseVNode("div", _hoisted_4$
|
|
26643
|
+
createBaseVNode("div", _hoisted_4$m, [
|
|
26615
26644
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
|
|
26616
26645
|
return openBlock(), createBlock(_sfc_main$Y, {
|
|
26617
26646
|
key: filter2.key + "_" + filter2.value,
|
|
@@ -26679,8 +26708,8 @@ and ensure you are accounting for this risk.
|
|
|
26679
26708
|
};
|
|
26680
26709
|
const _hoisted_2$B = { class: "lupa-category-back" };
|
|
26681
26710
|
const _hoisted_3$s = ["href"];
|
|
26682
|
-
const _hoisted_4$
|
|
26683
|
-
const _hoisted_5$
|
|
26711
|
+
const _hoisted_4$l = ["href"];
|
|
26712
|
+
const _hoisted_5$e = { class: "lupa-child-category-list" };
|
|
26684
26713
|
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
26685
26714
|
__name: "CategoryFilter",
|
|
26686
26715
|
props: {
|
|
@@ -26786,9 +26815,9 @@ and ensure you are accounting for this risk.
|
|
|
26786
26815
|
href: parentUrlLink.value,
|
|
26787
26816
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
26788
26817
|
onClick: handleNavigationParent
|
|
26789
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
26818
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
|
|
26790
26819
|
], 2),
|
|
26791
|
-
createBaseVNode("div", _hoisted_5$
|
|
26820
|
+
createBaseVNode("div", _hoisted_5$e, [
|
|
26792
26821
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
26793
26822
|
return openBlock(), createBlock(_sfc_main$W, {
|
|
26794
26823
|
key: getCategoryKey(child),
|
|
@@ -26807,8 +26836,8 @@ and ensure you are accounting for this risk.
|
|
|
26807
26836
|
};
|
|
26808
26837
|
const _hoisted_2$A = ["placeholder"];
|
|
26809
26838
|
const _hoisted_3$r = { class: "lupa-terms-list" };
|
|
26810
|
-
const _hoisted_4$
|
|
26811
|
-
const _hoisted_5$
|
|
26839
|
+
const _hoisted_4$k = ["onClick"];
|
|
26840
|
+
const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
|
|
26812
26841
|
const _hoisted_6$8 = { class: "lupa-term-label" };
|
|
26813
26842
|
const _hoisted_7$6 = {
|
|
26814
26843
|
key: 0,
|
|
@@ -26923,7 +26952,7 @@ and ensure you are accounting for this risk.
|
|
|
26923
26952
|
key: item.title,
|
|
26924
26953
|
onClick: ($event) => handleFacetClick(item)
|
|
26925
26954
|
}, [
|
|
26926
|
-
createBaseVNode("div", _hoisted_5$
|
|
26955
|
+
createBaseVNode("div", _hoisted_5$d, [
|
|
26927
26956
|
createBaseVNode("span", {
|
|
26928
26957
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
26929
26958
|
}, null, 2)
|
|
@@ -26934,7 +26963,7 @@ and ensure you are accounting for this risk.
|
|
|
26934
26963
|
createBaseVNode("span", _hoisted_6$8, toDisplayString(getItemLabel(item)), 1),
|
|
26935
26964
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_7$6, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
26936
26965
|
], 2)
|
|
26937
|
-
], 10, _hoisted_4$
|
|
26966
|
+
], 10, _hoisted_4$k);
|
|
26938
26967
|
}), 128))
|
|
26939
26968
|
]),
|
|
26940
26969
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -27934,11 +27963,11 @@ and ensure you are accounting for this risk.
|
|
|
27934
27963
|
key: 1,
|
|
27935
27964
|
class: "lupa-stats-facet-summary-input"
|
|
27936
27965
|
};
|
|
27937
|
-
const _hoisted_4$
|
|
27966
|
+
const _hoisted_4$j = {
|
|
27938
27967
|
key: 0,
|
|
27939
27968
|
class: "lupa-stats-range-label"
|
|
27940
27969
|
};
|
|
27941
|
-
const _hoisted_5$
|
|
27970
|
+
const _hoisted_5$c = { class: "lupa-stats-from" };
|
|
27942
27971
|
const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
|
|
27943
27972
|
const _hoisted_7$5 = { key: 0 };
|
|
27944
27973
|
const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
@@ -28137,8 +28166,8 @@ and ensure you are accounting for this risk.
|
|
|
28137
28166
|
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
28138
28167
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
|
|
28139
28168
|
createBaseVNode("div", null, [
|
|
28140
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
28141
|
-
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, [
|
|
28142
28171
|
withDirectives(createBaseVNode("input", {
|
|
28143
28172
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
28144
28173
|
type: "text",
|
|
@@ -28207,7 +28236,7 @@ and ensure you are accounting for this risk.
|
|
|
28207
28236
|
key: 0,
|
|
28208
28237
|
class: "lupa-term-count"
|
|
28209
28238
|
};
|
|
28210
|
-
const _hoisted_4$
|
|
28239
|
+
const _hoisted_4$i = {
|
|
28211
28240
|
key: 0,
|
|
28212
28241
|
class: "lupa-facet-level"
|
|
28213
28242
|
};
|
|
@@ -28276,7 +28305,7 @@ and ensure you are accounting for this risk.
|
|
|
28276
28305
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$p, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
28277
28306
|
], 2)
|
|
28278
28307
|
]),
|
|
28279
|
-
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
28308
|
+
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, [
|
|
28280
28309
|
(openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
|
|
28281
28310
|
return openBlock(), createBlock(_component_HierarchyFacetLevel, {
|
|
28282
28311
|
key: itemChild.title,
|
|
@@ -28809,8 +28838,8 @@ and ensure you are accounting for this risk.
|
|
|
28809
28838
|
};
|
|
28810
28839
|
const _hoisted_2$u = ["onClick"];
|
|
28811
28840
|
const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
|
|
28812
|
-
const _hoisted_4$
|
|
28813
|
-
const _hoisted_5$
|
|
28841
|
+
const _hoisted_4$h = { class: "lupa-sidebar-top" };
|
|
28842
|
+
const _hoisted_5$b = { class: "lupa-sidebar-title" };
|
|
28814
28843
|
const _hoisted_6$6 = {
|
|
28815
28844
|
key: 0,
|
|
28816
28845
|
class: "lupa-sidebar-filter-count"
|
|
@@ -28853,8 +28882,8 @@ and ensure you are accounting for this risk.
|
|
|
28853
28882
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
28854
28883
|
}, null, 8, _hoisted_2$u),
|
|
28855
28884
|
createBaseVNode("div", _hoisted_3$n, [
|
|
28856
|
-
createBaseVNode("div", _hoisted_4$
|
|
28857
|
-
createBaseVNode("div", _hoisted_5$
|
|
28885
|
+
createBaseVNode("div", _hoisted_4$h, [
|
|
28886
|
+
createBaseVNode("div", _hoisted_5$b, [
|
|
28858
28887
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
28859
28888
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
28860
28889
|
]),
|
|
@@ -28881,7 +28910,7 @@ and ensure you are accounting for this risk.
|
|
|
28881
28910
|
key: 1,
|
|
28882
28911
|
class: "lupa-search-results-breadcrumb-text"
|
|
28883
28912
|
};
|
|
28884
|
-
const _hoisted_4$
|
|
28913
|
+
const _hoisted_4$g = { key: 2 };
|
|
28885
28914
|
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
28886
28915
|
__name: "SearchResultsBreadcrumbs",
|
|
28887
28916
|
props: {
|
|
@@ -28923,7 +28952,7 @@ and ensure you are accounting for this risk.
|
|
|
28923
28952
|
return handleNavigation(e2, (_a2 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a2 : "");
|
|
28924
28953
|
}
|
|
28925
28954
|
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
28926
|
-
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)
|
|
28927
28956
|
]);
|
|
28928
28957
|
}), 128))
|
|
28929
28958
|
]);
|
|
@@ -29085,7 +29114,7 @@ and ensure you are accounting for this risk.
|
|
|
29085
29114
|
class: "lupa-page-number-separator"
|
|
29086
29115
|
};
|
|
29087
29116
|
const _hoisted_3$l = ["onClick"];
|
|
29088
|
-
const _hoisted_4$
|
|
29117
|
+
const _hoisted_4$f = {
|
|
29089
29118
|
key: 0,
|
|
29090
29119
|
class: "lupa-page-number-separator"
|
|
29091
29120
|
};
|
|
@@ -29191,7 +29220,7 @@ and ensure you are accounting for this risk.
|
|
|
29191
29220
|
}, toDisplayString(page), 11, _hoisted_3$l);
|
|
29192
29221
|
}), 128)),
|
|
29193
29222
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
29194
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
29223
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
|
|
29195
29224
|
createBaseVNode("div", {
|
|
29196
29225
|
class: "lupa-page-number lupa-page-number-last",
|
|
29197
29226
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -29216,8 +29245,8 @@ and ensure you are accounting for this risk.
|
|
|
29216
29245
|
};
|
|
29217
29246
|
const _hoisted_2$r = { id: "lupa-select" };
|
|
29218
29247
|
const _hoisted_3$k = { class: "lupa-select-label" };
|
|
29219
|
-
const _hoisted_4$
|
|
29220
|
-
const _hoisted_5$
|
|
29248
|
+
const _hoisted_4$e = ["aria-label"];
|
|
29249
|
+
const _hoisted_5$a = ["value"];
|
|
29221
29250
|
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
29222
29251
|
__name: "SearchResultsPageSize",
|
|
29223
29252
|
props: {
|
|
@@ -29261,9 +29290,9 @@ and ensure you are accounting for this risk.
|
|
|
29261
29290
|
return openBlock(), createElementBlock("option", {
|
|
29262
29291
|
key: option,
|
|
29263
29292
|
value: option
|
|
29264
|
-
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$
|
|
29293
|
+
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$a);
|
|
29265
29294
|
}), 128))
|
|
29266
|
-
], 40, _hoisted_4$
|
|
29295
|
+
], 40, _hoisted_4$e)
|
|
29267
29296
|
])
|
|
29268
29297
|
]);
|
|
29269
29298
|
};
|
|
@@ -29275,8 +29304,8 @@ and ensure you are accounting for this risk.
|
|
|
29275
29304
|
};
|
|
29276
29305
|
const _hoisted_2$q = { id: "lupa-select" };
|
|
29277
29306
|
const _hoisted_3$j = { class: "lupa-select-label" };
|
|
29278
|
-
const _hoisted_4$
|
|
29279
|
-
const _hoisted_5$
|
|
29307
|
+
const _hoisted_4$d = ["aria-label"];
|
|
29308
|
+
const _hoisted_5$9 = ["value"];
|
|
29280
29309
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
29281
29310
|
__name: "SearchResultsSort",
|
|
29282
29311
|
props: {
|
|
@@ -29341,9 +29370,9 @@ and ensure you are accounting for this risk.
|
|
|
29341
29370
|
return openBlock(), createElementBlock("option", {
|
|
29342
29371
|
key: option.key,
|
|
29343
29372
|
value: option.key
|
|
29344
|
-
}, toDisplayString(option.label), 9, _hoisted_5$
|
|
29373
|
+
}, toDisplayString(option.label), 9, _hoisted_5$9);
|
|
29345
29374
|
}), 128))
|
|
29346
|
-
], 40, _hoisted_4$
|
|
29375
|
+
], 40, _hoisted_4$d), [
|
|
29347
29376
|
[vModelSelect, selectedKey.value]
|
|
29348
29377
|
])
|
|
29349
29378
|
])
|
|
@@ -29357,8 +29386,8 @@ and ensure you are accounting for this risk.
|
|
|
29357
29386
|
class: "lupa-toolbar-right-title"
|
|
29358
29387
|
};
|
|
29359
29388
|
const _hoisted_3$i = { key: 2 };
|
|
29360
|
-
const _hoisted_4$
|
|
29361
|
-
const _hoisted_5$
|
|
29389
|
+
const _hoisted_4$c = { key: 4 };
|
|
29390
|
+
const _hoisted_5$8 = { key: 6 };
|
|
29362
29391
|
const _hoisted_6$5 = { class: "lupa-toolbar-right" };
|
|
29363
29392
|
const _hoisted_7$3 = {
|
|
29364
29393
|
key: 0,
|
|
@@ -29485,13 +29514,13 @@ and ensure you are accounting for this risk.
|
|
|
29485
29514
|
label: searchSummaryLabel.value,
|
|
29486
29515
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
29487
29516
|
onClear: handleClearAll
|
|
29488
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
29517
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
|
|
29489
29518
|
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$F, {
|
|
29490
29519
|
key: 5,
|
|
29491
29520
|
options: paginationOptions.value.pageSelect,
|
|
29492
29521
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
29493
29522
|
"first-page-label": paginationOptions.value.labels.showLess
|
|
29494
|
-
}, 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))
|
|
29495
29524
|
]),
|
|
29496
29525
|
createBaseVNode("div", _hoisted_6$5, [
|
|
29497
29526
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
@@ -29538,8 +29567,8 @@ and ensure you are accounting for this risk.
|
|
|
29538
29567
|
const _hoisted_1$w = ["title", "innerHTML"];
|
|
29539
29568
|
const _hoisted_2$o = ["title"];
|
|
29540
29569
|
const _hoisted_3$h = ["href", "innerHTML"];
|
|
29541
|
-
const _hoisted_4$
|
|
29542
|
-
const _hoisted_5$
|
|
29570
|
+
const _hoisted_4$b = ["title"];
|
|
29571
|
+
const _hoisted_5$7 = {
|
|
29543
29572
|
key: 0,
|
|
29544
29573
|
class: "lupa-search-results-product-title-text"
|
|
29545
29574
|
};
|
|
@@ -29599,14 +29628,14 @@ and ensure you are accounting for this risk.
|
|
|
29599
29628
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
29600
29629
|
title: title.value
|
|
29601
29630
|
}, [
|
|
29602
|
-
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
29631
|
+
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$7, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
29603
29632
|
_ctx.options.link ? (openBlock(), createElementBlock("a", {
|
|
29604
29633
|
key: 1,
|
|
29605
29634
|
href: _ctx.link,
|
|
29606
29635
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
29607
29636
|
onClick: handleNavigation
|
|
29608
29637
|
}, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
|
|
29609
|
-
], 12, _hoisted_4$
|
|
29638
|
+
], 12, _hoisted_4$b));
|
|
29610
29639
|
};
|
|
29611
29640
|
}
|
|
29612
29641
|
});
|
|
@@ -29649,8 +29678,8 @@ and ensure you are accounting for this risk.
|
|
|
29649
29678
|
const _hoisted_1$u = { id: "lupa-search-results-rating" };
|
|
29650
29679
|
const _hoisted_2$n = { class: "lupa-ratings" };
|
|
29651
29680
|
const _hoisted_3$g = { class: "lupa-ratings-base" };
|
|
29652
|
-
const _hoisted_4$
|
|
29653
|
-
const _hoisted_5$
|
|
29681
|
+
const _hoisted_4$a = ["innerHTML"];
|
|
29682
|
+
const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
|
|
29654
29683
|
const _hoisted_6$3 = ["innerHTML"];
|
|
29655
29684
|
const _hoisted_7$2 = ["href"];
|
|
29656
29685
|
const STAR_COUNT = 5;
|
|
@@ -29699,10 +29728,10 @@ and ensure you are accounting for this risk.
|
|
|
29699
29728
|
key: index,
|
|
29700
29729
|
innerHTML: star,
|
|
29701
29730
|
class: "lupa-rating lupa-rating-not-highlighted"
|
|
29702
|
-
}, null, 8, _hoisted_4$
|
|
29731
|
+
}, null, 8, _hoisted_4$a);
|
|
29703
29732
|
}), 128))
|
|
29704
29733
|
]),
|
|
29705
|
-
createBaseVNode("div", _hoisted_5$
|
|
29734
|
+
createBaseVNode("div", _hoisted_5$6, [
|
|
29706
29735
|
createBaseVNode("div", {
|
|
29707
29736
|
class: "lupa-ratings-highlighted",
|
|
29708
29737
|
style: normalizeStyle({ width: ratingPercentage.value + "%" })
|
|
@@ -29785,14 +29814,17 @@ and ensure you are accounting for this risk.
|
|
|
29785
29814
|
});
|
|
29786
29815
|
const _hoisted_1$s = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
29787
29816
|
const _hoisted_2$m = { class: "lupa-search-results-product-addtocart" };
|
|
29788
|
-
const _hoisted_3$f = ["
|
|
29817
|
+
const _hoisted_3$f = ["disabled"];
|
|
29818
|
+
const _hoisted_4$9 = ["href"];
|
|
29819
|
+
const _hoisted_5$5 = ["id", "disabled", "onClick"];
|
|
29789
29820
|
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
29790
29821
|
__name: "SearchResultsProductAddToCart",
|
|
29791
29822
|
props: {
|
|
29792
29823
|
item: {},
|
|
29793
29824
|
options: {},
|
|
29794
29825
|
inStock: { type: Boolean },
|
|
29795
|
-
dynamicAttributes: {}
|
|
29826
|
+
dynamicAttributes: {},
|
|
29827
|
+
link: {}
|
|
29796
29828
|
},
|
|
29797
29829
|
emits: ["productEvent"],
|
|
29798
29830
|
setup(__props, { emit: emit2 }) {
|
|
@@ -29824,17 +29856,28 @@ and ensure you are accounting for this risk.
|
|
|
29824
29856
|
emit2("productEvent", { type: "addToCart" });
|
|
29825
29857
|
loading.value = false;
|
|
29826
29858
|
});
|
|
29859
|
+
const hasLink = computed(() => {
|
|
29860
|
+
return Boolean(props.link && props.options.link);
|
|
29861
|
+
});
|
|
29827
29862
|
return (_ctx, _cache) => {
|
|
29828
29863
|
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
29829
29864
|
createBaseVNode("div", _hoisted_2$m, [
|
|
29830
|
-
|
|
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,
|
|
29831
29874
|
id: id.value,
|
|
29832
29875
|
class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
|
|
29833
29876
|
"data-cy": "lupa-add-to-cart",
|
|
29834
29877
|
disabled: !inStockValue.value || loading.value
|
|
29835
29878
|
}, _ctx.dynamicAttributes, {
|
|
29836
29879
|
onClick: withModifiers(handleClick, ["stop"])
|
|
29837
|
-
}), toDisplayString(label.value), 17,
|
|
29880
|
+
}), toDisplayString(label.value), 17, _hoisted_5$5))
|
|
29838
29881
|
])
|
|
29839
29882
|
]);
|
|
29840
29883
|
};
|
|
@@ -30847,7 +30890,7 @@ and ensure you are accounting for this risk.
|
|
|
30847
30890
|
const searchResultStore = useSearchResultStore();
|
|
30848
30891
|
const paramsStore = useParamsStore();
|
|
30849
30892
|
const optionsStore = useOptionsStore();
|
|
30850
|
-
const { searchResult } = storeToRefs(searchResultStore);
|
|
30893
|
+
const { searchResult, lastResultsSource } = storeToRefs(searchResultStore);
|
|
30851
30894
|
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
30852
30895
|
const relatedQueries = ref([]);
|
|
30853
30896
|
const allDisplayItems = ref({});
|
|
@@ -30873,8 +30916,12 @@ and ensure you are accounting for this risk.
|
|
|
30873
30916
|
return filters;
|
|
30874
30917
|
});
|
|
30875
30918
|
watch(searchResult, () => __async2(this, null, function* () {
|
|
30919
|
+
var _a;
|
|
30876
30920
|
allDisplayItems.value = {};
|
|
30877
30921
|
querySourceResultMap.value = {};
|
|
30922
|
+
if (((_a = searchResult.value) == null ? void 0 : _a.searchText) === void 0 || lastResultsSource.value !== "items") {
|
|
30923
|
+
return;
|
|
30924
|
+
}
|
|
30878
30925
|
if (!props.options || !searchResult.value) {
|
|
30879
30926
|
relatedQueries.value = [];
|
|
30880
30927
|
}
|
|
@@ -31534,7 +31581,7 @@ and ensure you are accounting for this risk.
|
|
|
31534
31581
|
if (!res.success) {
|
|
31535
31582
|
return;
|
|
31536
31583
|
}
|
|
31537
|
-
searchResultStore.addPartial(requestId, __spreadValues2({}, res));
|
|
31584
|
+
searchResultStore.addPartial(requestId, __spreadValues2({}, res), "facets");
|
|
31538
31585
|
}).catch((err) => {
|
|
31539
31586
|
console.error(err);
|
|
31540
31587
|
}).finally(() => {
|
|
@@ -31552,7 +31599,11 @@ and ensure you are accounting for this risk.
|
|
|
31552
31599
|
if (!res.success) {
|
|
31553
31600
|
return;
|
|
31554
31601
|
}
|
|
31555
|
-
searchResultStore.addPartial(
|
|
31602
|
+
searchResultStore.addPartial(
|
|
31603
|
+
requestId,
|
|
31604
|
+
__spreadValues2({}, res),
|
|
31605
|
+
"refiners"
|
|
31606
|
+
);
|
|
31556
31607
|
}).catch((err) => {
|
|
31557
31608
|
console.error(err);
|
|
31558
31609
|
}).finally(() => {
|