@getlupa/vue 0.24.3 → 0.25.0
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/components/common/skeleton/LoadingBlock.vue.d.ts +24 -0
- package/dist/components/common/skeleton/LoadingGrid.vue.d.ts +23 -0
- package/dist/components/common/skeleton/SkeletonBlock.vue.d.ts +5 -0
- package/dist/components/common/skeleton/SkeletonText.vue.d.ts +8 -0
- package/dist/components/product-list/ProductList.vue.d.ts +2 -2
- package/dist/components/search-container/SearchContainer.vue.d.ts +2 -2
- package/dist/components/search-results/SearchResults.vue.d.ts +2 -2
- package/dist/components/search-results/SearchResultsBreadcrumbs.vue.d.ts +1 -1
- package/dist/components/search-results/products/SearchResultsProducts.vue.d.ts +2 -2
- package/dist/components/search-results/products/similar-queries/SearchResultsSimilarQueries.vue.d.ts +1 -1
- package/dist/components/search-results/products/similar-results/SearchResultsSimilarResults.vue.d.ts +1 -1
- package/dist/composables/useLoadingSkeleton.d.ts +10 -0
- package/dist/lupaContainerStyle.css +1 -1
- package/dist/lupaSearch.js +709 -485
- package/dist/lupaSearch.mjs +709 -485
- package/dist/stores/params.d.ts +6 -9
- package/dist/stores/searchResult.d.ts +4 -1
- package/dist/style.css +1 -1
- package/dist/types/search-results/SearchResultsOptions.d.ts +3 -0
- package/dist/utils/params.utils.d.ts +1 -1
- package/package.json +1 -1
package/dist/lupaSearch.mjs
CHANGED
|
@@ -12587,17 +12587,27 @@ const getPageCount = (total, limit) => {
|
|
|
12587
12587
|
const isObject = (value) => {
|
|
12588
12588
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
12589
12589
|
};
|
|
12590
|
-
const
|
|
12591
|
-
const value = params.get(key);
|
|
12590
|
+
const decodeParam = (value) => {
|
|
12592
12591
|
if (!value) {
|
|
12593
12592
|
return void 0;
|
|
12594
12593
|
}
|
|
12594
|
+
try {
|
|
12595
|
+
if (!/%[0-9A-Fa-f]{2}/.test(value)) {
|
|
12596
|
+
return value;
|
|
12597
|
+
}
|
|
12598
|
+
} catch (e2) {
|
|
12599
|
+
return value;
|
|
12600
|
+
}
|
|
12595
12601
|
try {
|
|
12596
12602
|
return decodeURIComponent(value);
|
|
12597
12603
|
} catch (e2) {
|
|
12598
|
-
return
|
|
12604
|
+
return value;
|
|
12599
12605
|
}
|
|
12600
12606
|
};
|
|
12607
|
+
const parseParam = (key, params) => {
|
|
12608
|
+
const value = params.get(key);
|
|
12609
|
+
return decodeParam(value != null ? value : void 0);
|
|
12610
|
+
};
|
|
12601
12611
|
const parseRegularKeys = (regularKeys, searchParams, getQueryParamName) => {
|
|
12602
12612
|
const params = /* @__PURE__ */ Object.create({});
|
|
12603
12613
|
const keys = reverseKeyValue({
|
|
@@ -12615,7 +12625,7 @@ const parseRegularKeys = (regularKeys, searchParams, getQueryParamName) => {
|
|
|
12615
12625
|
const parseFacetKey = (key, searchParams) => {
|
|
12616
12626
|
var _a25, _b25, _c, _d;
|
|
12617
12627
|
if (key.startsWith(FACET_PARAMS_TYPE.TERMS)) {
|
|
12618
|
-
return (_b25 = (_a25 = searchParams.getAll(key)) == null ? void 0 : _a25.map((v) =>
|
|
12628
|
+
return (_b25 = (_a25 = searchParams.getAll(key)) == null ? void 0 : _a25.map((v) => decodeParam(v))) != null ? _b25 : [];
|
|
12619
12629
|
}
|
|
12620
12630
|
if (key.startsWith(FACET_PARAMS_TYPE.RANGE) || key.startsWith(FACET_PARAMS_TYPE.PARTIAL_RANGE)) {
|
|
12621
12631
|
const range2 = searchParams.get(key);
|
|
@@ -12631,7 +12641,7 @@ const parseFacetKey = (key, searchParams) => {
|
|
|
12631
12641
|
if (key.startsWith(FACET_PARAMS_TYPE.HIERARCHY)) {
|
|
12632
12642
|
return {
|
|
12633
12643
|
level: 0,
|
|
12634
|
-
terms: (_d = (_c = searchParams.getAll(key)) == null ? void 0 : _c.map((v) =>
|
|
12644
|
+
terms: (_d = (_c = searchParams.getAll(key)) == null ? void 0 : _c.map((v) => decodeParam(v))) != null ? _d : []
|
|
12635
12645
|
};
|
|
12636
12646
|
}
|
|
12637
12647
|
return [];
|
|
@@ -12658,15 +12668,15 @@ const parseParams = (getQueryParamName, searchParams) => {
|
|
|
12658
12668
|
}, parseRegularKeys(regularKeys, searchParams, getQueryParamName)), parseFacetKeys(facetKeys, searchParams));
|
|
12659
12669
|
return r;
|
|
12660
12670
|
};
|
|
12661
|
-
const appendParam = (url, { name, value }
|
|
12671
|
+
const appendParam = (url, { name, value }) => {
|
|
12662
12672
|
if (Array.isArray(value)) {
|
|
12663
12673
|
appendArrayParams(url, { name, value });
|
|
12664
12674
|
} else {
|
|
12665
|
-
appendSingleParam(url, { name, value }
|
|
12675
|
+
appendSingleParam(url, { name, value });
|
|
12666
12676
|
}
|
|
12667
12677
|
};
|
|
12668
|
-
const appendSingleParam = (url, param
|
|
12669
|
-
const valueToAppend =
|
|
12678
|
+
const appendSingleParam = (url, param) => {
|
|
12679
|
+
const valueToAppend = param.value;
|
|
12670
12680
|
if (url.searchParams.has(param.name)) {
|
|
12671
12681
|
url.searchParams.set(param.name, valueToAppend);
|
|
12672
12682
|
} else {
|
|
@@ -12675,7 +12685,7 @@ const appendSingleParam = (url, param, encode2 = true) => {
|
|
|
12675
12685
|
};
|
|
12676
12686
|
const appendArrayParams = (url, param) => {
|
|
12677
12687
|
url.searchParams.delete(param.name);
|
|
12678
|
-
param.value.forEach((v) => url.searchParams.append(param.name,
|
|
12688
|
+
param.value.forEach((v) => url.searchParams.append(param.name, v));
|
|
12679
12689
|
};
|
|
12680
12690
|
const getRemovableParams = (url, getQueryParamName, paramsToRemove) => {
|
|
12681
12691
|
if (paramsToRemove === "all") {
|
|
@@ -13035,13 +13045,12 @@ const useParamsStore = /* @__PURE__ */ defineStore("params", () => {
|
|
|
13035
13045
|
const getPageUrlWithNewParams = ({
|
|
13036
13046
|
params: newParams,
|
|
13037
13047
|
paramsToRemove,
|
|
13038
|
-
encode: encode2 = true,
|
|
13039
13048
|
searchResultsLink: searchResultsLink2
|
|
13040
13049
|
}) => {
|
|
13041
13050
|
const url = getPageUrl(searchResultsLink2);
|
|
13042
13051
|
paramsToRemove = getRemovableParams(url, optionsStore.getQueryParamName, paramsToRemove);
|
|
13043
13052
|
removeParams(url, paramsToRemove);
|
|
13044
|
-
newParams.forEach((p2) => appendParam(url, p2
|
|
13053
|
+
newParams.forEach((p2) => appendParam(url, p2));
|
|
13045
13054
|
return url.search;
|
|
13046
13055
|
};
|
|
13047
13056
|
const removeParameters = ({
|
|
@@ -13123,7 +13132,7 @@ const useParamsStore = /* @__PURE__ */ defineStore("params", () => {
|
|
|
13123
13132
|
const routing = (_b25 = optionsStore.boxRoutingBehavior) != null ? _b25 : "direct-link";
|
|
13124
13133
|
redirectToResultsPage(
|
|
13125
13134
|
searchResultsLink.value,
|
|
13126
|
-
|
|
13135
|
+
searchText,
|
|
13127
13136
|
optionsStore.getQueryParamName,
|
|
13128
13137
|
facet,
|
|
13129
13138
|
routing
|
|
@@ -13133,7 +13142,6 @@ const useParamsStore = /* @__PURE__ */ defineStore("params", () => {
|
|
|
13133
13142
|
const appendParams = ({
|
|
13134
13143
|
params: newParams,
|
|
13135
13144
|
paramsToRemove,
|
|
13136
|
-
encode: encode2 = true,
|
|
13137
13145
|
save = true,
|
|
13138
13146
|
searchResultsLink: searchResultsLink2
|
|
13139
13147
|
}) => {
|
|
@@ -13143,7 +13151,7 @@ const useParamsStore = /* @__PURE__ */ defineStore("params", () => {
|
|
|
13143
13151
|
const url = getPageUrl(searchResultsLink2);
|
|
13144
13152
|
paramsToRemove = getRemovableParams(url, optionsStore.getQueryParamName, paramsToRemove);
|
|
13145
13153
|
removeParams(url, paramsToRemove);
|
|
13146
|
-
newParams.forEach((p2) => appendParam(url, p2
|
|
13154
|
+
newParams.forEach((p2) => appendParam(url, p2));
|
|
13147
13155
|
navigate(url);
|
|
13148
13156
|
if (!save) {
|
|
13149
13157
|
return;
|
|
@@ -13440,7 +13448,7 @@ const getApiUrl = (environment, customBaseUrl) => {
|
|
|
13440
13448
|
}
|
|
13441
13449
|
return Env[environment] || Env["production"];
|
|
13442
13450
|
};
|
|
13443
|
-
const _sfc_main$
|
|
13451
|
+
const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
13444
13452
|
__name: "VoiceSearchProgressCircle",
|
|
13445
13453
|
props: {
|
|
13446
13454
|
isRecording: { type: Boolean },
|
|
@@ -13653,15 +13661,15 @@ function useVoiceRecorder(options) {
|
|
|
13653
13661
|
closeSocket
|
|
13654
13662
|
};
|
|
13655
13663
|
}
|
|
13656
|
-
const _hoisted_1$
|
|
13664
|
+
const _hoisted_1$1q = {
|
|
13657
13665
|
key: 0,
|
|
13658
13666
|
class: "lupa-dialog-overlay"
|
|
13659
13667
|
};
|
|
13660
|
-
const _hoisted_2$
|
|
13668
|
+
const _hoisted_2$_ = { class: "lupa-dialog-content" };
|
|
13661
13669
|
const _hoisted_3$G = { class: "lupa-listening-text" };
|
|
13662
13670
|
const _hoisted_4$v = { class: "lupa-mic-button-wrapper" };
|
|
13663
13671
|
const _hoisted_5$l = ["aria-label"];
|
|
13664
|
-
const _sfc_main$
|
|
13672
|
+
const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
13665
13673
|
__name: "VoiceSearchDialog",
|
|
13666
13674
|
props: {
|
|
13667
13675
|
isOpen: { type: Boolean },
|
|
@@ -13766,12 +13774,12 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
13766
13774
|
return (_ctx, _cache) => {
|
|
13767
13775
|
var _a25, _b25;
|
|
13768
13776
|
return openBlock(), createElementBlock("div", null, [
|
|
13769
|
-
props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13777
|
+
props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$1q, [
|
|
13770
13778
|
createElementVNode("button", {
|
|
13771
13779
|
class: "lupa-dialog-box-close-button",
|
|
13772
13780
|
onClick: _cache[0] || (_cache[0] = () => emit("close"))
|
|
13773
13781
|
}),
|
|
13774
|
-
createElementVNode("div", _hoisted_2$
|
|
13782
|
+
createElementVNode("div", _hoisted_2$_, [
|
|
13775
13783
|
createElementVNode("p", _hoisted_3$G, toDisplayString(description.value), 1),
|
|
13776
13784
|
createElementVNode("div", _hoisted_4$v, [
|
|
13777
13785
|
createElementVNode("button", {
|
|
@@ -13780,7 +13788,7 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
13780
13788
|
"aria-controls": "voice-search-microphone",
|
|
13781
13789
|
"aria-label": ((_b25 = (_a25 = labels.value) == null ? void 0 : _a25.aria) == null ? void 0 : _b25.microphone) || "Toggle microphone"
|
|
13782
13790
|
}, null, 10, _hoisted_5$l),
|
|
13783
|
-
createVNode(_sfc_main$
|
|
13791
|
+
createVNode(_sfc_main$1K, {
|
|
13784
13792
|
ref_key: "voiceSearchProgressBar",
|
|
13785
13793
|
ref: voiceSearchProgressBar,
|
|
13786
13794
|
class: "lupa-progress-circle",
|
|
@@ -13795,8 +13803,8 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
13795
13803
|
};
|
|
13796
13804
|
}
|
|
13797
13805
|
});
|
|
13798
|
-
const _hoisted_1$
|
|
13799
|
-
const _hoisted_2$
|
|
13806
|
+
const _hoisted_1$1p = { id: "lupa-search-box-input-container" };
|
|
13807
|
+
const _hoisted_2$Z = { id: "lupa-search-box-input" };
|
|
13800
13808
|
const _hoisted_3$F = ["value"];
|
|
13801
13809
|
const _hoisted_4$u = ["aria-label", "placeholder"];
|
|
13802
13810
|
const _hoisted_5$k = {
|
|
@@ -13805,7 +13813,7 @@ const _hoisted_5$k = {
|
|
|
13805
13813
|
};
|
|
13806
13814
|
const _hoisted_6$7 = { key: 2 };
|
|
13807
13815
|
const _hoisted_7$5 = ["aria-label"];
|
|
13808
|
-
const _sfc_main$
|
|
13816
|
+
const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
13809
13817
|
__name: "SearchBoxInput",
|
|
13810
13818
|
props: {
|
|
13811
13819
|
options: {},
|
|
@@ -13941,7 +13949,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
13941
13949
|
};
|
|
13942
13950
|
__expose({ focus });
|
|
13943
13951
|
return (_ctx, _cache) => {
|
|
13944
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13952
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1p, [
|
|
13945
13953
|
_ctx.options.showClearButton && !isClearButtonAtEndOfInput.value ? (openBlock(), createElementBlock("div", {
|
|
13946
13954
|
key: 0,
|
|
13947
13955
|
class: normalizeClass(["lupa-input-clear", [
|
|
@@ -13950,7 +13958,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
13950
13958
|
]]),
|
|
13951
13959
|
onClick: clear
|
|
13952
13960
|
}, null, 2)) : createCommentVNode("", true),
|
|
13953
|
-
createElementVNode("div", _hoisted_2$
|
|
13961
|
+
createElementVNode("div", _hoisted_2$Z, [
|
|
13954
13962
|
createElementVNode("input", {
|
|
13955
13963
|
class: "lupa-hint",
|
|
13956
13964
|
"aria-hidden": "true",
|
|
@@ -14004,7 +14012,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
14004
14012
|
"aria-label": voiceSearchAriaLabel.value
|
|
14005
14013
|
}, null, 8, _hoisted_7$5)
|
|
14006
14014
|
])) : createCommentVNode("", true),
|
|
14007
|
-
isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$
|
|
14015
|
+
isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$1J, {
|
|
14008
14016
|
key: 3,
|
|
14009
14017
|
ref_key: "voiceDialogOverlay",
|
|
14010
14018
|
ref: voiceDialogOverlay,
|
|
@@ -14018,7 +14026,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
14018
14026
|
};
|
|
14019
14027
|
}
|
|
14020
14028
|
});
|
|
14021
|
-
const _sfc_main$
|
|
14029
|
+
const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
14022
14030
|
__name: "SearchBoxMoreResults",
|
|
14023
14031
|
props: {
|
|
14024
14032
|
labels: {},
|
|
@@ -14056,9 +14064,9 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
14056
14064
|
};
|
|
14057
14065
|
}
|
|
14058
14066
|
});
|
|
14059
|
-
const _hoisted_1$
|
|
14060
|
-
const _hoisted_2$
|
|
14061
|
-
const _sfc_main$
|
|
14067
|
+
const _hoisted_1$1o = { class: "lupa-search-box-history-item" };
|
|
14068
|
+
const _hoisted_2$Y = { class: "lupa-search-box-history-item-content" };
|
|
14069
|
+
const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
14062
14070
|
__name: "SearchBoxHistoryItem",
|
|
14063
14071
|
props: {
|
|
14064
14072
|
item: {},
|
|
@@ -14075,8 +14083,8 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
14075
14083
|
emit("click", { query: props.item });
|
|
14076
14084
|
};
|
|
14077
14085
|
return (_ctx, _cache) => {
|
|
14078
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14079
|
-
createElementVNode("div", _hoisted_2$
|
|
14086
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1o, [
|
|
14087
|
+
createElementVNode("div", _hoisted_2$Y, [
|
|
14080
14088
|
createElementVNode("div", {
|
|
14081
14089
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
14082
14090
|
onClick: click2
|
|
@@ -14090,11 +14098,11 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
14090
14098
|
};
|
|
14091
14099
|
}
|
|
14092
14100
|
});
|
|
14093
|
-
const _hoisted_1$
|
|
14101
|
+
const _hoisted_1$1n = {
|
|
14094
14102
|
key: 0,
|
|
14095
14103
|
class: "lupa-search-box-history-panel"
|
|
14096
14104
|
};
|
|
14097
|
-
const _sfc_main$
|
|
14105
|
+
const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
14098
14106
|
__name: "SearchBoxHistoryPanel",
|
|
14099
14107
|
props: {
|
|
14100
14108
|
options: {}
|
|
@@ -14145,9 +14153,9 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
14145
14153
|
}
|
|
14146
14154
|
};
|
|
14147
14155
|
return (_ctx, _cache) => {
|
|
14148
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14156
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1n, [
|
|
14149
14157
|
(openBlock(true), createElementBlock(Fragment, null, renderList(limitedHistory.value, (item, index) => {
|
|
14150
|
-
return openBlock(), createBlock(_sfc_main$
|
|
14158
|
+
return openBlock(), createBlock(_sfc_main$1G, {
|
|
14151
14159
|
key: item,
|
|
14152
14160
|
item,
|
|
14153
14161
|
highlighted: index === highlightIndex.value,
|
|
@@ -14163,12 +14171,12 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
14163
14171
|
};
|
|
14164
14172
|
}
|
|
14165
14173
|
});
|
|
14166
|
-
const _hoisted_1$
|
|
14167
|
-
const _hoisted_2$
|
|
14174
|
+
const _hoisted_1$1m = ["innerHTML"];
|
|
14175
|
+
const _hoisted_2$X = {
|
|
14168
14176
|
key: 1,
|
|
14169
14177
|
class: "lupa-search-box-no-results"
|
|
14170
14178
|
};
|
|
14171
|
-
const _sfc_main$
|
|
14179
|
+
const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
14172
14180
|
__name: "SearchBoxNoResults",
|
|
14173
14181
|
props: {
|
|
14174
14182
|
options: {}
|
|
@@ -14187,7 +14195,7 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
14187
14195
|
key: 0,
|
|
14188
14196
|
class: "lupa-search-box-no-results",
|
|
14189
14197
|
innerHTML: customHtml.value
|
|
14190
|
-
}, null, 8, _hoisted_1$
|
|
14198
|
+
}, null, 8, _hoisted_1$1m)) : (openBlock(), createElementBlock("p", _hoisted_2$X, toDisplayString((_a25 = labels.value) == null ? void 0 : _a25.noResults), 1));
|
|
14191
14199
|
};
|
|
14192
14200
|
}
|
|
14193
14201
|
});
|
|
@@ -14219,8 +14227,8 @@ const generateGridTemplate = (elements) => {
|
|
|
14219
14227
|
}
|
|
14220
14228
|
return gridTemplate.join(" ");
|
|
14221
14229
|
};
|
|
14222
|
-
const _hoisted_1$
|
|
14223
|
-
const _hoisted_2$
|
|
14230
|
+
const _hoisted_1$1l = ["innerHTML"];
|
|
14231
|
+
const _hoisted_2$W = {
|
|
14224
14232
|
key: 1,
|
|
14225
14233
|
"data-cy": "lupa-suggestion-value",
|
|
14226
14234
|
class: "lupa-suggestion-value"
|
|
@@ -14238,7 +14246,7 @@ const _hoisted_5$j = {
|
|
|
14238
14246
|
class: "lupa-suggestion-facet-value",
|
|
14239
14247
|
"data-cy": "lupa-suggestion-facet-value"
|
|
14240
14248
|
};
|
|
14241
|
-
const _sfc_main$
|
|
14249
|
+
const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
14242
14250
|
__name: "SearchBoxSuggestion",
|
|
14243
14251
|
props: {
|
|
14244
14252
|
suggestion: {},
|
|
@@ -14275,7 +14283,7 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
14275
14283
|
class: "lupa-suggestion-value",
|
|
14276
14284
|
"data-cy": "lupa-suggestion-value",
|
|
14277
14285
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
14278
|
-
}, null, 8, _hoisted_1$
|
|
14286
|
+
}, null, 8, _hoisted_1$1l)) : (openBlock(), createElementBlock("div", _hoisted_2$W, toDisplayString(_ctx.suggestion.display), 1)),
|
|
14279
14287
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$E, [
|
|
14280
14288
|
createElementVNode("span", _hoisted_4$t, toDisplayString(facetLabel.value), 1),
|
|
14281
14289
|
createElementVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
@@ -14284,11 +14292,11 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
14284
14292
|
};
|
|
14285
14293
|
}
|
|
14286
14294
|
});
|
|
14287
|
-
const _hoisted_1$
|
|
14295
|
+
const _hoisted_1$1k = {
|
|
14288
14296
|
id: "lupa-search-box-suggestions",
|
|
14289
14297
|
"data-cy": "lupa-search-box-suggestions"
|
|
14290
14298
|
};
|
|
14291
|
-
const _sfc_main$
|
|
14299
|
+
const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
14292
14300
|
__name: "SearchBoxSuggestions",
|
|
14293
14301
|
props: {
|
|
14294
14302
|
items: {},
|
|
@@ -14355,9 +14363,9 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
14355
14363
|
});
|
|
14356
14364
|
});
|
|
14357
14365
|
return (_ctx, _cache) => {
|
|
14358
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14366
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1k, [
|
|
14359
14367
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
14360
|
-
return openBlock(), createBlock(_sfc_main$
|
|
14368
|
+
return openBlock(), createBlock(_sfc_main$1D, {
|
|
14361
14369
|
key: getSuggestionKey(item),
|
|
14362
14370
|
class: normalizeClass([
|
|
14363
14371
|
"lupa-suggestion",
|
|
@@ -14389,7 +14397,7 @@ const debounce = (func, timeout) => {
|
|
|
14389
14397
|
}, timeout);
|
|
14390
14398
|
};
|
|
14391
14399
|
};
|
|
14392
|
-
const _sfc_main$
|
|
14400
|
+
const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
14393
14401
|
__name: "SearchBoxSuggestionsWrapper",
|
|
14394
14402
|
props: {
|
|
14395
14403
|
panel: {},
|
|
@@ -14432,7 +14440,7 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
14432
14440
|
const getSuggestionsDebounced = debounce(getSuggestions, props.debounce);
|
|
14433
14441
|
watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
14434
14442
|
return (_ctx, _cache) => {
|
|
14435
|
-
return openBlock(), createBlock(_sfc_main$
|
|
14443
|
+
return openBlock(), createBlock(_sfc_main$1C, {
|
|
14436
14444
|
items: searchResult.value,
|
|
14437
14445
|
highlight: _ctx.panel.highlight,
|
|
14438
14446
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -23775,9 +23783,9 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
|
|
|
23775
23783
|
targetImage.src = placeholder;
|
|
23776
23784
|
}
|
|
23777
23785
|
};
|
|
23778
|
-
const _hoisted_1$
|
|
23779
|
-
const _hoisted_2$
|
|
23780
|
-
const _sfc_main$
|
|
23786
|
+
const _hoisted_1$1j = ["src"];
|
|
23787
|
+
const _hoisted_2$V = ["src"];
|
|
23788
|
+
const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
23781
23789
|
__name: "ProductImage",
|
|
23782
23790
|
props: {
|
|
23783
23791
|
item: {},
|
|
@@ -23919,7 +23927,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
23919
23927
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
23920
23928
|
onError: replaceWithPlaceholder,
|
|
23921
23929
|
key: finalUrl.value
|
|
23922
|
-
}), null, 16, _hoisted_1$
|
|
23930
|
+
}), null, 16, _hoisted_1$1j))
|
|
23923
23931
|
]),
|
|
23924
23932
|
_: 1
|
|
23925
23933
|
})) : (openBlock(), createElementBlock("img", mergeProps({
|
|
@@ -23927,12 +23935,12 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
23927
23935
|
class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
|
|
23928
23936
|
style: styleOverride.value,
|
|
23929
23937
|
src: finalMainImageUrl.value
|
|
23930
|
-
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$
|
|
23938
|
+
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$V))
|
|
23931
23939
|
], 38);
|
|
23932
23940
|
};
|
|
23933
23941
|
}
|
|
23934
23942
|
});
|
|
23935
|
-
const _sfc_main$
|
|
23943
|
+
const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
23936
23944
|
__name: "SearchBoxProductImage",
|
|
23937
23945
|
props: {
|
|
23938
23946
|
item: {},
|
|
@@ -23940,7 +23948,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
23940
23948
|
},
|
|
23941
23949
|
setup(__props) {
|
|
23942
23950
|
return (_ctx, _cache) => {
|
|
23943
|
-
return openBlock(), createBlock(_sfc_main$
|
|
23951
|
+
return openBlock(), createBlock(_sfc_main$1A, {
|
|
23944
23952
|
item: _ctx.item,
|
|
23945
23953
|
options: _ctx.options,
|
|
23946
23954
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -23949,12 +23957,12 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
23949
23957
|
};
|
|
23950
23958
|
}
|
|
23951
23959
|
});
|
|
23952
|
-
const _hoisted_1$
|
|
23953
|
-
const _hoisted_2$
|
|
23960
|
+
const _hoisted_1$1i = ["innerHTML"];
|
|
23961
|
+
const _hoisted_2$U = {
|
|
23954
23962
|
key: 1,
|
|
23955
23963
|
class: "lupa-search-box-product-title"
|
|
23956
23964
|
};
|
|
23957
|
-
const _sfc_main$
|
|
23965
|
+
const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
23958
23966
|
__name: "SearchBoxProductTitle",
|
|
23959
23967
|
props: {
|
|
23960
23968
|
item: {},
|
|
@@ -23977,18 +23985,18 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
23977
23985
|
key: 0,
|
|
23978
23986
|
class: "lupa-search-box-product-title",
|
|
23979
23987
|
innerHTML: sanitizedTitle.value
|
|
23980
|
-
}, null, 8, _hoisted_1$
|
|
23988
|
+
}, null, 8, _hoisted_1$1i)) : (openBlock(), createElementBlock("div", _hoisted_2$U, [
|
|
23981
23989
|
createElementVNode("strong", null, toDisplayString(title.value), 1)
|
|
23982
23990
|
]));
|
|
23983
23991
|
};
|
|
23984
23992
|
}
|
|
23985
23993
|
});
|
|
23986
|
-
const _hoisted_1$
|
|
23987
|
-
const _hoisted_2$
|
|
23994
|
+
const _hoisted_1$1h = ["innerHTML"];
|
|
23995
|
+
const _hoisted_2$T = {
|
|
23988
23996
|
key: 1,
|
|
23989
23997
|
class: "lupa-search-box-product-description"
|
|
23990
23998
|
};
|
|
23991
|
-
const _sfc_main$
|
|
23999
|
+
const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
23992
24000
|
__name: "SearchBoxProductDescription",
|
|
23993
24001
|
props: {
|
|
23994
24002
|
item: {},
|
|
@@ -24011,12 +24019,12 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
24011
24019
|
key: 0,
|
|
24012
24020
|
class: "lupa-search-box-product-description",
|
|
24013
24021
|
innerHTML: sanitizedDescription.value
|
|
24014
|
-
}, null, 8, _hoisted_1$
|
|
24022
|
+
}, null, 8, _hoisted_1$1h)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(description.value), 1));
|
|
24015
24023
|
};
|
|
24016
24024
|
}
|
|
24017
24025
|
});
|
|
24018
|
-
const _hoisted_1$
|
|
24019
|
-
const _sfc_main$
|
|
24026
|
+
const _hoisted_1$1g = { class: "lupa-search-box-product-price" };
|
|
24027
|
+
const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
24020
24028
|
__name: "SearchBoxProductPrice",
|
|
24021
24029
|
props: {
|
|
24022
24030
|
item: {},
|
|
@@ -24038,13 +24046,13 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
24038
24046
|
);
|
|
24039
24047
|
});
|
|
24040
24048
|
return (_ctx, _cache) => {
|
|
24041
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24049
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1g, [
|
|
24042
24050
|
createElementVNode("strong", null, toDisplayString(price.value), 1)
|
|
24043
24051
|
]);
|
|
24044
24052
|
};
|
|
24045
24053
|
}
|
|
24046
24054
|
});
|
|
24047
|
-
const _sfc_main$
|
|
24055
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
24048
24056
|
__name: "SearchBoxProductRegularPrice",
|
|
24049
24057
|
props: {
|
|
24050
24058
|
item: {},
|
|
@@ -24075,12 +24083,12 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
24075
24083
|
};
|
|
24076
24084
|
}
|
|
24077
24085
|
});
|
|
24078
|
-
const _hoisted_1$
|
|
24079
|
-
const _hoisted_2$
|
|
24086
|
+
const _hoisted_1$1f = ["innerHTML"];
|
|
24087
|
+
const _hoisted_2$S = { key: 0 };
|
|
24080
24088
|
const _hoisted_3$D = { key: 1 };
|
|
24081
24089
|
const _hoisted_4$s = { class: "lupa-search-box-custom-label" };
|
|
24082
24090
|
const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
|
|
24083
|
-
const _sfc_main$
|
|
24091
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
24084
24092
|
__name: "SearchBoxProductCustom",
|
|
24085
24093
|
props: {
|
|
24086
24094
|
item: {},
|
|
@@ -24106,11 +24114,11 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
24106
24114
|
key: 0,
|
|
24107
24115
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
24108
24116
|
innerHTML: text.value
|
|
24109
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
24117
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$1f)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
24110
24118
|
key: 1,
|
|
24111
24119
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
24112
24120
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
24113
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
24121
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$D, [
|
|
24114
24122
|
createElementVNode("div", _hoisted_4$s, toDisplayString(label.value), 1),
|
|
24115
24123
|
createElementVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
|
|
24116
24124
|
]))
|
|
@@ -24118,8 +24126,8 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
24118
24126
|
};
|
|
24119
24127
|
}
|
|
24120
24128
|
});
|
|
24121
|
-
const _hoisted_1$
|
|
24122
|
-
const _sfc_main$
|
|
24129
|
+
const _hoisted_1$1e = ["innerHTML"];
|
|
24130
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
24123
24131
|
__name: "SearchBoxProductCustomHtml",
|
|
24124
24132
|
props: {
|
|
24125
24133
|
item: {},
|
|
@@ -24144,7 +24152,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
24144
24152
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
24145
24153
|
class: className.value,
|
|
24146
24154
|
innerHTML: text.value
|
|
24147
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
24155
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$1e);
|
|
24148
24156
|
};
|
|
24149
24157
|
}
|
|
24150
24158
|
});
|
|
@@ -24483,6 +24491,7 @@ const useSearchResultStore = /* @__PURE__ */ defineStore("searchResult", () => {
|
|
|
24483
24491
|
relatedQueriesApiEnabled,
|
|
24484
24492
|
lastResultsSource,
|
|
24485
24493
|
relatedQueryFacetKeys,
|
|
24494
|
+
loadingRelatedQueries,
|
|
24486
24495
|
setSidebarState,
|
|
24487
24496
|
queryFacet,
|
|
24488
24497
|
setLastRequestId,
|
|
@@ -24499,12 +24508,12 @@ const useSearchResultStore = /* @__PURE__ */ defineStore("searchResult", () => {
|
|
|
24499
24508
|
setRelatedQueriesApiEnabled
|
|
24500
24509
|
};
|
|
24501
24510
|
});
|
|
24502
|
-
const _hoisted_1$
|
|
24503
|
-
const _hoisted_2$
|
|
24511
|
+
const _hoisted_1$1d = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
24512
|
+
const _hoisted_2$R = { class: "lupa-search-box-product-addtocart" };
|
|
24504
24513
|
const _hoisted_3$C = ["disabled"];
|
|
24505
24514
|
const _hoisted_4$r = ["href"];
|
|
24506
24515
|
const _hoisted_5$h = ["disabled"];
|
|
24507
|
-
const _sfc_main$
|
|
24516
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
24508
24517
|
__name: "SearchBoxProductAddToCart",
|
|
24509
24518
|
props: {
|
|
24510
24519
|
item: {},
|
|
@@ -24550,8 +24559,8 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
24550
24559
|
return Boolean(props.link && props.options.link);
|
|
24551
24560
|
});
|
|
24552
24561
|
return (_ctx, _cache) => {
|
|
24553
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24554
|
-
createElementVNode("div", _hoisted_2$
|
|
24562
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1d, [
|
|
24563
|
+
createElementVNode("div", _hoisted_2$R, [
|
|
24555
24564
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
24556
24565
|
key: 0,
|
|
24557
24566
|
class: addToCartButtonClass.value,
|
|
@@ -24572,23 +24581,23 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
24572
24581
|
};
|
|
24573
24582
|
}
|
|
24574
24583
|
});
|
|
24575
|
-
const _hoisted_1$
|
|
24584
|
+
const _hoisted_1$1c = {
|
|
24576
24585
|
key: 1,
|
|
24577
24586
|
class: "lupa-search-box-element-badge-wrapper"
|
|
24578
24587
|
};
|
|
24579
24588
|
const __default__$4 = {
|
|
24580
24589
|
components: {
|
|
24581
|
-
SearchBoxProductImage: _sfc_main$
|
|
24582
|
-
SearchBoxProductTitle: _sfc_main$
|
|
24583
|
-
SearchBoxProductDescription: _sfc_main$
|
|
24584
|
-
SearchBoxProductPrice: _sfc_main$
|
|
24585
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
24586
|
-
SearchBoxProductCustom: _sfc_main$
|
|
24587
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
24588
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
24590
|
+
SearchBoxProductImage: _sfc_main$1z,
|
|
24591
|
+
SearchBoxProductTitle: _sfc_main$1y,
|
|
24592
|
+
SearchBoxProductDescription: _sfc_main$1x,
|
|
24593
|
+
SearchBoxProductPrice: _sfc_main$1w,
|
|
24594
|
+
SearchBoxProductRegularPrice: _sfc_main$1v,
|
|
24595
|
+
SearchBoxProductCustom: _sfc_main$1u,
|
|
24596
|
+
SearchBoxProductCustomHtml: _sfc_main$1t,
|
|
24597
|
+
SearchBoxProductAddToCart: _sfc_main$1s
|
|
24589
24598
|
}
|
|
24590
24599
|
};
|
|
24591
|
-
const _sfc_main$
|
|
24600
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$4), {
|
|
24592
24601
|
__name: "SearchBoxProductElement",
|
|
24593
24602
|
props: {
|
|
24594
24603
|
item: {},
|
|
@@ -24660,7 +24669,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValue
|
|
|
24660
24669
|
"dynamic-attributes": dynamicAttributes.value,
|
|
24661
24670
|
link: _ctx.link
|
|
24662
24671
|
}, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : createCommentVNode("", true)
|
|
24663
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24672
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
24664
24673
|
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
24665
24674
|
key: 0,
|
|
24666
24675
|
item: enhancedItem.value,
|
|
@@ -24675,14 +24684,14 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValue
|
|
|
24675
24684
|
};
|
|
24676
24685
|
}
|
|
24677
24686
|
}));
|
|
24678
|
-
const _hoisted_1$
|
|
24679
|
-
const _hoisted_2$
|
|
24687
|
+
const _hoisted_1$1b = { class: "lupa-badge-title" };
|
|
24688
|
+
const _hoisted_2$Q = ["src"];
|
|
24680
24689
|
const _hoisted_3$B = { key: 1 };
|
|
24681
24690
|
const _hoisted_4$q = {
|
|
24682
24691
|
key: 0,
|
|
24683
24692
|
class: "lupa-badge-full-text"
|
|
24684
24693
|
};
|
|
24685
|
-
const _sfc_main$
|
|
24694
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
24686
24695
|
__name: "SearchResultGeneratedBadge",
|
|
24687
24696
|
props: {
|
|
24688
24697
|
options: {},
|
|
@@ -24715,11 +24724,11 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
24715
24724
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
24716
24725
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
24717
24726
|
}, [
|
|
24718
|
-
createElementVNode("span", _hoisted_1$
|
|
24727
|
+
createElementVNode("span", _hoisted_1$1b, [
|
|
24719
24728
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
24720
24729
|
key: 0,
|
|
24721
24730
|
src: image.value
|
|
24722
|
-
}, null, 8, _hoisted_2$
|
|
24731
|
+
}, null, 8, _hoisted_2$Q)) : createCommentVNode("", true),
|
|
24723
24732
|
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$B, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
24724
24733
|
]),
|
|
24725
24734
|
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
@@ -24727,8 +24736,8 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
24727
24736
|
};
|
|
24728
24737
|
}
|
|
24729
24738
|
});
|
|
24730
|
-
const _hoisted_1$
|
|
24731
|
-
const _sfc_main$
|
|
24739
|
+
const _hoisted_1$1a = { class: "lupa-generated-badges" };
|
|
24740
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
24732
24741
|
__name: "SearchResultGeneratedBadges",
|
|
24733
24742
|
props: {
|
|
24734
24743
|
options: {}
|
|
@@ -24754,9 +24763,9 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
24754
24763
|
})).filter((b) => Boolean(b.id));
|
|
24755
24764
|
});
|
|
24756
24765
|
return (_ctx, _cache) => {
|
|
24757
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24766
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1a, [
|
|
24758
24767
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
24759
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24768
|
+
return openBlock(), createBlock(_sfc_main$1q, {
|
|
24760
24769
|
key: badge.id,
|
|
24761
24770
|
badge,
|
|
24762
24771
|
options: _ctx.options
|
|
@@ -24766,8 +24775,8 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
24766
24775
|
};
|
|
24767
24776
|
}
|
|
24768
24777
|
});
|
|
24769
|
-
const _hoisted_1$
|
|
24770
|
-
const _sfc_main$
|
|
24778
|
+
const _hoisted_1$19 = ["innerHTML"];
|
|
24779
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
24771
24780
|
__name: "CustomBadge",
|
|
24772
24781
|
props: {
|
|
24773
24782
|
badge: {}
|
|
@@ -24788,12 +24797,12 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
24788
24797
|
return openBlock(), createElementBlock("div", {
|
|
24789
24798
|
class: normalizeClass(className.value),
|
|
24790
24799
|
innerHTML: text.value
|
|
24791
|
-
}, null, 10, _hoisted_1$
|
|
24800
|
+
}, null, 10, _hoisted_1$19);
|
|
24792
24801
|
};
|
|
24793
24802
|
}
|
|
24794
24803
|
});
|
|
24795
|
-
const _hoisted_1$
|
|
24796
|
-
const _sfc_main$
|
|
24804
|
+
const _hoisted_1$18 = { class: "lupa-text-badges" };
|
|
24805
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
24797
24806
|
__name: "TextBadge",
|
|
24798
24807
|
props: {
|
|
24799
24808
|
badge: {}
|
|
@@ -24807,7 +24816,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
24807
24816
|
return badges.value.slice(0, props.badge.maxItems);
|
|
24808
24817
|
});
|
|
24809
24818
|
return (_ctx, _cache) => {
|
|
24810
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24819
|
+
return openBlock(), createElementBlock("div", _hoisted_1$18, [
|
|
24811
24820
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
24812
24821
|
return openBlock(), createElementBlock("div", {
|
|
24813
24822
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -24818,9 +24827,9 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
24818
24827
|
};
|
|
24819
24828
|
}
|
|
24820
24829
|
});
|
|
24821
|
-
const _hoisted_1$
|
|
24822
|
-
const _hoisted_2$
|
|
24823
|
-
const _sfc_main$
|
|
24830
|
+
const _hoisted_1$17 = { class: "lupa-image-badges" };
|
|
24831
|
+
const _hoisted_2$P = ["src"];
|
|
24832
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
24824
24833
|
__name: "ImageBadge",
|
|
24825
24834
|
props: {
|
|
24826
24835
|
badge: {}
|
|
@@ -24840,7 +24849,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
24840
24849
|
return `${props.badge.rootImageUrl}${src}`;
|
|
24841
24850
|
};
|
|
24842
24851
|
return (_ctx, _cache) => {
|
|
24843
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24852
|
+
return openBlock(), createElementBlock("div", _hoisted_1$17, [
|
|
24844
24853
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
24845
24854
|
return openBlock(), createElementBlock("div", {
|
|
24846
24855
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -24848,14 +24857,14 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
24848
24857
|
}, [
|
|
24849
24858
|
createElementVNode("img", {
|
|
24850
24859
|
src: getImageUrl(item)
|
|
24851
|
-
}, null, 8, _hoisted_2$
|
|
24860
|
+
}, null, 8, _hoisted_2$P)
|
|
24852
24861
|
]);
|
|
24853
24862
|
}), 128))
|
|
24854
24863
|
]);
|
|
24855
24864
|
};
|
|
24856
24865
|
}
|
|
24857
24866
|
});
|
|
24858
|
-
const _sfc_main$
|
|
24867
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
24859
24868
|
__name: "DiscountBadge",
|
|
24860
24869
|
props: {
|
|
24861
24870
|
badge: {}
|
|
@@ -24917,16 +24926,16 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
24917
24926
|
};
|
|
24918
24927
|
}
|
|
24919
24928
|
});
|
|
24920
|
-
const _hoisted_1$
|
|
24929
|
+
const _hoisted_1$16 = { id: "lupa-search-results-badges" };
|
|
24921
24930
|
const __default__$3 = {
|
|
24922
24931
|
components: {
|
|
24923
|
-
CustomBadge: _sfc_main$
|
|
24924
|
-
TextBadge: _sfc_main$
|
|
24925
|
-
ImageBadge: _sfc_main$
|
|
24926
|
-
DiscountBadge: _sfc_main$
|
|
24932
|
+
CustomBadge: _sfc_main$1o,
|
|
24933
|
+
TextBadge: _sfc_main$1n,
|
|
24934
|
+
ImageBadge: _sfc_main$1m,
|
|
24935
|
+
DiscountBadge: _sfc_main$1l
|
|
24927
24936
|
}
|
|
24928
24937
|
};
|
|
24929
|
-
const _sfc_main$
|
|
24938
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$3), {
|
|
24930
24939
|
__name: "SearchResultsBadgeWrapper",
|
|
24931
24940
|
props: {
|
|
24932
24941
|
position: {},
|
|
@@ -24989,7 +24998,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValue
|
|
|
24989
24998
|
}
|
|
24990
24999
|
};
|
|
24991
25000
|
return (_ctx, _cache) => {
|
|
24992
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
25001
|
+
return openBlock(), createElementBlock("div", _hoisted_1$16, [
|
|
24993
25002
|
createElementVNode("div", {
|
|
24994
25003
|
id: "lupa-badges",
|
|
24995
25004
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -25000,7 +25009,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValue
|
|
|
25000
25009
|
badge
|
|
25001
25010
|
}, null, 8, ["badge"]);
|
|
25002
25011
|
}), 128)),
|
|
25003
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
25012
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1p, {
|
|
25004
25013
|
key: 0,
|
|
25005
25014
|
options: _ctx.options
|
|
25006
25015
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -25009,13 +25018,13 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValue
|
|
|
25009
25018
|
};
|
|
25010
25019
|
}
|
|
25011
25020
|
}));
|
|
25012
|
-
const _hoisted_1$
|
|
25013
|
-
const _hoisted_2$
|
|
25021
|
+
const _hoisted_1$15 = ["href"];
|
|
25022
|
+
const _hoisted_2$O = { class: "lupa-search-box-product-details-section" };
|
|
25014
25023
|
const _hoisted_3$A = {
|
|
25015
25024
|
key: 0,
|
|
25016
25025
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
25017
25026
|
};
|
|
25018
|
-
const _sfc_main$
|
|
25027
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
25019
25028
|
__name: "SearchBoxProduct",
|
|
25020
25029
|
props: {
|
|
25021
25030
|
item: {},
|
|
@@ -25121,7 +25130,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
25121
25130
|
style: normalizeStyle(imageStyleOverride.value)
|
|
25122
25131
|
}, [
|
|
25123
25132
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
25124
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25133
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
25125
25134
|
class: "lupa-search-box-product-element",
|
|
25126
25135
|
key: element.key,
|
|
25127
25136
|
item: _ctx.item,
|
|
@@ -25131,10 +25140,10 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
25131
25140
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
25132
25141
|
}), 128))
|
|
25133
25142
|
], 4),
|
|
25134
|
-
createElementVNode("div", _hoisted_2$
|
|
25143
|
+
createElementVNode("div", _hoisted_2$O, [
|
|
25135
25144
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
25136
25145
|
var _a25;
|
|
25137
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25146
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
25138
25147
|
class: "lupa-search-box-product-element",
|
|
25139
25148
|
key: element.key,
|
|
25140
25149
|
item: _ctx.item,
|
|
@@ -25145,7 +25154,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
25145
25154
|
((_a25 = badgeOptions.value) == null ? void 0 : _a25.anchorElementKey) === element.key ? {
|
|
25146
25155
|
name: "badges",
|
|
25147
25156
|
fn: withCtx(() => [
|
|
25148
|
-
createVNode(_sfc_main$
|
|
25157
|
+
createVNode(_sfc_main$1k, {
|
|
25149
25158
|
options: badgeOptions.value,
|
|
25150
25159
|
position: "card"
|
|
25151
25160
|
}, null, 8, ["options"])
|
|
@@ -25161,7 +25170,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
25161
25170
|
class: normalizeClass(`lupa-search-box-group-${group}`)
|
|
25162
25171
|
}, [
|
|
25163
25172
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
25164
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25173
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
25165
25174
|
class: "lupa-search-box-product-element",
|
|
25166
25175
|
key: element.key,
|
|
25167
25176
|
item: _ctx.item,
|
|
@@ -25174,7 +25183,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
25174
25183
|
], 2);
|
|
25175
25184
|
}), 128)),
|
|
25176
25185
|
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
25177
|
-
createVNode(_sfc_main$
|
|
25186
|
+
createVNode(_sfc_main$1r, {
|
|
25178
25187
|
class: "lupa-search-box-product-element",
|
|
25179
25188
|
item: _ctx.item,
|
|
25180
25189
|
element: addToCartElement.value,
|
|
@@ -25183,7 +25192,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
25183
25192
|
isInStock: isInStock.value
|
|
25184
25193
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
25185
25194
|
])) : createCommentVNode("", true)
|
|
25186
|
-
], 16, _hoisted_1$
|
|
25195
|
+
], 16, _hoisted_1$15);
|
|
25187
25196
|
};
|
|
25188
25197
|
}
|
|
25189
25198
|
});
|
|
@@ -25255,8 +25264,8 @@ const useTrackingStore = /* @__PURE__ */ defineStore("tracking", () => {
|
|
|
25255
25264
|
};
|
|
25256
25265
|
return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
|
|
25257
25266
|
});
|
|
25258
|
-
const _hoisted_1$
|
|
25259
|
-
const _sfc_main$
|
|
25267
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
25268
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
25260
25269
|
__name: "SearchBoxProducts",
|
|
25261
25270
|
props: {
|
|
25262
25271
|
items: {},
|
|
@@ -25367,7 +25376,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
25367
25376
|
itemClicked: handleProductClick
|
|
25368
25377
|
});
|
|
25369
25378
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(displayItems.value, (item, index) => {
|
|
25370
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25379
|
+
return openBlock(), createBlock(_sfc_main$1j, {
|
|
25371
25380
|
key: index,
|
|
25372
25381
|
item,
|
|
25373
25382
|
panelOptions: _ctx.panelOptions,
|
|
@@ -25380,7 +25389,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
25380
25389
|
hasResults.value && ((_a25 = _ctx.panelOptions) == null ? void 0 : _a25.appendCustomHtml) && (showAll.value || !showAllItemsToggleButton.value) ? (openBlock(), createElementBlock("div", {
|
|
25381
25390
|
key: 2,
|
|
25382
25391
|
innerHTML: _ctx.panelOptions.appendCustomHtml
|
|
25383
|
-
}, null, 8, _hoisted_1$
|
|
25392
|
+
}, null, 8, _hoisted_1$14)) : createCommentVNode("", true),
|
|
25384
25393
|
showAllItemsToggleButton.value ? (openBlock(), createElementBlock("a", {
|
|
25385
25394
|
key: 3,
|
|
25386
25395
|
class: "lupa-search-box-expand",
|
|
@@ -25391,9 +25400,9 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
25391
25400
|
};
|
|
25392
25401
|
}
|
|
25393
25402
|
});
|
|
25394
|
-
const _hoisted_1$
|
|
25395
|
-
const _hoisted_2$
|
|
25396
|
-
const _sfc_main$
|
|
25403
|
+
const _hoisted_1$13 = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
25404
|
+
const _hoisted_2$N = { key: 0 };
|
|
25405
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
25397
25406
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
25398
25407
|
props: {
|
|
25399
25408
|
options: {},
|
|
@@ -25424,13 +25433,13 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
25424
25433
|
emit("goToResults");
|
|
25425
25434
|
};
|
|
25426
25435
|
return (_ctx, _cache) => {
|
|
25427
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
25436
|
+
return openBlock(), createElementBlock("div", _hoisted_1$13, [
|
|
25428
25437
|
createElementVNode("button", {
|
|
25429
25438
|
class: "lupa-search-box-documents-go-to-results-button",
|
|
25430
25439
|
onClick: goToResults
|
|
25431
25440
|
}, [
|
|
25432
25441
|
createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
|
|
25433
|
-
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
25442
|
+
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$N, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
|
|
25434
25443
|
])
|
|
25435
25444
|
]);
|
|
25436
25445
|
};
|
|
@@ -25526,7 +25535,7 @@ const processExtractionObject = (value = {}) => {
|
|
|
25526
25535
|
}
|
|
25527
25536
|
return parsedObject;
|
|
25528
25537
|
};
|
|
25529
|
-
const _sfc_main$
|
|
25538
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
25530
25539
|
__name: "SearchBoxProductsWrapper",
|
|
25531
25540
|
props: {
|
|
25532
25541
|
panel: {},
|
|
@@ -25597,7 +25606,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
25597
25606
|
watch(() => props.panel.limit, getItemsDebounced);
|
|
25598
25607
|
return (_ctx, _cache) => {
|
|
25599
25608
|
var _a25, _b25;
|
|
25600
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25609
|
+
return openBlock(), createBlock(_sfc_main$1i, {
|
|
25601
25610
|
items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
|
|
25602
25611
|
panelOptions: _ctx.panel,
|
|
25603
25612
|
labels: _ctx.labels,
|
|
@@ -25607,7 +25616,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
25607
25616
|
default: withCtx(() => {
|
|
25608
25617
|
var _a26;
|
|
25609
25618
|
return [
|
|
25610
|
-
showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$
|
|
25619
|
+
showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$1h, {
|
|
25611
25620
|
key: 0,
|
|
25612
25621
|
options: _ctx.searchBoxOptions,
|
|
25613
25622
|
panel: _ctx.panel,
|
|
@@ -25628,7 +25637,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
25628
25637
|
};
|
|
25629
25638
|
}
|
|
25630
25639
|
});
|
|
25631
|
-
const _sfc_main$
|
|
25640
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
25632
25641
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
25633
25642
|
props: {
|
|
25634
25643
|
panel: {},
|
|
@@ -25700,7 +25709,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
25700
25709
|
});
|
|
25701
25710
|
return (_ctx, _cache) => {
|
|
25702
25711
|
var _a25, _b25;
|
|
25703
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25712
|
+
return openBlock(), createBlock(_sfc_main$1i, {
|
|
25704
25713
|
items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
|
|
25705
25714
|
panelOptions: documentPanelOptions.value,
|
|
25706
25715
|
labels: _ctx.labels,
|
|
@@ -25718,8 +25727,8 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
25718
25727
|
};
|
|
25719
25728
|
}
|
|
25720
25729
|
});
|
|
25721
|
-
const _hoisted_1$
|
|
25722
|
-
const _hoisted_2$
|
|
25730
|
+
const _hoisted_1$12 = ["data-cy"];
|
|
25731
|
+
const _hoisted_2$M = {
|
|
25723
25732
|
key: 0,
|
|
25724
25733
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
25725
25734
|
};
|
|
@@ -25729,12 +25738,12 @@ const _hoisted_3$z = {
|
|
|
25729
25738
|
};
|
|
25730
25739
|
const __default__$2 = {
|
|
25731
25740
|
components: {
|
|
25732
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
25733
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
25734
|
-
SearchBoxRelatedSourceWrapper: _sfc_main$
|
|
25741
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1B,
|
|
25742
|
+
SearchBoxProductsWrapper: _sfc_main$1g,
|
|
25743
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$1f
|
|
25735
25744
|
}
|
|
25736
25745
|
};
|
|
25737
|
-
const _sfc_main$
|
|
25746
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$2), {
|
|
25738
25747
|
__name: "SearchBoxMainPanel",
|
|
25739
25748
|
props: {
|
|
25740
25749
|
options: {},
|
|
@@ -25925,7 +25934,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValue
|
|
|
25925
25934
|
style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
|
|
25926
25935
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
25927
25936
|
}, [
|
|
25928
|
-
((_a25 = panel.labels) == null ? void 0 : _a25.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
25937
|
+
((_a25 = panel.labels) == null ? void 0 : _a25.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString((_b25 = panel.labels) == null ? void 0 : _b25.topResultsTitle), 1)) : createCommentVNode("", true),
|
|
25929
25938
|
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_3$z, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
25930
25939
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
25931
25940
|
key: 2,
|
|
@@ -25948,14 +25957,14 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValue
|
|
|
25948
25957
|
key: "0"
|
|
25949
25958
|
} : void 0
|
|
25950
25959
|
]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
25951
|
-
], 14, _hoisted_1$
|
|
25960
|
+
], 14, _hoisted_1$12);
|
|
25952
25961
|
}), 128))
|
|
25953
25962
|
], 4),
|
|
25954
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
25963
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1E, {
|
|
25955
25964
|
key: 1,
|
|
25956
25965
|
options: _ctx.options
|
|
25957
25966
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25958
|
-
displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
25967
|
+
displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$1H, {
|
|
25959
25968
|
key: 2,
|
|
25960
25969
|
labels: labels.value,
|
|
25961
25970
|
options: _ctx.options,
|
|
@@ -25966,7 +25975,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValue
|
|
|
25966
25975
|
id: "lupa-search-box-panel",
|
|
25967
25976
|
class: normalizeClass({ "lupa-search-text-empty": isSearchEmpty.value })
|
|
25968
25977
|
}, [
|
|
25969
|
-
createVNode(_sfc_main$
|
|
25978
|
+
createVNode(_sfc_main$1F, {
|
|
25970
25979
|
options: _ctx.options.history,
|
|
25971
25980
|
history: history.value,
|
|
25972
25981
|
onGoToResults: handleGoToResults,
|
|
@@ -25991,8 +26000,8 @@ const unbindSearchTriggers = (triggers = [], event) => {
|
|
|
25991
26000
|
const elements = getElements(triggers);
|
|
25992
26001
|
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
25993
26002
|
};
|
|
25994
|
-
const _hoisted_1
|
|
25995
|
-
const _sfc_main$
|
|
26003
|
+
const _hoisted_1$11 = { class: "lupa-search-box-wrapper" };
|
|
26004
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
25996
26005
|
__name: "SearchBox",
|
|
25997
26006
|
props: {
|
|
25998
26007
|
options: {},
|
|
@@ -26331,8 +26340,8 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
26331
26340
|
id: "lupa-search-box",
|
|
26332
26341
|
class: normalizeClass({ "lupa-search-box-opened": opened.value })
|
|
26333
26342
|
}, [
|
|
26334
|
-
createElementVNode("div", _hoisted_1
|
|
26335
|
-
createVNode(_sfc_main$
|
|
26343
|
+
createElementVNode("div", _hoisted_1$11, [
|
|
26344
|
+
createVNode(_sfc_main$1I, {
|
|
26336
26345
|
options: inputOptions.value,
|
|
26337
26346
|
suggestedValue: suggestedValue.value,
|
|
26338
26347
|
"can-close": (_a26 = _ctx.isSearchContainer) != null ? _a26 : false,
|
|
@@ -26345,7 +26354,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
26345
26354
|
onSearch: handleSearch,
|
|
26346
26355
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
26347
26356
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
26348
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
26357
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$1e, {
|
|
26349
26358
|
key: 0,
|
|
26350
26359
|
options: panelOptions.value,
|
|
26351
26360
|
inputValue: inputValue.value,
|
|
@@ -26453,11 +26462,11 @@ const getInitialSearchResults = (options, getQueryParamName, defaultData) => __a
|
|
|
26453
26462
|
options.options.onError(e2);
|
|
26454
26463
|
}
|
|
26455
26464
|
});
|
|
26456
|
-
const _hoisted_1$
|
|
26465
|
+
const _hoisted_1$10 = {
|
|
26457
26466
|
key: 0,
|
|
26458
26467
|
id: "lupa-search-results-did-you-mean"
|
|
26459
26468
|
};
|
|
26460
|
-
const _hoisted_2$
|
|
26469
|
+
const _hoisted_2$L = {
|
|
26461
26470
|
key: 0,
|
|
26462
26471
|
"data-cy": "suggested-search-text-label"
|
|
26463
26472
|
};
|
|
@@ -26466,7 +26475,7 @@ const _hoisted_3$y = {
|
|
|
26466
26475
|
"data-cy": "did-you-mean-label"
|
|
26467
26476
|
};
|
|
26468
26477
|
const _hoisted_4$p = { key: 1 };
|
|
26469
|
-
const _sfc_main$
|
|
26478
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
26470
26479
|
__name: "SearchResultsDidYouMean",
|
|
26471
26480
|
props: {
|
|
26472
26481
|
labels: {}
|
|
@@ -26498,8 +26507,8 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
26498
26507
|
paramStore.goToResults({ searchText, facet });
|
|
26499
26508
|
};
|
|
26500
26509
|
return (_ctx, _cache) => {
|
|
26501
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
26502
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
26510
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$10, [
|
|
26511
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$L, [
|
|
26503
26512
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
26504
26513
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
26505
26514
|
createElementVNode("span", {
|
|
@@ -26524,12 +26533,12 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
26524
26533
|
};
|
|
26525
26534
|
}
|
|
26526
26535
|
});
|
|
26527
|
-
const _hoisted_1
|
|
26536
|
+
const _hoisted_1$$ = {
|
|
26528
26537
|
key: 0,
|
|
26529
26538
|
class: "lupa-search-results-summary"
|
|
26530
26539
|
};
|
|
26531
|
-
const _hoisted_2$
|
|
26532
|
-
const _sfc_main$
|
|
26540
|
+
const _hoisted_2$K = ["innerHTML"];
|
|
26541
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
26533
26542
|
__name: "SearchResultsSummary",
|
|
26534
26543
|
props: {
|
|
26535
26544
|
label: {},
|
|
@@ -26544,8 +26553,8 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
26544
26553
|
return addParamsToLabel(props.label, range2, `<span>${totalItems.value}</span>`);
|
|
26545
26554
|
});
|
|
26546
26555
|
return (_ctx, _cache) => {
|
|
26547
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1
|
|
26548
|
-
createElementVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
26556
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
26557
|
+
createElementVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$K),
|
|
26549
26558
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
26550
26559
|
key: 0,
|
|
26551
26560
|
class: "lupa-filter-clear",
|
|
@@ -26556,7 +26565,130 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
26556
26565
|
};
|
|
26557
26566
|
}
|
|
26558
26567
|
});
|
|
26559
|
-
const
|
|
26568
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
26569
|
+
__name: "SkeletonBlock",
|
|
26570
|
+
props: {
|
|
26571
|
+
style: {}
|
|
26572
|
+
},
|
|
26573
|
+
setup(__props) {
|
|
26574
|
+
return (_ctx, _cache) => {
|
|
26575
|
+
return openBlock(), createElementBlock("div", {
|
|
26576
|
+
class: "lupa-skeleton-block-wrapper",
|
|
26577
|
+
style: normalizeStyle(_ctx.style)
|
|
26578
|
+
}, _cache[0] || (_cache[0] = [
|
|
26579
|
+
createElementVNode("div", { class: "lupa-skeleton-block" }, [
|
|
26580
|
+
createElementVNode("div", { class: "lupa-skeleton-block__shimmer" })
|
|
26581
|
+
], -1)
|
|
26582
|
+
]), 4);
|
|
26583
|
+
};
|
|
26584
|
+
}
|
|
26585
|
+
});
|
|
26586
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
26587
|
+
__name: "SkeletonText",
|
|
26588
|
+
props: {
|
|
26589
|
+
style: {},
|
|
26590
|
+
lines: { default: 1 }
|
|
26591
|
+
},
|
|
26592
|
+
setup(__props) {
|
|
26593
|
+
return (_ctx, _cache) => {
|
|
26594
|
+
return openBlock(), createElementBlock("div", {
|
|
26595
|
+
class: "lupa-skeleton-text-wrapper",
|
|
26596
|
+
style: normalizeStyle(_ctx.style)
|
|
26597
|
+
}, [
|
|
26598
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.lines, (i) => {
|
|
26599
|
+
return openBlock(), createElementBlock("div", {
|
|
26600
|
+
key: i,
|
|
26601
|
+
class: "lupa-skeleton-line"
|
|
26602
|
+
}, _cache[0] || (_cache[0] = [
|
|
26603
|
+
createElementVNode("div", { class: "lupa-skeleton-line__shimmer" }, null, -1)
|
|
26604
|
+
]));
|
|
26605
|
+
}), 128))
|
|
26606
|
+
], 4);
|
|
26607
|
+
};
|
|
26608
|
+
}
|
|
26609
|
+
});
|
|
26610
|
+
const _hoisted_1$_ = {
|
|
26611
|
+
key: 1,
|
|
26612
|
+
class: "lupa-skeleton-text"
|
|
26613
|
+
};
|
|
26614
|
+
const _hoisted_2$J = {
|
|
26615
|
+
key: 2,
|
|
26616
|
+
class: "lupa-skeleton-blocks"
|
|
26617
|
+
};
|
|
26618
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
26619
|
+
__name: "LoadingBlock",
|
|
26620
|
+
props: {
|
|
26621
|
+
style: {},
|
|
26622
|
+
type: {},
|
|
26623
|
+
enabled: { type: Boolean },
|
|
26624
|
+
loading: { type: Boolean },
|
|
26625
|
+
count: {}
|
|
26626
|
+
},
|
|
26627
|
+
setup(__props) {
|
|
26628
|
+
return (_ctx, _cache) => {
|
|
26629
|
+
return !_ctx.loading || !_ctx.enabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : _ctx.type === "text" ? (openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
26630
|
+
createVNode(_sfc_main$19, {
|
|
26631
|
+
style: normalizeStyle(_ctx.style),
|
|
26632
|
+
lines: _ctx.count
|
|
26633
|
+
}, null, 8, ["style", "lines"])
|
|
26634
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_2$J, [
|
|
26635
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (n) => {
|
|
26636
|
+
return openBlock(), createBlock(_sfc_main$1a, {
|
|
26637
|
+
key: n,
|
|
26638
|
+
style: normalizeStyle(_ctx.style)
|
|
26639
|
+
}, null, 8, ["style"]);
|
|
26640
|
+
}), 128))
|
|
26641
|
+
]));
|
|
26642
|
+
};
|
|
26643
|
+
}
|
|
26644
|
+
});
|
|
26645
|
+
const useLoadingSkeleton = () => {
|
|
26646
|
+
const paramsStore = useParamsStore();
|
|
26647
|
+
const optionsStore = useOptionsStore();
|
|
26648
|
+
const searchResultStore = useSearchResultStore();
|
|
26649
|
+
const { limit } = storeToRefs(paramsStore);
|
|
26650
|
+
const {
|
|
26651
|
+
searchResult,
|
|
26652
|
+
relatedQueriesResult,
|
|
26653
|
+
loading,
|
|
26654
|
+
loadingFacets: loadingFacetsBase,
|
|
26655
|
+
loadingRelatedQueries
|
|
26656
|
+
} = storeToRefs(searchResultStore);
|
|
26657
|
+
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
26658
|
+
const skeletonEnabled = computed(() => {
|
|
26659
|
+
var _a25, _b25, _c, _d;
|
|
26660
|
+
return ((_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.loadingSkeleton) == null ? void 0 : _b25.enabled) && !((_d = (_c = searchResult.value) == null ? void 0 : _c.items) == null ? void 0 : _d.length);
|
|
26661
|
+
});
|
|
26662
|
+
const relatedQueriesSkeletonEnabled = computed(() => {
|
|
26663
|
+
var _a25, _b25, _c, _d, _e;
|
|
26664
|
+
return ((_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.loadingSkeleton) == null ? void 0 : _b25.enabled) && Boolean((_c = searchResultOptions.value) == null ? void 0 : _c.relatedQueries) && !((_e = (_d = relatedQueriesResult.value) == null ? void 0 : _d.relatedQueries) == null ? void 0 : _e.length);
|
|
26665
|
+
});
|
|
26666
|
+
const facetSkeletonEnabled = computed(() => {
|
|
26667
|
+
var _a25, _b25, _c, _d;
|
|
26668
|
+
return ((_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.loadingSkeleton) == null ? void 0 : _b25.enabled) && !((_d = (_c = searchResult.value) == null ? void 0 : _c.facets) == null ? void 0 : _d.length);
|
|
26669
|
+
});
|
|
26670
|
+
const loadingFacets = computed(() => {
|
|
26671
|
+
var _a25;
|
|
26672
|
+
if ((_a25 = searchResultOptions.value) == null ? void 0 : _a25.splitExpensiveRequests) {
|
|
26673
|
+
return loadingFacetsBase.value;
|
|
26674
|
+
}
|
|
26675
|
+
return loading.value;
|
|
26676
|
+
});
|
|
26677
|
+
const loadingAny = computed(() => {
|
|
26678
|
+
return loading.value || loadingRelatedQueries.value || loadingFacets.value;
|
|
26679
|
+
});
|
|
26680
|
+
return {
|
|
26681
|
+
loading,
|
|
26682
|
+
loadingRelatedQueries,
|
|
26683
|
+
loadingFacets,
|
|
26684
|
+
loadingAny,
|
|
26685
|
+
limit,
|
|
26686
|
+
skeletonEnabled,
|
|
26687
|
+
relatedQueriesSkeletonEnabled,
|
|
26688
|
+
facetSkeletonEnabled
|
|
26689
|
+
};
|
|
26690
|
+
};
|
|
26691
|
+
const _hoisted_1$Z = {
|
|
26560
26692
|
key: 0,
|
|
26561
26693
|
class: "lupa-result-page-title",
|
|
26562
26694
|
"data-cy": "lupa-result-page-title"
|
|
@@ -26568,7 +26700,7 @@ const _hoisted_3$x = {
|
|
|
26568
26700
|
};
|
|
26569
26701
|
const _hoisted_4$o = { class: "lupa-results-total-count-number" };
|
|
26570
26702
|
const _hoisted_5$g = ["innerHTML"];
|
|
26571
|
-
const _sfc_main$
|
|
26703
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
26572
26704
|
__name: "SearchResultsTitle",
|
|
26573
26705
|
props: {
|
|
26574
26706
|
options: {},
|
|
@@ -26578,7 +26710,10 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
26578
26710
|
setup(__props) {
|
|
26579
26711
|
const props = __props;
|
|
26580
26712
|
const searchResultStore = useSearchResultStore();
|
|
26713
|
+
const paramsStore = useParamsStore();
|
|
26581
26714
|
const { currentQueryText, totalItems, searchResult } = storeToRefs(searchResultStore);
|
|
26715
|
+
const { skeletonEnabled, loading } = useLoadingSkeleton();
|
|
26716
|
+
const { query } = storeToRefs(paramsStore);
|
|
26582
26717
|
const suggestedSearchText = computed(() => searchResult.value.suggestedSearchText);
|
|
26583
26718
|
const queryText = computed(() => {
|
|
26584
26719
|
return suggestedSearchText.value || currentQueryText.value;
|
|
@@ -26611,29 +26746,39 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
26611
26746
|
});
|
|
26612
26747
|
return (_ctx, _cache) => {
|
|
26613
26748
|
return openBlock(), createElementBlock("div", null, [
|
|
26614
|
-
|
|
26615
|
-
|
|
26616
|
-
|
|
26617
|
-
|
|
26618
|
-
|
|
26619
|
-
|
|
26620
|
-
|
|
26621
|
-
|
|
26622
|
-
|
|
26623
|
-
|
|
26624
|
-
|
|
26625
|
-
|
|
26626
|
-
|
|
26627
|
-
|
|
26628
|
-
|
|
26629
|
-
|
|
26630
|
-
|
|
26631
|
-
|
|
26749
|
+
createVNode(_sfc_main$18, {
|
|
26750
|
+
type: "text",
|
|
26751
|
+
count: 1,
|
|
26752
|
+
enabled: unref(skeletonEnabled) && Boolean(unref(query)),
|
|
26753
|
+
loading: unref(loading)
|
|
26754
|
+
}, {
|
|
26755
|
+
default: withCtx(() => [
|
|
26756
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$Z, [
|
|
26757
|
+
createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
|
|
26758
|
+
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
26759
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, [
|
|
26760
|
+
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
26761
|
+
createElementVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
|
|
26762
|
+
_cache[0] || (_cache[0] = createTextVNode(")"))
|
|
26763
|
+
])) : createCommentVNode("", true)
|
|
26764
|
+
])) : createCommentVNode("", true),
|
|
26765
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$1b, {
|
|
26766
|
+
key: 1,
|
|
26767
|
+
label: summaryLabel.value
|
|
26768
|
+
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
26769
|
+
descriptionTop.value ? (openBlock(), createElementBlock("div", {
|
|
26770
|
+
key: 2,
|
|
26771
|
+
class: "lupa-result-page-description-top",
|
|
26772
|
+
innerHTML: descriptionTop.value
|
|
26773
|
+
}, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
|
|
26774
|
+
]),
|
|
26775
|
+
_: 1
|
|
26776
|
+
}, 8, ["enabled", "loading"])
|
|
26632
26777
|
]);
|
|
26633
26778
|
};
|
|
26634
26779
|
}
|
|
26635
26780
|
});
|
|
26636
|
-
const _hoisted_1$
|
|
26781
|
+
const _hoisted_1$Y = {
|
|
26637
26782
|
class: "lupa-current-filter-label",
|
|
26638
26783
|
"data-cy": "lupa-current-filter-label"
|
|
26639
26784
|
};
|
|
@@ -26641,7 +26786,7 @@ const _hoisted_2$H = {
|
|
|
26641
26786
|
class: "lupa-current-filter-value",
|
|
26642
26787
|
"data-cy": "lupa-current-filter-value"
|
|
26643
26788
|
};
|
|
26644
|
-
const _sfc_main$
|
|
26789
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
26645
26790
|
__name: "CurrentFilterDisplay",
|
|
26646
26791
|
props: {
|
|
26647
26792
|
filter: {}
|
|
@@ -26683,13 +26828,13 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
26683
26828
|
onClick: handleClick,
|
|
26684
26829
|
"aria-label": "Remove filter"
|
|
26685
26830
|
}, "⨉"),
|
|
26686
|
-
createElementVNode("div", _hoisted_1$
|
|
26831
|
+
createElementVNode("div", _hoisted_1$Y, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
26687
26832
|
createElementVNode("div", _hoisted_2$H, toDisplayString(formatFilterValue(props.filter)), 1)
|
|
26688
26833
|
], 2);
|
|
26689
26834
|
};
|
|
26690
26835
|
}
|
|
26691
26836
|
});
|
|
26692
|
-
const _hoisted_1$
|
|
26837
|
+
const _hoisted_1$X = { class: "lupa-filter-title-text" };
|
|
26693
26838
|
const _hoisted_2$G = {
|
|
26694
26839
|
key: 0,
|
|
26695
26840
|
class: "lupa-filter-count"
|
|
@@ -26699,7 +26844,7 @@ const _hoisted_3$w = {
|
|
|
26699
26844
|
class: "filter-values"
|
|
26700
26845
|
};
|
|
26701
26846
|
const _hoisted_4$n = { class: "lupa-current-filter-list" };
|
|
26702
|
-
const _sfc_main$
|
|
26847
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
26703
26848
|
__name: "CurrentFilters",
|
|
26704
26849
|
props: {
|
|
26705
26850
|
options: {},
|
|
@@ -26779,7 +26924,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
26779
26924
|
class: "lupa-current-filter-title",
|
|
26780
26925
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
26781
26926
|
}, [
|
|
26782
|
-
createElementVNode("div", _hoisted_1$
|
|
26927
|
+
createElementVNode("div", _hoisted_1$X, [
|
|
26783
26928
|
createTextVNode(toDisplayString((_c = (_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) != null ? _c : "") + " ", 1),
|
|
26784
26929
|
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$G, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
26785
26930
|
]),
|
|
@@ -26791,7 +26936,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
26791
26936
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
|
|
26792
26937
|
createElementVNode("div", _hoisted_4$n, [
|
|
26793
26938
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter) => {
|
|
26794
|
-
return openBlock(), createBlock(_sfc_main$
|
|
26939
|
+
return openBlock(), createBlock(_sfc_main$16, {
|
|
26795
26940
|
key: filter.key + "_" + filter.value,
|
|
26796
26941
|
filter,
|
|
26797
26942
|
units: units.value,
|
|
@@ -26809,8 +26954,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
26809
26954
|
};
|
|
26810
26955
|
}
|
|
26811
26956
|
});
|
|
26812
|
-
const _hoisted_1$
|
|
26813
|
-
const _sfc_main$
|
|
26957
|
+
const _hoisted_1$W = ["href"];
|
|
26958
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
26814
26959
|
__name: "CategoryFilterItem",
|
|
26815
26960
|
props: {
|
|
26816
26961
|
options: {},
|
|
@@ -26847,12 +26992,12 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
26847
26992
|
"data-cy": "lupa-child-category-item",
|
|
26848
26993
|
href: urlLink.value,
|
|
26849
26994
|
onClick: handleNavigation
|
|
26850
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
26995
|
+
}, toDisplayString(title.value), 9, _hoisted_1$W)
|
|
26851
26996
|
], 2);
|
|
26852
26997
|
};
|
|
26853
26998
|
}
|
|
26854
26999
|
});
|
|
26855
|
-
const _hoisted_1$
|
|
27000
|
+
const _hoisted_1$V = {
|
|
26856
27001
|
class: "lupa-category-filter",
|
|
26857
27002
|
"data-cy": "lupa-category-filter"
|
|
26858
27003
|
};
|
|
@@ -26860,7 +27005,7 @@ const _hoisted_2$F = { class: "lupa-category-back" };
|
|
|
26860
27005
|
const _hoisted_3$v = ["href"];
|
|
26861
27006
|
const _hoisted_4$m = ["href"];
|
|
26862
27007
|
const _hoisted_5$f = { class: "lupa-child-category-list" };
|
|
26863
|
-
const _sfc_main$
|
|
27008
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
26864
27009
|
__name: "CategoryFilter",
|
|
26865
27010
|
props: {
|
|
26866
27011
|
options: {}
|
|
@@ -26948,7 +27093,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
26948
27093
|
};
|
|
26949
27094
|
__expose({ fetch: fetch2 });
|
|
26950
27095
|
return (_ctx, _cache) => {
|
|
26951
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
27096
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
26952
27097
|
createElementVNode("div", _hoisted_2$F, [
|
|
26953
27098
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
26954
27099
|
key: 0,
|
|
@@ -26969,7 +27114,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
26969
27114
|
], 2),
|
|
26970
27115
|
createElementVNode("div", _hoisted_5$f, [
|
|
26971
27116
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
26972
|
-
return openBlock(), createBlock(_sfc_main$
|
|
27117
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
26973
27118
|
key: getCategoryKey(child),
|
|
26974
27119
|
item: child,
|
|
26975
27120
|
options: _ctx.options
|
|
@@ -26980,7 +27125,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
26980
27125
|
};
|
|
26981
27126
|
}
|
|
26982
27127
|
});
|
|
26983
|
-
const _hoisted_1$
|
|
27128
|
+
const _hoisted_1$U = {
|
|
26984
27129
|
class: "lupa-search-result-facet-term-values",
|
|
26985
27130
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
26986
27131
|
};
|
|
@@ -26995,7 +27140,7 @@ const _hoisted_7$4 = {
|
|
|
26995
27140
|
};
|
|
26996
27141
|
const _hoisted_8$2 = { key: 0 };
|
|
26997
27142
|
const _hoisted_9$2 = { key: 1 };
|
|
26998
|
-
const _sfc_main$
|
|
27143
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
26999
27144
|
__name: "TermFacet",
|
|
27000
27145
|
props: {
|
|
27001
27146
|
options: {},
|
|
@@ -27089,7 +27234,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
27089
27234
|
}
|
|
27090
27235
|
};
|
|
27091
27236
|
return (_ctx, _cache) => {
|
|
27092
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
27237
|
+
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
27093
27238
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
27094
27239
|
key: 0,
|
|
27095
27240
|
class: "lupa-term-filter",
|
|
@@ -28038,7 +28183,7 @@ const roundToMaxDecimals = (value, maxPrecision = 0.1) => {
|
|
|
28038
28183
|
}
|
|
28039
28184
|
return out;
|
|
28040
28185
|
};
|
|
28041
|
-
const _hoisted_1$
|
|
28186
|
+
const _hoisted_1$T = { class: "lupa-search-result-facet-stats-values" };
|
|
28042
28187
|
const _hoisted_2$D = {
|
|
28043
28188
|
key: 0,
|
|
28044
28189
|
class: "lupa-stats-facet-summary"
|
|
@@ -28067,7 +28212,7 @@ const _hoisted_14 = {
|
|
|
28067
28212
|
key: 2,
|
|
28068
28213
|
class: "lupa-stats-slider-wrapper"
|
|
28069
28214
|
};
|
|
28070
|
-
const _sfc_main$
|
|
28215
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
28071
28216
|
__name: "StatsFacet",
|
|
28072
28217
|
props: {
|
|
28073
28218
|
options: {},
|
|
@@ -28286,7 +28431,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
28286
28431
|
}
|
|
28287
28432
|
);
|
|
28288
28433
|
return (_ctx, _cache) => {
|
|
28289
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
28434
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
28290
28435
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$D, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
28291
28436
|
createElementVNode("div", _hoisted_4$k, [
|
|
28292
28437
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_5$d, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
@@ -28351,7 +28496,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
28351
28496
|
};
|
|
28352
28497
|
}
|
|
28353
28498
|
});
|
|
28354
|
-
const _hoisted_1$
|
|
28499
|
+
const _hoisted_1$S = { class: "lupa-term-checkbox-wrapper" };
|
|
28355
28500
|
const _hoisted_2$C = { class: "lupa-term-label" };
|
|
28356
28501
|
const _hoisted_3$s = {
|
|
28357
28502
|
key: 0,
|
|
@@ -28361,7 +28506,7 @@ const _hoisted_4$j = {
|
|
|
28361
28506
|
key: 0,
|
|
28362
28507
|
class: "lupa-facet-level"
|
|
28363
28508
|
};
|
|
28364
|
-
const _sfc_main
|
|
28509
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
28365
28510
|
__name: "HierarchyFacetLevel",
|
|
28366
28511
|
props: {
|
|
28367
28512
|
options: {},
|
|
@@ -28415,7 +28560,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
28415
28560
|
"data-cy": "lupa-facet-term",
|
|
28416
28561
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
28417
28562
|
}, [
|
|
28418
|
-
createElementVNode("div", _hoisted_1$
|
|
28563
|
+
createElementVNode("div", _hoisted_1$S, [
|
|
28419
28564
|
createElementVNode("span", {
|
|
28420
28565
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
28421
28566
|
}, null, 2)
|
|
@@ -28443,13 +28588,13 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
28443
28588
|
};
|
|
28444
28589
|
}
|
|
28445
28590
|
});
|
|
28446
|
-
const _hoisted_1$
|
|
28591
|
+
const _hoisted_1$R = {
|
|
28447
28592
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
28448
28593
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
28449
28594
|
};
|
|
28450
28595
|
const _hoisted_2$B = { key: 0 };
|
|
28451
28596
|
const _hoisted_3$r = ["placeholder"];
|
|
28452
|
-
const _sfc_main
|
|
28597
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
28453
28598
|
__name: "HierarchyFacet",
|
|
28454
28599
|
props: {
|
|
28455
28600
|
options: {},
|
|
@@ -28505,7 +28650,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
28505
28650
|
showAll.value = false;
|
|
28506
28651
|
};
|
|
28507
28652
|
return (_ctx, _cache) => {
|
|
28508
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
28653
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
28509
28654
|
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, [
|
|
28510
28655
|
withDirectives(createElementVNode("input", {
|
|
28511
28656
|
class: "lupa-term-filter",
|
|
@@ -28517,7 +28662,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
28517
28662
|
])
|
|
28518
28663
|
])) : createCommentVNode("", true),
|
|
28519
28664
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
28520
|
-
return openBlock(), createBlock(_sfc_main
|
|
28665
|
+
return openBlock(), createBlock(_sfc_main$10, {
|
|
28521
28666
|
key: item.title,
|
|
28522
28667
|
options: _ctx.options,
|
|
28523
28668
|
item,
|
|
@@ -28541,7 +28686,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
28541
28686
|
};
|
|
28542
28687
|
}
|
|
28543
28688
|
});
|
|
28544
|
-
const _hoisted_1$
|
|
28689
|
+
const _hoisted_1$Q = { class: "lupa-facet-label-text" };
|
|
28545
28690
|
const _hoisted_2$A = {
|
|
28546
28691
|
key: 0,
|
|
28547
28692
|
class: "lupa-facet-content",
|
|
@@ -28549,12 +28694,12 @@ const _hoisted_2$A = {
|
|
|
28549
28694
|
};
|
|
28550
28695
|
const __default__$1 = {
|
|
28551
28696
|
components: {
|
|
28552
|
-
TermFacet: _sfc_main$
|
|
28553
|
-
StatsFacet: _sfc_main$
|
|
28554
|
-
HierarchyFacet: _sfc_main
|
|
28697
|
+
TermFacet: _sfc_main$12,
|
|
28698
|
+
StatsFacet: _sfc_main$11,
|
|
28699
|
+
HierarchyFacet: _sfc_main$$
|
|
28555
28700
|
}
|
|
28556
28701
|
};
|
|
28557
|
-
const _sfc_main$
|
|
28702
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$1), {
|
|
28558
28703
|
__name: "FacetDisplay",
|
|
28559
28704
|
props: {
|
|
28560
28705
|
options: {},
|
|
@@ -28701,7 +28846,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
28701
28846
|
"data-cy": "lupa-search-result-facet-label",
|
|
28702
28847
|
onClick: toggleFacet
|
|
28703
28848
|
}, [
|
|
28704
|
-
createElementVNode("div", _hoisted_1$
|
|
28849
|
+
createElementVNode("div", _hoisted_1$Q, toDisplayString(facetLabel.value), 1),
|
|
28705
28850
|
createElementVNode("div", {
|
|
28706
28851
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
28707
28852
|
}, null, 2)
|
|
@@ -28819,11 +28964,11 @@ const useSidebarToggle = () => {
|
|
|
28819
28964
|
handleSortSidebarToggle
|
|
28820
28965
|
};
|
|
28821
28966
|
};
|
|
28822
|
-
const _hoisted_1$
|
|
28967
|
+
const _hoisted_1$P = {
|
|
28823
28968
|
key: 0,
|
|
28824
28969
|
class: "lupa-desktop-toggle-filter-count"
|
|
28825
28970
|
};
|
|
28826
|
-
const _sfc_main$
|
|
28971
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
28827
28972
|
__name: "DesktopFacetToggle",
|
|
28828
28973
|
setup(__props) {
|
|
28829
28974
|
const {
|
|
@@ -28845,12 +28990,12 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
28845
28990
|
(...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
|
|
28846
28991
|
}, [
|
|
28847
28992
|
createTextVNode(toDisplayString(unref(label)) + " ", 1),
|
|
28848
|
-
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
28993
|
+
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$P, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
28849
28994
|
], 2);
|
|
28850
28995
|
};
|
|
28851
28996
|
}
|
|
28852
28997
|
});
|
|
28853
|
-
const _sfc_main$
|
|
28998
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
28854
28999
|
__name: "DesktopSortToggle",
|
|
28855
29000
|
setup(__props) {
|
|
28856
29001
|
const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
|
|
@@ -28866,12 +29011,12 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
28866
29011
|
};
|
|
28867
29012
|
}
|
|
28868
29013
|
});
|
|
28869
|
-
const _hoisted_1$
|
|
29014
|
+
const _hoisted_1$O = { class: "lupa-search-result-facet-section" };
|
|
28870
29015
|
const _hoisted_2$z = {
|
|
28871
29016
|
key: 0,
|
|
28872
29017
|
class: "lupa-facets-title"
|
|
28873
29018
|
};
|
|
28874
|
-
const _sfc_main$
|
|
29019
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
28875
29020
|
__name: "FacetList",
|
|
28876
29021
|
props: {
|
|
28877
29022
|
options: {},
|
|
@@ -28913,14 +29058,14 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
28913
29058
|
};
|
|
28914
29059
|
return (_ctx, _cache) => {
|
|
28915
29060
|
var _a25;
|
|
28916
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
29061
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
28917
29062
|
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
28918
29063
|
createElementVNode("div", {
|
|
28919
29064
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a25 = displayFacetStyle.value) != null ? _a25 : "")])
|
|
28920
29065
|
}, [
|
|
28921
29066
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
28922
29067
|
var _a26;
|
|
28923
|
-
return openBlock(), createBlock(_sfc_main$
|
|
29068
|
+
return openBlock(), createBlock(_sfc_main$_, {
|
|
28924
29069
|
key: facet.key,
|
|
28925
29070
|
facet,
|
|
28926
29071
|
currentFilters: currentFiltersValue.value,
|
|
@@ -28932,14 +29077,14 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
28932
29077
|
onExpand: unref(handleFilterSidebarToggle)
|
|
28933
29078
|
}, null, 8, ["facet", "currentFilters", "options", "clearable", "current-facet-style", "onExpand"]);
|
|
28934
29079
|
}), 128)),
|
|
28935
|
-
_ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$
|
|
28936
|
-
_ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$
|
|
29080
|
+
_ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$Z, { key: 0 })) : createCommentVNode("", true),
|
|
29081
|
+
_ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$Y, { key: 1 })) : createCommentVNode("", true)
|
|
28937
29082
|
], 2)
|
|
28938
29083
|
]);
|
|
28939
29084
|
};
|
|
28940
29085
|
}
|
|
28941
29086
|
});
|
|
28942
|
-
const _sfc_main$
|
|
29087
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
28943
29088
|
__name: "FacetsButton",
|
|
28944
29089
|
props: {
|
|
28945
29090
|
options: {}
|
|
@@ -28964,7 +29109,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
28964
29109
|
};
|
|
28965
29110
|
}
|
|
28966
29111
|
});
|
|
28967
|
-
const _sfc_main$
|
|
29112
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
28968
29113
|
__name: "FacetsClearButton",
|
|
28969
29114
|
props: {
|
|
28970
29115
|
options: {}
|
|
@@ -28989,8 +29134,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
28989
29134
|
};
|
|
28990
29135
|
}
|
|
28991
29136
|
});
|
|
28992
|
-
const _hoisted_1$
|
|
28993
|
-
const _sfc_main$
|
|
29137
|
+
const _hoisted_1$N = { class: "lupa-facets-filter-button-wrapper" };
|
|
29138
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
28994
29139
|
__name: "Facets",
|
|
28995
29140
|
props: {
|
|
28996
29141
|
options: {},
|
|
@@ -29098,7 +29243,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
29098
29243
|
return openBlock(), createElementBlock("div", {
|
|
29099
29244
|
class: normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": unref(loadingFacets) }])
|
|
29100
29245
|
}, [
|
|
29101
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
29246
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$X, {
|
|
29102
29247
|
key: 0,
|
|
29103
29248
|
options: _ctx.options,
|
|
29104
29249
|
facets: regularFacets.value,
|
|
@@ -29108,13 +29253,13 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
29108
29253
|
onSelect: handleFacetSelect,
|
|
29109
29254
|
onClear: clear
|
|
29110
29255
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
29111
|
-
createElementVNode("div", _hoisted_1$
|
|
29112
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
29256
|
+
createElementVNode("div", _hoisted_1$N, [
|
|
29257
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$V, {
|
|
29113
29258
|
key: 0,
|
|
29114
29259
|
options: _ctx.options,
|
|
29115
29260
|
onClear: clearAll
|
|
29116
29261
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
29117
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
29262
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$W, {
|
|
29118
29263
|
key: 1,
|
|
29119
29264
|
options: _ctx.options,
|
|
29120
29265
|
onFilter: filter
|
|
@@ -29124,12 +29269,12 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
29124
29269
|
};
|
|
29125
29270
|
}
|
|
29126
29271
|
});
|
|
29127
|
-
const _hoisted_1$
|
|
29272
|
+
const _hoisted_1$M = {
|
|
29128
29273
|
key: 0,
|
|
29129
29274
|
id: "lupa-search-result-filters",
|
|
29130
29275
|
class: "lupa-search-result-filters"
|
|
29131
29276
|
};
|
|
29132
|
-
const _sfc_main$
|
|
29277
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
29133
29278
|
__name: "SearchResultsFilters",
|
|
29134
29279
|
props: {
|
|
29135
29280
|
options: {},
|
|
@@ -29139,6 +29284,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
29139
29284
|
emits: ["filter"],
|
|
29140
29285
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
29141
29286
|
const categoryFilters = ref(null);
|
|
29287
|
+
const { facetSkeletonEnabled, loadingFacets } = useLoadingSkeleton();
|
|
29142
29288
|
const props = __props;
|
|
29143
29289
|
const emit = __emit;
|
|
29144
29290
|
const desktopFiltersVisible = computed(() => {
|
|
@@ -29167,30 +29313,42 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
29167
29313
|
};
|
|
29168
29314
|
__expose({ fetch: fetch2 });
|
|
29169
29315
|
return (_ctx, _cache) => {
|
|
29170
|
-
|
|
29171
|
-
|
|
29172
|
-
|
|
29173
|
-
|
|
29174
|
-
|
|
29175
|
-
|
|
29176
|
-
},
|
|
29177
|
-
|
|
29178
|
-
|
|
29179
|
-
|
|
29180
|
-
|
|
29181
|
-
|
|
29182
|
-
|
|
29183
|
-
|
|
29184
|
-
|
|
29185
|
-
|
|
29186
|
-
|
|
29187
|
-
|
|
29188
|
-
|
|
29316
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
29317
|
+
createVNode(_sfc_main$18, {
|
|
29318
|
+
class: "lupa-skeleton-filters",
|
|
29319
|
+
count: 1,
|
|
29320
|
+
enabled: unref(facetSkeletonEnabled),
|
|
29321
|
+
loading: unref(loadingFacets)
|
|
29322
|
+
}, {
|
|
29323
|
+
default: withCtx(() => {
|
|
29324
|
+
var _a25;
|
|
29325
|
+
return [
|
|
29326
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$15, {
|
|
29327
|
+
key: 0,
|
|
29328
|
+
options: _ctx.options.currentFilters,
|
|
29329
|
+
expandable: (_a25 = _ctx.expandable) != null ? _a25 : false
|
|
29330
|
+
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
29331
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$13, {
|
|
29332
|
+
key: 1,
|
|
29333
|
+
options: _ctx.options.categories,
|
|
29334
|
+
ref_key: "categoryFilters",
|
|
29335
|
+
ref: categoryFilters
|
|
29336
|
+
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
29337
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$U, {
|
|
29338
|
+
key: 2,
|
|
29339
|
+
options: _ctx.options.facets,
|
|
29340
|
+
"facet-style": _ctx.style,
|
|
29341
|
+
onFilter: filter
|
|
29342
|
+
}, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
|
|
29343
|
+
];
|
|
29344
|
+
}),
|
|
29345
|
+
_: 1
|
|
29346
|
+
}, 8, ["enabled", "loading"])
|
|
29189
29347
|
])) : createCommentVNode("", true);
|
|
29190
29348
|
};
|
|
29191
29349
|
}
|
|
29192
29350
|
});
|
|
29193
|
-
const _hoisted_1$
|
|
29351
|
+
const _hoisted_1$L = { class: "lupa-mobile-sidebar-content" };
|
|
29194
29352
|
const _hoisted_2$y = { class: "lupa-sidebar-top" };
|
|
29195
29353
|
const _hoisted_3$q = { class: "lupa-sidebar-title" };
|
|
29196
29354
|
const _hoisted_4$i = {
|
|
@@ -29198,7 +29356,7 @@ const _hoisted_4$i = {
|
|
|
29198
29356
|
class: "lupa-sidebar-filter-count"
|
|
29199
29357
|
};
|
|
29200
29358
|
const _hoisted_5$c = { class: "lupa-sidebar-filter-options" };
|
|
29201
|
-
const _sfc_main$
|
|
29359
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
29202
29360
|
__name: "MobileFilterSidebar",
|
|
29203
29361
|
props: {
|
|
29204
29362
|
options: {}
|
|
@@ -29237,7 +29395,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
29237
29395
|
class: "lupa-sidebar-close",
|
|
29238
29396
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
29239
29397
|
}),
|
|
29240
|
-
createElementVNode("div", _hoisted_1$
|
|
29398
|
+
createElementVNode("div", _hoisted_1$L, [
|
|
29241
29399
|
createElementVNode("div", _hoisted_2$y, [
|
|
29242
29400
|
createElementVNode("div", _hoisted_3$q, [
|
|
29243
29401
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
@@ -29249,7 +29407,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
29249
29407
|
})
|
|
29250
29408
|
]),
|
|
29251
29409
|
createElementVNode("div", _hoisted_5$c, [
|
|
29252
|
-
createVNode(_sfc_main$
|
|
29410
|
+
createVNode(_sfc_main$T, {
|
|
29253
29411
|
options: _ctx.options,
|
|
29254
29412
|
expandable: isActiveFiltersExpanded.value,
|
|
29255
29413
|
style: "sidebar",
|
|
@@ -29261,14 +29419,17 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
29261
29419
|
};
|
|
29262
29420
|
}
|
|
29263
29421
|
});
|
|
29264
|
-
const _hoisted_1$
|
|
29422
|
+
const _hoisted_1$K = {
|
|
29423
|
+
key: 0,
|
|
29424
|
+
id: "lupa-search-results-breadcrumbs"
|
|
29425
|
+
};
|
|
29265
29426
|
const _hoisted_2$x = ["href", "onClick"];
|
|
29266
29427
|
const _hoisted_3$p = {
|
|
29267
29428
|
key: 1,
|
|
29268
29429
|
class: "lupa-search-results-breadcrumb-text"
|
|
29269
29430
|
};
|
|
29270
29431
|
const _hoisted_4$h = { key: 2 };
|
|
29271
|
-
const _sfc_main$
|
|
29432
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
29272
29433
|
__name: "SearchResultsBreadcrumbs",
|
|
29273
29434
|
props: {
|
|
29274
29435
|
breadcrumbs: {}
|
|
@@ -29286,6 +29447,10 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
29286
29447
|
const hasEventRouting = computed(() => {
|
|
29287
29448
|
return searchResultOptions.value.routingBehavior === "event";
|
|
29288
29449
|
});
|
|
29450
|
+
const hasBreadcrumbs = computed(() => {
|
|
29451
|
+
var _a25;
|
|
29452
|
+
return ((_a25 = breadcrumbsValue.value) == null ? void 0 : _a25.length) > 0;
|
|
29453
|
+
});
|
|
29289
29454
|
const getLabel = (label) => {
|
|
29290
29455
|
return addParamsToLabel(label, `'${currentQueryText.value}'`);
|
|
29291
29456
|
};
|
|
@@ -29293,7 +29458,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
29293
29458
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
29294
29459
|
};
|
|
29295
29460
|
return (_ctx, _cache) => {
|
|
29296
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
29461
|
+
return hasBreadcrumbs.value ? (openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
29297
29462
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
29298
29463
|
var _a25;
|
|
29299
29464
|
return openBlock(), createElementBlock("span", {
|
|
@@ -29312,16 +29477,16 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
29312
29477
|
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a25 = breadcrumb.separator) != null ? _a25 : "/"), 1)) : createCommentVNode("", true)
|
|
29313
29478
|
]);
|
|
29314
29479
|
}), 128))
|
|
29315
|
-
]);
|
|
29480
|
+
])) : createCommentVNode("", true);
|
|
29316
29481
|
};
|
|
29317
29482
|
}
|
|
29318
29483
|
});
|
|
29319
|
-
const _hoisted_1$
|
|
29484
|
+
const _hoisted_1$J = {
|
|
29320
29485
|
key: 0,
|
|
29321
29486
|
id: "lupa-search-result-filters",
|
|
29322
29487
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
29323
29488
|
};
|
|
29324
|
-
const _sfc_main$
|
|
29489
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
29325
29490
|
__name: "FiltersTopDropdown",
|
|
29326
29491
|
props: {
|
|
29327
29492
|
options: {}
|
|
@@ -29329,6 +29494,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
29329
29494
|
emits: ["filter"],
|
|
29330
29495
|
setup(__props, { emit: __emit }) {
|
|
29331
29496
|
const props = __props;
|
|
29497
|
+
const { facetSkeletonEnabled, loadingFacets } = useLoadingSkeleton();
|
|
29332
29498
|
const emit = __emit;
|
|
29333
29499
|
const filter = () => {
|
|
29334
29500
|
emit("filter");
|
|
@@ -29338,21 +29504,33 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
29338
29504
|
return (_a25 = props.options.visible) != null ? _a25 : true;
|
|
29339
29505
|
});
|
|
29340
29506
|
return (_ctx, _cache) => {
|
|
29341
|
-
|
|
29342
|
-
|
|
29343
|
-
|
|
29344
|
-
|
|
29345
|
-
|
|
29346
|
-
|
|
29347
|
-
|
|
29348
|
-
|
|
29349
|
-
|
|
29507
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
29508
|
+
createVNode(_sfc_main$18, {
|
|
29509
|
+
class: "lupa-skeleton-top-dropdown-filters",
|
|
29510
|
+
count: 1,
|
|
29511
|
+
enabled: unref(facetSkeletonEnabled),
|
|
29512
|
+
loading: unref(loadingFacets)
|
|
29513
|
+
}, {
|
|
29514
|
+
default: withCtx(() => {
|
|
29515
|
+
var _a25;
|
|
29516
|
+
return [
|
|
29517
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$U, {
|
|
29518
|
+
key: 0,
|
|
29519
|
+
options: _ctx.options.facets,
|
|
29520
|
+
"facet-style": (_a25 = _ctx.options.facets.style) == null ? void 0 : _a25.type,
|
|
29521
|
+
clearable: true,
|
|
29522
|
+
onFilter: filter
|
|
29523
|
+
}, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
|
|
29524
|
+
];
|
|
29525
|
+
}),
|
|
29526
|
+
_: 1
|
|
29527
|
+
}, 8, ["enabled", "loading"])
|
|
29350
29528
|
])) : createCommentVNode("", true);
|
|
29351
29529
|
};
|
|
29352
29530
|
}
|
|
29353
29531
|
});
|
|
29354
|
-
const _hoisted_1$
|
|
29355
|
-
const _sfc_main$
|
|
29532
|
+
const _hoisted_1$I = { id: "lupa-search-results-layout-selection" };
|
|
29533
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
29356
29534
|
__name: "SearchResultsLayoutSelection",
|
|
29357
29535
|
setup(__props) {
|
|
29358
29536
|
const searchResultStore = useSearchResultStore();
|
|
@@ -29363,7 +29541,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
29363
29541
|
searchResultStore.setLayout(layout2);
|
|
29364
29542
|
};
|
|
29365
29543
|
return (_ctx, _cache) => {
|
|
29366
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
29544
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
29367
29545
|
createElementVNode("div", {
|
|
29368
29546
|
class: normalizeClass([
|
|
29369
29547
|
"lupa-layout-selection-grid",
|
|
@@ -29385,11 +29563,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
29385
29563
|
};
|
|
29386
29564
|
}
|
|
29387
29565
|
});
|
|
29388
|
-
const _hoisted_1$
|
|
29566
|
+
const _hoisted_1$H = {
|
|
29389
29567
|
key: 0,
|
|
29390
29568
|
class: "lupa-mobile-toggle-filter-count"
|
|
29391
29569
|
};
|
|
29392
|
-
const _sfc_main$
|
|
29570
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
29393
29571
|
__name: "SearchResultsMobileToggle",
|
|
29394
29572
|
setup(__props) {
|
|
29395
29573
|
const {
|
|
@@ -29411,12 +29589,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
29411
29589
|
(...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
|
|
29412
29590
|
}, [
|
|
29413
29591
|
createTextVNode(toDisplayString(unref(label)) + " ", 1),
|
|
29414
|
-
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
29592
|
+
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$H, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
29415
29593
|
], 2);
|
|
29416
29594
|
};
|
|
29417
29595
|
}
|
|
29418
29596
|
});
|
|
29419
|
-
const _sfc_main$
|
|
29597
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
29420
29598
|
__name: "SearchResultsMobileFilterClose",
|
|
29421
29599
|
props: {
|
|
29422
29600
|
label: {}
|
|
@@ -29436,7 +29614,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
29436
29614
|
};
|
|
29437
29615
|
}
|
|
29438
29616
|
});
|
|
29439
|
-
const _hoisted_1$
|
|
29617
|
+
const _hoisted_1$G = {
|
|
29440
29618
|
key: 0,
|
|
29441
29619
|
id: "lupa-search-results-page-select",
|
|
29442
29620
|
"data-cy": "lupa-search-results-page-select"
|
|
@@ -29449,7 +29627,7 @@ const _hoisted_3$o = {
|
|
|
29449
29627
|
key: 0,
|
|
29450
29628
|
class: "lupa-page-number-separator"
|
|
29451
29629
|
};
|
|
29452
|
-
const _sfc_main$
|
|
29630
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
29453
29631
|
__name: "SearchResultsPageSelect",
|
|
29454
29632
|
props: {
|
|
29455
29633
|
lastPageLabel: {},
|
|
@@ -29544,7 +29722,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
29544
29722
|
};
|
|
29545
29723
|
return (_ctx, _cache) => {
|
|
29546
29724
|
var _a25;
|
|
29547
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
29725
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
29548
29726
|
showBack.value ? (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
|
|
29549
29727
|
key: 0,
|
|
29550
29728
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -29619,7 +29797,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
29619
29797
|
};
|
|
29620
29798
|
}
|
|
29621
29799
|
});
|
|
29622
|
-
const _hoisted_1$
|
|
29800
|
+
const _hoisted_1$F = {
|
|
29623
29801
|
id: "lupa-search-results-page-size",
|
|
29624
29802
|
"data-cy": "lupa-search-results-page-size"
|
|
29625
29803
|
};
|
|
@@ -29630,7 +29808,7 @@ const _hoisted_3$n = {
|
|
|
29630
29808
|
};
|
|
29631
29809
|
const _hoisted_4$g = ["value", "aria-label"];
|
|
29632
29810
|
const _hoisted_5$b = ["value"];
|
|
29633
|
-
const _sfc_main$
|
|
29811
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
29634
29812
|
__name: "SearchResultsPageSize",
|
|
29635
29813
|
props: {
|
|
29636
29814
|
labels: {},
|
|
@@ -29661,7 +29839,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
29661
29839
|
};
|
|
29662
29840
|
return (_ctx, _cache) => {
|
|
29663
29841
|
var _a25, _b25, _c;
|
|
29664
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
29842
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
29665
29843
|
createElementVNode("div", _hoisted_2$v, [
|
|
29666
29844
|
createElementVNode("label", _hoisted_3$n, toDisplayString(label.value), 1),
|
|
29667
29845
|
createElementVNode("select", {
|
|
@@ -29753,7 +29931,7 @@ const useSorting = () => {
|
|
|
29753
29931
|
setSortValue
|
|
29754
29932
|
};
|
|
29755
29933
|
};
|
|
29756
|
-
const _hoisted_1$
|
|
29934
|
+
const _hoisted_1$E = {
|
|
29757
29935
|
key: 0,
|
|
29758
29936
|
id: "lupa-search-results-sort",
|
|
29759
29937
|
class: "lupa-search-results-sort"
|
|
@@ -29765,7 +29943,7 @@ const _hoisted_3$m = {
|
|
|
29765
29943
|
};
|
|
29766
29944
|
const _hoisted_4$f = ["aria-label"];
|
|
29767
29945
|
const _hoisted_5$a = ["value"];
|
|
29768
|
-
const _sfc_main$
|
|
29946
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
29769
29947
|
__name: "SearchResultsSort",
|
|
29770
29948
|
setup(__props) {
|
|
29771
29949
|
const {
|
|
@@ -29786,7 +29964,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
29786
29964
|
});
|
|
29787
29965
|
return (_ctx, _cache) => {
|
|
29788
29966
|
var _a25, _b25;
|
|
29789
|
-
return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
29967
|
+
return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
29790
29968
|
createElementVNode("div", _hoisted_2$u, [
|
|
29791
29969
|
createElementVNode("label", _hoisted_3$m, toDisplayString(unref(sotyByTitleLabel)), 1),
|
|
29792
29970
|
withDirectives(createElementVNode("select", {
|
|
@@ -29813,7 +29991,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
29813
29991
|
};
|
|
29814
29992
|
}
|
|
29815
29993
|
});
|
|
29816
|
-
const _sfc_main$
|
|
29994
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
29817
29995
|
__name: "SearchResultsSortDrawerToggle",
|
|
29818
29996
|
setup(__props) {
|
|
29819
29997
|
const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
|
|
@@ -29829,7 +30007,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
29829
30007
|
};
|
|
29830
30008
|
}
|
|
29831
30009
|
});
|
|
29832
|
-
const _hoisted_1$
|
|
30010
|
+
const _hoisted_1$D = { class: "lupa-toolbar-left" };
|
|
29833
30011
|
const _hoisted_2$t = {
|
|
29834
30012
|
key: 0,
|
|
29835
30013
|
class: "lupa-toolbar-right-title"
|
|
@@ -29844,7 +30022,7 @@ const _hoisted_7$2 = {
|
|
|
29844
30022
|
};
|
|
29845
30023
|
const _hoisted_8 = { key: 2 };
|
|
29846
30024
|
const _hoisted_9 = { key: 4 };
|
|
29847
|
-
const _sfc_main$
|
|
30025
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
29848
30026
|
__name: "SearchResultsToolbar",
|
|
29849
30027
|
props: {
|
|
29850
30028
|
options: {},
|
|
@@ -29957,16 +30135,16 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
29957
30135
|
id: "lupa-search-results-toolbar",
|
|
29958
30136
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
29959
30137
|
}, [
|
|
29960
|
-
createElementVNode("div", _hoisted_1$
|
|
30138
|
+
createElementVNode("div", _hoisted_1$D, [
|
|
29961
30139
|
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
29962
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
29963
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
30140
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$P, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$l)),
|
|
30141
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$1b, {
|
|
29964
30142
|
key: 3,
|
|
29965
30143
|
label: searchSummaryLabel.value,
|
|
29966
30144
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
29967
30145
|
onClear: handleClearAll
|
|
29968
30146
|
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$e)),
|
|
29969
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
30147
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$M, {
|
|
29970
30148
|
key: 5,
|
|
29971
30149
|
options: paginationOptions.value.pageSelect,
|
|
29972
30150
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
@@ -29975,19 +30153,19 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
29975
30153
|
]),
|
|
29976
30154
|
createElementVNode("div", _hoisted_6$4, [
|
|
29977
30155
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$2, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
29978
|
-
createVNode(_sfc_main$
|
|
29979
|
-
createVNode(_sfc_main$
|
|
29980
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
30156
|
+
createVNode(_sfc_main$O),
|
|
30157
|
+
createVNode(_sfc_main$J),
|
|
30158
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$L, {
|
|
29981
30159
|
key: 1,
|
|
29982
30160
|
options: paginationOptions.value.pageSize,
|
|
29983
30161
|
labels: paginationOptions.value.labels
|
|
29984
30162
|
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
29985
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
30163
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
29986
30164
|
key: 3,
|
|
29987
30165
|
options: sortOptions.value,
|
|
29988
30166
|
callbacks: callbacks.value
|
|
29989
30167
|
}, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
|
|
29990
|
-
showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$
|
|
30168
|
+
showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$N, {
|
|
29991
30169
|
key: 5,
|
|
29992
30170
|
label: optionsValue.value.labels.mobileFilterCloseButton
|
|
29993
30171
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
@@ -29996,7 +30174,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
29996
30174
|
};
|
|
29997
30175
|
}
|
|
29998
30176
|
});
|
|
29999
|
-
const _sfc_main$
|
|
30177
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
30000
30178
|
__name: "SearchResultsProductImage",
|
|
30001
30179
|
props: {
|
|
30002
30180
|
item: {},
|
|
@@ -30004,7 +30182,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
30004
30182
|
},
|
|
30005
30183
|
setup(__props) {
|
|
30006
30184
|
return (_ctx, _cache) => {
|
|
30007
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30185
|
+
return openBlock(), createBlock(_sfc_main$1A, {
|
|
30008
30186
|
item: _ctx.item,
|
|
30009
30187
|
options: _ctx.options,
|
|
30010
30188
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -30013,7 +30191,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
30013
30191
|
};
|
|
30014
30192
|
}
|
|
30015
30193
|
});
|
|
30016
|
-
const _hoisted_1$
|
|
30194
|
+
const _hoisted_1$C = ["title", "innerHTML"];
|
|
30017
30195
|
const _hoisted_2$s = ["title"];
|
|
30018
30196
|
const _hoisted_3$k = ["href", "innerHTML"];
|
|
30019
30197
|
const _hoisted_4$d = ["title"];
|
|
@@ -30022,7 +30200,7 @@ const _hoisted_5$8 = {
|
|
|
30022
30200
|
class: "lupa-search-results-product-title-text"
|
|
30023
30201
|
};
|
|
30024
30202
|
const _hoisted_6$3 = ["href"];
|
|
30025
|
-
const _sfc_main$
|
|
30203
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
30026
30204
|
__name: "SearchResultsProductTitle",
|
|
30027
30205
|
props: {
|
|
30028
30206
|
item: {},
|
|
@@ -30059,7 +30237,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
30059
30237
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
30060
30238
|
title: sanitizedTitle.value,
|
|
30061
30239
|
innerHTML: sanitizedTitle.value
|
|
30062
|
-
}, null, 12, _hoisted_1$
|
|
30240
|
+
}, null, 12, _hoisted_1$C)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
|
|
30063
30241
|
key: 1,
|
|
30064
30242
|
class: "lupa-search-results-product-title",
|
|
30065
30243
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -30088,8 +30266,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
30088
30266
|
};
|
|
30089
30267
|
}
|
|
30090
30268
|
});
|
|
30091
|
-
const _hoisted_1$
|
|
30092
|
-
const _sfc_main$
|
|
30269
|
+
const _hoisted_1$B = ["innerHTML"];
|
|
30270
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
30093
30271
|
__name: "SearchResultsProductDescription",
|
|
30094
30272
|
props: {
|
|
30095
30273
|
item: {},
|
|
@@ -30116,7 +30294,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
30116
30294
|
class: "lupa-search-results-product-description",
|
|
30117
30295
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
30118
30296
|
innerHTML: sanitizedDescription.value
|
|
30119
|
-
}, null, 12, _hoisted_1$
|
|
30297
|
+
}, null, 12, _hoisted_1$B)) : (openBlock(), createElementBlock("div", {
|
|
30120
30298
|
key: 1,
|
|
30121
30299
|
class: "lupa-search-results-product-description",
|
|
30122
30300
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -30124,7 +30302,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
30124
30302
|
};
|
|
30125
30303
|
}
|
|
30126
30304
|
});
|
|
30127
|
-
const _hoisted_1$
|
|
30305
|
+
const _hoisted_1$A = { id: "lupa-search-results-rating" };
|
|
30128
30306
|
const _hoisted_2$r = { class: "lupa-ratings" };
|
|
30129
30307
|
const _hoisted_3$j = { class: "lupa-ratings-base" };
|
|
30130
30308
|
const _hoisted_4$c = ["innerHTML"];
|
|
@@ -30132,7 +30310,7 @@ const _hoisted_5$7 = { class: "lupa-rating-wrapper" };
|
|
|
30132
30310
|
const _hoisted_6$2 = ["innerHTML"];
|
|
30133
30311
|
const _hoisted_7$1 = ["href"];
|
|
30134
30312
|
const STAR_COUNT = 5;
|
|
30135
|
-
const _sfc_main$
|
|
30313
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
30136
30314
|
__name: "SearchResultsProductRating",
|
|
30137
30315
|
props: {
|
|
30138
30316
|
item: {},
|
|
@@ -30169,7 +30347,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
30169
30347
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
30170
30348
|
});
|
|
30171
30349
|
return (_ctx, _cache) => {
|
|
30172
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30350
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
30173
30351
|
createElementVNode("div", _hoisted_2$r, [
|
|
30174
30352
|
createElementVNode("div", _hoisted_3$j, [
|
|
30175
30353
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
@@ -30203,11 +30381,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
30203
30381
|
};
|
|
30204
30382
|
}
|
|
30205
30383
|
});
|
|
30206
|
-
const _hoisted_1$
|
|
30384
|
+
const _hoisted_1$z = {
|
|
30207
30385
|
class: "lupa-search-results-product-regular-price",
|
|
30208
30386
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
30209
30387
|
};
|
|
30210
|
-
const _sfc_main$
|
|
30388
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
30211
30389
|
__name: "SearchResultsProductRegularPrice",
|
|
30212
30390
|
props: {
|
|
30213
30391
|
item: {},
|
|
@@ -30229,11 +30407,11 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
30229
30407
|
);
|
|
30230
30408
|
});
|
|
30231
30409
|
return (_ctx, _cache) => {
|
|
30232
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30410
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, toDisplayString(price.value), 1);
|
|
30233
30411
|
};
|
|
30234
30412
|
}
|
|
30235
30413
|
});
|
|
30236
|
-
const _sfc_main$
|
|
30414
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
30237
30415
|
__name: "SearchResultsProductPrice",
|
|
30238
30416
|
props: {
|
|
30239
30417
|
item: {},
|
|
@@ -30267,12 +30445,12 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
30267
30445
|
};
|
|
30268
30446
|
}
|
|
30269
30447
|
});
|
|
30270
|
-
const _hoisted_1$
|
|
30448
|
+
const _hoisted_1$y = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
30271
30449
|
const _hoisted_2$q = { class: "lupa-search-results-product-addtocart" };
|
|
30272
30450
|
const _hoisted_3$i = ["disabled"];
|
|
30273
30451
|
const _hoisted_4$b = ["href"];
|
|
30274
30452
|
const _hoisted_5$6 = ["id", "disabled"];
|
|
30275
|
-
const _sfc_main$
|
|
30453
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
30276
30454
|
__name: "SearchResultsProductAddToCart",
|
|
30277
30455
|
props: {
|
|
30278
30456
|
item: {},
|
|
@@ -30331,7 +30509,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
30331
30509
|
loading.value = false;
|
|
30332
30510
|
});
|
|
30333
30511
|
return (_ctx, _cache) => {
|
|
30334
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30512
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
30335
30513
|
createElementVNode("div", _hoisted_2$q, [
|
|
30336
30514
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
30337
30515
|
key: 0,
|
|
@@ -30354,12 +30532,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
30354
30532
|
};
|
|
30355
30533
|
}
|
|
30356
30534
|
});
|
|
30357
|
-
const _hoisted_1$
|
|
30535
|
+
const _hoisted_1$x = ["innerHTML"];
|
|
30358
30536
|
const _hoisted_2$p = { key: 0 };
|
|
30359
30537
|
const _hoisted_3$h = { key: 1 };
|
|
30360
30538
|
const _hoisted_4$a = { class: "lupa-search-box-custom-label" };
|
|
30361
30539
|
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
30362
|
-
const _sfc_main$
|
|
30540
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
30363
30541
|
__name: "SearchResultsProductCustom",
|
|
30364
30542
|
props: {
|
|
30365
30543
|
item: {},
|
|
@@ -30401,7 +30579,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
30401
30579
|
key: 0,
|
|
30402
30580
|
class: className.value,
|
|
30403
30581
|
innerHTML: text.value
|
|
30404
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
30582
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$x)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
30405
30583
|
key: 1,
|
|
30406
30584
|
class: className.value
|
|
30407
30585
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
@@ -30413,8 +30591,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
30413
30591
|
};
|
|
30414
30592
|
}
|
|
30415
30593
|
});
|
|
30416
|
-
const _hoisted_1$
|
|
30417
|
-
const _sfc_main$
|
|
30594
|
+
const _hoisted_1$w = ["innerHTML"];
|
|
30595
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
30418
30596
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
30419
30597
|
props: {
|
|
30420
30598
|
item: {},
|
|
@@ -30450,15 +30628,15 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
30450
30628
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
30451
30629
|
class: className.value,
|
|
30452
30630
|
innerHTML: text.value
|
|
30453
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
30631
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$w);
|
|
30454
30632
|
};
|
|
30455
30633
|
}
|
|
30456
30634
|
});
|
|
30457
|
-
const _hoisted_1$
|
|
30635
|
+
const _hoisted_1$v = { id: "lupa-search-results-rating" };
|
|
30458
30636
|
const _hoisted_2$o = ["innerHTML"];
|
|
30459
30637
|
const _hoisted_3$g = { class: "lupa-ratings" };
|
|
30460
30638
|
const _hoisted_4$9 = ["href"];
|
|
30461
|
-
const _sfc_main$
|
|
30639
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
30462
30640
|
__name: "SearchResultsProductSingleStarRating",
|
|
30463
30641
|
props: {
|
|
30464
30642
|
item: {},
|
|
@@ -30486,7 +30664,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
30486
30664
|
return RATING_STAR_HTML;
|
|
30487
30665
|
});
|
|
30488
30666
|
return (_ctx, _cache) => {
|
|
30489
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30667
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
30490
30668
|
createElementVNode("div", {
|
|
30491
30669
|
innerHTML: star.value,
|
|
30492
30670
|
class: "lupa-rating lupa-rating-highlighted"
|
|
@@ -30502,19 +30680,19 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
30502
30680
|
});
|
|
30503
30681
|
const __default__ = {
|
|
30504
30682
|
components: {
|
|
30505
|
-
SearchResultsProductImage: _sfc_main$
|
|
30506
|
-
SearchResultsProductTitle: _sfc_main$
|
|
30507
|
-
SearchResultsProductDescription: _sfc_main$
|
|
30508
|
-
SearchResultsProductRating: _sfc_main$
|
|
30509
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
30510
|
-
SearchResultsProductPrice: _sfc_main$
|
|
30511
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
30512
|
-
SearchResultsProductCustom: _sfc_main$
|
|
30513
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
30514
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
30515
|
-
}
|
|
30516
|
-
};
|
|
30517
|
-
const _sfc_main$
|
|
30683
|
+
SearchResultsProductImage: _sfc_main$H,
|
|
30684
|
+
SearchResultsProductTitle: _sfc_main$G,
|
|
30685
|
+
SearchResultsProductDescription: _sfc_main$F,
|
|
30686
|
+
SearchResultsProductRating: _sfc_main$E,
|
|
30687
|
+
SearchResultsProductRegularPrice: _sfc_main$D,
|
|
30688
|
+
SearchResultsProductPrice: _sfc_main$C,
|
|
30689
|
+
SearchResultsProductAddToCart: _sfc_main$B,
|
|
30690
|
+
SearchResultsProductCustom: _sfc_main$A,
|
|
30691
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$z,
|
|
30692
|
+
SearchResultsProductSingleStarRating: _sfc_main$y
|
|
30693
|
+
}
|
|
30694
|
+
};
|
|
30695
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__), {
|
|
30518
30696
|
__name: "SearchResultsProductCardElement",
|
|
30519
30697
|
props: {
|
|
30520
30698
|
item: {},
|
|
@@ -30592,13 +30770,13 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
30592
30770
|
};
|
|
30593
30771
|
}
|
|
30594
30772
|
}));
|
|
30595
|
-
const _hoisted_1$
|
|
30773
|
+
const _hoisted_1$u = ["href"];
|
|
30596
30774
|
const _hoisted_2$n = {
|
|
30597
30775
|
key: 0,
|
|
30598
30776
|
class: "lupa-out-of-stock"
|
|
30599
30777
|
};
|
|
30600
30778
|
const _hoisted_3$f = { class: "lupa-search-result-product-details-section" };
|
|
30601
|
-
const _sfc_main$
|
|
30779
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
30602
30780
|
__name: "SearchResultsProductCard",
|
|
30603
30781
|
props: {
|
|
30604
30782
|
product: {},
|
|
@@ -30775,7 +30953,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
30775
30953
|
default: withCtx(() => {
|
|
30776
30954
|
var _a25;
|
|
30777
30955
|
return [
|
|
30778
|
-
createVNode(_sfc_main$
|
|
30956
|
+
createVNode(_sfc_main$1k, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
30779
30957
|
createElementVNode("div", {
|
|
30780
30958
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
30781
30959
|
}, [
|
|
@@ -30785,7 +30963,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
30785
30963
|
onClick: handleNavigation
|
|
30786
30964
|
}, [
|
|
30787
30965
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
30788
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30966
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
30789
30967
|
class: "lupa-search-results-product-element",
|
|
30790
30968
|
item: _ctx.product,
|
|
30791
30969
|
element,
|
|
@@ -30796,16 +30974,16 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
30796
30974
|
onProductEvent: handleProductEvent
|
|
30797
30975
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
30798
30976
|
}), 128)),
|
|
30799
|
-
createVNode(_sfc_main$
|
|
30977
|
+
createVNode(_sfc_main$1k, {
|
|
30800
30978
|
options: badgesOptions.value,
|
|
30801
30979
|
position: "image",
|
|
30802
30980
|
class: "lupa-image-badges"
|
|
30803
30981
|
}, null, 8, ["options"]),
|
|
30804
30982
|
((_a25 = labels.value) == null ? void 0 : _a25.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
30805
|
-
], 8, _hoisted_1$
|
|
30983
|
+
], 8, _hoisted_1$u),
|
|
30806
30984
|
createElementVNode("div", _hoisted_3$f, [
|
|
30807
30985
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
30808
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30986
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
30809
30987
|
class: "lupa-search-results-product-element",
|
|
30810
30988
|
item: _ctx.product,
|
|
30811
30989
|
element,
|
|
@@ -30823,7 +31001,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
30823
31001
|
class: normalizeClass("lupa-element-group-" + group)
|
|
30824
31002
|
}, [
|
|
30825
31003
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
30826
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31004
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
30827
31005
|
class: "lupa-search-results-product-element",
|
|
30828
31006
|
item: _ctx.product,
|
|
30829
31007
|
element,
|
|
@@ -30844,7 +31022,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
30844
31022
|
};
|
|
30845
31023
|
}
|
|
30846
31024
|
});
|
|
30847
|
-
const _hoisted_1$
|
|
31025
|
+
const _hoisted_1$t = {
|
|
30848
31026
|
id: "lupa-search-results-similar-queries",
|
|
30849
31027
|
"data-cy": "lupa-search-results-similar-queries"
|
|
30850
31028
|
};
|
|
@@ -30860,7 +31038,7 @@ const _hoisted_7 = {
|
|
|
30860
31038
|
class: "lupa-products",
|
|
30861
31039
|
"data-cy": "lupa-products"
|
|
30862
31040
|
};
|
|
30863
|
-
const _sfc_main$
|
|
31041
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
30864
31042
|
__name: "SearchResultsSimilarQueries",
|
|
30865
31043
|
props: {
|
|
30866
31044
|
labels: {},
|
|
@@ -30898,7 +31076,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
30898
31076
|
};
|
|
30899
31077
|
};
|
|
30900
31078
|
return (_ctx, _cache) => {
|
|
30901
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31079
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
30902
31080
|
createElementVNode("div", _hoisted_2$m, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
30903
31081
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
30904
31082
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
@@ -30918,7 +31096,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
30918
31096
|
]),
|
|
30919
31097
|
createElementVNode("div", _hoisted_7, [
|
|
30920
31098
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
30921
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31099
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
30922
31100
|
style: normalizeStyle(_ctx.columnSize),
|
|
30923
31101
|
key: getDocumentKey(index2, product),
|
|
30924
31102
|
product,
|
|
@@ -30933,7 +31111,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
30933
31111
|
};
|
|
30934
31112
|
}
|
|
30935
31113
|
});
|
|
30936
|
-
const _hoisted_1$
|
|
31114
|
+
const _hoisted_1$s = {
|
|
30937
31115
|
key: 0,
|
|
30938
31116
|
class: "lupa-results-additional-panel"
|
|
30939
31117
|
};
|
|
@@ -30941,7 +31119,7 @@ const _hoisted_2$l = {
|
|
|
30941
31119
|
class: "lupa-results-additional-panel-items",
|
|
30942
31120
|
"data-cy": "lupa-results-additional-panel-items"
|
|
30943
31121
|
};
|
|
30944
|
-
const _sfc_main$
|
|
31122
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
30945
31123
|
__name: "AdditionalPanel",
|
|
30946
31124
|
props: {
|
|
30947
31125
|
panel: {},
|
|
@@ -31014,10 +31192,10 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
31014
31192
|
handleQueryChange();
|
|
31015
31193
|
});
|
|
31016
31194
|
return (_ctx, _cache) => {
|
|
31017
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31195
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
31018
31196
|
createElementVNode("div", _hoisted_2$l, [
|
|
31019
31197
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
31020
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31198
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
31021
31199
|
key: index,
|
|
31022
31200
|
product: item,
|
|
31023
31201
|
options: _ctx.panel,
|
|
@@ -31035,11 +31213,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
31035
31213
|
};
|
|
31036
31214
|
}
|
|
31037
31215
|
});
|
|
31038
|
-
const _hoisted_1$
|
|
31216
|
+
const _hoisted_1$r = {
|
|
31039
31217
|
key: 0,
|
|
31040
31218
|
class: "lupa-results-additional-panels"
|
|
31041
31219
|
};
|
|
31042
|
-
const _sfc_main$
|
|
31220
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
31043
31221
|
__name: "AdditionalPanels",
|
|
31044
31222
|
props: {
|
|
31045
31223
|
options: {},
|
|
@@ -31056,9 +31234,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
31056
31234
|
return locationPanels.value.length > 0;
|
|
31057
31235
|
});
|
|
31058
31236
|
return (_ctx, _cache) => {
|
|
31059
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31237
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
31060
31238
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
31061
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31239
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
31062
31240
|
key: panel.queryKey,
|
|
31063
31241
|
panel,
|
|
31064
31242
|
options: _ctx.sdkOptions
|
|
@@ -31075,11 +31253,11 @@ const _export_sfc = (sfc, props) => {
|
|
|
31075
31253
|
}
|
|
31076
31254
|
return target2;
|
|
31077
31255
|
};
|
|
31078
|
-
const _sfc_main$
|
|
31079
|
-
const _hoisted_1$
|
|
31256
|
+
const _sfc_main$s = {};
|
|
31257
|
+
const _hoisted_1$q = { class: "lupa-spinner-wrapper" };
|
|
31080
31258
|
const _hoisted_2$k = { class: "lupa-spinner" };
|
|
31081
31259
|
function _sfc_render(_ctx, _cache) {
|
|
31082
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31260
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
31083
31261
|
createElementVNode("div", _hoisted_2$k, [
|
|
31084
31262
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
|
|
31085
31263
|
return createElementVNode("div", { key: x });
|
|
@@ -31087,8 +31265,8 @@ function _sfc_render(_ctx, _cache) {
|
|
|
31087
31265
|
])
|
|
31088
31266
|
]);
|
|
31089
31267
|
}
|
|
31090
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31091
|
-
const _hoisted_1$
|
|
31268
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render]]);
|
|
31269
|
+
const _hoisted_1$p = {
|
|
31092
31270
|
id: "lupa-search-results-similar-results",
|
|
31093
31271
|
"data-cy": "lupa-search-results-similar-results"
|
|
31094
31272
|
};
|
|
@@ -31097,7 +31275,7 @@ const _hoisted_3$d = {
|
|
|
31097
31275
|
class: "lupa-products",
|
|
31098
31276
|
"data-cy": "lupa-products"
|
|
31099
31277
|
};
|
|
31100
|
-
const _sfc_main$
|
|
31278
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
31101
31279
|
__name: "SearchResultsSimilarResults",
|
|
31102
31280
|
props: {
|
|
31103
31281
|
columnSize: {},
|
|
@@ -31118,11 +31296,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
31118
31296
|
};
|
|
31119
31297
|
});
|
|
31120
31298
|
return (_ctx, _cache) => {
|
|
31121
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31299
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
31122
31300
|
createElementVNode("div", _hoisted_2$j, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
31123
31301
|
createElementVNode("div", _hoisted_3$d, [
|
|
31124
31302
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
31125
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31303
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
31126
31304
|
style: normalizeStyle(_ctx.columnSize),
|
|
31127
31305
|
key: getDocumentKey(index, product),
|
|
31128
31306
|
product,
|
|
@@ -31243,7 +31421,7 @@ const extractRelatedSource = (source, searchResults, options, activeFilters) =>
|
|
|
31243
31421
|
return extractFacetsRelatedSource(source, searchResults, options, activeFilters);
|
|
31244
31422
|
}
|
|
31245
31423
|
});
|
|
31246
|
-
const _hoisted_1$
|
|
31424
|
+
const _hoisted_1$o = { class: "lupa-related-query-item" };
|
|
31247
31425
|
const _hoisted_2$i = { class: "lupa-related-query-image" };
|
|
31248
31426
|
const _hoisted_3$c = { class: "lupa-related-query-label" };
|
|
31249
31427
|
const _hoisted_4$7 = { class: "lupa-related-query-title" };
|
|
@@ -31251,7 +31429,7 @@ const _hoisted_5$3 = {
|
|
|
31251
31429
|
key: 0,
|
|
31252
31430
|
class: "lupa-related-query-count"
|
|
31253
31431
|
};
|
|
31254
|
-
const _sfc_main$
|
|
31432
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
31255
31433
|
__name: "RelatedQueryPanel",
|
|
31256
31434
|
props: {
|
|
31257
31435
|
query: {},
|
|
@@ -31348,9 +31526,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
31348
31526
|
});
|
|
31349
31527
|
return (_ctx, _cache) => {
|
|
31350
31528
|
var _a25;
|
|
31351
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31529
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
31352
31530
|
createElementVNode("div", _hoisted_2$i, [
|
|
31353
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
31531
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1A, {
|
|
31354
31532
|
key: 0,
|
|
31355
31533
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
31356
31534
|
"image-class": "lupa-related-query-image",
|
|
@@ -31366,7 +31544,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
31366
31544
|
};
|
|
31367
31545
|
}
|
|
31368
31546
|
});
|
|
31369
|
-
const _hoisted_1$
|
|
31547
|
+
const _hoisted_1$n = {
|
|
31370
31548
|
key: 0,
|
|
31371
31549
|
class: "lupa-related-queries"
|
|
31372
31550
|
};
|
|
@@ -31375,7 +31553,7 @@ const _hoisted_2$h = {
|
|
|
31375
31553
|
class: "lupa-related-queries-title"
|
|
31376
31554
|
};
|
|
31377
31555
|
const _hoisted_3$b = ["onClick"];
|
|
31378
|
-
const _sfc_main$
|
|
31556
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
31379
31557
|
__name: "RelatedQueries",
|
|
31380
31558
|
props: {
|
|
31381
31559
|
options: {}
|
|
@@ -31469,7 +31647,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
31469
31647
|
};
|
|
31470
31648
|
return (_ctx, _cache) => {
|
|
31471
31649
|
var _a25, _b25, _c, _d;
|
|
31472
|
-
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31650
|
+
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
31473
31651
|
((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$h, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
31474
31652
|
createElementVNode("ul", null, [
|
|
31475
31653
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
@@ -31480,7 +31658,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
31480
31658
|
createElementVNode("a", {
|
|
31481
31659
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
31482
31660
|
}, [
|
|
31483
|
-
createVNode(_sfc_main$
|
|
31661
|
+
createVNode(_sfc_main$q, {
|
|
31484
31662
|
"source-key": query.key,
|
|
31485
31663
|
options: _ctx.options,
|
|
31486
31664
|
query: query.value,
|
|
@@ -31524,13 +31702,13 @@ const extractRedirectionSuggestion = (searchText = "", options) => {
|
|
|
31524
31702
|
}
|
|
31525
31703
|
return null;
|
|
31526
31704
|
};
|
|
31527
|
-
const _hoisted_1$
|
|
31705
|
+
const _hoisted_1$m = {
|
|
31528
31706
|
key: 0,
|
|
31529
31707
|
class: "lupa-redirection-suggestion"
|
|
31530
31708
|
};
|
|
31531
31709
|
const _hoisted_2$g = { class: "lupa-redirections-suggestion-label" };
|
|
31532
31710
|
const _hoisted_3$a = ["href"];
|
|
31533
|
-
const _sfc_main$
|
|
31711
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
31534
31712
|
__name: "RedirectionSuggestions",
|
|
31535
31713
|
props: {
|
|
31536
31714
|
options: {}
|
|
@@ -31553,7 +31731,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
31553
31731
|
)
|
|
31554
31732
|
);
|
|
31555
31733
|
return (_ctx, _cache) => {
|
|
31556
|
-
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31734
|
+
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
31557
31735
|
createElementVNode("h4", _hoisted_2$g, [
|
|
31558
31736
|
createElementVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$a)
|
|
31559
31737
|
])
|
|
@@ -31561,11 +31739,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
31561
31739
|
};
|
|
31562
31740
|
}
|
|
31563
31741
|
});
|
|
31564
|
-
const _hoisted_1$
|
|
31742
|
+
const _hoisted_1$l = {
|
|
31565
31743
|
key: 0,
|
|
31566
31744
|
class: "lupa-refiners-loading-notice"
|
|
31567
31745
|
};
|
|
31568
|
-
const _sfc_main$
|
|
31746
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
31569
31747
|
__name: "RefinersLoadingNotice",
|
|
31570
31748
|
props: {
|
|
31571
31749
|
labels: {}
|
|
@@ -31576,14 +31754,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
31576
31754
|
const props = __props;
|
|
31577
31755
|
const label = computed(() => props.labels.refinersLoadingNotice);
|
|
31578
31756
|
return (_ctx, _cache) => {
|
|
31579
|
-
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31757
|
+
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
31580
31758
|
createElementVNode("p", null, toDisplayString(label.value), 1),
|
|
31581
31759
|
createVNode(Spinner)
|
|
31582
31760
|
])) : createCommentVNode("", true);
|
|
31583
31761
|
};
|
|
31584
31762
|
}
|
|
31585
31763
|
});
|
|
31586
|
-
const _hoisted_1$
|
|
31764
|
+
const _hoisted_1$k = { class: "lupa-related-query-item" };
|
|
31587
31765
|
const _hoisted_2$f = { class: "lupa-related-query-image" };
|
|
31588
31766
|
const _hoisted_3$9 = { class: "lupa-related-query-label" };
|
|
31589
31767
|
const _hoisted_4$6 = { class: "lupa-related-query-title" };
|
|
@@ -31591,7 +31769,7 @@ const _hoisted_5$2 = {
|
|
|
31591
31769
|
key: 0,
|
|
31592
31770
|
class: "lupa-related-query-count"
|
|
31593
31771
|
};
|
|
31594
|
-
const _sfc_main$
|
|
31772
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
31595
31773
|
__name: "RelatedQueryPanelApi",
|
|
31596
31774
|
props: {
|
|
31597
31775
|
relatedQuery: {},
|
|
@@ -31623,9 +31801,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
31623
31801
|
});
|
|
31624
31802
|
return (_ctx, _cache) => {
|
|
31625
31803
|
var _a25;
|
|
31626
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31804
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
31627
31805
|
createElementVNode("div", _hoisted_2$f, [
|
|
31628
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
31806
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1A, {
|
|
31629
31807
|
key: 0,
|
|
31630
31808
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
31631
31809
|
"image-class": "lupa-related-query-image",
|
|
@@ -31641,7 +31819,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
31641
31819
|
};
|
|
31642
31820
|
}
|
|
31643
31821
|
});
|
|
31644
|
-
const _hoisted_1$
|
|
31822
|
+
const _hoisted_1$j = {
|
|
31645
31823
|
key: 0,
|
|
31646
31824
|
class: "lupa-related-queries"
|
|
31647
31825
|
};
|
|
@@ -31650,7 +31828,7 @@ const _hoisted_2$e = {
|
|
|
31650
31828
|
class: "lupa-related-queries-title"
|
|
31651
31829
|
};
|
|
31652
31830
|
const _hoisted_3$8 = ["onClick"];
|
|
31653
|
-
const _sfc_main$
|
|
31831
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
31654
31832
|
__name: "RelatedQueriesApi",
|
|
31655
31833
|
props: {
|
|
31656
31834
|
options: {}
|
|
@@ -31702,7 +31880,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
31702
31880
|
};
|
|
31703
31881
|
return (_ctx, _cache) => {
|
|
31704
31882
|
var _a25, _b25, _c, _d;
|
|
31705
|
-
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31883
|
+
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
31706
31884
|
((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$e, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
31707
31885
|
createElementVNode("ul", null, [
|
|
31708
31886
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
@@ -31713,7 +31891,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
31713
31891
|
createElementVNode("a", {
|
|
31714
31892
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
31715
31893
|
}, [
|
|
31716
|
-
createVNode(_sfc_main$
|
|
31894
|
+
createVNode(_sfc_main$m, {
|
|
31717
31895
|
relatedQuery: query,
|
|
31718
31896
|
options: _ctx.options
|
|
31719
31897
|
}, null, 8, ["relatedQuery", "options"])
|
|
@@ -31725,9 +31903,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
31725
31903
|
};
|
|
31726
31904
|
}
|
|
31727
31905
|
});
|
|
31728
|
-
const _hoisted_1$
|
|
31906
|
+
const _hoisted_1$i = { key: 0 };
|
|
31729
31907
|
const _hoisted_2$d = ["innerHTML"];
|
|
31730
|
-
const _sfc_main$
|
|
31908
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
31731
31909
|
__name: "ZeroResults",
|
|
31732
31910
|
props: {
|
|
31733
31911
|
emptyResultsLabel: {},
|
|
@@ -31756,7 +31934,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
31756
31934
|
});
|
|
31757
31935
|
return (_ctx, _cache) => {
|
|
31758
31936
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
31759
|
-
showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31937
|
+
showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
31760
31938
|
createTextVNode(toDisplayString(_ctx.emptyResultsLabel) + " ", 1),
|
|
31761
31939
|
createElementVNode("span", null, toDisplayString(_ctx.currentQueryText), 1)
|
|
31762
31940
|
])) : createCommentVNode("", true),
|
|
@@ -31768,6 +31946,31 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
31768
31946
|
};
|
|
31769
31947
|
}
|
|
31770
31948
|
});
|
|
31949
|
+
const _hoisted_1$h = {
|
|
31950
|
+
key: 1,
|
|
31951
|
+
class: "lupa-skeleton-grid"
|
|
31952
|
+
};
|
|
31953
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
31954
|
+
__name: "LoadingGrid",
|
|
31955
|
+
props: {
|
|
31956
|
+
style: {},
|
|
31957
|
+
enabled: { type: Boolean },
|
|
31958
|
+
loading: { type: Boolean },
|
|
31959
|
+
count: {}
|
|
31960
|
+
},
|
|
31961
|
+
setup(__props) {
|
|
31962
|
+
return (_ctx, _cache) => {
|
|
31963
|
+
return !_ctx.loading || !_ctx.enabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
31964
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (n) => {
|
|
31965
|
+
return openBlock(), createBlock(_sfc_main$1a, {
|
|
31966
|
+
key: n,
|
|
31967
|
+
style: normalizeStyle(_ctx.style)
|
|
31968
|
+
}, null, 8, ["style"]);
|
|
31969
|
+
}), 128))
|
|
31970
|
+
]));
|
|
31971
|
+
};
|
|
31972
|
+
}
|
|
31973
|
+
});
|
|
31771
31974
|
const _hoisted_1$g = { id: "lupa-search-results-products" };
|
|
31772
31975
|
const _hoisted_2$c = {
|
|
31773
31976
|
class: "lupa-products",
|
|
@@ -31779,12 +31982,12 @@ const _hoisted_3$7 = {
|
|
|
31779
31982
|
"data-cy": "lupa-no-results-in-page"
|
|
31780
31983
|
};
|
|
31781
31984
|
const _hoisted_4$5 = {
|
|
31782
|
-
key:
|
|
31985
|
+
key: 3,
|
|
31783
31986
|
class: "lupa-empty-results",
|
|
31784
31987
|
"data-cy": "lupa-no-results"
|
|
31785
31988
|
};
|
|
31786
|
-
const _hoisted_5$1 = { key:
|
|
31787
|
-
const _hoisted_6 = { key:
|
|
31989
|
+
const _hoisted_5$1 = { key: 4 };
|
|
31990
|
+
const _hoisted_6 = { key: 5 };
|
|
31788
31991
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
31789
31992
|
__name: "SearchResultsProducts",
|
|
31790
31993
|
props: {
|
|
@@ -31808,6 +32011,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
31808
32011
|
loading,
|
|
31809
32012
|
relatedQueriesApiEnabled
|
|
31810
32013
|
} = storeToRefs(searchResultStore);
|
|
32014
|
+
const { limit, skeletonEnabled, relatedQueriesSkeletonEnabled, loadingRelatedQueries } = useLoadingSkeleton();
|
|
31811
32015
|
const emit = __emit;
|
|
31812
32016
|
const productCardOptions = computed(() => {
|
|
31813
32017
|
return pick(props.options, [
|
|
@@ -31864,12 +32068,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
31864
32068
|
});
|
|
31865
32069
|
const columnSize = computed(() => {
|
|
31866
32070
|
if (props.ssr) {
|
|
31867
|
-
return
|
|
32071
|
+
return {};
|
|
31868
32072
|
}
|
|
31869
32073
|
if (layout.value === ResultsLayoutEnum.LIST) {
|
|
31870
|
-
return
|
|
32074
|
+
return { width: "100%" };
|
|
31871
32075
|
}
|
|
31872
|
-
return
|
|
32076
|
+
return { width: `${100 / columnCount.value}%` };
|
|
31873
32077
|
});
|
|
31874
32078
|
const hasSimilarQueries = computed(() => {
|
|
31875
32079
|
var _a25;
|
|
@@ -31905,40 +32109,50 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
31905
32109
|
emit("filter");
|
|
31906
32110
|
};
|
|
31907
32111
|
return (_ctx, _cache) => {
|
|
31908
|
-
var _a25, _b25, _c;
|
|
32112
|
+
var _a25, _b25, _c, _d;
|
|
31909
32113
|
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
31910
|
-
unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
32114
|
+
!unref(skeletonEnabled) && unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
31911
32115
|
key: 0,
|
|
31912
32116
|
class: "lupa-loader"
|
|
31913
32117
|
})) : createCommentVNode("", true),
|
|
31914
|
-
createVNode(_sfc_main$
|
|
32118
|
+
createVNode(_sfc_main$o, {
|
|
31915
32119
|
options: _ctx.options.redirectionSuggestions
|
|
31916
32120
|
}, null, 8, ["options"]),
|
|
31917
|
-
createVNode(_sfc_main$
|
|
32121
|
+
createVNode(_sfc_main$t, {
|
|
31918
32122
|
options: _ctx.options,
|
|
31919
32123
|
location: "top",
|
|
31920
|
-
|
|
31921
|
-
}, null, 8, ["options", "
|
|
31922
|
-
|
|
31923
|
-
|
|
31924
|
-
|
|
31925
|
-
|
|
31926
|
-
|
|
31927
|
-
|
|
31928
|
-
|
|
31929
|
-
|
|
31930
|
-
|
|
31931
|
-
|
|
32124
|
+
"sdk-options": _ctx.options.options
|
|
32125
|
+
}, null, 8, ["options", "sdk-options"]),
|
|
32126
|
+
createVNode(_sfc_main$18, {
|
|
32127
|
+
enabled: unref(relatedQueriesSkeletonEnabled),
|
|
32128
|
+
loading: unref(loading) || unref(loadingRelatedQueries),
|
|
32129
|
+
count: 1,
|
|
32130
|
+
class: "lupa-skeleton-related-queries"
|
|
32131
|
+
}, {
|
|
32132
|
+
default: withCtx(() => [
|
|
32133
|
+
showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$p, {
|
|
32134
|
+
key: 0,
|
|
32135
|
+
options: _ctx.options.relatedQueries
|
|
32136
|
+
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
32137
|
+
showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$l, {
|
|
32138
|
+
key: 1,
|
|
32139
|
+
options: _ctx.options.relatedQueries
|
|
32140
|
+
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
32141
|
+
]),
|
|
32142
|
+
_: 1
|
|
32143
|
+
}, 8, ["enabled", "loading"]),
|
|
32144
|
+
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
32145
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
31932
32146
|
key: 0,
|
|
31933
32147
|
options: (_a25 = _ctx.options.filters) != null ? _a25 : {}
|
|
31934
32148
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
31935
|
-
createVNode(_sfc_main$
|
|
32149
|
+
createVNode(_sfc_main$I, {
|
|
31936
32150
|
class: "lupa-toolbar-mobile",
|
|
31937
32151
|
options: _ctx.options,
|
|
31938
32152
|
"pagination-location": "top",
|
|
31939
32153
|
onFilter: filter
|
|
31940
32154
|
}, null, 8, ["options"]),
|
|
31941
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
32155
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$15, {
|
|
31942
32156
|
key: 1,
|
|
31943
32157
|
class: normalizeClass(currentFiltersClass.value),
|
|
31944
32158
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -31946,13 +32160,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
31946
32160
|
expandable: !desktopFiltersExpanded.value
|
|
31947
32161
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
31948
32162
|
], 64)) : createCommentVNode("", true),
|
|
31949
|
-
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key:
|
|
31950
|
-
createVNode(_sfc_main$
|
|
32163
|
+
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
32164
|
+
createVNode(_sfc_main$I, {
|
|
31951
32165
|
class: "lupa-toolbar-top",
|
|
31952
32166
|
options: _ctx.options,
|
|
31953
32167
|
"pagination-location": "top"
|
|
31954
32168
|
}, null, 8, ["options"]),
|
|
31955
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
32169
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$15, {
|
|
31956
32170
|
key: 0,
|
|
31957
32171
|
class: normalizeClass(currentFiltersClass.value),
|
|
31958
32172
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -31960,22 +32174,32 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
31960
32174
|
expandable: !desktopFiltersExpanded.value
|
|
31961
32175
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true),
|
|
31962
32176
|
createElementVNode("div", _hoisted_2$c, [
|
|
31963
|
-
|
|
31964
|
-
|
|
31965
|
-
|
|
31966
|
-
|
|
31967
|
-
|
|
31968
|
-
|
|
31969
|
-
|
|
31970
|
-
|
|
31971
|
-
|
|
31972
|
-
|
|
31973
|
-
|
|
31974
|
-
|
|
31975
|
-
|
|
31976
|
-
|
|
31977
|
-
|
|
31978
|
-
|
|
32177
|
+
createVNode(_sfc_main$j, {
|
|
32178
|
+
enabled: unref(skeletonEnabled),
|
|
32179
|
+
loading: unref(loading),
|
|
32180
|
+
count: (_b25 = unref(limit)) != null ? _b25 : 12,
|
|
32181
|
+
style: normalizeStyle(columnSize.value)
|
|
32182
|
+
}, {
|
|
32183
|
+
default: withCtx(() => [
|
|
32184
|
+
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
|
|
32185
|
+
return renderSlot(_ctx.$slots, "productCard", {
|
|
32186
|
+
key: getProductKeyAction(index, product),
|
|
32187
|
+
style: normalizeStyle(columnSize.value),
|
|
32188
|
+
product,
|
|
32189
|
+
options: productCardOptions.value
|
|
32190
|
+
});
|
|
32191
|
+
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
32192
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
32193
|
+
key: getProductKeyAction(index, product),
|
|
32194
|
+
style: normalizeStyle(columnSize.value),
|
|
32195
|
+
product,
|
|
32196
|
+
options: productCardOptions.value,
|
|
32197
|
+
"analytics-metadata": clickMetadata.value
|
|
32198
|
+
}, null, 8, ["style", "product", "options", "analytics-metadata"]);
|
|
32199
|
+
}), 128))
|
|
32200
|
+
]),
|
|
32201
|
+
_: 3
|
|
32202
|
+
}, 8, ["enabled", "loading", "count", "style"])
|
|
31979
32203
|
]),
|
|
31980
32204
|
unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
|
|
31981
32205
|
createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
|
|
@@ -31985,40 +32209,40 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
31985
32209
|
onClick: goToFirstPage
|
|
31986
32210
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
31987
32211
|
])) : createCommentVNode("", true),
|
|
31988
|
-
createVNode(_sfc_main$
|
|
32212
|
+
createVNode(_sfc_main$I, {
|
|
31989
32213
|
class: "lupa-toolbar-bottom",
|
|
31990
32214
|
options: _ctx.options,
|
|
31991
32215
|
"pagination-location": "bottom"
|
|
31992
32216
|
}, null, 8, ["options"]),
|
|
31993
|
-
createVNode(_sfc_main$
|
|
32217
|
+
createVNode(_sfc_main$t, {
|
|
31994
32218
|
options: _ctx.options,
|
|
31995
32219
|
location: "bottom",
|
|
31996
|
-
|
|
31997
|
-
}, null, 8, ["options", "
|
|
32220
|
+
"sdk-options": _ctx.options.options
|
|
32221
|
+
}, null, 8, ["options", "sdk-options"])
|
|
31998
32222
|
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
31999
|
-
createVNode(_sfc_main$
|
|
32000
|
-
|
|
32001
|
-
|
|
32002
|
-
|
|
32003
|
-
|
|
32004
|
-
}, null, 8, ["
|
|
32223
|
+
createVNode(_sfc_main$k, {
|
|
32224
|
+
"empty-results-label": (_c = _ctx.options.labels) == null ? void 0 : _c.emptyResults,
|
|
32225
|
+
"current-query-text": unref(currentQueryText),
|
|
32226
|
+
"has-similar-queries": hasSimilarQueries.value || hasSimilarResults.value,
|
|
32227
|
+
"zero-results": (_d = _ctx.options) == null ? void 0 : _d.zeroResults
|
|
32228
|
+
}, null, 8, ["empty-results-label", "current-query-text", "has-similar-queries", "zero-results"])
|
|
32005
32229
|
])) : createCommentVNode("", true),
|
|
32006
|
-
createVNode(_sfc_main$
|
|
32230
|
+
createVNode(_sfc_main$n, {
|
|
32007
32231
|
labels: _ctx.options.labels
|
|
32008
32232
|
}, null, 8, ["labels"]),
|
|
32009
32233
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
32010
|
-
createVNode(_sfc_main$
|
|
32234
|
+
createVNode(_sfc_main$v, {
|
|
32011
32235
|
labels: similarQueriesLabels.value,
|
|
32012
|
-
|
|
32013
|
-
|
|
32014
|
-
}, null, 8, ["labels", "
|
|
32236
|
+
"column-size": columnSize.value,
|
|
32237
|
+
"product-card-options": productCardOptions.value
|
|
32238
|
+
}, null, 8, ["labels", "column-size", "product-card-options"])
|
|
32015
32239
|
])) : createCommentVNode("", true),
|
|
32016
32240
|
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
32017
|
-
createVNode(_sfc_main$
|
|
32241
|
+
createVNode(_sfc_main$r, {
|
|
32018
32242
|
labels: similarResultsLabels.value,
|
|
32019
|
-
|
|
32020
|
-
|
|
32021
|
-
}, null, 8, ["labels", "
|
|
32243
|
+
"column-size": columnSize.value,
|
|
32244
|
+
"product-card-options": productCardOptions.value
|
|
32245
|
+
}, null, 8, ["labels", "column-size", "product-card-options"])
|
|
32022
32246
|
])) : createCommentVNode("", true),
|
|
32023
32247
|
renderSlot(_ctx.$slots, "append")
|
|
32024
32248
|
]);
|
|
@@ -32093,7 +32317,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
32093
32317
|
])) : createCommentVNode("", true),
|
|
32094
32318
|
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
32095
32319
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
32096
|
-
return openBlock(), createBlock(_sfc_main$
|
|
32320
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
32097
32321
|
key: getCategoryKey(child),
|
|
32098
32322
|
item: child,
|
|
32099
32323
|
options: categoryOptions.value
|
|
@@ -32527,8 +32751,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
32527
32751
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
32528
32752
|
}, [
|
|
32529
32753
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
32530
|
-
createVNode(_sfc_main$
|
|
32531
|
-
createVNode(_sfc_main$
|
|
32754
|
+
createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
32755
|
+
createVNode(_sfc_main$17, {
|
|
32532
32756
|
"show-summary": true,
|
|
32533
32757
|
options: _ctx.options,
|
|
32534
32758
|
"is-product-list": (_a25 = _ctx.isProductList) != null ? _a25 : false
|
|
@@ -32538,13 +32762,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
32538
32762
|
key: 1,
|
|
32539
32763
|
options: _ctx.options
|
|
32540
32764
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
32541
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
32765
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$S, {
|
|
32542
32766
|
key: 2,
|
|
32543
32767
|
options: _ctx.options.filters,
|
|
32544
32768
|
onFilter: handleParamsChange
|
|
32545
32769
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
32546
32770
|
_ctx.options.sort ? (openBlock(), createBlock(_sfc_main$f, { key: 3 })) : createCommentVNode("", true),
|
|
32547
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
32771
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$R, {
|
|
32548
32772
|
key: 4,
|
|
32549
32773
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
32550
32774
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
@@ -32553,7 +32777,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
32553
32777
|
id: "lupa-search-results",
|
|
32554
32778
|
class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
|
|
32555
32779
|
}, [
|
|
32556
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
32780
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$T, {
|
|
32557
32781
|
key: 0,
|
|
32558
32782
|
options: (_b25 = _ctx.options.filters) != null ? _b25 : {},
|
|
32559
32783
|
ref_key: "searchResultsFilters",
|
|
@@ -32561,8 +32785,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
32561
32785
|
onFilter: handleParamsChange
|
|
32562
32786
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
32563
32787
|
createElementVNode("div", _hoisted_2$8, [
|
|
32564
|
-
createVNode(_sfc_main$
|
|
32565
|
-
createVNode(_sfc_main$
|
|
32788
|
+
createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
32789
|
+
createVNode(_sfc_main$17, {
|
|
32566
32790
|
options: _ctx.options,
|
|
32567
32791
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
32568
32792
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -32578,8 +32802,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
32578
32802
|
}, 8, ["options", "ssr"])
|
|
32579
32803
|
])
|
|
32580
32804
|
], 2)) : (openBlock(), createElementBlock(Fragment, { key: 6 }, [
|
|
32581
|
-
createVNode(_sfc_main$
|
|
32582
|
-
createVNode(_sfc_main$
|
|
32805
|
+
createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
32806
|
+
createVNode(_sfc_main$17, {
|
|
32583
32807
|
options: _ctx.options,
|
|
32584
32808
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
32585
32809
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -32587,7 +32811,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
32587
32811
|
id: "lupa-search-results",
|
|
32588
32812
|
class: normalizeClass(indicatorClasses.value)
|
|
32589
32813
|
}, [
|
|
32590
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
32814
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$T, {
|
|
32591
32815
|
key: 0,
|
|
32592
32816
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
32593
32817
|
ref_key: "searchResultsFilters",
|
|
@@ -32738,7 +32962,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
32738
32962
|
onClick: withModifiers(innerClick, ["stop"])
|
|
32739
32963
|
}, [
|
|
32740
32964
|
createElementVNode("div", _hoisted_1$a, [
|
|
32741
|
-
createVNode(_sfc_main$
|
|
32965
|
+
createVNode(_sfc_main$1d, {
|
|
32742
32966
|
options: fullSearchBoxOptions.value,
|
|
32743
32967
|
"is-search-container": true,
|
|
32744
32968
|
ref_key: "searchBox",
|
|
@@ -34393,7 +34617,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
34393
34617
|
key: getProductKeyAction(index, product)
|
|
34394
34618
|
}, {
|
|
34395
34619
|
default: withCtx(() => [
|
|
34396
|
-
createVNode(_sfc_main$
|
|
34620
|
+
createVNode(_sfc_main$w, {
|
|
34397
34621
|
product,
|
|
34398
34622
|
options: _ctx.options,
|
|
34399
34623
|
"click-tracking-settings": clickTrackingSettings.value,
|
|
@@ -34408,7 +34632,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
34408
34632
|
_: 1
|
|
34409
34633
|
}, 16, ["wrap-around"])) : (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
34410
34634
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations.value, (product, index) => {
|
|
34411
|
-
return openBlock(), createBlock(_sfc_main$
|
|
34635
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
34412
34636
|
style: normalizeStyle(columnSize.value),
|
|
34413
34637
|
key: getProductKeyAction(index, product),
|
|
34414
34638
|
product,
|
|
@@ -34654,7 +34878,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
34654
34878
|
createElementVNode("a", {
|
|
34655
34879
|
href: getLink(product)
|
|
34656
34880
|
}, [
|
|
34657
|
-
createVNode(_sfc_main$
|
|
34881
|
+
createVNode(_sfc_main$H, {
|
|
34658
34882
|
item: product,
|
|
34659
34883
|
options: image.value
|
|
34660
34884
|
}, null, 8, ["item", "options"])
|
|
@@ -34819,7 +35043,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
34819
35043
|
return (_ctx, _cache) => {
|
|
34820
35044
|
return openBlock(), createElementBlock("section", _hoisted_1$3, [
|
|
34821
35045
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
34822
|
-
return openBlock(), createBlock(_sfc_main$
|
|
35046
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
34823
35047
|
class: "lupa-chat-product-card",
|
|
34824
35048
|
key: getProductKeyAction(index, product),
|
|
34825
35049
|
product,
|
|
@@ -35154,7 +35378,7 @@ export {
|
|
|
35154
35378
|
LupaSearch,
|
|
35155
35379
|
_sfc_main$c as ProductList,
|
|
35156
35380
|
_sfc_main$a as Recommendations,
|
|
35157
|
-
_sfc_main$
|
|
35381
|
+
_sfc_main$1d as SearchBox,
|
|
35158
35382
|
SearchBoxPanelType,
|
|
35159
35383
|
_sfc_main$b as SearchContainer,
|
|
35160
35384
|
_sfc_main$e as SearchResults,
|