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