@getlupa/client 1.3.9 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lupaChatStyle.css +1 -1
- package/dist/lupaSearch.iife.js +551 -444
- package/dist/lupaSearch.js +551 -444
- package/dist/lupaSearch.mjs +551 -444
- package/dist/lupaSearch.umd.js +551 -444
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/lupaSearch.umd.js
CHANGED
|
@@ -7538,6 +7538,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7538
7538
|
};
|
|
7539
7539
|
})
|
|
7540
7540
|
);
|
|
7541
|
+
const hasAnyResults = computed(() => {
|
|
7542
|
+
var _a;
|
|
7543
|
+
return (_a = panelItemCounts.value) == null ? void 0 : _a.some((p2) => p2.count > 0);
|
|
7544
|
+
});
|
|
7541
7545
|
const totalCount = computed(
|
|
7542
7546
|
() => {
|
|
7543
7547
|
var _a, _b;
|
|
@@ -7590,6 +7594,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7590
7594
|
[queryKey]: flattenSuggestions(result.items, (_a = publicQuery.searchText) != null ? _a : "")
|
|
7591
7595
|
});
|
|
7592
7596
|
inputValue.value = publicQuery.searchText;
|
|
7597
|
+
emitSearchResultsCallback();
|
|
7593
7598
|
return {
|
|
7594
7599
|
suggestions: result.items
|
|
7595
7600
|
};
|
|
@@ -7601,6 +7606,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7601
7606
|
return { suggestions: void 0 };
|
|
7602
7607
|
}
|
|
7603
7608
|
});
|
|
7609
|
+
const emitSearchResultsCallback = () => {
|
|
7610
|
+
var _a;
|
|
7611
|
+
if ((_a = options.value.callbacks) == null ? void 0 : _a.onSearchBoxResults) {
|
|
7612
|
+
options.value.callbacks.onSearchBoxResults({
|
|
7613
|
+
hasAnyResults: hasAnyResults.value,
|
|
7614
|
+
docResults: docResults.value,
|
|
7615
|
+
suggestionResults: suggestionResults.value,
|
|
7616
|
+
totalCount: totalCount.value,
|
|
7617
|
+
panelItemCounts: panelItemCounts.value,
|
|
7618
|
+
inputValue: inputValue.value
|
|
7619
|
+
});
|
|
7620
|
+
}
|
|
7621
|
+
};
|
|
7604
7622
|
const queryDocuments = (_0) => __async(void 0, [_0], function* ({
|
|
7605
7623
|
queryKey,
|
|
7606
7624
|
publicQuery,
|
|
@@ -7614,6 +7632,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7614
7632
|
}
|
|
7615
7633
|
highlightChange({ action: "clear" });
|
|
7616
7634
|
docResults.value = __spreadProps2(__spreadValues2({}, docResults.value), { [queryKey]: result });
|
|
7635
|
+
emitSearchResultsCallback();
|
|
7617
7636
|
return { queryKey, result };
|
|
7618
7637
|
} catch (err) {
|
|
7619
7638
|
console.error(err);
|
|
@@ -7650,6 +7669,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7650
7669
|
totalCount,
|
|
7651
7670
|
highlightedItem,
|
|
7652
7671
|
highlightedDocument,
|
|
7672
|
+
hasAnyResults,
|
|
7653
7673
|
querySuggestions,
|
|
7654
7674
|
queryDocuments,
|
|
7655
7675
|
highlightChange,
|
|
@@ -7658,8 +7678,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7658
7678
|
resetHighlightIndex
|
|
7659
7679
|
};
|
|
7660
7680
|
});
|
|
7661
|
-
const _hoisted_1$
|
|
7662
|
-
const _hoisted_2$
|
|
7681
|
+
const _hoisted_1$1b = { id: "lupa-search-box-input-container" };
|
|
7682
|
+
const _hoisted_2$O = { class: "lupa-input-clear" };
|
|
7663
7683
|
const _hoisted_3$A = { id: "lupa-search-box-input" };
|
|
7664
7684
|
const _hoisted_4$r = ["value"];
|
|
7665
7685
|
const _hoisted_5$f = ["placeholder"];
|
|
@@ -7667,7 +7687,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7667
7687
|
key: 0,
|
|
7668
7688
|
class: "lupa-close-label"
|
|
7669
7689
|
};
|
|
7670
|
-
const _sfc_main$
|
|
7690
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
7671
7691
|
__name: "SearchBoxInput",
|
|
7672
7692
|
props: {
|
|
7673
7693
|
options: {},
|
|
@@ -7744,8 +7764,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7744
7764
|
};
|
|
7745
7765
|
__expose({ focus });
|
|
7746
7766
|
return (_ctx, _cache) => {
|
|
7747
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7748
|
-
createBaseVNode("div", _hoisted_2$
|
|
7767
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1b, [
|
|
7768
|
+
createBaseVNode("div", _hoisted_2$O, [
|
|
7749
7769
|
createBaseVNode("div", {
|
|
7750
7770
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
7751
7771
|
onClick: clear2
|
|
@@ -7784,7 +7804,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7784
7804
|
};
|
|
7785
7805
|
}
|
|
7786
7806
|
});
|
|
7787
|
-
const _sfc_main$
|
|
7807
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
7788
7808
|
__name: "SearchBoxMoreResults",
|
|
7789
7809
|
props: {
|
|
7790
7810
|
labels: {},
|
|
@@ -7816,9 +7836,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7816
7836
|
};
|
|
7817
7837
|
}
|
|
7818
7838
|
});
|
|
7819
|
-
const _hoisted_1$
|
|
7820
|
-
const _hoisted_2$
|
|
7821
|
-
const _sfc_main$
|
|
7839
|
+
const _hoisted_1$1a = { class: "lupa-search-box-history-item" };
|
|
7840
|
+
const _hoisted_2$N = { class: "lupa-search-box-history-item-content" };
|
|
7841
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
7822
7842
|
__name: "SearchBoxHistoryItem",
|
|
7823
7843
|
props: {
|
|
7824
7844
|
item: {},
|
|
@@ -7834,8 +7854,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7834
7854
|
emit2("click", { query: props.item });
|
|
7835
7855
|
};
|
|
7836
7856
|
return (_ctx, _cache) => {
|
|
7837
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7838
|
-
createBaseVNode("div", _hoisted_2$
|
|
7857
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1a, [
|
|
7858
|
+
createBaseVNode("div", _hoisted_2$N, [
|
|
7839
7859
|
createBaseVNode("div", {
|
|
7840
7860
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
7841
7861
|
onClick: click2
|
|
@@ -7849,11 +7869,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7849
7869
|
};
|
|
7850
7870
|
}
|
|
7851
7871
|
});
|
|
7852
|
-
const _hoisted_1$
|
|
7872
|
+
const _hoisted_1$19 = {
|
|
7853
7873
|
key: 0,
|
|
7854
7874
|
class: "lupa-search-box-history-panel"
|
|
7855
7875
|
};
|
|
7856
|
-
const _sfc_main$
|
|
7876
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
7857
7877
|
__name: "SearchBoxHistoryPanel",
|
|
7858
7878
|
props: {
|
|
7859
7879
|
options: {}
|
|
@@ -7894,9 +7914,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7894
7914
|
}
|
|
7895
7915
|
};
|
|
7896
7916
|
return (_ctx, _cache) => {
|
|
7897
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7917
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$19, [
|
|
7898
7918
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
7899
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7919
|
+
return openBlock(), createBlock(_sfc_main$1h, {
|
|
7900
7920
|
key: item,
|
|
7901
7921
|
item,
|
|
7902
7922
|
highlighted: index === highlightIndex.value,
|
|
@@ -7912,8 +7932,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7912
7932
|
};
|
|
7913
7933
|
}
|
|
7914
7934
|
});
|
|
7915
|
-
const _hoisted_1$
|
|
7916
|
-
const
|
|
7935
|
+
const _hoisted_1$18 = { class: "lupa-search-box-no-results" };
|
|
7936
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
7937
|
+
__name: "SearchBoxNoResults",
|
|
7938
|
+
props: {
|
|
7939
|
+
labels: {}
|
|
7940
|
+
},
|
|
7941
|
+
setup(__props) {
|
|
7942
|
+
return (_ctx, _cache) => {
|
|
7943
|
+
return openBlock(), createElementBlock("p", _hoisted_1$18, toDisplayString(_ctx.labels.noResults), 1);
|
|
7944
|
+
};
|
|
7945
|
+
}
|
|
7946
|
+
});
|
|
7947
|
+
const _hoisted_1$17 = ["innerHTML"];
|
|
7948
|
+
const _hoisted_2$M = {
|
|
7917
7949
|
key: 1,
|
|
7918
7950
|
"data-cy": "lupa-suggestion-value",
|
|
7919
7951
|
class: "lupa-suggestion-value"
|
|
@@ -7931,7 +7963,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7931
7963
|
class: "lupa-suggestion-facet-value",
|
|
7932
7964
|
"data-cy": "lupa-suggestion-facet-value"
|
|
7933
7965
|
};
|
|
7934
|
-
const _sfc_main$
|
|
7966
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
7935
7967
|
__name: "SearchBoxSuggestion",
|
|
7936
7968
|
props: {
|
|
7937
7969
|
suggestion: {},
|
|
@@ -7967,7 +7999,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7967
7999
|
class: "lupa-suggestion-value",
|
|
7968
8000
|
"data-cy": "lupa-suggestion-value",
|
|
7969
8001
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
7970
|
-
}, null, 8, _hoisted_1$
|
|
8002
|
+
}, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(_ctx.suggestion.display), 1)),
|
|
7971
8003
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
7972
8004
|
createBaseVNode("span", _hoisted_4$q, toDisplayString(facetLabel.value), 1),
|
|
7973
8005
|
createBaseVNode("span", _hoisted_5$e, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
@@ -7976,11 +8008,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7976
8008
|
};
|
|
7977
8009
|
}
|
|
7978
8010
|
});
|
|
7979
|
-
const _hoisted_1$
|
|
8011
|
+
const _hoisted_1$16 = {
|
|
7980
8012
|
id: "lupa-search-box-suggestions",
|
|
7981
8013
|
"data-cy": "lupa-search-box-suggestions"
|
|
7982
8014
|
};
|
|
7983
|
-
const _sfc_main$
|
|
8015
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
7984
8016
|
__name: "SearchBoxSuggestions",
|
|
7985
8017
|
props: {
|
|
7986
8018
|
items: {},
|
|
@@ -8040,9 +8072,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8040
8072
|
});
|
|
8041
8073
|
});
|
|
8042
8074
|
return (_ctx, _cache) => {
|
|
8043
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8075
|
+
return openBlock(), createElementBlock("div", _hoisted_1$16, [
|
|
8044
8076
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
8045
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8077
|
+
return openBlock(), createBlock(_sfc_main$1e, {
|
|
8046
8078
|
key: getSuggestionKey(item),
|
|
8047
8079
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
8048
8080
|
suggestion: item,
|
|
@@ -8070,7 +8102,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8070
8102
|
}, timeout);
|
|
8071
8103
|
};
|
|
8072
8104
|
};
|
|
8073
|
-
const _sfc_main$
|
|
8105
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
8074
8106
|
__name: "SearchBoxSuggestionsWrapper",
|
|
8075
8107
|
props: {
|
|
8076
8108
|
panel: {},
|
|
@@ -8111,7 +8143,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8111
8143
|
};
|
|
8112
8144
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
8113
8145
|
return (_ctx, _cache) => {
|
|
8114
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8146
|
+
return openBlock(), createBlock(_sfc_main$1d, {
|
|
8115
8147
|
items: searchResult.value,
|
|
8116
8148
|
highlight: _ctx.panel.highlight,
|
|
8117
8149
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -8189,8 +8221,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8189
8221
|
});
|
|
8190
8222
|
return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
|
|
8191
8223
|
});
|
|
8192
|
-
const _hoisted_1$
|
|
8193
|
-
const _sfc_main$
|
|
8224
|
+
const _hoisted_1$15 = ["src"];
|
|
8225
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
8194
8226
|
__name: "ProductImage",
|
|
8195
8227
|
props: {
|
|
8196
8228
|
item: {},
|
|
@@ -8238,12 +8270,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8238
8270
|
class: normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
|
|
8239
8271
|
src: finalUrl.value,
|
|
8240
8272
|
onError: replaceWithPlaceholder
|
|
8241
|
-
}, null, 42, _hoisted_1$
|
|
8273
|
+
}, null, 42, _hoisted_1$15)
|
|
8242
8274
|
], 2);
|
|
8243
8275
|
};
|
|
8244
8276
|
}
|
|
8245
8277
|
});
|
|
8246
|
-
const _sfc_main$
|
|
8278
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
8247
8279
|
__name: "SearchBoxProductImage",
|
|
8248
8280
|
props: {
|
|
8249
8281
|
item: {},
|
|
@@ -8251,7 +8283,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8251
8283
|
},
|
|
8252
8284
|
setup(__props) {
|
|
8253
8285
|
return (_ctx, _cache) => {
|
|
8254
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8286
|
+
return openBlock(), createBlock(_sfc_main$1b, {
|
|
8255
8287
|
item: _ctx.item,
|
|
8256
8288
|
options: _ctx.options,
|
|
8257
8289
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -8260,12 +8292,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8260
8292
|
};
|
|
8261
8293
|
}
|
|
8262
8294
|
});
|
|
8263
|
-
const _hoisted_1$
|
|
8264
|
-
const _hoisted_2$
|
|
8295
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
8296
|
+
const _hoisted_2$L = {
|
|
8265
8297
|
key: 1,
|
|
8266
8298
|
class: "lupa-search-box-product-title"
|
|
8267
8299
|
};
|
|
8268
|
-
const _sfc_main$
|
|
8300
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
8269
8301
|
__name: "SearchBoxProductTitle",
|
|
8270
8302
|
props: {
|
|
8271
8303
|
item: {},
|
|
@@ -8285,18 +8317,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8285
8317
|
key: 0,
|
|
8286
8318
|
class: "lupa-search-box-product-title",
|
|
8287
8319
|
innerHTML: title.value
|
|
8288
|
-
}, null, 8, _hoisted_1$
|
|
8320
|
+
}, null, 8, _hoisted_1$14)) : (openBlock(), createElementBlock("div", _hoisted_2$L, [
|
|
8289
8321
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
8290
8322
|
]));
|
|
8291
8323
|
};
|
|
8292
8324
|
}
|
|
8293
8325
|
});
|
|
8294
|
-
const _hoisted_1$
|
|
8295
|
-
const _hoisted_2$
|
|
8326
|
+
const _hoisted_1$13 = ["innerHTML"];
|
|
8327
|
+
const _hoisted_2$K = {
|
|
8296
8328
|
key: 1,
|
|
8297
8329
|
class: "lupa-search-box-product-description"
|
|
8298
8330
|
};
|
|
8299
|
-
const _sfc_main$
|
|
8331
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
8300
8332
|
__name: "SearchBoxProductDescription",
|
|
8301
8333
|
props: {
|
|
8302
8334
|
item: {},
|
|
@@ -8316,12 +8348,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8316
8348
|
key: 0,
|
|
8317
8349
|
class: "lupa-search-box-product-description",
|
|
8318
8350
|
innerHTML: description.value
|
|
8319
|
-
}, null, 8, _hoisted_1$
|
|
8351
|
+
}, null, 8, _hoisted_1$13)) : (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(description.value), 1));
|
|
8320
8352
|
};
|
|
8321
8353
|
}
|
|
8322
8354
|
});
|
|
8323
|
-
const _hoisted_1$
|
|
8324
|
-
const _sfc_main$
|
|
8355
|
+
const _hoisted_1$12 = { class: "lupa-search-box-product-price" };
|
|
8356
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
8325
8357
|
__name: "SearchBoxProductPrice",
|
|
8326
8358
|
props: {
|
|
8327
8359
|
item: {},
|
|
@@ -8339,14 +8371,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8339
8371
|
);
|
|
8340
8372
|
});
|
|
8341
8373
|
return (_ctx, _cache) => {
|
|
8342
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8374
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
8343
8375
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
8344
8376
|
]);
|
|
8345
8377
|
};
|
|
8346
8378
|
}
|
|
8347
8379
|
});
|
|
8348
|
-
const _hoisted_1$
|
|
8349
|
-
const _sfc_main$
|
|
8380
|
+
const _hoisted_1$11 = { class: "lupa-search-box-product-regular-price" };
|
|
8381
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
8350
8382
|
__name: "SearchBoxProductRegularPrice",
|
|
8351
8383
|
props: {
|
|
8352
8384
|
item: {},
|
|
@@ -8364,16 +8396,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8364
8396
|
);
|
|
8365
8397
|
});
|
|
8366
8398
|
return (_ctx, _cache) => {
|
|
8367
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8399
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, toDisplayString(price.value), 1);
|
|
8368
8400
|
};
|
|
8369
8401
|
}
|
|
8370
8402
|
});
|
|
8371
|
-
const _hoisted_1
|
|
8372
|
-
const _hoisted_2$
|
|
8403
|
+
const _hoisted_1$10 = ["innerHTML"];
|
|
8404
|
+
const _hoisted_2$J = { key: 0 };
|
|
8373
8405
|
const _hoisted_3$y = { key: 1 };
|
|
8374
8406
|
const _hoisted_4$p = { class: "lupa-search-box-custom-label" };
|
|
8375
8407
|
const _hoisted_5$d = { class: "lupa-search-box-custom-text" };
|
|
8376
|
-
const _sfc_main$
|
|
8408
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
8377
8409
|
__name: "SearchBoxProductCustom",
|
|
8378
8410
|
props: {
|
|
8379
8411
|
item: {},
|
|
@@ -8399,11 +8431,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8399
8431
|
key: 0,
|
|
8400
8432
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
8401
8433
|
innerHTML: text.value
|
|
8402
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1
|
|
8434
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$10)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
8403
8435
|
key: 1,
|
|
8404
8436
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
8405
8437
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
8406
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
8438
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$J, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
|
|
8407
8439
|
createBaseVNode("div", _hoisted_4$p, toDisplayString(label.value), 1),
|
|
8408
8440
|
createBaseVNode("div", _hoisted_5$d, toDisplayString(text.value), 1)
|
|
8409
8441
|
]))
|
|
@@ -8411,8 +8443,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8411
8443
|
};
|
|
8412
8444
|
}
|
|
8413
8445
|
});
|
|
8414
|
-
const _hoisted_1
|
|
8415
|
-
const _sfc_main$
|
|
8446
|
+
const _hoisted_1$$ = ["innerHTML"];
|
|
8447
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
8416
8448
|
__name: "SearchBoxProductCustomHtml",
|
|
8417
8449
|
props: {
|
|
8418
8450
|
item: {},
|
|
@@ -8432,7 +8464,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8432
8464
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
8433
8465
|
class: className.value,
|
|
8434
8466
|
innerHTML: text.value
|
|
8435
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1
|
|
8467
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$$);
|
|
8436
8468
|
};
|
|
8437
8469
|
}
|
|
8438
8470
|
});
|
|
@@ -8627,10 +8659,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8627
8659
|
setLoading
|
|
8628
8660
|
};
|
|
8629
8661
|
});
|
|
8630
|
-
const _hoisted_1$
|
|
8631
|
-
const _hoisted_2$
|
|
8662
|
+
const _hoisted_1$_ = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
8663
|
+
const _hoisted_2$I = { class: "lupa-search-box-product-addtocart" };
|
|
8632
8664
|
const _hoisted_3$x = ["onClick", "disabled"];
|
|
8633
|
-
const _sfc_main$
|
|
8665
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
8634
8666
|
__name: "SearchBoxProductAddToCart",
|
|
8635
8667
|
props: {
|
|
8636
8668
|
item: {},
|
|
@@ -8657,8 +8689,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8657
8689
|
loading.value = false;
|
|
8658
8690
|
});
|
|
8659
8691
|
return (_ctx, _cache) => {
|
|
8660
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8661
|
-
createBaseVNode("div", _hoisted_2$
|
|
8692
|
+
return openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
8693
|
+
createBaseVNode("div", _hoisted_2$I, [
|
|
8662
8694
|
createBaseVNode("button", {
|
|
8663
8695
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
8664
8696
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
@@ -8673,17 +8705,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8673
8705
|
});
|
|
8674
8706
|
const __default__$4 = {
|
|
8675
8707
|
components: {
|
|
8676
|
-
SearchBoxProductImage: _sfc_main$
|
|
8677
|
-
SearchBoxProductTitle: _sfc_main$
|
|
8678
|
-
SearchBoxProductDescription: _sfc_main$
|
|
8679
|
-
SearchBoxProductPrice: _sfc_main$
|
|
8680
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
8681
|
-
SearchBoxProductCustom: _sfc_main$
|
|
8682
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
8683
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
8708
|
+
SearchBoxProductImage: _sfc_main$1a,
|
|
8709
|
+
SearchBoxProductTitle: _sfc_main$19,
|
|
8710
|
+
SearchBoxProductDescription: _sfc_main$18,
|
|
8711
|
+
SearchBoxProductPrice: _sfc_main$17,
|
|
8712
|
+
SearchBoxProductRegularPrice: _sfc_main$16,
|
|
8713
|
+
SearchBoxProductCustom: _sfc_main$15,
|
|
8714
|
+
SearchBoxProductCustomHtml: _sfc_main$14,
|
|
8715
|
+
SearchBoxProductAddToCart: _sfc_main$13
|
|
8684
8716
|
}
|
|
8685
8717
|
};
|
|
8686
|
-
const _sfc_main$
|
|
8718
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
8687
8719
|
__name: "SearchBoxProductElement",
|
|
8688
8720
|
props: {
|
|
8689
8721
|
item: {},
|
|
@@ -8797,14 +8829,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8797
8829
|
};
|
|
8798
8830
|
return { trackSearch, trackResults, trackEvent };
|
|
8799
8831
|
});
|
|
8800
|
-
const _hoisted_1$
|
|
8801
|
-
const _hoisted_2$
|
|
8832
|
+
const _hoisted_1$Z = ["href"];
|
|
8833
|
+
const _hoisted_2$H = { class: "lupa-search-box-product-image-section" };
|
|
8802
8834
|
const _hoisted_3$w = { class: "lupa-search-box-product-details-section" };
|
|
8803
8835
|
const _hoisted_4$o = {
|
|
8804
8836
|
key: 0,
|
|
8805
8837
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
8806
8838
|
};
|
|
8807
|
-
const _sfc_main$
|
|
8839
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
8808
8840
|
__name: "SearchBoxProduct",
|
|
8809
8841
|
props: {
|
|
8810
8842
|
item: {},
|
|
@@ -8897,9 +8929,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8897
8929
|
href: link.value,
|
|
8898
8930
|
onClick: handleClick
|
|
8899
8931
|
}, [
|
|
8900
|
-
createBaseVNode("div", _hoisted_2$
|
|
8932
|
+
createBaseVNode("div", _hoisted_2$H, [
|
|
8901
8933
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
8902
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8934
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
8903
8935
|
class: "lupa-search-box-product-element",
|
|
8904
8936
|
item: _ctx.item,
|
|
8905
8937
|
element,
|
|
@@ -8911,7 +8943,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8911
8943
|
]),
|
|
8912
8944
|
createBaseVNode("div", _hoisted_3$w, [
|
|
8913
8945
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
8914
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8946
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
8915
8947
|
class: "lupa-search-box-product-element",
|
|
8916
8948
|
item: _ctx.item,
|
|
8917
8949
|
element,
|
|
@@ -8922,7 +8954,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8922
8954
|
}), 128))
|
|
8923
8955
|
]),
|
|
8924
8956
|
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
|
|
8925
|
-
createVNode(_sfc_main$
|
|
8957
|
+
createVNode(_sfc_main$12, {
|
|
8926
8958
|
class: "lupa-search-box-product-element",
|
|
8927
8959
|
item: _ctx.item,
|
|
8928
8960
|
element: addToCartElement.value,
|
|
@@ -8931,12 +8963,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8931
8963
|
isInStock: isInStock.value
|
|
8932
8964
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
8933
8965
|
])) : createCommentVNode("", true)
|
|
8934
|
-
], 10, _hoisted_1$
|
|
8966
|
+
], 10, _hoisted_1$Z);
|
|
8935
8967
|
};
|
|
8936
8968
|
}
|
|
8937
8969
|
});
|
|
8938
|
-
const _hoisted_1$
|
|
8939
|
-
const _sfc_main
|
|
8970
|
+
const _hoisted_1$Y = { id: "lupa-search-box-products" };
|
|
8971
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
8940
8972
|
__name: "SearchBoxProducts",
|
|
8941
8973
|
props: {
|
|
8942
8974
|
items: {},
|
|
@@ -8956,7 +8988,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8956
8988
|
return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
|
|
8957
8989
|
});
|
|
8958
8990
|
return (_ctx, _cache) => {
|
|
8959
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8991
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Y, [
|
|
8960
8992
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
8961
8993
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
8962
8994
|
key: index,
|
|
@@ -8968,7 +9000,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8968
9000
|
onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
|
|
8969
9001
|
});
|
|
8970
9002
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
8971
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9003
|
+
return openBlock(), createBlock(_sfc_main$11, {
|
|
8972
9004
|
key: index,
|
|
8973
9005
|
item,
|
|
8974
9006
|
panelOptions: _ctx.panelOptions,
|
|
@@ -8982,7 +9014,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8982
9014
|
};
|
|
8983
9015
|
}
|
|
8984
9016
|
});
|
|
8985
|
-
const _sfc_main
|
|
9017
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
8986
9018
|
__name: "SearchBoxProductsWrapper",
|
|
8987
9019
|
props: {
|
|
8988
9020
|
panel: {},
|
|
@@ -9034,7 +9066,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9034
9066
|
const getItemsDebounced = debounce$1(getItems, props.debounce);
|
|
9035
9067
|
return (_ctx, _cache) => {
|
|
9036
9068
|
var _a, _b;
|
|
9037
|
-
return openBlock(), createBlock(_sfc_main
|
|
9069
|
+
return openBlock(), createBlock(_sfc_main$10, {
|
|
9038
9070
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
9039
9071
|
panelOptions: _ctx.panel,
|
|
9040
9072
|
labels: _ctx.labels,
|
|
@@ -9052,11 +9084,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9052
9084
|
};
|
|
9053
9085
|
}
|
|
9054
9086
|
});
|
|
9055
|
-
const _hoisted_1$
|
|
9087
|
+
const _hoisted_1$X = {
|
|
9056
9088
|
key: 0,
|
|
9057
9089
|
id: "lupa-search-box-panel"
|
|
9058
9090
|
};
|
|
9059
|
-
const _hoisted_2$
|
|
9091
|
+
const _hoisted_2$G = {
|
|
9060
9092
|
class: "lupa-main-panel",
|
|
9061
9093
|
"data-cy": "lupa-main-panel"
|
|
9062
9094
|
};
|
|
@@ -9067,11 +9099,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9067
9099
|
};
|
|
9068
9100
|
const __default__$3 = {
|
|
9069
9101
|
components: {
|
|
9070
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
9071
|
-
SearchBoxProductsWrapper: _sfc_main
|
|
9102
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1c,
|
|
9103
|
+
SearchBoxProductsWrapper: _sfc_main$$
|
|
9072
9104
|
}
|
|
9073
9105
|
};
|
|
9074
|
-
const _sfc_main$
|
|
9106
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
9075
9107
|
__name: "SearchBoxMainPanel",
|
|
9076
9108
|
props: {
|
|
9077
9109
|
options: {},
|
|
@@ -9098,7 +9130,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9098
9130
|
const panels = computed(() => props.options.panels);
|
|
9099
9131
|
const sdkOptions = computed(() => props.options.options);
|
|
9100
9132
|
const searchBoxStore = useSearchBoxStore();
|
|
9101
|
-
const { suggestionResults } = storeToRefs(searchBoxStore);
|
|
9133
|
+
const { suggestionResults, hasAnyResults } = storeToRefs(searchBoxStore);
|
|
9102
9134
|
const displayResults = computed(
|
|
9103
9135
|
() => {
|
|
9104
9136
|
var _a, _b;
|
|
@@ -9185,8 +9217,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9185
9217
|
ref_key: "panelContainer",
|
|
9186
9218
|
ref: panelContainer
|
|
9187
9219
|
}, [
|
|
9188
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9189
|
-
createBaseVNode("div", _hoisted_2$
|
|
9220
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
9221
|
+
createBaseVNode("div", _hoisted_2$G, [
|
|
9190
9222
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayPanels.value, (panel, index) => {
|
|
9191
9223
|
return openBlock(), createElementBlock("div", {
|
|
9192
9224
|
key: index,
|
|
@@ -9218,13 +9250,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9218
9250
|
], 10, _hoisted_3$v);
|
|
9219
9251
|
}), 128))
|
|
9220
9252
|
]),
|
|
9221
|
-
|
|
9253
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1f, {
|
|
9254
|
+
key: 0,
|
|
9255
|
+
labels: labels.value
|
|
9256
|
+
}, null, 8, ["labels"])) : createCommentVNode("", true),
|
|
9257
|
+
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1i, {
|
|
9258
|
+
key: 1,
|
|
9222
9259
|
labels: labels.value,
|
|
9223
9260
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
9224
9261
|
onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
|
|
9225
|
-
}, null, 8, ["labels", "showTotalCount"])
|
|
9262
|
+
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
9226
9263
|
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
|
|
9227
|
-
createVNode(_sfc_main$
|
|
9264
|
+
createVNode(_sfc_main$1g, {
|
|
9228
9265
|
options: _ctx.options.history,
|
|
9229
9266
|
history: history.value,
|
|
9230
9267
|
onGoToResults: handleGoToResults,
|
|
@@ -9249,9 +9286,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9249
9286
|
const elements = getElements(triggers);
|
|
9250
9287
|
elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
|
|
9251
9288
|
};
|
|
9252
|
-
const _hoisted_1$
|
|
9253
|
-
const _hoisted_2$
|
|
9254
|
-
const _sfc_main$
|
|
9289
|
+
const _hoisted_1$W = { id: "lupa-search-box" };
|
|
9290
|
+
const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
|
|
9291
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
9255
9292
|
__name: "SearchBox",
|
|
9256
9293
|
props: {
|
|
9257
9294
|
options: {},
|
|
@@ -9290,7 +9327,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9290
9327
|
"links",
|
|
9291
9328
|
"options",
|
|
9292
9329
|
"debounce",
|
|
9293
|
-
"showTotalCount"
|
|
9330
|
+
"showTotalCount",
|
|
9331
|
+
"hideMoreResultsButtonOnNoResults",
|
|
9332
|
+
"showNoResultsPanel"
|
|
9294
9333
|
])
|
|
9295
9334
|
);
|
|
9296
9335
|
const searchTriggers = computed(() => {
|
|
@@ -9484,9 +9523,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9484
9523
|
};
|
|
9485
9524
|
return (_ctx, _cache) => {
|
|
9486
9525
|
var _a2;
|
|
9487
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9488
|
-
createBaseVNode("div", _hoisted_2$
|
|
9489
|
-
createVNode(_sfc_main$
|
|
9526
|
+
return openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
9527
|
+
createBaseVNode("div", _hoisted_2$F, [
|
|
9528
|
+
createVNode(_sfc_main$1j, {
|
|
9490
9529
|
options: inputOptions.value,
|
|
9491
9530
|
suggestedValue: suggestedValue.value,
|
|
9492
9531
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -9497,7 +9536,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9497
9536
|
onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
|
|
9498
9537
|
onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
9499
9538
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
9500
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
9539
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$_, {
|
|
9501
9540
|
key: 0,
|
|
9502
9541
|
options: panelOptions.value,
|
|
9503
9542
|
inputValue: inputValue.value,
|
|
@@ -9584,11 +9623,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9584
9623
|
}
|
|
9585
9624
|
return searchParams;
|
|
9586
9625
|
};
|
|
9587
|
-
const _hoisted_1$
|
|
9626
|
+
const _hoisted_1$V = {
|
|
9588
9627
|
key: 0,
|
|
9589
9628
|
id: "lupa-search-results-did-you-mean"
|
|
9590
9629
|
};
|
|
9591
|
-
const _hoisted_2$
|
|
9630
|
+
const _hoisted_2$E = {
|
|
9592
9631
|
key: 0,
|
|
9593
9632
|
"data-cy": "suggested-search-text-label"
|
|
9594
9633
|
};
|
|
@@ -9597,7 +9636,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9597
9636
|
"data-cy": "did-you-mean-label"
|
|
9598
9637
|
};
|
|
9599
9638
|
const _hoisted_4$m = { key: 1 };
|
|
9600
|
-
const _sfc_main$
|
|
9639
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
9601
9640
|
__name: "SearchResultsDidYouMean",
|
|
9602
9641
|
props: {
|
|
9603
9642
|
labels: {}
|
|
@@ -9629,8 +9668,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9629
9668
|
paramStore.goToResults({ searchText, facet });
|
|
9630
9669
|
};
|
|
9631
9670
|
return (_ctx, _cache) => {
|
|
9632
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9633
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9671
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
9672
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
|
|
9634
9673
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
9635
9674
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
9636
9675
|
createBaseVNode("span", {
|
|
@@ -9655,12 +9694,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9655
9694
|
};
|
|
9656
9695
|
}
|
|
9657
9696
|
});
|
|
9658
|
-
const _hoisted_1$
|
|
9697
|
+
const _hoisted_1$U = {
|
|
9659
9698
|
key: 0,
|
|
9660
9699
|
class: "lupa-search-results-summary"
|
|
9661
9700
|
};
|
|
9662
|
-
const _hoisted_2$
|
|
9663
|
-
const _sfc_main$
|
|
9701
|
+
const _hoisted_2$D = ["innerHTML"];
|
|
9702
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
9664
9703
|
__name: "SearchResultsSummary",
|
|
9665
9704
|
props: {
|
|
9666
9705
|
label: {},
|
|
@@ -9675,8 +9714,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9675
9714
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
9676
9715
|
});
|
|
9677
9716
|
return (_ctx, _cache) => {
|
|
9678
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9679
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
9717
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
9718
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$D),
|
|
9680
9719
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
9681
9720
|
key: 0,
|
|
9682
9721
|
class: "lupa-filter-clear",
|
|
@@ -9687,18 +9726,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9687
9726
|
};
|
|
9688
9727
|
}
|
|
9689
9728
|
});
|
|
9690
|
-
const _hoisted_1$
|
|
9729
|
+
const _hoisted_1$T = {
|
|
9691
9730
|
key: 0,
|
|
9692
9731
|
class: "lupa-result-page-title",
|
|
9693
9732
|
"data-cy": "lupa-result-page-title"
|
|
9694
9733
|
};
|
|
9695
|
-
const _hoisted_2$
|
|
9734
|
+
const _hoisted_2$C = { key: 0 };
|
|
9696
9735
|
const _hoisted_3$t = {
|
|
9697
9736
|
key: 1,
|
|
9698
9737
|
class: "lupa-results-total-count"
|
|
9699
9738
|
};
|
|
9700
9739
|
const _hoisted_4$l = ["innerHTML"];
|
|
9701
|
-
const _sfc_main$
|
|
9740
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
9702
9741
|
__name: "SearchResultsTitle",
|
|
9703
9742
|
props: {
|
|
9704
9743
|
options: {},
|
|
@@ -9733,12 +9772,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9733
9772
|
});
|
|
9734
9773
|
return (_ctx, _cache) => {
|
|
9735
9774
|
return openBlock(), createElementBlock("div", null, [
|
|
9736
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
9775
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$T, [
|
|
9737
9776
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
9738
|
-
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9777
|
+
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
9739
9778
|
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
|
|
9740
9779
|
])) : createCommentVNode("", true),
|
|
9741
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
9780
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$X, {
|
|
9742
9781
|
key: 1,
|
|
9743
9782
|
label: summaryLabel.value
|
|
9744
9783
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -9751,8 +9790,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9751
9790
|
};
|
|
9752
9791
|
}
|
|
9753
9792
|
});
|
|
9754
|
-
const _hoisted_1$
|
|
9755
|
-
const _hoisted_2$
|
|
9793
|
+
const _hoisted_1$S = { class: "lupa-search-result-filter-value" };
|
|
9794
|
+
const _hoisted_2$B = {
|
|
9756
9795
|
class: "lupa-current-filter-label",
|
|
9757
9796
|
"data-cy": "lupa-current-filter-label"
|
|
9758
9797
|
};
|
|
@@ -9760,7 +9799,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9760
9799
|
class: "lupa-current-filter-value",
|
|
9761
9800
|
"data-cy": "lupa-current-filter-value"
|
|
9762
9801
|
};
|
|
9763
|
-
const _sfc_main$
|
|
9802
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
9764
9803
|
__name: "CurrentFilterDisplay",
|
|
9765
9804
|
props: {
|
|
9766
9805
|
filter: {}
|
|
@@ -9772,19 +9811,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9772
9811
|
emit2("remove", { filter: props.filter });
|
|
9773
9812
|
};
|
|
9774
9813
|
return (_ctx, _cache) => {
|
|
9775
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9814
|
+
return openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
9776
9815
|
createBaseVNode("div", {
|
|
9777
9816
|
class: "lupa-current-filter-action",
|
|
9778
9817
|
onClick: handleClick
|
|
9779
9818
|
}, "⨉"),
|
|
9780
|
-
createBaseVNode("div", _hoisted_2$
|
|
9819
|
+
createBaseVNode("div", _hoisted_2$B, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
9781
9820
|
createBaseVNode("div", _hoisted_3$s, toDisplayString(_ctx.filter.value), 1)
|
|
9782
9821
|
]);
|
|
9783
9822
|
};
|
|
9784
9823
|
}
|
|
9785
9824
|
});
|
|
9786
|
-
const _hoisted_1$
|
|
9787
|
-
const _hoisted_2$
|
|
9825
|
+
const _hoisted_1$R = { class: "lupa-filter-title-text" };
|
|
9826
|
+
const _hoisted_2$A = {
|
|
9788
9827
|
key: 0,
|
|
9789
9828
|
class: "lupa-filter-count"
|
|
9790
9829
|
};
|
|
@@ -9793,7 +9832,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9793
9832
|
class: "filter-values"
|
|
9794
9833
|
};
|
|
9795
9834
|
const _hoisted_4$k = { class: "lupa-current-filter-list" };
|
|
9796
|
-
const _sfc_main$
|
|
9835
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
9797
9836
|
__name: "CurrentFilters",
|
|
9798
9837
|
props: {
|
|
9799
9838
|
options: {},
|
|
@@ -9848,9 +9887,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9848
9887
|
class: "lupa-current-filter-title",
|
|
9849
9888
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
9850
9889
|
}, [
|
|
9851
|
-
createBaseVNode("div", _hoisted_1$
|
|
9890
|
+
createBaseVNode("div", _hoisted_1$R, [
|
|
9852
9891
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
9853
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9892
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$A, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
9854
9893
|
]),
|
|
9855
9894
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
9856
9895
|
key: 0,
|
|
@@ -9860,7 +9899,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9860
9899
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
|
|
9861
9900
|
createBaseVNode("div", _hoisted_4$k, [
|
|
9862
9901
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
|
|
9863
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9902
|
+
return openBlock(), createBlock(_sfc_main$V, {
|
|
9864
9903
|
key: filter.key + "_" + filter.value,
|
|
9865
9904
|
filter,
|
|
9866
9905
|
onRemove: handleRemove
|
|
@@ -9877,8 +9916,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9877
9916
|
};
|
|
9878
9917
|
}
|
|
9879
9918
|
});
|
|
9880
|
-
const _hoisted_1$
|
|
9881
|
-
const _sfc_main$
|
|
9919
|
+
const _hoisted_1$Q = ["href"];
|
|
9920
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
9882
9921
|
__name: "CategoryFilterItem",
|
|
9883
9922
|
props: {
|
|
9884
9923
|
options: {},
|
|
@@ -9915,20 +9954,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9915
9954
|
"data-cy": "lupa-child-category-item",
|
|
9916
9955
|
href: urlLink.value,
|
|
9917
9956
|
onClick: handleNavigation
|
|
9918
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
9957
|
+
}, toDisplayString(title.value), 9, _hoisted_1$Q)
|
|
9919
9958
|
], 2);
|
|
9920
9959
|
};
|
|
9921
9960
|
}
|
|
9922
9961
|
});
|
|
9923
|
-
const _hoisted_1$
|
|
9962
|
+
const _hoisted_1$P = {
|
|
9924
9963
|
class: "lupa-category-filter",
|
|
9925
9964
|
"data-cy": "lupa-category-filter"
|
|
9926
9965
|
};
|
|
9927
|
-
const _hoisted_2$
|
|
9966
|
+
const _hoisted_2$z = { class: "lupa-category-back" };
|
|
9928
9967
|
const _hoisted_3$q = ["href"];
|
|
9929
9968
|
const _hoisted_4$j = ["href"];
|
|
9930
9969
|
const _hoisted_5$c = { class: "lupa-child-category-list" };
|
|
9931
|
-
const _sfc_main$
|
|
9970
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
9932
9971
|
__name: "CategoryFilter",
|
|
9933
9972
|
props: {
|
|
9934
9973
|
options: {}
|
|
@@ -10014,8 +10053,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10014
10053
|
};
|
|
10015
10054
|
__expose({ fetch: fetch2 });
|
|
10016
10055
|
return (_ctx, _cache) => {
|
|
10017
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10018
|
-
createBaseVNode("div", _hoisted_2$
|
|
10056
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
10057
|
+
createBaseVNode("div", _hoisted_2$z, [
|
|
10019
10058
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
10020
10059
|
key: 0,
|
|
10021
10060
|
"data-cy": "lupa-category-back",
|
|
@@ -10035,7 +10074,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10035
10074
|
], 2),
|
|
10036
10075
|
createBaseVNode("div", _hoisted_5$c, [
|
|
10037
10076
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
10038
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10077
|
+
return openBlock(), createBlock(_sfc_main$T, {
|
|
10039
10078
|
key: getCategoryKey(child),
|
|
10040
10079
|
item: child,
|
|
10041
10080
|
options: _ctx.options
|
|
@@ -10046,11 +10085,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10046
10085
|
};
|
|
10047
10086
|
}
|
|
10048
10087
|
});
|
|
10049
|
-
const _hoisted_1$
|
|
10088
|
+
const _hoisted_1$O = {
|
|
10050
10089
|
class: "lupa-search-result-facet-term-values",
|
|
10051
10090
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
10052
10091
|
};
|
|
10053
|
-
const _hoisted_2$
|
|
10092
|
+
const _hoisted_2$y = ["placeholder"];
|
|
10054
10093
|
const _hoisted_3$p = { class: "lupa-terms-list" };
|
|
10055
10094
|
const _hoisted_4$i = ["onClick"];
|
|
10056
10095
|
const _hoisted_5$b = { class: "lupa-term-checkbox-wrapper" };
|
|
@@ -10062,7 +10101,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10062
10101
|
};
|
|
10063
10102
|
const _hoisted_9$1 = { key: 0 };
|
|
10064
10103
|
const _hoisted_10$1 = { key: 1 };
|
|
10065
|
-
const _sfc_main$
|
|
10104
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
10066
10105
|
__name: "TermFacet",
|
|
10067
10106
|
props: {
|
|
10068
10107
|
options: {},
|
|
@@ -10131,14 +10170,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10131
10170
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
10132
10171
|
};
|
|
10133
10172
|
return (_ctx, _cache) => {
|
|
10134
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10173
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
10135
10174
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
10136
10175
|
key: 0,
|
|
10137
10176
|
class: "lupa-term-filter",
|
|
10138
10177
|
"data-cy": "lupa-term-filter",
|
|
10139
10178
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
10140
10179
|
placeholder: _ctx.options.labels.facetFilter
|
|
10141
|
-
}, null, 8, _hoisted_2$
|
|
10180
|
+
}, null, 8, _hoisted_2$y)), [
|
|
10142
10181
|
[vModelText, termFilter.value]
|
|
10143
10182
|
]) : createCommentVNode("", true),
|
|
10144
10183
|
createBaseVNode("div", _hoisted_3$p, [
|
|
@@ -11149,8 +11188,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11149
11188
|
m.render = function(e, t, r, i, n, o) {
|
|
11150
11189
|
return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
|
|
11151
11190
|
}, m.__file = "src/Slider.vue";
|
|
11152
|
-
const _hoisted_1$
|
|
11153
|
-
const _hoisted_2$
|
|
11191
|
+
const _hoisted_1$N = { class: "lupa-search-result-facet-stats-values" };
|
|
11192
|
+
const _hoisted_2$x = {
|
|
11154
11193
|
key: 0,
|
|
11155
11194
|
class: "lupa-stats-facet-summary"
|
|
11156
11195
|
};
|
|
@@ -11177,7 +11216,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11177
11216
|
key: 2,
|
|
11178
11217
|
class: "lupa-stats-slider-wrapper"
|
|
11179
11218
|
};
|
|
11180
|
-
const _sfc_main$
|
|
11219
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
11181
11220
|
__name: "StatsFacet",
|
|
11182
11221
|
props: {
|
|
11183
11222
|
options: {},
|
|
@@ -11325,8 +11364,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11325
11364
|
innerSliderRange.value = value;
|
|
11326
11365
|
};
|
|
11327
11366
|
return (_ctx, _cache) => {
|
|
11328
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11329
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11367
|
+
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
11368
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
|
|
11330
11369
|
createBaseVNode("div", null, [
|
|
11331
11370
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
11332
11371
|
createBaseVNode("div", _hoisted_5$a, [
|
|
@@ -11389,8 +11428,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11389
11428
|
};
|
|
11390
11429
|
}
|
|
11391
11430
|
});
|
|
11392
|
-
const _hoisted_1$
|
|
11393
|
-
const _hoisted_2$
|
|
11431
|
+
const _hoisted_1$M = { class: "lupa-term-checkbox-wrapper" };
|
|
11432
|
+
const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
|
|
11394
11433
|
const _hoisted_3$n = { class: "lupa-term-label" };
|
|
11395
11434
|
const _hoisted_4$g = {
|
|
11396
11435
|
key: 0,
|
|
@@ -11400,7 +11439,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11400
11439
|
key: 0,
|
|
11401
11440
|
class: "lupa-facet-level"
|
|
11402
11441
|
};
|
|
11403
|
-
const _sfc_main$
|
|
11442
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
11404
11443
|
__name: "HierarchyFacetLevel",
|
|
11405
11444
|
props: {
|
|
11406
11445
|
options: {},
|
|
@@ -11446,12 +11485,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11446
11485
|
"data-cy": "lupa-facet-term",
|
|
11447
11486
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
11448
11487
|
}, [
|
|
11449
|
-
createBaseVNode("div", _hoisted_1$
|
|
11488
|
+
createBaseVNode("div", _hoisted_1$M, [
|
|
11450
11489
|
createBaseVNode("span", {
|
|
11451
11490
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
11452
11491
|
}, null, 2)
|
|
11453
11492
|
]),
|
|
11454
|
-
createBaseVNode("div", _hoisted_2$
|
|
11493
|
+
createBaseVNode("div", _hoisted_2$w, [
|
|
11455
11494
|
createBaseVNode("span", _hoisted_3$n, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
11456
11495
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
11457
11496
|
])
|
|
@@ -11472,13 +11511,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11472
11511
|
};
|
|
11473
11512
|
}
|
|
11474
11513
|
});
|
|
11475
|
-
const _hoisted_1$
|
|
11514
|
+
const _hoisted_1$L = {
|
|
11476
11515
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
11477
11516
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
11478
11517
|
};
|
|
11479
|
-
const _hoisted_2$
|
|
11518
|
+
const _hoisted_2$v = { key: 0 };
|
|
11480
11519
|
const _hoisted_3$m = ["placeholder"];
|
|
11481
|
-
const _sfc_main$
|
|
11520
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
11482
11521
|
__name: "HierarchyFacet",
|
|
11483
11522
|
props: {
|
|
11484
11523
|
options: {},
|
|
@@ -11528,8 +11567,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11528
11567
|
showAll.value = true;
|
|
11529
11568
|
};
|
|
11530
11569
|
return (_ctx, _cache) => {
|
|
11531
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11532
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11570
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
11571
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
|
|
11533
11572
|
withDirectives(createBaseVNode("input", {
|
|
11534
11573
|
class: "lupa-term-filter",
|
|
11535
11574
|
"data-cy": "lupa-term-filter",
|
|
@@ -11540,7 +11579,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11540
11579
|
])
|
|
11541
11580
|
])) : createCommentVNode("", true),
|
|
11542
11581
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
11543
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11582
|
+
return openBlock(), createBlock(_sfc_main$P, {
|
|
11544
11583
|
key: item.title,
|
|
11545
11584
|
options: _ctx.options,
|
|
11546
11585
|
item,
|
|
@@ -11560,20 +11599,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11560
11599
|
};
|
|
11561
11600
|
}
|
|
11562
11601
|
});
|
|
11563
|
-
const _hoisted_1$
|
|
11564
|
-
const _hoisted_2$
|
|
11602
|
+
const _hoisted_1$K = { class: "lupa-facet-label-text" };
|
|
11603
|
+
const _hoisted_2$u = {
|
|
11565
11604
|
key: 0,
|
|
11566
11605
|
class: "lupa-facet-content",
|
|
11567
11606
|
"data-cy": "lupa-facet-content"
|
|
11568
11607
|
};
|
|
11569
11608
|
const __default__$2 = {
|
|
11570
11609
|
components: {
|
|
11571
|
-
TermFacet: _sfc_main$
|
|
11572
|
-
StatsFacet: _sfc_main$
|
|
11573
|
-
HierarchyFacet: _sfc_main$
|
|
11610
|
+
TermFacet: _sfc_main$R,
|
|
11611
|
+
StatsFacet: _sfc_main$Q,
|
|
11612
|
+
HierarchyFacet: _sfc_main$O
|
|
11574
11613
|
}
|
|
11575
11614
|
};
|
|
11576
|
-
const _sfc_main$
|
|
11615
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
11577
11616
|
__name: "FacetDisplay",
|
|
11578
11617
|
props: {
|
|
11579
11618
|
options: {},
|
|
@@ -11684,12 +11723,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11684
11723
|
"data-cy": "lupa-search-result-facet-label",
|
|
11685
11724
|
onClick: toggleFacet
|
|
11686
11725
|
}, [
|
|
11687
|
-
createBaseVNode("div", _hoisted_1$
|
|
11726
|
+
createBaseVNode("div", _hoisted_1$K, toDisplayString(facet.value.label), 1),
|
|
11688
11727
|
createBaseVNode("div", {
|
|
11689
11728
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
11690
11729
|
}, null, 2)
|
|
11691
11730
|
], 2),
|
|
11692
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11731
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
|
|
11693
11732
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
11694
11733
|
facet: facet.value,
|
|
11695
11734
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -11707,12 +11746,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11707
11746
|
};
|
|
11708
11747
|
}
|
|
11709
11748
|
}));
|
|
11710
|
-
const _hoisted_1$
|
|
11711
|
-
const _hoisted_2$
|
|
11749
|
+
const _hoisted_1$J = { class: "lupa-search-result-facet-section" };
|
|
11750
|
+
const _hoisted_2$t = {
|
|
11712
11751
|
key: 0,
|
|
11713
11752
|
class: "lupa-facets-title"
|
|
11714
11753
|
};
|
|
11715
|
-
const _sfc_main$
|
|
11754
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
11716
11755
|
__name: "FacetList",
|
|
11717
11756
|
props: {
|
|
11718
11757
|
options: {},
|
|
@@ -11746,14 +11785,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11746
11785
|
};
|
|
11747
11786
|
return (_ctx, _cache) => {
|
|
11748
11787
|
var _a;
|
|
11749
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11750
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11788
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
11789
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
11751
11790
|
createBaseVNode("div", {
|
|
11752
11791
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
11753
11792
|
}, [
|
|
11754
11793
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
11755
11794
|
var _a2;
|
|
11756
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11795
|
+
return openBlock(), createBlock(_sfc_main$N, {
|
|
11757
11796
|
key: facet.key,
|
|
11758
11797
|
facet,
|
|
11759
11798
|
currentFilters: currentFiltersValue.value,
|
|
@@ -11768,8 +11807,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11768
11807
|
};
|
|
11769
11808
|
}
|
|
11770
11809
|
});
|
|
11771
|
-
const _hoisted_1$
|
|
11772
|
-
const _sfc_main$
|
|
11810
|
+
const _hoisted_1$I = { class: "lupa-search-result-facets" };
|
|
11811
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
11773
11812
|
__name: "Facets",
|
|
11774
11813
|
props: {
|
|
11775
11814
|
options: {},
|
|
@@ -11815,8 +11854,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11815
11854
|
paramStore.removeParameters({ paramsToRemove: [param] });
|
|
11816
11855
|
};
|
|
11817
11856
|
return (_ctx, _cache) => {
|
|
11818
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11819
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
11857
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
11858
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$M, {
|
|
11820
11859
|
key: 0,
|
|
11821
11860
|
options: _ctx.options,
|
|
11822
11861
|
facets: regularFacets.value,
|
|
@@ -11830,11 +11869,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11830
11869
|
};
|
|
11831
11870
|
}
|
|
11832
11871
|
});
|
|
11833
|
-
const _hoisted_1$
|
|
11872
|
+
const _hoisted_1$H = {
|
|
11834
11873
|
id: "lupa-search-result-filters",
|
|
11835
11874
|
class: "lupa-search-result-filters"
|
|
11836
11875
|
};
|
|
11837
|
-
const _sfc_main$
|
|
11876
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
11838
11877
|
__name: "SearchResultsFilters",
|
|
11839
11878
|
props: {
|
|
11840
11879
|
options: {},
|
|
@@ -11863,19 +11902,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11863
11902
|
__expose({ fetch: fetch2 });
|
|
11864
11903
|
return (_ctx, _cache) => {
|
|
11865
11904
|
var _a;
|
|
11866
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11867
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
11905
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
11906
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$U, {
|
|
11868
11907
|
key: 0,
|
|
11869
11908
|
options: _ctx.options.currentFilters,
|
|
11870
11909
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
11871
11910
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
11872
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
11911
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$S, {
|
|
11873
11912
|
key: 1,
|
|
11874
11913
|
options: _ctx.options.categories,
|
|
11875
11914
|
ref_key: "categoryFilters",
|
|
11876
11915
|
ref: categoryFilters
|
|
11877
11916
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
11878
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
11917
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
|
|
11879
11918
|
key: 2,
|
|
11880
11919
|
options: _ctx.options.facets
|
|
11881
11920
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -11883,11 +11922,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11883
11922
|
};
|
|
11884
11923
|
}
|
|
11885
11924
|
});
|
|
11886
|
-
const _hoisted_1$
|
|
11925
|
+
const _hoisted_1$G = {
|
|
11887
11926
|
key: 0,
|
|
11888
11927
|
class: "lupa-mobile-filter-sidebar"
|
|
11889
11928
|
};
|
|
11890
|
-
const _hoisted_2$
|
|
11929
|
+
const _hoisted_2$s = ["onClick"];
|
|
11891
11930
|
const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
|
|
11892
11931
|
const _hoisted_4$f = { class: "lupa-sidebar-top" };
|
|
11893
11932
|
const _hoisted_5$8 = { class: "lupa-sidebar-title" };
|
|
@@ -11896,7 +11935,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11896
11935
|
class: "lupa-sidebar-filter-count"
|
|
11897
11936
|
};
|
|
11898
11937
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
11899
|
-
const _sfc_main$
|
|
11938
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
11900
11939
|
__name: "MobileFilterSidebar",
|
|
11901
11940
|
props: {
|
|
11902
11941
|
options: {}
|
|
@@ -11922,11 +11961,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11922
11961
|
searchResultStore.setSidebarState({ visible: false });
|
|
11923
11962
|
};
|
|
11924
11963
|
return (_ctx, _cache) => {
|
|
11925
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11964
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
11926
11965
|
createBaseVNode("div", {
|
|
11927
11966
|
class: "lupa-sidebar-close",
|
|
11928
11967
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
11929
|
-
}, null, 8, _hoisted_2$
|
|
11968
|
+
}, null, 8, _hoisted_2$s),
|
|
11930
11969
|
createBaseVNode("div", _hoisted_3$l, [
|
|
11931
11970
|
createBaseVNode("div", _hoisted_4$f, [
|
|
11932
11971
|
createBaseVNode("div", _hoisted_5$8, [
|
|
@@ -11939,7 +11978,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11939
11978
|
})
|
|
11940
11979
|
]),
|
|
11941
11980
|
createBaseVNode("div", _hoisted_7$4, [
|
|
11942
|
-
createVNode(_sfc_main$
|
|
11981
|
+
createVNode(_sfc_main$K, {
|
|
11943
11982
|
options: _ctx.options,
|
|
11944
11983
|
expandable: isActiveFiltersExpanded.value
|
|
11945
11984
|
}, null, 8, ["options", "expandable"])
|
|
@@ -11949,14 +11988,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11949
11988
|
};
|
|
11950
11989
|
}
|
|
11951
11990
|
});
|
|
11952
|
-
const _hoisted_1$
|
|
11953
|
-
const _hoisted_2$
|
|
11991
|
+
const _hoisted_1$F = { id: "lupa-search-results-breadcrumbs" };
|
|
11992
|
+
const _hoisted_2$r = ["href", "onClick"];
|
|
11954
11993
|
const _hoisted_3$k = {
|
|
11955
11994
|
key: 1,
|
|
11956
11995
|
class: "lupa-search-results-breadcrumb-text"
|
|
11957
11996
|
};
|
|
11958
11997
|
const _hoisted_4$e = { key: 2 };
|
|
11959
|
-
const _sfc_main$
|
|
11998
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
11960
11999
|
__name: "SearchResultsBreadcrumbs",
|
|
11961
12000
|
props: {
|
|
11962
12001
|
breadcrumbs: {}
|
|
@@ -11981,7 +12020,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11981
12020
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
11982
12021
|
};
|
|
11983
12022
|
return (_ctx, _cache) => {
|
|
11984
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12023
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
11985
12024
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
11986
12025
|
return openBlock(), createElementBlock("span", {
|
|
11987
12026
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -11995,7 +12034,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11995
12034
|
var _a;
|
|
11996
12035
|
return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
11997
12036
|
}
|
|
11998
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
12037
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$r)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
11999
12038
|
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
|
|
12000
12039
|
]);
|
|
12001
12040
|
}), 128))
|
|
@@ -12003,11 +12042,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12003
12042
|
};
|
|
12004
12043
|
}
|
|
12005
12044
|
});
|
|
12006
|
-
const _hoisted_1$
|
|
12045
|
+
const _hoisted_1$E = {
|
|
12007
12046
|
id: "lupa-search-result-filters",
|
|
12008
12047
|
class: "lupa-search-result-filters"
|
|
12009
12048
|
};
|
|
12010
|
-
const _sfc_main$
|
|
12049
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
12011
12050
|
__name: "FiltersTopDropdown",
|
|
12012
12051
|
props: {
|
|
12013
12052
|
options: {}
|
|
@@ -12015,8 +12054,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12015
12054
|
setup(__props) {
|
|
12016
12055
|
return (_ctx, _cache) => {
|
|
12017
12056
|
var _a;
|
|
12018
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12019
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
12057
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
12058
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
|
|
12020
12059
|
key: 0,
|
|
12021
12060
|
options: _ctx.options.facets,
|
|
12022
12061
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -12026,8 +12065,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12026
12065
|
};
|
|
12027
12066
|
}
|
|
12028
12067
|
});
|
|
12029
|
-
const _hoisted_1$
|
|
12030
|
-
const _sfc_main$
|
|
12068
|
+
const _hoisted_1$D = { id: "lupa-search-results-layout-selection" };
|
|
12069
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
12031
12070
|
__name: "SearchResultsLayoutSelection",
|
|
12032
12071
|
setup(__props) {
|
|
12033
12072
|
const searchResultStore = useSearchResultStore();
|
|
@@ -12038,7 +12077,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12038
12077
|
searchResultStore.setLayout(layout2);
|
|
12039
12078
|
};
|
|
12040
12079
|
return (_ctx, _cache) => {
|
|
12041
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12080
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
12042
12081
|
createBaseVNode("div", {
|
|
12043
12082
|
class: normalizeClass([
|
|
12044
12083
|
"lupa-layout-selection-grid",
|
|
@@ -12060,11 +12099,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12060
12099
|
};
|
|
12061
12100
|
}
|
|
12062
12101
|
});
|
|
12063
|
-
const _hoisted_1$
|
|
12102
|
+
const _hoisted_1$C = {
|
|
12064
12103
|
key: 0,
|
|
12065
12104
|
class: "lupa-mobile-toggle-filter-count"
|
|
12066
12105
|
};
|
|
12067
|
-
const _sfc_main$
|
|
12106
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
12068
12107
|
__name: "SearchResultsMobileToggle",
|
|
12069
12108
|
props: {
|
|
12070
12109
|
label: {},
|
|
@@ -12082,17 +12121,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12082
12121
|
onClick: handleMobileToggle
|
|
12083
12122
|
}, [
|
|
12084
12123
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
12085
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
12124
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$C, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
12086
12125
|
], 2);
|
|
12087
12126
|
};
|
|
12088
12127
|
}
|
|
12089
12128
|
});
|
|
12090
|
-
const _hoisted_1$
|
|
12129
|
+
const _hoisted_1$B = {
|
|
12091
12130
|
key: 0,
|
|
12092
12131
|
id: "lupa-search-results-page-select",
|
|
12093
12132
|
"data-cy": "lupa-search-results-page-select"
|
|
12094
12133
|
};
|
|
12095
|
-
const _hoisted_2$
|
|
12134
|
+
const _hoisted_2$q = {
|
|
12096
12135
|
key: 0,
|
|
12097
12136
|
class: "lupa-page-number-separator"
|
|
12098
12137
|
};
|
|
@@ -12101,7 +12140,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12101
12140
|
key: 0,
|
|
12102
12141
|
class: "lupa-page-number-separator"
|
|
12103
12142
|
};
|
|
12104
|
-
const _sfc_main$
|
|
12143
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
12105
12144
|
__name: "SearchResultsPageSelect",
|
|
12106
12145
|
props: {
|
|
12107
12146
|
lastPageLabel: {},
|
|
@@ -12163,7 +12202,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12163
12202
|
}
|
|
12164
12203
|
};
|
|
12165
12204
|
return (_ctx, _cache) => {
|
|
12166
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
12205
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
12167
12206
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
12168
12207
|
key: 0,
|
|
12169
12208
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -12174,7 +12213,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12174
12213
|
class: "lupa-page-number lupa-page-number-first",
|
|
12175
12214
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
12176
12215
|
}, " 1 "),
|
|
12177
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12216
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$q, "...")) : createCommentVNode("", true)
|
|
12178
12217
|
], 64)) : createCommentVNode("", true),
|
|
12179
12218
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
12180
12219
|
return openBlock(), createElementBlock("div", {
|
|
@@ -12207,13 +12246,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12207
12246
|
};
|
|
12208
12247
|
}
|
|
12209
12248
|
});
|
|
12210
|
-
const _hoisted_1$
|
|
12249
|
+
const _hoisted_1$A = {
|
|
12211
12250
|
id: "lupa-search-results-page-size",
|
|
12212
12251
|
"data-cy": "lupa-search-results-page-size"
|
|
12213
12252
|
};
|
|
12214
|
-
const _hoisted_2$
|
|
12253
|
+
const _hoisted_2$p = { id: "lupa-select" };
|
|
12215
12254
|
const _hoisted_3$i = { class: "lupa-select-label" };
|
|
12216
|
-
const _sfc_main$
|
|
12255
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
12217
12256
|
__name: "SearchResultsPageSize",
|
|
12218
12257
|
props: {
|
|
12219
12258
|
label: {},
|
|
@@ -12230,8 +12269,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12230
12269
|
});
|
|
12231
12270
|
};
|
|
12232
12271
|
return (_ctx, _cache) => {
|
|
12233
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12234
|
-
createBaseVNode("div", _hoisted_2$
|
|
12272
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
12273
|
+
createBaseVNode("div", _hoisted_2$p, [
|
|
12235
12274
|
createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.label), 1),
|
|
12236
12275
|
createBaseVNode("select", {
|
|
12237
12276
|
class: "lupa-select-dropdown",
|
|
@@ -12249,14 +12288,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12249
12288
|
};
|
|
12250
12289
|
}
|
|
12251
12290
|
});
|
|
12252
|
-
const _hoisted_1$
|
|
12291
|
+
const _hoisted_1$z = {
|
|
12253
12292
|
id: "lupa-search-results-sort",
|
|
12254
12293
|
class: "lupa-search-results-sort"
|
|
12255
12294
|
};
|
|
12256
|
-
const _hoisted_2$
|
|
12295
|
+
const _hoisted_2$o = { id: "lupa-select" };
|
|
12257
12296
|
const _hoisted_3$h = { class: "lupa-select-label" };
|
|
12258
12297
|
const _hoisted_4$c = ["value"];
|
|
12259
|
-
const _sfc_main$
|
|
12298
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
12260
12299
|
__name: "SearchResultsSort",
|
|
12261
12300
|
props: {
|
|
12262
12301
|
options: {},
|
|
@@ -12303,8 +12342,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12303
12342
|
previousKey.value = selectedKey.value;
|
|
12304
12343
|
};
|
|
12305
12344
|
return (_ctx, _cache) => {
|
|
12306
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12307
|
-
createBaseVNode("div", _hoisted_2$
|
|
12345
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
12346
|
+
createBaseVNode("div", _hoisted_2$o, [
|
|
12308
12347
|
createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
|
|
12309
12348
|
withDirectives(createBaseVNode("select", {
|
|
12310
12349
|
class: "lupa-select-dropdown",
|
|
@@ -12327,14 +12366,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12327
12366
|
};
|
|
12328
12367
|
}
|
|
12329
12368
|
});
|
|
12330
|
-
const _hoisted_1$
|
|
12331
|
-
const _hoisted_2$
|
|
12369
|
+
const _hoisted_1$y = { class: "lupa-toolbar-left" };
|
|
12370
|
+
const _hoisted_2$n = { key: 1 };
|
|
12332
12371
|
const _hoisted_3$g = { key: 3 };
|
|
12333
12372
|
const _hoisted_4$b = { key: 5 };
|
|
12334
12373
|
const _hoisted_5$7 = { class: "lupa-toolbar-right" };
|
|
12335
12374
|
const _hoisted_6$4 = { key: 1 };
|
|
12336
12375
|
const _hoisted_7$3 = { key: 3 };
|
|
12337
|
-
const _sfc_main$
|
|
12376
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
12338
12377
|
__name: "SearchResultsToolbar",
|
|
12339
12378
|
props: {
|
|
12340
12379
|
options: {},
|
|
@@ -12433,15 +12472,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12433
12472
|
id: "lupa-search-results-toolbar",
|
|
12434
12473
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
12435
12474
|
}, [
|
|
12436
|
-
createBaseVNode("div", _hoisted_1$
|
|
12437
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
12438
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
12475
|
+
createBaseVNode("div", _hoisted_1$y, [
|
|
12476
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$G, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$n)),
|
|
12477
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$X, {
|
|
12439
12478
|
key: 2,
|
|
12440
12479
|
label: searchSummaryLabel.value,
|
|
12441
12480
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
12442
12481
|
onClear: handleClearAll
|
|
12443
12482
|
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
|
|
12444
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
12483
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
|
|
12445
12484
|
key: 4,
|
|
12446
12485
|
options: paginationOptions.value.pageSelect,
|
|
12447
12486
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
@@ -12449,16 +12488,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12449
12488
|
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$b))
|
|
12450
12489
|
]),
|
|
12451
12490
|
createBaseVNode("div", _hoisted_5$7, [
|
|
12452
|
-
createVNode(_sfc_main$
|
|
12491
|
+
createVNode(_sfc_main$F, {
|
|
12453
12492
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
12454
12493
|
"show-filter-count": showMobileFilterCount.value
|
|
12455
12494
|
}, null, 8, ["label", "show-filter-count"]),
|
|
12456
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
12495
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$D, {
|
|
12457
12496
|
key: 0,
|
|
12458
12497
|
options: paginationOptions.value.pageSize,
|
|
12459
12498
|
label: paginationOptions.value.labels.pageSize
|
|
12460
12499
|
}, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$4)),
|
|
12461
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
12500
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$C, {
|
|
12462
12501
|
key: 2,
|
|
12463
12502
|
options: sortOptions.value,
|
|
12464
12503
|
callbacks: callbacks.value
|
|
@@ -12468,14 +12507,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12468
12507
|
};
|
|
12469
12508
|
}
|
|
12470
12509
|
});
|
|
12471
|
-
const _hoisted_1$
|
|
12472
|
-
const _hoisted_2$
|
|
12510
|
+
const _hoisted_1$x = { class: "lupa-badge-title" };
|
|
12511
|
+
const _hoisted_2$m = ["src"];
|
|
12473
12512
|
const _hoisted_3$f = { key: 1 };
|
|
12474
12513
|
const _hoisted_4$a = {
|
|
12475
12514
|
key: 0,
|
|
12476
12515
|
class: "lupa-badge-full-text"
|
|
12477
12516
|
};
|
|
12478
|
-
const _sfc_main$
|
|
12517
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
12479
12518
|
__name: "SearchResultGeneratedBadge",
|
|
12480
12519
|
props: {
|
|
12481
12520
|
options: {},
|
|
@@ -12508,11 +12547,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12508
12547
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
12509
12548
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
12510
12549
|
}, [
|
|
12511
|
-
createBaseVNode("span", _hoisted_1$
|
|
12550
|
+
createBaseVNode("span", _hoisted_1$x, [
|
|
12512
12551
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
12513
12552
|
key: 0,
|
|
12514
12553
|
src: image.value
|
|
12515
|
-
}, null, 8, _hoisted_2$
|
|
12554
|
+
}, null, 8, _hoisted_2$m)) : createCommentVNode("", true),
|
|
12516
12555
|
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
12517
12556
|
]),
|
|
12518
12557
|
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$a, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
@@ -12520,8 +12559,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12520
12559
|
};
|
|
12521
12560
|
}
|
|
12522
12561
|
});
|
|
12523
|
-
const _hoisted_1$
|
|
12524
|
-
const _sfc_main$
|
|
12562
|
+
const _hoisted_1$w = { class: "lupa-generated-badges" };
|
|
12563
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
12525
12564
|
__name: "SearchResultGeneratedBadges",
|
|
12526
12565
|
props: {
|
|
12527
12566
|
options: {}
|
|
@@ -12547,9 +12586,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12547
12586
|
})).filter((b) => Boolean(b.id));
|
|
12548
12587
|
});
|
|
12549
12588
|
return (_ctx, _cache) => {
|
|
12550
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12589
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
12551
12590
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
12552
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12591
|
+
return openBlock(), createBlock(_sfc_main$A, {
|
|
12553
12592
|
key: badge.id,
|
|
12554
12593
|
badge,
|
|
12555
12594
|
options: _ctx.options
|
|
@@ -12559,8 +12598,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12559
12598
|
};
|
|
12560
12599
|
}
|
|
12561
12600
|
});
|
|
12562
|
-
const _hoisted_1$
|
|
12563
|
-
const _sfc_main$
|
|
12601
|
+
const _hoisted_1$v = ["innerHTML"];
|
|
12602
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
12564
12603
|
__name: "CustomBadge",
|
|
12565
12604
|
props: {
|
|
12566
12605
|
badge: {}
|
|
@@ -12579,12 +12618,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12579
12618
|
return openBlock(), createElementBlock("div", {
|
|
12580
12619
|
class: normalizeClass(className.value),
|
|
12581
12620
|
innerHTML: text.value
|
|
12582
|
-
}, null, 10, _hoisted_1$
|
|
12621
|
+
}, null, 10, _hoisted_1$v);
|
|
12583
12622
|
};
|
|
12584
12623
|
}
|
|
12585
12624
|
});
|
|
12586
|
-
const _hoisted_1$
|
|
12587
|
-
const _sfc_main$
|
|
12625
|
+
const _hoisted_1$u = { class: "lupa-text-badges" };
|
|
12626
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
12588
12627
|
__name: "TextBadge",
|
|
12589
12628
|
props: {
|
|
12590
12629
|
badge: {}
|
|
@@ -12599,7 +12638,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12599
12638
|
return badges.value.slice(0, props.badge.maxItems);
|
|
12600
12639
|
});
|
|
12601
12640
|
return (_ctx, _cache) => {
|
|
12602
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12641
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
12603
12642
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
12604
12643
|
return openBlock(), createElementBlock("div", {
|
|
12605
12644
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -12610,9 +12649,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12610
12649
|
};
|
|
12611
12650
|
}
|
|
12612
12651
|
});
|
|
12613
|
-
const _hoisted_1$
|
|
12614
|
-
const _hoisted_2$
|
|
12615
|
-
const _sfc_main$
|
|
12652
|
+
const _hoisted_1$t = { class: "lupa-image-badges" };
|
|
12653
|
+
const _hoisted_2$l = ["src"];
|
|
12654
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
12616
12655
|
__name: "ImageBadge",
|
|
12617
12656
|
props: {
|
|
12618
12657
|
badge: {}
|
|
@@ -12632,7 +12671,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12632
12671
|
return `${props.badge.rootImageUrl}${src}`;
|
|
12633
12672
|
};
|
|
12634
12673
|
return (_ctx, _cache) => {
|
|
12635
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12674
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
12636
12675
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
12637
12676
|
return openBlock(), createElementBlock("div", {
|
|
12638
12677
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -12640,22 +12679,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12640
12679
|
}, [
|
|
12641
12680
|
createBaseVNode("img", {
|
|
12642
12681
|
src: getImageUrl(item)
|
|
12643
|
-
}, null, 8, _hoisted_2$
|
|
12682
|
+
}, null, 8, _hoisted_2$l)
|
|
12644
12683
|
]);
|
|
12645
12684
|
}), 128))
|
|
12646
12685
|
]);
|
|
12647
12686
|
};
|
|
12648
12687
|
}
|
|
12649
12688
|
});
|
|
12650
|
-
const _hoisted_1$
|
|
12689
|
+
const _hoisted_1$s = { id: "lupa-search-results-badges" };
|
|
12651
12690
|
const __default__$1 = {
|
|
12652
12691
|
components: {
|
|
12653
|
-
CustomBadge: _sfc_main$
|
|
12654
|
-
TextBadge: _sfc_main$
|
|
12655
|
-
ImageBadge: _sfc_main$
|
|
12692
|
+
CustomBadge: _sfc_main$y,
|
|
12693
|
+
TextBadge: _sfc_main$x,
|
|
12694
|
+
ImageBadge: _sfc_main$w
|
|
12656
12695
|
}
|
|
12657
12696
|
};
|
|
12658
|
-
const _sfc_main$
|
|
12697
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
12659
12698
|
__name: "SearchResultsBadgeWrapper",
|
|
12660
12699
|
props: {
|
|
12661
12700
|
position: {},
|
|
@@ -12701,7 +12740,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12701
12740
|
}
|
|
12702
12741
|
};
|
|
12703
12742
|
return (_ctx, _cache) => {
|
|
12704
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12743
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
12705
12744
|
createBaseVNode("div", {
|
|
12706
12745
|
id: "lupa-badges",
|
|
12707
12746
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -12712,7 +12751,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12712
12751
|
badge
|
|
12713
12752
|
}, null, 8, ["badge"]);
|
|
12714
12753
|
}), 128)),
|
|
12715
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
12754
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$z, {
|
|
12716
12755
|
key: 0,
|
|
12717
12756
|
options: _ctx.options
|
|
12718
12757
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -12721,7 +12760,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12721
12760
|
};
|
|
12722
12761
|
}
|
|
12723
12762
|
}));
|
|
12724
|
-
const _sfc_main$
|
|
12763
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
12725
12764
|
__name: "SearchResultsProductImage",
|
|
12726
12765
|
props: {
|
|
12727
12766
|
item: {},
|
|
@@ -12729,7 +12768,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12729
12768
|
},
|
|
12730
12769
|
setup(__props) {
|
|
12731
12770
|
return (_ctx, _cache) => {
|
|
12732
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12771
|
+
return openBlock(), createBlock(_sfc_main$1b, {
|
|
12733
12772
|
item: _ctx.item,
|
|
12734
12773
|
options: _ctx.options,
|
|
12735
12774
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -12738,14 +12777,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12738
12777
|
};
|
|
12739
12778
|
}
|
|
12740
12779
|
});
|
|
12741
|
-
const _hoisted_1$
|
|
12742
|
-
const _hoisted_2$
|
|
12780
|
+
const _hoisted_1$r = ["innerHTML"];
|
|
12781
|
+
const _hoisted_2$k = ["title"];
|
|
12743
12782
|
const _hoisted_3$e = {
|
|
12744
12783
|
key: 0,
|
|
12745
12784
|
class: "lupa-search-results-product-title-text"
|
|
12746
12785
|
};
|
|
12747
12786
|
const _hoisted_4$9 = ["href"];
|
|
12748
|
-
const _sfc_main$
|
|
12787
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
12749
12788
|
__name: "SearchResultsProductTitle",
|
|
12750
12789
|
props: {
|
|
12751
12790
|
item: {},
|
|
@@ -12778,7 +12817,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12778
12817
|
class: "lupa-search-results-product-title",
|
|
12779
12818
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12780
12819
|
innerHTML: title.value
|
|
12781
|
-
}, null, 12, _hoisted_1$
|
|
12820
|
+
}, null, 12, _hoisted_1$r)) : (openBlock(), createElementBlock("div", {
|
|
12782
12821
|
key: 1,
|
|
12783
12822
|
class: "lupa-search-results-product-title",
|
|
12784
12823
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -12791,12 +12830,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12791
12830
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
12792
12831
|
onClick: handleNavigation
|
|
12793
12832
|
}, toDisplayString(title.value), 9, _hoisted_4$9)) : createCommentVNode("", true)
|
|
12794
|
-
], 12, _hoisted_2$
|
|
12833
|
+
], 12, _hoisted_2$k));
|
|
12795
12834
|
};
|
|
12796
12835
|
}
|
|
12797
12836
|
});
|
|
12798
|
-
const _hoisted_1$
|
|
12799
|
-
const _sfc_main$
|
|
12837
|
+
const _hoisted_1$q = ["innerHTML"];
|
|
12838
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
12800
12839
|
__name: "SearchResultsProductDescription",
|
|
12801
12840
|
props: {
|
|
12802
12841
|
item: {},
|
|
@@ -12820,7 +12859,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12820
12859
|
class: "lupa-search-results-product-description",
|
|
12821
12860
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12822
12861
|
innerHTML: description.value
|
|
12823
|
-
}, null, 12, _hoisted_1$
|
|
12862
|
+
}, null, 12, _hoisted_1$q)) : (openBlock(), createElementBlock("div", {
|
|
12824
12863
|
key: 1,
|
|
12825
12864
|
class: "lupa-search-results-product-description",
|
|
12826
12865
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -12828,15 +12867,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12828
12867
|
};
|
|
12829
12868
|
}
|
|
12830
12869
|
});
|
|
12831
|
-
const _hoisted_1$
|
|
12832
|
-
const _hoisted_2$
|
|
12870
|
+
const _hoisted_1$p = { id: "lupa-search-results-rating" };
|
|
12871
|
+
const _hoisted_2$j = { class: "lupa-ratings" };
|
|
12833
12872
|
const _hoisted_3$d = { class: "lupa-ratings-base" };
|
|
12834
12873
|
const _hoisted_4$8 = ["innerHTML"];
|
|
12835
12874
|
const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
|
|
12836
12875
|
const _hoisted_6$3 = ["innerHTML"];
|
|
12837
12876
|
const _hoisted_7$2 = ["href"];
|
|
12838
12877
|
const STAR_COUNT = 5;
|
|
12839
|
-
const _sfc_main$
|
|
12878
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
12840
12879
|
__name: "SearchResultsProductRating",
|
|
12841
12880
|
props: {
|
|
12842
12881
|
item: {},
|
|
@@ -12867,8 +12906,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12867
12906
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
12868
12907
|
});
|
|
12869
12908
|
return (_ctx, _cache) => {
|
|
12870
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12871
|
-
createBaseVNode("div", _hoisted_2$
|
|
12909
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
12910
|
+
createBaseVNode("div", _hoisted_2$j, [
|
|
12872
12911
|
createBaseVNode("div", _hoisted_3$d, [
|
|
12873
12912
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
12874
12913
|
return openBlock(), createElementBlock("div", {
|
|
@@ -12901,11 +12940,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12901
12940
|
};
|
|
12902
12941
|
}
|
|
12903
12942
|
});
|
|
12904
|
-
const _hoisted_1$
|
|
12943
|
+
const _hoisted_1$o = {
|
|
12905
12944
|
class: "lupa-search-results-product-regular-price",
|
|
12906
12945
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
12907
12946
|
};
|
|
12908
|
-
const _sfc_main$
|
|
12947
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
12909
12948
|
__name: "SearchResultsProductRegularPrice",
|
|
12910
12949
|
props: {
|
|
12911
12950
|
item: {},
|
|
@@ -12923,15 +12962,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12923
12962
|
);
|
|
12924
12963
|
});
|
|
12925
12964
|
return (_ctx, _cache) => {
|
|
12926
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12965
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, toDisplayString(price.value), 1);
|
|
12927
12966
|
};
|
|
12928
12967
|
}
|
|
12929
12968
|
});
|
|
12930
|
-
const _hoisted_1$
|
|
12969
|
+
const _hoisted_1$n = {
|
|
12931
12970
|
class: "lupa-search-results-product-price",
|
|
12932
12971
|
"data-cy": "lupa-search-results-product-price"
|
|
12933
12972
|
};
|
|
12934
|
-
const _sfc_main$
|
|
12973
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
12935
12974
|
__name: "SearchResultsProductPrice",
|
|
12936
12975
|
props: {
|
|
12937
12976
|
item: {},
|
|
@@ -12949,16 +12988,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12949
12988
|
);
|
|
12950
12989
|
});
|
|
12951
12990
|
return (_ctx, _cache) => {
|
|
12952
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12991
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
12953
12992
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
12954
12993
|
]);
|
|
12955
12994
|
};
|
|
12956
12995
|
}
|
|
12957
12996
|
});
|
|
12958
|
-
const _hoisted_1$
|
|
12959
|
-
const _hoisted_2$
|
|
12997
|
+
const _hoisted_1$m = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
12998
|
+
const _hoisted_2$i = { class: "lupa-search-results-product-addtocart" };
|
|
12960
12999
|
const _hoisted_3$c = ["onClick", "disabled"];
|
|
12961
|
-
const _sfc_main$
|
|
13000
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
12962
13001
|
__name: "SearchResultsProductAddToCart",
|
|
12963
13002
|
props: {
|
|
12964
13003
|
item: {},
|
|
@@ -12985,8 +13024,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12985
13024
|
loading.value = false;
|
|
12986
13025
|
});
|
|
12987
13026
|
return (_ctx, _cache) => {
|
|
12988
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12989
|
-
createBaseVNode("div", _hoisted_2$
|
|
13027
|
+
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
13028
|
+
createBaseVNode("div", _hoisted_2$i, [
|
|
12990
13029
|
createBaseVNode("button", {
|
|
12991
13030
|
onClick: withModifiers(handleClick, ["stop"]),
|
|
12992
13031
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
@@ -12998,12 +13037,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12998
13037
|
};
|
|
12999
13038
|
}
|
|
13000
13039
|
});
|
|
13001
|
-
const _hoisted_1$
|
|
13002
|
-
const _hoisted_2$
|
|
13040
|
+
const _hoisted_1$l = ["innerHTML"];
|
|
13041
|
+
const _hoisted_2$h = { key: 0 };
|
|
13003
13042
|
const _hoisted_3$b = { key: 1 };
|
|
13004
13043
|
const _hoisted_4$7 = { class: "lupa-search-box-custom-label" };
|
|
13005
13044
|
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
13006
|
-
const _sfc_main$
|
|
13045
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
13007
13046
|
__name: "SearchResultsProductCustom",
|
|
13008
13047
|
props: {
|
|
13009
13048
|
item: {},
|
|
@@ -13041,11 +13080,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13041
13080
|
key: 0,
|
|
13042
13081
|
class: className.value,
|
|
13043
13082
|
innerHTML: text.value
|
|
13044
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
13083
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$l)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
13045
13084
|
key: 1,
|
|
13046
13085
|
class: className.value
|
|
13047
13086
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
13048
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13087
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$h, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$b, [
|
|
13049
13088
|
createBaseVNode("div", _hoisted_4$7, toDisplayString(label.value), 1),
|
|
13050
13089
|
createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
|
|
13051
13090
|
]))
|
|
@@ -13053,8 +13092,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13053
13092
|
};
|
|
13054
13093
|
}
|
|
13055
13094
|
});
|
|
13056
|
-
const _hoisted_1$
|
|
13057
|
-
const _sfc_main$
|
|
13095
|
+
const _hoisted_1$k = ["innerHTML"];
|
|
13096
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
13058
13097
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
13059
13098
|
props: {
|
|
13060
13099
|
item: {},
|
|
@@ -13078,15 +13117,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13078
13117
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
13079
13118
|
class: className.value,
|
|
13080
13119
|
innerHTML: text.value
|
|
13081
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
13120
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$k);
|
|
13082
13121
|
};
|
|
13083
13122
|
}
|
|
13084
13123
|
});
|
|
13085
|
-
const _hoisted_1$
|
|
13086
|
-
const _hoisted_2$
|
|
13124
|
+
const _hoisted_1$j = { id: "lupa-search-results-rating" };
|
|
13125
|
+
const _hoisted_2$g = ["innerHTML"];
|
|
13087
13126
|
const _hoisted_3$a = { class: "lupa-ratings" };
|
|
13088
13127
|
const _hoisted_4$6 = ["href"];
|
|
13089
|
-
const _sfc_main$
|
|
13128
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
13090
13129
|
__name: "SearchResultsProductSingleStarRating",
|
|
13091
13130
|
props: {
|
|
13092
13131
|
item: {},
|
|
@@ -13114,11 +13153,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13114
13153
|
return RATING_STAR_HTML;
|
|
13115
13154
|
});
|
|
13116
13155
|
return (_ctx, _cache) => {
|
|
13117
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13156
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
13118
13157
|
createBaseVNode("div", {
|
|
13119
13158
|
innerHTML: star.value,
|
|
13120
13159
|
class: "lupa-rating lupa-rating-highlighted"
|
|
13121
|
-
}, null, 8, _hoisted_2$
|
|
13160
|
+
}, null, 8, _hoisted_2$g),
|
|
13122
13161
|
createBaseVNode("div", _hoisted_3$a, toDisplayString(rating.value), 1),
|
|
13123
13162
|
createBaseVNode("a", {
|
|
13124
13163
|
href: ratingLink.value,
|
|
@@ -13130,19 +13169,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13130
13169
|
});
|
|
13131
13170
|
const __default__ = {
|
|
13132
13171
|
components: {
|
|
13133
|
-
SearchResultsProductImage: _sfc_main$
|
|
13134
|
-
SearchResultsProductTitle: _sfc_main$
|
|
13135
|
-
SearchResultsProductDescription: _sfc_main$
|
|
13136
|
-
SearchResultsProductRating: _sfc_main$
|
|
13137
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
13138
|
-
SearchResultsProductPrice: _sfc_main$
|
|
13139
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
13140
|
-
SearchResultsProductCustom: _sfc_main$
|
|
13141
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
13142
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
13143
|
-
}
|
|
13144
|
-
};
|
|
13145
|
-
const _sfc_main$
|
|
13172
|
+
SearchResultsProductImage: _sfc_main$u,
|
|
13173
|
+
SearchResultsProductTitle: _sfc_main$t,
|
|
13174
|
+
SearchResultsProductDescription: _sfc_main$s,
|
|
13175
|
+
SearchResultsProductRating: _sfc_main$r,
|
|
13176
|
+
SearchResultsProductRegularPrice: _sfc_main$q,
|
|
13177
|
+
SearchResultsProductPrice: _sfc_main$p,
|
|
13178
|
+
SearchResultsProductAddToCart: _sfc_main$o,
|
|
13179
|
+
SearchResultsProductCustom: _sfc_main$n,
|
|
13180
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$m,
|
|
13181
|
+
SearchResultsProductSingleStarRating: _sfc_main$l
|
|
13182
|
+
}
|
|
13183
|
+
};
|
|
13184
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
13146
13185
|
__name: "SearchResultsProductCardElement",
|
|
13147
13186
|
props: {
|
|
13148
13187
|
item: {},
|
|
@@ -13212,13 +13251,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13212
13251
|
};
|
|
13213
13252
|
}
|
|
13214
13253
|
}));
|
|
13215
|
-
const _hoisted_1$
|
|
13216
|
-
const _hoisted_2$
|
|
13254
|
+
const _hoisted_1$i = ["href"];
|
|
13255
|
+
const _hoisted_2$f = {
|
|
13217
13256
|
key: 0,
|
|
13218
13257
|
class: "lupa-out-of-stock"
|
|
13219
13258
|
};
|
|
13220
13259
|
const _hoisted_3$9 = { class: "lupa-search-result-product-details-section" };
|
|
13221
|
-
const _sfc_main$
|
|
13260
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
13222
13261
|
__name: "SearchResultsProductCard",
|
|
13223
13262
|
props: {
|
|
13224
13263
|
product: {},
|
|
@@ -13363,7 +13402,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13363
13402
|
class: normalizeClass(["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]),
|
|
13364
13403
|
onClick: handleClick
|
|
13365
13404
|
}, [
|
|
13366
|
-
createVNode(_sfc_main$
|
|
13405
|
+
createVNode(_sfc_main$v, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
13367
13406
|
createBaseVNode("div", {
|
|
13368
13407
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
13369
13408
|
}, [
|
|
@@ -13373,7 +13412,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13373
13412
|
onClick: handleNavigation
|
|
13374
13413
|
}, [
|
|
13375
13414
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
13376
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13415
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13377
13416
|
class: "lupa-search-results-product-element",
|
|
13378
13417
|
item: _ctx.product,
|
|
13379
13418
|
element,
|
|
@@ -13383,16 +13422,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13383
13422
|
link: link.value
|
|
13384
13423
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
13385
13424
|
}), 128)),
|
|
13386
|
-
createVNode(_sfc_main$
|
|
13425
|
+
createVNode(_sfc_main$v, {
|
|
13387
13426
|
options: badgesOptions.value,
|
|
13388
13427
|
position: "image",
|
|
13389
13428
|
class: "lupa-image-badges"
|
|
13390
13429
|
}, null, 8, ["options"]),
|
|
13391
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13392
|
-
], 8, _hoisted_1$
|
|
13430
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$f, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
13431
|
+
], 8, _hoisted_1$i),
|
|
13393
13432
|
createBaseVNode("div", _hoisted_3$9, [
|
|
13394
13433
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
13395
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13434
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13396
13435
|
class: "lupa-search-results-product-element",
|
|
13397
13436
|
item: _ctx.product,
|
|
13398
13437
|
element,
|
|
@@ -13410,7 +13449,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13410
13449
|
class: normalizeClass("lupa-element-group-" + group)
|
|
13411
13450
|
}, [
|
|
13412
13451
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
13413
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13452
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13414
13453
|
class: "lupa-search-results-product-element",
|
|
13415
13454
|
item: _ctx.product,
|
|
13416
13455
|
element,
|
|
@@ -13428,11 +13467,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13428
13467
|
};
|
|
13429
13468
|
}
|
|
13430
13469
|
});
|
|
13431
|
-
const _hoisted_1$
|
|
13470
|
+
const _hoisted_1$h = {
|
|
13432
13471
|
id: "lupa-search-results-similar-queries",
|
|
13433
13472
|
"data-cy": "lupa-search-results-similar-queries"
|
|
13434
13473
|
};
|
|
13435
|
-
const _hoisted_2$
|
|
13474
|
+
const _hoisted_2$e = { class: "lupa-similar-queries-label" };
|
|
13436
13475
|
const _hoisted_3$8 = {
|
|
13437
13476
|
class: "lupa-similar-query-label",
|
|
13438
13477
|
"data-cy": "lupa-similar-query-label"
|
|
@@ -13444,7 +13483,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13444
13483
|
class: "lupa-products",
|
|
13445
13484
|
"data-cy": "lupa-products"
|
|
13446
13485
|
};
|
|
13447
|
-
const _sfc_main$
|
|
13486
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
13448
13487
|
__name: "SearchResultsSimilarQueries",
|
|
13449
13488
|
props: {
|
|
13450
13489
|
labels: {},
|
|
@@ -13474,8 +13513,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13474
13513
|
paramsStore.goToResults({ searchText, facet });
|
|
13475
13514
|
};
|
|
13476
13515
|
return (_ctx, _cache) => {
|
|
13477
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13478
|
-
createBaseVNode("div", _hoisted_2$
|
|
13516
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
13517
|
+
createBaseVNode("div", _hoisted_2$e, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
13479
13518
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
13480
13519
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
13481
13520
|
createBaseVNode("div", _hoisted_3$8, [
|
|
@@ -13494,7 +13533,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13494
13533
|
]),
|
|
13495
13534
|
createBaseVNode("div", _hoisted_7$1, [
|
|
13496
13535
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
13497
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13536
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
13498
13537
|
style: normalizeStyle(_ctx.columnSize),
|
|
13499
13538
|
key: getDocumentKey(index2, product),
|
|
13500
13539
|
product,
|
|
@@ -13508,15 +13547,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13508
13547
|
};
|
|
13509
13548
|
}
|
|
13510
13549
|
});
|
|
13511
|
-
const _hoisted_1$
|
|
13550
|
+
const _hoisted_1$g = {
|
|
13512
13551
|
key: 0,
|
|
13513
13552
|
class: "lupa-results-additional-panel"
|
|
13514
13553
|
};
|
|
13515
|
-
const _hoisted_2$
|
|
13554
|
+
const _hoisted_2$d = {
|
|
13516
13555
|
class: "lupa-results-additional-panel-items",
|
|
13517
13556
|
"data-cy": "lupa-results-additional-panel-items"
|
|
13518
13557
|
};
|
|
13519
|
-
const _sfc_main$
|
|
13558
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
13520
13559
|
__name: "AdditionalPanel",
|
|
13521
13560
|
props: {
|
|
13522
13561
|
panel: {},
|
|
@@ -13588,10 +13627,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13588
13627
|
handleQueryChange();
|
|
13589
13628
|
});
|
|
13590
13629
|
return (_ctx, _cache) => {
|
|
13591
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13592
|
-
createBaseVNode("div", _hoisted_2$
|
|
13630
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
13631
|
+
createBaseVNode("div", _hoisted_2$d, [
|
|
13593
13632
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
13594
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13633
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
13595
13634
|
key: index,
|
|
13596
13635
|
product: item,
|
|
13597
13636
|
options: _ctx.panel,
|
|
@@ -13609,11 +13648,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13609
13648
|
};
|
|
13610
13649
|
}
|
|
13611
13650
|
});
|
|
13612
|
-
const _hoisted_1$
|
|
13651
|
+
const _hoisted_1$f = {
|
|
13613
13652
|
key: 0,
|
|
13614
13653
|
class: "lupa-results-additional-panels"
|
|
13615
13654
|
};
|
|
13616
|
-
const _sfc_main$
|
|
13655
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
13617
13656
|
__name: "AdditionalPanels",
|
|
13618
13657
|
props: {
|
|
13619
13658
|
options: {},
|
|
@@ -13630,9 +13669,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13630
13669
|
return locationPanels.value.length > 0;
|
|
13631
13670
|
});
|
|
13632
13671
|
return (_ctx, _cache) => {
|
|
13633
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13672
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
13634
13673
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
13635
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13674
|
+
return openBlock(), createBlock(_sfc_main$h, {
|
|
13636
13675
|
key: panel.queryKey,
|
|
13637
13676
|
panel,
|
|
13638
13677
|
options: _ctx.sdkOptions
|
|
@@ -13649,21 +13688,21 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13649
13688
|
}
|
|
13650
13689
|
return target;
|
|
13651
13690
|
};
|
|
13652
|
-
const _sfc_main$
|
|
13653
|
-
const _hoisted_1$
|
|
13654
|
-
const _hoisted_2$
|
|
13691
|
+
const _sfc_main$f = {};
|
|
13692
|
+
const _hoisted_1$e = { class: "lupa-spinner-wrapper" };
|
|
13693
|
+
const _hoisted_2$c = { class: "lupa-spinner" };
|
|
13655
13694
|
function _sfc_render(_ctx, _cache) {
|
|
13656
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13657
|
-
createBaseVNode("div", _hoisted_2$
|
|
13695
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
13696
|
+
createBaseVNode("div", _hoisted_2$c, [
|
|
13658
13697
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
|
|
13659
13698
|
return createBaseVNode("div", { key: x });
|
|
13660
13699
|
}), 64))
|
|
13661
13700
|
])
|
|
13662
13701
|
]);
|
|
13663
13702
|
}
|
|
13664
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13665
|
-
const _hoisted_1$
|
|
13666
|
-
const _hoisted_2$
|
|
13703
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render]]);
|
|
13704
|
+
const _hoisted_1$d = { id: "lupa-search-results-products" };
|
|
13705
|
+
const _hoisted_2$b = {
|
|
13667
13706
|
class: "lupa-products",
|
|
13668
13707
|
"data-cy": "lupa-products"
|
|
13669
13708
|
};
|
|
@@ -13678,7 +13717,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13678
13717
|
"data-cy": "lupa-no-results"
|
|
13679
13718
|
};
|
|
13680
13719
|
const _hoisted_5$3 = { key: 4 };
|
|
13681
|
-
const _sfc_main$
|
|
13720
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
13682
13721
|
__name: "SearchResultsProducts",
|
|
13683
13722
|
props: {
|
|
13684
13723
|
options: {},
|
|
@@ -13769,23 +13808,23 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13769
13808
|
};
|
|
13770
13809
|
return (_ctx, _cache) => {
|
|
13771
13810
|
var _a;
|
|
13772
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13811
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
13773
13812
|
unref(loading) && !unref(isMobileSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
13774
13813
|
key: 0,
|
|
13775
13814
|
class: "lupa-loader"
|
|
13776
13815
|
})) : createCommentVNode("", true),
|
|
13777
13816
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
13778
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13817
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
|
|
13779
13818
|
key: 0,
|
|
13780
13819
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
13781
13820
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13782
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13821
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$B, {
|
|
13783
13822
|
key: 1,
|
|
13784
13823
|
class: "lupa-toolbar-mobile",
|
|
13785
13824
|
options: _ctx.options,
|
|
13786
13825
|
"pagination-location": "top"
|
|
13787
13826
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13788
|
-
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
13827
|
+
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$U, {
|
|
13789
13828
|
key: 2,
|
|
13790
13829
|
class: normalizeClass(currentFiltersClass.value),
|
|
13791
13830
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -13793,18 +13832,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13793
13832
|
expandable: !desktopFiltersExpanded.value
|
|
13794
13833
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
13795
13834
|
], 64)) : createCommentVNode("", true),
|
|
13796
|
-
createVNode(_sfc_main$
|
|
13835
|
+
createVNode(_sfc_main$g, {
|
|
13797
13836
|
options: _ctx.options,
|
|
13798
13837
|
location: "top",
|
|
13799
13838
|
sdkOptions: _ctx.options.options
|
|
13800
13839
|
}, null, 8, ["options", "sdkOptions"]),
|
|
13801
13840
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
13802
|
-
createVNode(_sfc_main$
|
|
13841
|
+
createVNode(_sfc_main$B, {
|
|
13803
13842
|
class: "lupa-toolbar-top",
|
|
13804
13843
|
options: _ctx.options,
|
|
13805
13844
|
"pagination-location": "top"
|
|
13806
13845
|
}, null, 8, ["options"]),
|
|
13807
|
-
createBaseVNode("div", _hoisted_2$
|
|
13846
|
+
createBaseVNode("div", _hoisted_2$b, [
|
|
13808
13847
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
|
|
13809
13848
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
13810
13849
|
style: normalizeStyle(columnSize.value),
|
|
@@ -13813,7 +13852,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13813
13852
|
options: productCardOptions.value
|
|
13814
13853
|
});
|
|
13815
13854
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
13816
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13855
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
13817
13856
|
style: normalizeStyle(columnSize.value),
|
|
13818
13857
|
key: getProductKeyAction(index, product),
|
|
13819
13858
|
product,
|
|
@@ -13829,12 +13868,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13829
13868
|
onClick: goToFirstPage
|
|
13830
13869
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
13831
13870
|
])) : createCommentVNode("", true),
|
|
13832
|
-
createVNode(_sfc_main$
|
|
13871
|
+
createVNode(_sfc_main$B, {
|
|
13833
13872
|
class: "lupa-toolbar-bottom",
|
|
13834
13873
|
options: _ctx.options,
|
|
13835
13874
|
"pagination-location": "bottom"
|
|
13836
13875
|
}, null, 8, ["options"]),
|
|
13837
|
-
createVNode(_sfc_main$
|
|
13876
|
+
createVNode(_sfc_main$g, {
|
|
13838
13877
|
options: _ctx.options,
|
|
13839
13878
|
location: "bottom",
|
|
13840
13879
|
sdkOptions: _ctx.options.options
|
|
@@ -13844,7 +13883,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13844
13883
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
13845
13884
|
])) : createCommentVNode("", true),
|
|
13846
13885
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
13847
|
-
createVNode(_sfc_main$
|
|
13886
|
+
createVNode(_sfc_main$i, {
|
|
13848
13887
|
labels: similarQueriesLabels.value,
|
|
13849
13888
|
columnSize: columnSize.value,
|
|
13850
13889
|
productCardOptions: productCardOptions.value
|
|
@@ -13855,13 +13894,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13855
13894
|
};
|
|
13856
13895
|
}
|
|
13857
13896
|
});
|
|
13858
|
-
const _hoisted_1$
|
|
13859
|
-
const _hoisted_2$
|
|
13897
|
+
const _hoisted_1$c = { class: "lupa-top-mobile-filter-wrapper" };
|
|
13898
|
+
const _hoisted_2$a = {
|
|
13860
13899
|
key: 0,
|
|
13861
13900
|
class: "lupa-category-back"
|
|
13862
13901
|
};
|
|
13863
13902
|
const _hoisted_3$6 = ["href"];
|
|
13864
|
-
const _sfc_main$
|
|
13903
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
13865
13904
|
__name: "CategoryTopFilters",
|
|
13866
13905
|
props: {
|
|
13867
13906
|
options: {}
|
|
@@ -13893,15 +13932,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13893
13932
|
return openBlock(), createElementBlock("div", {
|
|
13894
13933
|
class: normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
|
|
13895
13934
|
}, [
|
|
13896
|
-
createBaseVNode("div", _hoisted_1$
|
|
13897
|
-
hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13935
|
+
createBaseVNode("div", _hoisted_1$c, [
|
|
13936
|
+
hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
13898
13937
|
createBaseVNode("a", {
|
|
13899
13938
|
"data-cy": "lupa-category-back",
|
|
13900
13939
|
href: backUrlLink.value,
|
|
13901
13940
|
onClick: handleNavigationBack
|
|
13902
13941
|
}, toDisplayString(backTitle.value), 9, _hoisted_3$6)
|
|
13903
13942
|
])) : createCommentVNode("", true),
|
|
13904
|
-
createVNode(_sfc_main$
|
|
13943
|
+
createVNode(_sfc_main$B, {
|
|
13905
13944
|
class: "lupa-toolbar-mobile",
|
|
13906
13945
|
"pagination-location": "top",
|
|
13907
13946
|
options: _ctx.options
|
|
@@ -13911,18 +13950,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13911
13950
|
};
|
|
13912
13951
|
}
|
|
13913
13952
|
});
|
|
13914
|
-
const _hoisted_1$
|
|
13953
|
+
const _hoisted_1$b = {
|
|
13915
13954
|
key: 0,
|
|
13916
13955
|
class: "lupa-container-title-summary-mobile"
|
|
13917
13956
|
};
|
|
13918
|
-
const _hoisted_2$
|
|
13957
|
+
const _hoisted_2$9 = {
|
|
13919
13958
|
key: 4,
|
|
13920
13959
|
id: "lupa-search-results",
|
|
13921
13960
|
class: "top-layout-wrapper"
|
|
13922
13961
|
};
|
|
13923
13962
|
const _hoisted_3$5 = { class: "search-content" };
|
|
13924
13963
|
const _hoisted_4$3 = { id: "lupa-search-results" };
|
|
13925
|
-
const _sfc_main$
|
|
13964
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
13926
13965
|
__name: "SearchResults",
|
|
13927
13966
|
props: {
|
|
13928
13967
|
options: {},
|
|
@@ -14111,40 +14150,40 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14111
14150
|
return openBlock(), createElementBlock("div", {
|
|
14112
14151
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
14113
14152
|
}, [
|
|
14114
|
-
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14115
|
-
createVNode(_sfc_main$
|
|
14116
|
-
createVNode(_sfc_main$
|
|
14153
|
+
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
14154
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14155
|
+
createVNode(_sfc_main$W, {
|
|
14117
14156
|
"show-summary": true,
|
|
14118
14157
|
options: _ctx.options,
|
|
14119
14158
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
14120
14159
|
}, null, 8, ["options", "is-product-list"])
|
|
14121
14160
|
])) : createCommentVNode("", true),
|
|
14122
|
-
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$
|
|
14161
|
+
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$d, {
|
|
14123
14162
|
key: 1,
|
|
14124
14163
|
options: _ctx.options
|
|
14125
14164
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14126
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
14165
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$J, {
|
|
14127
14166
|
key: 2,
|
|
14128
14167
|
options: _ctx.options.filters
|
|
14129
14168
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14130
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
14169
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$I, {
|
|
14131
14170
|
key: 3,
|
|
14132
14171
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
14133
14172
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
14134
|
-
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
14135
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14173
|
+
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
14174
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
14136
14175
|
key: 0,
|
|
14137
14176
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
14138
14177
|
ref_key: "searchResultsFilters",
|
|
14139
14178
|
ref: searchResultsFilters
|
|
14140
14179
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14141
14180
|
createBaseVNode("div", _hoisted_3$5, [
|
|
14142
|
-
createVNode(_sfc_main$
|
|
14143
|
-
createVNode(_sfc_main$
|
|
14181
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14182
|
+
createVNode(_sfc_main$W, {
|
|
14144
14183
|
options: _ctx.options,
|
|
14145
14184
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
14146
14185
|
}, null, 8, ["options", "is-product-list"]),
|
|
14147
|
-
createVNode(_sfc_main$
|
|
14186
|
+
createVNode(_sfc_main$e, {
|
|
14148
14187
|
options: _ctx.options,
|
|
14149
14188
|
ssr: ssrEnabled.value
|
|
14150
14189
|
}, {
|
|
@@ -14155,19 +14194,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14155
14194
|
}, 8, ["options", "ssr"])
|
|
14156
14195
|
])
|
|
14157
14196
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
14158
|
-
createVNode(_sfc_main$
|
|
14159
|
-
createVNode(_sfc_main$
|
|
14197
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14198
|
+
createVNode(_sfc_main$W, {
|
|
14160
14199
|
options: _ctx.options,
|
|
14161
14200
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
14162
14201
|
}, null, 8, ["options", "is-product-list"]),
|
|
14163
14202
|
createBaseVNode("div", _hoisted_4$3, [
|
|
14164
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14203
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
14165
14204
|
key: 0,
|
|
14166
14205
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
14167
14206
|
ref_key: "searchResultsFilters",
|
|
14168
14207
|
ref: searchResultsFilters
|
|
14169
14208
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14170
|
-
createVNode(_sfc_main$
|
|
14209
|
+
createVNode(_sfc_main$e, {
|
|
14171
14210
|
options: _ctx.options,
|
|
14172
14211
|
ssr: ssrEnabled.value
|
|
14173
14212
|
}, createSlots({
|
|
@@ -14190,12 +14229,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14190
14229
|
};
|
|
14191
14230
|
}
|
|
14192
14231
|
});
|
|
14193
|
-
const _hoisted_1$
|
|
14232
|
+
const _hoisted_1$a = {
|
|
14194
14233
|
key: 0,
|
|
14195
14234
|
class: "lupa-category-overview"
|
|
14196
14235
|
};
|
|
14197
|
-
const _hoisted_2$
|
|
14198
|
-
const _sfc_main$
|
|
14236
|
+
const _hoisted_2$8 = ["innerHTML"];
|
|
14237
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
14199
14238
|
__name: "CategoryDescription",
|
|
14200
14239
|
props: {
|
|
14201
14240
|
options: {}
|
|
@@ -14211,16 +14250,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14211
14250
|
return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
|
|
14212
14251
|
});
|
|
14213
14252
|
return (_ctx, _cache) => {
|
|
14214
|
-
return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14253
|
+
return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
14215
14254
|
createBaseVNode("div", {
|
|
14216
14255
|
class: "lupa-category-description",
|
|
14217
14256
|
innerHTML: description.value
|
|
14218
|
-
}, null, 8, _hoisted_2$
|
|
14257
|
+
}, null, 8, _hoisted_2$8)
|
|
14219
14258
|
])) : createCommentVNode("", true);
|
|
14220
14259
|
};
|
|
14221
14260
|
}
|
|
14222
14261
|
});
|
|
14223
|
-
const _sfc_main$
|
|
14262
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
14224
14263
|
__name: "ProductList",
|
|
14225
14264
|
props: {
|
|
14226
14265
|
options: {}
|
|
@@ -14242,7 +14281,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14242
14281
|
__expose({ fetch: fetch2 });
|
|
14243
14282
|
return (_ctx, _cache) => {
|
|
14244
14283
|
return openBlock(), createElementBlock("div", null, [
|
|
14245
|
-
createVNode(_sfc_main$
|
|
14284
|
+
createVNode(_sfc_main$c, {
|
|
14246
14285
|
options: componentOptions.value,
|
|
14247
14286
|
"initial-filters": _ctx.options.initialFilters,
|
|
14248
14287
|
"is-product-list": true,
|
|
@@ -14250,7 +14289,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14250
14289
|
ref: searchResults2
|
|
14251
14290
|
}, {
|
|
14252
14291
|
default: withCtx(() => [
|
|
14253
|
-
createVNode(_sfc_main$
|
|
14292
|
+
createVNode(_sfc_main$b, { options: _ctx.options }, null, 8, ["options"])
|
|
14254
14293
|
]),
|
|
14255
14294
|
_: 1
|
|
14256
14295
|
}, 8, ["options", "initial-filters"])
|
|
@@ -19741,9 +19780,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
19741
19780
|
}).call(commonjsGlobal$1);
|
|
19742
19781
|
})(lodash$1, lodash$1.exports);
|
|
19743
19782
|
var lodashExports$1 = lodash$1.exports;
|
|
19744
|
-
const _hoisted_1$
|
|
19745
|
-
const _hoisted_2$
|
|
19746
|
-
const _sfc_main$
|
|
19783
|
+
const _hoisted_1$9 = ["onClick"];
|
|
19784
|
+
const _hoisted_2$7 = { class: "lupa-search-box-container" };
|
|
19785
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
19747
19786
|
__name: "SearchContainer",
|
|
19748
19787
|
props: {
|
|
19749
19788
|
options: {}
|
|
@@ -19788,8 +19827,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
19788
19827
|
class: "lupa-search-container",
|
|
19789
19828
|
onClick: withModifiers(innerClick, ["stop"])
|
|
19790
19829
|
}, [
|
|
19791
|
-
createBaseVNode("div", _hoisted_2$
|
|
19792
|
-
createVNode(_sfc_main$
|
|
19830
|
+
createBaseVNode("div", _hoisted_2$7, [
|
|
19831
|
+
createVNode(_sfc_main$Z, {
|
|
19793
19832
|
options: fullSearchBoxOptions.value,
|
|
19794
19833
|
"is-search-container": true,
|
|
19795
19834
|
ref_key: "searchBox",
|
|
@@ -19797,13 +19836,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
19797
19836
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
19798
19837
|
}, null, 8, ["options"])
|
|
19799
19838
|
]),
|
|
19800
|
-
createVNode(_sfc_main$
|
|
19839
|
+
createVNode(_sfc_main$c, {
|
|
19801
19840
|
options: fullSearchResultsOptions.value,
|
|
19802
19841
|
"is-container": true,
|
|
19803
19842
|
ref_key: "searchResults",
|
|
19804
19843
|
ref: searchResults2
|
|
19805
19844
|
}, null, 8, ["options"])
|
|
19806
|
-
], 8, _hoisted_1$
|
|
19845
|
+
], 8, _hoisted_1$9)
|
|
19807
19846
|
]);
|
|
19808
19847
|
};
|
|
19809
19848
|
}
|
|
@@ -20506,13 +20545,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20506
20545
|
};
|
|
20507
20546
|
}
|
|
20508
20547
|
});
|
|
20509
|
-
const _hoisted_1$
|
|
20510
|
-
const _hoisted_2$
|
|
20548
|
+
const _hoisted_1$8 = { class: "lupa-search-product-recommendations-wrapper" };
|
|
20549
|
+
const _hoisted_2$6 = {
|
|
20511
20550
|
key: 0,
|
|
20512
20551
|
class: "lupa-recommended-products",
|
|
20513
20552
|
"data-cy": "lupa-recommended-products"
|
|
20514
20553
|
};
|
|
20515
|
-
const _sfc_main$
|
|
20554
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
20516
20555
|
__name: "Recommendations",
|
|
20517
20556
|
props: {
|
|
20518
20557
|
options: {}
|
|
@@ -20598,8 +20637,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20598
20637
|
});
|
|
20599
20638
|
__expose({ fetch: fetch2 });
|
|
20600
20639
|
return (_ctx, _cache) => {
|
|
20601
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20602
|
-
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
20640
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
20641
|
+
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
|
|
20603
20642
|
createVNode(unref(Carousel), mergeProps(carouselOptions.value, { "wrap-around": true }), {
|
|
20604
20643
|
addons: withCtx(() => [
|
|
20605
20644
|
createVNode(unref(Navigation))
|
|
@@ -20610,7 +20649,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20610
20649
|
key: getProductKeyAction(index, product)
|
|
20611
20650
|
}, {
|
|
20612
20651
|
default: withCtx(() => [
|
|
20613
|
-
createVNode(_sfc_main$
|
|
20652
|
+
createVNode(_sfc_main$j, {
|
|
20614
20653
|
product,
|
|
20615
20654
|
options: _ctx.options,
|
|
20616
20655
|
"click-tracking-settings": clickTrackingSettings.value
|
|
@@ -20627,19 +20666,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20627
20666
|
};
|
|
20628
20667
|
}
|
|
20629
20668
|
});
|
|
20630
|
-
const _hoisted_1$
|
|
20631
|
-
const _hoisted_2$
|
|
20669
|
+
const _hoisted_1$7 = { class: "lupa-chat-spinner" };
|
|
20670
|
+
const _hoisted_2$5 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
20632
20671
|
const _hoisted_3$4 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
20633
20672
|
const _hoisted_4$2 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
20634
20673
|
const _hoisted_5$2 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
20635
20674
|
const _hoisted_6$1 = [
|
|
20636
|
-
_hoisted_2$
|
|
20675
|
+
_hoisted_2$5,
|
|
20637
20676
|
_hoisted_3$4,
|
|
20638
20677
|
_hoisted_4$2,
|
|
20639
20678
|
_hoisted_5$2
|
|
20640
20679
|
];
|
|
20641
20680
|
const _hoisted_7 = { class: "lupa-chat-spinner-message" };
|
|
20642
|
-
const _sfc_main$
|
|
20681
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
20643
20682
|
__name: "ChatSpinner",
|
|
20644
20683
|
props: {
|
|
20645
20684
|
small: { type: Boolean },
|
|
@@ -20647,7 +20686,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20647
20686
|
},
|
|
20648
20687
|
setup(__props) {
|
|
20649
20688
|
return (_ctx, _cache) => {
|
|
20650
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
20689
|
+
return openBlock(), createElementBlock("section", _hoisted_1$7, [
|
|
20651
20690
|
createBaseVNode("div", {
|
|
20652
20691
|
class: normalizeClass([{ small: _ctx.small }, "lds-ring"])
|
|
20653
20692
|
}, _hoisted_6$1, 2),
|
|
@@ -20656,13 +20695,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20656
20695
|
};
|
|
20657
20696
|
}
|
|
20658
20697
|
});
|
|
20659
|
-
const _hoisted_1$
|
|
20660
|
-
const _hoisted_2$
|
|
20698
|
+
const _hoisted_1$6 = { class: "lupa-chat-input-container" };
|
|
20699
|
+
const _hoisted_2$4 = { id: "lupa-search-box-input" };
|
|
20661
20700
|
const _hoisted_3$3 = {
|
|
20662
20701
|
key: 0,
|
|
20663
20702
|
class: "lupa-chat-form-submit"
|
|
20664
20703
|
};
|
|
20665
|
-
const _sfc_main$
|
|
20704
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
20666
20705
|
__name: "ChatInput",
|
|
20667
20706
|
props: {
|
|
20668
20707
|
disabled: { type: Boolean }
|
|
@@ -20675,13 +20714,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20675
20714
|
inputValue.value = "";
|
|
20676
20715
|
};
|
|
20677
20716
|
return (_ctx, _cache) => {
|
|
20678
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20717
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
20679
20718
|
createBaseVNode("form", {
|
|
20680
20719
|
action: "javascript:void(0);",
|
|
20681
20720
|
class: "chat-input-form",
|
|
20682
20721
|
onSubmit: submit
|
|
20683
20722
|
}, [
|
|
20684
|
-
createBaseVNode("div", _hoisted_2$
|
|
20723
|
+
createBaseVNode("div", _hoisted_2$4, [
|
|
20685
20724
|
withDirectives(createBaseVNode("input", {
|
|
20686
20725
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
|
|
20687
20726
|
ref: "mainInput",
|
|
@@ -20694,7 +20733,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20694
20733
|
[vModelText, inputValue.value]
|
|
20695
20734
|
])
|
|
20696
20735
|
]),
|
|
20697
|
-
!_ctx.disabled ? (openBlock(), createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (openBlock(), createBlock(_sfc_main$
|
|
20736
|
+
!_ctx.disabled ? (openBlock(), createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (openBlock(), createBlock(_sfc_main$7, {
|
|
20698
20737
|
key: 1,
|
|
20699
20738
|
small: true
|
|
20700
20739
|
}))
|
|
@@ -20823,15 +20862,36 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20823
20862
|
}
|
|
20824
20863
|
return history;
|
|
20825
20864
|
};
|
|
20865
|
+
const getTextResponseChunkStream = (options, { initialQuery, messageHistory }, onChunkReceived) => {
|
|
20866
|
+
var _a;
|
|
20867
|
+
fetch(`${getApiUrl(options.environment, options.customBaseUrl)}chat/text`, __spreadProps2(__spreadValues2({}, defaultConfig), {
|
|
20868
|
+
body: JSON.stringify({ initialQuery, messageHistory }),
|
|
20869
|
+
headers: __spreadValues2(__spreadValues2({}, headers), (_a = options.customHeaders) != null ? _a : {})
|
|
20870
|
+
})).then((response) => {
|
|
20871
|
+
const reader = response.body.getReader();
|
|
20872
|
+
return reader.read().then(function processStream({ done, value }) {
|
|
20873
|
+
if (done) {
|
|
20874
|
+
return "";
|
|
20875
|
+
}
|
|
20876
|
+
const result = new TextDecoder("utf-8").decode(value);
|
|
20877
|
+
const sanitezedResult = result.replace("\n", '<div class="br"></div>');
|
|
20878
|
+
onChunkReceived(sanitezedResult);
|
|
20879
|
+
return reader.read().then(processStream);
|
|
20880
|
+
});
|
|
20881
|
+
}).catch((error) => {
|
|
20882
|
+
console.error(`Fetch Error: ${error}`);
|
|
20883
|
+
});
|
|
20884
|
+
};
|
|
20826
20885
|
const ChatService = {
|
|
20827
20886
|
suggestSearchChatPhrases,
|
|
20828
20887
|
suggestPhraseAlternatives,
|
|
20829
20888
|
suggestSimplifiedPhrases,
|
|
20830
20889
|
suggestBestProductMatches,
|
|
20831
|
-
prepareChatHistory
|
|
20890
|
+
prepareChatHistory,
|
|
20891
|
+
getTextResponseChunkStream
|
|
20832
20892
|
};
|
|
20833
|
-
const _hoisted_1$
|
|
20834
|
-
const _sfc_main$
|
|
20893
|
+
const _hoisted_1$5 = { class: "lupa-chat-results" };
|
|
20894
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
20835
20895
|
__name: "ChatPhraseProductsList",
|
|
20836
20896
|
props: {
|
|
20837
20897
|
options: {},
|
|
@@ -20843,9 +20903,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20843
20903
|
return getProductKey(`${index}`, product, props.options.idKey);
|
|
20844
20904
|
};
|
|
20845
20905
|
return (_ctx, _cache) => {
|
|
20846
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
20906
|
+
return openBlock(), createElementBlock("section", _hoisted_1$5, [
|
|
20847
20907
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
20848
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20908
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
20849
20909
|
class: "lupa-chat-product-card",
|
|
20850
20910
|
key: getProductKeyAction(index, product),
|
|
20851
20911
|
product,
|
|
@@ -20856,8 +20916,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20856
20916
|
};
|
|
20857
20917
|
}
|
|
20858
20918
|
});
|
|
20859
|
-
const _hoisted_1$
|
|
20860
|
-
const _hoisted_2$
|
|
20919
|
+
const _hoisted_1$4 = { class: "lupa-chat-content-entry-phrase" };
|
|
20920
|
+
const _hoisted_2$3 = { class: "lupa-chat-phrase-title" };
|
|
20861
20921
|
const _hoisted_3$2 = {
|
|
20862
20922
|
key: 0,
|
|
20863
20923
|
class: "alert"
|
|
@@ -20870,7 +20930,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20870
20930
|
const _hoisted_6 = [
|
|
20871
20931
|
_hoisted_5$1
|
|
20872
20932
|
];
|
|
20873
|
-
const _sfc_main$
|
|
20933
|
+
const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
20874
20934
|
__name: "ChatContentEntryPhrase",
|
|
20875
20935
|
props: {
|
|
20876
20936
|
options: {},
|
|
@@ -20950,20 +21010,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20950
21010
|
return phrases != null ? phrases : [];
|
|
20951
21011
|
});
|
|
20952
21012
|
return (_ctx, _cache) => {
|
|
20953
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20954
|
-
createBaseVNode("div", _hoisted_2$
|
|
21013
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
21014
|
+
createBaseVNode("div", _hoisted_2$3, [
|
|
20955
21015
|
createBaseVNode("h3", null, toDisplayString(displayPhrase.value), 1),
|
|
20956
21016
|
createBaseVNode("sub", null, toDisplayString(usedAlternativePhrases.value.join(", ")), 1),
|
|
20957
21017
|
usedPartialResults.value ? (openBlock(), createElementBlock("sub", _hoisted_3$2, "Including partial matches - which might not be what you are looking for")) : createCommentVNode("", true)
|
|
20958
21018
|
]),
|
|
20959
21019
|
createBaseVNode("div", null, [
|
|
20960
|
-
createVNode(_sfc_main$
|
|
21020
|
+
createVNode(_sfc_main$5, {
|
|
20961
21021
|
"search-results": searchResults2.value,
|
|
20962
21022
|
options: _ctx.options.displayOptions
|
|
20963
21023
|
}, null, 8, ["search-results", "options"])
|
|
20964
21024
|
]),
|
|
20965
21025
|
!loading.value && !searchResults2.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$1, _hoisted_6)) : createCommentVNode("", true),
|
|
20966
|
-
loading.value ? (openBlock(), createBlock(_sfc_main$
|
|
21026
|
+
loading.value ? (openBlock(), createBlock(_sfc_main$7, {
|
|
20967
21027
|
key: 1,
|
|
20968
21028
|
message: currentAction.value
|
|
20969
21029
|
}, null, 8, ["message"])) : createCommentVNode("", true)
|
|
@@ -20971,10 +21031,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20971
21031
|
};
|
|
20972
21032
|
}
|
|
20973
21033
|
});
|
|
20974
|
-
const _hoisted_1$
|
|
20975
|
-
const _hoisted_2$
|
|
21034
|
+
const _hoisted_1$3 = { class: "lupa-chat-best-matches lupa-chat-content-entry" };
|
|
21035
|
+
const _hoisted_2$2 = /* @__PURE__ */ createBaseVNode("h3", null, "Best matches", -1);
|
|
20976
21036
|
const _hoisted_3$1 = { key: 0 };
|
|
20977
|
-
const _sfc_main$
|
|
21037
|
+
const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
|
|
20978
21038
|
__name: "ChatContentEntry",
|
|
20979
21039
|
props: {
|
|
20980
21040
|
entry: {},
|
|
@@ -21039,7 +21099,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21039
21099
|
key: phrase,
|
|
21040
21100
|
class: "lupa-chat-content-entry"
|
|
21041
21101
|
}, [
|
|
21042
|
-
phrase ? (openBlock(), createBlock(_sfc_main$
|
|
21102
|
+
phrase ? (openBlock(), createBlock(_sfc_main$4$1, {
|
|
21043
21103
|
key: 0,
|
|
21044
21104
|
phrase,
|
|
21045
21105
|
options: _ctx.options,
|
|
@@ -21048,14 +21108,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21048
21108
|
]);
|
|
21049
21109
|
}), 128))
|
|
21050
21110
|
]),
|
|
21051
|
-
createBaseVNode("section", _hoisted_1$
|
|
21052
|
-
_hoisted_2$
|
|
21111
|
+
createBaseVNode("section", _hoisted_1$3, [
|
|
21112
|
+
_hoisted_2$2,
|
|
21053
21113
|
explanation.value ? (openBlock(), createElementBlock("p", _hoisted_3$1, toDisplayString(explanation.value), 1)) : createCommentVNode("", true),
|
|
21054
|
-
loading.value ? (openBlock(), createBlock(_sfc_main$
|
|
21114
|
+
loading.value ? (openBlock(), createBlock(_sfc_main$7, {
|
|
21055
21115
|
key: 1,
|
|
21056
21116
|
message: "Selecting the best matches for you. This might take a few seconds."
|
|
21057
21117
|
})) : createCommentVNode("", true),
|
|
21058
|
-
bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$
|
|
21118
|
+
bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$5, {
|
|
21059
21119
|
key: 2,
|
|
21060
21120
|
"search-results": bestMatchProducts.value,
|
|
21061
21121
|
options: _ctx.options.displayOptions
|
|
@@ -21065,6 +21125,39 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21065
21125
|
};
|
|
21066
21126
|
}
|
|
21067
21127
|
});
|
|
21128
|
+
const _hoisted_1$2 = { class: "lupa-chat-text-response" };
|
|
21129
|
+
const _hoisted_2$1 = ["innerHTML"];
|
|
21130
|
+
const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
21131
|
+
__name: "ChatTextEntry",
|
|
21132
|
+
props: {
|
|
21133
|
+
content: {},
|
|
21134
|
+
options: {},
|
|
21135
|
+
history: {}
|
|
21136
|
+
},
|
|
21137
|
+
setup(__props) {
|
|
21138
|
+
const props = __props;
|
|
21139
|
+
const content = ref("");
|
|
21140
|
+
const processChunk = (chunk) => {
|
|
21141
|
+
content.value += chunk;
|
|
21142
|
+
};
|
|
21143
|
+
onMounted(() => {
|
|
21144
|
+
var _a;
|
|
21145
|
+
ChatService.getTextResponseChunkStream(
|
|
21146
|
+
props.options.sdkOptions,
|
|
21147
|
+
{
|
|
21148
|
+
initialQuery: props.content,
|
|
21149
|
+
messageHistory: (_a = props.history) != null ? _a : []
|
|
21150
|
+
},
|
|
21151
|
+
processChunk
|
|
21152
|
+
);
|
|
21153
|
+
});
|
|
21154
|
+
return (_ctx, _cache) => {
|
|
21155
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
21156
|
+
createBaseVNode("p", { innerHTML: content.value }, null, 8, _hoisted_2$1)
|
|
21157
|
+
]);
|
|
21158
|
+
};
|
|
21159
|
+
}
|
|
21160
|
+
});
|
|
21068
21161
|
const _hoisted_1$1 = { class: "lupa-chat-section-title" };
|
|
21069
21162
|
const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
21070
21163
|
__name: "ChatContentList",
|
|
@@ -21082,16 +21175,23 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21082
21175
|
return openBlock(), createElementBlock("div", null, [
|
|
21083
21176
|
createBaseVNode("ul", null, [
|
|
21084
21177
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.content, (entry) => {
|
|
21178
|
+
var _a;
|
|
21085
21179
|
return openBlock(), createElementBlock("li", {
|
|
21086
21180
|
key: entry.key
|
|
21087
21181
|
}, [
|
|
21088
21182
|
createBaseVNode("h4", _hoisted_1$1, toDisplayString(entry.userInput), 1),
|
|
21089
21183
|
createVNode(_sfc_main$2$1, {
|
|
21184
|
+
content: entry.userInput,
|
|
21185
|
+
history: _ctx.history,
|
|
21186
|
+
options: _ctx.options
|
|
21187
|
+
}, null, 8, ["content", "history", "options"]),
|
|
21188
|
+
((_a = entry.suggestedPhrases) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_sfc_main$3$1, {
|
|
21189
|
+
key: 0,
|
|
21090
21190
|
entry,
|
|
21091
21191
|
options: _ctx.options,
|
|
21092
21192
|
history: _ctx.history,
|
|
21093
21193
|
onLoaded: (items) => bestItemsLoaded(items, entry.key)
|
|
21094
|
-
}, null, 8, ["entry", "options", "history", "onLoaded"])
|
|
21194
|
+
}, null, 8, ["entry", "options", "history", "onLoaded"])) : createCommentVNode("", true)
|
|
21095
21195
|
]);
|
|
21096
21196
|
}), 128))
|
|
21097
21197
|
])
|
|
@@ -21112,7 +21212,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21112
21212
|
class: "lupa-chat-spinner-main"
|
|
21113
21213
|
};
|
|
21114
21214
|
const _hoisted_5 = { class: "lupasearch-chat-input" };
|
|
21115
|
-
const _sfc_main$
|
|
21215
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
21116
21216
|
__name: "ChatContainer",
|
|
21117
21217
|
props: {
|
|
21118
21218
|
options: {}
|
|
@@ -21130,6 +21230,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21130
21230
|
}
|
|
21131
21231
|
try {
|
|
21132
21232
|
loading.value = true;
|
|
21233
|
+
const key = Date.now().toString();
|
|
21234
|
+
let chatLog = {
|
|
21235
|
+
key,
|
|
21236
|
+
userInput: input,
|
|
21237
|
+
allPhrases: [],
|
|
21238
|
+
suggestedPhrases: []
|
|
21239
|
+
};
|
|
21240
|
+
chatContent.value.push(chatLog);
|
|
21133
21241
|
const request = {
|
|
21134
21242
|
userPrompt: input,
|
|
21135
21243
|
messageHistory: (_a = history.value) != null ? _a : [],
|
|
@@ -21144,13 +21252,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21144
21252
|
return;
|
|
21145
21253
|
}
|
|
21146
21254
|
const validPhrases = phrases.filter((p2) => (p2 == null ? void 0 : p2.trim().length) > 0);
|
|
21147
|
-
|
|
21148
|
-
|
|
21149
|
-
|
|
21150
|
-
|
|
21151
|
-
|
|
21152
|
-
|
|
21153
|
-
chatContent.value.push(chatLog);
|
|
21255
|
+
chatContent.value = chatContent.value.map(
|
|
21256
|
+
(c2) => c2.key === key ? __spreadProps2(__spreadValues2({}, c2), {
|
|
21257
|
+
allPhrases: [...validPhrases],
|
|
21258
|
+
suggestedPhrases: phrases
|
|
21259
|
+
}) : c2
|
|
21260
|
+
);
|
|
21154
21261
|
} finally {
|
|
21155
21262
|
loading.value = false;
|
|
21156
21263
|
}
|
|
@@ -21171,10 +21278,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21171
21278
|
}, null, 8, ["content", "options", "history"])
|
|
21172
21279
|
])) : createCommentVNode("", true),
|
|
21173
21280
|
loading.value ? (openBlock(), createElementBlock("section", _hoisted_4, [
|
|
21174
|
-
createVNode(_sfc_main$
|
|
21281
|
+
createVNode(_sfc_main$7, { message: "Loading initial recommendations... This might take up to 20s" })
|
|
21175
21282
|
])) : createCommentVNode("", true),
|
|
21176
21283
|
createBaseVNode("section", _hoisted_5, [
|
|
21177
|
-
createVNode(_sfc_main$
|
|
21284
|
+
createVNode(_sfc_main$6, {
|
|
21178
21285
|
onSubmit: submitChatInput,
|
|
21179
21286
|
disabled: loading.value
|
|
21180
21287
|
}, null, 8, ["disabled"])
|
|
@@ -26745,7 +26852,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26745
26852
|
};
|
|
26746
26853
|
__expose({ fetch: fetch2 });
|
|
26747
26854
|
return (_ctx, _cache) => {
|
|
26748
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26855
|
+
return openBlock(), createBlock(unref(_sfc_main$Z), {
|
|
26749
26856
|
options: fullSearchBoxOptions.value,
|
|
26750
26857
|
ref_key: "searchBox",
|
|
26751
26858
|
ref: searchBox2
|
|
@@ -26872,7 +26979,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26872
26979
|
};
|
|
26873
26980
|
__expose({ fetch: fetch2 });
|
|
26874
26981
|
return (_ctx, _cache) => {
|
|
26875
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26982
|
+
return openBlock(), createBlock(unref(_sfc_main$c), {
|
|
26876
26983
|
options: fullSearchResultsOptions.value,
|
|
26877
26984
|
ref_key: "searchResults",
|
|
26878
26985
|
ref: searchResults2
|
|
@@ -26897,7 +27004,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26897
27004
|
};
|
|
26898
27005
|
__expose({ fetch: fetch2 });
|
|
26899
27006
|
return (_ctx, _cache) => {
|
|
26900
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
27007
|
+
return openBlock(), createBlock(unref(_sfc_main$a), {
|
|
26901
27008
|
options: fullProductListOptions.value,
|
|
26902
27009
|
ref_key: "productList",
|
|
26903
27010
|
ref: productList2
|
|
@@ -26977,7 +27084,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26977
27084
|
__expose({ fetch: fetch2, reloadOptions });
|
|
26978
27085
|
return (_ctx, _cache) => {
|
|
26979
27086
|
return openBlock(), createElementBlock("div", null, [
|
|
26980
|
-
containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
27087
|
+
containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$9), {
|
|
26981
27088
|
key: 0,
|
|
26982
27089
|
options: containerOptions.value,
|
|
26983
27090
|
ref_key: "productList",
|
|
@@ -27001,7 +27108,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
27001
27108
|
};
|
|
27002
27109
|
__expose({ fetch: fetch2 });
|
|
27003
27110
|
return (_ctx, _cache) => {
|
|
27004
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
27111
|
+
return openBlock(), createBlock(unref(_sfc_main$8), {
|
|
27005
27112
|
options: _ctx.recommendationOptions,
|
|
27006
27113
|
ref_key: "productRecommendations",
|
|
27007
27114
|
ref: productRecommendations
|
|
@@ -27220,7 +27327,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
27220
27327
|
}
|
|
27221
27328
|
return;
|
|
27222
27329
|
}
|
|
27223
|
-
const instance = createVue(options.displayOptions.containerSelector, _sfc_main$
|
|
27330
|
+
const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1k, {
|
|
27224
27331
|
options
|
|
27225
27332
|
});
|
|
27226
27333
|
if (!instance) {
|