@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.mjs
CHANGED
|
@@ -7534,6 +7534,10 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
7534
7534
|
};
|
|
7535
7535
|
})
|
|
7536
7536
|
);
|
|
7537
|
+
const hasAnyResults = computed(() => {
|
|
7538
|
+
var _a;
|
|
7539
|
+
return (_a = panelItemCounts.value) == null ? void 0 : _a.some((p2) => p2.count > 0);
|
|
7540
|
+
});
|
|
7537
7541
|
const totalCount = computed(
|
|
7538
7542
|
() => {
|
|
7539
7543
|
var _a, _b;
|
|
@@ -7586,6 +7590,7 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
7586
7590
|
[queryKey]: flattenSuggestions(result.items, (_a = publicQuery.searchText) != null ? _a : "")
|
|
7587
7591
|
});
|
|
7588
7592
|
inputValue.value = publicQuery.searchText;
|
|
7593
|
+
emitSearchResultsCallback();
|
|
7589
7594
|
return {
|
|
7590
7595
|
suggestions: result.items
|
|
7591
7596
|
};
|
|
@@ -7597,6 +7602,19 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
7597
7602
|
return { suggestions: void 0 };
|
|
7598
7603
|
}
|
|
7599
7604
|
});
|
|
7605
|
+
const emitSearchResultsCallback = () => {
|
|
7606
|
+
var _a;
|
|
7607
|
+
if ((_a = options.value.callbacks) == null ? void 0 : _a.onSearchBoxResults) {
|
|
7608
|
+
options.value.callbacks.onSearchBoxResults({
|
|
7609
|
+
hasAnyResults: hasAnyResults.value,
|
|
7610
|
+
docResults: docResults.value,
|
|
7611
|
+
suggestionResults: suggestionResults.value,
|
|
7612
|
+
totalCount: totalCount.value,
|
|
7613
|
+
panelItemCounts: panelItemCounts.value,
|
|
7614
|
+
inputValue: inputValue.value
|
|
7615
|
+
});
|
|
7616
|
+
}
|
|
7617
|
+
};
|
|
7600
7618
|
const queryDocuments = (_0) => __async(void 0, [_0], function* ({
|
|
7601
7619
|
queryKey,
|
|
7602
7620
|
publicQuery,
|
|
@@ -7610,6 +7628,7 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
7610
7628
|
}
|
|
7611
7629
|
highlightChange({ action: "clear" });
|
|
7612
7630
|
docResults.value = __spreadProps2(__spreadValues2({}, docResults.value), { [queryKey]: result });
|
|
7631
|
+
emitSearchResultsCallback();
|
|
7613
7632
|
return { queryKey, result };
|
|
7614
7633
|
} catch (err) {
|
|
7615
7634
|
console.error(err);
|
|
@@ -7646,6 +7665,7 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
7646
7665
|
totalCount,
|
|
7647
7666
|
highlightedItem,
|
|
7648
7667
|
highlightedDocument,
|
|
7668
|
+
hasAnyResults,
|
|
7649
7669
|
querySuggestions,
|
|
7650
7670
|
queryDocuments,
|
|
7651
7671
|
highlightChange,
|
|
@@ -7654,8 +7674,8 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
7654
7674
|
resetHighlightIndex
|
|
7655
7675
|
};
|
|
7656
7676
|
});
|
|
7657
|
-
const _hoisted_1$
|
|
7658
|
-
const _hoisted_2$
|
|
7677
|
+
const _hoisted_1$1b = { id: "lupa-search-box-input-container" };
|
|
7678
|
+
const _hoisted_2$O = { class: "lupa-input-clear" };
|
|
7659
7679
|
const _hoisted_3$A = { id: "lupa-search-box-input" };
|
|
7660
7680
|
const _hoisted_4$r = ["value"];
|
|
7661
7681
|
const _hoisted_5$f = ["placeholder"];
|
|
@@ -7663,7 +7683,7 @@ const _hoisted_6$8 = {
|
|
|
7663
7683
|
key: 0,
|
|
7664
7684
|
class: "lupa-close-label"
|
|
7665
7685
|
};
|
|
7666
|
-
const _sfc_main$
|
|
7686
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
7667
7687
|
__name: "SearchBoxInput",
|
|
7668
7688
|
props: {
|
|
7669
7689
|
options: {},
|
|
@@ -7740,8 +7760,8 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
7740
7760
|
};
|
|
7741
7761
|
__expose({ focus });
|
|
7742
7762
|
return (_ctx, _cache) => {
|
|
7743
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7744
|
-
createBaseVNode("div", _hoisted_2$
|
|
7763
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1b, [
|
|
7764
|
+
createBaseVNode("div", _hoisted_2$O, [
|
|
7745
7765
|
createBaseVNode("div", {
|
|
7746
7766
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
7747
7767
|
onClick: clear2
|
|
@@ -7780,7 +7800,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
7780
7800
|
};
|
|
7781
7801
|
}
|
|
7782
7802
|
});
|
|
7783
|
-
const _sfc_main$
|
|
7803
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
7784
7804
|
__name: "SearchBoxMoreResults",
|
|
7785
7805
|
props: {
|
|
7786
7806
|
labels: {},
|
|
@@ -7812,9 +7832,9 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
7812
7832
|
};
|
|
7813
7833
|
}
|
|
7814
7834
|
});
|
|
7815
|
-
const _hoisted_1$
|
|
7816
|
-
const _hoisted_2$
|
|
7817
|
-
const _sfc_main$
|
|
7835
|
+
const _hoisted_1$1a = { class: "lupa-search-box-history-item" };
|
|
7836
|
+
const _hoisted_2$N = { class: "lupa-search-box-history-item-content" };
|
|
7837
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
7818
7838
|
__name: "SearchBoxHistoryItem",
|
|
7819
7839
|
props: {
|
|
7820
7840
|
item: {},
|
|
@@ -7830,8 +7850,8 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
7830
7850
|
emit2("click", { query: props.item });
|
|
7831
7851
|
};
|
|
7832
7852
|
return (_ctx, _cache) => {
|
|
7833
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7834
|
-
createBaseVNode("div", _hoisted_2$
|
|
7853
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1a, [
|
|
7854
|
+
createBaseVNode("div", _hoisted_2$N, [
|
|
7835
7855
|
createBaseVNode("div", {
|
|
7836
7856
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
7837
7857
|
onClick: click2
|
|
@@ -7845,11 +7865,11 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
7845
7865
|
};
|
|
7846
7866
|
}
|
|
7847
7867
|
});
|
|
7848
|
-
const _hoisted_1$
|
|
7868
|
+
const _hoisted_1$19 = {
|
|
7849
7869
|
key: 0,
|
|
7850
7870
|
class: "lupa-search-box-history-panel"
|
|
7851
7871
|
};
|
|
7852
|
-
const _sfc_main$
|
|
7872
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
7853
7873
|
__name: "SearchBoxHistoryPanel",
|
|
7854
7874
|
props: {
|
|
7855
7875
|
options: {}
|
|
@@ -7890,9 +7910,9 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
7890
7910
|
}
|
|
7891
7911
|
};
|
|
7892
7912
|
return (_ctx, _cache) => {
|
|
7893
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7913
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$19, [
|
|
7894
7914
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
7895
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7915
|
+
return openBlock(), createBlock(_sfc_main$1h, {
|
|
7896
7916
|
key: item,
|
|
7897
7917
|
item,
|
|
7898
7918
|
highlighted: index === highlightIndex.value,
|
|
@@ -7908,8 +7928,20 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
7908
7928
|
};
|
|
7909
7929
|
}
|
|
7910
7930
|
});
|
|
7911
|
-
const _hoisted_1$
|
|
7912
|
-
const
|
|
7931
|
+
const _hoisted_1$18 = { class: "lupa-search-box-no-results" };
|
|
7932
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
7933
|
+
__name: "SearchBoxNoResults",
|
|
7934
|
+
props: {
|
|
7935
|
+
labels: {}
|
|
7936
|
+
},
|
|
7937
|
+
setup(__props) {
|
|
7938
|
+
return (_ctx, _cache) => {
|
|
7939
|
+
return openBlock(), createElementBlock("p", _hoisted_1$18, toDisplayString(_ctx.labels.noResults), 1);
|
|
7940
|
+
};
|
|
7941
|
+
}
|
|
7942
|
+
});
|
|
7943
|
+
const _hoisted_1$17 = ["innerHTML"];
|
|
7944
|
+
const _hoisted_2$M = {
|
|
7913
7945
|
key: 1,
|
|
7914
7946
|
"data-cy": "lupa-suggestion-value",
|
|
7915
7947
|
class: "lupa-suggestion-value"
|
|
@@ -7927,7 +7959,7 @@ const _hoisted_5$e = {
|
|
|
7927
7959
|
class: "lupa-suggestion-facet-value",
|
|
7928
7960
|
"data-cy": "lupa-suggestion-facet-value"
|
|
7929
7961
|
};
|
|
7930
|
-
const _sfc_main$
|
|
7962
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
7931
7963
|
__name: "SearchBoxSuggestion",
|
|
7932
7964
|
props: {
|
|
7933
7965
|
suggestion: {},
|
|
@@ -7963,7 +7995,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
7963
7995
|
class: "lupa-suggestion-value",
|
|
7964
7996
|
"data-cy": "lupa-suggestion-value",
|
|
7965
7997
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
7966
|
-
}, null, 8, _hoisted_1$
|
|
7998
|
+
}, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(_ctx.suggestion.display), 1)),
|
|
7967
7999
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
7968
8000
|
createBaseVNode("span", _hoisted_4$q, toDisplayString(facetLabel.value), 1),
|
|
7969
8001
|
createBaseVNode("span", _hoisted_5$e, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
@@ -7972,11 +8004,11 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
7972
8004
|
};
|
|
7973
8005
|
}
|
|
7974
8006
|
});
|
|
7975
|
-
const _hoisted_1$
|
|
8007
|
+
const _hoisted_1$16 = {
|
|
7976
8008
|
id: "lupa-search-box-suggestions",
|
|
7977
8009
|
"data-cy": "lupa-search-box-suggestions"
|
|
7978
8010
|
};
|
|
7979
|
-
const _sfc_main$
|
|
8011
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
7980
8012
|
__name: "SearchBoxSuggestions",
|
|
7981
8013
|
props: {
|
|
7982
8014
|
items: {},
|
|
@@ -8036,9 +8068,9 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
8036
8068
|
});
|
|
8037
8069
|
});
|
|
8038
8070
|
return (_ctx, _cache) => {
|
|
8039
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8071
|
+
return openBlock(), createElementBlock("div", _hoisted_1$16, [
|
|
8040
8072
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
8041
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8073
|
+
return openBlock(), createBlock(_sfc_main$1e, {
|
|
8042
8074
|
key: getSuggestionKey(item),
|
|
8043
8075
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
8044
8076
|
suggestion: item,
|
|
@@ -8066,7 +8098,7 @@ const debounce$1 = (func, timeout) => {
|
|
|
8066
8098
|
}, timeout);
|
|
8067
8099
|
};
|
|
8068
8100
|
};
|
|
8069
|
-
const _sfc_main$
|
|
8101
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
8070
8102
|
__name: "SearchBoxSuggestionsWrapper",
|
|
8071
8103
|
props: {
|
|
8072
8104
|
panel: {},
|
|
@@ -8107,7 +8139,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
8107
8139
|
};
|
|
8108
8140
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
8109
8141
|
return (_ctx, _cache) => {
|
|
8110
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8142
|
+
return openBlock(), createBlock(_sfc_main$1d, {
|
|
8111
8143
|
items: searchResult.value,
|
|
8112
8144
|
highlight: _ctx.panel.highlight,
|
|
8113
8145
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -8185,8 +8217,8 @@ const useDynamicDataStore = defineStore("dynamicData", () => {
|
|
|
8185
8217
|
});
|
|
8186
8218
|
return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
|
|
8187
8219
|
});
|
|
8188
|
-
const _hoisted_1$
|
|
8189
|
-
const _sfc_main$
|
|
8220
|
+
const _hoisted_1$15 = ["src"];
|
|
8221
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
8190
8222
|
__name: "ProductImage",
|
|
8191
8223
|
props: {
|
|
8192
8224
|
item: {},
|
|
@@ -8234,12 +8266,12 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
8234
8266
|
class: normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
|
|
8235
8267
|
src: finalUrl.value,
|
|
8236
8268
|
onError: replaceWithPlaceholder
|
|
8237
|
-
}, null, 42, _hoisted_1$
|
|
8269
|
+
}, null, 42, _hoisted_1$15)
|
|
8238
8270
|
], 2);
|
|
8239
8271
|
};
|
|
8240
8272
|
}
|
|
8241
8273
|
});
|
|
8242
|
-
const _sfc_main$
|
|
8274
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
8243
8275
|
__name: "SearchBoxProductImage",
|
|
8244
8276
|
props: {
|
|
8245
8277
|
item: {},
|
|
@@ -8247,7 +8279,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
8247
8279
|
},
|
|
8248
8280
|
setup(__props) {
|
|
8249
8281
|
return (_ctx, _cache) => {
|
|
8250
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8282
|
+
return openBlock(), createBlock(_sfc_main$1b, {
|
|
8251
8283
|
item: _ctx.item,
|
|
8252
8284
|
options: _ctx.options,
|
|
8253
8285
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -8256,12 +8288,12 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
8256
8288
|
};
|
|
8257
8289
|
}
|
|
8258
8290
|
});
|
|
8259
|
-
const _hoisted_1$
|
|
8260
|
-
const _hoisted_2$
|
|
8291
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
8292
|
+
const _hoisted_2$L = {
|
|
8261
8293
|
key: 1,
|
|
8262
8294
|
class: "lupa-search-box-product-title"
|
|
8263
8295
|
};
|
|
8264
|
-
const _sfc_main$
|
|
8296
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
8265
8297
|
__name: "SearchBoxProductTitle",
|
|
8266
8298
|
props: {
|
|
8267
8299
|
item: {},
|
|
@@ -8281,18 +8313,18 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
8281
8313
|
key: 0,
|
|
8282
8314
|
class: "lupa-search-box-product-title",
|
|
8283
8315
|
innerHTML: title.value
|
|
8284
|
-
}, null, 8, _hoisted_1$
|
|
8316
|
+
}, null, 8, _hoisted_1$14)) : (openBlock(), createElementBlock("div", _hoisted_2$L, [
|
|
8285
8317
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
8286
8318
|
]));
|
|
8287
8319
|
};
|
|
8288
8320
|
}
|
|
8289
8321
|
});
|
|
8290
|
-
const _hoisted_1$
|
|
8291
|
-
const _hoisted_2$
|
|
8322
|
+
const _hoisted_1$13 = ["innerHTML"];
|
|
8323
|
+
const _hoisted_2$K = {
|
|
8292
8324
|
key: 1,
|
|
8293
8325
|
class: "lupa-search-box-product-description"
|
|
8294
8326
|
};
|
|
8295
|
-
const _sfc_main$
|
|
8327
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
8296
8328
|
__name: "SearchBoxProductDescription",
|
|
8297
8329
|
props: {
|
|
8298
8330
|
item: {},
|
|
@@ -8312,12 +8344,12 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
8312
8344
|
key: 0,
|
|
8313
8345
|
class: "lupa-search-box-product-description",
|
|
8314
8346
|
innerHTML: description.value
|
|
8315
|
-
}, null, 8, _hoisted_1$
|
|
8347
|
+
}, null, 8, _hoisted_1$13)) : (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(description.value), 1));
|
|
8316
8348
|
};
|
|
8317
8349
|
}
|
|
8318
8350
|
});
|
|
8319
|
-
const _hoisted_1$
|
|
8320
|
-
const _sfc_main$
|
|
8351
|
+
const _hoisted_1$12 = { class: "lupa-search-box-product-price" };
|
|
8352
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
8321
8353
|
__name: "SearchBoxProductPrice",
|
|
8322
8354
|
props: {
|
|
8323
8355
|
item: {},
|
|
@@ -8335,14 +8367,14 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
8335
8367
|
);
|
|
8336
8368
|
});
|
|
8337
8369
|
return (_ctx, _cache) => {
|
|
8338
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8370
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
8339
8371
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
8340
8372
|
]);
|
|
8341
8373
|
};
|
|
8342
8374
|
}
|
|
8343
8375
|
});
|
|
8344
|
-
const _hoisted_1$
|
|
8345
|
-
const _sfc_main$
|
|
8376
|
+
const _hoisted_1$11 = { class: "lupa-search-box-product-regular-price" };
|
|
8377
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
8346
8378
|
__name: "SearchBoxProductRegularPrice",
|
|
8347
8379
|
props: {
|
|
8348
8380
|
item: {},
|
|
@@ -8360,16 +8392,16 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
8360
8392
|
);
|
|
8361
8393
|
});
|
|
8362
8394
|
return (_ctx, _cache) => {
|
|
8363
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8395
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, toDisplayString(price.value), 1);
|
|
8364
8396
|
};
|
|
8365
8397
|
}
|
|
8366
8398
|
});
|
|
8367
|
-
const _hoisted_1
|
|
8368
|
-
const _hoisted_2$
|
|
8399
|
+
const _hoisted_1$10 = ["innerHTML"];
|
|
8400
|
+
const _hoisted_2$J = { key: 0 };
|
|
8369
8401
|
const _hoisted_3$y = { key: 1 };
|
|
8370
8402
|
const _hoisted_4$p = { class: "lupa-search-box-custom-label" };
|
|
8371
8403
|
const _hoisted_5$d = { class: "lupa-search-box-custom-text" };
|
|
8372
|
-
const _sfc_main$
|
|
8404
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
8373
8405
|
__name: "SearchBoxProductCustom",
|
|
8374
8406
|
props: {
|
|
8375
8407
|
item: {},
|
|
@@ -8395,11 +8427,11 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
8395
8427
|
key: 0,
|
|
8396
8428
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
8397
8429
|
innerHTML: text.value
|
|
8398
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1
|
|
8430
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$10)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
8399
8431
|
key: 1,
|
|
8400
8432
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
8401
8433
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
8402
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
8434
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$J, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
|
|
8403
8435
|
createBaseVNode("div", _hoisted_4$p, toDisplayString(label.value), 1),
|
|
8404
8436
|
createBaseVNode("div", _hoisted_5$d, toDisplayString(text.value), 1)
|
|
8405
8437
|
]))
|
|
@@ -8407,8 +8439,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
8407
8439
|
};
|
|
8408
8440
|
}
|
|
8409
8441
|
});
|
|
8410
|
-
const _hoisted_1
|
|
8411
|
-
const _sfc_main$
|
|
8442
|
+
const _hoisted_1$$ = ["innerHTML"];
|
|
8443
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
8412
8444
|
__name: "SearchBoxProductCustomHtml",
|
|
8413
8445
|
props: {
|
|
8414
8446
|
item: {},
|
|
@@ -8428,7 +8460,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
8428
8460
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
8429
8461
|
class: className.value,
|
|
8430
8462
|
innerHTML: text.value
|
|
8431
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1
|
|
8463
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$$);
|
|
8432
8464
|
};
|
|
8433
8465
|
}
|
|
8434
8466
|
});
|
|
@@ -8623,10 +8655,10 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
8623
8655
|
setLoading
|
|
8624
8656
|
};
|
|
8625
8657
|
});
|
|
8626
|
-
const _hoisted_1$
|
|
8627
|
-
const _hoisted_2$
|
|
8658
|
+
const _hoisted_1$_ = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
8659
|
+
const _hoisted_2$I = { class: "lupa-search-box-product-addtocart" };
|
|
8628
8660
|
const _hoisted_3$x = ["onClick", "disabled"];
|
|
8629
|
-
const _sfc_main$
|
|
8661
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
8630
8662
|
__name: "SearchBoxProductAddToCart",
|
|
8631
8663
|
props: {
|
|
8632
8664
|
item: {},
|
|
@@ -8653,8 +8685,8 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
8653
8685
|
loading.value = false;
|
|
8654
8686
|
});
|
|
8655
8687
|
return (_ctx, _cache) => {
|
|
8656
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8657
|
-
createBaseVNode("div", _hoisted_2$
|
|
8688
|
+
return openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
8689
|
+
createBaseVNode("div", _hoisted_2$I, [
|
|
8658
8690
|
createBaseVNode("button", {
|
|
8659
8691
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
8660
8692
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
@@ -8669,17 +8701,17 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
8669
8701
|
});
|
|
8670
8702
|
const __default__$4 = {
|
|
8671
8703
|
components: {
|
|
8672
|
-
SearchBoxProductImage: _sfc_main$
|
|
8673
|
-
SearchBoxProductTitle: _sfc_main$
|
|
8674
|
-
SearchBoxProductDescription: _sfc_main$
|
|
8675
|
-
SearchBoxProductPrice: _sfc_main$
|
|
8676
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
8677
|
-
SearchBoxProductCustom: _sfc_main$
|
|
8678
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
8679
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
8704
|
+
SearchBoxProductImage: _sfc_main$1a,
|
|
8705
|
+
SearchBoxProductTitle: _sfc_main$19,
|
|
8706
|
+
SearchBoxProductDescription: _sfc_main$18,
|
|
8707
|
+
SearchBoxProductPrice: _sfc_main$17,
|
|
8708
|
+
SearchBoxProductRegularPrice: _sfc_main$16,
|
|
8709
|
+
SearchBoxProductCustom: _sfc_main$15,
|
|
8710
|
+
SearchBoxProductCustomHtml: _sfc_main$14,
|
|
8711
|
+
SearchBoxProductAddToCart: _sfc_main$13
|
|
8680
8712
|
}
|
|
8681
8713
|
};
|
|
8682
|
-
const _sfc_main$
|
|
8714
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
8683
8715
|
__name: "SearchBoxProductElement",
|
|
8684
8716
|
props: {
|
|
8685
8717
|
item: {},
|
|
@@ -8793,14 +8825,14 @@ const useTrackingStore = defineStore("tracking", () => {
|
|
|
8793
8825
|
};
|
|
8794
8826
|
return { trackSearch, trackResults, trackEvent };
|
|
8795
8827
|
});
|
|
8796
|
-
const _hoisted_1$
|
|
8797
|
-
const _hoisted_2$
|
|
8828
|
+
const _hoisted_1$Z = ["href"];
|
|
8829
|
+
const _hoisted_2$H = { class: "lupa-search-box-product-image-section" };
|
|
8798
8830
|
const _hoisted_3$w = { class: "lupa-search-box-product-details-section" };
|
|
8799
8831
|
const _hoisted_4$o = {
|
|
8800
8832
|
key: 0,
|
|
8801
8833
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
8802
8834
|
};
|
|
8803
|
-
const _sfc_main$
|
|
8835
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
8804
8836
|
__name: "SearchBoxProduct",
|
|
8805
8837
|
props: {
|
|
8806
8838
|
item: {},
|
|
@@ -8893,9 +8925,9 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
8893
8925
|
href: link.value,
|
|
8894
8926
|
onClick: handleClick
|
|
8895
8927
|
}, [
|
|
8896
|
-
createBaseVNode("div", _hoisted_2$
|
|
8928
|
+
createBaseVNode("div", _hoisted_2$H, [
|
|
8897
8929
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
8898
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8930
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
8899
8931
|
class: "lupa-search-box-product-element",
|
|
8900
8932
|
item: _ctx.item,
|
|
8901
8933
|
element,
|
|
@@ -8907,7 +8939,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
8907
8939
|
]),
|
|
8908
8940
|
createBaseVNode("div", _hoisted_3$w, [
|
|
8909
8941
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
8910
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8942
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
8911
8943
|
class: "lupa-search-box-product-element",
|
|
8912
8944
|
item: _ctx.item,
|
|
8913
8945
|
element,
|
|
@@ -8918,7 +8950,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
8918
8950
|
}), 128))
|
|
8919
8951
|
]),
|
|
8920
8952
|
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
|
|
8921
|
-
createVNode(_sfc_main$
|
|
8953
|
+
createVNode(_sfc_main$12, {
|
|
8922
8954
|
class: "lupa-search-box-product-element",
|
|
8923
8955
|
item: _ctx.item,
|
|
8924
8956
|
element: addToCartElement.value,
|
|
@@ -8927,12 +8959,12 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
8927
8959
|
isInStock: isInStock.value
|
|
8928
8960
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
8929
8961
|
])) : createCommentVNode("", true)
|
|
8930
|
-
], 10, _hoisted_1$
|
|
8962
|
+
], 10, _hoisted_1$Z);
|
|
8931
8963
|
};
|
|
8932
8964
|
}
|
|
8933
8965
|
});
|
|
8934
|
-
const _hoisted_1$
|
|
8935
|
-
const _sfc_main
|
|
8966
|
+
const _hoisted_1$Y = { id: "lupa-search-box-products" };
|
|
8967
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
8936
8968
|
__name: "SearchBoxProducts",
|
|
8937
8969
|
props: {
|
|
8938
8970
|
items: {},
|
|
@@ -8952,7 +8984,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
8952
8984
|
return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
|
|
8953
8985
|
});
|
|
8954
8986
|
return (_ctx, _cache) => {
|
|
8955
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8987
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Y, [
|
|
8956
8988
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
8957
8989
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
8958
8990
|
key: index,
|
|
@@ -8964,7 +8996,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
8964
8996
|
onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
|
|
8965
8997
|
});
|
|
8966
8998
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
8967
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8999
|
+
return openBlock(), createBlock(_sfc_main$11, {
|
|
8968
9000
|
key: index,
|
|
8969
9001
|
item,
|
|
8970
9002
|
panelOptions: _ctx.panelOptions,
|
|
@@ -8978,7 +9010,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
8978
9010
|
};
|
|
8979
9011
|
}
|
|
8980
9012
|
});
|
|
8981
|
-
const _sfc_main
|
|
9013
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
8982
9014
|
__name: "SearchBoxProductsWrapper",
|
|
8983
9015
|
props: {
|
|
8984
9016
|
panel: {},
|
|
@@ -9030,7 +9062,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
9030
9062
|
const getItemsDebounced = debounce$1(getItems, props.debounce);
|
|
9031
9063
|
return (_ctx, _cache) => {
|
|
9032
9064
|
var _a, _b;
|
|
9033
|
-
return openBlock(), createBlock(_sfc_main
|
|
9065
|
+
return openBlock(), createBlock(_sfc_main$10, {
|
|
9034
9066
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
9035
9067
|
panelOptions: _ctx.panel,
|
|
9036
9068
|
labels: _ctx.labels,
|
|
@@ -9048,11 +9080,11 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
9048
9080
|
};
|
|
9049
9081
|
}
|
|
9050
9082
|
});
|
|
9051
|
-
const _hoisted_1$
|
|
9083
|
+
const _hoisted_1$X = {
|
|
9052
9084
|
key: 0,
|
|
9053
9085
|
id: "lupa-search-box-panel"
|
|
9054
9086
|
};
|
|
9055
|
-
const _hoisted_2$
|
|
9087
|
+
const _hoisted_2$G = {
|
|
9056
9088
|
class: "lupa-main-panel",
|
|
9057
9089
|
"data-cy": "lupa-main-panel"
|
|
9058
9090
|
};
|
|
@@ -9063,11 +9095,11 @@ const _hoisted_4$n = {
|
|
|
9063
9095
|
};
|
|
9064
9096
|
const __default__$3 = {
|
|
9065
9097
|
components: {
|
|
9066
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
9067
|
-
SearchBoxProductsWrapper: _sfc_main
|
|
9098
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1c,
|
|
9099
|
+
SearchBoxProductsWrapper: _sfc_main$$
|
|
9068
9100
|
}
|
|
9069
9101
|
};
|
|
9070
|
-
const _sfc_main$
|
|
9102
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
9071
9103
|
__name: "SearchBoxMainPanel",
|
|
9072
9104
|
props: {
|
|
9073
9105
|
options: {},
|
|
@@ -9094,7 +9126,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
9094
9126
|
const panels = computed(() => props.options.panels);
|
|
9095
9127
|
const sdkOptions = computed(() => props.options.options);
|
|
9096
9128
|
const searchBoxStore = useSearchBoxStore();
|
|
9097
|
-
const { suggestionResults } = storeToRefs(searchBoxStore);
|
|
9129
|
+
const { suggestionResults, hasAnyResults } = storeToRefs(searchBoxStore);
|
|
9098
9130
|
const displayResults = computed(
|
|
9099
9131
|
() => {
|
|
9100
9132
|
var _a, _b;
|
|
@@ -9181,8 +9213,8 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
9181
9213
|
ref_key: "panelContainer",
|
|
9182
9214
|
ref: panelContainer
|
|
9183
9215
|
}, [
|
|
9184
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9185
|
-
createBaseVNode("div", _hoisted_2$
|
|
9216
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
9217
|
+
createBaseVNode("div", _hoisted_2$G, [
|
|
9186
9218
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayPanels.value, (panel, index) => {
|
|
9187
9219
|
return openBlock(), createElementBlock("div", {
|
|
9188
9220
|
key: index,
|
|
@@ -9214,13 +9246,18 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
9214
9246
|
], 10, _hoisted_3$v);
|
|
9215
9247
|
}), 128))
|
|
9216
9248
|
]),
|
|
9217
|
-
|
|
9249
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1f, {
|
|
9250
|
+
key: 0,
|
|
9251
|
+
labels: labels.value
|
|
9252
|
+
}, null, 8, ["labels"])) : createCommentVNode("", true),
|
|
9253
|
+
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1i, {
|
|
9254
|
+
key: 1,
|
|
9218
9255
|
labels: labels.value,
|
|
9219
9256
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
9220
9257
|
onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
|
|
9221
|
-
}, null, 8, ["labels", "showTotalCount"])
|
|
9258
|
+
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
9222
9259
|
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
|
|
9223
|
-
createVNode(_sfc_main$
|
|
9260
|
+
createVNode(_sfc_main$1g, {
|
|
9224
9261
|
options: _ctx.options.history,
|
|
9225
9262
|
history: history.value,
|
|
9226
9263
|
onGoToResults: handleGoToResults,
|
|
@@ -9245,9 +9282,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
|
|
|
9245
9282
|
const elements = getElements(triggers);
|
|
9246
9283
|
elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
|
|
9247
9284
|
};
|
|
9248
|
-
const _hoisted_1$
|
|
9249
|
-
const _hoisted_2$
|
|
9250
|
-
const _sfc_main$
|
|
9285
|
+
const _hoisted_1$W = { id: "lupa-search-box" };
|
|
9286
|
+
const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
|
|
9287
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
9251
9288
|
__name: "SearchBox",
|
|
9252
9289
|
props: {
|
|
9253
9290
|
options: {},
|
|
@@ -9286,7 +9323,9 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
9286
9323
|
"links",
|
|
9287
9324
|
"options",
|
|
9288
9325
|
"debounce",
|
|
9289
|
-
"showTotalCount"
|
|
9326
|
+
"showTotalCount",
|
|
9327
|
+
"hideMoreResultsButtonOnNoResults",
|
|
9328
|
+
"showNoResultsPanel"
|
|
9290
9329
|
])
|
|
9291
9330
|
);
|
|
9292
9331
|
const searchTriggers = computed(() => {
|
|
@@ -9480,9 +9519,9 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
9480
9519
|
};
|
|
9481
9520
|
return (_ctx, _cache) => {
|
|
9482
9521
|
var _a2;
|
|
9483
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9484
|
-
createBaseVNode("div", _hoisted_2$
|
|
9485
|
-
createVNode(_sfc_main$
|
|
9522
|
+
return openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
9523
|
+
createBaseVNode("div", _hoisted_2$F, [
|
|
9524
|
+
createVNode(_sfc_main$1j, {
|
|
9486
9525
|
options: inputOptions.value,
|
|
9487
9526
|
suggestedValue: suggestedValue.value,
|
|
9488
9527
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -9493,7 +9532,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
9493
9532
|
onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
|
|
9494
9533
|
onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
9495
9534
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
9496
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
9535
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$_, {
|
|
9497
9536
|
key: 0,
|
|
9498
9537
|
options: panelOptions.value,
|
|
9499
9538
|
inputValue: inputValue.value,
|
|
@@ -9580,11 +9619,11 @@ const getSearchParams = (url, params, baseUrl) => {
|
|
|
9580
9619
|
}
|
|
9581
9620
|
return searchParams;
|
|
9582
9621
|
};
|
|
9583
|
-
const _hoisted_1$
|
|
9622
|
+
const _hoisted_1$V = {
|
|
9584
9623
|
key: 0,
|
|
9585
9624
|
id: "lupa-search-results-did-you-mean"
|
|
9586
9625
|
};
|
|
9587
|
-
const _hoisted_2$
|
|
9626
|
+
const _hoisted_2$E = {
|
|
9588
9627
|
key: 0,
|
|
9589
9628
|
"data-cy": "suggested-search-text-label"
|
|
9590
9629
|
};
|
|
@@ -9593,7 +9632,7 @@ const _hoisted_3$u = {
|
|
|
9593
9632
|
"data-cy": "did-you-mean-label"
|
|
9594
9633
|
};
|
|
9595
9634
|
const _hoisted_4$m = { key: 1 };
|
|
9596
|
-
const _sfc_main$
|
|
9635
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
9597
9636
|
__name: "SearchResultsDidYouMean",
|
|
9598
9637
|
props: {
|
|
9599
9638
|
labels: {}
|
|
@@ -9625,8 +9664,8 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
9625
9664
|
paramStore.goToResults({ searchText, facet });
|
|
9626
9665
|
};
|
|
9627
9666
|
return (_ctx, _cache) => {
|
|
9628
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9629
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9667
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
9668
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
|
|
9630
9669
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
9631
9670
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
9632
9671
|
createBaseVNode("span", {
|
|
@@ -9651,12 +9690,12 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
9651
9690
|
};
|
|
9652
9691
|
}
|
|
9653
9692
|
});
|
|
9654
|
-
const _hoisted_1$
|
|
9693
|
+
const _hoisted_1$U = {
|
|
9655
9694
|
key: 0,
|
|
9656
9695
|
class: "lupa-search-results-summary"
|
|
9657
9696
|
};
|
|
9658
|
-
const _hoisted_2$
|
|
9659
|
-
const _sfc_main$
|
|
9697
|
+
const _hoisted_2$D = ["innerHTML"];
|
|
9698
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
9660
9699
|
__name: "SearchResultsSummary",
|
|
9661
9700
|
props: {
|
|
9662
9701
|
label: {},
|
|
@@ -9671,8 +9710,8 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
9671
9710
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
9672
9711
|
});
|
|
9673
9712
|
return (_ctx, _cache) => {
|
|
9674
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9675
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
9713
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
9714
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$D),
|
|
9676
9715
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
9677
9716
|
key: 0,
|
|
9678
9717
|
class: "lupa-filter-clear",
|
|
@@ -9683,18 +9722,18 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
9683
9722
|
};
|
|
9684
9723
|
}
|
|
9685
9724
|
});
|
|
9686
|
-
const _hoisted_1$
|
|
9725
|
+
const _hoisted_1$T = {
|
|
9687
9726
|
key: 0,
|
|
9688
9727
|
class: "lupa-result-page-title",
|
|
9689
9728
|
"data-cy": "lupa-result-page-title"
|
|
9690
9729
|
};
|
|
9691
|
-
const _hoisted_2$
|
|
9730
|
+
const _hoisted_2$C = { key: 0 };
|
|
9692
9731
|
const _hoisted_3$t = {
|
|
9693
9732
|
key: 1,
|
|
9694
9733
|
class: "lupa-results-total-count"
|
|
9695
9734
|
};
|
|
9696
9735
|
const _hoisted_4$l = ["innerHTML"];
|
|
9697
|
-
const _sfc_main$
|
|
9736
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
9698
9737
|
__name: "SearchResultsTitle",
|
|
9699
9738
|
props: {
|
|
9700
9739
|
options: {},
|
|
@@ -9729,12 +9768,12 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
9729
9768
|
});
|
|
9730
9769
|
return (_ctx, _cache) => {
|
|
9731
9770
|
return openBlock(), createElementBlock("div", null, [
|
|
9732
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
9771
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$T, [
|
|
9733
9772
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
9734
|
-
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9773
|
+
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
9735
9774
|
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
|
|
9736
9775
|
])) : createCommentVNode("", true),
|
|
9737
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
9776
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$X, {
|
|
9738
9777
|
key: 1,
|
|
9739
9778
|
label: summaryLabel.value
|
|
9740
9779
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -9747,8 +9786,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
9747
9786
|
};
|
|
9748
9787
|
}
|
|
9749
9788
|
});
|
|
9750
|
-
const _hoisted_1$
|
|
9751
|
-
const _hoisted_2$
|
|
9789
|
+
const _hoisted_1$S = { class: "lupa-search-result-filter-value" };
|
|
9790
|
+
const _hoisted_2$B = {
|
|
9752
9791
|
class: "lupa-current-filter-label",
|
|
9753
9792
|
"data-cy": "lupa-current-filter-label"
|
|
9754
9793
|
};
|
|
@@ -9756,7 +9795,7 @@ const _hoisted_3$s = {
|
|
|
9756
9795
|
class: "lupa-current-filter-value",
|
|
9757
9796
|
"data-cy": "lupa-current-filter-value"
|
|
9758
9797
|
};
|
|
9759
|
-
const _sfc_main$
|
|
9798
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
9760
9799
|
__name: "CurrentFilterDisplay",
|
|
9761
9800
|
props: {
|
|
9762
9801
|
filter: {}
|
|
@@ -9768,19 +9807,19 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
9768
9807
|
emit2("remove", { filter: props.filter });
|
|
9769
9808
|
};
|
|
9770
9809
|
return (_ctx, _cache) => {
|
|
9771
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9810
|
+
return openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
9772
9811
|
createBaseVNode("div", {
|
|
9773
9812
|
class: "lupa-current-filter-action",
|
|
9774
9813
|
onClick: handleClick
|
|
9775
9814
|
}, "⨉"),
|
|
9776
|
-
createBaseVNode("div", _hoisted_2$
|
|
9815
|
+
createBaseVNode("div", _hoisted_2$B, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
9777
9816
|
createBaseVNode("div", _hoisted_3$s, toDisplayString(_ctx.filter.value), 1)
|
|
9778
9817
|
]);
|
|
9779
9818
|
};
|
|
9780
9819
|
}
|
|
9781
9820
|
});
|
|
9782
|
-
const _hoisted_1$
|
|
9783
|
-
const _hoisted_2$
|
|
9821
|
+
const _hoisted_1$R = { class: "lupa-filter-title-text" };
|
|
9822
|
+
const _hoisted_2$A = {
|
|
9784
9823
|
key: 0,
|
|
9785
9824
|
class: "lupa-filter-count"
|
|
9786
9825
|
};
|
|
@@ -9789,7 +9828,7 @@ const _hoisted_3$r = {
|
|
|
9789
9828
|
class: "filter-values"
|
|
9790
9829
|
};
|
|
9791
9830
|
const _hoisted_4$k = { class: "lupa-current-filter-list" };
|
|
9792
|
-
const _sfc_main$
|
|
9831
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
9793
9832
|
__name: "CurrentFilters",
|
|
9794
9833
|
props: {
|
|
9795
9834
|
options: {},
|
|
@@ -9844,9 +9883,9 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
9844
9883
|
class: "lupa-current-filter-title",
|
|
9845
9884
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
9846
9885
|
}, [
|
|
9847
|
-
createBaseVNode("div", _hoisted_1$
|
|
9886
|
+
createBaseVNode("div", _hoisted_1$R, [
|
|
9848
9887
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
9849
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9888
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$A, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
9850
9889
|
]),
|
|
9851
9890
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
9852
9891
|
key: 0,
|
|
@@ -9856,7 +9895,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
9856
9895
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
|
|
9857
9896
|
createBaseVNode("div", _hoisted_4$k, [
|
|
9858
9897
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
|
|
9859
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9898
|
+
return openBlock(), createBlock(_sfc_main$V, {
|
|
9860
9899
|
key: filter.key + "_" + filter.value,
|
|
9861
9900
|
filter,
|
|
9862
9901
|
onRemove: handleRemove
|
|
@@ -9873,8 +9912,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
9873
9912
|
};
|
|
9874
9913
|
}
|
|
9875
9914
|
});
|
|
9876
|
-
const _hoisted_1$
|
|
9877
|
-
const _sfc_main$
|
|
9915
|
+
const _hoisted_1$Q = ["href"];
|
|
9916
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
9878
9917
|
__name: "CategoryFilterItem",
|
|
9879
9918
|
props: {
|
|
9880
9919
|
options: {},
|
|
@@ -9911,20 +9950,20 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
9911
9950
|
"data-cy": "lupa-child-category-item",
|
|
9912
9951
|
href: urlLink.value,
|
|
9913
9952
|
onClick: handleNavigation
|
|
9914
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
9953
|
+
}, toDisplayString(title.value), 9, _hoisted_1$Q)
|
|
9915
9954
|
], 2);
|
|
9916
9955
|
};
|
|
9917
9956
|
}
|
|
9918
9957
|
});
|
|
9919
|
-
const _hoisted_1$
|
|
9958
|
+
const _hoisted_1$P = {
|
|
9920
9959
|
class: "lupa-category-filter",
|
|
9921
9960
|
"data-cy": "lupa-category-filter"
|
|
9922
9961
|
};
|
|
9923
|
-
const _hoisted_2$
|
|
9962
|
+
const _hoisted_2$z = { class: "lupa-category-back" };
|
|
9924
9963
|
const _hoisted_3$q = ["href"];
|
|
9925
9964
|
const _hoisted_4$j = ["href"];
|
|
9926
9965
|
const _hoisted_5$c = { class: "lupa-child-category-list" };
|
|
9927
|
-
const _sfc_main$
|
|
9966
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
9928
9967
|
__name: "CategoryFilter",
|
|
9929
9968
|
props: {
|
|
9930
9969
|
options: {}
|
|
@@ -10010,8 +10049,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10010
10049
|
};
|
|
10011
10050
|
__expose({ fetch: fetch2 });
|
|
10012
10051
|
return (_ctx, _cache) => {
|
|
10013
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10014
|
-
createBaseVNode("div", _hoisted_2$
|
|
10052
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
10053
|
+
createBaseVNode("div", _hoisted_2$z, [
|
|
10015
10054
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
10016
10055
|
key: 0,
|
|
10017
10056
|
"data-cy": "lupa-category-back",
|
|
@@ -10031,7 +10070,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10031
10070
|
], 2),
|
|
10032
10071
|
createBaseVNode("div", _hoisted_5$c, [
|
|
10033
10072
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
10034
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10073
|
+
return openBlock(), createBlock(_sfc_main$T, {
|
|
10035
10074
|
key: getCategoryKey(child),
|
|
10036
10075
|
item: child,
|
|
10037
10076
|
options: _ctx.options
|
|
@@ -10042,11 +10081,11 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10042
10081
|
};
|
|
10043
10082
|
}
|
|
10044
10083
|
});
|
|
10045
|
-
const _hoisted_1$
|
|
10084
|
+
const _hoisted_1$O = {
|
|
10046
10085
|
class: "lupa-search-result-facet-term-values",
|
|
10047
10086
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
10048
10087
|
};
|
|
10049
|
-
const _hoisted_2$
|
|
10088
|
+
const _hoisted_2$y = ["placeholder"];
|
|
10050
10089
|
const _hoisted_3$p = { class: "lupa-terms-list" };
|
|
10051
10090
|
const _hoisted_4$i = ["onClick"];
|
|
10052
10091
|
const _hoisted_5$b = { class: "lupa-term-checkbox-wrapper" };
|
|
@@ -10058,7 +10097,7 @@ const _hoisted_8$1 = {
|
|
|
10058
10097
|
};
|
|
10059
10098
|
const _hoisted_9$1 = { key: 0 };
|
|
10060
10099
|
const _hoisted_10$1 = { key: 1 };
|
|
10061
|
-
const _sfc_main$
|
|
10100
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
10062
10101
|
__name: "TermFacet",
|
|
10063
10102
|
props: {
|
|
10064
10103
|
options: {},
|
|
@@ -10127,14 +10166,14 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
10127
10166
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
10128
10167
|
};
|
|
10129
10168
|
return (_ctx, _cache) => {
|
|
10130
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10169
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
10131
10170
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
10132
10171
|
key: 0,
|
|
10133
10172
|
class: "lupa-term-filter",
|
|
10134
10173
|
"data-cy": "lupa-term-filter",
|
|
10135
10174
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
10136
10175
|
placeholder: _ctx.options.labels.facetFilter
|
|
10137
|
-
}, null, 8, _hoisted_2$
|
|
10176
|
+
}, null, 8, _hoisted_2$y)), [
|
|
10138
10177
|
[vModelText, termFilter.value]
|
|
10139
10178
|
]) : createCommentVNode("", true),
|
|
10140
10179
|
createBaseVNode("div", _hoisted_3$p, [
|
|
@@ -11145,8 +11184,8 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
11145
11184
|
m.render = function(e, t, r, i, n, o) {
|
|
11146
11185
|
return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
|
|
11147
11186
|
}, m.__file = "src/Slider.vue";
|
|
11148
|
-
const _hoisted_1$
|
|
11149
|
-
const _hoisted_2$
|
|
11187
|
+
const _hoisted_1$N = { class: "lupa-search-result-facet-stats-values" };
|
|
11188
|
+
const _hoisted_2$x = {
|
|
11150
11189
|
key: 0,
|
|
11151
11190
|
class: "lupa-stats-facet-summary"
|
|
11152
11191
|
};
|
|
@@ -11173,7 +11212,7 @@ const _hoisted_13 = {
|
|
|
11173
11212
|
key: 2,
|
|
11174
11213
|
class: "lupa-stats-slider-wrapper"
|
|
11175
11214
|
};
|
|
11176
|
-
const _sfc_main$
|
|
11215
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
11177
11216
|
__name: "StatsFacet",
|
|
11178
11217
|
props: {
|
|
11179
11218
|
options: {},
|
|
@@ -11321,8 +11360,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
11321
11360
|
innerSliderRange.value = value;
|
|
11322
11361
|
};
|
|
11323
11362
|
return (_ctx, _cache) => {
|
|
11324
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11325
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11363
|
+
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
11364
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
|
|
11326
11365
|
createBaseVNode("div", null, [
|
|
11327
11366
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
11328
11367
|
createBaseVNode("div", _hoisted_5$a, [
|
|
@@ -11385,8 +11424,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
11385
11424
|
};
|
|
11386
11425
|
}
|
|
11387
11426
|
});
|
|
11388
|
-
const _hoisted_1$
|
|
11389
|
-
const _hoisted_2$
|
|
11427
|
+
const _hoisted_1$M = { class: "lupa-term-checkbox-wrapper" };
|
|
11428
|
+
const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
|
|
11390
11429
|
const _hoisted_3$n = { class: "lupa-term-label" };
|
|
11391
11430
|
const _hoisted_4$g = {
|
|
11392
11431
|
key: 0,
|
|
@@ -11396,7 +11435,7 @@ const _hoisted_5$9 = {
|
|
|
11396
11435
|
key: 0,
|
|
11397
11436
|
class: "lupa-facet-level"
|
|
11398
11437
|
};
|
|
11399
|
-
const _sfc_main$
|
|
11438
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
11400
11439
|
__name: "HierarchyFacetLevel",
|
|
11401
11440
|
props: {
|
|
11402
11441
|
options: {},
|
|
@@ -11442,12 +11481,12 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
11442
11481
|
"data-cy": "lupa-facet-term",
|
|
11443
11482
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
11444
11483
|
}, [
|
|
11445
|
-
createBaseVNode("div", _hoisted_1$
|
|
11484
|
+
createBaseVNode("div", _hoisted_1$M, [
|
|
11446
11485
|
createBaseVNode("span", {
|
|
11447
11486
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
11448
11487
|
}, null, 2)
|
|
11449
11488
|
]),
|
|
11450
|
-
createBaseVNode("div", _hoisted_2$
|
|
11489
|
+
createBaseVNode("div", _hoisted_2$w, [
|
|
11451
11490
|
createBaseVNode("span", _hoisted_3$n, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
11452
11491
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
11453
11492
|
])
|
|
@@ -11468,13 +11507,13 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
11468
11507
|
};
|
|
11469
11508
|
}
|
|
11470
11509
|
});
|
|
11471
|
-
const _hoisted_1$
|
|
11510
|
+
const _hoisted_1$L = {
|
|
11472
11511
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
11473
11512
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
11474
11513
|
};
|
|
11475
|
-
const _hoisted_2$
|
|
11514
|
+
const _hoisted_2$v = { key: 0 };
|
|
11476
11515
|
const _hoisted_3$m = ["placeholder"];
|
|
11477
|
-
const _sfc_main$
|
|
11516
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
11478
11517
|
__name: "HierarchyFacet",
|
|
11479
11518
|
props: {
|
|
11480
11519
|
options: {},
|
|
@@ -11524,8 +11563,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
11524
11563
|
showAll.value = true;
|
|
11525
11564
|
};
|
|
11526
11565
|
return (_ctx, _cache) => {
|
|
11527
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11528
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11566
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
11567
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
|
|
11529
11568
|
withDirectives(createBaseVNode("input", {
|
|
11530
11569
|
class: "lupa-term-filter",
|
|
11531
11570
|
"data-cy": "lupa-term-filter",
|
|
@@ -11536,7 +11575,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
11536
11575
|
])
|
|
11537
11576
|
])) : createCommentVNode("", true),
|
|
11538
11577
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
11539
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11578
|
+
return openBlock(), createBlock(_sfc_main$P, {
|
|
11540
11579
|
key: item.title,
|
|
11541
11580
|
options: _ctx.options,
|
|
11542
11581
|
item,
|
|
@@ -11556,20 +11595,20 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
11556
11595
|
};
|
|
11557
11596
|
}
|
|
11558
11597
|
});
|
|
11559
|
-
const _hoisted_1$
|
|
11560
|
-
const _hoisted_2$
|
|
11598
|
+
const _hoisted_1$K = { class: "lupa-facet-label-text" };
|
|
11599
|
+
const _hoisted_2$u = {
|
|
11561
11600
|
key: 0,
|
|
11562
11601
|
class: "lupa-facet-content",
|
|
11563
11602
|
"data-cy": "lupa-facet-content"
|
|
11564
11603
|
};
|
|
11565
11604
|
const __default__$2 = {
|
|
11566
11605
|
components: {
|
|
11567
|
-
TermFacet: _sfc_main$
|
|
11568
|
-
StatsFacet: _sfc_main$
|
|
11569
|
-
HierarchyFacet: _sfc_main$
|
|
11606
|
+
TermFacet: _sfc_main$R,
|
|
11607
|
+
StatsFacet: _sfc_main$Q,
|
|
11608
|
+
HierarchyFacet: _sfc_main$O
|
|
11570
11609
|
}
|
|
11571
11610
|
};
|
|
11572
|
-
const _sfc_main$
|
|
11611
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
11573
11612
|
__name: "FacetDisplay",
|
|
11574
11613
|
props: {
|
|
11575
11614
|
options: {},
|
|
@@ -11680,12 +11719,12 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
11680
11719
|
"data-cy": "lupa-search-result-facet-label",
|
|
11681
11720
|
onClick: toggleFacet
|
|
11682
11721
|
}, [
|
|
11683
|
-
createBaseVNode("div", _hoisted_1$
|
|
11722
|
+
createBaseVNode("div", _hoisted_1$K, toDisplayString(facet.value.label), 1),
|
|
11684
11723
|
createBaseVNode("div", {
|
|
11685
11724
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
11686
11725
|
}, null, 2)
|
|
11687
11726
|
], 2),
|
|
11688
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11727
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
|
|
11689
11728
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
11690
11729
|
facet: facet.value,
|
|
11691
11730
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -11703,12 +11742,12 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
11703
11742
|
};
|
|
11704
11743
|
}
|
|
11705
11744
|
}));
|
|
11706
|
-
const _hoisted_1$
|
|
11707
|
-
const _hoisted_2$
|
|
11745
|
+
const _hoisted_1$J = { class: "lupa-search-result-facet-section" };
|
|
11746
|
+
const _hoisted_2$t = {
|
|
11708
11747
|
key: 0,
|
|
11709
11748
|
class: "lupa-facets-title"
|
|
11710
11749
|
};
|
|
11711
|
-
const _sfc_main$
|
|
11750
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
11712
11751
|
__name: "FacetList",
|
|
11713
11752
|
props: {
|
|
11714
11753
|
options: {},
|
|
@@ -11742,14 +11781,14 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
11742
11781
|
};
|
|
11743
11782
|
return (_ctx, _cache) => {
|
|
11744
11783
|
var _a;
|
|
11745
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11746
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11784
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
11785
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
11747
11786
|
createBaseVNode("div", {
|
|
11748
11787
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
11749
11788
|
}, [
|
|
11750
11789
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
11751
11790
|
var _a2;
|
|
11752
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11791
|
+
return openBlock(), createBlock(_sfc_main$N, {
|
|
11753
11792
|
key: facet.key,
|
|
11754
11793
|
facet,
|
|
11755
11794
|
currentFilters: currentFiltersValue.value,
|
|
@@ -11764,8 +11803,8 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
11764
11803
|
};
|
|
11765
11804
|
}
|
|
11766
11805
|
});
|
|
11767
|
-
const _hoisted_1$
|
|
11768
|
-
const _sfc_main$
|
|
11806
|
+
const _hoisted_1$I = { class: "lupa-search-result-facets" };
|
|
11807
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
11769
11808
|
__name: "Facets",
|
|
11770
11809
|
props: {
|
|
11771
11810
|
options: {},
|
|
@@ -11811,8 +11850,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11811
11850
|
paramStore.removeParameters({ paramsToRemove: [param] });
|
|
11812
11851
|
};
|
|
11813
11852
|
return (_ctx, _cache) => {
|
|
11814
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11815
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
11853
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
11854
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$M, {
|
|
11816
11855
|
key: 0,
|
|
11817
11856
|
options: _ctx.options,
|
|
11818
11857
|
facets: regularFacets.value,
|
|
@@ -11826,11 +11865,11 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11826
11865
|
};
|
|
11827
11866
|
}
|
|
11828
11867
|
});
|
|
11829
|
-
const _hoisted_1$
|
|
11868
|
+
const _hoisted_1$H = {
|
|
11830
11869
|
id: "lupa-search-result-filters",
|
|
11831
11870
|
class: "lupa-search-result-filters"
|
|
11832
11871
|
};
|
|
11833
|
-
const _sfc_main$
|
|
11872
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
11834
11873
|
__name: "SearchResultsFilters",
|
|
11835
11874
|
props: {
|
|
11836
11875
|
options: {},
|
|
@@ -11859,19 +11898,19 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
11859
11898
|
__expose({ fetch: fetch2 });
|
|
11860
11899
|
return (_ctx, _cache) => {
|
|
11861
11900
|
var _a;
|
|
11862
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11863
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
11901
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
11902
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$U, {
|
|
11864
11903
|
key: 0,
|
|
11865
11904
|
options: _ctx.options.currentFilters,
|
|
11866
11905
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
11867
11906
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
11868
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
11907
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$S, {
|
|
11869
11908
|
key: 1,
|
|
11870
11909
|
options: _ctx.options.categories,
|
|
11871
11910
|
ref_key: "categoryFilters",
|
|
11872
11911
|
ref: categoryFilters
|
|
11873
11912
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
11874
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
11913
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
|
|
11875
11914
|
key: 2,
|
|
11876
11915
|
options: _ctx.options.facets
|
|
11877
11916
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -11879,11 +11918,11 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
11879
11918
|
};
|
|
11880
11919
|
}
|
|
11881
11920
|
});
|
|
11882
|
-
const _hoisted_1$
|
|
11921
|
+
const _hoisted_1$G = {
|
|
11883
11922
|
key: 0,
|
|
11884
11923
|
class: "lupa-mobile-filter-sidebar"
|
|
11885
11924
|
};
|
|
11886
|
-
const _hoisted_2$
|
|
11925
|
+
const _hoisted_2$s = ["onClick"];
|
|
11887
11926
|
const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
|
|
11888
11927
|
const _hoisted_4$f = { class: "lupa-sidebar-top" };
|
|
11889
11928
|
const _hoisted_5$8 = { class: "lupa-sidebar-title" };
|
|
@@ -11892,7 +11931,7 @@ const _hoisted_6$5 = {
|
|
|
11892
11931
|
class: "lupa-sidebar-filter-count"
|
|
11893
11932
|
};
|
|
11894
11933
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
11895
|
-
const _sfc_main$
|
|
11934
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
11896
11935
|
__name: "MobileFilterSidebar",
|
|
11897
11936
|
props: {
|
|
11898
11937
|
options: {}
|
|
@@ -11918,11 +11957,11 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11918
11957
|
searchResultStore.setSidebarState({ visible: false });
|
|
11919
11958
|
};
|
|
11920
11959
|
return (_ctx, _cache) => {
|
|
11921
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11960
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
11922
11961
|
createBaseVNode("div", {
|
|
11923
11962
|
class: "lupa-sidebar-close",
|
|
11924
11963
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
11925
|
-
}, null, 8, _hoisted_2$
|
|
11964
|
+
}, null, 8, _hoisted_2$s),
|
|
11926
11965
|
createBaseVNode("div", _hoisted_3$l, [
|
|
11927
11966
|
createBaseVNode("div", _hoisted_4$f, [
|
|
11928
11967
|
createBaseVNode("div", _hoisted_5$8, [
|
|
@@ -11935,7 +11974,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11935
11974
|
})
|
|
11936
11975
|
]),
|
|
11937
11976
|
createBaseVNode("div", _hoisted_7$4, [
|
|
11938
|
-
createVNode(_sfc_main$
|
|
11977
|
+
createVNode(_sfc_main$K, {
|
|
11939
11978
|
options: _ctx.options,
|
|
11940
11979
|
expandable: isActiveFiltersExpanded.value
|
|
11941
11980
|
}, null, 8, ["options", "expandable"])
|
|
@@ -11945,14 +11984,14 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11945
11984
|
};
|
|
11946
11985
|
}
|
|
11947
11986
|
});
|
|
11948
|
-
const _hoisted_1$
|
|
11949
|
-
const _hoisted_2$
|
|
11987
|
+
const _hoisted_1$F = { id: "lupa-search-results-breadcrumbs" };
|
|
11988
|
+
const _hoisted_2$r = ["href", "onClick"];
|
|
11950
11989
|
const _hoisted_3$k = {
|
|
11951
11990
|
key: 1,
|
|
11952
11991
|
class: "lupa-search-results-breadcrumb-text"
|
|
11953
11992
|
};
|
|
11954
11993
|
const _hoisted_4$e = { key: 2 };
|
|
11955
|
-
const _sfc_main$
|
|
11994
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
11956
11995
|
__name: "SearchResultsBreadcrumbs",
|
|
11957
11996
|
props: {
|
|
11958
11997
|
breadcrumbs: {}
|
|
@@ -11977,7 +12016,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11977
12016
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
11978
12017
|
};
|
|
11979
12018
|
return (_ctx, _cache) => {
|
|
11980
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12019
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
11981
12020
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
11982
12021
|
return openBlock(), createElementBlock("span", {
|
|
11983
12022
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -11991,7 +12030,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11991
12030
|
var _a;
|
|
11992
12031
|
return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
11993
12032
|
}
|
|
11994
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
12033
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$r)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
11995
12034
|
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
|
|
11996
12035
|
]);
|
|
11997
12036
|
}), 128))
|
|
@@ -11999,11 +12038,11 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11999
12038
|
};
|
|
12000
12039
|
}
|
|
12001
12040
|
});
|
|
12002
|
-
const _hoisted_1$
|
|
12041
|
+
const _hoisted_1$E = {
|
|
12003
12042
|
id: "lupa-search-result-filters",
|
|
12004
12043
|
class: "lupa-search-result-filters"
|
|
12005
12044
|
};
|
|
12006
|
-
const _sfc_main$
|
|
12045
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
12007
12046
|
__name: "FiltersTopDropdown",
|
|
12008
12047
|
props: {
|
|
12009
12048
|
options: {}
|
|
@@ -12011,8 +12050,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
12011
12050
|
setup(__props) {
|
|
12012
12051
|
return (_ctx, _cache) => {
|
|
12013
12052
|
var _a;
|
|
12014
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12015
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
12053
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
12054
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
|
|
12016
12055
|
key: 0,
|
|
12017
12056
|
options: _ctx.options.facets,
|
|
12018
12057
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -12022,8 +12061,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
12022
12061
|
};
|
|
12023
12062
|
}
|
|
12024
12063
|
});
|
|
12025
|
-
const _hoisted_1$
|
|
12026
|
-
const _sfc_main$
|
|
12064
|
+
const _hoisted_1$D = { id: "lupa-search-results-layout-selection" };
|
|
12065
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
12027
12066
|
__name: "SearchResultsLayoutSelection",
|
|
12028
12067
|
setup(__props) {
|
|
12029
12068
|
const searchResultStore = useSearchResultStore();
|
|
@@ -12034,7 +12073,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
12034
12073
|
searchResultStore.setLayout(layout2);
|
|
12035
12074
|
};
|
|
12036
12075
|
return (_ctx, _cache) => {
|
|
12037
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12076
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
12038
12077
|
createBaseVNode("div", {
|
|
12039
12078
|
class: normalizeClass([
|
|
12040
12079
|
"lupa-layout-selection-grid",
|
|
@@ -12056,11 +12095,11 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
12056
12095
|
};
|
|
12057
12096
|
}
|
|
12058
12097
|
});
|
|
12059
|
-
const _hoisted_1$
|
|
12098
|
+
const _hoisted_1$C = {
|
|
12060
12099
|
key: 0,
|
|
12061
12100
|
class: "lupa-mobile-toggle-filter-count"
|
|
12062
12101
|
};
|
|
12063
|
-
const _sfc_main$
|
|
12102
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
12064
12103
|
__name: "SearchResultsMobileToggle",
|
|
12065
12104
|
props: {
|
|
12066
12105
|
label: {},
|
|
@@ -12078,17 +12117,17 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
12078
12117
|
onClick: handleMobileToggle
|
|
12079
12118
|
}, [
|
|
12080
12119
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
12081
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
12120
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$C, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
12082
12121
|
], 2);
|
|
12083
12122
|
};
|
|
12084
12123
|
}
|
|
12085
12124
|
});
|
|
12086
|
-
const _hoisted_1$
|
|
12125
|
+
const _hoisted_1$B = {
|
|
12087
12126
|
key: 0,
|
|
12088
12127
|
id: "lupa-search-results-page-select",
|
|
12089
12128
|
"data-cy": "lupa-search-results-page-select"
|
|
12090
12129
|
};
|
|
12091
|
-
const _hoisted_2$
|
|
12130
|
+
const _hoisted_2$q = {
|
|
12092
12131
|
key: 0,
|
|
12093
12132
|
class: "lupa-page-number-separator"
|
|
12094
12133
|
};
|
|
@@ -12097,7 +12136,7 @@ const _hoisted_4$d = {
|
|
|
12097
12136
|
key: 0,
|
|
12098
12137
|
class: "lupa-page-number-separator"
|
|
12099
12138
|
};
|
|
12100
|
-
const _sfc_main$
|
|
12139
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
12101
12140
|
__name: "SearchResultsPageSelect",
|
|
12102
12141
|
props: {
|
|
12103
12142
|
lastPageLabel: {},
|
|
@@ -12159,7 +12198,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
12159
12198
|
}
|
|
12160
12199
|
};
|
|
12161
12200
|
return (_ctx, _cache) => {
|
|
12162
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
12201
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
12163
12202
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
12164
12203
|
key: 0,
|
|
12165
12204
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -12170,7 +12209,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
12170
12209
|
class: "lupa-page-number lupa-page-number-first",
|
|
12171
12210
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
12172
12211
|
}, " 1 "),
|
|
12173
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12212
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$q, "...")) : createCommentVNode("", true)
|
|
12174
12213
|
], 64)) : createCommentVNode("", true),
|
|
12175
12214
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
12176
12215
|
return openBlock(), createElementBlock("div", {
|
|
@@ -12203,13 +12242,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
12203
12242
|
};
|
|
12204
12243
|
}
|
|
12205
12244
|
});
|
|
12206
|
-
const _hoisted_1$
|
|
12245
|
+
const _hoisted_1$A = {
|
|
12207
12246
|
id: "lupa-search-results-page-size",
|
|
12208
12247
|
"data-cy": "lupa-search-results-page-size"
|
|
12209
12248
|
};
|
|
12210
|
-
const _hoisted_2$
|
|
12249
|
+
const _hoisted_2$p = { id: "lupa-select" };
|
|
12211
12250
|
const _hoisted_3$i = { class: "lupa-select-label" };
|
|
12212
|
-
const _sfc_main$
|
|
12251
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
12213
12252
|
__name: "SearchResultsPageSize",
|
|
12214
12253
|
props: {
|
|
12215
12254
|
label: {},
|
|
@@ -12226,8 +12265,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
12226
12265
|
});
|
|
12227
12266
|
};
|
|
12228
12267
|
return (_ctx, _cache) => {
|
|
12229
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12230
|
-
createBaseVNode("div", _hoisted_2$
|
|
12268
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
12269
|
+
createBaseVNode("div", _hoisted_2$p, [
|
|
12231
12270
|
createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.label), 1),
|
|
12232
12271
|
createBaseVNode("select", {
|
|
12233
12272
|
class: "lupa-select-dropdown",
|
|
@@ -12245,14 +12284,14 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
12245
12284
|
};
|
|
12246
12285
|
}
|
|
12247
12286
|
});
|
|
12248
|
-
const _hoisted_1$
|
|
12287
|
+
const _hoisted_1$z = {
|
|
12249
12288
|
id: "lupa-search-results-sort",
|
|
12250
12289
|
class: "lupa-search-results-sort"
|
|
12251
12290
|
};
|
|
12252
|
-
const _hoisted_2$
|
|
12291
|
+
const _hoisted_2$o = { id: "lupa-select" };
|
|
12253
12292
|
const _hoisted_3$h = { class: "lupa-select-label" };
|
|
12254
12293
|
const _hoisted_4$c = ["value"];
|
|
12255
|
-
const _sfc_main$
|
|
12294
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
12256
12295
|
__name: "SearchResultsSort",
|
|
12257
12296
|
props: {
|
|
12258
12297
|
options: {},
|
|
@@ -12299,8 +12338,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12299
12338
|
previousKey.value = selectedKey.value;
|
|
12300
12339
|
};
|
|
12301
12340
|
return (_ctx, _cache) => {
|
|
12302
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12303
|
-
createBaseVNode("div", _hoisted_2$
|
|
12341
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
12342
|
+
createBaseVNode("div", _hoisted_2$o, [
|
|
12304
12343
|
createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
|
|
12305
12344
|
withDirectives(createBaseVNode("select", {
|
|
12306
12345
|
class: "lupa-select-dropdown",
|
|
@@ -12323,14 +12362,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12323
12362
|
};
|
|
12324
12363
|
}
|
|
12325
12364
|
});
|
|
12326
|
-
const _hoisted_1$
|
|
12327
|
-
const _hoisted_2$
|
|
12365
|
+
const _hoisted_1$y = { class: "lupa-toolbar-left" };
|
|
12366
|
+
const _hoisted_2$n = { key: 1 };
|
|
12328
12367
|
const _hoisted_3$g = { key: 3 };
|
|
12329
12368
|
const _hoisted_4$b = { key: 5 };
|
|
12330
12369
|
const _hoisted_5$7 = { class: "lupa-toolbar-right" };
|
|
12331
12370
|
const _hoisted_6$4 = { key: 1 };
|
|
12332
12371
|
const _hoisted_7$3 = { key: 3 };
|
|
12333
|
-
const _sfc_main$
|
|
12372
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
12334
12373
|
__name: "SearchResultsToolbar",
|
|
12335
12374
|
props: {
|
|
12336
12375
|
options: {},
|
|
@@ -12429,15 +12468,15 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
12429
12468
|
id: "lupa-search-results-toolbar",
|
|
12430
12469
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
12431
12470
|
}, [
|
|
12432
|
-
createBaseVNode("div", _hoisted_1$
|
|
12433
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
12434
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
12471
|
+
createBaseVNode("div", _hoisted_1$y, [
|
|
12472
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$G, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$n)),
|
|
12473
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$X, {
|
|
12435
12474
|
key: 2,
|
|
12436
12475
|
label: searchSummaryLabel.value,
|
|
12437
12476
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
12438
12477
|
onClear: handleClearAll
|
|
12439
12478
|
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
|
|
12440
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
12479
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
|
|
12441
12480
|
key: 4,
|
|
12442
12481
|
options: paginationOptions.value.pageSelect,
|
|
12443
12482
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
@@ -12445,16 +12484,16 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
12445
12484
|
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$b))
|
|
12446
12485
|
]),
|
|
12447
12486
|
createBaseVNode("div", _hoisted_5$7, [
|
|
12448
|
-
createVNode(_sfc_main$
|
|
12487
|
+
createVNode(_sfc_main$F, {
|
|
12449
12488
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
12450
12489
|
"show-filter-count": showMobileFilterCount.value
|
|
12451
12490
|
}, null, 8, ["label", "show-filter-count"]),
|
|
12452
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
12491
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$D, {
|
|
12453
12492
|
key: 0,
|
|
12454
12493
|
options: paginationOptions.value.pageSize,
|
|
12455
12494
|
label: paginationOptions.value.labels.pageSize
|
|
12456
12495
|
}, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$4)),
|
|
12457
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
12496
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$C, {
|
|
12458
12497
|
key: 2,
|
|
12459
12498
|
options: sortOptions.value,
|
|
12460
12499
|
callbacks: callbacks.value
|
|
@@ -12464,14 +12503,14 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
12464
12503
|
};
|
|
12465
12504
|
}
|
|
12466
12505
|
});
|
|
12467
|
-
const _hoisted_1$
|
|
12468
|
-
const _hoisted_2$
|
|
12506
|
+
const _hoisted_1$x = { class: "lupa-badge-title" };
|
|
12507
|
+
const _hoisted_2$m = ["src"];
|
|
12469
12508
|
const _hoisted_3$f = { key: 1 };
|
|
12470
12509
|
const _hoisted_4$a = {
|
|
12471
12510
|
key: 0,
|
|
12472
12511
|
class: "lupa-badge-full-text"
|
|
12473
12512
|
};
|
|
12474
|
-
const _sfc_main$
|
|
12513
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
12475
12514
|
__name: "SearchResultGeneratedBadge",
|
|
12476
12515
|
props: {
|
|
12477
12516
|
options: {},
|
|
@@ -12504,11 +12543,11 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
12504
12543
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
12505
12544
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
12506
12545
|
}, [
|
|
12507
|
-
createBaseVNode("span", _hoisted_1$
|
|
12546
|
+
createBaseVNode("span", _hoisted_1$x, [
|
|
12508
12547
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
12509
12548
|
key: 0,
|
|
12510
12549
|
src: image.value
|
|
12511
|
-
}, null, 8, _hoisted_2$
|
|
12550
|
+
}, null, 8, _hoisted_2$m)) : createCommentVNode("", true),
|
|
12512
12551
|
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
12513
12552
|
]),
|
|
12514
12553
|
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$a, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
@@ -12516,8 +12555,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
12516
12555
|
};
|
|
12517
12556
|
}
|
|
12518
12557
|
});
|
|
12519
|
-
const _hoisted_1$
|
|
12520
|
-
const _sfc_main$
|
|
12558
|
+
const _hoisted_1$w = { class: "lupa-generated-badges" };
|
|
12559
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
12521
12560
|
__name: "SearchResultGeneratedBadges",
|
|
12522
12561
|
props: {
|
|
12523
12562
|
options: {}
|
|
@@ -12543,9 +12582,9 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
12543
12582
|
})).filter((b) => Boolean(b.id));
|
|
12544
12583
|
});
|
|
12545
12584
|
return (_ctx, _cache) => {
|
|
12546
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12585
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
12547
12586
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
12548
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12587
|
+
return openBlock(), createBlock(_sfc_main$A, {
|
|
12549
12588
|
key: badge.id,
|
|
12550
12589
|
badge,
|
|
12551
12590
|
options: _ctx.options
|
|
@@ -12555,8 +12594,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
12555
12594
|
};
|
|
12556
12595
|
}
|
|
12557
12596
|
});
|
|
12558
|
-
const _hoisted_1$
|
|
12559
|
-
const _sfc_main$
|
|
12597
|
+
const _hoisted_1$v = ["innerHTML"];
|
|
12598
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
12560
12599
|
__name: "CustomBadge",
|
|
12561
12600
|
props: {
|
|
12562
12601
|
badge: {}
|
|
@@ -12575,12 +12614,12 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
12575
12614
|
return openBlock(), createElementBlock("div", {
|
|
12576
12615
|
class: normalizeClass(className.value),
|
|
12577
12616
|
innerHTML: text.value
|
|
12578
|
-
}, null, 10, _hoisted_1$
|
|
12617
|
+
}, null, 10, _hoisted_1$v);
|
|
12579
12618
|
};
|
|
12580
12619
|
}
|
|
12581
12620
|
});
|
|
12582
|
-
const _hoisted_1$
|
|
12583
|
-
const _sfc_main$
|
|
12621
|
+
const _hoisted_1$u = { class: "lupa-text-badges" };
|
|
12622
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
12584
12623
|
__name: "TextBadge",
|
|
12585
12624
|
props: {
|
|
12586
12625
|
badge: {}
|
|
@@ -12595,7 +12634,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12595
12634
|
return badges.value.slice(0, props.badge.maxItems);
|
|
12596
12635
|
});
|
|
12597
12636
|
return (_ctx, _cache) => {
|
|
12598
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12637
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
12599
12638
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
12600
12639
|
return openBlock(), createElementBlock("div", {
|
|
12601
12640
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -12606,9 +12645,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12606
12645
|
};
|
|
12607
12646
|
}
|
|
12608
12647
|
});
|
|
12609
|
-
const _hoisted_1$
|
|
12610
|
-
const _hoisted_2$
|
|
12611
|
-
const _sfc_main$
|
|
12648
|
+
const _hoisted_1$t = { class: "lupa-image-badges" };
|
|
12649
|
+
const _hoisted_2$l = ["src"];
|
|
12650
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
12612
12651
|
__name: "ImageBadge",
|
|
12613
12652
|
props: {
|
|
12614
12653
|
badge: {}
|
|
@@ -12628,7 +12667,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
12628
12667
|
return `${props.badge.rootImageUrl}${src}`;
|
|
12629
12668
|
};
|
|
12630
12669
|
return (_ctx, _cache) => {
|
|
12631
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12670
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
12632
12671
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
12633
12672
|
return openBlock(), createElementBlock("div", {
|
|
12634
12673
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -12636,22 +12675,22 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
12636
12675
|
}, [
|
|
12637
12676
|
createBaseVNode("img", {
|
|
12638
12677
|
src: getImageUrl(item)
|
|
12639
|
-
}, null, 8, _hoisted_2$
|
|
12678
|
+
}, null, 8, _hoisted_2$l)
|
|
12640
12679
|
]);
|
|
12641
12680
|
}), 128))
|
|
12642
12681
|
]);
|
|
12643
12682
|
};
|
|
12644
12683
|
}
|
|
12645
12684
|
});
|
|
12646
|
-
const _hoisted_1$
|
|
12685
|
+
const _hoisted_1$s = { id: "lupa-search-results-badges" };
|
|
12647
12686
|
const __default__$1 = {
|
|
12648
12687
|
components: {
|
|
12649
|
-
CustomBadge: _sfc_main$
|
|
12650
|
-
TextBadge: _sfc_main$
|
|
12651
|
-
ImageBadge: _sfc_main$
|
|
12688
|
+
CustomBadge: _sfc_main$y,
|
|
12689
|
+
TextBadge: _sfc_main$x,
|
|
12690
|
+
ImageBadge: _sfc_main$w
|
|
12652
12691
|
}
|
|
12653
12692
|
};
|
|
12654
|
-
const _sfc_main$
|
|
12693
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
12655
12694
|
__name: "SearchResultsBadgeWrapper",
|
|
12656
12695
|
props: {
|
|
12657
12696
|
position: {},
|
|
@@ -12697,7 +12736,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
12697
12736
|
}
|
|
12698
12737
|
};
|
|
12699
12738
|
return (_ctx, _cache) => {
|
|
12700
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12739
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
12701
12740
|
createBaseVNode("div", {
|
|
12702
12741
|
id: "lupa-badges",
|
|
12703
12742
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -12708,7 +12747,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
12708
12747
|
badge
|
|
12709
12748
|
}, null, 8, ["badge"]);
|
|
12710
12749
|
}), 128)),
|
|
12711
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
12750
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$z, {
|
|
12712
12751
|
key: 0,
|
|
12713
12752
|
options: _ctx.options
|
|
12714
12753
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -12717,7 +12756,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
12717
12756
|
};
|
|
12718
12757
|
}
|
|
12719
12758
|
}));
|
|
12720
|
-
const _sfc_main$
|
|
12759
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
12721
12760
|
__name: "SearchResultsProductImage",
|
|
12722
12761
|
props: {
|
|
12723
12762
|
item: {},
|
|
@@ -12725,7 +12764,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
12725
12764
|
},
|
|
12726
12765
|
setup(__props) {
|
|
12727
12766
|
return (_ctx, _cache) => {
|
|
12728
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12767
|
+
return openBlock(), createBlock(_sfc_main$1b, {
|
|
12729
12768
|
item: _ctx.item,
|
|
12730
12769
|
options: _ctx.options,
|
|
12731
12770
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -12734,14 +12773,14 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
12734
12773
|
};
|
|
12735
12774
|
}
|
|
12736
12775
|
});
|
|
12737
|
-
const _hoisted_1$
|
|
12738
|
-
const _hoisted_2$
|
|
12776
|
+
const _hoisted_1$r = ["innerHTML"];
|
|
12777
|
+
const _hoisted_2$k = ["title"];
|
|
12739
12778
|
const _hoisted_3$e = {
|
|
12740
12779
|
key: 0,
|
|
12741
12780
|
class: "lupa-search-results-product-title-text"
|
|
12742
12781
|
};
|
|
12743
12782
|
const _hoisted_4$9 = ["href"];
|
|
12744
|
-
const _sfc_main$
|
|
12783
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
12745
12784
|
__name: "SearchResultsProductTitle",
|
|
12746
12785
|
props: {
|
|
12747
12786
|
item: {},
|
|
@@ -12774,7 +12813,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
12774
12813
|
class: "lupa-search-results-product-title",
|
|
12775
12814
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12776
12815
|
innerHTML: title.value
|
|
12777
|
-
}, null, 12, _hoisted_1$
|
|
12816
|
+
}, null, 12, _hoisted_1$r)) : (openBlock(), createElementBlock("div", {
|
|
12778
12817
|
key: 1,
|
|
12779
12818
|
class: "lupa-search-results-product-title",
|
|
12780
12819
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -12787,12 +12826,12 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
12787
12826
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
12788
12827
|
onClick: handleNavigation
|
|
12789
12828
|
}, toDisplayString(title.value), 9, _hoisted_4$9)) : createCommentVNode("", true)
|
|
12790
|
-
], 12, _hoisted_2$
|
|
12829
|
+
], 12, _hoisted_2$k));
|
|
12791
12830
|
};
|
|
12792
12831
|
}
|
|
12793
12832
|
});
|
|
12794
|
-
const _hoisted_1$
|
|
12795
|
-
const _sfc_main$
|
|
12833
|
+
const _hoisted_1$q = ["innerHTML"];
|
|
12834
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
12796
12835
|
__name: "SearchResultsProductDescription",
|
|
12797
12836
|
props: {
|
|
12798
12837
|
item: {},
|
|
@@ -12816,7 +12855,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
12816
12855
|
class: "lupa-search-results-product-description",
|
|
12817
12856
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12818
12857
|
innerHTML: description.value
|
|
12819
|
-
}, null, 12, _hoisted_1$
|
|
12858
|
+
}, null, 12, _hoisted_1$q)) : (openBlock(), createElementBlock("div", {
|
|
12820
12859
|
key: 1,
|
|
12821
12860
|
class: "lupa-search-results-product-description",
|
|
12822
12861
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -12824,15 +12863,15 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
12824
12863
|
};
|
|
12825
12864
|
}
|
|
12826
12865
|
});
|
|
12827
|
-
const _hoisted_1$
|
|
12828
|
-
const _hoisted_2$
|
|
12866
|
+
const _hoisted_1$p = { id: "lupa-search-results-rating" };
|
|
12867
|
+
const _hoisted_2$j = { class: "lupa-ratings" };
|
|
12829
12868
|
const _hoisted_3$d = { class: "lupa-ratings-base" };
|
|
12830
12869
|
const _hoisted_4$8 = ["innerHTML"];
|
|
12831
12870
|
const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
|
|
12832
12871
|
const _hoisted_6$3 = ["innerHTML"];
|
|
12833
12872
|
const _hoisted_7$2 = ["href"];
|
|
12834
12873
|
const STAR_COUNT = 5;
|
|
12835
|
-
const _sfc_main$
|
|
12874
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
12836
12875
|
__name: "SearchResultsProductRating",
|
|
12837
12876
|
props: {
|
|
12838
12877
|
item: {},
|
|
@@ -12863,8 +12902,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
12863
12902
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
12864
12903
|
});
|
|
12865
12904
|
return (_ctx, _cache) => {
|
|
12866
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12867
|
-
createBaseVNode("div", _hoisted_2$
|
|
12905
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
12906
|
+
createBaseVNode("div", _hoisted_2$j, [
|
|
12868
12907
|
createBaseVNode("div", _hoisted_3$d, [
|
|
12869
12908
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
12870
12909
|
return openBlock(), createElementBlock("div", {
|
|
@@ -12897,11 +12936,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
12897
12936
|
};
|
|
12898
12937
|
}
|
|
12899
12938
|
});
|
|
12900
|
-
const _hoisted_1$
|
|
12939
|
+
const _hoisted_1$o = {
|
|
12901
12940
|
class: "lupa-search-results-product-regular-price",
|
|
12902
12941
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
12903
12942
|
};
|
|
12904
|
-
const _sfc_main$
|
|
12943
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
12905
12944
|
__name: "SearchResultsProductRegularPrice",
|
|
12906
12945
|
props: {
|
|
12907
12946
|
item: {},
|
|
@@ -12919,15 +12958,15 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
12919
12958
|
);
|
|
12920
12959
|
});
|
|
12921
12960
|
return (_ctx, _cache) => {
|
|
12922
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12961
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, toDisplayString(price.value), 1);
|
|
12923
12962
|
};
|
|
12924
12963
|
}
|
|
12925
12964
|
});
|
|
12926
|
-
const _hoisted_1$
|
|
12965
|
+
const _hoisted_1$n = {
|
|
12927
12966
|
class: "lupa-search-results-product-price",
|
|
12928
12967
|
"data-cy": "lupa-search-results-product-price"
|
|
12929
12968
|
};
|
|
12930
|
-
const _sfc_main$
|
|
12969
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
12931
12970
|
__name: "SearchResultsProductPrice",
|
|
12932
12971
|
props: {
|
|
12933
12972
|
item: {},
|
|
@@ -12945,16 +12984,16 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
12945
12984
|
);
|
|
12946
12985
|
});
|
|
12947
12986
|
return (_ctx, _cache) => {
|
|
12948
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12987
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
12949
12988
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
12950
12989
|
]);
|
|
12951
12990
|
};
|
|
12952
12991
|
}
|
|
12953
12992
|
});
|
|
12954
|
-
const _hoisted_1$
|
|
12955
|
-
const _hoisted_2$
|
|
12993
|
+
const _hoisted_1$m = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
12994
|
+
const _hoisted_2$i = { class: "lupa-search-results-product-addtocart" };
|
|
12956
12995
|
const _hoisted_3$c = ["onClick", "disabled"];
|
|
12957
|
-
const _sfc_main$
|
|
12996
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
12958
12997
|
__name: "SearchResultsProductAddToCart",
|
|
12959
12998
|
props: {
|
|
12960
12999
|
item: {},
|
|
@@ -12981,8 +13020,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
12981
13020
|
loading.value = false;
|
|
12982
13021
|
});
|
|
12983
13022
|
return (_ctx, _cache) => {
|
|
12984
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12985
|
-
createBaseVNode("div", _hoisted_2$
|
|
13023
|
+
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
13024
|
+
createBaseVNode("div", _hoisted_2$i, [
|
|
12986
13025
|
createBaseVNode("button", {
|
|
12987
13026
|
onClick: withModifiers(handleClick, ["stop"]),
|
|
12988
13027
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
@@ -12994,12 +13033,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
12994
13033
|
};
|
|
12995
13034
|
}
|
|
12996
13035
|
});
|
|
12997
|
-
const _hoisted_1$
|
|
12998
|
-
const _hoisted_2$
|
|
13036
|
+
const _hoisted_1$l = ["innerHTML"];
|
|
13037
|
+
const _hoisted_2$h = { key: 0 };
|
|
12999
13038
|
const _hoisted_3$b = { key: 1 };
|
|
13000
13039
|
const _hoisted_4$7 = { class: "lupa-search-box-custom-label" };
|
|
13001
13040
|
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
13002
|
-
const _sfc_main$
|
|
13041
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
13003
13042
|
__name: "SearchResultsProductCustom",
|
|
13004
13043
|
props: {
|
|
13005
13044
|
item: {},
|
|
@@ -13037,11 +13076,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
13037
13076
|
key: 0,
|
|
13038
13077
|
class: className.value,
|
|
13039
13078
|
innerHTML: text.value
|
|
13040
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
13079
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$l)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
13041
13080
|
key: 1,
|
|
13042
13081
|
class: className.value
|
|
13043
13082
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
13044
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13083
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$h, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$b, [
|
|
13045
13084
|
createBaseVNode("div", _hoisted_4$7, toDisplayString(label.value), 1),
|
|
13046
13085
|
createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
|
|
13047
13086
|
]))
|
|
@@ -13049,8 +13088,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
13049
13088
|
};
|
|
13050
13089
|
}
|
|
13051
13090
|
});
|
|
13052
|
-
const _hoisted_1$
|
|
13053
|
-
const _sfc_main$
|
|
13091
|
+
const _hoisted_1$k = ["innerHTML"];
|
|
13092
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
13054
13093
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
13055
13094
|
props: {
|
|
13056
13095
|
item: {},
|
|
@@ -13074,15 +13113,15 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
13074
13113
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
13075
13114
|
class: className.value,
|
|
13076
13115
|
innerHTML: text.value
|
|
13077
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
13116
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$k);
|
|
13078
13117
|
};
|
|
13079
13118
|
}
|
|
13080
13119
|
});
|
|
13081
|
-
const _hoisted_1$
|
|
13082
|
-
const _hoisted_2$
|
|
13120
|
+
const _hoisted_1$j = { id: "lupa-search-results-rating" };
|
|
13121
|
+
const _hoisted_2$g = ["innerHTML"];
|
|
13083
13122
|
const _hoisted_3$a = { class: "lupa-ratings" };
|
|
13084
13123
|
const _hoisted_4$6 = ["href"];
|
|
13085
|
-
const _sfc_main$
|
|
13124
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
13086
13125
|
__name: "SearchResultsProductSingleStarRating",
|
|
13087
13126
|
props: {
|
|
13088
13127
|
item: {},
|
|
@@ -13110,11 +13149,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
13110
13149
|
return RATING_STAR_HTML;
|
|
13111
13150
|
});
|
|
13112
13151
|
return (_ctx, _cache) => {
|
|
13113
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13152
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
13114
13153
|
createBaseVNode("div", {
|
|
13115
13154
|
innerHTML: star.value,
|
|
13116
13155
|
class: "lupa-rating lupa-rating-highlighted"
|
|
13117
|
-
}, null, 8, _hoisted_2$
|
|
13156
|
+
}, null, 8, _hoisted_2$g),
|
|
13118
13157
|
createBaseVNode("div", _hoisted_3$a, toDisplayString(rating.value), 1),
|
|
13119
13158
|
createBaseVNode("a", {
|
|
13120
13159
|
href: ratingLink.value,
|
|
@@ -13126,19 +13165,19 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
13126
13165
|
});
|
|
13127
13166
|
const __default__ = {
|
|
13128
13167
|
components: {
|
|
13129
|
-
SearchResultsProductImage: _sfc_main$
|
|
13130
|
-
SearchResultsProductTitle: _sfc_main$
|
|
13131
|
-
SearchResultsProductDescription: _sfc_main$
|
|
13132
|
-
SearchResultsProductRating: _sfc_main$
|
|
13133
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
13134
|
-
SearchResultsProductPrice: _sfc_main$
|
|
13135
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
13136
|
-
SearchResultsProductCustom: _sfc_main$
|
|
13137
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
13138
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
13139
|
-
}
|
|
13140
|
-
};
|
|
13141
|
-
const _sfc_main$
|
|
13168
|
+
SearchResultsProductImage: _sfc_main$u,
|
|
13169
|
+
SearchResultsProductTitle: _sfc_main$t,
|
|
13170
|
+
SearchResultsProductDescription: _sfc_main$s,
|
|
13171
|
+
SearchResultsProductRating: _sfc_main$r,
|
|
13172
|
+
SearchResultsProductRegularPrice: _sfc_main$q,
|
|
13173
|
+
SearchResultsProductPrice: _sfc_main$p,
|
|
13174
|
+
SearchResultsProductAddToCart: _sfc_main$o,
|
|
13175
|
+
SearchResultsProductCustom: _sfc_main$n,
|
|
13176
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$m,
|
|
13177
|
+
SearchResultsProductSingleStarRating: _sfc_main$l
|
|
13178
|
+
}
|
|
13179
|
+
};
|
|
13180
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
13142
13181
|
__name: "SearchResultsProductCardElement",
|
|
13143
13182
|
props: {
|
|
13144
13183
|
item: {},
|
|
@@ -13208,13 +13247,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
13208
13247
|
};
|
|
13209
13248
|
}
|
|
13210
13249
|
}));
|
|
13211
|
-
const _hoisted_1$
|
|
13212
|
-
const _hoisted_2$
|
|
13250
|
+
const _hoisted_1$i = ["href"];
|
|
13251
|
+
const _hoisted_2$f = {
|
|
13213
13252
|
key: 0,
|
|
13214
13253
|
class: "lupa-out-of-stock"
|
|
13215
13254
|
};
|
|
13216
13255
|
const _hoisted_3$9 = { class: "lupa-search-result-product-details-section" };
|
|
13217
|
-
const _sfc_main$
|
|
13256
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
13218
13257
|
__name: "SearchResultsProductCard",
|
|
13219
13258
|
props: {
|
|
13220
13259
|
product: {},
|
|
@@ -13359,7 +13398,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13359
13398
|
class: normalizeClass(["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]),
|
|
13360
13399
|
onClick: handleClick
|
|
13361
13400
|
}, [
|
|
13362
|
-
createVNode(_sfc_main$
|
|
13401
|
+
createVNode(_sfc_main$v, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
13363
13402
|
createBaseVNode("div", {
|
|
13364
13403
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
13365
13404
|
}, [
|
|
@@ -13369,7 +13408,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13369
13408
|
onClick: handleNavigation
|
|
13370
13409
|
}, [
|
|
13371
13410
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
13372
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13411
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13373
13412
|
class: "lupa-search-results-product-element",
|
|
13374
13413
|
item: _ctx.product,
|
|
13375
13414
|
element,
|
|
@@ -13379,16 +13418,16 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13379
13418
|
link: link.value
|
|
13380
13419
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
13381
13420
|
}), 128)),
|
|
13382
|
-
createVNode(_sfc_main$
|
|
13421
|
+
createVNode(_sfc_main$v, {
|
|
13383
13422
|
options: badgesOptions.value,
|
|
13384
13423
|
position: "image",
|
|
13385
13424
|
class: "lupa-image-badges"
|
|
13386
13425
|
}, null, 8, ["options"]),
|
|
13387
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13388
|
-
], 8, _hoisted_1$
|
|
13426
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$f, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
13427
|
+
], 8, _hoisted_1$i),
|
|
13389
13428
|
createBaseVNode("div", _hoisted_3$9, [
|
|
13390
13429
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
13391
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13430
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13392
13431
|
class: "lupa-search-results-product-element",
|
|
13393
13432
|
item: _ctx.product,
|
|
13394
13433
|
element,
|
|
@@ -13406,7 +13445,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13406
13445
|
class: normalizeClass("lupa-element-group-" + group)
|
|
13407
13446
|
}, [
|
|
13408
13447
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
13409
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13448
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13410
13449
|
class: "lupa-search-results-product-element",
|
|
13411
13450
|
item: _ctx.product,
|
|
13412
13451
|
element,
|
|
@@ -13424,11 +13463,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13424
13463
|
};
|
|
13425
13464
|
}
|
|
13426
13465
|
});
|
|
13427
|
-
const _hoisted_1$
|
|
13466
|
+
const _hoisted_1$h = {
|
|
13428
13467
|
id: "lupa-search-results-similar-queries",
|
|
13429
13468
|
"data-cy": "lupa-search-results-similar-queries"
|
|
13430
13469
|
};
|
|
13431
|
-
const _hoisted_2$
|
|
13470
|
+
const _hoisted_2$e = { class: "lupa-similar-queries-label" };
|
|
13432
13471
|
const _hoisted_3$8 = {
|
|
13433
13472
|
class: "lupa-similar-query-label",
|
|
13434
13473
|
"data-cy": "lupa-similar-query-label"
|
|
@@ -13440,7 +13479,7 @@ const _hoisted_7$1 = {
|
|
|
13440
13479
|
class: "lupa-products",
|
|
13441
13480
|
"data-cy": "lupa-products"
|
|
13442
13481
|
};
|
|
13443
|
-
const _sfc_main$
|
|
13482
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
13444
13483
|
__name: "SearchResultsSimilarQueries",
|
|
13445
13484
|
props: {
|
|
13446
13485
|
labels: {},
|
|
@@ -13470,8 +13509,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
13470
13509
|
paramsStore.goToResults({ searchText, facet });
|
|
13471
13510
|
};
|
|
13472
13511
|
return (_ctx, _cache) => {
|
|
13473
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13474
|
-
createBaseVNode("div", _hoisted_2$
|
|
13512
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
13513
|
+
createBaseVNode("div", _hoisted_2$e, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
13475
13514
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
13476
13515
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
13477
13516
|
createBaseVNode("div", _hoisted_3$8, [
|
|
@@ -13490,7 +13529,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
13490
13529
|
]),
|
|
13491
13530
|
createBaseVNode("div", _hoisted_7$1, [
|
|
13492
13531
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
13493
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13532
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
13494
13533
|
style: normalizeStyle(_ctx.columnSize),
|
|
13495
13534
|
key: getDocumentKey(index2, product),
|
|
13496
13535
|
product,
|
|
@@ -13504,15 +13543,15 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
13504
13543
|
};
|
|
13505
13544
|
}
|
|
13506
13545
|
});
|
|
13507
|
-
const _hoisted_1$
|
|
13546
|
+
const _hoisted_1$g = {
|
|
13508
13547
|
key: 0,
|
|
13509
13548
|
class: "lupa-results-additional-panel"
|
|
13510
13549
|
};
|
|
13511
|
-
const _hoisted_2$
|
|
13550
|
+
const _hoisted_2$d = {
|
|
13512
13551
|
class: "lupa-results-additional-panel-items",
|
|
13513
13552
|
"data-cy": "lupa-results-additional-panel-items"
|
|
13514
13553
|
};
|
|
13515
|
-
const _sfc_main$
|
|
13554
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
13516
13555
|
__name: "AdditionalPanel",
|
|
13517
13556
|
props: {
|
|
13518
13557
|
panel: {},
|
|
@@ -13584,10 +13623,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
13584
13623
|
handleQueryChange();
|
|
13585
13624
|
});
|
|
13586
13625
|
return (_ctx, _cache) => {
|
|
13587
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13588
|
-
createBaseVNode("div", _hoisted_2$
|
|
13626
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
13627
|
+
createBaseVNode("div", _hoisted_2$d, [
|
|
13589
13628
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
13590
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13629
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
13591
13630
|
key: index,
|
|
13592
13631
|
product: item,
|
|
13593
13632
|
options: _ctx.panel,
|
|
@@ -13605,11 +13644,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
13605
13644
|
};
|
|
13606
13645
|
}
|
|
13607
13646
|
});
|
|
13608
|
-
const _hoisted_1$
|
|
13647
|
+
const _hoisted_1$f = {
|
|
13609
13648
|
key: 0,
|
|
13610
13649
|
class: "lupa-results-additional-panels"
|
|
13611
13650
|
};
|
|
13612
|
-
const _sfc_main$
|
|
13651
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
13613
13652
|
__name: "AdditionalPanels",
|
|
13614
13653
|
props: {
|
|
13615
13654
|
options: {},
|
|
@@ -13626,9 +13665,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
13626
13665
|
return locationPanels.value.length > 0;
|
|
13627
13666
|
});
|
|
13628
13667
|
return (_ctx, _cache) => {
|
|
13629
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13668
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
13630
13669
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
13631
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13670
|
+
return openBlock(), createBlock(_sfc_main$h, {
|
|
13632
13671
|
key: panel.queryKey,
|
|
13633
13672
|
panel,
|
|
13634
13673
|
options: _ctx.sdkOptions
|
|
@@ -13645,21 +13684,21 @@ const _export_sfc = (sfc, props) => {
|
|
|
13645
13684
|
}
|
|
13646
13685
|
return target;
|
|
13647
13686
|
};
|
|
13648
|
-
const _sfc_main$
|
|
13649
|
-
const _hoisted_1$
|
|
13650
|
-
const _hoisted_2$
|
|
13687
|
+
const _sfc_main$f = {};
|
|
13688
|
+
const _hoisted_1$e = { class: "lupa-spinner-wrapper" };
|
|
13689
|
+
const _hoisted_2$c = { class: "lupa-spinner" };
|
|
13651
13690
|
function _sfc_render(_ctx, _cache) {
|
|
13652
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13653
|
-
createBaseVNode("div", _hoisted_2$
|
|
13691
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
13692
|
+
createBaseVNode("div", _hoisted_2$c, [
|
|
13654
13693
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
|
|
13655
13694
|
return createBaseVNode("div", { key: x });
|
|
13656
13695
|
}), 64))
|
|
13657
13696
|
])
|
|
13658
13697
|
]);
|
|
13659
13698
|
}
|
|
13660
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13661
|
-
const _hoisted_1$
|
|
13662
|
-
const _hoisted_2$
|
|
13699
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render]]);
|
|
13700
|
+
const _hoisted_1$d = { id: "lupa-search-results-products" };
|
|
13701
|
+
const _hoisted_2$b = {
|
|
13663
13702
|
class: "lupa-products",
|
|
13664
13703
|
"data-cy": "lupa-products"
|
|
13665
13704
|
};
|
|
@@ -13674,7 +13713,7 @@ const _hoisted_4$4 = {
|
|
|
13674
13713
|
"data-cy": "lupa-no-results"
|
|
13675
13714
|
};
|
|
13676
13715
|
const _hoisted_5$3 = { key: 4 };
|
|
13677
|
-
const _sfc_main$
|
|
13716
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
13678
13717
|
__name: "SearchResultsProducts",
|
|
13679
13718
|
props: {
|
|
13680
13719
|
options: {},
|
|
@@ -13765,23 +13804,23 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13765
13804
|
};
|
|
13766
13805
|
return (_ctx, _cache) => {
|
|
13767
13806
|
var _a;
|
|
13768
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13807
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
13769
13808
|
unref(loading) && !unref(isMobileSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
13770
13809
|
key: 0,
|
|
13771
13810
|
class: "lupa-loader"
|
|
13772
13811
|
})) : createCommentVNode("", true),
|
|
13773
13812
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
13774
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13813
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
|
|
13775
13814
|
key: 0,
|
|
13776
13815
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
13777
13816
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13778
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13817
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$B, {
|
|
13779
13818
|
key: 1,
|
|
13780
13819
|
class: "lupa-toolbar-mobile",
|
|
13781
13820
|
options: _ctx.options,
|
|
13782
13821
|
"pagination-location": "top"
|
|
13783
13822
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13784
|
-
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
13823
|
+
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$U, {
|
|
13785
13824
|
key: 2,
|
|
13786
13825
|
class: normalizeClass(currentFiltersClass.value),
|
|
13787
13826
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -13789,18 +13828,18 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13789
13828
|
expandable: !desktopFiltersExpanded.value
|
|
13790
13829
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
13791
13830
|
], 64)) : createCommentVNode("", true),
|
|
13792
|
-
createVNode(_sfc_main$
|
|
13831
|
+
createVNode(_sfc_main$g, {
|
|
13793
13832
|
options: _ctx.options,
|
|
13794
13833
|
location: "top",
|
|
13795
13834
|
sdkOptions: _ctx.options.options
|
|
13796
13835
|
}, null, 8, ["options", "sdkOptions"]),
|
|
13797
13836
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
13798
|
-
createVNode(_sfc_main$
|
|
13837
|
+
createVNode(_sfc_main$B, {
|
|
13799
13838
|
class: "lupa-toolbar-top",
|
|
13800
13839
|
options: _ctx.options,
|
|
13801
13840
|
"pagination-location": "top"
|
|
13802
13841
|
}, null, 8, ["options"]),
|
|
13803
|
-
createBaseVNode("div", _hoisted_2$
|
|
13842
|
+
createBaseVNode("div", _hoisted_2$b, [
|
|
13804
13843
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
|
|
13805
13844
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
13806
13845
|
style: normalizeStyle(columnSize.value),
|
|
@@ -13809,7 +13848,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13809
13848
|
options: productCardOptions.value
|
|
13810
13849
|
});
|
|
13811
13850
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
13812
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13851
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
13813
13852
|
style: normalizeStyle(columnSize.value),
|
|
13814
13853
|
key: getProductKeyAction(index, product),
|
|
13815
13854
|
product,
|
|
@@ -13825,12 +13864,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13825
13864
|
onClick: goToFirstPage
|
|
13826
13865
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
13827
13866
|
])) : createCommentVNode("", true),
|
|
13828
|
-
createVNode(_sfc_main$
|
|
13867
|
+
createVNode(_sfc_main$B, {
|
|
13829
13868
|
class: "lupa-toolbar-bottom",
|
|
13830
13869
|
options: _ctx.options,
|
|
13831
13870
|
"pagination-location": "bottom"
|
|
13832
13871
|
}, null, 8, ["options"]),
|
|
13833
|
-
createVNode(_sfc_main$
|
|
13872
|
+
createVNode(_sfc_main$g, {
|
|
13834
13873
|
options: _ctx.options,
|
|
13835
13874
|
location: "bottom",
|
|
13836
13875
|
sdkOptions: _ctx.options.options
|
|
@@ -13840,7 +13879,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13840
13879
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
13841
13880
|
])) : createCommentVNode("", true),
|
|
13842
13881
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
13843
|
-
createVNode(_sfc_main$
|
|
13882
|
+
createVNode(_sfc_main$i, {
|
|
13844
13883
|
labels: similarQueriesLabels.value,
|
|
13845
13884
|
columnSize: columnSize.value,
|
|
13846
13885
|
productCardOptions: productCardOptions.value
|
|
@@ -13851,13 +13890,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13851
13890
|
};
|
|
13852
13891
|
}
|
|
13853
13892
|
});
|
|
13854
|
-
const _hoisted_1$
|
|
13855
|
-
const _hoisted_2$
|
|
13893
|
+
const _hoisted_1$c = { class: "lupa-top-mobile-filter-wrapper" };
|
|
13894
|
+
const _hoisted_2$a = {
|
|
13856
13895
|
key: 0,
|
|
13857
13896
|
class: "lupa-category-back"
|
|
13858
13897
|
};
|
|
13859
13898
|
const _hoisted_3$6 = ["href"];
|
|
13860
|
-
const _sfc_main$
|
|
13899
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
13861
13900
|
__name: "CategoryTopFilters",
|
|
13862
13901
|
props: {
|
|
13863
13902
|
options: {}
|
|
@@ -13889,15 +13928,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
13889
13928
|
return openBlock(), createElementBlock("div", {
|
|
13890
13929
|
class: normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
|
|
13891
13930
|
}, [
|
|
13892
|
-
createBaseVNode("div", _hoisted_1$
|
|
13893
|
-
hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13931
|
+
createBaseVNode("div", _hoisted_1$c, [
|
|
13932
|
+
hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
13894
13933
|
createBaseVNode("a", {
|
|
13895
13934
|
"data-cy": "lupa-category-back",
|
|
13896
13935
|
href: backUrlLink.value,
|
|
13897
13936
|
onClick: handleNavigationBack
|
|
13898
13937
|
}, toDisplayString(backTitle.value), 9, _hoisted_3$6)
|
|
13899
13938
|
])) : createCommentVNode("", true),
|
|
13900
|
-
createVNode(_sfc_main$
|
|
13939
|
+
createVNode(_sfc_main$B, {
|
|
13901
13940
|
class: "lupa-toolbar-mobile",
|
|
13902
13941
|
"pagination-location": "top",
|
|
13903
13942
|
options: _ctx.options
|
|
@@ -13907,18 +13946,18 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
13907
13946
|
};
|
|
13908
13947
|
}
|
|
13909
13948
|
});
|
|
13910
|
-
const _hoisted_1$
|
|
13949
|
+
const _hoisted_1$b = {
|
|
13911
13950
|
key: 0,
|
|
13912
13951
|
class: "lupa-container-title-summary-mobile"
|
|
13913
13952
|
};
|
|
13914
|
-
const _hoisted_2$
|
|
13953
|
+
const _hoisted_2$9 = {
|
|
13915
13954
|
key: 4,
|
|
13916
13955
|
id: "lupa-search-results",
|
|
13917
13956
|
class: "top-layout-wrapper"
|
|
13918
13957
|
};
|
|
13919
13958
|
const _hoisted_3$5 = { class: "search-content" };
|
|
13920
13959
|
const _hoisted_4$3 = { id: "lupa-search-results" };
|
|
13921
|
-
const _sfc_main$
|
|
13960
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
13922
13961
|
__name: "SearchResults",
|
|
13923
13962
|
props: {
|
|
13924
13963
|
options: {},
|
|
@@ -14107,40 +14146,40 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
14107
14146
|
return openBlock(), createElementBlock("div", {
|
|
14108
14147
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
14109
14148
|
}, [
|
|
14110
|
-
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14111
|
-
createVNode(_sfc_main$
|
|
14112
|
-
createVNode(_sfc_main$
|
|
14149
|
+
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
14150
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14151
|
+
createVNode(_sfc_main$W, {
|
|
14113
14152
|
"show-summary": true,
|
|
14114
14153
|
options: _ctx.options,
|
|
14115
14154
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
14116
14155
|
}, null, 8, ["options", "is-product-list"])
|
|
14117
14156
|
])) : createCommentVNode("", true),
|
|
14118
|
-
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$
|
|
14157
|
+
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$d, {
|
|
14119
14158
|
key: 1,
|
|
14120
14159
|
options: _ctx.options
|
|
14121
14160
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14122
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
14161
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$J, {
|
|
14123
14162
|
key: 2,
|
|
14124
14163
|
options: _ctx.options.filters
|
|
14125
14164
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14126
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
14165
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$I, {
|
|
14127
14166
|
key: 3,
|
|
14128
14167
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
14129
14168
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
14130
|
-
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
14131
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14169
|
+
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
14170
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
14132
14171
|
key: 0,
|
|
14133
14172
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
14134
14173
|
ref_key: "searchResultsFilters",
|
|
14135
14174
|
ref: searchResultsFilters
|
|
14136
14175
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14137
14176
|
createBaseVNode("div", _hoisted_3$5, [
|
|
14138
|
-
createVNode(_sfc_main$
|
|
14139
|
-
createVNode(_sfc_main$
|
|
14177
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14178
|
+
createVNode(_sfc_main$W, {
|
|
14140
14179
|
options: _ctx.options,
|
|
14141
14180
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
14142
14181
|
}, null, 8, ["options", "is-product-list"]),
|
|
14143
|
-
createVNode(_sfc_main$
|
|
14182
|
+
createVNode(_sfc_main$e, {
|
|
14144
14183
|
options: _ctx.options,
|
|
14145
14184
|
ssr: ssrEnabled.value
|
|
14146
14185
|
}, {
|
|
@@ -14151,19 +14190,19 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
14151
14190
|
}, 8, ["options", "ssr"])
|
|
14152
14191
|
])
|
|
14153
14192
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
14154
|
-
createVNode(_sfc_main$
|
|
14155
|
-
createVNode(_sfc_main$
|
|
14193
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14194
|
+
createVNode(_sfc_main$W, {
|
|
14156
14195
|
options: _ctx.options,
|
|
14157
14196
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
14158
14197
|
}, null, 8, ["options", "is-product-list"]),
|
|
14159
14198
|
createBaseVNode("div", _hoisted_4$3, [
|
|
14160
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14199
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
14161
14200
|
key: 0,
|
|
14162
14201
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
14163
14202
|
ref_key: "searchResultsFilters",
|
|
14164
14203
|
ref: searchResultsFilters
|
|
14165
14204
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14166
|
-
createVNode(_sfc_main$
|
|
14205
|
+
createVNode(_sfc_main$e, {
|
|
14167
14206
|
options: _ctx.options,
|
|
14168
14207
|
ssr: ssrEnabled.value
|
|
14169
14208
|
}, createSlots({
|
|
@@ -14186,12 +14225,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
14186
14225
|
};
|
|
14187
14226
|
}
|
|
14188
14227
|
});
|
|
14189
|
-
const _hoisted_1$
|
|
14228
|
+
const _hoisted_1$a = {
|
|
14190
14229
|
key: 0,
|
|
14191
14230
|
class: "lupa-category-overview"
|
|
14192
14231
|
};
|
|
14193
|
-
const _hoisted_2$
|
|
14194
|
-
const _sfc_main$
|
|
14232
|
+
const _hoisted_2$8 = ["innerHTML"];
|
|
14233
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
14195
14234
|
__name: "CategoryDescription",
|
|
14196
14235
|
props: {
|
|
14197
14236
|
options: {}
|
|
@@ -14207,16 +14246,16 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
14207
14246
|
return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
|
|
14208
14247
|
});
|
|
14209
14248
|
return (_ctx, _cache) => {
|
|
14210
|
-
return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14249
|
+
return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
14211
14250
|
createBaseVNode("div", {
|
|
14212
14251
|
class: "lupa-category-description",
|
|
14213
14252
|
innerHTML: description.value
|
|
14214
|
-
}, null, 8, _hoisted_2$
|
|
14253
|
+
}, null, 8, _hoisted_2$8)
|
|
14215
14254
|
])) : createCommentVNode("", true);
|
|
14216
14255
|
};
|
|
14217
14256
|
}
|
|
14218
14257
|
});
|
|
14219
|
-
const _sfc_main$
|
|
14258
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
14220
14259
|
__name: "ProductList",
|
|
14221
14260
|
props: {
|
|
14222
14261
|
options: {}
|
|
@@ -14238,7 +14277,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
14238
14277
|
__expose({ fetch: fetch2 });
|
|
14239
14278
|
return (_ctx, _cache) => {
|
|
14240
14279
|
return openBlock(), createElementBlock("div", null, [
|
|
14241
|
-
createVNode(_sfc_main$
|
|
14280
|
+
createVNode(_sfc_main$c, {
|
|
14242
14281
|
options: componentOptions.value,
|
|
14243
14282
|
"initial-filters": _ctx.options.initialFilters,
|
|
14244
14283
|
"is-product-list": true,
|
|
@@ -14246,7 +14285,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
14246
14285
|
ref: searchResults2
|
|
14247
14286
|
}, {
|
|
14248
14287
|
default: withCtx(() => [
|
|
14249
|
-
createVNode(_sfc_main$
|
|
14288
|
+
createVNode(_sfc_main$b, { options: _ctx.options }, null, 8, ["options"])
|
|
14250
14289
|
]),
|
|
14251
14290
|
_: 1
|
|
14252
14291
|
}, 8, ["options", "initial-filters"])
|
|
@@ -19737,9 +19776,9 @@ lodash$1.exports;
|
|
|
19737
19776
|
}).call(commonjsGlobal$1);
|
|
19738
19777
|
})(lodash$1, lodash$1.exports);
|
|
19739
19778
|
var lodashExports$1 = lodash$1.exports;
|
|
19740
|
-
const _hoisted_1$
|
|
19741
|
-
const _hoisted_2$
|
|
19742
|
-
const _sfc_main$
|
|
19779
|
+
const _hoisted_1$9 = ["onClick"];
|
|
19780
|
+
const _hoisted_2$7 = { class: "lupa-search-box-container" };
|
|
19781
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
19743
19782
|
__name: "SearchContainer",
|
|
19744
19783
|
props: {
|
|
19745
19784
|
options: {}
|
|
@@ -19784,8 +19823,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
19784
19823
|
class: "lupa-search-container",
|
|
19785
19824
|
onClick: withModifiers(innerClick, ["stop"])
|
|
19786
19825
|
}, [
|
|
19787
|
-
createBaseVNode("div", _hoisted_2$
|
|
19788
|
-
createVNode(_sfc_main$
|
|
19826
|
+
createBaseVNode("div", _hoisted_2$7, [
|
|
19827
|
+
createVNode(_sfc_main$Z, {
|
|
19789
19828
|
options: fullSearchBoxOptions.value,
|
|
19790
19829
|
"is-search-container": true,
|
|
19791
19830
|
ref_key: "searchBox",
|
|
@@ -19793,13 +19832,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
19793
19832
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
19794
19833
|
}, null, 8, ["options"])
|
|
19795
19834
|
]),
|
|
19796
|
-
createVNode(_sfc_main$
|
|
19835
|
+
createVNode(_sfc_main$c, {
|
|
19797
19836
|
options: fullSearchResultsOptions.value,
|
|
19798
19837
|
"is-container": true,
|
|
19799
19838
|
ref_key: "searchResults",
|
|
19800
19839
|
ref: searchResults2
|
|
19801
19840
|
}, null, 8, ["options"])
|
|
19802
|
-
], 8, _hoisted_1$
|
|
19841
|
+
], 8, _hoisted_1$9)
|
|
19803
19842
|
]);
|
|
19804
19843
|
};
|
|
19805
19844
|
}
|
|
@@ -20502,13 +20541,13 @@ var Slide = defineComponent({
|
|
|
20502
20541
|
};
|
|
20503
20542
|
}
|
|
20504
20543
|
});
|
|
20505
|
-
const _hoisted_1$
|
|
20506
|
-
const _hoisted_2$
|
|
20544
|
+
const _hoisted_1$8 = { class: "lupa-search-product-recommendations-wrapper" };
|
|
20545
|
+
const _hoisted_2$6 = {
|
|
20507
20546
|
key: 0,
|
|
20508
20547
|
class: "lupa-recommended-products",
|
|
20509
20548
|
"data-cy": "lupa-recommended-products"
|
|
20510
20549
|
};
|
|
20511
|
-
const _sfc_main$
|
|
20550
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
20512
20551
|
__name: "Recommendations",
|
|
20513
20552
|
props: {
|
|
20514
20553
|
options: {}
|
|
@@ -20594,8 +20633,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
20594
20633
|
});
|
|
20595
20634
|
__expose({ fetch: fetch2 });
|
|
20596
20635
|
return (_ctx, _cache) => {
|
|
20597
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20598
|
-
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
20636
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
20637
|
+
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
|
|
20599
20638
|
createVNode(unref(Carousel), mergeProps(carouselOptions.value, { "wrap-around": true }), {
|
|
20600
20639
|
addons: withCtx(() => [
|
|
20601
20640
|
createVNode(unref(Navigation))
|
|
@@ -20606,7 +20645,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
20606
20645
|
key: getProductKeyAction(index, product)
|
|
20607
20646
|
}, {
|
|
20608
20647
|
default: withCtx(() => [
|
|
20609
|
-
createVNode(_sfc_main$
|
|
20648
|
+
createVNode(_sfc_main$j, {
|
|
20610
20649
|
product,
|
|
20611
20650
|
options: _ctx.options,
|
|
20612
20651
|
"click-tracking-settings": clickTrackingSettings.value
|
|
@@ -20623,19 +20662,19 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
20623
20662
|
};
|
|
20624
20663
|
}
|
|
20625
20664
|
});
|
|
20626
|
-
const _hoisted_1$
|
|
20627
|
-
const _hoisted_2$
|
|
20665
|
+
const _hoisted_1$7 = { class: "lupa-chat-spinner" };
|
|
20666
|
+
const _hoisted_2$5 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
20628
20667
|
const _hoisted_3$4 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
20629
20668
|
const _hoisted_4$2 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
20630
20669
|
const _hoisted_5$2 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
20631
20670
|
const _hoisted_6$1 = [
|
|
20632
|
-
_hoisted_2$
|
|
20671
|
+
_hoisted_2$5,
|
|
20633
20672
|
_hoisted_3$4,
|
|
20634
20673
|
_hoisted_4$2,
|
|
20635
20674
|
_hoisted_5$2
|
|
20636
20675
|
];
|
|
20637
20676
|
const _hoisted_7 = { class: "lupa-chat-spinner-message" };
|
|
20638
|
-
const _sfc_main$
|
|
20677
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
20639
20678
|
__name: "ChatSpinner",
|
|
20640
20679
|
props: {
|
|
20641
20680
|
small: { type: Boolean },
|
|
@@ -20643,7 +20682,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
20643
20682
|
},
|
|
20644
20683
|
setup(__props) {
|
|
20645
20684
|
return (_ctx, _cache) => {
|
|
20646
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
20685
|
+
return openBlock(), createElementBlock("section", _hoisted_1$7, [
|
|
20647
20686
|
createBaseVNode("div", {
|
|
20648
20687
|
class: normalizeClass([{ small: _ctx.small }, "lds-ring"])
|
|
20649
20688
|
}, _hoisted_6$1, 2),
|
|
@@ -20652,13 +20691,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
20652
20691
|
};
|
|
20653
20692
|
}
|
|
20654
20693
|
});
|
|
20655
|
-
const _hoisted_1$
|
|
20656
|
-
const _hoisted_2$
|
|
20694
|
+
const _hoisted_1$6 = { class: "lupa-chat-input-container" };
|
|
20695
|
+
const _hoisted_2$4 = { id: "lupa-search-box-input" };
|
|
20657
20696
|
const _hoisted_3$3 = {
|
|
20658
20697
|
key: 0,
|
|
20659
20698
|
class: "lupa-chat-form-submit"
|
|
20660
20699
|
};
|
|
20661
|
-
const _sfc_main$
|
|
20700
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
20662
20701
|
__name: "ChatInput",
|
|
20663
20702
|
props: {
|
|
20664
20703
|
disabled: { type: Boolean }
|
|
@@ -20671,13 +20710,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
20671
20710
|
inputValue.value = "";
|
|
20672
20711
|
};
|
|
20673
20712
|
return (_ctx, _cache) => {
|
|
20674
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20713
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
20675
20714
|
createBaseVNode("form", {
|
|
20676
20715
|
action: "javascript:void(0);",
|
|
20677
20716
|
class: "chat-input-form",
|
|
20678
20717
|
onSubmit: submit
|
|
20679
20718
|
}, [
|
|
20680
|
-
createBaseVNode("div", _hoisted_2$
|
|
20719
|
+
createBaseVNode("div", _hoisted_2$4, [
|
|
20681
20720
|
withDirectives(createBaseVNode("input", {
|
|
20682
20721
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
|
|
20683
20722
|
ref: "mainInput",
|
|
@@ -20690,7 +20729,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
20690
20729
|
[vModelText, inputValue.value]
|
|
20691
20730
|
])
|
|
20692
20731
|
]),
|
|
20693
|
-
!_ctx.disabled ? (openBlock(), createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (openBlock(), createBlock(_sfc_main$
|
|
20732
|
+
!_ctx.disabled ? (openBlock(), createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (openBlock(), createBlock(_sfc_main$7, {
|
|
20694
20733
|
key: 1,
|
|
20695
20734
|
small: true
|
|
20696
20735
|
}))
|
|
@@ -20819,15 +20858,36 @@ const prepareChatHistory = (chatLog) => {
|
|
|
20819
20858
|
}
|
|
20820
20859
|
return history;
|
|
20821
20860
|
};
|
|
20861
|
+
const getTextResponseChunkStream = (options, { initialQuery, messageHistory }, onChunkReceived) => {
|
|
20862
|
+
var _a;
|
|
20863
|
+
fetch(`${getApiUrl(options.environment, options.customBaseUrl)}chat/text`, __spreadProps2(__spreadValues2({}, defaultConfig), {
|
|
20864
|
+
body: JSON.stringify({ initialQuery, messageHistory }),
|
|
20865
|
+
headers: __spreadValues2(__spreadValues2({}, headers), (_a = options.customHeaders) != null ? _a : {})
|
|
20866
|
+
})).then((response) => {
|
|
20867
|
+
const reader = response.body.getReader();
|
|
20868
|
+
return reader.read().then(function processStream({ done, value }) {
|
|
20869
|
+
if (done) {
|
|
20870
|
+
return "";
|
|
20871
|
+
}
|
|
20872
|
+
const result = new TextDecoder("utf-8").decode(value);
|
|
20873
|
+
const sanitezedResult = result.replace("\n", '<div class="br"></div>');
|
|
20874
|
+
onChunkReceived(sanitezedResult);
|
|
20875
|
+
return reader.read().then(processStream);
|
|
20876
|
+
});
|
|
20877
|
+
}).catch((error) => {
|
|
20878
|
+
console.error(`Fetch Error: ${error}`);
|
|
20879
|
+
});
|
|
20880
|
+
};
|
|
20822
20881
|
const ChatService = {
|
|
20823
20882
|
suggestSearchChatPhrases,
|
|
20824
20883
|
suggestPhraseAlternatives,
|
|
20825
20884
|
suggestSimplifiedPhrases,
|
|
20826
20885
|
suggestBestProductMatches,
|
|
20827
|
-
prepareChatHistory
|
|
20886
|
+
prepareChatHistory,
|
|
20887
|
+
getTextResponseChunkStream
|
|
20828
20888
|
};
|
|
20829
|
-
const _hoisted_1$
|
|
20830
|
-
const _sfc_main$
|
|
20889
|
+
const _hoisted_1$5 = { class: "lupa-chat-results" };
|
|
20890
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
20831
20891
|
__name: "ChatPhraseProductsList",
|
|
20832
20892
|
props: {
|
|
20833
20893
|
options: {},
|
|
@@ -20839,9 +20899,9 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
20839
20899
|
return getProductKey(`${index}`, product, props.options.idKey);
|
|
20840
20900
|
};
|
|
20841
20901
|
return (_ctx, _cache) => {
|
|
20842
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
20902
|
+
return openBlock(), createElementBlock("section", _hoisted_1$5, [
|
|
20843
20903
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
20844
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20904
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
20845
20905
|
class: "lupa-chat-product-card",
|
|
20846
20906
|
key: getProductKeyAction(index, product),
|
|
20847
20907
|
product,
|
|
@@ -20852,8 +20912,8 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
20852
20912
|
};
|
|
20853
20913
|
}
|
|
20854
20914
|
});
|
|
20855
|
-
const _hoisted_1$
|
|
20856
|
-
const _hoisted_2$
|
|
20915
|
+
const _hoisted_1$4 = { class: "lupa-chat-content-entry-phrase" };
|
|
20916
|
+
const _hoisted_2$3 = { class: "lupa-chat-phrase-title" };
|
|
20857
20917
|
const _hoisted_3$2 = {
|
|
20858
20918
|
key: 0,
|
|
20859
20919
|
class: "alert"
|
|
@@ -20866,7 +20926,7 @@ const _hoisted_5$1 = /* @__PURE__ */ createBaseVNode("p", null, "We found no mat
|
|
|
20866
20926
|
const _hoisted_6 = [
|
|
20867
20927
|
_hoisted_5$1
|
|
20868
20928
|
];
|
|
20869
|
-
const _sfc_main$
|
|
20929
|
+
const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
20870
20930
|
__name: "ChatContentEntryPhrase",
|
|
20871
20931
|
props: {
|
|
20872
20932
|
options: {},
|
|
@@ -20946,20 +21006,20 @@ const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
|
|
|
20946
21006
|
return phrases != null ? phrases : [];
|
|
20947
21007
|
});
|
|
20948
21008
|
return (_ctx, _cache) => {
|
|
20949
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20950
|
-
createBaseVNode("div", _hoisted_2$
|
|
21009
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
21010
|
+
createBaseVNode("div", _hoisted_2$3, [
|
|
20951
21011
|
createBaseVNode("h3", null, toDisplayString(displayPhrase.value), 1),
|
|
20952
21012
|
createBaseVNode("sub", null, toDisplayString(usedAlternativePhrases.value.join(", ")), 1),
|
|
20953
21013
|
usedPartialResults.value ? (openBlock(), createElementBlock("sub", _hoisted_3$2, "Including partial matches - which might not be what you are looking for")) : createCommentVNode("", true)
|
|
20954
21014
|
]),
|
|
20955
21015
|
createBaseVNode("div", null, [
|
|
20956
|
-
createVNode(_sfc_main$
|
|
21016
|
+
createVNode(_sfc_main$5, {
|
|
20957
21017
|
"search-results": searchResults2.value,
|
|
20958
21018
|
options: _ctx.options.displayOptions
|
|
20959
21019
|
}, null, 8, ["search-results", "options"])
|
|
20960
21020
|
]),
|
|
20961
21021
|
!loading.value && !searchResults2.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$1, _hoisted_6)) : createCommentVNode("", true),
|
|
20962
|
-
loading.value ? (openBlock(), createBlock(_sfc_main$
|
|
21022
|
+
loading.value ? (openBlock(), createBlock(_sfc_main$7, {
|
|
20963
21023
|
key: 1,
|
|
20964
21024
|
message: currentAction.value
|
|
20965
21025
|
}, null, 8, ["message"])) : createCommentVNode("", true)
|
|
@@ -20967,10 +21027,10 @@ const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
|
|
|
20967
21027
|
};
|
|
20968
21028
|
}
|
|
20969
21029
|
});
|
|
20970
|
-
const _hoisted_1$
|
|
20971
|
-
const _hoisted_2$
|
|
21030
|
+
const _hoisted_1$3 = { class: "lupa-chat-best-matches lupa-chat-content-entry" };
|
|
21031
|
+
const _hoisted_2$2 = /* @__PURE__ */ createBaseVNode("h3", null, "Best matches", -1);
|
|
20972
21032
|
const _hoisted_3$1 = { key: 0 };
|
|
20973
|
-
const _sfc_main$
|
|
21033
|
+
const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
|
|
20974
21034
|
__name: "ChatContentEntry",
|
|
20975
21035
|
props: {
|
|
20976
21036
|
entry: {},
|
|
@@ -21035,7 +21095,7 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
|
21035
21095
|
key: phrase,
|
|
21036
21096
|
class: "lupa-chat-content-entry"
|
|
21037
21097
|
}, [
|
|
21038
|
-
phrase ? (openBlock(), createBlock(_sfc_main$
|
|
21098
|
+
phrase ? (openBlock(), createBlock(_sfc_main$4$1, {
|
|
21039
21099
|
key: 0,
|
|
21040
21100
|
phrase,
|
|
21041
21101
|
options: _ctx.options,
|
|
@@ -21044,14 +21104,14 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
|
21044
21104
|
]);
|
|
21045
21105
|
}), 128))
|
|
21046
21106
|
]),
|
|
21047
|
-
createBaseVNode("section", _hoisted_1$
|
|
21048
|
-
_hoisted_2$
|
|
21107
|
+
createBaseVNode("section", _hoisted_1$3, [
|
|
21108
|
+
_hoisted_2$2,
|
|
21049
21109
|
explanation.value ? (openBlock(), createElementBlock("p", _hoisted_3$1, toDisplayString(explanation.value), 1)) : createCommentVNode("", true),
|
|
21050
|
-
loading.value ? (openBlock(), createBlock(_sfc_main$
|
|
21110
|
+
loading.value ? (openBlock(), createBlock(_sfc_main$7, {
|
|
21051
21111
|
key: 1,
|
|
21052
21112
|
message: "Selecting the best matches for you. This might take a few seconds."
|
|
21053
21113
|
})) : createCommentVNode("", true),
|
|
21054
|
-
bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$
|
|
21114
|
+
bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$5, {
|
|
21055
21115
|
key: 2,
|
|
21056
21116
|
"search-results": bestMatchProducts.value,
|
|
21057
21117
|
options: _ctx.options.displayOptions
|
|
@@ -21061,6 +21121,39 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
|
21061
21121
|
};
|
|
21062
21122
|
}
|
|
21063
21123
|
});
|
|
21124
|
+
const _hoisted_1$2 = { class: "lupa-chat-text-response" };
|
|
21125
|
+
const _hoisted_2$1 = ["innerHTML"];
|
|
21126
|
+
const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
21127
|
+
__name: "ChatTextEntry",
|
|
21128
|
+
props: {
|
|
21129
|
+
content: {},
|
|
21130
|
+
options: {},
|
|
21131
|
+
history: {}
|
|
21132
|
+
},
|
|
21133
|
+
setup(__props) {
|
|
21134
|
+
const props = __props;
|
|
21135
|
+
const content = ref("");
|
|
21136
|
+
const processChunk = (chunk) => {
|
|
21137
|
+
content.value += chunk;
|
|
21138
|
+
};
|
|
21139
|
+
onMounted(() => {
|
|
21140
|
+
var _a;
|
|
21141
|
+
ChatService.getTextResponseChunkStream(
|
|
21142
|
+
props.options.sdkOptions,
|
|
21143
|
+
{
|
|
21144
|
+
initialQuery: props.content,
|
|
21145
|
+
messageHistory: (_a = props.history) != null ? _a : []
|
|
21146
|
+
},
|
|
21147
|
+
processChunk
|
|
21148
|
+
);
|
|
21149
|
+
});
|
|
21150
|
+
return (_ctx, _cache) => {
|
|
21151
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
21152
|
+
createBaseVNode("p", { innerHTML: content.value }, null, 8, _hoisted_2$1)
|
|
21153
|
+
]);
|
|
21154
|
+
};
|
|
21155
|
+
}
|
|
21156
|
+
});
|
|
21064
21157
|
const _hoisted_1$1 = { class: "lupa-chat-section-title" };
|
|
21065
21158
|
const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
21066
21159
|
__name: "ChatContentList",
|
|
@@ -21078,16 +21171,23 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
|
21078
21171
|
return openBlock(), createElementBlock("div", null, [
|
|
21079
21172
|
createBaseVNode("ul", null, [
|
|
21080
21173
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.content, (entry) => {
|
|
21174
|
+
var _a;
|
|
21081
21175
|
return openBlock(), createElementBlock("li", {
|
|
21082
21176
|
key: entry.key
|
|
21083
21177
|
}, [
|
|
21084
21178
|
createBaseVNode("h4", _hoisted_1$1, toDisplayString(entry.userInput), 1),
|
|
21085
21179
|
createVNode(_sfc_main$2$1, {
|
|
21180
|
+
content: entry.userInput,
|
|
21181
|
+
history: _ctx.history,
|
|
21182
|
+
options: _ctx.options
|
|
21183
|
+
}, null, 8, ["content", "history", "options"]),
|
|
21184
|
+
((_a = entry.suggestedPhrases) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_sfc_main$3$1, {
|
|
21185
|
+
key: 0,
|
|
21086
21186
|
entry,
|
|
21087
21187
|
options: _ctx.options,
|
|
21088
21188
|
history: _ctx.history,
|
|
21089
21189
|
onLoaded: (items) => bestItemsLoaded(items, entry.key)
|
|
21090
|
-
}, null, 8, ["entry", "options", "history", "onLoaded"])
|
|
21190
|
+
}, null, 8, ["entry", "options", "history", "onLoaded"])) : createCommentVNode("", true)
|
|
21091
21191
|
]);
|
|
21092
21192
|
}), 128))
|
|
21093
21193
|
])
|
|
@@ -21108,7 +21208,7 @@ const _hoisted_4 = {
|
|
|
21108
21208
|
class: "lupa-chat-spinner-main"
|
|
21109
21209
|
};
|
|
21110
21210
|
const _hoisted_5 = { class: "lupasearch-chat-input" };
|
|
21111
|
-
const _sfc_main$
|
|
21211
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
21112
21212
|
__name: "ChatContainer",
|
|
21113
21213
|
props: {
|
|
21114
21214
|
options: {}
|
|
@@ -21126,6 +21226,14 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
21126
21226
|
}
|
|
21127
21227
|
try {
|
|
21128
21228
|
loading.value = true;
|
|
21229
|
+
const key = Date.now().toString();
|
|
21230
|
+
let chatLog = {
|
|
21231
|
+
key,
|
|
21232
|
+
userInput: input,
|
|
21233
|
+
allPhrases: [],
|
|
21234
|
+
suggestedPhrases: []
|
|
21235
|
+
};
|
|
21236
|
+
chatContent.value.push(chatLog);
|
|
21129
21237
|
const request = {
|
|
21130
21238
|
userPrompt: input,
|
|
21131
21239
|
messageHistory: (_a = history.value) != null ? _a : [],
|
|
@@ -21140,13 +21248,12 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
21140
21248
|
return;
|
|
21141
21249
|
}
|
|
21142
21250
|
const validPhrases = phrases.filter((p2) => (p2 == null ? void 0 : p2.trim().length) > 0);
|
|
21143
|
-
|
|
21144
|
-
|
|
21145
|
-
|
|
21146
|
-
|
|
21147
|
-
|
|
21148
|
-
|
|
21149
|
-
chatContent.value.push(chatLog);
|
|
21251
|
+
chatContent.value = chatContent.value.map(
|
|
21252
|
+
(c2) => c2.key === key ? __spreadProps2(__spreadValues2({}, c2), {
|
|
21253
|
+
allPhrases: [...validPhrases],
|
|
21254
|
+
suggestedPhrases: phrases
|
|
21255
|
+
}) : c2
|
|
21256
|
+
);
|
|
21150
21257
|
} finally {
|
|
21151
21258
|
loading.value = false;
|
|
21152
21259
|
}
|
|
@@ -21167,10 +21274,10 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
21167
21274
|
}, null, 8, ["content", "options", "history"])
|
|
21168
21275
|
])) : createCommentVNode("", true),
|
|
21169
21276
|
loading.value ? (openBlock(), createElementBlock("section", _hoisted_4, [
|
|
21170
|
-
createVNode(_sfc_main$
|
|
21277
|
+
createVNode(_sfc_main$7, { message: "Loading initial recommendations... This might take up to 20s" })
|
|
21171
21278
|
])) : createCommentVNode("", true),
|
|
21172
21279
|
createBaseVNode("section", _hoisted_5, [
|
|
21173
|
-
createVNode(_sfc_main$
|
|
21280
|
+
createVNode(_sfc_main$6, {
|
|
21174
21281
|
onSubmit: submitChatInput,
|
|
21175
21282
|
disabled: loading.value
|
|
21176
21283
|
}, null, 8, ["disabled"])
|
|
@@ -26741,7 +26848,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
26741
26848
|
};
|
|
26742
26849
|
__expose({ fetch: fetch2 });
|
|
26743
26850
|
return (_ctx, _cache) => {
|
|
26744
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26851
|
+
return openBlock(), createBlock(unref(_sfc_main$Z), {
|
|
26745
26852
|
options: fullSearchBoxOptions.value,
|
|
26746
26853
|
ref_key: "searchBox",
|
|
26747
26854
|
ref: searchBox2
|
|
@@ -26868,7 +26975,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
26868
26975
|
};
|
|
26869
26976
|
__expose({ fetch: fetch2 });
|
|
26870
26977
|
return (_ctx, _cache) => {
|
|
26871
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26978
|
+
return openBlock(), createBlock(unref(_sfc_main$c), {
|
|
26872
26979
|
options: fullSearchResultsOptions.value,
|
|
26873
26980
|
ref_key: "searchResults",
|
|
26874
26981
|
ref: searchResults2
|
|
@@ -26893,7 +27000,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
26893
27000
|
};
|
|
26894
27001
|
__expose({ fetch: fetch2 });
|
|
26895
27002
|
return (_ctx, _cache) => {
|
|
26896
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
27003
|
+
return openBlock(), createBlock(unref(_sfc_main$a), {
|
|
26897
27004
|
options: fullProductListOptions.value,
|
|
26898
27005
|
ref_key: "productList",
|
|
26899
27006
|
ref: productList2
|
|
@@ -26973,7 +27080,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26973
27080
|
__expose({ fetch: fetch2, reloadOptions });
|
|
26974
27081
|
return (_ctx, _cache) => {
|
|
26975
27082
|
return openBlock(), createElementBlock("div", null, [
|
|
26976
|
-
containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
27083
|
+
containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$9), {
|
|
26977
27084
|
key: 0,
|
|
26978
27085
|
options: containerOptions.value,
|
|
26979
27086
|
ref_key: "productList",
|
|
@@ -26997,7 +27104,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26997
27104
|
};
|
|
26998
27105
|
__expose({ fetch: fetch2 });
|
|
26999
27106
|
return (_ctx, _cache) => {
|
|
27000
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
27107
|
+
return openBlock(), createBlock(unref(_sfc_main$8), {
|
|
27001
27108
|
options: _ctx.recommendationOptions,
|
|
27002
27109
|
ref_key: "productRecommendations",
|
|
27003
27110
|
ref: productRecommendations
|
|
@@ -27216,7 +27323,7 @@ const chat = (options, mountOptions) => {
|
|
|
27216
27323
|
}
|
|
27217
27324
|
return;
|
|
27218
27325
|
}
|
|
27219
|
-
const instance = createVue(options.displayOptions.containerSelector, _sfc_main$
|
|
27326
|
+
const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1k, {
|
|
27220
27327
|
options
|
|
27221
27328
|
});
|
|
27222
27329
|
if (!instance) {
|