@getlupa/client 1.3.8 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lupaChatStyle.css +1 -1
- package/dist/lupaSearch.iife.js +514 -443
- package/dist/lupaSearch.js +514 -443
- package/dist/lupaSearch.mjs +514 -443
- package/dist/lupaSearch.umd.js +514 -443
- package/package.json +2 -2
package/dist/lupaSearch.umd.js
CHANGED
|
@@ -7658,8 +7658,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7658
7658
|
resetHighlightIndex
|
|
7659
7659
|
};
|
|
7660
7660
|
});
|
|
7661
|
-
const _hoisted_1$
|
|
7662
|
-
const _hoisted_2$
|
|
7661
|
+
const _hoisted_1$1a = { id: "lupa-search-box-input-container" };
|
|
7662
|
+
const _hoisted_2$O = { class: "lupa-input-clear" };
|
|
7663
7663
|
const _hoisted_3$A = { id: "lupa-search-box-input" };
|
|
7664
7664
|
const _hoisted_4$r = ["value"];
|
|
7665
7665
|
const _hoisted_5$f = ["placeholder"];
|
|
@@ -7667,7 +7667,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7667
7667
|
key: 0,
|
|
7668
7668
|
class: "lupa-close-label"
|
|
7669
7669
|
};
|
|
7670
|
-
const _sfc_main$
|
|
7670
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
7671
7671
|
__name: "SearchBoxInput",
|
|
7672
7672
|
props: {
|
|
7673
7673
|
options: {},
|
|
@@ -7744,8 +7744,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7744
7744
|
};
|
|
7745
7745
|
__expose({ focus });
|
|
7746
7746
|
return (_ctx, _cache) => {
|
|
7747
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7748
|
-
createBaseVNode("div", _hoisted_2$
|
|
7747
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1a, [
|
|
7748
|
+
createBaseVNode("div", _hoisted_2$O, [
|
|
7749
7749
|
createBaseVNode("div", {
|
|
7750
7750
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
7751
7751
|
onClick: clear2
|
|
@@ -7784,7 +7784,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7784
7784
|
};
|
|
7785
7785
|
}
|
|
7786
7786
|
});
|
|
7787
|
-
const _sfc_main$
|
|
7787
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
7788
7788
|
__name: "SearchBoxMoreResults",
|
|
7789
7789
|
props: {
|
|
7790
7790
|
labels: {},
|
|
@@ -7816,9 +7816,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7816
7816
|
};
|
|
7817
7817
|
}
|
|
7818
7818
|
});
|
|
7819
|
-
const _hoisted_1$
|
|
7820
|
-
const _hoisted_2$
|
|
7821
|
-
const _sfc_main$
|
|
7819
|
+
const _hoisted_1$19 = { class: "lupa-search-box-history-item" };
|
|
7820
|
+
const _hoisted_2$N = { class: "lupa-search-box-history-item-content" };
|
|
7821
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
7822
7822
|
__name: "SearchBoxHistoryItem",
|
|
7823
7823
|
props: {
|
|
7824
7824
|
item: {},
|
|
@@ -7834,8 +7834,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7834
7834
|
emit2("click", { query: props.item });
|
|
7835
7835
|
};
|
|
7836
7836
|
return (_ctx, _cache) => {
|
|
7837
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7838
|
-
createBaseVNode("div", _hoisted_2$
|
|
7837
|
+
return openBlock(), createElementBlock("div", _hoisted_1$19, [
|
|
7838
|
+
createBaseVNode("div", _hoisted_2$N, [
|
|
7839
7839
|
createBaseVNode("div", {
|
|
7840
7840
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
7841
7841
|
onClick: click2
|
|
@@ -7849,11 +7849,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7849
7849
|
};
|
|
7850
7850
|
}
|
|
7851
7851
|
});
|
|
7852
|
-
const _hoisted_1$
|
|
7852
|
+
const _hoisted_1$18 = {
|
|
7853
7853
|
key: 0,
|
|
7854
7854
|
class: "lupa-search-box-history-panel"
|
|
7855
7855
|
};
|
|
7856
|
-
const _sfc_main$
|
|
7856
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
7857
7857
|
__name: "SearchBoxHistoryPanel",
|
|
7858
7858
|
props: {
|
|
7859
7859
|
options: {}
|
|
@@ -7894,9 +7894,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7894
7894
|
}
|
|
7895
7895
|
};
|
|
7896
7896
|
return (_ctx, _cache) => {
|
|
7897
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7897
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$18, [
|
|
7898
7898
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
7899
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7899
|
+
return openBlock(), createBlock(_sfc_main$1g, {
|
|
7900
7900
|
key: item,
|
|
7901
7901
|
item,
|
|
7902
7902
|
highlighted: index === highlightIndex.value,
|
|
@@ -7912,8 +7912,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7912
7912
|
};
|
|
7913
7913
|
}
|
|
7914
7914
|
});
|
|
7915
|
-
const _hoisted_1$
|
|
7916
|
-
const _hoisted_2$
|
|
7915
|
+
const _hoisted_1$17 = ["innerHTML"];
|
|
7916
|
+
const _hoisted_2$M = {
|
|
7917
7917
|
key: 1,
|
|
7918
7918
|
"data-cy": "lupa-suggestion-value",
|
|
7919
7919
|
class: "lupa-suggestion-value"
|
|
@@ -7931,7 +7931,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7931
7931
|
class: "lupa-suggestion-facet-value",
|
|
7932
7932
|
"data-cy": "lupa-suggestion-facet-value"
|
|
7933
7933
|
};
|
|
7934
|
-
const _sfc_main$
|
|
7934
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
7935
7935
|
__name: "SearchBoxSuggestion",
|
|
7936
7936
|
props: {
|
|
7937
7937
|
suggestion: {},
|
|
@@ -7967,7 +7967,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7967
7967
|
class: "lupa-suggestion-value",
|
|
7968
7968
|
"data-cy": "lupa-suggestion-value",
|
|
7969
7969
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
7970
|
-
}, null, 8, _hoisted_1$
|
|
7970
|
+
}, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(_ctx.suggestion.display), 1)),
|
|
7971
7971
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
7972
7972
|
createBaseVNode("span", _hoisted_4$q, toDisplayString(facetLabel.value), 1),
|
|
7973
7973
|
createBaseVNode("span", _hoisted_5$e, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
@@ -7976,11 +7976,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7976
7976
|
};
|
|
7977
7977
|
}
|
|
7978
7978
|
});
|
|
7979
|
-
const _hoisted_1$
|
|
7979
|
+
const _hoisted_1$16 = {
|
|
7980
7980
|
id: "lupa-search-box-suggestions",
|
|
7981
7981
|
"data-cy": "lupa-search-box-suggestions"
|
|
7982
7982
|
};
|
|
7983
|
-
const _sfc_main$
|
|
7983
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
7984
7984
|
__name: "SearchBoxSuggestions",
|
|
7985
7985
|
props: {
|
|
7986
7986
|
items: {},
|
|
@@ -8040,9 +8040,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8040
8040
|
});
|
|
8041
8041
|
});
|
|
8042
8042
|
return (_ctx, _cache) => {
|
|
8043
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8043
|
+
return openBlock(), createElementBlock("div", _hoisted_1$16, [
|
|
8044
8044
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
8045
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8045
|
+
return openBlock(), createBlock(_sfc_main$1e, {
|
|
8046
8046
|
key: getSuggestionKey(item),
|
|
8047
8047
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
8048
8048
|
suggestion: item,
|
|
@@ -8070,7 +8070,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8070
8070
|
}, timeout);
|
|
8071
8071
|
};
|
|
8072
8072
|
};
|
|
8073
|
-
const _sfc_main$
|
|
8073
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
8074
8074
|
__name: "SearchBoxSuggestionsWrapper",
|
|
8075
8075
|
props: {
|
|
8076
8076
|
panel: {},
|
|
@@ -8111,7 +8111,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8111
8111
|
};
|
|
8112
8112
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
8113
8113
|
return (_ctx, _cache) => {
|
|
8114
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8114
|
+
return openBlock(), createBlock(_sfc_main$1d, {
|
|
8115
8115
|
items: searchResult.value,
|
|
8116
8116
|
highlight: _ctx.panel.highlight,
|
|
8117
8117
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -8189,8 +8189,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8189
8189
|
});
|
|
8190
8190
|
return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
|
|
8191
8191
|
});
|
|
8192
|
-
const _hoisted_1$
|
|
8193
|
-
const _sfc_main$
|
|
8192
|
+
const _hoisted_1$15 = ["src"];
|
|
8193
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
8194
8194
|
__name: "ProductImage",
|
|
8195
8195
|
props: {
|
|
8196
8196
|
item: {},
|
|
@@ -8238,12 +8238,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8238
8238
|
class: normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
|
|
8239
8239
|
src: finalUrl.value,
|
|
8240
8240
|
onError: replaceWithPlaceholder
|
|
8241
|
-
}, null, 42, _hoisted_1$
|
|
8241
|
+
}, null, 42, _hoisted_1$15)
|
|
8242
8242
|
], 2);
|
|
8243
8243
|
};
|
|
8244
8244
|
}
|
|
8245
8245
|
});
|
|
8246
|
-
const _sfc_main$
|
|
8246
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
8247
8247
|
__name: "SearchBoxProductImage",
|
|
8248
8248
|
props: {
|
|
8249
8249
|
item: {},
|
|
@@ -8251,7 +8251,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8251
8251
|
},
|
|
8252
8252
|
setup(__props) {
|
|
8253
8253
|
return (_ctx, _cache) => {
|
|
8254
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8254
|
+
return openBlock(), createBlock(_sfc_main$1b, {
|
|
8255
8255
|
item: _ctx.item,
|
|
8256
8256
|
options: _ctx.options,
|
|
8257
8257
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -8260,12 +8260,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8260
8260
|
};
|
|
8261
8261
|
}
|
|
8262
8262
|
});
|
|
8263
|
-
const _hoisted_1$
|
|
8264
|
-
const _hoisted_2$
|
|
8263
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
8264
|
+
const _hoisted_2$L = {
|
|
8265
8265
|
key: 1,
|
|
8266
8266
|
class: "lupa-search-box-product-title"
|
|
8267
8267
|
};
|
|
8268
|
-
const _sfc_main$
|
|
8268
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
8269
8269
|
__name: "SearchBoxProductTitle",
|
|
8270
8270
|
props: {
|
|
8271
8271
|
item: {},
|
|
@@ -8285,18 +8285,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8285
8285
|
key: 0,
|
|
8286
8286
|
class: "lupa-search-box-product-title",
|
|
8287
8287
|
innerHTML: title.value
|
|
8288
|
-
}, null, 8, _hoisted_1$
|
|
8288
|
+
}, null, 8, _hoisted_1$14)) : (openBlock(), createElementBlock("div", _hoisted_2$L, [
|
|
8289
8289
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
8290
8290
|
]));
|
|
8291
8291
|
};
|
|
8292
8292
|
}
|
|
8293
8293
|
});
|
|
8294
|
-
const _hoisted_1$
|
|
8295
|
-
const _hoisted_2$
|
|
8294
|
+
const _hoisted_1$13 = ["innerHTML"];
|
|
8295
|
+
const _hoisted_2$K = {
|
|
8296
8296
|
key: 1,
|
|
8297
8297
|
class: "lupa-search-box-product-description"
|
|
8298
8298
|
};
|
|
8299
|
-
const _sfc_main$
|
|
8299
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
8300
8300
|
__name: "SearchBoxProductDescription",
|
|
8301
8301
|
props: {
|
|
8302
8302
|
item: {},
|
|
@@ -8316,12 +8316,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8316
8316
|
key: 0,
|
|
8317
8317
|
class: "lupa-search-box-product-description",
|
|
8318
8318
|
innerHTML: description.value
|
|
8319
|
-
}, null, 8, _hoisted_1$
|
|
8319
|
+
}, null, 8, _hoisted_1$13)) : (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(description.value), 1));
|
|
8320
8320
|
};
|
|
8321
8321
|
}
|
|
8322
8322
|
});
|
|
8323
|
-
const _hoisted_1$
|
|
8324
|
-
const _sfc_main$
|
|
8323
|
+
const _hoisted_1$12 = { class: "lupa-search-box-product-price" };
|
|
8324
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
8325
8325
|
__name: "SearchBoxProductPrice",
|
|
8326
8326
|
props: {
|
|
8327
8327
|
item: {},
|
|
@@ -8339,14 +8339,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8339
8339
|
);
|
|
8340
8340
|
});
|
|
8341
8341
|
return (_ctx, _cache) => {
|
|
8342
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8342
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
8343
8343
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
8344
8344
|
]);
|
|
8345
8345
|
};
|
|
8346
8346
|
}
|
|
8347
8347
|
});
|
|
8348
|
-
const _hoisted_1$
|
|
8349
|
-
const _sfc_main$
|
|
8348
|
+
const _hoisted_1$11 = { class: "lupa-search-box-product-regular-price" };
|
|
8349
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
8350
8350
|
__name: "SearchBoxProductRegularPrice",
|
|
8351
8351
|
props: {
|
|
8352
8352
|
item: {},
|
|
@@ -8364,16 +8364,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8364
8364
|
);
|
|
8365
8365
|
});
|
|
8366
8366
|
return (_ctx, _cache) => {
|
|
8367
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8367
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, toDisplayString(price.value), 1);
|
|
8368
8368
|
};
|
|
8369
8369
|
}
|
|
8370
8370
|
});
|
|
8371
|
-
const _hoisted_1
|
|
8372
|
-
const _hoisted_2$
|
|
8371
|
+
const _hoisted_1$10 = ["innerHTML"];
|
|
8372
|
+
const _hoisted_2$J = { key: 0 };
|
|
8373
8373
|
const _hoisted_3$y = { key: 1 };
|
|
8374
8374
|
const _hoisted_4$p = { class: "lupa-search-box-custom-label" };
|
|
8375
8375
|
const _hoisted_5$d = { class: "lupa-search-box-custom-text" };
|
|
8376
|
-
const _sfc_main$
|
|
8376
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
8377
8377
|
__name: "SearchBoxProductCustom",
|
|
8378
8378
|
props: {
|
|
8379
8379
|
item: {},
|
|
@@ -8399,11 +8399,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8399
8399
|
key: 0,
|
|
8400
8400
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
8401
8401
|
innerHTML: text.value
|
|
8402
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1
|
|
8402
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$10)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
8403
8403
|
key: 1,
|
|
8404
8404
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
8405
8405
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
8406
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
8406
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$J, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
|
|
8407
8407
|
createBaseVNode("div", _hoisted_4$p, toDisplayString(label.value), 1),
|
|
8408
8408
|
createBaseVNode("div", _hoisted_5$d, toDisplayString(text.value), 1)
|
|
8409
8409
|
]))
|
|
@@ -8411,8 +8411,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8411
8411
|
};
|
|
8412
8412
|
}
|
|
8413
8413
|
});
|
|
8414
|
-
const _hoisted_1
|
|
8415
|
-
const _sfc_main$
|
|
8414
|
+
const _hoisted_1$$ = ["innerHTML"];
|
|
8415
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
8416
8416
|
__name: "SearchBoxProductCustomHtml",
|
|
8417
8417
|
props: {
|
|
8418
8418
|
item: {},
|
|
@@ -8432,7 +8432,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8432
8432
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
8433
8433
|
class: className.value,
|
|
8434
8434
|
innerHTML: text.value
|
|
8435
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1
|
|
8435
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$$);
|
|
8436
8436
|
};
|
|
8437
8437
|
}
|
|
8438
8438
|
});
|
|
@@ -8627,10 +8627,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8627
8627
|
setLoading
|
|
8628
8628
|
};
|
|
8629
8629
|
});
|
|
8630
|
-
const _hoisted_1$
|
|
8631
|
-
const _hoisted_2$
|
|
8630
|
+
const _hoisted_1$_ = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
8631
|
+
const _hoisted_2$I = { class: "lupa-search-box-product-addtocart" };
|
|
8632
8632
|
const _hoisted_3$x = ["onClick", "disabled"];
|
|
8633
|
-
const _sfc_main$
|
|
8633
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
8634
8634
|
__name: "SearchBoxProductAddToCart",
|
|
8635
8635
|
props: {
|
|
8636
8636
|
item: {},
|
|
@@ -8657,8 +8657,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8657
8657
|
loading.value = false;
|
|
8658
8658
|
});
|
|
8659
8659
|
return (_ctx, _cache) => {
|
|
8660
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8661
|
-
createBaseVNode("div", _hoisted_2$
|
|
8660
|
+
return openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
8661
|
+
createBaseVNode("div", _hoisted_2$I, [
|
|
8662
8662
|
createBaseVNode("button", {
|
|
8663
8663
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
8664
8664
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
@@ -8673,17 +8673,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8673
8673
|
});
|
|
8674
8674
|
const __default__$4 = {
|
|
8675
8675
|
components: {
|
|
8676
|
-
SearchBoxProductImage: _sfc_main$
|
|
8677
|
-
SearchBoxProductTitle: _sfc_main$
|
|
8678
|
-
SearchBoxProductDescription: _sfc_main$
|
|
8679
|
-
SearchBoxProductPrice: _sfc_main$
|
|
8680
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
8681
|
-
SearchBoxProductCustom: _sfc_main$
|
|
8682
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
8683
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
8676
|
+
SearchBoxProductImage: _sfc_main$1a,
|
|
8677
|
+
SearchBoxProductTitle: _sfc_main$19,
|
|
8678
|
+
SearchBoxProductDescription: _sfc_main$18,
|
|
8679
|
+
SearchBoxProductPrice: _sfc_main$17,
|
|
8680
|
+
SearchBoxProductRegularPrice: _sfc_main$16,
|
|
8681
|
+
SearchBoxProductCustom: _sfc_main$15,
|
|
8682
|
+
SearchBoxProductCustomHtml: _sfc_main$14,
|
|
8683
|
+
SearchBoxProductAddToCart: _sfc_main$13
|
|
8684
8684
|
}
|
|
8685
8685
|
};
|
|
8686
|
-
const _sfc_main$
|
|
8686
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
8687
8687
|
__name: "SearchBoxProductElement",
|
|
8688
8688
|
props: {
|
|
8689
8689
|
item: {},
|
|
@@ -8797,14 +8797,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8797
8797
|
};
|
|
8798
8798
|
return { trackSearch, trackResults, trackEvent };
|
|
8799
8799
|
});
|
|
8800
|
-
const _hoisted_1$
|
|
8801
|
-
const _hoisted_2$
|
|
8800
|
+
const _hoisted_1$Z = ["href"];
|
|
8801
|
+
const _hoisted_2$H = { class: "lupa-search-box-product-image-section" };
|
|
8802
8802
|
const _hoisted_3$w = { class: "lupa-search-box-product-details-section" };
|
|
8803
8803
|
const _hoisted_4$o = {
|
|
8804
8804
|
key: 0,
|
|
8805
8805
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
8806
8806
|
};
|
|
8807
|
-
const _sfc_main$
|
|
8807
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
8808
8808
|
__name: "SearchBoxProduct",
|
|
8809
8809
|
props: {
|
|
8810
8810
|
item: {},
|
|
@@ -8897,9 +8897,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8897
8897
|
href: link.value,
|
|
8898
8898
|
onClick: handleClick
|
|
8899
8899
|
}, [
|
|
8900
|
-
createBaseVNode("div", _hoisted_2$
|
|
8900
|
+
createBaseVNode("div", _hoisted_2$H, [
|
|
8901
8901
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
8902
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8902
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
8903
8903
|
class: "lupa-search-box-product-element",
|
|
8904
8904
|
item: _ctx.item,
|
|
8905
8905
|
element,
|
|
@@ -8911,7 +8911,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8911
8911
|
]),
|
|
8912
8912
|
createBaseVNode("div", _hoisted_3$w, [
|
|
8913
8913
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
8914
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8914
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
8915
8915
|
class: "lupa-search-box-product-element",
|
|
8916
8916
|
item: _ctx.item,
|
|
8917
8917
|
element,
|
|
@@ -8922,7 +8922,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8922
8922
|
}), 128))
|
|
8923
8923
|
]),
|
|
8924
8924
|
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
|
|
8925
|
-
createVNode(_sfc_main$
|
|
8925
|
+
createVNode(_sfc_main$12, {
|
|
8926
8926
|
class: "lupa-search-box-product-element",
|
|
8927
8927
|
item: _ctx.item,
|
|
8928
8928
|
element: addToCartElement.value,
|
|
@@ -8931,12 +8931,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8931
8931
|
isInStock: isInStock.value
|
|
8932
8932
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
8933
8933
|
])) : createCommentVNode("", true)
|
|
8934
|
-
], 10, _hoisted_1$
|
|
8934
|
+
], 10, _hoisted_1$Z);
|
|
8935
8935
|
};
|
|
8936
8936
|
}
|
|
8937
8937
|
});
|
|
8938
|
-
const _hoisted_1$
|
|
8939
|
-
const _sfc_main
|
|
8938
|
+
const _hoisted_1$Y = { id: "lupa-search-box-products" };
|
|
8939
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
8940
8940
|
__name: "SearchBoxProducts",
|
|
8941
8941
|
props: {
|
|
8942
8942
|
items: {},
|
|
@@ -8956,7 +8956,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8956
8956
|
return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
|
|
8957
8957
|
});
|
|
8958
8958
|
return (_ctx, _cache) => {
|
|
8959
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8959
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Y, [
|
|
8960
8960
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
8961
8961
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
8962
8962
|
key: index,
|
|
@@ -8968,7 +8968,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8968
8968
|
onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
|
|
8969
8969
|
});
|
|
8970
8970
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
8971
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8971
|
+
return openBlock(), createBlock(_sfc_main$11, {
|
|
8972
8972
|
key: index,
|
|
8973
8973
|
item,
|
|
8974
8974
|
panelOptions: _ctx.panelOptions,
|
|
@@ -8982,7 +8982,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8982
8982
|
};
|
|
8983
8983
|
}
|
|
8984
8984
|
});
|
|
8985
|
-
const _sfc_main
|
|
8985
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
8986
8986
|
__name: "SearchBoxProductsWrapper",
|
|
8987
8987
|
props: {
|
|
8988
8988
|
panel: {},
|
|
@@ -9034,7 +9034,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9034
9034
|
const getItemsDebounced = debounce$1(getItems, props.debounce);
|
|
9035
9035
|
return (_ctx, _cache) => {
|
|
9036
9036
|
var _a, _b;
|
|
9037
|
-
return openBlock(), createBlock(_sfc_main
|
|
9037
|
+
return openBlock(), createBlock(_sfc_main$10, {
|
|
9038
9038
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
9039
9039
|
panelOptions: _ctx.panel,
|
|
9040
9040
|
labels: _ctx.labels,
|
|
@@ -9052,11 +9052,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9052
9052
|
};
|
|
9053
9053
|
}
|
|
9054
9054
|
});
|
|
9055
|
-
const _hoisted_1$
|
|
9055
|
+
const _hoisted_1$X = {
|
|
9056
9056
|
key: 0,
|
|
9057
9057
|
id: "lupa-search-box-panel"
|
|
9058
9058
|
};
|
|
9059
|
-
const _hoisted_2$
|
|
9059
|
+
const _hoisted_2$G = {
|
|
9060
9060
|
class: "lupa-main-panel",
|
|
9061
9061
|
"data-cy": "lupa-main-panel"
|
|
9062
9062
|
};
|
|
@@ -9067,11 +9067,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9067
9067
|
};
|
|
9068
9068
|
const __default__$3 = {
|
|
9069
9069
|
components: {
|
|
9070
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
9071
|
-
SearchBoxProductsWrapper: _sfc_main
|
|
9070
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1c,
|
|
9071
|
+
SearchBoxProductsWrapper: _sfc_main$$
|
|
9072
9072
|
}
|
|
9073
9073
|
};
|
|
9074
|
-
const _sfc_main$
|
|
9074
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
9075
9075
|
__name: "SearchBoxMainPanel",
|
|
9076
9076
|
props: {
|
|
9077
9077
|
options: {},
|
|
@@ -9185,8 +9185,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9185
9185
|
ref_key: "panelContainer",
|
|
9186
9186
|
ref: panelContainer
|
|
9187
9187
|
}, [
|
|
9188
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9189
|
-
createBaseVNode("div", _hoisted_2$
|
|
9188
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
9189
|
+
createBaseVNode("div", _hoisted_2$G, [
|
|
9190
9190
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayPanels.value, (panel, index) => {
|
|
9191
9191
|
return openBlock(), createElementBlock("div", {
|
|
9192
9192
|
key: index,
|
|
@@ -9218,13 +9218,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9218
9218
|
], 10, _hoisted_3$v);
|
|
9219
9219
|
}), 128))
|
|
9220
9220
|
]),
|
|
9221
|
-
createVNode(_sfc_main$
|
|
9221
|
+
createVNode(_sfc_main$1h, {
|
|
9222
9222
|
labels: labels.value,
|
|
9223
9223
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
9224
9224
|
onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
|
|
9225
9225
|
}, null, 8, ["labels", "showTotalCount"])
|
|
9226
9226
|
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
|
|
9227
|
-
createVNode(_sfc_main$
|
|
9227
|
+
createVNode(_sfc_main$1f, {
|
|
9228
9228
|
options: _ctx.options.history,
|
|
9229
9229
|
history: history.value,
|
|
9230
9230
|
onGoToResults: handleGoToResults,
|
|
@@ -9249,9 +9249,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9249
9249
|
const elements = getElements(triggers);
|
|
9250
9250
|
elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
|
|
9251
9251
|
};
|
|
9252
|
-
const _hoisted_1$
|
|
9253
|
-
const _hoisted_2$
|
|
9254
|
-
const _sfc_main$
|
|
9252
|
+
const _hoisted_1$W = { id: "lupa-search-box" };
|
|
9253
|
+
const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
|
|
9254
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
9255
9255
|
__name: "SearchBox",
|
|
9256
9256
|
props: {
|
|
9257
9257
|
options: {},
|
|
@@ -9484,9 +9484,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9484
9484
|
};
|
|
9485
9485
|
return (_ctx, _cache) => {
|
|
9486
9486
|
var _a2;
|
|
9487
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9488
|
-
createBaseVNode("div", _hoisted_2$
|
|
9489
|
-
createVNode(_sfc_main$
|
|
9487
|
+
return openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
9488
|
+
createBaseVNode("div", _hoisted_2$F, [
|
|
9489
|
+
createVNode(_sfc_main$1i, {
|
|
9490
9490
|
options: inputOptions.value,
|
|
9491
9491
|
suggestedValue: suggestedValue.value,
|
|
9492
9492
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -9497,7 +9497,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9497
9497
|
onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
|
|
9498
9498
|
onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
9499
9499
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
9500
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
9500
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$_, {
|
|
9501
9501
|
key: 0,
|
|
9502
9502
|
options: panelOptions.value,
|
|
9503
9503
|
inputValue: inputValue.value,
|
|
@@ -9584,11 +9584,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9584
9584
|
}
|
|
9585
9585
|
return searchParams;
|
|
9586
9586
|
};
|
|
9587
|
-
const _hoisted_1$
|
|
9587
|
+
const _hoisted_1$V = {
|
|
9588
9588
|
key: 0,
|
|
9589
9589
|
id: "lupa-search-results-did-you-mean"
|
|
9590
9590
|
};
|
|
9591
|
-
const _hoisted_2$
|
|
9591
|
+
const _hoisted_2$E = {
|
|
9592
9592
|
key: 0,
|
|
9593
9593
|
"data-cy": "suggested-search-text-label"
|
|
9594
9594
|
};
|
|
@@ -9597,7 +9597,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9597
9597
|
"data-cy": "did-you-mean-label"
|
|
9598
9598
|
};
|
|
9599
9599
|
const _hoisted_4$m = { key: 1 };
|
|
9600
|
-
const _sfc_main$
|
|
9600
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
9601
9601
|
__name: "SearchResultsDidYouMean",
|
|
9602
9602
|
props: {
|
|
9603
9603
|
labels: {}
|
|
@@ -9629,8 +9629,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9629
9629
|
paramStore.goToResults({ searchText, facet });
|
|
9630
9630
|
};
|
|
9631
9631
|
return (_ctx, _cache) => {
|
|
9632
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9633
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9632
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
9633
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
|
|
9634
9634
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
9635
9635
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
9636
9636
|
createBaseVNode("span", {
|
|
@@ -9655,12 +9655,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9655
9655
|
};
|
|
9656
9656
|
}
|
|
9657
9657
|
});
|
|
9658
|
-
const _hoisted_1$
|
|
9658
|
+
const _hoisted_1$U = {
|
|
9659
9659
|
key: 0,
|
|
9660
9660
|
class: "lupa-search-results-summary"
|
|
9661
9661
|
};
|
|
9662
|
-
const _hoisted_2$
|
|
9663
|
-
const _sfc_main$
|
|
9662
|
+
const _hoisted_2$D = ["innerHTML"];
|
|
9663
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
9664
9664
|
__name: "SearchResultsSummary",
|
|
9665
9665
|
props: {
|
|
9666
9666
|
label: {},
|
|
@@ -9675,8 +9675,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9675
9675
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
9676
9676
|
});
|
|
9677
9677
|
return (_ctx, _cache) => {
|
|
9678
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9679
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
9678
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
9679
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$D),
|
|
9680
9680
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
9681
9681
|
key: 0,
|
|
9682
9682
|
class: "lupa-filter-clear",
|
|
@@ -9687,18 +9687,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9687
9687
|
};
|
|
9688
9688
|
}
|
|
9689
9689
|
});
|
|
9690
|
-
const _hoisted_1$
|
|
9690
|
+
const _hoisted_1$T = {
|
|
9691
9691
|
key: 0,
|
|
9692
9692
|
class: "lupa-result-page-title",
|
|
9693
9693
|
"data-cy": "lupa-result-page-title"
|
|
9694
9694
|
};
|
|
9695
|
-
const _hoisted_2$
|
|
9695
|
+
const _hoisted_2$C = { key: 0 };
|
|
9696
9696
|
const _hoisted_3$t = {
|
|
9697
9697
|
key: 1,
|
|
9698
9698
|
class: "lupa-results-total-count"
|
|
9699
9699
|
};
|
|
9700
9700
|
const _hoisted_4$l = ["innerHTML"];
|
|
9701
|
-
const _sfc_main$
|
|
9701
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
9702
9702
|
__name: "SearchResultsTitle",
|
|
9703
9703
|
props: {
|
|
9704
9704
|
options: {},
|
|
@@ -9733,12 +9733,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9733
9733
|
});
|
|
9734
9734
|
return (_ctx, _cache) => {
|
|
9735
9735
|
return openBlock(), createElementBlock("div", null, [
|
|
9736
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
9736
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$T, [
|
|
9737
9737
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
9738
|
-
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9738
|
+
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
9739
9739
|
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
|
|
9740
9740
|
])) : createCommentVNode("", true),
|
|
9741
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
9741
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$X, {
|
|
9742
9742
|
key: 1,
|
|
9743
9743
|
label: summaryLabel.value
|
|
9744
9744
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -9751,8 +9751,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9751
9751
|
};
|
|
9752
9752
|
}
|
|
9753
9753
|
});
|
|
9754
|
-
const _hoisted_1$
|
|
9755
|
-
const _hoisted_2$
|
|
9754
|
+
const _hoisted_1$S = { class: "lupa-search-result-filter-value" };
|
|
9755
|
+
const _hoisted_2$B = {
|
|
9756
9756
|
class: "lupa-current-filter-label",
|
|
9757
9757
|
"data-cy": "lupa-current-filter-label"
|
|
9758
9758
|
};
|
|
@@ -9760,7 +9760,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9760
9760
|
class: "lupa-current-filter-value",
|
|
9761
9761
|
"data-cy": "lupa-current-filter-value"
|
|
9762
9762
|
};
|
|
9763
|
-
const _sfc_main$
|
|
9763
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
9764
9764
|
__name: "CurrentFilterDisplay",
|
|
9765
9765
|
props: {
|
|
9766
9766
|
filter: {}
|
|
@@ -9772,19 +9772,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9772
9772
|
emit2("remove", { filter: props.filter });
|
|
9773
9773
|
};
|
|
9774
9774
|
return (_ctx, _cache) => {
|
|
9775
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9775
|
+
return openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
9776
9776
|
createBaseVNode("div", {
|
|
9777
9777
|
class: "lupa-current-filter-action",
|
|
9778
9778
|
onClick: handleClick
|
|
9779
9779
|
}, "⨉"),
|
|
9780
|
-
createBaseVNode("div", _hoisted_2$
|
|
9780
|
+
createBaseVNode("div", _hoisted_2$B, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
9781
9781
|
createBaseVNode("div", _hoisted_3$s, toDisplayString(_ctx.filter.value), 1)
|
|
9782
9782
|
]);
|
|
9783
9783
|
};
|
|
9784
9784
|
}
|
|
9785
9785
|
});
|
|
9786
|
-
const _hoisted_1$
|
|
9787
|
-
const _hoisted_2$
|
|
9786
|
+
const _hoisted_1$R = { class: "lupa-filter-title-text" };
|
|
9787
|
+
const _hoisted_2$A = {
|
|
9788
9788
|
key: 0,
|
|
9789
9789
|
class: "lupa-filter-count"
|
|
9790
9790
|
};
|
|
@@ -9793,7 +9793,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9793
9793
|
class: "filter-values"
|
|
9794
9794
|
};
|
|
9795
9795
|
const _hoisted_4$k = { class: "lupa-current-filter-list" };
|
|
9796
|
-
const _sfc_main$
|
|
9796
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
9797
9797
|
__name: "CurrentFilters",
|
|
9798
9798
|
props: {
|
|
9799
9799
|
options: {},
|
|
@@ -9848,9 +9848,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9848
9848
|
class: "lupa-current-filter-title",
|
|
9849
9849
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
9850
9850
|
}, [
|
|
9851
|
-
createBaseVNode("div", _hoisted_1$
|
|
9851
|
+
createBaseVNode("div", _hoisted_1$R, [
|
|
9852
9852
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
9853
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9853
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$A, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
9854
9854
|
]),
|
|
9855
9855
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
9856
9856
|
key: 0,
|
|
@@ -9860,7 +9860,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9860
9860
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
|
|
9861
9861
|
createBaseVNode("div", _hoisted_4$k, [
|
|
9862
9862
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
|
|
9863
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9863
|
+
return openBlock(), createBlock(_sfc_main$V, {
|
|
9864
9864
|
key: filter.key + "_" + filter.value,
|
|
9865
9865
|
filter,
|
|
9866
9866
|
onRemove: handleRemove
|
|
@@ -9877,8 +9877,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9877
9877
|
};
|
|
9878
9878
|
}
|
|
9879
9879
|
});
|
|
9880
|
-
const _hoisted_1$
|
|
9881
|
-
const _sfc_main$
|
|
9880
|
+
const _hoisted_1$Q = ["href"];
|
|
9881
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
9882
9882
|
__name: "CategoryFilterItem",
|
|
9883
9883
|
props: {
|
|
9884
9884
|
options: {},
|
|
@@ -9915,20 +9915,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9915
9915
|
"data-cy": "lupa-child-category-item",
|
|
9916
9916
|
href: urlLink.value,
|
|
9917
9917
|
onClick: handleNavigation
|
|
9918
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
9918
|
+
}, toDisplayString(title.value), 9, _hoisted_1$Q)
|
|
9919
9919
|
], 2);
|
|
9920
9920
|
};
|
|
9921
9921
|
}
|
|
9922
9922
|
});
|
|
9923
|
-
const _hoisted_1$
|
|
9923
|
+
const _hoisted_1$P = {
|
|
9924
9924
|
class: "lupa-category-filter",
|
|
9925
9925
|
"data-cy": "lupa-category-filter"
|
|
9926
9926
|
};
|
|
9927
|
-
const _hoisted_2$
|
|
9927
|
+
const _hoisted_2$z = { class: "lupa-category-back" };
|
|
9928
9928
|
const _hoisted_3$q = ["href"];
|
|
9929
9929
|
const _hoisted_4$j = ["href"];
|
|
9930
9930
|
const _hoisted_5$c = { class: "lupa-child-category-list" };
|
|
9931
|
-
const _sfc_main$
|
|
9931
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
9932
9932
|
__name: "CategoryFilter",
|
|
9933
9933
|
props: {
|
|
9934
9934
|
options: {}
|
|
@@ -10014,8 +10014,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10014
10014
|
};
|
|
10015
10015
|
__expose({ fetch: fetch2 });
|
|
10016
10016
|
return (_ctx, _cache) => {
|
|
10017
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10018
|
-
createBaseVNode("div", _hoisted_2$
|
|
10017
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
10018
|
+
createBaseVNode("div", _hoisted_2$z, [
|
|
10019
10019
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
10020
10020
|
key: 0,
|
|
10021
10021
|
"data-cy": "lupa-category-back",
|
|
@@ -10035,7 +10035,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10035
10035
|
], 2),
|
|
10036
10036
|
createBaseVNode("div", _hoisted_5$c, [
|
|
10037
10037
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
10038
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10038
|
+
return openBlock(), createBlock(_sfc_main$T, {
|
|
10039
10039
|
key: getCategoryKey(child),
|
|
10040
10040
|
item: child,
|
|
10041
10041
|
options: _ctx.options
|
|
@@ -10046,11 +10046,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10046
10046
|
};
|
|
10047
10047
|
}
|
|
10048
10048
|
});
|
|
10049
|
-
const _hoisted_1$
|
|
10049
|
+
const _hoisted_1$O = {
|
|
10050
10050
|
class: "lupa-search-result-facet-term-values",
|
|
10051
10051
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
10052
10052
|
};
|
|
10053
|
-
const _hoisted_2$
|
|
10053
|
+
const _hoisted_2$y = ["placeholder"];
|
|
10054
10054
|
const _hoisted_3$p = { class: "lupa-terms-list" };
|
|
10055
10055
|
const _hoisted_4$i = ["onClick"];
|
|
10056
10056
|
const _hoisted_5$b = { class: "lupa-term-checkbox-wrapper" };
|
|
@@ -10062,7 +10062,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10062
10062
|
};
|
|
10063
10063
|
const _hoisted_9$1 = { key: 0 };
|
|
10064
10064
|
const _hoisted_10$1 = { key: 1 };
|
|
10065
|
-
const _sfc_main$
|
|
10065
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
10066
10066
|
__name: "TermFacet",
|
|
10067
10067
|
props: {
|
|
10068
10068
|
options: {},
|
|
@@ -10131,14 +10131,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10131
10131
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
10132
10132
|
};
|
|
10133
10133
|
return (_ctx, _cache) => {
|
|
10134
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10134
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
10135
10135
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
10136
10136
|
key: 0,
|
|
10137
10137
|
class: "lupa-term-filter",
|
|
10138
10138
|
"data-cy": "lupa-term-filter",
|
|
10139
10139
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
10140
10140
|
placeholder: _ctx.options.labels.facetFilter
|
|
10141
|
-
}, null, 8, _hoisted_2$
|
|
10141
|
+
}, null, 8, _hoisted_2$y)), [
|
|
10142
10142
|
[vModelText, termFilter.value]
|
|
10143
10143
|
]) : createCommentVNode("", true),
|
|
10144
10144
|
createBaseVNode("div", _hoisted_3$p, [
|
|
@@ -11149,8 +11149,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11149
11149
|
m.render = function(e, t, r, i, n, o) {
|
|
11150
11150
|
return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
|
|
11151
11151
|
}, m.__file = "src/Slider.vue";
|
|
11152
|
-
const _hoisted_1$
|
|
11153
|
-
const _hoisted_2$
|
|
11152
|
+
const _hoisted_1$N = { class: "lupa-search-result-facet-stats-values" };
|
|
11153
|
+
const _hoisted_2$x = {
|
|
11154
11154
|
key: 0,
|
|
11155
11155
|
class: "lupa-stats-facet-summary"
|
|
11156
11156
|
};
|
|
@@ -11177,7 +11177,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11177
11177
|
key: 2,
|
|
11178
11178
|
class: "lupa-stats-slider-wrapper"
|
|
11179
11179
|
};
|
|
11180
|
-
const _sfc_main$
|
|
11180
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
11181
11181
|
__name: "StatsFacet",
|
|
11182
11182
|
props: {
|
|
11183
11183
|
options: {},
|
|
@@ -11325,8 +11325,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11325
11325
|
innerSliderRange.value = value;
|
|
11326
11326
|
};
|
|
11327
11327
|
return (_ctx, _cache) => {
|
|
11328
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11329
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11328
|
+
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
11329
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
|
|
11330
11330
|
createBaseVNode("div", null, [
|
|
11331
11331
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
11332
11332
|
createBaseVNode("div", _hoisted_5$a, [
|
|
@@ -11389,8 +11389,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11389
11389
|
};
|
|
11390
11390
|
}
|
|
11391
11391
|
});
|
|
11392
|
-
const _hoisted_1$
|
|
11393
|
-
const _hoisted_2$
|
|
11392
|
+
const _hoisted_1$M = { class: "lupa-term-checkbox-wrapper" };
|
|
11393
|
+
const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
|
|
11394
11394
|
const _hoisted_3$n = { class: "lupa-term-label" };
|
|
11395
11395
|
const _hoisted_4$g = {
|
|
11396
11396
|
key: 0,
|
|
@@ -11400,7 +11400,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11400
11400
|
key: 0,
|
|
11401
11401
|
class: "lupa-facet-level"
|
|
11402
11402
|
};
|
|
11403
|
-
const _sfc_main$
|
|
11403
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
11404
11404
|
__name: "HierarchyFacetLevel",
|
|
11405
11405
|
props: {
|
|
11406
11406
|
options: {},
|
|
@@ -11446,12 +11446,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11446
11446
|
"data-cy": "lupa-facet-term",
|
|
11447
11447
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
11448
11448
|
}, [
|
|
11449
|
-
createBaseVNode("div", _hoisted_1$
|
|
11449
|
+
createBaseVNode("div", _hoisted_1$M, [
|
|
11450
11450
|
createBaseVNode("span", {
|
|
11451
11451
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
11452
11452
|
}, null, 2)
|
|
11453
11453
|
]),
|
|
11454
|
-
createBaseVNode("div", _hoisted_2$
|
|
11454
|
+
createBaseVNode("div", _hoisted_2$w, [
|
|
11455
11455
|
createBaseVNode("span", _hoisted_3$n, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
11456
11456
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
11457
11457
|
])
|
|
@@ -11472,13 +11472,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11472
11472
|
};
|
|
11473
11473
|
}
|
|
11474
11474
|
});
|
|
11475
|
-
const _hoisted_1$
|
|
11475
|
+
const _hoisted_1$L = {
|
|
11476
11476
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
11477
11477
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
11478
11478
|
};
|
|
11479
|
-
const _hoisted_2$
|
|
11479
|
+
const _hoisted_2$v = { key: 0 };
|
|
11480
11480
|
const _hoisted_3$m = ["placeholder"];
|
|
11481
|
-
const _sfc_main$
|
|
11481
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
11482
11482
|
__name: "HierarchyFacet",
|
|
11483
11483
|
props: {
|
|
11484
11484
|
options: {},
|
|
@@ -11528,8 +11528,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11528
11528
|
showAll.value = true;
|
|
11529
11529
|
};
|
|
11530
11530
|
return (_ctx, _cache) => {
|
|
11531
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11532
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11531
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
11532
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
|
|
11533
11533
|
withDirectives(createBaseVNode("input", {
|
|
11534
11534
|
class: "lupa-term-filter",
|
|
11535
11535
|
"data-cy": "lupa-term-filter",
|
|
@@ -11540,7 +11540,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11540
11540
|
])
|
|
11541
11541
|
])) : createCommentVNode("", true),
|
|
11542
11542
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
11543
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11543
|
+
return openBlock(), createBlock(_sfc_main$P, {
|
|
11544
11544
|
key: item.title,
|
|
11545
11545
|
options: _ctx.options,
|
|
11546
11546
|
item,
|
|
@@ -11560,20 +11560,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11560
11560
|
};
|
|
11561
11561
|
}
|
|
11562
11562
|
});
|
|
11563
|
-
const _hoisted_1$
|
|
11564
|
-
const _hoisted_2$
|
|
11563
|
+
const _hoisted_1$K = { class: "lupa-facet-label-text" };
|
|
11564
|
+
const _hoisted_2$u = {
|
|
11565
11565
|
key: 0,
|
|
11566
11566
|
class: "lupa-facet-content",
|
|
11567
11567
|
"data-cy": "lupa-facet-content"
|
|
11568
11568
|
};
|
|
11569
11569
|
const __default__$2 = {
|
|
11570
11570
|
components: {
|
|
11571
|
-
TermFacet: _sfc_main$
|
|
11572
|
-
StatsFacet: _sfc_main$
|
|
11573
|
-
HierarchyFacet: _sfc_main$
|
|
11571
|
+
TermFacet: _sfc_main$R,
|
|
11572
|
+
StatsFacet: _sfc_main$Q,
|
|
11573
|
+
HierarchyFacet: _sfc_main$O
|
|
11574
11574
|
}
|
|
11575
11575
|
};
|
|
11576
|
-
const _sfc_main$
|
|
11576
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
11577
11577
|
__name: "FacetDisplay",
|
|
11578
11578
|
props: {
|
|
11579
11579
|
options: {},
|
|
@@ -11684,12 +11684,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11684
11684
|
"data-cy": "lupa-search-result-facet-label",
|
|
11685
11685
|
onClick: toggleFacet
|
|
11686
11686
|
}, [
|
|
11687
|
-
createBaseVNode("div", _hoisted_1$
|
|
11687
|
+
createBaseVNode("div", _hoisted_1$K, toDisplayString(facet.value.label), 1),
|
|
11688
11688
|
createBaseVNode("div", {
|
|
11689
11689
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
11690
11690
|
}, null, 2)
|
|
11691
11691
|
], 2),
|
|
11692
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11692
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
|
|
11693
11693
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
11694
11694
|
facet: facet.value,
|
|
11695
11695
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -11707,12 +11707,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11707
11707
|
};
|
|
11708
11708
|
}
|
|
11709
11709
|
}));
|
|
11710
|
-
const _hoisted_1$
|
|
11711
|
-
const _hoisted_2$
|
|
11710
|
+
const _hoisted_1$J = { class: "lupa-search-result-facet-section" };
|
|
11711
|
+
const _hoisted_2$t = {
|
|
11712
11712
|
key: 0,
|
|
11713
11713
|
class: "lupa-facets-title"
|
|
11714
11714
|
};
|
|
11715
|
-
const _sfc_main$
|
|
11715
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
11716
11716
|
__name: "FacetList",
|
|
11717
11717
|
props: {
|
|
11718
11718
|
options: {},
|
|
@@ -11746,14 +11746,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11746
11746
|
};
|
|
11747
11747
|
return (_ctx, _cache) => {
|
|
11748
11748
|
var _a;
|
|
11749
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11750
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11749
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
11750
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
11751
11751
|
createBaseVNode("div", {
|
|
11752
11752
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
11753
11753
|
}, [
|
|
11754
11754
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
11755
11755
|
var _a2;
|
|
11756
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11756
|
+
return openBlock(), createBlock(_sfc_main$N, {
|
|
11757
11757
|
key: facet.key,
|
|
11758
11758
|
facet,
|
|
11759
11759
|
currentFilters: currentFiltersValue.value,
|
|
@@ -11768,8 +11768,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11768
11768
|
};
|
|
11769
11769
|
}
|
|
11770
11770
|
});
|
|
11771
|
-
const _hoisted_1$
|
|
11772
|
-
const _sfc_main$
|
|
11771
|
+
const _hoisted_1$I = { class: "lupa-search-result-facets" };
|
|
11772
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
11773
11773
|
__name: "Facets",
|
|
11774
11774
|
props: {
|
|
11775
11775
|
options: {},
|
|
@@ -11815,8 +11815,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11815
11815
|
paramStore.removeParameters({ paramsToRemove: [param] });
|
|
11816
11816
|
};
|
|
11817
11817
|
return (_ctx, _cache) => {
|
|
11818
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11819
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
11818
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
11819
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$M, {
|
|
11820
11820
|
key: 0,
|
|
11821
11821
|
options: _ctx.options,
|
|
11822
11822
|
facets: regularFacets.value,
|
|
@@ -11830,11 +11830,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11830
11830
|
};
|
|
11831
11831
|
}
|
|
11832
11832
|
});
|
|
11833
|
-
const _hoisted_1$
|
|
11833
|
+
const _hoisted_1$H = {
|
|
11834
11834
|
id: "lupa-search-result-filters",
|
|
11835
11835
|
class: "lupa-search-result-filters"
|
|
11836
11836
|
};
|
|
11837
|
-
const _sfc_main$
|
|
11837
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
11838
11838
|
__name: "SearchResultsFilters",
|
|
11839
11839
|
props: {
|
|
11840
11840
|
options: {},
|
|
@@ -11863,19 +11863,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11863
11863
|
__expose({ fetch: fetch2 });
|
|
11864
11864
|
return (_ctx, _cache) => {
|
|
11865
11865
|
var _a;
|
|
11866
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11867
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
11866
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
11867
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$U, {
|
|
11868
11868
|
key: 0,
|
|
11869
11869
|
options: _ctx.options.currentFilters,
|
|
11870
11870
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
11871
11871
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
11872
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
11872
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$S, {
|
|
11873
11873
|
key: 1,
|
|
11874
11874
|
options: _ctx.options.categories,
|
|
11875
11875
|
ref_key: "categoryFilters",
|
|
11876
11876
|
ref: categoryFilters
|
|
11877
11877
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
11878
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
11878
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
|
|
11879
11879
|
key: 2,
|
|
11880
11880
|
options: _ctx.options.facets
|
|
11881
11881
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -11883,11 +11883,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11883
11883
|
};
|
|
11884
11884
|
}
|
|
11885
11885
|
});
|
|
11886
|
-
const _hoisted_1$
|
|
11886
|
+
const _hoisted_1$G = {
|
|
11887
11887
|
key: 0,
|
|
11888
11888
|
class: "lupa-mobile-filter-sidebar"
|
|
11889
11889
|
};
|
|
11890
|
-
const _hoisted_2$
|
|
11890
|
+
const _hoisted_2$s = ["onClick"];
|
|
11891
11891
|
const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
|
|
11892
11892
|
const _hoisted_4$f = { class: "lupa-sidebar-top" };
|
|
11893
11893
|
const _hoisted_5$8 = { class: "lupa-sidebar-title" };
|
|
@@ -11896,7 +11896,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11896
11896
|
class: "lupa-sidebar-filter-count"
|
|
11897
11897
|
};
|
|
11898
11898
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
11899
|
-
const _sfc_main$
|
|
11899
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
11900
11900
|
__name: "MobileFilterSidebar",
|
|
11901
11901
|
props: {
|
|
11902
11902
|
options: {}
|
|
@@ -11922,11 +11922,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11922
11922
|
searchResultStore.setSidebarState({ visible: false });
|
|
11923
11923
|
};
|
|
11924
11924
|
return (_ctx, _cache) => {
|
|
11925
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11925
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
11926
11926
|
createBaseVNode("div", {
|
|
11927
11927
|
class: "lupa-sidebar-close",
|
|
11928
11928
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
11929
|
-
}, null, 8, _hoisted_2$
|
|
11929
|
+
}, null, 8, _hoisted_2$s),
|
|
11930
11930
|
createBaseVNode("div", _hoisted_3$l, [
|
|
11931
11931
|
createBaseVNode("div", _hoisted_4$f, [
|
|
11932
11932
|
createBaseVNode("div", _hoisted_5$8, [
|
|
@@ -11939,7 +11939,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11939
11939
|
})
|
|
11940
11940
|
]),
|
|
11941
11941
|
createBaseVNode("div", _hoisted_7$4, [
|
|
11942
|
-
createVNode(_sfc_main$
|
|
11942
|
+
createVNode(_sfc_main$K, {
|
|
11943
11943
|
options: _ctx.options,
|
|
11944
11944
|
expandable: isActiveFiltersExpanded.value
|
|
11945
11945
|
}, null, 8, ["options", "expandable"])
|
|
@@ -11949,14 +11949,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11949
11949
|
};
|
|
11950
11950
|
}
|
|
11951
11951
|
});
|
|
11952
|
-
const _hoisted_1$
|
|
11953
|
-
const _hoisted_2$
|
|
11952
|
+
const _hoisted_1$F = { id: "lupa-search-results-breadcrumbs" };
|
|
11953
|
+
const _hoisted_2$r = ["href", "onClick"];
|
|
11954
11954
|
const _hoisted_3$k = {
|
|
11955
11955
|
key: 1,
|
|
11956
11956
|
class: "lupa-search-results-breadcrumb-text"
|
|
11957
11957
|
};
|
|
11958
11958
|
const _hoisted_4$e = { key: 2 };
|
|
11959
|
-
const _sfc_main$
|
|
11959
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
11960
11960
|
__name: "SearchResultsBreadcrumbs",
|
|
11961
11961
|
props: {
|
|
11962
11962
|
breadcrumbs: {}
|
|
@@ -11981,7 +11981,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11981
11981
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
11982
11982
|
};
|
|
11983
11983
|
return (_ctx, _cache) => {
|
|
11984
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11984
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
11985
11985
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
11986
11986
|
return openBlock(), createElementBlock("span", {
|
|
11987
11987
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -11995,7 +11995,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11995
11995
|
var _a;
|
|
11996
11996
|
return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
11997
11997
|
}
|
|
11998
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
11998
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$r)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
11999
11999
|
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
|
|
12000
12000
|
]);
|
|
12001
12001
|
}), 128))
|
|
@@ -12003,11 +12003,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12003
12003
|
};
|
|
12004
12004
|
}
|
|
12005
12005
|
});
|
|
12006
|
-
const _hoisted_1$
|
|
12006
|
+
const _hoisted_1$E = {
|
|
12007
12007
|
id: "lupa-search-result-filters",
|
|
12008
12008
|
class: "lupa-search-result-filters"
|
|
12009
12009
|
};
|
|
12010
|
-
const _sfc_main$
|
|
12010
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
12011
12011
|
__name: "FiltersTopDropdown",
|
|
12012
12012
|
props: {
|
|
12013
12013
|
options: {}
|
|
@@ -12015,8 +12015,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12015
12015
|
setup(__props) {
|
|
12016
12016
|
return (_ctx, _cache) => {
|
|
12017
12017
|
var _a;
|
|
12018
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12019
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
12018
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
12019
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
|
|
12020
12020
|
key: 0,
|
|
12021
12021
|
options: _ctx.options.facets,
|
|
12022
12022
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -12026,8 +12026,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12026
12026
|
};
|
|
12027
12027
|
}
|
|
12028
12028
|
});
|
|
12029
|
-
const _hoisted_1$
|
|
12030
|
-
const _sfc_main$
|
|
12029
|
+
const _hoisted_1$D = { id: "lupa-search-results-layout-selection" };
|
|
12030
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
12031
12031
|
__name: "SearchResultsLayoutSelection",
|
|
12032
12032
|
setup(__props) {
|
|
12033
12033
|
const searchResultStore = useSearchResultStore();
|
|
@@ -12038,7 +12038,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12038
12038
|
searchResultStore.setLayout(layout2);
|
|
12039
12039
|
};
|
|
12040
12040
|
return (_ctx, _cache) => {
|
|
12041
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12041
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
12042
12042
|
createBaseVNode("div", {
|
|
12043
12043
|
class: normalizeClass([
|
|
12044
12044
|
"lupa-layout-selection-grid",
|
|
@@ -12060,11 +12060,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12060
12060
|
};
|
|
12061
12061
|
}
|
|
12062
12062
|
});
|
|
12063
|
-
const _hoisted_1$
|
|
12063
|
+
const _hoisted_1$C = {
|
|
12064
12064
|
key: 0,
|
|
12065
12065
|
class: "lupa-mobile-toggle-filter-count"
|
|
12066
12066
|
};
|
|
12067
|
-
const _sfc_main$
|
|
12067
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
12068
12068
|
__name: "SearchResultsMobileToggle",
|
|
12069
12069
|
props: {
|
|
12070
12070
|
label: {},
|
|
@@ -12082,17 +12082,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12082
12082
|
onClick: handleMobileToggle
|
|
12083
12083
|
}, [
|
|
12084
12084
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
12085
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
12085
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$C, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
12086
12086
|
], 2);
|
|
12087
12087
|
};
|
|
12088
12088
|
}
|
|
12089
12089
|
});
|
|
12090
|
-
const _hoisted_1$
|
|
12090
|
+
const _hoisted_1$B = {
|
|
12091
12091
|
key: 0,
|
|
12092
12092
|
id: "lupa-search-results-page-select",
|
|
12093
12093
|
"data-cy": "lupa-search-results-page-select"
|
|
12094
12094
|
};
|
|
12095
|
-
const _hoisted_2$
|
|
12095
|
+
const _hoisted_2$q = {
|
|
12096
12096
|
key: 0,
|
|
12097
12097
|
class: "lupa-page-number-separator"
|
|
12098
12098
|
};
|
|
@@ -12101,7 +12101,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12101
12101
|
key: 0,
|
|
12102
12102
|
class: "lupa-page-number-separator"
|
|
12103
12103
|
};
|
|
12104
|
-
const _sfc_main$
|
|
12104
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
12105
12105
|
__name: "SearchResultsPageSelect",
|
|
12106
12106
|
props: {
|
|
12107
12107
|
lastPageLabel: {},
|
|
@@ -12163,7 +12163,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12163
12163
|
}
|
|
12164
12164
|
};
|
|
12165
12165
|
return (_ctx, _cache) => {
|
|
12166
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
12166
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
12167
12167
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
12168
12168
|
key: 0,
|
|
12169
12169
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -12174,7 +12174,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12174
12174
|
class: "lupa-page-number lupa-page-number-first",
|
|
12175
12175
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
12176
12176
|
}, " 1 "),
|
|
12177
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12177
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$q, "...")) : createCommentVNode("", true)
|
|
12178
12178
|
], 64)) : createCommentVNode("", true),
|
|
12179
12179
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
12180
12180
|
return openBlock(), createElementBlock("div", {
|
|
@@ -12207,13 +12207,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12207
12207
|
};
|
|
12208
12208
|
}
|
|
12209
12209
|
});
|
|
12210
|
-
const _hoisted_1$
|
|
12210
|
+
const _hoisted_1$A = {
|
|
12211
12211
|
id: "lupa-search-results-page-size",
|
|
12212
12212
|
"data-cy": "lupa-search-results-page-size"
|
|
12213
12213
|
};
|
|
12214
|
-
const _hoisted_2$
|
|
12214
|
+
const _hoisted_2$p = { id: "lupa-select" };
|
|
12215
12215
|
const _hoisted_3$i = { class: "lupa-select-label" };
|
|
12216
|
-
const _sfc_main$
|
|
12216
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
12217
12217
|
__name: "SearchResultsPageSize",
|
|
12218
12218
|
props: {
|
|
12219
12219
|
label: {},
|
|
@@ -12230,8 +12230,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12230
12230
|
});
|
|
12231
12231
|
};
|
|
12232
12232
|
return (_ctx, _cache) => {
|
|
12233
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12234
|
-
createBaseVNode("div", _hoisted_2$
|
|
12233
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
12234
|
+
createBaseVNode("div", _hoisted_2$p, [
|
|
12235
12235
|
createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.label), 1),
|
|
12236
12236
|
createBaseVNode("select", {
|
|
12237
12237
|
class: "lupa-select-dropdown",
|
|
@@ -12249,14 +12249,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12249
12249
|
};
|
|
12250
12250
|
}
|
|
12251
12251
|
});
|
|
12252
|
-
const _hoisted_1$
|
|
12252
|
+
const _hoisted_1$z = {
|
|
12253
12253
|
id: "lupa-search-results-sort",
|
|
12254
12254
|
class: "lupa-search-results-sort"
|
|
12255
12255
|
};
|
|
12256
|
-
const _hoisted_2$
|
|
12256
|
+
const _hoisted_2$o = { id: "lupa-select" };
|
|
12257
12257
|
const _hoisted_3$h = { class: "lupa-select-label" };
|
|
12258
12258
|
const _hoisted_4$c = ["value"];
|
|
12259
|
-
const _sfc_main$
|
|
12259
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
12260
12260
|
__name: "SearchResultsSort",
|
|
12261
12261
|
props: {
|
|
12262
12262
|
options: {},
|
|
@@ -12267,6 +12267,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12267
12267
|
const paramStore = useParamsStore();
|
|
12268
12268
|
const { sort } = storeToRefs(paramStore);
|
|
12269
12269
|
const selectedKey = ref("");
|
|
12270
|
+
const previousKey = ref("");
|
|
12270
12271
|
const sortItems = computed(() => {
|
|
12271
12272
|
if (props.options.options && props.options.options.length) {
|
|
12272
12273
|
return props.options.options;
|
|
@@ -12282,6 +12283,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12282
12283
|
var _a, _b;
|
|
12283
12284
|
const optionToSelect = (_a = sortItems.value.find((x) => x.key === sort.value)) == null ? void 0 : _a.key;
|
|
12284
12285
|
selectedKey.value = optionToSelect != null ? optionToSelect : (_b = defaultSortValue.value) == null ? void 0 : _b.key;
|
|
12286
|
+
previousKey.value = selectedKey.value;
|
|
12285
12287
|
};
|
|
12286
12288
|
watch(sort, () => setSortValue());
|
|
12287
12289
|
onMounted(() => {
|
|
@@ -12293,15 +12295,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12293
12295
|
if (!value) {
|
|
12294
12296
|
return;
|
|
12295
12297
|
}
|
|
12296
|
-
(_c = (_b = props.callbacks) == null ? void 0 : _b.onSortChange) == null ? void 0 : _c.call(_b, { selectedSortKey: value });
|
|
12298
|
+
(_c = (_b = props.callbacks) == null ? void 0 : _b.onSortChange) == null ? void 0 : _c.call(_b, { selectedSortKey: value, previousSortKey: previousKey.value });
|
|
12297
12299
|
paramStore.appendParams({
|
|
12298
12300
|
params: [{ name: QUERY_PARAMS$1.SORT, value }],
|
|
12299
12301
|
paramsToRemove: [QUERY_PARAMS$1.PAGE]
|
|
12300
12302
|
});
|
|
12303
|
+
previousKey.value = selectedKey.value;
|
|
12301
12304
|
};
|
|
12302
12305
|
return (_ctx, _cache) => {
|
|
12303
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12304
|
-
createBaseVNode("div", _hoisted_2$
|
|
12306
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
12307
|
+
createBaseVNode("div", _hoisted_2$o, [
|
|
12305
12308
|
createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
|
|
12306
12309
|
withDirectives(createBaseVNode("select", {
|
|
12307
12310
|
class: "lupa-select-dropdown",
|
|
@@ -12324,14 +12327,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12324
12327
|
};
|
|
12325
12328
|
}
|
|
12326
12329
|
});
|
|
12327
|
-
const _hoisted_1$
|
|
12328
|
-
const _hoisted_2$
|
|
12330
|
+
const _hoisted_1$y = { class: "lupa-toolbar-left" };
|
|
12331
|
+
const _hoisted_2$n = { key: 1 };
|
|
12329
12332
|
const _hoisted_3$g = { key: 3 };
|
|
12330
12333
|
const _hoisted_4$b = { key: 5 };
|
|
12331
12334
|
const _hoisted_5$7 = { class: "lupa-toolbar-right" };
|
|
12332
12335
|
const _hoisted_6$4 = { key: 1 };
|
|
12333
12336
|
const _hoisted_7$3 = { key: 3 };
|
|
12334
|
-
const _sfc_main$
|
|
12337
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
12335
12338
|
__name: "SearchResultsToolbar",
|
|
12336
12339
|
props: {
|
|
12337
12340
|
options: {},
|
|
@@ -12430,15 +12433,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12430
12433
|
id: "lupa-search-results-toolbar",
|
|
12431
12434
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
12432
12435
|
}, [
|
|
12433
|
-
createBaseVNode("div", _hoisted_1$
|
|
12434
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
12435
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
12436
|
+
createBaseVNode("div", _hoisted_1$y, [
|
|
12437
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$G, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$n)),
|
|
12438
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$X, {
|
|
12436
12439
|
key: 2,
|
|
12437
12440
|
label: searchSummaryLabel.value,
|
|
12438
12441
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
12439
12442
|
onClear: handleClearAll
|
|
12440
12443
|
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
|
|
12441
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
12444
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
|
|
12442
12445
|
key: 4,
|
|
12443
12446
|
options: paginationOptions.value.pageSelect,
|
|
12444
12447
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
@@ -12446,16 +12449,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12446
12449
|
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$b))
|
|
12447
12450
|
]),
|
|
12448
12451
|
createBaseVNode("div", _hoisted_5$7, [
|
|
12449
|
-
createVNode(_sfc_main$
|
|
12452
|
+
createVNode(_sfc_main$F, {
|
|
12450
12453
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
12451
12454
|
"show-filter-count": showMobileFilterCount.value
|
|
12452
12455
|
}, null, 8, ["label", "show-filter-count"]),
|
|
12453
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
12456
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$D, {
|
|
12454
12457
|
key: 0,
|
|
12455
12458
|
options: paginationOptions.value.pageSize,
|
|
12456
12459
|
label: paginationOptions.value.labels.pageSize
|
|
12457
12460
|
}, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$4)),
|
|
12458
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
12461
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$C, {
|
|
12459
12462
|
key: 2,
|
|
12460
12463
|
options: sortOptions.value,
|
|
12461
12464
|
callbacks: callbacks.value
|
|
@@ -12465,14 +12468,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12465
12468
|
};
|
|
12466
12469
|
}
|
|
12467
12470
|
});
|
|
12468
|
-
const _hoisted_1$
|
|
12469
|
-
const _hoisted_2$
|
|
12471
|
+
const _hoisted_1$x = { class: "lupa-badge-title" };
|
|
12472
|
+
const _hoisted_2$m = ["src"];
|
|
12470
12473
|
const _hoisted_3$f = { key: 1 };
|
|
12471
12474
|
const _hoisted_4$a = {
|
|
12472
12475
|
key: 0,
|
|
12473
12476
|
class: "lupa-badge-full-text"
|
|
12474
12477
|
};
|
|
12475
|
-
const _sfc_main$
|
|
12478
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
12476
12479
|
__name: "SearchResultGeneratedBadge",
|
|
12477
12480
|
props: {
|
|
12478
12481
|
options: {},
|
|
@@ -12505,11 +12508,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12505
12508
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
12506
12509
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
12507
12510
|
}, [
|
|
12508
|
-
createBaseVNode("span", _hoisted_1$
|
|
12511
|
+
createBaseVNode("span", _hoisted_1$x, [
|
|
12509
12512
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
12510
12513
|
key: 0,
|
|
12511
12514
|
src: image.value
|
|
12512
|
-
}, null, 8, _hoisted_2$
|
|
12515
|
+
}, null, 8, _hoisted_2$m)) : createCommentVNode("", true),
|
|
12513
12516
|
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
12514
12517
|
]),
|
|
12515
12518
|
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$a, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
@@ -12517,8 +12520,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12517
12520
|
};
|
|
12518
12521
|
}
|
|
12519
12522
|
});
|
|
12520
|
-
const _hoisted_1$
|
|
12521
|
-
const _sfc_main$
|
|
12523
|
+
const _hoisted_1$w = { class: "lupa-generated-badges" };
|
|
12524
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
12522
12525
|
__name: "SearchResultGeneratedBadges",
|
|
12523
12526
|
props: {
|
|
12524
12527
|
options: {}
|
|
@@ -12544,9 +12547,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12544
12547
|
})).filter((b) => Boolean(b.id));
|
|
12545
12548
|
});
|
|
12546
12549
|
return (_ctx, _cache) => {
|
|
12547
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12550
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
12548
12551
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
12549
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12552
|
+
return openBlock(), createBlock(_sfc_main$A, {
|
|
12550
12553
|
key: badge.id,
|
|
12551
12554
|
badge,
|
|
12552
12555
|
options: _ctx.options
|
|
@@ -12556,8 +12559,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12556
12559
|
};
|
|
12557
12560
|
}
|
|
12558
12561
|
});
|
|
12559
|
-
const _hoisted_1$
|
|
12560
|
-
const _sfc_main$
|
|
12562
|
+
const _hoisted_1$v = ["innerHTML"];
|
|
12563
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
12561
12564
|
__name: "CustomBadge",
|
|
12562
12565
|
props: {
|
|
12563
12566
|
badge: {}
|
|
@@ -12576,12 +12579,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12576
12579
|
return openBlock(), createElementBlock("div", {
|
|
12577
12580
|
class: normalizeClass(className.value),
|
|
12578
12581
|
innerHTML: text.value
|
|
12579
|
-
}, null, 10, _hoisted_1$
|
|
12582
|
+
}, null, 10, _hoisted_1$v);
|
|
12580
12583
|
};
|
|
12581
12584
|
}
|
|
12582
12585
|
});
|
|
12583
|
-
const _hoisted_1$
|
|
12584
|
-
const _sfc_main$
|
|
12586
|
+
const _hoisted_1$u = { class: "lupa-text-badges" };
|
|
12587
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
12585
12588
|
__name: "TextBadge",
|
|
12586
12589
|
props: {
|
|
12587
12590
|
badge: {}
|
|
@@ -12596,7 +12599,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12596
12599
|
return badges.value.slice(0, props.badge.maxItems);
|
|
12597
12600
|
});
|
|
12598
12601
|
return (_ctx, _cache) => {
|
|
12599
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12602
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
12600
12603
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
12601
12604
|
return openBlock(), createElementBlock("div", {
|
|
12602
12605
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -12607,9 +12610,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12607
12610
|
};
|
|
12608
12611
|
}
|
|
12609
12612
|
});
|
|
12610
|
-
const _hoisted_1$
|
|
12611
|
-
const _hoisted_2$
|
|
12612
|
-
const _sfc_main$
|
|
12613
|
+
const _hoisted_1$t = { class: "lupa-image-badges" };
|
|
12614
|
+
const _hoisted_2$l = ["src"];
|
|
12615
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
12613
12616
|
__name: "ImageBadge",
|
|
12614
12617
|
props: {
|
|
12615
12618
|
badge: {}
|
|
@@ -12629,7 +12632,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12629
12632
|
return `${props.badge.rootImageUrl}${src}`;
|
|
12630
12633
|
};
|
|
12631
12634
|
return (_ctx, _cache) => {
|
|
12632
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12635
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
12633
12636
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
12634
12637
|
return openBlock(), createElementBlock("div", {
|
|
12635
12638
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -12637,22 +12640,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12637
12640
|
}, [
|
|
12638
12641
|
createBaseVNode("img", {
|
|
12639
12642
|
src: getImageUrl(item)
|
|
12640
|
-
}, null, 8, _hoisted_2$
|
|
12643
|
+
}, null, 8, _hoisted_2$l)
|
|
12641
12644
|
]);
|
|
12642
12645
|
}), 128))
|
|
12643
12646
|
]);
|
|
12644
12647
|
};
|
|
12645
12648
|
}
|
|
12646
12649
|
});
|
|
12647
|
-
const _hoisted_1$
|
|
12650
|
+
const _hoisted_1$s = { id: "lupa-search-results-badges" };
|
|
12648
12651
|
const __default__$1 = {
|
|
12649
12652
|
components: {
|
|
12650
|
-
CustomBadge: _sfc_main$
|
|
12651
|
-
TextBadge: _sfc_main$
|
|
12652
|
-
ImageBadge: _sfc_main$
|
|
12653
|
+
CustomBadge: _sfc_main$y,
|
|
12654
|
+
TextBadge: _sfc_main$x,
|
|
12655
|
+
ImageBadge: _sfc_main$w
|
|
12653
12656
|
}
|
|
12654
12657
|
};
|
|
12655
|
-
const _sfc_main$
|
|
12658
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
12656
12659
|
__name: "SearchResultsBadgeWrapper",
|
|
12657
12660
|
props: {
|
|
12658
12661
|
position: {},
|
|
@@ -12698,7 +12701,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12698
12701
|
}
|
|
12699
12702
|
};
|
|
12700
12703
|
return (_ctx, _cache) => {
|
|
12701
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12704
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
12702
12705
|
createBaseVNode("div", {
|
|
12703
12706
|
id: "lupa-badges",
|
|
12704
12707
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -12709,7 +12712,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12709
12712
|
badge
|
|
12710
12713
|
}, null, 8, ["badge"]);
|
|
12711
12714
|
}), 128)),
|
|
12712
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
12715
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$z, {
|
|
12713
12716
|
key: 0,
|
|
12714
12717
|
options: _ctx.options
|
|
12715
12718
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -12718,7 +12721,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12718
12721
|
};
|
|
12719
12722
|
}
|
|
12720
12723
|
}));
|
|
12721
|
-
const _sfc_main$
|
|
12724
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
12722
12725
|
__name: "SearchResultsProductImage",
|
|
12723
12726
|
props: {
|
|
12724
12727
|
item: {},
|
|
@@ -12726,7 +12729,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12726
12729
|
},
|
|
12727
12730
|
setup(__props) {
|
|
12728
12731
|
return (_ctx, _cache) => {
|
|
12729
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12732
|
+
return openBlock(), createBlock(_sfc_main$1b, {
|
|
12730
12733
|
item: _ctx.item,
|
|
12731
12734
|
options: _ctx.options,
|
|
12732
12735
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -12735,14 +12738,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12735
12738
|
};
|
|
12736
12739
|
}
|
|
12737
12740
|
});
|
|
12738
|
-
const _hoisted_1$
|
|
12739
|
-
const _hoisted_2$
|
|
12741
|
+
const _hoisted_1$r = ["innerHTML"];
|
|
12742
|
+
const _hoisted_2$k = ["title"];
|
|
12740
12743
|
const _hoisted_3$e = {
|
|
12741
12744
|
key: 0,
|
|
12742
12745
|
class: "lupa-search-results-product-title-text"
|
|
12743
12746
|
};
|
|
12744
12747
|
const _hoisted_4$9 = ["href"];
|
|
12745
|
-
const _sfc_main$
|
|
12748
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
12746
12749
|
__name: "SearchResultsProductTitle",
|
|
12747
12750
|
props: {
|
|
12748
12751
|
item: {},
|
|
@@ -12775,7 +12778,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12775
12778
|
class: "lupa-search-results-product-title",
|
|
12776
12779
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12777
12780
|
innerHTML: title.value
|
|
12778
|
-
}, null, 12, _hoisted_1$
|
|
12781
|
+
}, null, 12, _hoisted_1$r)) : (openBlock(), createElementBlock("div", {
|
|
12779
12782
|
key: 1,
|
|
12780
12783
|
class: "lupa-search-results-product-title",
|
|
12781
12784
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -12788,12 +12791,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12788
12791
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
12789
12792
|
onClick: handleNavigation
|
|
12790
12793
|
}, toDisplayString(title.value), 9, _hoisted_4$9)) : createCommentVNode("", true)
|
|
12791
|
-
], 12, _hoisted_2$
|
|
12794
|
+
], 12, _hoisted_2$k));
|
|
12792
12795
|
};
|
|
12793
12796
|
}
|
|
12794
12797
|
});
|
|
12795
|
-
const _hoisted_1$
|
|
12796
|
-
const _sfc_main$
|
|
12798
|
+
const _hoisted_1$q = ["innerHTML"];
|
|
12799
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
12797
12800
|
__name: "SearchResultsProductDescription",
|
|
12798
12801
|
props: {
|
|
12799
12802
|
item: {},
|
|
@@ -12817,7 +12820,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12817
12820
|
class: "lupa-search-results-product-description",
|
|
12818
12821
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12819
12822
|
innerHTML: description.value
|
|
12820
|
-
}, null, 12, _hoisted_1$
|
|
12823
|
+
}, null, 12, _hoisted_1$q)) : (openBlock(), createElementBlock("div", {
|
|
12821
12824
|
key: 1,
|
|
12822
12825
|
class: "lupa-search-results-product-description",
|
|
12823
12826
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -12825,15 +12828,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12825
12828
|
};
|
|
12826
12829
|
}
|
|
12827
12830
|
});
|
|
12828
|
-
const _hoisted_1$
|
|
12829
|
-
const _hoisted_2$
|
|
12831
|
+
const _hoisted_1$p = { id: "lupa-search-results-rating" };
|
|
12832
|
+
const _hoisted_2$j = { class: "lupa-ratings" };
|
|
12830
12833
|
const _hoisted_3$d = { class: "lupa-ratings-base" };
|
|
12831
12834
|
const _hoisted_4$8 = ["innerHTML"];
|
|
12832
12835
|
const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
|
|
12833
12836
|
const _hoisted_6$3 = ["innerHTML"];
|
|
12834
12837
|
const _hoisted_7$2 = ["href"];
|
|
12835
12838
|
const STAR_COUNT = 5;
|
|
12836
|
-
const _sfc_main$
|
|
12839
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
12837
12840
|
__name: "SearchResultsProductRating",
|
|
12838
12841
|
props: {
|
|
12839
12842
|
item: {},
|
|
@@ -12864,8 +12867,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12864
12867
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
12865
12868
|
});
|
|
12866
12869
|
return (_ctx, _cache) => {
|
|
12867
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12868
|
-
createBaseVNode("div", _hoisted_2$
|
|
12870
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
12871
|
+
createBaseVNode("div", _hoisted_2$j, [
|
|
12869
12872
|
createBaseVNode("div", _hoisted_3$d, [
|
|
12870
12873
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
12871
12874
|
return openBlock(), createElementBlock("div", {
|
|
@@ -12898,11 +12901,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12898
12901
|
};
|
|
12899
12902
|
}
|
|
12900
12903
|
});
|
|
12901
|
-
const _hoisted_1$
|
|
12904
|
+
const _hoisted_1$o = {
|
|
12902
12905
|
class: "lupa-search-results-product-regular-price",
|
|
12903
12906
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
12904
12907
|
};
|
|
12905
|
-
const _sfc_main$
|
|
12908
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
12906
12909
|
__name: "SearchResultsProductRegularPrice",
|
|
12907
12910
|
props: {
|
|
12908
12911
|
item: {},
|
|
@@ -12920,15 +12923,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12920
12923
|
);
|
|
12921
12924
|
});
|
|
12922
12925
|
return (_ctx, _cache) => {
|
|
12923
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12926
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, toDisplayString(price.value), 1);
|
|
12924
12927
|
};
|
|
12925
12928
|
}
|
|
12926
12929
|
});
|
|
12927
|
-
const _hoisted_1$
|
|
12930
|
+
const _hoisted_1$n = {
|
|
12928
12931
|
class: "lupa-search-results-product-price",
|
|
12929
12932
|
"data-cy": "lupa-search-results-product-price"
|
|
12930
12933
|
};
|
|
12931
|
-
const _sfc_main$
|
|
12934
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
12932
12935
|
__name: "SearchResultsProductPrice",
|
|
12933
12936
|
props: {
|
|
12934
12937
|
item: {},
|
|
@@ -12946,16 +12949,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12946
12949
|
);
|
|
12947
12950
|
});
|
|
12948
12951
|
return (_ctx, _cache) => {
|
|
12949
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12952
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
12950
12953
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
12951
12954
|
]);
|
|
12952
12955
|
};
|
|
12953
12956
|
}
|
|
12954
12957
|
});
|
|
12955
|
-
const _hoisted_1$
|
|
12956
|
-
const _hoisted_2$
|
|
12958
|
+
const _hoisted_1$m = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
12959
|
+
const _hoisted_2$i = { class: "lupa-search-results-product-addtocart" };
|
|
12957
12960
|
const _hoisted_3$c = ["onClick", "disabled"];
|
|
12958
|
-
const _sfc_main$
|
|
12961
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
12959
12962
|
__name: "SearchResultsProductAddToCart",
|
|
12960
12963
|
props: {
|
|
12961
12964
|
item: {},
|
|
@@ -12982,8 +12985,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12982
12985
|
loading.value = false;
|
|
12983
12986
|
});
|
|
12984
12987
|
return (_ctx, _cache) => {
|
|
12985
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12986
|
-
createBaseVNode("div", _hoisted_2$
|
|
12988
|
+
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
12989
|
+
createBaseVNode("div", _hoisted_2$i, [
|
|
12987
12990
|
createBaseVNode("button", {
|
|
12988
12991
|
onClick: withModifiers(handleClick, ["stop"]),
|
|
12989
12992
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
@@ -12995,12 +12998,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12995
12998
|
};
|
|
12996
12999
|
}
|
|
12997
13000
|
});
|
|
12998
|
-
const _hoisted_1$
|
|
12999
|
-
const _hoisted_2$
|
|
13001
|
+
const _hoisted_1$l = ["innerHTML"];
|
|
13002
|
+
const _hoisted_2$h = { key: 0 };
|
|
13000
13003
|
const _hoisted_3$b = { key: 1 };
|
|
13001
13004
|
const _hoisted_4$7 = { class: "lupa-search-box-custom-label" };
|
|
13002
13005
|
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
13003
|
-
const _sfc_main$
|
|
13006
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
13004
13007
|
__name: "SearchResultsProductCustom",
|
|
13005
13008
|
props: {
|
|
13006
13009
|
item: {},
|
|
@@ -13038,11 +13041,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13038
13041
|
key: 0,
|
|
13039
13042
|
class: className.value,
|
|
13040
13043
|
innerHTML: text.value
|
|
13041
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
13044
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$l)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
13042
13045
|
key: 1,
|
|
13043
13046
|
class: className.value
|
|
13044
13047
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
13045
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13048
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$h, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$b, [
|
|
13046
13049
|
createBaseVNode("div", _hoisted_4$7, toDisplayString(label.value), 1),
|
|
13047
13050
|
createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
|
|
13048
13051
|
]))
|
|
@@ -13050,8 +13053,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13050
13053
|
};
|
|
13051
13054
|
}
|
|
13052
13055
|
});
|
|
13053
|
-
const _hoisted_1$
|
|
13054
|
-
const _sfc_main$
|
|
13056
|
+
const _hoisted_1$k = ["innerHTML"];
|
|
13057
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
13055
13058
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
13056
13059
|
props: {
|
|
13057
13060
|
item: {},
|
|
@@ -13075,15 +13078,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13075
13078
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
13076
13079
|
class: className.value,
|
|
13077
13080
|
innerHTML: text.value
|
|
13078
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
13081
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$k);
|
|
13079
13082
|
};
|
|
13080
13083
|
}
|
|
13081
13084
|
});
|
|
13082
|
-
const _hoisted_1$
|
|
13083
|
-
const _hoisted_2$
|
|
13085
|
+
const _hoisted_1$j = { id: "lupa-search-results-rating" };
|
|
13086
|
+
const _hoisted_2$g = ["innerHTML"];
|
|
13084
13087
|
const _hoisted_3$a = { class: "lupa-ratings" };
|
|
13085
13088
|
const _hoisted_4$6 = ["href"];
|
|
13086
|
-
const _sfc_main$
|
|
13089
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
13087
13090
|
__name: "SearchResultsProductSingleStarRating",
|
|
13088
13091
|
props: {
|
|
13089
13092
|
item: {},
|
|
@@ -13111,11 +13114,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13111
13114
|
return RATING_STAR_HTML;
|
|
13112
13115
|
});
|
|
13113
13116
|
return (_ctx, _cache) => {
|
|
13114
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13117
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
13115
13118
|
createBaseVNode("div", {
|
|
13116
13119
|
innerHTML: star.value,
|
|
13117
13120
|
class: "lupa-rating lupa-rating-highlighted"
|
|
13118
|
-
}, null, 8, _hoisted_2$
|
|
13121
|
+
}, null, 8, _hoisted_2$g),
|
|
13119
13122
|
createBaseVNode("div", _hoisted_3$a, toDisplayString(rating.value), 1),
|
|
13120
13123
|
createBaseVNode("a", {
|
|
13121
13124
|
href: ratingLink.value,
|
|
@@ -13127,19 +13130,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13127
13130
|
});
|
|
13128
13131
|
const __default__ = {
|
|
13129
13132
|
components: {
|
|
13130
|
-
SearchResultsProductImage: _sfc_main$
|
|
13131
|
-
SearchResultsProductTitle: _sfc_main$
|
|
13132
|
-
SearchResultsProductDescription: _sfc_main$
|
|
13133
|
-
SearchResultsProductRating: _sfc_main$
|
|
13134
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
13135
|
-
SearchResultsProductPrice: _sfc_main$
|
|
13136
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
13137
|
-
SearchResultsProductCustom: _sfc_main$
|
|
13138
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
13139
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
13140
|
-
}
|
|
13141
|
-
};
|
|
13142
|
-
const _sfc_main$
|
|
13133
|
+
SearchResultsProductImage: _sfc_main$u,
|
|
13134
|
+
SearchResultsProductTitle: _sfc_main$t,
|
|
13135
|
+
SearchResultsProductDescription: _sfc_main$s,
|
|
13136
|
+
SearchResultsProductRating: _sfc_main$r,
|
|
13137
|
+
SearchResultsProductRegularPrice: _sfc_main$q,
|
|
13138
|
+
SearchResultsProductPrice: _sfc_main$p,
|
|
13139
|
+
SearchResultsProductAddToCart: _sfc_main$o,
|
|
13140
|
+
SearchResultsProductCustom: _sfc_main$n,
|
|
13141
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$m,
|
|
13142
|
+
SearchResultsProductSingleStarRating: _sfc_main$l
|
|
13143
|
+
}
|
|
13144
|
+
};
|
|
13145
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
13143
13146
|
__name: "SearchResultsProductCardElement",
|
|
13144
13147
|
props: {
|
|
13145
13148
|
item: {},
|
|
@@ -13209,13 +13212,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13209
13212
|
};
|
|
13210
13213
|
}
|
|
13211
13214
|
}));
|
|
13212
|
-
const _hoisted_1$
|
|
13213
|
-
const _hoisted_2$
|
|
13215
|
+
const _hoisted_1$i = ["href"];
|
|
13216
|
+
const _hoisted_2$f = {
|
|
13214
13217
|
key: 0,
|
|
13215
13218
|
class: "lupa-out-of-stock"
|
|
13216
13219
|
};
|
|
13217
13220
|
const _hoisted_3$9 = { class: "lupa-search-result-product-details-section" };
|
|
13218
|
-
const _sfc_main$
|
|
13221
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
13219
13222
|
__name: "SearchResultsProductCard",
|
|
13220
13223
|
props: {
|
|
13221
13224
|
product: {},
|
|
@@ -13360,7 +13363,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13360
13363
|
class: normalizeClass(["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]),
|
|
13361
13364
|
onClick: handleClick
|
|
13362
13365
|
}, [
|
|
13363
|
-
createVNode(_sfc_main$
|
|
13366
|
+
createVNode(_sfc_main$v, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
13364
13367
|
createBaseVNode("div", {
|
|
13365
13368
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
13366
13369
|
}, [
|
|
@@ -13370,7 +13373,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13370
13373
|
onClick: handleNavigation
|
|
13371
13374
|
}, [
|
|
13372
13375
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
13373
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13376
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13374
13377
|
class: "lupa-search-results-product-element",
|
|
13375
13378
|
item: _ctx.product,
|
|
13376
13379
|
element,
|
|
@@ -13380,16 +13383,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13380
13383
|
link: link.value
|
|
13381
13384
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
13382
13385
|
}), 128)),
|
|
13383
|
-
createVNode(_sfc_main$
|
|
13386
|
+
createVNode(_sfc_main$v, {
|
|
13384
13387
|
options: badgesOptions.value,
|
|
13385
13388
|
position: "image",
|
|
13386
13389
|
class: "lupa-image-badges"
|
|
13387
13390
|
}, null, 8, ["options"]),
|
|
13388
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13389
|
-
], 8, _hoisted_1$
|
|
13391
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$f, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
13392
|
+
], 8, _hoisted_1$i),
|
|
13390
13393
|
createBaseVNode("div", _hoisted_3$9, [
|
|
13391
13394
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
13392
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13395
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13393
13396
|
class: "lupa-search-results-product-element",
|
|
13394
13397
|
item: _ctx.product,
|
|
13395
13398
|
element,
|
|
@@ -13407,7 +13410,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13407
13410
|
class: normalizeClass("lupa-element-group-" + group)
|
|
13408
13411
|
}, [
|
|
13409
13412
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
13410
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13413
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13411
13414
|
class: "lupa-search-results-product-element",
|
|
13412
13415
|
item: _ctx.product,
|
|
13413
13416
|
element,
|
|
@@ -13425,11 +13428,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13425
13428
|
};
|
|
13426
13429
|
}
|
|
13427
13430
|
});
|
|
13428
|
-
const _hoisted_1$
|
|
13431
|
+
const _hoisted_1$h = {
|
|
13429
13432
|
id: "lupa-search-results-similar-queries",
|
|
13430
13433
|
"data-cy": "lupa-search-results-similar-queries"
|
|
13431
13434
|
};
|
|
13432
|
-
const _hoisted_2$
|
|
13435
|
+
const _hoisted_2$e = { class: "lupa-similar-queries-label" };
|
|
13433
13436
|
const _hoisted_3$8 = {
|
|
13434
13437
|
class: "lupa-similar-query-label",
|
|
13435
13438
|
"data-cy": "lupa-similar-query-label"
|
|
@@ -13441,7 +13444,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13441
13444
|
class: "lupa-products",
|
|
13442
13445
|
"data-cy": "lupa-products"
|
|
13443
13446
|
};
|
|
13444
|
-
const _sfc_main$
|
|
13447
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
13445
13448
|
__name: "SearchResultsSimilarQueries",
|
|
13446
13449
|
props: {
|
|
13447
13450
|
labels: {},
|
|
@@ -13471,8 +13474,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13471
13474
|
paramsStore.goToResults({ searchText, facet });
|
|
13472
13475
|
};
|
|
13473
13476
|
return (_ctx, _cache) => {
|
|
13474
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13475
|
-
createBaseVNode("div", _hoisted_2$
|
|
13477
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
13478
|
+
createBaseVNode("div", _hoisted_2$e, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
13476
13479
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
13477
13480
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
13478
13481
|
createBaseVNode("div", _hoisted_3$8, [
|
|
@@ -13491,7 +13494,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13491
13494
|
]),
|
|
13492
13495
|
createBaseVNode("div", _hoisted_7$1, [
|
|
13493
13496
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
13494
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13497
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
13495
13498
|
style: normalizeStyle(_ctx.columnSize),
|
|
13496
13499
|
key: getDocumentKey(index2, product),
|
|
13497
13500
|
product,
|
|
@@ -13505,15 +13508,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13505
13508
|
};
|
|
13506
13509
|
}
|
|
13507
13510
|
});
|
|
13508
|
-
const _hoisted_1$
|
|
13511
|
+
const _hoisted_1$g = {
|
|
13509
13512
|
key: 0,
|
|
13510
13513
|
class: "lupa-results-additional-panel"
|
|
13511
13514
|
};
|
|
13512
|
-
const _hoisted_2$
|
|
13515
|
+
const _hoisted_2$d = {
|
|
13513
13516
|
class: "lupa-results-additional-panel-items",
|
|
13514
13517
|
"data-cy": "lupa-results-additional-panel-items"
|
|
13515
13518
|
};
|
|
13516
|
-
const _sfc_main$
|
|
13519
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
13517
13520
|
__name: "AdditionalPanel",
|
|
13518
13521
|
props: {
|
|
13519
13522
|
panel: {},
|
|
@@ -13585,10 +13588,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13585
13588
|
handleQueryChange();
|
|
13586
13589
|
});
|
|
13587
13590
|
return (_ctx, _cache) => {
|
|
13588
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13589
|
-
createBaseVNode("div", _hoisted_2$
|
|
13591
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
13592
|
+
createBaseVNode("div", _hoisted_2$d, [
|
|
13590
13593
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
13591
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13594
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
13592
13595
|
key: index,
|
|
13593
13596
|
product: item,
|
|
13594
13597
|
options: _ctx.panel,
|
|
@@ -13606,11 +13609,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13606
13609
|
};
|
|
13607
13610
|
}
|
|
13608
13611
|
});
|
|
13609
|
-
const _hoisted_1$
|
|
13612
|
+
const _hoisted_1$f = {
|
|
13610
13613
|
key: 0,
|
|
13611
13614
|
class: "lupa-results-additional-panels"
|
|
13612
13615
|
};
|
|
13613
|
-
const _sfc_main$
|
|
13616
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
13614
13617
|
__name: "AdditionalPanels",
|
|
13615
13618
|
props: {
|
|
13616
13619
|
options: {},
|
|
@@ -13627,9 +13630,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13627
13630
|
return locationPanels.value.length > 0;
|
|
13628
13631
|
});
|
|
13629
13632
|
return (_ctx, _cache) => {
|
|
13630
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13633
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
13631
13634
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
13632
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13635
|
+
return openBlock(), createBlock(_sfc_main$h, {
|
|
13633
13636
|
key: panel.queryKey,
|
|
13634
13637
|
panel,
|
|
13635
13638
|
options: _ctx.sdkOptions
|
|
@@ -13646,21 +13649,21 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13646
13649
|
}
|
|
13647
13650
|
return target;
|
|
13648
13651
|
};
|
|
13649
|
-
const _sfc_main$
|
|
13650
|
-
const _hoisted_1$
|
|
13651
|
-
const _hoisted_2$
|
|
13652
|
+
const _sfc_main$f = {};
|
|
13653
|
+
const _hoisted_1$e = { class: "lupa-spinner-wrapper" };
|
|
13654
|
+
const _hoisted_2$c = { class: "lupa-spinner" };
|
|
13652
13655
|
function _sfc_render(_ctx, _cache) {
|
|
13653
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13654
|
-
createBaseVNode("div", _hoisted_2$
|
|
13656
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
13657
|
+
createBaseVNode("div", _hoisted_2$c, [
|
|
13655
13658
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
|
|
13656
13659
|
return createBaseVNode("div", { key: x });
|
|
13657
13660
|
}), 64))
|
|
13658
13661
|
])
|
|
13659
13662
|
]);
|
|
13660
13663
|
}
|
|
13661
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13662
|
-
const _hoisted_1$
|
|
13663
|
-
const _hoisted_2$
|
|
13664
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render]]);
|
|
13665
|
+
const _hoisted_1$d = { id: "lupa-search-results-products" };
|
|
13666
|
+
const _hoisted_2$b = {
|
|
13664
13667
|
class: "lupa-products",
|
|
13665
13668
|
"data-cy": "lupa-products"
|
|
13666
13669
|
};
|
|
@@ -13675,7 +13678,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13675
13678
|
"data-cy": "lupa-no-results"
|
|
13676
13679
|
};
|
|
13677
13680
|
const _hoisted_5$3 = { key: 4 };
|
|
13678
|
-
const _sfc_main$
|
|
13681
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
13679
13682
|
__name: "SearchResultsProducts",
|
|
13680
13683
|
props: {
|
|
13681
13684
|
options: {},
|
|
@@ -13766,23 +13769,23 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13766
13769
|
};
|
|
13767
13770
|
return (_ctx, _cache) => {
|
|
13768
13771
|
var _a;
|
|
13769
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13772
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
13770
13773
|
unref(loading) && !unref(isMobileSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
13771
13774
|
key: 0,
|
|
13772
13775
|
class: "lupa-loader"
|
|
13773
13776
|
})) : createCommentVNode("", true),
|
|
13774
13777
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
13775
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13778
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
|
|
13776
13779
|
key: 0,
|
|
13777
13780
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
13778
13781
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13779
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13782
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$B, {
|
|
13780
13783
|
key: 1,
|
|
13781
13784
|
class: "lupa-toolbar-mobile",
|
|
13782
13785
|
options: _ctx.options,
|
|
13783
13786
|
"pagination-location": "top"
|
|
13784
13787
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13785
|
-
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
13788
|
+
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$U, {
|
|
13786
13789
|
key: 2,
|
|
13787
13790
|
class: normalizeClass(currentFiltersClass.value),
|
|
13788
13791
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -13790,18 +13793,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13790
13793
|
expandable: !desktopFiltersExpanded.value
|
|
13791
13794
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
13792
13795
|
], 64)) : createCommentVNode("", true),
|
|
13793
|
-
createVNode(_sfc_main$
|
|
13796
|
+
createVNode(_sfc_main$g, {
|
|
13794
13797
|
options: _ctx.options,
|
|
13795
13798
|
location: "top",
|
|
13796
13799
|
sdkOptions: _ctx.options.options
|
|
13797
13800
|
}, null, 8, ["options", "sdkOptions"]),
|
|
13798
13801
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
13799
|
-
createVNode(_sfc_main$
|
|
13802
|
+
createVNode(_sfc_main$B, {
|
|
13800
13803
|
class: "lupa-toolbar-top",
|
|
13801
13804
|
options: _ctx.options,
|
|
13802
13805
|
"pagination-location": "top"
|
|
13803
13806
|
}, null, 8, ["options"]),
|
|
13804
|
-
createBaseVNode("div", _hoisted_2$
|
|
13807
|
+
createBaseVNode("div", _hoisted_2$b, [
|
|
13805
13808
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
|
|
13806
13809
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
13807
13810
|
style: normalizeStyle(columnSize.value),
|
|
@@ -13810,7 +13813,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13810
13813
|
options: productCardOptions.value
|
|
13811
13814
|
});
|
|
13812
13815
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
13813
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13816
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
13814
13817
|
style: normalizeStyle(columnSize.value),
|
|
13815
13818
|
key: getProductKeyAction(index, product),
|
|
13816
13819
|
product,
|
|
@@ -13826,12 +13829,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13826
13829
|
onClick: goToFirstPage
|
|
13827
13830
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
13828
13831
|
])) : createCommentVNode("", true),
|
|
13829
|
-
createVNode(_sfc_main$
|
|
13832
|
+
createVNode(_sfc_main$B, {
|
|
13830
13833
|
class: "lupa-toolbar-bottom",
|
|
13831
13834
|
options: _ctx.options,
|
|
13832
13835
|
"pagination-location": "bottom"
|
|
13833
13836
|
}, null, 8, ["options"]),
|
|
13834
|
-
createVNode(_sfc_main$
|
|
13837
|
+
createVNode(_sfc_main$g, {
|
|
13835
13838
|
options: _ctx.options,
|
|
13836
13839
|
location: "bottom",
|
|
13837
13840
|
sdkOptions: _ctx.options.options
|
|
@@ -13841,7 +13844,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13841
13844
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
13842
13845
|
])) : createCommentVNode("", true),
|
|
13843
13846
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
13844
|
-
createVNode(_sfc_main$
|
|
13847
|
+
createVNode(_sfc_main$i, {
|
|
13845
13848
|
labels: similarQueriesLabels.value,
|
|
13846
13849
|
columnSize: columnSize.value,
|
|
13847
13850
|
productCardOptions: productCardOptions.value
|
|
@@ -13852,13 +13855,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13852
13855
|
};
|
|
13853
13856
|
}
|
|
13854
13857
|
});
|
|
13855
|
-
const _hoisted_1$
|
|
13856
|
-
const _hoisted_2$
|
|
13858
|
+
const _hoisted_1$c = { class: "lupa-top-mobile-filter-wrapper" };
|
|
13859
|
+
const _hoisted_2$a = {
|
|
13857
13860
|
key: 0,
|
|
13858
13861
|
class: "lupa-category-back"
|
|
13859
13862
|
};
|
|
13860
13863
|
const _hoisted_3$6 = ["href"];
|
|
13861
|
-
const _sfc_main$
|
|
13864
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
13862
13865
|
__name: "CategoryTopFilters",
|
|
13863
13866
|
props: {
|
|
13864
13867
|
options: {}
|
|
@@ -13890,15 +13893,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13890
13893
|
return openBlock(), createElementBlock("div", {
|
|
13891
13894
|
class: normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
|
|
13892
13895
|
}, [
|
|
13893
|
-
createBaseVNode("div", _hoisted_1$
|
|
13894
|
-
hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13896
|
+
createBaseVNode("div", _hoisted_1$c, [
|
|
13897
|
+
hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
13895
13898
|
createBaseVNode("a", {
|
|
13896
13899
|
"data-cy": "lupa-category-back",
|
|
13897
13900
|
href: backUrlLink.value,
|
|
13898
13901
|
onClick: handleNavigationBack
|
|
13899
13902
|
}, toDisplayString(backTitle.value), 9, _hoisted_3$6)
|
|
13900
13903
|
])) : createCommentVNode("", true),
|
|
13901
|
-
createVNode(_sfc_main$
|
|
13904
|
+
createVNode(_sfc_main$B, {
|
|
13902
13905
|
class: "lupa-toolbar-mobile",
|
|
13903
13906
|
"pagination-location": "top",
|
|
13904
13907
|
options: _ctx.options
|
|
@@ -13908,18 +13911,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13908
13911
|
};
|
|
13909
13912
|
}
|
|
13910
13913
|
});
|
|
13911
|
-
const _hoisted_1$
|
|
13914
|
+
const _hoisted_1$b = {
|
|
13912
13915
|
key: 0,
|
|
13913
13916
|
class: "lupa-container-title-summary-mobile"
|
|
13914
13917
|
};
|
|
13915
|
-
const _hoisted_2$
|
|
13918
|
+
const _hoisted_2$9 = {
|
|
13916
13919
|
key: 4,
|
|
13917
13920
|
id: "lupa-search-results",
|
|
13918
13921
|
class: "top-layout-wrapper"
|
|
13919
13922
|
};
|
|
13920
13923
|
const _hoisted_3$5 = { class: "search-content" };
|
|
13921
13924
|
const _hoisted_4$3 = { id: "lupa-search-results" };
|
|
13922
|
-
const _sfc_main$
|
|
13925
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
13923
13926
|
__name: "SearchResults",
|
|
13924
13927
|
props: {
|
|
13925
13928
|
options: {},
|
|
@@ -13992,7 +13995,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13992
13995
|
const hasResults2 = Boolean(
|
|
13993
13996
|
results.total > 0 || ((_a = results.similarQueries) == null ? void 0 : _a.length) || ((_b = results.didYouMean) == null ? void 0 : _b.options)
|
|
13994
13997
|
);
|
|
13995
|
-
(_d = (_c = props.options.callbacks) == null ? void 0 : _c.onSearchResults) == null ? void 0 : _d.call(_c, { queryKey, hasResults: hasResults2 });
|
|
13998
|
+
(_d = (_c = props.options.callbacks) == null ? void 0 : _c.onSearchResults) == null ? void 0 : _d.call(_c, { queryKey, hasResults: hasResults2, params: paramStore.params });
|
|
13996
13999
|
if (!hasResults2) {
|
|
13997
14000
|
return;
|
|
13998
14001
|
}
|
|
@@ -14108,40 +14111,40 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14108
14111
|
return openBlock(), createElementBlock("div", {
|
|
14109
14112
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
14110
14113
|
}, [
|
|
14111
|
-
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14112
|
-
createVNode(_sfc_main$
|
|
14113
|
-
createVNode(_sfc_main$
|
|
14114
|
+
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
14115
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14116
|
+
createVNode(_sfc_main$W, {
|
|
14114
14117
|
"show-summary": true,
|
|
14115
14118
|
options: _ctx.options,
|
|
14116
14119
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
14117
14120
|
}, null, 8, ["options", "is-product-list"])
|
|
14118
14121
|
])) : createCommentVNode("", true),
|
|
14119
|
-
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$
|
|
14122
|
+
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$d, {
|
|
14120
14123
|
key: 1,
|
|
14121
14124
|
options: _ctx.options
|
|
14122
14125
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14123
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
14126
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$J, {
|
|
14124
14127
|
key: 2,
|
|
14125
14128
|
options: _ctx.options.filters
|
|
14126
14129
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14127
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
14130
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$I, {
|
|
14128
14131
|
key: 3,
|
|
14129
14132
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
14130
14133
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
14131
|
-
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
14132
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14134
|
+
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
14135
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
14133
14136
|
key: 0,
|
|
14134
14137
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
14135
14138
|
ref_key: "searchResultsFilters",
|
|
14136
14139
|
ref: searchResultsFilters
|
|
14137
14140
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14138
14141
|
createBaseVNode("div", _hoisted_3$5, [
|
|
14139
|
-
createVNode(_sfc_main$
|
|
14140
|
-
createVNode(_sfc_main$
|
|
14142
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14143
|
+
createVNode(_sfc_main$W, {
|
|
14141
14144
|
options: _ctx.options,
|
|
14142
14145
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
14143
14146
|
}, null, 8, ["options", "is-product-list"]),
|
|
14144
|
-
createVNode(_sfc_main$
|
|
14147
|
+
createVNode(_sfc_main$e, {
|
|
14145
14148
|
options: _ctx.options,
|
|
14146
14149
|
ssr: ssrEnabled.value
|
|
14147
14150
|
}, {
|
|
@@ -14152,19 +14155,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14152
14155
|
}, 8, ["options", "ssr"])
|
|
14153
14156
|
])
|
|
14154
14157
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
14155
|
-
createVNode(_sfc_main$
|
|
14156
|
-
createVNode(_sfc_main$
|
|
14158
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14159
|
+
createVNode(_sfc_main$W, {
|
|
14157
14160
|
options: _ctx.options,
|
|
14158
14161
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
14159
14162
|
}, null, 8, ["options", "is-product-list"]),
|
|
14160
14163
|
createBaseVNode("div", _hoisted_4$3, [
|
|
14161
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14164
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
14162
14165
|
key: 0,
|
|
14163
14166
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
14164
14167
|
ref_key: "searchResultsFilters",
|
|
14165
14168
|
ref: searchResultsFilters
|
|
14166
14169
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14167
|
-
createVNode(_sfc_main$
|
|
14170
|
+
createVNode(_sfc_main$e, {
|
|
14168
14171
|
options: _ctx.options,
|
|
14169
14172
|
ssr: ssrEnabled.value
|
|
14170
14173
|
}, createSlots({
|
|
@@ -14187,12 +14190,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14187
14190
|
};
|
|
14188
14191
|
}
|
|
14189
14192
|
});
|
|
14190
|
-
const _hoisted_1$
|
|
14193
|
+
const _hoisted_1$a = {
|
|
14191
14194
|
key: 0,
|
|
14192
14195
|
class: "lupa-category-overview"
|
|
14193
14196
|
};
|
|
14194
|
-
const _hoisted_2$
|
|
14195
|
-
const _sfc_main$
|
|
14197
|
+
const _hoisted_2$8 = ["innerHTML"];
|
|
14198
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
14196
14199
|
__name: "CategoryDescription",
|
|
14197
14200
|
props: {
|
|
14198
14201
|
options: {}
|
|
@@ -14208,16 +14211,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14208
14211
|
return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
|
|
14209
14212
|
});
|
|
14210
14213
|
return (_ctx, _cache) => {
|
|
14211
|
-
return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14214
|
+
return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
14212
14215
|
createBaseVNode("div", {
|
|
14213
14216
|
class: "lupa-category-description",
|
|
14214
14217
|
innerHTML: description.value
|
|
14215
|
-
}, null, 8, _hoisted_2$
|
|
14218
|
+
}, null, 8, _hoisted_2$8)
|
|
14216
14219
|
])) : createCommentVNode("", true);
|
|
14217
14220
|
};
|
|
14218
14221
|
}
|
|
14219
14222
|
});
|
|
14220
|
-
const _sfc_main$
|
|
14223
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
14221
14224
|
__name: "ProductList",
|
|
14222
14225
|
props: {
|
|
14223
14226
|
options: {}
|
|
@@ -14239,7 +14242,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14239
14242
|
__expose({ fetch: fetch2 });
|
|
14240
14243
|
return (_ctx, _cache) => {
|
|
14241
14244
|
return openBlock(), createElementBlock("div", null, [
|
|
14242
|
-
createVNode(_sfc_main$
|
|
14245
|
+
createVNode(_sfc_main$c, {
|
|
14243
14246
|
options: componentOptions.value,
|
|
14244
14247
|
"initial-filters": _ctx.options.initialFilters,
|
|
14245
14248
|
"is-product-list": true,
|
|
@@ -14247,7 +14250,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14247
14250
|
ref: searchResults2
|
|
14248
14251
|
}, {
|
|
14249
14252
|
default: withCtx(() => [
|
|
14250
|
-
createVNode(_sfc_main$
|
|
14253
|
+
createVNode(_sfc_main$b, { options: _ctx.options }, null, 8, ["options"])
|
|
14251
14254
|
]),
|
|
14252
14255
|
_: 1
|
|
14253
14256
|
}, 8, ["options", "initial-filters"])
|
|
@@ -19738,9 +19741,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
19738
19741
|
}).call(commonjsGlobal$1);
|
|
19739
19742
|
})(lodash$1, lodash$1.exports);
|
|
19740
19743
|
var lodashExports$1 = lodash$1.exports;
|
|
19741
|
-
const _hoisted_1$
|
|
19742
|
-
const _hoisted_2$
|
|
19743
|
-
const _sfc_main$
|
|
19744
|
+
const _hoisted_1$9 = ["onClick"];
|
|
19745
|
+
const _hoisted_2$7 = { class: "lupa-search-box-container" };
|
|
19746
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
19744
19747
|
__name: "SearchContainer",
|
|
19745
19748
|
props: {
|
|
19746
19749
|
options: {}
|
|
@@ -19785,8 +19788,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
19785
19788
|
class: "lupa-search-container",
|
|
19786
19789
|
onClick: withModifiers(innerClick, ["stop"])
|
|
19787
19790
|
}, [
|
|
19788
|
-
createBaseVNode("div", _hoisted_2$
|
|
19789
|
-
createVNode(_sfc_main$
|
|
19791
|
+
createBaseVNode("div", _hoisted_2$7, [
|
|
19792
|
+
createVNode(_sfc_main$Z, {
|
|
19790
19793
|
options: fullSearchBoxOptions.value,
|
|
19791
19794
|
"is-search-container": true,
|
|
19792
19795
|
ref_key: "searchBox",
|
|
@@ -19794,13 +19797,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
19794
19797
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
19795
19798
|
}, null, 8, ["options"])
|
|
19796
19799
|
]),
|
|
19797
|
-
createVNode(_sfc_main$
|
|
19800
|
+
createVNode(_sfc_main$c, {
|
|
19798
19801
|
options: fullSearchResultsOptions.value,
|
|
19799
19802
|
"is-container": true,
|
|
19800
19803
|
ref_key: "searchResults",
|
|
19801
19804
|
ref: searchResults2
|
|
19802
19805
|
}, null, 8, ["options"])
|
|
19803
|
-
], 8, _hoisted_1$
|
|
19806
|
+
], 8, _hoisted_1$9)
|
|
19804
19807
|
]);
|
|
19805
19808
|
};
|
|
19806
19809
|
}
|
|
@@ -20503,13 +20506,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20503
20506
|
};
|
|
20504
20507
|
}
|
|
20505
20508
|
});
|
|
20506
|
-
const _hoisted_1$
|
|
20507
|
-
const _hoisted_2$
|
|
20509
|
+
const _hoisted_1$8 = { class: "lupa-search-product-recommendations-wrapper" };
|
|
20510
|
+
const _hoisted_2$6 = {
|
|
20508
20511
|
key: 0,
|
|
20509
20512
|
class: "lupa-recommended-products",
|
|
20510
20513
|
"data-cy": "lupa-recommended-products"
|
|
20511
20514
|
};
|
|
20512
|
-
const _sfc_main$
|
|
20515
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
20513
20516
|
__name: "Recommendations",
|
|
20514
20517
|
props: {
|
|
20515
20518
|
options: {}
|
|
@@ -20595,8 +20598,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20595
20598
|
});
|
|
20596
20599
|
__expose({ fetch: fetch2 });
|
|
20597
20600
|
return (_ctx, _cache) => {
|
|
20598
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20599
|
-
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
20601
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
20602
|
+
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
|
|
20600
20603
|
createVNode(unref(Carousel), mergeProps(carouselOptions.value, { "wrap-around": true }), {
|
|
20601
20604
|
addons: withCtx(() => [
|
|
20602
20605
|
createVNode(unref(Navigation))
|
|
@@ -20607,7 +20610,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20607
20610
|
key: getProductKeyAction(index, product)
|
|
20608
20611
|
}, {
|
|
20609
20612
|
default: withCtx(() => [
|
|
20610
|
-
createVNode(_sfc_main$
|
|
20613
|
+
createVNode(_sfc_main$j, {
|
|
20611
20614
|
product,
|
|
20612
20615
|
options: _ctx.options,
|
|
20613
20616
|
"click-tracking-settings": clickTrackingSettings.value
|
|
@@ -20624,19 +20627,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20624
20627
|
};
|
|
20625
20628
|
}
|
|
20626
20629
|
});
|
|
20627
|
-
const _hoisted_1$
|
|
20628
|
-
const _hoisted_2$
|
|
20630
|
+
const _hoisted_1$7 = { class: "lupa-chat-spinner" };
|
|
20631
|
+
const _hoisted_2$5 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
20629
20632
|
const _hoisted_3$4 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
20630
20633
|
const _hoisted_4$2 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
20631
20634
|
const _hoisted_5$2 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
20632
20635
|
const _hoisted_6$1 = [
|
|
20633
|
-
_hoisted_2$
|
|
20636
|
+
_hoisted_2$5,
|
|
20634
20637
|
_hoisted_3$4,
|
|
20635
20638
|
_hoisted_4$2,
|
|
20636
20639
|
_hoisted_5$2
|
|
20637
20640
|
];
|
|
20638
20641
|
const _hoisted_7 = { class: "lupa-chat-spinner-message" };
|
|
20639
|
-
const _sfc_main$
|
|
20642
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
20640
20643
|
__name: "ChatSpinner",
|
|
20641
20644
|
props: {
|
|
20642
20645
|
small: { type: Boolean },
|
|
@@ -20644,7 +20647,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20644
20647
|
},
|
|
20645
20648
|
setup(__props) {
|
|
20646
20649
|
return (_ctx, _cache) => {
|
|
20647
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
20650
|
+
return openBlock(), createElementBlock("section", _hoisted_1$7, [
|
|
20648
20651
|
createBaseVNode("div", {
|
|
20649
20652
|
class: normalizeClass([{ small: _ctx.small }, "lds-ring"])
|
|
20650
20653
|
}, _hoisted_6$1, 2),
|
|
@@ -20653,13 +20656,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20653
20656
|
};
|
|
20654
20657
|
}
|
|
20655
20658
|
});
|
|
20656
|
-
const _hoisted_1$
|
|
20657
|
-
const _hoisted_2$
|
|
20659
|
+
const _hoisted_1$6 = { class: "lupa-chat-input-container" };
|
|
20660
|
+
const _hoisted_2$4 = { id: "lupa-search-box-input" };
|
|
20658
20661
|
const _hoisted_3$3 = {
|
|
20659
20662
|
key: 0,
|
|
20660
20663
|
class: "lupa-chat-form-submit"
|
|
20661
20664
|
};
|
|
20662
|
-
const _sfc_main$
|
|
20665
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
20663
20666
|
__name: "ChatInput",
|
|
20664
20667
|
props: {
|
|
20665
20668
|
disabled: { type: Boolean }
|
|
@@ -20672,13 +20675,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20672
20675
|
inputValue.value = "";
|
|
20673
20676
|
};
|
|
20674
20677
|
return (_ctx, _cache) => {
|
|
20675
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20678
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
20676
20679
|
createBaseVNode("form", {
|
|
20677
20680
|
action: "javascript:void(0);",
|
|
20678
20681
|
class: "chat-input-form",
|
|
20679
20682
|
onSubmit: submit
|
|
20680
20683
|
}, [
|
|
20681
|
-
createBaseVNode("div", _hoisted_2$
|
|
20684
|
+
createBaseVNode("div", _hoisted_2$4, [
|
|
20682
20685
|
withDirectives(createBaseVNode("input", {
|
|
20683
20686
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
|
|
20684
20687
|
ref: "mainInput",
|
|
@@ -20691,7 +20694,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20691
20694
|
[vModelText, inputValue.value]
|
|
20692
20695
|
])
|
|
20693
20696
|
]),
|
|
20694
|
-
!_ctx.disabled ? (openBlock(), createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (openBlock(), createBlock(_sfc_main$
|
|
20697
|
+
!_ctx.disabled ? (openBlock(), createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (openBlock(), createBlock(_sfc_main$7, {
|
|
20695
20698
|
key: 1,
|
|
20696
20699
|
small: true
|
|
20697
20700
|
}))
|
|
@@ -20820,15 +20823,36 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20820
20823
|
}
|
|
20821
20824
|
return history;
|
|
20822
20825
|
};
|
|
20826
|
+
const getTextResponseChunkStream = (options, { initialQuery, messageHistory }, onChunkReceived) => {
|
|
20827
|
+
var _a;
|
|
20828
|
+
fetch(`${getApiUrl(options.environment, options.customBaseUrl)}chat/text`, __spreadProps2(__spreadValues2({}, defaultConfig), {
|
|
20829
|
+
body: JSON.stringify({ initialQuery, messageHistory }),
|
|
20830
|
+
headers: __spreadValues2(__spreadValues2({}, headers), (_a = options.customHeaders) != null ? _a : {})
|
|
20831
|
+
})).then((response) => {
|
|
20832
|
+
const reader = response.body.getReader();
|
|
20833
|
+
return reader.read().then(function processStream({ done, value }) {
|
|
20834
|
+
if (done) {
|
|
20835
|
+
return "";
|
|
20836
|
+
}
|
|
20837
|
+
const result = new TextDecoder("utf-8").decode(value);
|
|
20838
|
+
const sanitezedResult = result.replace("\n", '<div class="br"></div>');
|
|
20839
|
+
onChunkReceived(sanitezedResult);
|
|
20840
|
+
return reader.read().then(processStream);
|
|
20841
|
+
});
|
|
20842
|
+
}).catch((error) => {
|
|
20843
|
+
console.error(`Fetch Error: ${error}`);
|
|
20844
|
+
});
|
|
20845
|
+
};
|
|
20823
20846
|
const ChatService = {
|
|
20824
20847
|
suggestSearchChatPhrases,
|
|
20825
20848
|
suggestPhraseAlternatives,
|
|
20826
20849
|
suggestSimplifiedPhrases,
|
|
20827
20850
|
suggestBestProductMatches,
|
|
20828
|
-
prepareChatHistory
|
|
20851
|
+
prepareChatHistory,
|
|
20852
|
+
getTextResponseChunkStream
|
|
20829
20853
|
};
|
|
20830
|
-
const _hoisted_1$
|
|
20831
|
-
const _sfc_main$
|
|
20854
|
+
const _hoisted_1$5 = { class: "lupa-chat-results" };
|
|
20855
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
20832
20856
|
__name: "ChatPhraseProductsList",
|
|
20833
20857
|
props: {
|
|
20834
20858
|
options: {},
|
|
@@ -20840,9 +20864,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20840
20864
|
return getProductKey(`${index}`, product, props.options.idKey);
|
|
20841
20865
|
};
|
|
20842
20866
|
return (_ctx, _cache) => {
|
|
20843
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
20867
|
+
return openBlock(), createElementBlock("section", _hoisted_1$5, [
|
|
20844
20868
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
20845
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20869
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
20846
20870
|
class: "lupa-chat-product-card",
|
|
20847
20871
|
key: getProductKeyAction(index, product),
|
|
20848
20872
|
product,
|
|
@@ -20853,8 +20877,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20853
20877
|
};
|
|
20854
20878
|
}
|
|
20855
20879
|
});
|
|
20856
|
-
const _hoisted_1$
|
|
20857
|
-
const _hoisted_2$
|
|
20880
|
+
const _hoisted_1$4 = { class: "lupa-chat-content-entry-phrase" };
|
|
20881
|
+
const _hoisted_2$3 = { class: "lupa-chat-phrase-title" };
|
|
20858
20882
|
const _hoisted_3$2 = {
|
|
20859
20883
|
key: 0,
|
|
20860
20884
|
class: "alert"
|
|
@@ -20867,7 +20891,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20867
20891
|
const _hoisted_6 = [
|
|
20868
20892
|
_hoisted_5$1
|
|
20869
20893
|
];
|
|
20870
|
-
const _sfc_main$
|
|
20894
|
+
const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
20871
20895
|
__name: "ChatContentEntryPhrase",
|
|
20872
20896
|
props: {
|
|
20873
20897
|
options: {},
|
|
@@ -20947,20 +20971,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20947
20971
|
return phrases != null ? phrases : [];
|
|
20948
20972
|
});
|
|
20949
20973
|
return (_ctx, _cache) => {
|
|
20950
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20951
|
-
createBaseVNode("div", _hoisted_2$
|
|
20974
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
20975
|
+
createBaseVNode("div", _hoisted_2$3, [
|
|
20952
20976
|
createBaseVNode("h3", null, toDisplayString(displayPhrase.value), 1),
|
|
20953
20977
|
createBaseVNode("sub", null, toDisplayString(usedAlternativePhrases.value.join(", ")), 1),
|
|
20954
20978
|
usedPartialResults.value ? (openBlock(), createElementBlock("sub", _hoisted_3$2, "Including partial matches - which might not be what you are looking for")) : createCommentVNode("", true)
|
|
20955
20979
|
]),
|
|
20956
20980
|
createBaseVNode("div", null, [
|
|
20957
|
-
createVNode(_sfc_main$
|
|
20981
|
+
createVNode(_sfc_main$5, {
|
|
20958
20982
|
"search-results": searchResults2.value,
|
|
20959
20983
|
options: _ctx.options.displayOptions
|
|
20960
20984
|
}, null, 8, ["search-results", "options"])
|
|
20961
20985
|
]),
|
|
20962
20986
|
!loading.value && !searchResults2.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$1, _hoisted_6)) : createCommentVNode("", true),
|
|
20963
|
-
loading.value ? (openBlock(), createBlock(_sfc_main$
|
|
20987
|
+
loading.value ? (openBlock(), createBlock(_sfc_main$7, {
|
|
20964
20988
|
key: 1,
|
|
20965
20989
|
message: currentAction.value
|
|
20966
20990
|
}, null, 8, ["message"])) : createCommentVNode("", true)
|
|
@@ -20968,10 +20992,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20968
20992
|
};
|
|
20969
20993
|
}
|
|
20970
20994
|
});
|
|
20971
|
-
const _hoisted_1$
|
|
20972
|
-
const _hoisted_2$
|
|
20995
|
+
const _hoisted_1$3 = { class: "lupa-chat-best-matches lupa-chat-content-entry" };
|
|
20996
|
+
const _hoisted_2$2 = /* @__PURE__ */ createBaseVNode("h3", null, "Best matches", -1);
|
|
20973
20997
|
const _hoisted_3$1 = { key: 0 };
|
|
20974
|
-
const _sfc_main$
|
|
20998
|
+
const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
|
|
20975
20999
|
__name: "ChatContentEntry",
|
|
20976
21000
|
props: {
|
|
20977
21001
|
entry: {},
|
|
@@ -21036,7 +21060,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21036
21060
|
key: phrase,
|
|
21037
21061
|
class: "lupa-chat-content-entry"
|
|
21038
21062
|
}, [
|
|
21039
|
-
phrase ? (openBlock(), createBlock(_sfc_main$
|
|
21063
|
+
phrase ? (openBlock(), createBlock(_sfc_main$4$1, {
|
|
21040
21064
|
key: 0,
|
|
21041
21065
|
phrase,
|
|
21042
21066
|
options: _ctx.options,
|
|
@@ -21045,14 +21069,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21045
21069
|
]);
|
|
21046
21070
|
}), 128))
|
|
21047
21071
|
]),
|
|
21048
|
-
createBaseVNode("section", _hoisted_1$
|
|
21049
|
-
_hoisted_2$
|
|
21072
|
+
createBaseVNode("section", _hoisted_1$3, [
|
|
21073
|
+
_hoisted_2$2,
|
|
21050
21074
|
explanation.value ? (openBlock(), createElementBlock("p", _hoisted_3$1, toDisplayString(explanation.value), 1)) : createCommentVNode("", true),
|
|
21051
|
-
loading.value ? (openBlock(), createBlock(_sfc_main$
|
|
21075
|
+
loading.value ? (openBlock(), createBlock(_sfc_main$7, {
|
|
21052
21076
|
key: 1,
|
|
21053
21077
|
message: "Selecting the best matches for you. This might take a few seconds."
|
|
21054
21078
|
})) : createCommentVNode("", true),
|
|
21055
|
-
bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$
|
|
21079
|
+
bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$5, {
|
|
21056
21080
|
key: 2,
|
|
21057
21081
|
"search-results": bestMatchProducts.value,
|
|
21058
21082
|
options: _ctx.options.displayOptions
|
|
@@ -21062,6 +21086,39 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21062
21086
|
};
|
|
21063
21087
|
}
|
|
21064
21088
|
});
|
|
21089
|
+
const _hoisted_1$2 = { class: "lupa-chat-text-response" };
|
|
21090
|
+
const _hoisted_2$1 = ["innerHTML"];
|
|
21091
|
+
const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
21092
|
+
__name: "ChatTextEntry",
|
|
21093
|
+
props: {
|
|
21094
|
+
content: {},
|
|
21095
|
+
options: {},
|
|
21096
|
+
history: {}
|
|
21097
|
+
},
|
|
21098
|
+
setup(__props) {
|
|
21099
|
+
const props = __props;
|
|
21100
|
+
const content = ref("");
|
|
21101
|
+
const processChunk = (chunk) => {
|
|
21102
|
+
content.value += chunk;
|
|
21103
|
+
};
|
|
21104
|
+
onMounted(() => {
|
|
21105
|
+
var _a;
|
|
21106
|
+
ChatService.getTextResponseChunkStream(
|
|
21107
|
+
props.options.sdkOptions,
|
|
21108
|
+
{
|
|
21109
|
+
initialQuery: props.content,
|
|
21110
|
+
messageHistory: (_a = props.history) != null ? _a : []
|
|
21111
|
+
},
|
|
21112
|
+
processChunk
|
|
21113
|
+
);
|
|
21114
|
+
});
|
|
21115
|
+
return (_ctx, _cache) => {
|
|
21116
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
21117
|
+
createBaseVNode("p", { innerHTML: content.value }, null, 8, _hoisted_2$1)
|
|
21118
|
+
]);
|
|
21119
|
+
};
|
|
21120
|
+
}
|
|
21121
|
+
});
|
|
21065
21122
|
const _hoisted_1$1 = { class: "lupa-chat-section-title" };
|
|
21066
21123
|
const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
21067
21124
|
__name: "ChatContentList",
|
|
@@ -21079,16 +21136,23 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21079
21136
|
return openBlock(), createElementBlock("div", null, [
|
|
21080
21137
|
createBaseVNode("ul", null, [
|
|
21081
21138
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.content, (entry) => {
|
|
21139
|
+
var _a;
|
|
21082
21140
|
return openBlock(), createElementBlock("li", {
|
|
21083
21141
|
key: entry.key
|
|
21084
21142
|
}, [
|
|
21085
21143
|
createBaseVNode("h4", _hoisted_1$1, toDisplayString(entry.userInput), 1),
|
|
21086
21144
|
createVNode(_sfc_main$2$1, {
|
|
21145
|
+
content: entry.userInput,
|
|
21146
|
+
history: _ctx.history,
|
|
21147
|
+
options: _ctx.options
|
|
21148
|
+
}, null, 8, ["content", "history", "options"]),
|
|
21149
|
+
((_a = entry.suggestedPhrases) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_sfc_main$3$1, {
|
|
21150
|
+
key: 0,
|
|
21087
21151
|
entry,
|
|
21088
21152
|
options: _ctx.options,
|
|
21089
21153
|
history: _ctx.history,
|
|
21090
21154
|
onLoaded: (items) => bestItemsLoaded(items, entry.key)
|
|
21091
|
-
}, null, 8, ["entry", "options", "history", "onLoaded"])
|
|
21155
|
+
}, null, 8, ["entry", "options", "history", "onLoaded"])) : createCommentVNode("", true)
|
|
21092
21156
|
]);
|
|
21093
21157
|
}), 128))
|
|
21094
21158
|
])
|
|
@@ -21109,7 +21173,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21109
21173
|
class: "lupa-chat-spinner-main"
|
|
21110
21174
|
};
|
|
21111
21175
|
const _hoisted_5 = { class: "lupasearch-chat-input" };
|
|
21112
|
-
const _sfc_main$
|
|
21176
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
21113
21177
|
__name: "ChatContainer",
|
|
21114
21178
|
props: {
|
|
21115
21179
|
options: {}
|
|
@@ -21127,6 +21191,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21127
21191
|
}
|
|
21128
21192
|
try {
|
|
21129
21193
|
loading.value = true;
|
|
21194
|
+
const key = Date.now().toString();
|
|
21195
|
+
let chatLog = {
|
|
21196
|
+
key,
|
|
21197
|
+
userInput: input,
|
|
21198
|
+
allPhrases: [],
|
|
21199
|
+
suggestedPhrases: []
|
|
21200
|
+
};
|
|
21201
|
+
chatContent.value.push(chatLog);
|
|
21130
21202
|
const request = {
|
|
21131
21203
|
userPrompt: input,
|
|
21132
21204
|
messageHistory: (_a = history.value) != null ? _a : [],
|
|
@@ -21141,13 +21213,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21141
21213
|
return;
|
|
21142
21214
|
}
|
|
21143
21215
|
const validPhrases = phrases.filter((p2) => (p2 == null ? void 0 : p2.trim().length) > 0);
|
|
21144
|
-
|
|
21145
|
-
|
|
21146
|
-
|
|
21147
|
-
|
|
21148
|
-
|
|
21149
|
-
|
|
21150
|
-
chatContent.value.push(chatLog);
|
|
21216
|
+
chatContent.value = chatContent.value.map(
|
|
21217
|
+
(c2) => c2.key === key ? __spreadProps2(__spreadValues2({}, c2), {
|
|
21218
|
+
allPhrases: [...validPhrases],
|
|
21219
|
+
suggestedPhrases: phrases
|
|
21220
|
+
}) : c2
|
|
21221
|
+
);
|
|
21151
21222
|
} finally {
|
|
21152
21223
|
loading.value = false;
|
|
21153
21224
|
}
|
|
@@ -21168,10 +21239,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21168
21239
|
}, null, 8, ["content", "options", "history"])
|
|
21169
21240
|
])) : createCommentVNode("", true),
|
|
21170
21241
|
loading.value ? (openBlock(), createElementBlock("section", _hoisted_4, [
|
|
21171
|
-
createVNode(_sfc_main$
|
|
21242
|
+
createVNode(_sfc_main$7, { message: "Loading initial recommendations... This might take up to 20s" })
|
|
21172
21243
|
])) : createCommentVNode("", true),
|
|
21173
21244
|
createBaseVNode("section", _hoisted_5, [
|
|
21174
|
-
createVNode(_sfc_main$
|
|
21245
|
+
createVNode(_sfc_main$6, {
|
|
21175
21246
|
onSubmit: submitChatInput,
|
|
21176
21247
|
disabled: loading.value
|
|
21177
21248
|
}, null, 8, ["disabled"])
|
|
@@ -26742,7 +26813,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26742
26813
|
};
|
|
26743
26814
|
__expose({ fetch: fetch2 });
|
|
26744
26815
|
return (_ctx, _cache) => {
|
|
26745
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26816
|
+
return openBlock(), createBlock(unref(_sfc_main$Z), {
|
|
26746
26817
|
options: fullSearchBoxOptions.value,
|
|
26747
26818
|
ref_key: "searchBox",
|
|
26748
26819
|
ref: searchBox2
|
|
@@ -26869,7 +26940,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26869
26940
|
};
|
|
26870
26941
|
__expose({ fetch: fetch2 });
|
|
26871
26942
|
return (_ctx, _cache) => {
|
|
26872
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26943
|
+
return openBlock(), createBlock(unref(_sfc_main$c), {
|
|
26873
26944
|
options: fullSearchResultsOptions.value,
|
|
26874
26945
|
ref_key: "searchResults",
|
|
26875
26946
|
ref: searchResults2
|
|
@@ -26894,7 +26965,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26894
26965
|
};
|
|
26895
26966
|
__expose({ fetch: fetch2 });
|
|
26896
26967
|
return (_ctx, _cache) => {
|
|
26897
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26968
|
+
return openBlock(), createBlock(unref(_sfc_main$a), {
|
|
26898
26969
|
options: fullProductListOptions.value,
|
|
26899
26970
|
ref_key: "productList",
|
|
26900
26971
|
ref: productList2
|
|
@@ -26974,7 +27045,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26974
27045
|
__expose({ fetch: fetch2, reloadOptions });
|
|
26975
27046
|
return (_ctx, _cache) => {
|
|
26976
27047
|
return openBlock(), createElementBlock("div", null, [
|
|
26977
|
-
containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
27048
|
+
containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$9), {
|
|
26978
27049
|
key: 0,
|
|
26979
27050
|
options: containerOptions.value,
|
|
26980
27051
|
ref_key: "productList",
|
|
@@ -26998,7 +27069,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26998
27069
|
};
|
|
26999
27070
|
__expose({ fetch: fetch2 });
|
|
27000
27071
|
return (_ctx, _cache) => {
|
|
27001
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
27072
|
+
return openBlock(), createBlock(unref(_sfc_main$8), {
|
|
27002
27073
|
options: _ctx.recommendationOptions,
|
|
27003
27074
|
ref_key: "productRecommendations",
|
|
27004
27075
|
ref: productRecommendations
|
|
@@ -27217,7 +27288,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
27217
27288
|
}
|
|
27218
27289
|
return;
|
|
27219
27290
|
}
|
|
27220
|
-
const instance = createVue(options.displayOptions.containerSelector, _sfc_main$
|
|
27291
|
+
const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1j, {
|
|
27221
27292
|
options
|
|
27222
27293
|
});
|
|
27223
27294
|
if (!instance) {
|