@getlupa/vue 0.24.3 → 0.25.1
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 +717 -485
- package/dist/lupaSearch.mjs +717 -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 +8 -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,138 @@ 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 enabled = computed(() => {
|
|
26659
|
+
var _a25, _b25;
|
|
26660
|
+
return (_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.loadingSkeleton) == null ? void 0 : _b25.enabled;
|
|
26661
|
+
});
|
|
26662
|
+
const showOnEveryFetch = computed(() => {
|
|
26663
|
+
var _a25, _b25;
|
|
26664
|
+
return (_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.loadingSkeleton) == null ? void 0 : _b25.showOnEveryFetch;
|
|
26665
|
+
});
|
|
26666
|
+
const skeletonEnabled = computed(() => {
|
|
26667
|
+
var _a25, _b25, _c;
|
|
26668
|
+
return enabled.value && (!((_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) == null ? void 0 : _b25.length) || ((_c = showOnEveryFetch.value) == null ? void 0 : _c.results));
|
|
26669
|
+
});
|
|
26670
|
+
const relatedQueriesSkeletonEnabled = computed(() => {
|
|
26671
|
+
var _a25, _b25, _c, _d;
|
|
26672
|
+
return enabled.value && Boolean((_a25 = searchResultOptions.value) == null ? void 0 : _a25.relatedQueries) && (!((_c = (_b25 = relatedQueriesResult.value) == null ? void 0 : _b25.relatedQueries) == null ? void 0 : _c.length) || ((_d = showOnEveryFetch.value) == null ? void 0 : _d.relatedQueries));
|
|
26673
|
+
});
|
|
26674
|
+
const facetSkeletonEnabled = computed(() => {
|
|
26675
|
+
var _a25, _b25, _c;
|
|
26676
|
+
return enabled.value && (!((_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.facets) == null ? void 0 : _b25.length) || ((_c = showOnEveryFetch.value) == null ? void 0 : _c.facets));
|
|
26677
|
+
});
|
|
26678
|
+
const loadingFacets = computed(() => {
|
|
26679
|
+
var _a25;
|
|
26680
|
+
if ((_a25 = searchResultOptions.value) == null ? void 0 : _a25.splitExpensiveRequests) {
|
|
26681
|
+
return loadingFacetsBase.value;
|
|
26682
|
+
}
|
|
26683
|
+
return loading.value;
|
|
26684
|
+
});
|
|
26685
|
+
const loadingAny = computed(() => {
|
|
26686
|
+
return loading.value || loadingRelatedQueries.value || loadingFacets.value;
|
|
26687
|
+
});
|
|
26688
|
+
return {
|
|
26689
|
+
loading,
|
|
26690
|
+
loadingRelatedQueries,
|
|
26691
|
+
loadingFacets,
|
|
26692
|
+
loadingAny,
|
|
26693
|
+
limit,
|
|
26694
|
+
skeletonEnabled,
|
|
26695
|
+
relatedQueriesSkeletonEnabled,
|
|
26696
|
+
facetSkeletonEnabled
|
|
26697
|
+
};
|
|
26698
|
+
};
|
|
26699
|
+
const _hoisted_1$Z = {
|
|
26560
26700
|
key: 0,
|
|
26561
26701
|
class: "lupa-result-page-title",
|
|
26562
26702
|
"data-cy": "lupa-result-page-title"
|
|
@@ -26568,7 +26708,7 @@ const _hoisted_3$x = {
|
|
|
26568
26708
|
};
|
|
26569
26709
|
const _hoisted_4$o = { class: "lupa-results-total-count-number" };
|
|
26570
26710
|
const _hoisted_5$g = ["innerHTML"];
|
|
26571
|
-
const _sfc_main$
|
|
26711
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
26572
26712
|
__name: "SearchResultsTitle",
|
|
26573
26713
|
props: {
|
|
26574
26714
|
options: {},
|
|
@@ -26578,7 +26718,10 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
26578
26718
|
setup(__props) {
|
|
26579
26719
|
const props = __props;
|
|
26580
26720
|
const searchResultStore = useSearchResultStore();
|
|
26721
|
+
const paramsStore = useParamsStore();
|
|
26581
26722
|
const { currentQueryText, totalItems, searchResult } = storeToRefs(searchResultStore);
|
|
26723
|
+
const { skeletonEnabled, loading } = useLoadingSkeleton();
|
|
26724
|
+
const { query } = storeToRefs(paramsStore);
|
|
26582
26725
|
const suggestedSearchText = computed(() => searchResult.value.suggestedSearchText);
|
|
26583
26726
|
const queryText = computed(() => {
|
|
26584
26727
|
return suggestedSearchText.value || currentQueryText.value;
|
|
@@ -26611,29 +26754,39 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
26611
26754
|
});
|
|
26612
26755
|
return (_ctx, _cache) => {
|
|
26613
26756
|
return openBlock(), createElementBlock("div", null, [
|
|
26614
|
-
|
|
26615
|
-
|
|
26616
|
-
|
|
26617
|
-
|
|
26618
|
-
|
|
26619
|
-
|
|
26620
|
-
|
|
26621
|
-
|
|
26622
|
-
|
|
26623
|
-
|
|
26624
|
-
|
|
26625
|
-
|
|
26626
|
-
|
|
26627
|
-
|
|
26628
|
-
|
|
26629
|
-
|
|
26630
|
-
|
|
26631
|
-
|
|
26757
|
+
createVNode(_sfc_main$18, {
|
|
26758
|
+
type: "text",
|
|
26759
|
+
count: 1,
|
|
26760
|
+
enabled: unref(skeletonEnabled) && Boolean(unref(query)),
|
|
26761
|
+
loading: unref(loading)
|
|
26762
|
+
}, {
|
|
26763
|
+
default: withCtx(() => [
|
|
26764
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$Z, [
|
|
26765
|
+
createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
|
|
26766
|
+
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
26767
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, [
|
|
26768
|
+
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
26769
|
+
createElementVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
|
|
26770
|
+
_cache[0] || (_cache[0] = createTextVNode(")"))
|
|
26771
|
+
])) : createCommentVNode("", true)
|
|
26772
|
+
])) : createCommentVNode("", true),
|
|
26773
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$1b, {
|
|
26774
|
+
key: 1,
|
|
26775
|
+
label: summaryLabel.value
|
|
26776
|
+
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
26777
|
+
descriptionTop.value ? (openBlock(), createElementBlock("div", {
|
|
26778
|
+
key: 2,
|
|
26779
|
+
class: "lupa-result-page-description-top",
|
|
26780
|
+
innerHTML: descriptionTop.value
|
|
26781
|
+
}, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
|
|
26782
|
+
]),
|
|
26783
|
+
_: 1
|
|
26784
|
+
}, 8, ["enabled", "loading"])
|
|
26632
26785
|
]);
|
|
26633
26786
|
};
|
|
26634
26787
|
}
|
|
26635
26788
|
});
|
|
26636
|
-
const _hoisted_1$
|
|
26789
|
+
const _hoisted_1$Y = {
|
|
26637
26790
|
class: "lupa-current-filter-label",
|
|
26638
26791
|
"data-cy": "lupa-current-filter-label"
|
|
26639
26792
|
};
|
|
@@ -26641,7 +26794,7 @@ const _hoisted_2$H = {
|
|
|
26641
26794
|
class: "lupa-current-filter-value",
|
|
26642
26795
|
"data-cy": "lupa-current-filter-value"
|
|
26643
26796
|
};
|
|
26644
|
-
const _sfc_main$
|
|
26797
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
26645
26798
|
__name: "CurrentFilterDisplay",
|
|
26646
26799
|
props: {
|
|
26647
26800
|
filter: {}
|
|
@@ -26683,13 +26836,13 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
26683
26836
|
onClick: handleClick,
|
|
26684
26837
|
"aria-label": "Remove filter"
|
|
26685
26838
|
}, "⨉"),
|
|
26686
|
-
createElementVNode("div", _hoisted_1$
|
|
26839
|
+
createElementVNode("div", _hoisted_1$Y, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
26687
26840
|
createElementVNode("div", _hoisted_2$H, toDisplayString(formatFilterValue(props.filter)), 1)
|
|
26688
26841
|
], 2);
|
|
26689
26842
|
};
|
|
26690
26843
|
}
|
|
26691
26844
|
});
|
|
26692
|
-
const _hoisted_1$
|
|
26845
|
+
const _hoisted_1$X = { class: "lupa-filter-title-text" };
|
|
26693
26846
|
const _hoisted_2$G = {
|
|
26694
26847
|
key: 0,
|
|
26695
26848
|
class: "lupa-filter-count"
|
|
@@ -26699,7 +26852,7 @@ const _hoisted_3$w = {
|
|
|
26699
26852
|
class: "filter-values"
|
|
26700
26853
|
};
|
|
26701
26854
|
const _hoisted_4$n = { class: "lupa-current-filter-list" };
|
|
26702
|
-
const _sfc_main$
|
|
26855
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
26703
26856
|
__name: "CurrentFilters",
|
|
26704
26857
|
props: {
|
|
26705
26858
|
options: {},
|
|
@@ -26779,7 +26932,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
26779
26932
|
class: "lupa-current-filter-title",
|
|
26780
26933
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
26781
26934
|
}, [
|
|
26782
|
-
createElementVNode("div", _hoisted_1$
|
|
26935
|
+
createElementVNode("div", _hoisted_1$X, [
|
|
26783
26936
|
createTextVNode(toDisplayString((_c = (_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) != null ? _c : "") + " ", 1),
|
|
26784
26937
|
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$G, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
26785
26938
|
]),
|
|
@@ -26791,7 +26944,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
26791
26944
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
|
|
26792
26945
|
createElementVNode("div", _hoisted_4$n, [
|
|
26793
26946
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter) => {
|
|
26794
|
-
return openBlock(), createBlock(_sfc_main$
|
|
26947
|
+
return openBlock(), createBlock(_sfc_main$16, {
|
|
26795
26948
|
key: filter.key + "_" + filter.value,
|
|
26796
26949
|
filter,
|
|
26797
26950
|
units: units.value,
|
|
@@ -26809,8 +26962,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
26809
26962
|
};
|
|
26810
26963
|
}
|
|
26811
26964
|
});
|
|
26812
|
-
const _hoisted_1$
|
|
26813
|
-
const _sfc_main$
|
|
26965
|
+
const _hoisted_1$W = ["href"];
|
|
26966
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
26814
26967
|
__name: "CategoryFilterItem",
|
|
26815
26968
|
props: {
|
|
26816
26969
|
options: {},
|
|
@@ -26847,12 +27000,12 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
26847
27000
|
"data-cy": "lupa-child-category-item",
|
|
26848
27001
|
href: urlLink.value,
|
|
26849
27002
|
onClick: handleNavigation
|
|
26850
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
27003
|
+
}, toDisplayString(title.value), 9, _hoisted_1$W)
|
|
26851
27004
|
], 2);
|
|
26852
27005
|
};
|
|
26853
27006
|
}
|
|
26854
27007
|
});
|
|
26855
|
-
const _hoisted_1$
|
|
27008
|
+
const _hoisted_1$V = {
|
|
26856
27009
|
class: "lupa-category-filter",
|
|
26857
27010
|
"data-cy": "lupa-category-filter"
|
|
26858
27011
|
};
|
|
@@ -26860,7 +27013,7 @@ const _hoisted_2$F = { class: "lupa-category-back" };
|
|
|
26860
27013
|
const _hoisted_3$v = ["href"];
|
|
26861
27014
|
const _hoisted_4$m = ["href"];
|
|
26862
27015
|
const _hoisted_5$f = { class: "lupa-child-category-list" };
|
|
26863
|
-
const _sfc_main$
|
|
27016
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
26864
27017
|
__name: "CategoryFilter",
|
|
26865
27018
|
props: {
|
|
26866
27019
|
options: {}
|
|
@@ -26948,7 +27101,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
26948
27101
|
};
|
|
26949
27102
|
__expose({ fetch: fetch2 });
|
|
26950
27103
|
return (_ctx, _cache) => {
|
|
26951
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
27104
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
26952
27105
|
createElementVNode("div", _hoisted_2$F, [
|
|
26953
27106
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
26954
27107
|
key: 0,
|
|
@@ -26969,7 +27122,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
26969
27122
|
], 2),
|
|
26970
27123
|
createElementVNode("div", _hoisted_5$f, [
|
|
26971
27124
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
26972
|
-
return openBlock(), createBlock(_sfc_main$
|
|
27125
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
26973
27126
|
key: getCategoryKey(child),
|
|
26974
27127
|
item: child,
|
|
26975
27128
|
options: _ctx.options
|
|
@@ -26980,7 +27133,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
26980
27133
|
};
|
|
26981
27134
|
}
|
|
26982
27135
|
});
|
|
26983
|
-
const _hoisted_1$
|
|
27136
|
+
const _hoisted_1$U = {
|
|
26984
27137
|
class: "lupa-search-result-facet-term-values",
|
|
26985
27138
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
26986
27139
|
};
|
|
@@ -26995,7 +27148,7 @@ const _hoisted_7$4 = {
|
|
|
26995
27148
|
};
|
|
26996
27149
|
const _hoisted_8$2 = { key: 0 };
|
|
26997
27150
|
const _hoisted_9$2 = { key: 1 };
|
|
26998
|
-
const _sfc_main$
|
|
27151
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
26999
27152
|
__name: "TermFacet",
|
|
27000
27153
|
props: {
|
|
27001
27154
|
options: {},
|
|
@@ -27089,7 +27242,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
27089
27242
|
}
|
|
27090
27243
|
};
|
|
27091
27244
|
return (_ctx, _cache) => {
|
|
27092
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
27245
|
+
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
27093
27246
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
27094
27247
|
key: 0,
|
|
27095
27248
|
class: "lupa-term-filter",
|
|
@@ -28038,7 +28191,7 @@ const roundToMaxDecimals = (value, maxPrecision = 0.1) => {
|
|
|
28038
28191
|
}
|
|
28039
28192
|
return out;
|
|
28040
28193
|
};
|
|
28041
|
-
const _hoisted_1$
|
|
28194
|
+
const _hoisted_1$T = { class: "lupa-search-result-facet-stats-values" };
|
|
28042
28195
|
const _hoisted_2$D = {
|
|
28043
28196
|
key: 0,
|
|
28044
28197
|
class: "lupa-stats-facet-summary"
|
|
@@ -28067,7 +28220,7 @@ const _hoisted_14 = {
|
|
|
28067
28220
|
key: 2,
|
|
28068
28221
|
class: "lupa-stats-slider-wrapper"
|
|
28069
28222
|
};
|
|
28070
|
-
const _sfc_main$
|
|
28223
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
28071
28224
|
__name: "StatsFacet",
|
|
28072
28225
|
props: {
|
|
28073
28226
|
options: {},
|
|
@@ -28286,7 +28439,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
28286
28439
|
}
|
|
28287
28440
|
);
|
|
28288
28441
|
return (_ctx, _cache) => {
|
|
28289
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
28442
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
28290
28443
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$D, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
28291
28444
|
createElementVNode("div", _hoisted_4$k, [
|
|
28292
28445
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_5$d, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
@@ -28351,7 +28504,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
28351
28504
|
};
|
|
28352
28505
|
}
|
|
28353
28506
|
});
|
|
28354
|
-
const _hoisted_1$
|
|
28507
|
+
const _hoisted_1$S = { class: "lupa-term-checkbox-wrapper" };
|
|
28355
28508
|
const _hoisted_2$C = { class: "lupa-term-label" };
|
|
28356
28509
|
const _hoisted_3$s = {
|
|
28357
28510
|
key: 0,
|
|
@@ -28361,7 +28514,7 @@ const _hoisted_4$j = {
|
|
|
28361
28514
|
key: 0,
|
|
28362
28515
|
class: "lupa-facet-level"
|
|
28363
28516
|
};
|
|
28364
|
-
const _sfc_main
|
|
28517
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
28365
28518
|
__name: "HierarchyFacetLevel",
|
|
28366
28519
|
props: {
|
|
28367
28520
|
options: {},
|
|
@@ -28415,7 +28568,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
28415
28568
|
"data-cy": "lupa-facet-term",
|
|
28416
28569
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
28417
28570
|
}, [
|
|
28418
|
-
createElementVNode("div", _hoisted_1$
|
|
28571
|
+
createElementVNode("div", _hoisted_1$S, [
|
|
28419
28572
|
createElementVNode("span", {
|
|
28420
28573
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
28421
28574
|
}, null, 2)
|
|
@@ -28443,13 +28596,13 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
28443
28596
|
};
|
|
28444
28597
|
}
|
|
28445
28598
|
});
|
|
28446
|
-
const _hoisted_1$
|
|
28599
|
+
const _hoisted_1$R = {
|
|
28447
28600
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
28448
28601
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
28449
28602
|
};
|
|
28450
28603
|
const _hoisted_2$B = { key: 0 };
|
|
28451
28604
|
const _hoisted_3$r = ["placeholder"];
|
|
28452
|
-
const _sfc_main
|
|
28605
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
28453
28606
|
__name: "HierarchyFacet",
|
|
28454
28607
|
props: {
|
|
28455
28608
|
options: {},
|
|
@@ -28505,7 +28658,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
28505
28658
|
showAll.value = false;
|
|
28506
28659
|
};
|
|
28507
28660
|
return (_ctx, _cache) => {
|
|
28508
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
28661
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
28509
28662
|
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, [
|
|
28510
28663
|
withDirectives(createElementVNode("input", {
|
|
28511
28664
|
class: "lupa-term-filter",
|
|
@@ -28517,7 +28670,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
28517
28670
|
])
|
|
28518
28671
|
])) : createCommentVNode("", true),
|
|
28519
28672
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
28520
|
-
return openBlock(), createBlock(_sfc_main
|
|
28673
|
+
return openBlock(), createBlock(_sfc_main$10, {
|
|
28521
28674
|
key: item.title,
|
|
28522
28675
|
options: _ctx.options,
|
|
28523
28676
|
item,
|
|
@@ -28541,7 +28694,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
28541
28694
|
};
|
|
28542
28695
|
}
|
|
28543
28696
|
});
|
|
28544
|
-
const _hoisted_1$
|
|
28697
|
+
const _hoisted_1$Q = { class: "lupa-facet-label-text" };
|
|
28545
28698
|
const _hoisted_2$A = {
|
|
28546
28699
|
key: 0,
|
|
28547
28700
|
class: "lupa-facet-content",
|
|
@@ -28549,12 +28702,12 @@ const _hoisted_2$A = {
|
|
|
28549
28702
|
};
|
|
28550
28703
|
const __default__$1 = {
|
|
28551
28704
|
components: {
|
|
28552
|
-
TermFacet: _sfc_main$
|
|
28553
|
-
StatsFacet: _sfc_main$
|
|
28554
|
-
HierarchyFacet: _sfc_main
|
|
28705
|
+
TermFacet: _sfc_main$12,
|
|
28706
|
+
StatsFacet: _sfc_main$11,
|
|
28707
|
+
HierarchyFacet: _sfc_main$$
|
|
28555
28708
|
}
|
|
28556
28709
|
};
|
|
28557
|
-
const _sfc_main$
|
|
28710
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$1), {
|
|
28558
28711
|
__name: "FacetDisplay",
|
|
28559
28712
|
props: {
|
|
28560
28713
|
options: {},
|
|
@@ -28701,7 +28854,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
28701
28854
|
"data-cy": "lupa-search-result-facet-label",
|
|
28702
28855
|
onClick: toggleFacet
|
|
28703
28856
|
}, [
|
|
28704
|
-
createElementVNode("div", _hoisted_1$
|
|
28857
|
+
createElementVNode("div", _hoisted_1$Q, toDisplayString(facetLabel.value), 1),
|
|
28705
28858
|
createElementVNode("div", {
|
|
28706
28859
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
28707
28860
|
}, null, 2)
|
|
@@ -28819,11 +28972,11 @@ const useSidebarToggle = () => {
|
|
|
28819
28972
|
handleSortSidebarToggle
|
|
28820
28973
|
};
|
|
28821
28974
|
};
|
|
28822
|
-
const _hoisted_1$
|
|
28975
|
+
const _hoisted_1$P = {
|
|
28823
28976
|
key: 0,
|
|
28824
28977
|
class: "lupa-desktop-toggle-filter-count"
|
|
28825
28978
|
};
|
|
28826
|
-
const _sfc_main$
|
|
28979
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
28827
28980
|
__name: "DesktopFacetToggle",
|
|
28828
28981
|
setup(__props) {
|
|
28829
28982
|
const {
|
|
@@ -28845,12 +28998,12 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
28845
28998
|
(...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
|
|
28846
28999
|
}, [
|
|
28847
29000
|
createTextVNode(toDisplayString(unref(label)) + " ", 1),
|
|
28848
|
-
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
29001
|
+
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$P, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
28849
29002
|
], 2);
|
|
28850
29003
|
};
|
|
28851
29004
|
}
|
|
28852
29005
|
});
|
|
28853
|
-
const _sfc_main$
|
|
29006
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
28854
29007
|
__name: "DesktopSortToggle",
|
|
28855
29008
|
setup(__props) {
|
|
28856
29009
|
const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
|
|
@@ -28866,12 +29019,12 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
28866
29019
|
};
|
|
28867
29020
|
}
|
|
28868
29021
|
});
|
|
28869
|
-
const _hoisted_1$
|
|
29022
|
+
const _hoisted_1$O = { class: "lupa-search-result-facet-section" };
|
|
28870
29023
|
const _hoisted_2$z = {
|
|
28871
29024
|
key: 0,
|
|
28872
29025
|
class: "lupa-facets-title"
|
|
28873
29026
|
};
|
|
28874
|
-
const _sfc_main$
|
|
29027
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
28875
29028
|
__name: "FacetList",
|
|
28876
29029
|
props: {
|
|
28877
29030
|
options: {},
|
|
@@ -28913,14 +29066,14 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
28913
29066
|
};
|
|
28914
29067
|
return (_ctx, _cache) => {
|
|
28915
29068
|
var _a25;
|
|
28916
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
29069
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
28917
29070
|
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
28918
29071
|
createElementVNode("div", {
|
|
28919
29072
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a25 = displayFacetStyle.value) != null ? _a25 : "")])
|
|
28920
29073
|
}, [
|
|
28921
29074
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
28922
29075
|
var _a26;
|
|
28923
|
-
return openBlock(), createBlock(_sfc_main$
|
|
29076
|
+
return openBlock(), createBlock(_sfc_main$_, {
|
|
28924
29077
|
key: facet.key,
|
|
28925
29078
|
facet,
|
|
28926
29079
|
currentFilters: currentFiltersValue.value,
|
|
@@ -28932,14 +29085,14 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
28932
29085
|
onExpand: unref(handleFilterSidebarToggle)
|
|
28933
29086
|
}, null, 8, ["facet", "currentFilters", "options", "clearable", "current-facet-style", "onExpand"]);
|
|
28934
29087
|
}), 128)),
|
|
28935
|
-
_ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$
|
|
28936
|
-
_ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$
|
|
29088
|
+
_ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$Z, { key: 0 })) : createCommentVNode("", true),
|
|
29089
|
+
_ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$Y, { key: 1 })) : createCommentVNode("", true)
|
|
28937
29090
|
], 2)
|
|
28938
29091
|
]);
|
|
28939
29092
|
};
|
|
28940
29093
|
}
|
|
28941
29094
|
});
|
|
28942
|
-
const _sfc_main$
|
|
29095
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
28943
29096
|
__name: "FacetsButton",
|
|
28944
29097
|
props: {
|
|
28945
29098
|
options: {}
|
|
@@ -28964,7 +29117,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
28964
29117
|
};
|
|
28965
29118
|
}
|
|
28966
29119
|
});
|
|
28967
|
-
const _sfc_main$
|
|
29120
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
28968
29121
|
__name: "FacetsClearButton",
|
|
28969
29122
|
props: {
|
|
28970
29123
|
options: {}
|
|
@@ -28989,8 +29142,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
28989
29142
|
};
|
|
28990
29143
|
}
|
|
28991
29144
|
});
|
|
28992
|
-
const _hoisted_1$
|
|
28993
|
-
const _sfc_main$
|
|
29145
|
+
const _hoisted_1$N = { class: "lupa-facets-filter-button-wrapper" };
|
|
29146
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
28994
29147
|
__name: "Facets",
|
|
28995
29148
|
props: {
|
|
28996
29149
|
options: {},
|
|
@@ -29098,7 +29251,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
29098
29251
|
return openBlock(), createElementBlock("div", {
|
|
29099
29252
|
class: normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": unref(loadingFacets) }])
|
|
29100
29253
|
}, [
|
|
29101
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
29254
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$X, {
|
|
29102
29255
|
key: 0,
|
|
29103
29256
|
options: _ctx.options,
|
|
29104
29257
|
facets: regularFacets.value,
|
|
@@ -29108,13 +29261,13 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
29108
29261
|
onSelect: handleFacetSelect,
|
|
29109
29262
|
onClear: clear
|
|
29110
29263
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
29111
|
-
createElementVNode("div", _hoisted_1$
|
|
29112
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
29264
|
+
createElementVNode("div", _hoisted_1$N, [
|
|
29265
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$V, {
|
|
29113
29266
|
key: 0,
|
|
29114
29267
|
options: _ctx.options,
|
|
29115
29268
|
onClear: clearAll
|
|
29116
29269
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
29117
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
29270
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$W, {
|
|
29118
29271
|
key: 1,
|
|
29119
29272
|
options: _ctx.options,
|
|
29120
29273
|
onFilter: filter
|
|
@@ -29124,12 +29277,12 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
29124
29277
|
};
|
|
29125
29278
|
}
|
|
29126
29279
|
});
|
|
29127
|
-
const _hoisted_1$
|
|
29280
|
+
const _hoisted_1$M = {
|
|
29128
29281
|
key: 0,
|
|
29129
29282
|
id: "lupa-search-result-filters",
|
|
29130
29283
|
class: "lupa-search-result-filters"
|
|
29131
29284
|
};
|
|
29132
|
-
const _sfc_main$
|
|
29285
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
29133
29286
|
__name: "SearchResultsFilters",
|
|
29134
29287
|
props: {
|
|
29135
29288
|
options: {},
|
|
@@ -29139,6 +29292,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
29139
29292
|
emits: ["filter"],
|
|
29140
29293
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
29141
29294
|
const categoryFilters = ref(null);
|
|
29295
|
+
const { facetSkeletonEnabled, loadingFacets } = useLoadingSkeleton();
|
|
29142
29296
|
const props = __props;
|
|
29143
29297
|
const emit = __emit;
|
|
29144
29298
|
const desktopFiltersVisible = computed(() => {
|
|
@@ -29167,30 +29321,42 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
29167
29321
|
};
|
|
29168
29322
|
__expose({ fetch: fetch2 });
|
|
29169
29323
|
return (_ctx, _cache) => {
|
|
29170
|
-
|
|
29171
|
-
|
|
29172
|
-
|
|
29173
|
-
|
|
29174
|
-
|
|
29175
|
-
|
|
29176
|
-
},
|
|
29177
|
-
|
|
29178
|
-
|
|
29179
|
-
|
|
29180
|
-
|
|
29181
|
-
|
|
29182
|
-
|
|
29183
|
-
|
|
29184
|
-
|
|
29185
|
-
|
|
29186
|
-
|
|
29187
|
-
|
|
29188
|
-
|
|
29324
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
29325
|
+
createVNode(_sfc_main$18, {
|
|
29326
|
+
class: "lupa-skeleton-filters",
|
|
29327
|
+
count: 1,
|
|
29328
|
+
enabled: unref(facetSkeletonEnabled),
|
|
29329
|
+
loading: unref(loadingFacets)
|
|
29330
|
+
}, {
|
|
29331
|
+
default: withCtx(() => {
|
|
29332
|
+
var _a25;
|
|
29333
|
+
return [
|
|
29334
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$15, {
|
|
29335
|
+
key: 0,
|
|
29336
|
+
options: _ctx.options.currentFilters,
|
|
29337
|
+
expandable: (_a25 = _ctx.expandable) != null ? _a25 : false
|
|
29338
|
+
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
29339
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$13, {
|
|
29340
|
+
key: 1,
|
|
29341
|
+
options: _ctx.options.categories,
|
|
29342
|
+
ref_key: "categoryFilters",
|
|
29343
|
+
ref: categoryFilters
|
|
29344
|
+
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
29345
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$U, {
|
|
29346
|
+
key: 2,
|
|
29347
|
+
options: _ctx.options.facets,
|
|
29348
|
+
"facet-style": _ctx.style,
|
|
29349
|
+
onFilter: filter
|
|
29350
|
+
}, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
|
|
29351
|
+
];
|
|
29352
|
+
}),
|
|
29353
|
+
_: 1
|
|
29354
|
+
}, 8, ["enabled", "loading"])
|
|
29189
29355
|
])) : createCommentVNode("", true);
|
|
29190
29356
|
};
|
|
29191
29357
|
}
|
|
29192
29358
|
});
|
|
29193
|
-
const _hoisted_1$
|
|
29359
|
+
const _hoisted_1$L = { class: "lupa-mobile-sidebar-content" };
|
|
29194
29360
|
const _hoisted_2$y = { class: "lupa-sidebar-top" };
|
|
29195
29361
|
const _hoisted_3$q = { class: "lupa-sidebar-title" };
|
|
29196
29362
|
const _hoisted_4$i = {
|
|
@@ -29198,7 +29364,7 @@ const _hoisted_4$i = {
|
|
|
29198
29364
|
class: "lupa-sidebar-filter-count"
|
|
29199
29365
|
};
|
|
29200
29366
|
const _hoisted_5$c = { class: "lupa-sidebar-filter-options" };
|
|
29201
|
-
const _sfc_main$
|
|
29367
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
29202
29368
|
__name: "MobileFilterSidebar",
|
|
29203
29369
|
props: {
|
|
29204
29370
|
options: {}
|
|
@@ -29237,7 +29403,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
29237
29403
|
class: "lupa-sidebar-close",
|
|
29238
29404
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
29239
29405
|
}),
|
|
29240
|
-
createElementVNode("div", _hoisted_1$
|
|
29406
|
+
createElementVNode("div", _hoisted_1$L, [
|
|
29241
29407
|
createElementVNode("div", _hoisted_2$y, [
|
|
29242
29408
|
createElementVNode("div", _hoisted_3$q, [
|
|
29243
29409
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
@@ -29249,7 +29415,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
29249
29415
|
})
|
|
29250
29416
|
]),
|
|
29251
29417
|
createElementVNode("div", _hoisted_5$c, [
|
|
29252
|
-
createVNode(_sfc_main$
|
|
29418
|
+
createVNode(_sfc_main$T, {
|
|
29253
29419
|
options: _ctx.options,
|
|
29254
29420
|
expandable: isActiveFiltersExpanded.value,
|
|
29255
29421
|
style: "sidebar",
|
|
@@ -29261,14 +29427,17 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
29261
29427
|
};
|
|
29262
29428
|
}
|
|
29263
29429
|
});
|
|
29264
|
-
const _hoisted_1$
|
|
29430
|
+
const _hoisted_1$K = {
|
|
29431
|
+
key: 0,
|
|
29432
|
+
id: "lupa-search-results-breadcrumbs"
|
|
29433
|
+
};
|
|
29265
29434
|
const _hoisted_2$x = ["href", "onClick"];
|
|
29266
29435
|
const _hoisted_3$p = {
|
|
29267
29436
|
key: 1,
|
|
29268
29437
|
class: "lupa-search-results-breadcrumb-text"
|
|
29269
29438
|
};
|
|
29270
29439
|
const _hoisted_4$h = { key: 2 };
|
|
29271
|
-
const _sfc_main$
|
|
29440
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
29272
29441
|
__name: "SearchResultsBreadcrumbs",
|
|
29273
29442
|
props: {
|
|
29274
29443
|
breadcrumbs: {}
|
|
@@ -29286,6 +29455,10 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
29286
29455
|
const hasEventRouting = computed(() => {
|
|
29287
29456
|
return searchResultOptions.value.routingBehavior === "event";
|
|
29288
29457
|
});
|
|
29458
|
+
const hasBreadcrumbs = computed(() => {
|
|
29459
|
+
var _a25;
|
|
29460
|
+
return ((_a25 = breadcrumbsValue.value) == null ? void 0 : _a25.length) > 0;
|
|
29461
|
+
});
|
|
29289
29462
|
const getLabel = (label) => {
|
|
29290
29463
|
return addParamsToLabel(label, `'${currentQueryText.value}'`);
|
|
29291
29464
|
};
|
|
@@ -29293,7 +29466,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
29293
29466
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
29294
29467
|
};
|
|
29295
29468
|
return (_ctx, _cache) => {
|
|
29296
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
29469
|
+
return hasBreadcrumbs.value ? (openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
29297
29470
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
29298
29471
|
var _a25;
|
|
29299
29472
|
return openBlock(), createElementBlock("span", {
|
|
@@ -29312,16 +29485,16 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
29312
29485
|
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a25 = breadcrumb.separator) != null ? _a25 : "/"), 1)) : createCommentVNode("", true)
|
|
29313
29486
|
]);
|
|
29314
29487
|
}), 128))
|
|
29315
|
-
]);
|
|
29488
|
+
])) : createCommentVNode("", true);
|
|
29316
29489
|
};
|
|
29317
29490
|
}
|
|
29318
29491
|
});
|
|
29319
|
-
const _hoisted_1$
|
|
29492
|
+
const _hoisted_1$J = {
|
|
29320
29493
|
key: 0,
|
|
29321
29494
|
id: "lupa-search-result-filters",
|
|
29322
29495
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
29323
29496
|
};
|
|
29324
|
-
const _sfc_main$
|
|
29497
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
29325
29498
|
__name: "FiltersTopDropdown",
|
|
29326
29499
|
props: {
|
|
29327
29500
|
options: {}
|
|
@@ -29329,6 +29502,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
29329
29502
|
emits: ["filter"],
|
|
29330
29503
|
setup(__props, { emit: __emit }) {
|
|
29331
29504
|
const props = __props;
|
|
29505
|
+
const { facetSkeletonEnabled, loadingFacets } = useLoadingSkeleton();
|
|
29332
29506
|
const emit = __emit;
|
|
29333
29507
|
const filter = () => {
|
|
29334
29508
|
emit("filter");
|
|
@@ -29338,21 +29512,33 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
29338
29512
|
return (_a25 = props.options.visible) != null ? _a25 : true;
|
|
29339
29513
|
});
|
|
29340
29514
|
return (_ctx, _cache) => {
|
|
29341
|
-
|
|
29342
|
-
|
|
29343
|
-
|
|
29344
|
-
|
|
29345
|
-
|
|
29346
|
-
|
|
29347
|
-
|
|
29348
|
-
|
|
29349
|
-
|
|
29515
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
29516
|
+
createVNode(_sfc_main$18, {
|
|
29517
|
+
class: "lupa-skeleton-top-dropdown-filters",
|
|
29518
|
+
count: 1,
|
|
29519
|
+
enabled: unref(facetSkeletonEnabled),
|
|
29520
|
+
loading: unref(loadingFacets)
|
|
29521
|
+
}, {
|
|
29522
|
+
default: withCtx(() => {
|
|
29523
|
+
var _a25;
|
|
29524
|
+
return [
|
|
29525
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$U, {
|
|
29526
|
+
key: 0,
|
|
29527
|
+
options: _ctx.options.facets,
|
|
29528
|
+
"facet-style": (_a25 = _ctx.options.facets.style) == null ? void 0 : _a25.type,
|
|
29529
|
+
clearable: true,
|
|
29530
|
+
onFilter: filter
|
|
29531
|
+
}, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
|
|
29532
|
+
];
|
|
29533
|
+
}),
|
|
29534
|
+
_: 1
|
|
29535
|
+
}, 8, ["enabled", "loading"])
|
|
29350
29536
|
])) : createCommentVNode("", true);
|
|
29351
29537
|
};
|
|
29352
29538
|
}
|
|
29353
29539
|
});
|
|
29354
|
-
const _hoisted_1$
|
|
29355
|
-
const _sfc_main$
|
|
29540
|
+
const _hoisted_1$I = { id: "lupa-search-results-layout-selection" };
|
|
29541
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
29356
29542
|
__name: "SearchResultsLayoutSelection",
|
|
29357
29543
|
setup(__props) {
|
|
29358
29544
|
const searchResultStore = useSearchResultStore();
|
|
@@ -29363,7 +29549,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
29363
29549
|
searchResultStore.setLayout(layout2);
|
|
29364
29550
|
};
|
|
29365
29551
|
return (_ctx, _cache) => {
|
|
29366
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
29552
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
29367
29553
|
createElementVNode("div", {
|
|
29368
29554
|
class: normalizeClass([
|
|
29369
29555
|
"lupa-layout-selection-grid",
|
|
@@ -29385,11 +29571,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
29385
29571
|
};
|
|
29386
29572
|
}
|
|
29387
29573
|
});
|
|
29388
|
-
const _hoisted_1$
|
|
29574
|
+
const _hoisted_1$H = {
|
|
29389
29575
|
key: 0,
|
|
29390
29576
|
class: "lupa-mobile-toggle-filter-count"
|
|
29391
29577
|
};
|
|
29392
|
-
const _sfc_main$
|
|
29578
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
29393
29579
|
__name: "SearchResultsMobileToggle",
|
|
29394
29580
|
setup(__props) {
|
|
29395
29581
|
const {
|
|
@@ -29411,12 +29597,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
29411
29597
|
(...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
|
|
29412
29598
|
}, [
|
|
29413
29599
|
createTextVNode(toDisplayString(unref(label)) + " ", 1),
|
|
29414
|
-
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
29600
|
+
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$H, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
29415
29601
|
], 2);
|
|
29416
29602
|
};
|
|
29417
29603
|
}
|
|
29418
29604
|
});
|
|
29419
|
-
const _sfc_main$
|
|
29605
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
29420
29606
|
__name: "SearchResultsMobileFilterClose",
|
|
29421
29607
|
props: {
|
|
29422
29608
|
label: {}
|
|
@@ -29436,7 +29622,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
29436
29622
|
};
|
|
29437
29623
|
}
|
|
29438
29624
|
});
|
|
29439
|
-
const _hoisted_1$
|
|
29625
|
+
const _hoisted_1$G = {
|
|
29440
29626
|
key: 0,
|
|
29441
29627
|
id: "lupa-search-results-page-select",
|
|
29442
29628
|
"data-cy": "lupa-search-results-page-select"
|
|
@@ -29449,7 +29635,7 @@ const _hoisted_3$o = {
|
|
|
29449
29635
|
key: 0,
|
|
29450
29636
|
class: "lupa-page-number-separator"
|
|
29451
29637
|
};
|
|
29452
|
-
const _sfc_main$
|
|
29638
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
29453
29639
|
__name: "SearchResultsPageSelect",
|
|
29454
29640
|
props: {
|
|
29455
29641
|
lastPageLabel: {},
|
|
@@ -29544,7 +29730,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
29544
29730
|
};
|
|
29545
29731
|
return (_ctx, _cache) => {
|
|
29546
29732
|
var _a25;
|
|
29547
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
29733
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
29548
29734
|
showBack.value ? (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
|
|
29549
29735
|
key: 0,
|
|
29550
29736
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -29619,7 +29805,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
29619
29805
|
};
|
|
29620
29806
|
}
|
|
29621
29807
|
});
|
|
29622
|
-
const _hoisted_1$
|
|
29808
|
+
const _hoisted_1$F = {
|
|
29623
29809
|
id: "lupa-search-results-page-size",
|
|
29624
29810
|
"data-cy": "lupa-search-results-page-size"
|
|
29625
29811
|
};
|
|
@@ -29630,7 +29816,7 @@ const _hoisted_3$n = {
|
|
|
29630
29816
|
};
|
|
29631
29817
|
const _hoisted_4$g = ["value", "aria-label"];
|
|
29632
29818
|
const _hoisted_5$b = ["value"];
|
|
29633
|
-
const _sfc_main$
|
|
29819
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
29634
29820
|
__name: "SearchResultsPageSize",
|
|
29635
29821
|
props: {
|
|
29636
29822
|
labels: {},
|
|
@@ -29661,7 +29847,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
29661
29847
|
};
|
|
29662
29848
|
return (_ctx, _cache) => {
|
|
29663
29849
|
var _a25, _b25, _c;
|
|
29664
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
29850
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
29665
29851
|
createElementVNode("div", _hoisted_2$v, [
|
|
29666
29852
|
createElementVNode("label", _hoisted_3$n, toDisplayString(label.value), 1),
|
|
29667
29853
|
createElementVNode("select", {
|
|
@@ -29753,7 +29939,7 @@ const useSorting = () => {
|
|
|
29753
29939
|
setSortValue
|
|
29754
29940
|
};
|
|
29755
29941
|
};
|
|
29756
|
-
const _hoisted_1$
|
|
29942
|
+
const _hoisted_1$E = {
|
|
29757
29943
|
key: 0,
|
|
29758
29944
|
id: "lupa-search-results-sort",
|
|
29759
29945
|
class: "lupa-search-results-sort"
|
|
@@ -29765,7 +29951,7 @@ const _hoisted_3$m = {
|
|
|
29765
29951
|
};
|
|
29766
29952
|
const _hoisted_4$f = ["aria-label"];
|
|
29767
29953
|
const _hoisted_5$a = ["value"];
|
|
29768
|
-
const _sfc_main$
|
|
29954
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
29769
29955
|
__name: "SearchResultsSort",
|
|
29770
29956
|
setup(__props) {
|
|
29771
29957
|
const {
|
|
@@ -29786,7 +29972,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
29786
29972
|
});
|
|
29787
29973
|
return (_ctx, _cache) => {
|
|
29788
29974
|
var _a25, _b25;
|
|
29789
|
-
return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
29975
|
+
return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
29790
29976
|
createElementVNode("div", _hoisted_2$u, [
|
|
29791
29977
|
createElementVNode("label", _hoisted_3$m, toDisplayString(unref(sotyByTitleLabel)), 1),
|
|
29792
29978
|
withDirectives(createElementVNode("select", {
|
|
@@ -29813,7 +29999,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
29813
29999
|
};
|
|
29814
30000
|
}
|
|
29815
30001
|
});
|
|
29816
|
-
const _sfc_main$
|
|
30002
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
29817
30003
|
__name: "SearchResultsSortDrawerToggle",
|
|
29818
30004
|
setup(__props) {
|
|
29819
30005
|
const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
|
|
@@ -29829,7 +30015,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
29829
30015
|
};
|
|
29830
30016
|
}
|
|
29831
30017
|
});
|
|
29832
|
-
const _hoisted_1$
|
|
30018
|
+
const _hoisted_1$D = { class: "lupa-toolbar-left" };
|
|
29833
30019
|
const _hoisted_2$t = {
|
|
29834
30020
|
key: 0,
|
|
29835
30021
|
class: "lupa-toolbar-right-title"
|
|
@@ -29844,7 +30030,7 @@ const _hoisted_7$2 = {
|
|
|
29844
30030
|
};
|
|
29845
30031
|
const _hoisted_8 = { key: 2 };
|
|
29846
30032
|
const _hoisted_9 = { key: 4 };
|
|
29847
|
-
const _sfc_main$
|
|
30033
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
29848
30034
|
__name: "SearchResultsToolbar",
|
|
29849
30035
|
props: {
|
|
29850
30036
|
options: {},
|
|
@@ -29957,16 +30143,16 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
29957
30143
|
id: "lupa-search-results-toolbar",
|
|
29958
30144
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
29959
30145
|
}, [
|
|
29960
|
-
createElementVNode("div", _hoisted_1$
|
|
30146
|
+
createElementVNode("div", _hoisted_1$D, [
|
|
29961
30147
|
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$
|
|
30148
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$P, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$l)),
|
|
30149
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$1b, {
|
|
29964
30150
|
key: 3,
|
|
29965
30151
|
label: searchSummaryLabel.value,
|
|
29966
30152
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
29967
30153
|
onClear: handleClearAll
|
|
29968
30154
|
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$e)),
|
|
29969
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
30155
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$M, {
|
|
29970
30156
|
key: 5,
|
|
29971
30157
|
options: paginationOptions.value.pageSelect,
|
|
29972
30158
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
@@ -29975,19 +30161,19 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
29975
30161
|
]),
|
|
29976
30162
|
createElementVNode("div", _hoisted_6$4, [
|
|
29977
30163
|
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$
|
|
30164
|
+
createVNode(_sfc_main$O),
|
|
30165
|
+
createVNode(_sfc_main$J),
|
|
30166
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$L, {
|
|
29981
30167
|
key: 1,
|
|
29982
30168
|
options: paginationOptions.value.pageSize,
|
|
29983
30169
|
labels: paginationOptions.value.labels
|
|
29984
30170
|
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
29985
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
30171
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
29986
30172
|
key: 3,
|
|
29987
30173
|
options: sortOptions.value,
|
|
29988
30174
|
callbacks: callbacks.value
|
|
29989
30175
|
}, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
|
|
29990
|
-
showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$
|
|
30176
|
+
showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$N, {
|
|
29991
30177
|
key: 5,
|
|
29992
30178
|
label: optionsValue.value.labels.mobileFilterCloseButton
|
|
29993
30179
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
@@ -29996,7 +30182,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
29996
30182
|
};
|
|
29997
30183
|
}
|
|
29998
30184
|
});
|
|
29999
|
-
const _sfc_main$
|
|
30185
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
30000
30186
|
__name: "SearchResultsProductImage",
|
|
30001
30187
|
props: {
|
|
30002
30188
|
item: {},
|
|
@@ -30004,7 +30190,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
30004
30190
|
},
|
|
30005
30191
|
setup(__props) {
|
|
30006
30192
|
return (_ctx, _cache) => {
|
|
30007
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30193
|
+
return openBlock(), createBlock(_sfc_main$1A, {
|
|
30008
30194
|
item: _ctx.item,
|
|
30009
30195
|
options: _ctx.options,
|
|
30010
30196
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -30013,7 +30199,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
30013
30199
|
};
|
|
30014
30200
|
}
|
|
30015
30201
|
});
|
|
30016
|
-
const _hoisted_1$
|
|
30202
|
+
const _hoisted_1$C = ["title", "innerHTML"];
|
|
30017
30203
|
const _hoisted_2$s = ["title"];
|
|
30018
30204
|
const _hoisted_3$k = ["href", "innerHTML"];
|
|
30019
30205
|
const _hoisted_4$d = ["title"];
|
|
@@ -30022,7 +30208,7 @@ const _hoisted_5$8 = {
|
|
|
30022
30208
|
class: "lupa-search-results-product-title-text"
|
|
30023
30209
|
};
|
|
30024
30210
|
const _hoisted_6$3 = ["href"];
|
|
30025
|
-
const _sfc_main$
|
|
30211
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
30026
30212
|
__name: "SearchResultsProductTitle",
|
|
30027
30213
|
props: {
|
|
30028
30214
|
item: {},
|
|
@@ -30059,7 +30245,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
30059
30245
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
30060
30246
|
title: sanitizedTitle.value,
|
|
30061
30247
|
innerHTML: sanitizedTitle.value
|
|
30062
|
-
}, null, 12, _hoisted_1$
|
|
30248
|
+
}, null, 12, _hoisted_1$C)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
|
|
30063
30249
|
key: 1,
|
|
30064
30250
|
class: "lupa-search-results-product-title",
|
|
30065
30251
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -30088,8 +30274,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
30088
30274
|
};
|
|
30089
30275
|
}
|
|
30090
30276
|
});
|
|
30091
|
-
const _hoisted_1$
|
|
30092
|
-
const _sfc_main$
|
|
30277
|
+
const _hoisted_1$B = ["innerHTML"];
|
|
30278
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
30093
30279
|
__name: "SearchResultsProductDescription",
|
|
30094
30280
|
props: {
|
|
30095
30281
|
item: {},
|
|
@@ -30116,7 +30302,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
30116
30302
|
class: "lupa-search-results-product-description",
|
|
30117
30303
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
30118
30304
|
innerHTML: sanitizedDescription.value
|
|
30119
|
-
}, null, 12, _hoisted_1$
|
|
30305
|
+
}, null, 12, _hoisted_1$B)) : (openBlock(), createElementBlock("div", {
|
|
30120
30306
|
key: 1,
|
|
30121
30307
|
class: "lupa-search-results-product-description",
|
|
30122
30308
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -30124,7 +30310,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
30124
30310
|
};
|
|
30125
30311
|
}
|
|
30126
30312
|
});
|
|
30127
|
-
const _hoisted_1$
|
|
30313
|
+
const _hoisted_1$A = { id: "lupa-search-results-rating" };
|
|
30128
30314
|
const _hoisted_2$r = { class: "lupa-ratings" };
|
|
30129
30315
|
const _hoisted_3$j = { class: "lupa-ratings-base" };
|
|
30130
30316
|
const _hoisted_4$c = ["innerHTML"];
|
|
@@ -30132,7 +30318,7 @@ const _hoisted_5$7 = { class: "lupa-rating-wrapper" };
|
|
|
30132
30318
|
const _hoisted_6$2 = ["innerHTML"];
|
|
30133
30319
|
const _hoisted_7$1 = ["href"];
|
|
30134
30320
|
const STAR_COUNT = 5;
|
|
30135
|
-
const _sfc_main$
|
|
30321
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
30136
30322
|
__name: "SearchResultsProductRating",
|
|
30137
30323
|
props: {
|
|
30138
30324
|
item: {},
|
|
@@ -30169,7 +30355,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
30169
30355
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
30170
30356
|
});
|
|
30171
30357
|
return (_ctx, _cache) => {
|
|
30172
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30358
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
30173
30359
|
createElementVNode("div", _hoisted_2$r, [
|
|
30174
30360
|
createElementVNode("div", _hoisted_3$j, [
|
|
30175
30361
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
@@ -30203,11 +30389,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
30203
30389
|
};
|
|
30204
30390
|
}
|
|
30205
30391
|
});
|
|
30206
|
-
const _hoisted_1$
|
|
30392
|
+
const _hoisted_1$z = {
|
|
30207
30393
|
class: "lupa-search-results-product-regular-price",
|
|
30208
30394
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
30209
30395
|
};
|
|
30210
|
-
const _sfc_main$
|
|
30396
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
30211
30397
|
__name: "SearchResultsProductRegularPrice",
|
|
30212
30398
|
props: {
|
|
30213
30399
|
item: {},
|
|
@@ -30229,11 +30415,11 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
30229
30415
|
);
|
|
30230
30416
|
});
|
|
30231
30417
|
return (_ctx, _cache) => {
|
|
30232
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30418
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, toDisplayString(price.value), 1);
|
|
30233
30419
|
};
|
|
30234
30420
|
}
|
|
30235
30421
|
});
|
|
30236
|
-
const _sfc_main$
|
|
30422
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
30237
30423
|
__name: "SearchResultsProductPrice",
|
|
30238
30424
|
props: {
|
|
30239
30425
|
item: {},
|
|
@@ -30267,12 +30453,12 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
30267
30453
|
};
|
|
30268
30454
|
}
|
|
30269
30455
|
});
|
|
30270
|
-
const _hoisted_1$
|
|
30456
|
+
const _hoisted_1$y = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
30271
30457
|
const _hoisted_2$q = { class: "lupa-search-results-product-addtocart" };
|
|
30272
30458
|
const _hoisted_3$i = ["disabled"];
|
|
30273
30459
|
const _hoisted_4$b = ["href"];
|
|
30274
30460
|
const _hoisted_5$6 = ["id", "disabled"];
|
|
30275
|
-
const _sfc_main$
|
|
30461
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
30276
30462
|
__name: "SearchResultsProductAddToCart",
|
|
30277
30463
|
props: {
|
|
30278
30464
|
item: {},
|
|
@@ -30331,7 +30517,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
30331
30517
|
loading.value = false;
|
|
30332
30518
|
});
|
|
30333
30519
|
return (_ctx, _cache) => {
|
|
30334
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30520
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
30335
30521
|
createElementVNode("div", _hoisted_2$q, [
|
|
30336
30522
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
30337
30523
|
key: 0,
|
|
@@ -30354,12 +30540,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
30354
30540
|
};
|
|
30355
30541
|
}
|
|
30356
30542
|
});
|
|
30357
|
-
const _hoisted_1$
|
|
30543
|
+
const _hoisted_1$x = ["innerHTML"];
|
|
30358
30544
|
const _hoisted_2$p = { key: 0 };
|
|
30359
30545
|
const _hoisted_3$h = { key: 1 };
|
|
30360
30546
|
const _hoisted_4$a = { class: "lupa-search-box-custom-label" };
|
|
30361
30547
|
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
30362
|
-
const _sfc_main$
|
|
30548
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
30363
30549
|
__name: "SearchResultsProductCustom",
|
|
30364
30550
|
props: {
|
|
30365
30551
|
item: {},
|
|
@@ -30401,7 +30587,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
30401
30587
|
key: 0,
|
|
30402
30588
|
class: className.value,
|
|
30403
30589
|
innerHTML: text.value
|
|
30404
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
30590
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$x)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
30405
30591
|
key: 1,
|
|
30406
30592
|
class: className.value
|
|
30407
30593
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
@@ -30413,8 +30599,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
30413
30599
|
};
|
|
30414
30600
|
}
|
|
30415
30601
|
});
|
|
30416
|
-
const _hoisted_1$
|
|
30417
|
-
const _sfc_main$
|
|
30602
|
+
const _hoisted_1$w = ["innerHTML"];
|
|
30603
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
30418
30604
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
30419
30605
|
props: {
|
|
30420
30606
|
item: {},
|
|
@@ -30450,15 +30636,15 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
30450
30636
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
30451
30637
|
class: className.value,
|
|
30452
30638
|
innerHTML: text.value
|
|
30453
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
30639
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$w);
|
|
30454
30640
|
};
|
|
30455
30641
|
}
|
|
30456
30642
|
});
|
|
30457
|
-
const _hoisted_1$
|
|
30643
|
+
const _hoisted_1$v = { id: "lupa-search-results-rating" };
|
|
30458
30644
|
const _hoisted_2$o = ["innerHTML"];
|
|
30459
30645
|
const _hoisted_3$g = { class: "lupa-ratings" };
|
|
30460
30646
|
const _hoisted_4$9 = ["href"];
|
|
30461
|
-
const _sfc_main$
|
|
30647
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
30462
30648
|
__name: "SearchResultsProductSingleStarRating",
|
|
30463
30649
|
props: {
|
|
30464
30650
|
item: {},
|
|
@@ -30486,7 +30672,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
30486
30672
|
return RATING_STAR_HTML;
|
|
30487
30673
|
});
|
|
30488
30674
|
return (_ctx, _cache) => {
|
|
30489
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30675
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
30490
30676
|
createElementVNode("div", {
|
|
30491
30677
|
innerHTML: star.value,
|
|
30492
30678
|
class: "lupa-rating lupa-rating-highlighted"
|
|
@@ -30502,19 +30688,19 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
30502
30688
|
});
|
|
30503
30689
|
const __default__ = {
|
|
30504
30690
|
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$
|
|
30691
|
+
SearchResultsProductImage: _sfc_main$H,
|
|
30692
|
+
SearchResultsProductTitle: _sfc_main$G,
|
|
30693
|
+
SearchResultsProductDescription: _sfc_main$F,
|
|
30694
|
+
SearchResultsProductRating: _sfc_main$E,
|
|
30695
|
+
SearchResultsProductRegularPrice: _sfc_main$D,
|
|
30696
|
+
SearchResultsProductPrice: _sfc_main$C,
|
|
30697
|
+
SearchResultsProductAddToCart: _sfc_main$B,
|
|
30698
|
+
SearchResultsProductCustom: _sfc_main$A,
|
|
30699
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$z,
|
|
30700
|
+
SearchResultsProductSingleStarRating: _sfc_main$y
|
|
30701
|
+
}
|
|
30702
|
+
};
|
|
30703
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__), {
|
|
30518
30704
|
__name: "SearchResultsProductCardElement",
|
|
30519
30705
|
props: {
|
|
30520
30706
|
item: {},
|
|
@@ -30592,13 +30778,13 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
30592
30778
|
};
|
|
30593
30779
|
}
|
|
30594
30780
|
}));
|
|
30595
|
-
const _hoisted_1$
|
|
30781
|
+
const _hoisted_1$u = ["href"];
|
|
30596
30782
|
const _hoisted_2$n = {
|
|
30597
30783
|
key: 0,
|
|
30598
30784
|
class: "lupa-out-of-stock"
|
|
30599
30785
|
};
|
|
30600
30786
|
const _hoisted_3$f = { class: "lupa-search-result-product-details-section" };
|
|
30601
|
-
const _sfc_main$
|
|
30787
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
30602
30788
|
__name: "SearchResultsProductCard",
|
|
30603
30789
|
props: {
|
|
30604
30790
|
product: {},
|
|
@@ -30775,7 +30961,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
30775
30961
|
default: withCtx(() => {
|
|
30776
30962
|
var _a25;
|
|
30777
30963
|
return [
|
|
30778
|
-
createVNode(_sfc_main$
|
|
30964
|
+
createVNode(_sfc_main$1k, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
30779
30965
|
createElementVNode("div", {
|
|
30780
30966
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
30781
30967
|
}, [
|
|
@@ -30785,7 +30971,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
30785
30971
|
onClick: handleNavigation
|
|
30786
30972
|
}, [
|
|
30787
30973
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
30788
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30974
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
30789
30975
|
class: "lupa-search-results-product-element",
|
|
30790
30976
|
item: _ctx.product,
|
|
30791
30977
|
element,
|
|
@@ -30796,16 +30982,16 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
30796
30982
|
onProductEvent: handleProductEvent
|
|
30797
30983
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
30798
30984
|
}), 128)),
|
|
30799
|
-
createVNode(_sfc_main$
|
|
30985
|
+
createVNode(_sfc_main$1k, {
|
|
30800
30986
|
options: badgesOptions.value,
|
|
30801
30987
|
position: "image",
|
|
30802
30988
|
class: "lupa-image-badges"
|
|
30803
30989
|
}, null, 8, ["options"]),
|
|
30804
30990
|
((_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$
|
|
30991
|
+
], 8, _hoisted_1$u),
|
|
30806
30992
|
createElementVNode("div", _hoisted_3$f, [
|
|
30807
30993
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
30808
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30994
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
30809
30995
|
class: "lupa-search-results-product-element",
|
|
30810
30996
|
item: _ctx.product,
|
|
30811
30997
|
element,
|
|
@@ -30823,7 +31009,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
30823
31009
|
class: normalizeClass("lupa-element-group-" + group)
|
|
30824
31010
|
}, [
|
|
30825
31011
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
30826
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31012
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
30827
31013
|
class: "lupa-search-results-product-element",
|
|
30828
31014
|
item: _ctx.product,
|
|
30829
31015
|
element,
|
|
@@ -30844,7 +31030,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
30844
31030
|
};
|
|
30845
31031
|
}
|
|
30846
31032
|
});
|
|
30847
|
-
const _hoisted_1$
|
|
31033
|
+
const _hoisted_1$t = {
|
|
30848
31034
|
id: "lupa-search-results-similar-queries",
|
|
30849
31035
|
"data-cy": "lupa-search-results-similar-queries"
|
|
30850
31036
|
};
|
|
@@ -30860,7 +31046,7 @@ const _hoisted_7 = {
|
|
|
30860
31046
|
class: "lupa-products",
|
|
30861
31047
|
"data-cy": "lupa-products"
|
|
30862
31048
|
};
|
|
30863
|
-
const _sfc_main$
|
|
31049
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
30864
31050
|
__name: "SearchResultsSimilarQueries",
|
|
30865
31051
|
props: {
|
|
30866
31052
|
labels: {},
|
|
@@ -30898,7 +31084,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
30898
31084
|
};
|
|
30899
31085
|
};
|
|
30900
31086
|
return (_ctx, _cache) => {
|
|
30901
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31087
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
30902
31088
|
createElementVNode("div", _hoisted_2$m, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
30903
31089
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
30904
31090
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
@@ -30918,7 +31104,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
30918
31104
|
]),
|
|
30919
31105
|
createElementVNode("div", _hoisted_7, [
|
|
30920
31106
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
30921
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31107
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
30922
31108
|
style: normalizeStyle(_ctx.columnSize),
|
|
30923
31109
|
key: getDocumentKey(index2, product),
|
|
30924
31110
|
product,
|
|
@@ -30933,7 +31119,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
30933
31119
|
};
|
|
30934
31120
|
}
|
|
30935
31121
|
});
|
|
30936
|
-
const _hoisted_1$
|
|
31122
|
+
const _hoisted_1$s = {
|
|
30937
31123
|
key: 0,
|
|
30938
31124
|
class: "lupa-results-additional-panel"
|
|
30939
31125
|
};
|
|
@@ -30941,7 +31127,7 @@ const _hoisted_2$l = {
|
|
|
30941
31127
|
class: "lupa-results-additional-panel-items",
|
|
30942
31128
|
"data-cy": "lupa-results-additional-panel-items"
|
|
30943
31129
|
};
|
|
30944
|
-
const _sfc_main$
|
|
31130
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
30945
31131
|
__name: "AdditionalPanel",
|
|
30946
31132
|
props: {
|
|
30947
31133
|
panel: {},
|
|
@@ -31014,10 +31200,10 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
31014
31200
|
handleQueryChange();
|
|
31015
31201
|
});
|
|
31016
31202
|
return (_ctx, _cache) => {
|
|
31017
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31203
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
31018
31204
|
createElementVNode("div", _hoisted_2$l, [
|
|
31019
31205
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
31020
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31206
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
31021
31207
|
key: index,
|
|
31022
31208
|
product: item,
|
|
31023
31209
|
options: _ctx.panel,
|
|
@@ -31035,11 +31221,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
31035
31221
|
};
|
|
31036
31222
|
}
|
|
31037
31223
|
});
|
|
31038
|
-
const _hoisted_1$
|
|
31224
|
+
const _hoisted_1$r = {
|
|
31039
31225
|
key: 0,
|
|
31040
31226
|
class: "lupa-results-additional-panels"
|
|
31041
31227
|
};
|
|
31042
|
-
const _sfc_main$
|
|
31228
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
31043
31229
|
__name: "AdditionalPanels",
|
|
31044
31230
|
props: {
|
|
31045
31231
|
options: {},
|
|
@@ -31056,9 +31242,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
31056
31242
|
return locationPanels.value.length > 0;
|
|
31057
31243
|
});
|
|
31058
31244
|
return (_ctx, _cache) => {
|
|
31059
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31245
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
31060
31246
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
31061
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31247
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
31062
31248
|
key: panel.queryKey,
|
|
31063
31249
|
panel,
|
|
31064
31250
|
options: _ctx.sdkOptions
|
|
@@ -31075,11 +31261,11 @@ const _export_sfc = (sfc, props) => {
|
|
|
31075
31261
|
}
|
|
31076
31262
|
return target2;
|
|
31077
31263
|
};
|
|
31078
|
-
const _sfc_main$
|
|
31079
|
-
const _hoisted_1$
|
|
31264
|
+
const _sfc_main$s = {};
|
|
31265
|
+
const _hoisted_1$q = { class: "lupa-spinner-wrapper" };
|
|
31080
31266
|
const _hoisted_2$k = { class: "lupa-spinner" };
|
|
31081
31267
|
function _sfc_render(_ctx, _cache) {
|
|
31082
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31268
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
31083
31269
|
createElementVNode("div", _hoisted_2$k, [
|
|
31084
31270
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
|
|
31085
31271
|
return createElementVNode("div", { key: x });
|
|
@@ -31087,8 +31273,8 @@ function _sfc_render(_ctx, _cache) {
|
|
|
31087
31273
|
])
|
|
31088
31274
|
]);
|
|
31089
31275
|
}
|
|
31090
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31091
|
-
const _hoisted_1$
|
|
31276
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render]]);
|
|
31277
|
+
const _hoisted_1$p = {
|
|
31092
31278
|
id: "lupa-search-results-similar-results",
|
|
31093
31279
|
"data-cy": "lupa-search-results-similar-results"
|
|
31094
31280
|
};
|
|
@@ -31097,7 +31283,7 @@ const _hoisted_3$d = {
|
|
|
31097
31283
|
class: "lupa-products",
|
|
31098
31284
|
"data-cy": "lupa-products"
|
|
31099
31285
|
};
|
|
31100
|
-
const _sfc_main$
|
|
31286
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
31101
31287
|
__name: "SearchResultsSimilarResults",
|
|
31102
31288
|
props: {
|
|
31103
31289
|
columnSize: {},
|
|
@@ -31118,11 +31304,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
31118
31304
|
};
|
|
31119
31305
|
});
|
|
31120
31306
|
return (_ctx, _cache) => {
|
|
31121
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31307
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
31122
31308
|
createElementVNode("div", _hoisted_2$j, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
31123
31309
|
createElementVNode("div", _hoisted_3$d, [
|
|
31124
31310
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
31125
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31311
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
31126
31312
|
style: normalizeStyle(_ctx.columnSize),
|
|
31127
31313
|
key: getDocumentKey(index, product),
|
|
31128
31314
|
product,
|
|
@@ -31243,7 +31429,7 @@ const extractRelatedSource = (source, searchResults, options, activeFilters) =>
|
|
|
31243
31429
|
return extractFacetsRelatedSource(source, searchResults, options, activeFilters);
|
|
31244
31430
|
}
|
|
31245
31431
|
});
|
|
31246
|
-
const _hoisted_1$
|
|
31432
|
+
const _hoisted_1$o = { class: "lupa-related-query-item" };
|
|
31247
31433
|
const _hoisted_2$i = { class: "lupa-related-query-image" };
|
|
31248
31434
|
const _hoisted_3$c = { class: "lupa-related-query-label" };
|
|
31249
31435
|
const _hoisted_4$7 = { class: "lupa-related-query-title" };
|
|
@@ -31251,7 +31437,7 @@ const _hoisted_5$3 = {
|
|
|
31251
31437
|
key: 0,
|
|
31252
31438
|
class: "lupa-related-query-count"
|
|
31253
31439
|
};
|
|
31254
|
-
const _sfc_main$
|
|
31440
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
31255
31441
|
__name: "RelatedQueryPanel",
|
|
31256
31442
|
props: {
|
|
31257
31443
|
query: {},
|
|
@@ -31348,9 +31534,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
31348
31534
|
});
|
|
31349
31535
|
return (_ctx, _cache) => {
|
|
31350
31536
|
var _a25;
|
|
31351
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31537
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
31352
31538
|
createElementVNode("div", _hoisted_2$i, [
|
|
31353
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
31539
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1A, {
|
|
31354
31540
|
key: 0,
|
|
31355
31541
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
31356
31542
|
"image-class": "lupa-related-query-image",
|
|
@@ -31366,7 +31552,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
31366
31552
|
};
|
|
31367
31553
|
}
|
|
31368
31554
|
});
|
|
31369
|
-
const _hoisted_1$
|
|
31555
|
+
const _hoisted_1$n = {
|
|
31370
31556
|
key: 0,
|
|
31371
31557
|
class: "lupa-related-queries"
|
|
31372
31558
|
};
|
|
@@ -31375,7 +31561,7 @@ const _hoisted_2$h = {
|
|
|
31375
31561
|
class: "lupa-related-queries-title"
|
|
31376
31562
|
};
|
|
31377
31563
|
const _hoisted_3$b = ["onClick"];
|
|
31378
|
-
const _sfc_main$
|
|
31564
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
31379
31565
|
__name: "RelatedQueries",
|
|
31380
31566
|
props: {
|
|
31381
31567
|
options: {}
|
|
@@ -31469,7 +31655,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
31469
31655
|
};
|
|
31470
31656
|
return (_ctx, _cache) => {
|
|
31471
31657
|
var _a25, _b25, _c, _d;
|
|
31472
|
-
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31658
|
+
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
31473
31659
|
((_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
31660
|
createElementVNode("ul", null, [
|
|
31475
31661
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
@@ -31480,7 +31666,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
31480
31666
|
createElementVNode("a", {
|
|
31481
31667
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
31482
31668
|
}, [
|
|
31483
|
-
createVNode(_sfc_main$
|
|
31669
|
+
createVNode(_sfc_main$q, {
|
|
31484
31670
|
"source-key": query.key,
|
|
31485
31671
|
options: _ctx.options,
|
|
31486
31672
|
query: query.value,
|
|
@@ -31524,13 +31710,13 @@ const extractRedirectionSuggestion = (searchText = "", options) => {
|
|
|
31524
31710
|
}
|
|
31525
31711
|
return null;
|
|
31526
31712
|
};
|
|
31527
|
-
const _hoisted_1$
|
|
31713
|
+
const _hoisted_1$m = {
|
|
31528
31714
|
key: 0,
|
|
31529
31715
|
class: "lupa-redirection-suggestion"
|
|
31530
31716
|
};
|
|
31531
31717
|
const _hoisted_2$g = { class: "lupa-redirections-suggestion-label" };
|
|
31532
31718
|
const _hoisted_3$a = ["href"];
|
|
31533
|
-
const _sfc_main$
|
|
31719
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
31534
31720
|
__name: "RedirectionSuggestions",
|
|
31535
31721
|
props: {
|
|
31536
31722
|
options: {}
|
|
@@ -31553,7 +31739,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
31553
31739
|
)
|
|
31554
31740
|
);
|
|
31555
31741
|
return (_ctx, _cache) => {
|
|
31556
|
-
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31742
|
+
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
31557
31743
|
createElementVNode("h4", _hoisted_2$g, [
|
|
31558
31744
|
createElementVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$a)
|
|
31559
31745
|
])
|
|
@@ -31561,11 +31747,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
31561
31747
|
};
|
|
31562
31748
|
}
|
|
31563
31749
|
});
|
|
31564
|
-
const _hoisted_1$
|
|
31750
|
+
const _hoisted_1$l = {
|
|
31565
31751
|
key: 0,
|
|
31566
31752
|
class: "lupa-refiners-loading-notice"
|
|
31567
31753
|
};
|
|
31568
|
-
const _sfc_main$
|
|
31754
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
31569
31755
|
__name: "RefinersLoadingNotice",
|
|
31570
31756
|
props: {
|
|
31571
31757
|
labels: {}
|
|
@@ -31576,14 +31762,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
31576
31762
|
const props = __props;
|
|
31577
31763
|
const label = computed(() => props.labels.refinersLoadingNotice);
|
|
31578
31764
|
return (_ctx, _cache) => {
|
|
31579
|
-
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31765
|
+
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
31580
31766
|
createElementVNode("p", null, toDisplayString(label.value), 1),
|
|
31581
31767
|
createVNode(Spinner)
|
|
31582
31768
|
])) : createCommentVNode("", true);
|
|
31583
31769
|
};
|
|
31584
31770
|
}
|
|
31585
31771
|
});
|
|
31586
|
-
const _hoisted_1$
|
|
31772
|
+
const _hoisted_1$k = { class: "lupa-related-query-item" };
|
|
31587
31773
|
const _hoisted_2$f = { class: "lupa-related-query-image" };
|
|
31588
31774
|
const _hoisted_3$9 = { class: "lupa-related-query-label" };
|
|
31589
31775
|
const _hoisted_4$6 = { class: "lupa-related-query-title" };
|
|
@@ -31591,7 +31777,7 @@ const _hoisted_5$2 = {
|
|
|
31591
31777
|
key: 0,
|
|
31592
31778
|
class: "lupa-related-query-count"
|
|
31593
31779
|
};
|
|
31594
|
-
const _sfc_main$
|
|
31780
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
31595
31781
|
__name: "RelatedQueryPanelApi",
|
|
31596
31782
|
props: {
|
|
31597
31783
|
relatedQuery: {},
|
|
@@ -31623,9 +31809,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
31623
31809
|
});
|
|
31624
31810
|
return (_ctx, _cache) => {
|
|
31625
31811
|
var _a25;
|
|
31626
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31812
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
31627
31813
|
createElementVNode("div", _hoisted_2$f, [
|
|
31628
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
31814
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1A, {
|
|
31629
31815
|
key: 0,
|
|
31630
31816
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
31631
31817
|
"image-class": "lupa-related-query-image",
|
|
@@ -31641,7 +31827,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
31641
31827
|
};
|
|
31642
31828
|
}
|
|
31643
31829
|
});
|
|
31644
|
-
const _hoisted_1$
|
|
31830
|
+
const _hoisted_1$j = {
|
|
31645
31831
|
key: 0,
|
|
31646
31832
|
class: "lupa-related-queries"
|
|
31647
31833
|
};
|
|
@@ -31650,7 +31836,7 @@ const _hoisted_2$e = {
|
|
|
31650
31836
|
class: "lupa-related-queries-title"
|
|
31651
31837
|
};
|
|
31652
31838
|
const _hoisted_3$8 = ["onClick"];
|
|
31653
|
-
const _sfc_main$
|
|
31839
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
31654
31840
|
__name: "RelatedQueriesApi",
|
|
31655
31841
|
props: {
|
|
31656
31842
|
options: {}
|
|
@@ -31702,7 +31888,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
31702
31888
|
};
|
|
31703
31889
|
return (_ctx, _cache) => {
|
|
31704
31890
|
var _a25, _b25, _c, _d;
|
|
31705
|
-
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31891
|
+
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
31706
31892
|
((_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
31893
|
createElementVNode("ul", null, [
|
|
31708
31894
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
@@ -31713,7 +31899,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
31713
31899
|
createElementVNode("a", {
|
|
31714
31900
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
31715
31901
|
}, [
|
|
31716
|
-
createVNode(_sfc_main$
|
|
31902
|
+
createVNode(_sfc_main$m, {
|
|
31717
31903
|
relatedQuery: query,
|
|
31718
31904
|
options: _ctx.options
|
|
31719
31905
|
}, null, 8, ["relatedQuery", "options"])
|
|
@@ -31725,9 +31911,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
31725
31911
|
};
|
|
31726
31912
|
}
|
|
31727
31913
|
});
|
|
31728
|
-
const _hoisted_1$
|
|
31914
|
+
const _hoisted_1$i = { key: 0 };
|
|
31729
31915
|
const _hoisted_2$d = ["innerHTML"];
|
|
31730
|
-
const _sfc_main$
|
|
31916
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
31731
31917
|
__name: "ZeroResults",
|
|
31732
31918
|
props: {
|
|
31733
31919
|
emptyResultsLabel: {},
|
|
@@ -31756,7 +31942,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
31756
31942
|
});
|
|
31757
31943
|
return (_ctx, _cache) => {
|
|
31758
31944
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
31759
|
-
showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31945
|
+
showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
31760
31946
|
createTextVNode(toDisplayString(_ctx.emptyResultsLabel) + " ", 1),
|
|
31761
31947
|
createElementVNode("span", null, toDisplayString(_ctx.currentQueryText), 1)
|
|
31762
31948
|
])) : createCommentVNode("", true),
|
|
@@ -31768,6 +31954,31 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
31768
31954
|
};
|
|
31769
31955
|
}
|
|
31770
31956
|
});
|
|
31957
|
+
const _hoisted_1$h = {
|
|
31958
|
+
key: 1,
|
|
31959
|
+
class: "lupa-skeleton-grid"
|
|
31960
|
+
};
|
|
31961
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
31962
|
+
__name: "LoadingGrid",
|
|
31963
|
+
props: {
|
|
31964
|
+
style: {},
|
|
31965
|
+
enabled: { type: Boolean },
|
|
31966
|
+
loading: { type: Boolean },
|
|
31967
|
+
count: {}
|
|
31968
|
+
},
|
|
31969
|
+
setup(__props) {
|
|
31970
|
+
return (_ctx, _cache) => {
|
|
31971
|
+
return !_ctx.loading || !_ctx.enabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
31972
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (n) => {
|
|
31973
|
+
return openBlock(), createBlock(_sfc_main$1a, {
|
|
31974
|
+
key: n,
|
|
31975
|
+
style: normalizeStyle(_ctx.style)
|
|
31976
|
+
}, null, 8, ["style"]);
|
|
31977
|
+
}), 128))
|
|
31978
|
+
]));
|
|
31979
|
+
};
|
|
31980
|
+
}
|
|
31981
|
+
});
|
|
31771
31982
|
const _hoisted_1$g = { id: "lupa-search-results-products" };
|
|
31772
31983
|
const _hoisted_2$c = {
|
|
31773
31984
|
class: "lupa-products",
|
|
@@ -31779,12 +31990,12 @@ const _hoisted_3$7 = {
|
|
|
31779
31990
|
"data-cy": "lupa-no-results-in-page"
|
|
31780
31991
|
};
|
|
31781
31992
|
const _hoisted_4$5 = {
|
|
31782
|
-
key:
|
|
31993
|
+
key: 3,
|
|
31783
31994
|
class: "lupa-empty-results",
|
|
31784
31995
|
"data-cy": "lupa-no-results"
|
|
31785
31996
|
};
|
|
31786
|
-
const _hoisted_5$1 = { key:
|
|
31787
|
-
const _hoisted_6 = { key:
|
|
31997
|
+
const _hoisted_5$1 = { key: 4 };
|
|
31998
|
+
const _hoisted_6 = { key: 5 };
|
|
31788
31999
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
31789
32000
|
__name: "SearchResultsProducts",
|
|
31790
32001
|
props: {
|
|
@@ -31808,6 +32019,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
31808
32019
|
loading,
|
|
31809
32020
|
relatedQueriesApiEnabled
|
|
31810
32021
|
} = storeToRefs(searchResultStore);
|
|
32022
|
+
const { limit, skeletonEnabled, relatedQueriesSkeletonEnabled, loadingRelatedQueries } = useLoadingSkeleton();
|
|
31811
32023
|
const emit = __emit;
|
|
31812
32024
|
const productCardOptions = computed(() => {
|
|
31813
32025
|
return pick(props.options, [
|
|
@@ -31864,12 +32076,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
31864
32076
|
});
|
|
31865
32077
|
const columnSize = computed(() => {
|
|
31866
32078
|
if (props.ssr) {
|
|
31867
|
-
return
|
|
32079
|
+
return {};
|
|
31868
32080
|
}
|
|
31869
32081
|
if (layout.value === ResultsLayoutEnum.LIST) {
|
|
31870
|
-
return
|
|
32082
|
+
return { width: "100%" };
|
|
31871
32083
|
}
|
|
31872
|
-
return
|
|
32084
|
+
return { width: `${100 / columnCount.value}%` };
|
|
31873
32085
|
});
|
|
31874
32086
|
const hasSimilarQueries = computed(() => {
|
|
31875
32087
|
var _a25;
|
|
@@ -31905,40 +32117,50 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
31905
32117
|
emit("filter");
|
|
31906
32118
|
};
|
|
31907
32119
|
return (_ctx, _cache) => {
|
|
31908
|
-
var _a25, _b25, _c;
|
|
32120
|
+
var _a25, _b25, _c, _d;
|
|
31909
32121
|
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
31910
|
-
unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
32122
|
+
!unref(skeletonEnabled) && unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
31911
32123
|
key: 0,
|
|
31912
32124
|
class: "lupa-loader"
|
|
31913
32125
|
})) : createCommentVNode("", true),
|
|
31914
|
-
createVNode(_sfc_main$
|
|
32126
|
+
createVNode(_sfc_main$o, {
|
|
31915
32127
|
options: _ctx.options.redirectionSuggestions
|
|
31916
32128
|
}, null, 8, ["options"]),
|
|
31917
|
-
createVNode(_sfc_main$
|
|
32129
|
+
createVNode(_sfc_main$t, {
|
|
31918
32130
|
options: _ctx.options,
|
|
31919
32131
|
location: "top",
|
|
31920
|
-
|
|
31921
|
-
}, null, 8, ["options", "
|
|
31922
|
-
|
|
31923
|
-
|
|
31924
|
-
|
|
31925
|
-
|
|
31926
|
-
|
|
31927
|
-
|
|
31928
|
-
|
|
31929
|
-
|
|
31930
|
-
|
|
31931
|
-
|
|
32132
|
+
"sdk-options": _ctx.options.options
|
|
32133
|
+
}, null, 8, ["options", "sdk-options"]),
|
|
32134
|
+
createVNode(_sfc_main$18, {
|
|
32135
|
+
enabled: unref(relatedQueriesSkeletonEnabled),
|
|
32136
|
+
loading: unref(loading) || unref(loadingRelatedQueries),
|
|
32137
|
+
count: 1,
|
|
32138
|
+
class: "lupa-skeleton-related-queries"
|
|
32139
|
+
}, {
|
|
32140
|
+
default: withCtx(() => [
|
|
32141
|
+
showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$p, {
|
|
32142
|
+
key: 0,
|
|
32143
|
+
options: _ctx.options.relatedQueries
|
|
32144
|
+
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
32145
|
+
showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$l, {
|
|
32146
|
+
key: 1,
|
|
32147
|
+
options: _ctx.options.relatedQueries
|
|
32148
|
+
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
32149
|
+
]),
|
|
32150
|
+
_: 1
|
|
32151
|
+
}, 8, ["enabled", "loading"]),
|
|
32152
|
+
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
32153
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
31932
32154
|
key: 0,
|
|
31933
32155
|
options: (_a25 = _ctx.options.filters) != null ? _a25 : {}
|
|
31934
32156
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
31935
|
-
createVNode(_sfc_main$
|
|
32157
|
+
createVNode(_sfc_main$I, {
|
|
31936
32158
|
class: "lupa-toolbar-mobile",
|
|
31937
32159
|
options: _ctx.options,
|
|
31938
32160
|
"pagination-location": "top",
|
|
31939
32161
|
onFilter: filter
|
|
31940
32162
|
}, null, 8, ["options"]),
|
|
31941
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
32163
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$15, {
|
|
31942
32164
|
key: 1,
|
|
31943
32165
|
class: normalizeClass(currentFiltersClass.value),
|
|
31944
32166
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -31946,13 +32168,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
31946
32168
|
expandable: !desktopFiltersExpanded.value
|
|
31947
32169
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
31948
32170
|
], 64)) : createCommentVNode("", true),
|
|
31949
|
-
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key:
|
|
31950
|
-
createVNode(_sfc_main$
|
|
32171
|
+
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
32172
|
+
createVNode(_sfc_main$I, {
|
|
31951
32173
|
class: "lupa-toolbar-top",
|
|
31952
32174
|
options: _ctx.options,
|
|
31953
32175
|
"pagination-location": "top"
|
|
31954
32176
|
}, null, 8, ["options"]),
|
|
31955
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
32177
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$15, {
|
|
31956
32178
|
key: 0,
|
|
31957
32179
|
class: normalizeClass(currentFiltersClass.value),
|
|
31958
32180
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -31960,22 +32182,32 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
31960
32182
|
expandable: !desktopFiltersExpanded.value
|
|
31961
32183
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true),
|
|
31962
32184
|
createElementVNode("div", _hoisted_2$c, [
|
|
31963
|
-
|
|
31964
|
-
|
|
31965
|
-
|
|
31966
|
-
|
|
31967
|
-
|
|
31968
|
-
|
|
31969
|
-
|
|
31970
|
-
|
|
31971
|
-
|
|
31972
|
-
|
|
31973
|
-
|
|
31974
|
-
|
|
31975
|
-
|
|
31976
|
-
|
|
31977
|
-
|
|
31978
|
-
|
|
32185
|
+
createVNode(_sfc_main$j, {
|
|
32186
|
+
enabled: unref(skeletonEnabled),
|
|
32187
|
+
loading: unref(loading),
|
|
32188
|
+
count: (_b25 = unref(limit)) != null ? _b25 : 12,
|
|
32189
|
+
style: normalizeStyle(columnSize.value)
|
|
32190
|
+
}, {
|
|
32191
|
+
default: withCtx(() => [
|
|
32192
|
+
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
|
|
32193
|
+
return renderSlot(_ctx.$slots, "productCard", {
|
|
32194
|
+
key: getProductKeyAction(index, product),
|
|
32195
|
+
style: normalizeStyle(columnSize.value),
|
|
32196
|
+
product,
|
|
32197
|
+
options: productCardOptions.value
|
|
32198
|
+
});
|
|
32199
|
+
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
32200
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
32201
|
+
key: getProductKeyAction(index, product),
|
|
32202
|
+
style: normalizeStyle(columnSize.value),
|
|
32203
|
+
product,
|
|
32204
|
+
options: productCardOptions.value,
|
|
32205
|
+
"analytics-metadata": clickMetadata.value
|
|
32206
|
+
}, null, 8, ["style", "product", "options", "analytics-metadata"]);
|
|
32207
|
+
}), 128))
|
|
32208
|
+
]),
|
|
32209
|
+
_: 3
|
|
32210
|
+
}, 8, ["enabled", "loading", "count", "style"])
|
|
31979
32211
|
]),
|
|
31980
32212
|
unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
|
|
31981
32213
|
createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
|
|
@@ -31985,40 +32217,40 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
31985
32217
|
onClick: goToFirstPage
|
|
31986
32218
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
31987
32219
|
])) : createCommentVNode("", true),
|
|
31988
|
-
createVNode(_sfc_main$
|
|
32220
|
+
createVNode(_sfc_main$I, {
|
|
31989
32221
|
class: "lupa-toolbar-bottom",
|
|
31990
32222
|
options: _ctx.options,
|
|
31991
32223
|
"pagination-location": "bottom"
|
|
31992
32224
|
}, null, 8, ["options"]),
|
|
31993
|
-
createVNode(_sfc_main$
|
|
32225
|
+
createVNode(_sfc_main$t, {
|
|
31994
32226
|
options: _ctx.options,
|
|
31995
32227
|
location: "bottom",
|
|
31996
|
-
|
|
31997
|
-
}, null, 8, ["options", "
|
|
32228
|
+
"sdk-options": _ctx.options.options
|
|
32229
|
+
}, null, 8, ["options", "sdk-options"])
|
|
31998
32230
|
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
31999
|
-
createVNode(_sfc_main$
|
|
32000
|
-
|
|
32001
|
-
|
|
32002
|
-
|
|
32003
|
-
|
|
32004
|
-
}, null, 8, ["
|
|
32231
|
+
createVNode(_sfc_main$k, {
|
|
32232
|
+
"empty-results-label": (_c = _ctx.options.labels) == null ? void 0 : _c.emptyResults,
|
|
32233
|
+
"current-query-text": unref(currentQueryText),
|
|
32234
|
+
"has-similar-queries": hasSimilarQueries.value || hasSimilarResults.value,
|
|
32235
|
+
"zero-results": (_d = _ctx.options) == null ? void 0 : _d.zeroResults
|
|
32236
|
+
}, null, 8, ["empty-results-label", "current-query-text", "has-similar-queries", "zero-results"])
|
|
32005
32237
|
])) : createCommentVNode("", true),
|
|
32006
|
-
createVNode(_sfc_main$
|
|
32238
|
+
createVNode(_sfc_main$n, {
|
|
32007
32239
|
labels: _ctx.options.labels
|
|
32008
32240
|
}, null, 8, ["labels"]),
|
|
32009
32241
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
32010
|
-
createVNode(_sfc_main$
|
|
32242
|
+
createVNode(_sfc_main$v, {
|
|
32011
32243
|
labels: similarQueriesLabels.value,
|
|
32012
|
-
|
|
32013
|
-
|
|
32014
|
-
}, null, 8, ["labels", "
|
|
32244
|
+
"column-size": columnSize.value,
|
|
32245
|
+
"product-card-options": productCardOptions.value
|
|
32246
|
+
}, null, 8, ["labels", "column-size", "product-card-options"])
|
|
32015
32247
|
])) : createCommentVNode("", true),
|
|
32016
32248
|
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
32017
|
-
createVNode(_sfc_main$
|
|
32249
|
+
createVNode(_sfc_main$r, {
|
|
32018
32250
|
labels: similarResultsLabels.value,
|
|
32019
|
-
|
|
32020
|
-
|
|
32021
|
-
}, null, 8, ["labels", "
|
|
32251
|
+
"column-size": columnSize.value,
|
|
32252
|
+
"product-card-options": productCardOptions.value
|
|
32253
|
+
}, null, 8, ["labels", "column-size", "product-card-options"])
|
|
32022
32254
|
])) : createCommentVNode("", true),
|
|
32023
32255
|
renderSlot(_ctx.$slots, "append")
|
|
32024
32256
|
]);
|
|
@@ -32093,7 +32325,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
32093
32325
|
])) : createCommentVNode("", true),
|
|
32094
32326
|
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
32095
32327
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
32096
|
-
return openBlock(), createBlock(_sfc_main$
|
|
32328
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
32097
32329
|
key: getCategoryKey(child),
|
|
32098
32330
|
item: child,
|
|
32099
32331
|
options: categoryOptions.value
|
|
@@ -32527,8 +32759,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
32527
32759
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
32528
32760
|
}, [
|
|
32529
32761
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
32530
|
-
createVNode(_sfc_main$
|
|
32531
|
-
createVNode(_sfc_main$
|
|
32762
|
+
createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
32763
|
+
createVNode(_sfc_main$17, {
|
|
32532
32764
|
"show-summary": true,
|
|
32533
32765
|
options: _ctx.options,
|
|
32534
32766
|
"is-product-list": (_a25 = _ctx.isProductList) != null ? _a25 : false
|
|
@@ -32538,13 +32770,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
32538
32770
|
key: 1,
|
|
32539
32771
|
options: _ctx.options
|
|
32540
32772
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
32541
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
32773
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$S, {
|
|
32542
32774
|
key: 2,
|
|
32543
32775
|
options: _ctx.options.filters,
|
|
32544
32776
|
onFilter: handleParamsChange
|
|
32545
32777
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
32546
32778
|
_ctx.options.sort ? (openBlock(), createBlock(_sfc_main$f, { key: 3 })) : createCommentVNode("", true),
|
|
32547
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
32779
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$R, {
|
|
32548
32780
|
key: 4,
|
|
32549
32781
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
32550
32782
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
@@ -32553,7 +32785,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
32553
32785
|
id: "lupa-search-results",
|
|
32554
32786
|
class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
|
|
32555
32787
|
}, [
|
|
32556
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
32788
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$T, {
|
|
32557
32789
|
key: 0,
|
|
32558
32790
|
options: (_b25 = _ctx.options.filters) != null ? _b25 : {},
|
|
32559
32791
|
ref_key: "searchResultsFilters",
|
|
@@ -32561,8 +32793,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
32561
32793
|
onFilter: handleParamsChange
|
|
32562
32794
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
32563
32795
|
createElementVNode("div", _hoisted_2$8, [
|
|
32564
|
-
createVNode(_sfc_main$
|
|
32565
|
-
createVNode(_sfc_main$
|
|
32796
|
+
createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
32797
|
+
createVNode(_sfc_main$17, {
|
|
32566
32798
|
options: _ctx.options,
|
|
32567
32799
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
32568
32800
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -32578,8 +32810,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
32578
32810
|
}, 8, ["options", "ssr"])
|
|
32579
32811
|
])
|
|
32580
32812
|
], 2)) : (openBlock(), createElementBlock(Fragment, { key: 6 }, [
|
|
32581
|
-
createVNode(_sfc_main$
|
|
32582
|
-
createVNode(_sfc_main$
|
|
32813
|
+
createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
32814
|
+
createVNode(_sfc_main$17, {
|
|
32583
32815
|
options: _ctx.options,
|
|
32584
32816
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
32585
32817
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -32587,7 +32819,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
32587
32819
|
id: "lupa-search-results",
|
|
32588
32820
|
class: normalizeClass(indicatorClasses.value)
|
|
32589
32821
|
}, [
|
|
32590
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
32822
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$T, {
|
|
32591
32823
|
key: 0,
|
|
32592
32824
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
32593
32825
|
ref_key: "searchResultsFilters",
|
|
@@ -32738,7 +32970,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
32738
32970
|
onClick: withModifiers(innerClick, ["stop"])
|
|
32739
32971
|
}, [
|
|
32740
32972
|
createElementVNode("div", _hoisted_1$a, [
|
|
32741
|
-
createVNode(_sfc_main$
|
|
32973
|
+
createVNode(_sfc_main$1d, {
|
|
32742
32974
|
options: fullSearchBoxOptions.value,
|
|
32743
32975
|
"is-search-container": true,
|
|
32744
32976
|
ref_key: "searchBox",
|
|
@@ -34393,7 +34625,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
34393
34625
|
key: getProductKeyAction(index, product)
|
|
34394
34626
|
}, {
|
|
34395
34627
|
default: withCtx(() => [
|
|
34396
|
-
createVNode(_sfc_main$
|
|
34628
|
+
createVNode(_sfc_main$w, {
|
|
34397
34629
|
product,
|
|
34398
34630
|
options: _ctx.options,
|
|
34399
34631
|
"click-tracking-settings": clickTrackingSettings.value,
|
|
@@ -34408,7 +34640,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
34408
34640
|
_: 1
|
|
34409
34641
|
}, 16, ["wrap-around"])) : (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
34410
34642
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations.value, (product, index) => {
|
|
34411
|
-
return openBlock(), createBlock(_sfc_main$
|
|
34643
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
34412
34644
|
style: normalizeStyle(columnSize.value),
|
|
34413
34645
|
key: getProductKeyAction(index, product),
|
|
34414
34646
|
product,
|
|
@@ -34654,7 +34886,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
34654
34886
|
createElementVNode("a", {
|
|
34655
34887
|
href: getLink(product)
|
|
34656
34888
|
}, [
|
|
34657
|
-
createVNode(_sfc_main$
|
|
34889
|
+
createVNode(_sfc_main$H, {
|
|
34658
34890
|
item: product,
|
|
34659
34891
|
options: image.value
|
|
34660
34892
|
}, null, 8, ["item", "options"])
|
|
@@ -34819,7 +35051,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
34819
35051
|
return (_ctx, _cache) => {
|
|
34820
35052
|
return openBlock(), createElementBlock("section", _hoisted_1$3, [
|
|
34821
35053
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
34822
|
-
return openBlock(), createBlock(_sfc_main$
|
|
35054
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
34823
35055
|
class: "lupa-chat-product-card",
|
|
34824
35056
|
key: getProductKeyAction(index, product),
|
|
34825
35057
|
product,
|
|
@@ -35154,7 +35386,7 @@ export {
|
|
|
35154
35386
|
LupaSearch,
|
|
35155
35387
|
_sfc_main$c as ProductList,
|
|
35156
35388
|
_sfc_main$a as Recommendations,
|
|
35157
|
-
_sfc_main$
|
|
35389
|
+
_sfc_main$1d as SearchBox,
|
|
35158
35390
|
SearchBoxPanelType,
|
|
35159
35391
|
_sfc_main$b as SearchContainer,
|
|
35160
35392
|
_sfc_main$e as SearchResults,
|