@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.mjs
CHANGED
|
@@ -7654,8 +7654,8 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
7654
7654
|
resetHighlightIndex
|
|
7655
7655
|
};
|
|
7656
7656
|
});
|
|
7657
|
-
const _hoisted_1$
|
|
7658
|
-
const _hoisted_2$
|
|
7657
|
+
const _hoisted_1$1a = { id: "lupa-search-box-input-container" };
|
|
7658
|
+
const _hoisted_2$O = { class: "lupa-input-clear" };
|
|
7659
7659
|
const _hoisted_3$A = { id: "lupa-search-box-input" };
|
|
7660
7660
|
const _hoisted_4$r = ["value"];
|
|
7661
7661
|
const _hoisted_5$f = ["placeholder"];
|
|
@@ -7663,7 +7663,7 @@ const _hoisted_6$8 = {
|
|
|
7663
7663
|
key: 0,
|
|
7664
7664
|
class: "lupa-close-label"
|
|
7665
7665
|
};
|
|
7666
|
-
const _sfc_main$
|
|
7666
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
7667
7667
|
__name: "SearchBoxInput",
|
|
7668
7668
|
props: {
|
|
7669
7669
|
options: {},
|
|
@@ -7740,8 +7740,8 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
7740
7740
|
};
|
|
7741
7741
|
__expose({ focus });
|
|
7742
7742
|
return (_ctx, _cache) => {
|
|
7743
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7744
|
-
createBaseVNode("div", _hoisted_2$
|
|
7743
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1a, [
|
|
7744
|
+
createBaseVNode("div", _hoisted_2$O, [
|
|
7745
7745
|
createBaseVNode("div", {
|
|
7746
7746
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
7747
7747
|
onClick: clear2
|
|
@@ -7780,7 +7780,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
7780
7780
|
};
|
|
7781
7781
|
}
|
|
7782
7782
|
});
|
|
7783
|
-
const _sfc_main$
|
|
7783
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
7784
7784
|
__name: "SearchBoxMoreResults",
|
|
7785
7785
|
props: {
|
|
7786
7786
|
labels: {},
|
|
@@ -7812,9 +7812,9 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
7812
7812
|
};
|
|
7813
7813
|
}
|
|
7814
7814
|
});
|
|
7815
|
-
const _hoisted_1$
|
|
7816
|
-
const _hoisted_2$
|
|
7817
|
-
const _sfc_main$
|
|
7815
|
+
const _hoisted_1$19 = { class: "lupa-search-box-history-item" };
|
|
7816
|
+
const _hoisted_2$N = { class: "lupa-search-box-history-item-content" };
|
|
7817
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
7818
7818
|
__name: "SearchBoxHistoryItem",
|
|
7819
7819
|
props: {
|
|
7820
7820
|
item: {},
|
|
@@ -7830,8 +7830,8 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
7830
7830
|
emit2("click", { query: props.item });
|
|
7831
7831
|
};
|
|
7832
7832
|
return (_ctx, _cache) => {
|
|
7833
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7834
|
-
createBaseVNode("div", _hoisted_2$
|
|
7833
|
+
return openBlock(), createElementBlock("div", _hoisted_1$19, [
|
|
7834
|
+
createBaseVNode("div", _hoisted_2$N, [
|
|
7835
7835
|
createBaseVNode("div", {
|
|
7836
7836
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
7837
7837
|
onClick: click2
|
|
@@ -7845,11 +7845,11 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
7845
7845
|
};
|
|
7846
7846
|
}
|
|
7847
7847
|
});
|
|
7848
|
-
const _hoisted_1$
|
|
7848
|
+
const _hoisted_1$18 = {
|
|
7849
7849
|
key: 0,
|
|
7850
7850
|
class: "lupa-search-box-history-panel"
|
|
7851
7851
|
};
|
|
7852
|
-
const _sfc_main$
|
|
7852
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
7853
7853
|
__name: "SearchBoxHistoryPanel",
|
|
7854
7854
|
props: {
|
|
7855
7855
|
options: {}
|
|
@@ -7890,9 +7890,9 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
7890
7890
|
}
|
|
7891
7891
|
};
|
|
7892
7892
|
return (_ctx, _cache) => {
|
|
7893
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7893
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$18, [
|
|
7894
7894
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
7895
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7895
|
+
return openBlock(), createBlock(_sfc_main$1g, {
|
|
7896
7896
|
key: item,
|
|
7897
7897
|
item,
|
|
7898
7898
|
highlighted: index === highlightIndex.value,
|
|
@@ -7908,8 +7908,8 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
7908
7908
|
};
|
|
7909
7909
|
}
|
|
7910
7910
|
});
|
|
7911
|
-
const _hoisted_1$
|
|
7912
|
-
const _hoisted_2$
|
|
7911
|
+
const _hoisted_1$17 = ["innerHTML"];
|
|
7912
|
+
const _hoisted_2$M = {
|
|
7913
7913
|
key: 1,
|
|
7914
7914
|
"data-cy": "lupa-suggestion-value",
|
|
7915
7915
|
class: "lupa-suggestion-value"
|
|
@@ -7927,7 +7927,7 @@ const _hoisted_5$e = {
|
|
|
7927
7927
|
class: "lupa-suggestion-facet-value",
|
|
7928
7928
|
"data-cy": "lupa-suggestion-facet-value"
|
|
7929
7929
|
};
|
|
7930
|
-
const _sfc_main$
|
|
7930
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
7931
7931
|
__name: "SearchBoxSuggestion",
|
|
7932
7932
|
props: {
|
|
7933
7933
|
suggestion: {},
|
|
@@ -7963,7 +7963,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
7963
7963
|
class: "lupa-suggestion-value",
|
|
7964
7964
|
"data-cy": "lupa-suggestion-value",
|
|
7965
7965
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
7966
|
-
}, null, 8, _hoisted_1$
|
|
7966
|
+
}, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(_ctx.suggestion.display), 1)),
|
|
7967
7967
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
7968
7968
|
createBaseVNode("span", _hoisted_4$q, toDisplayString(facetLabel.value), 1),
|
|
7969
7969
|
createBaseVNode("span", _hoisted_5$e, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
@@ -7972,11 +7972,11 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
7972
7972
|
};
|
|
7973
7973
|
}
|
|
7974
7974
|
});
|
|
7975
|
-
const _hoisted_1$
|
|
7975
|
+
const _hoisted_1$16 = {
|
|
7976
7976
|
id: "lupa-search-box-suggestions",
|
|
7977
7977
|
"data-cy": "lupa-search-box-suggestions"
|
|
7978
7978
|
};
|
|
7979
|
-
const _sfc_main$
|
|
7979
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
7980
7980
|
__name: "SearchBoxSuggestions",
|
|
7981
7981
|
props: {
|
|
7982
7982
|
items: {},
|
|
@@ -8036,9 +8036,9 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
8036
8036
|
});
|
|
8037
8037
|
});
|
|
8038
8038
|
return (_ctx, _cache) => {
|
|
8039
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8039
|
+
return openBlock(), createElementBlock("div", _hoisted_1$16, [
|
|
8040
8040
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
8041
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8041
|
+
return openBlock(), createBlock(_sfc_main$1e, {
|
|
8042
8042
|
key: getSuggestionKey(item),
|
|
8043
8043
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
8044
8044
|
suggestion: item,
|
|
@@ -8066,7 +8066,7 @@ const debounce$1 = (func, timeout) => {
|
|
|
8066
8066
|
}, timeout);
|
|
8067
8067
|
};
|
|
8068
8068
|
};
|
|
8069
|
-
const _sfc_main$
|
|
8069
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
8070
8070
|
__name: "SearchBoxSuggestionsWrapper",
|
|
8071
8071
|
props: {
|
|
8072
8072
|
panel: {},
|
|
@@ -8107,7 +8107,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
8107
8107
|
};
|
|
8108
8108
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
8109
8109
|
return (_ctx, _cache) => {
|
|
8110
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8110
|
+
return openBlock(), createBlock(_sfc_main$1d, {
|
|
8111
8111
|
items: searchResult.value,
|
|
8112
8112
|
highlight: _ctx.panel.highlight,
|
|
8113
8113
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -8185,8 +8185,8 @@ const useDynamicDataStore = defineStore("dynamicData", () => {
|
|
|
8185
8185
|
});
|
|
8186
8186
|
return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
|
|
8187
8187
|
});
|
|
8188
|
-
const _hoisted_1$
|
|
8189
|
-
const _sfc_main$
|
|
8188
|
+
const _hoisted_1$15 = ["src"];
|
|
8189
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
8190
8190
|
__name: "ProductImage",
|
|
8191
8191
|
props: {
|
|
8192
8192
|
item: {},
|
|
@@ -8234,12 +8234,12 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
8234
8234
|
class: normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
|
|
8235
8235
|
src: finalUrl.value,
|
|
8236
8236
|
onError: replaceWithPlaceholder
|
|
8237
|
-
}, null, 42, _hoisted_1$
|
|
8237
|
+
}, null, 42, _hoisted_1$15)
|
|
8238
8238
|
], 2);
|
|
8239
8239
|
};
|
|
8240
8240
|
}
|
|
8241
8241
|
});
|
|
8242
|
-
const _sfc_main$
|
|
8242
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
8243
8243
|
__name: "SearchBoxProductImage",
|
|
8244
8244
|
props: {
|
|
8245
8245
|
item: {},
|
|
@@ -8247,7 +8247,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
8247
8247
|
},
|
|
8248
8248
|
setup(__props) {
|
|
8249
8249
|
return (_ctx, _cache) => {
|
|
8250
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8250
|
+
return openBlock(), createBlock(_sfc_main$1b, {
|
|
8251
8251
|
item: _ctx.item,
|
|
8252
8252
|
options: _ctx.options,
|
|
8253
8253
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -8256,12 +8256,12 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
8256
8256
|
};
|
|
8257
8257
|
}
|
|
8258
8258
|
});
|
|
8259
|
-
const _hoisted_1$
|
|
8260
|
-
const _hoisted_2$
|
|
8259
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
8260
|
+
const _hoisted_2$L = {
|
|
8261
8261
|
key: 1,
|
|
8262
8262
|
class: "lupa-search-box-product-title"
|
|
8263
8263
|
};
|
|
8264
|
-
const _sfc_main$
|
|
8264
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
8265
8265
|
__name: "SearchBoxProductTitle",
|
|
8266
8266
|
props: {
|
|
8267
8267
|
item: {},
|
|
@@ -8281,18 +8281,18 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
8281
8281
|
key: 0,
|
|
8282
8282
|
class: "lupa-search-box-product-title",
|
|
8283
8283
|
innerHTML: title.value
|
|
8284
|
-
}, null, 8, _hoisted_1$
|
|
8284
|
+
}, null, 8, _hoisted_1$14)) : (openBlock(), createElementBlock("div", _hoisted_2$L, [
|
|
8285
8285
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
8286
8286
|
]));
|
|
8287
8287
|
};
|
|
8288
8288
|
}
|
|
8289
8289
|
});
|
|
8290
|
-
const _hoisted_1$
|
|
8291
|
-
const _hoisted_2$
|
|
8290
|
+
const _hoisted_1$13 = ["innerHTML"];
|
|
8291
|
+
const _hoisted_2$K = {
|
|
8292
8292
|
key: 1,
|
|
8293
8293
|
class: "lupa-search-box-product-description"
|
|
8294
8294
|
};
|
|
8295
|
-
const _sfc_main$
|
|
8295
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
8296
8296
|
__name: "SearchBoxProductDescription",
|
|
8297
8297
|
props: {
|
|
8298
8298
|
item: {},
|
|
@@ -8312,12 +8312,12 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
8312
8312
|
key: 0,
|
|
8313
8313
|
class: "lupa-search-box-product-description",
|
|
8314
8314
|
innerHTML: description.value
|
|
8315
|
-
}, null, 8, _hoisted_1$
|
|
8315
|
+
}, null, 8, _hoisted_1$13)) : (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(description.value), 1));
|
|
8316
8316
|
};
|
|
8317
8317
|
}
|
|
8318
8318
|
});
|
|
8319
|
-
const _hoisted_1$
|
|
8320
|
-
const _sfc_main$
|
|
8319
|
+
const _hoisted_1$12 = { class: "lupa-search-box-product-price" };
|
|
8320
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
8321
8321
|
__name: "SearchBoxProductPrice",
|
|
8322
8322
|
props: {
|
|
8323
8323
|
item: {},
|
|
@@ -8335,14 +8335,14 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
8335
8335
|
);
|
|
8336
8336
|
});
|
|
8337
8337
|
return (_ctx, _cache) => {
|
|
8338
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8338
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
8339
8339
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
8340
8340
|
]);
|
|
8341
8341
|
};
|
|
8342
8342
|
}
|
|
8343
8343
|
});
|
|
8344
|
-
const _hoisted_1$
|
|
8345
|
-
const _sfc_main$
|
|
8344
|
+
const _hoisted_1$11 = { class: "lupa-search-box-product-regular-price" };
|
|
8345
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
8346
8346
|
__name: "SearchBoxProductRegularPrice",
|
|
8347
8347
|
props: {
|
|
8348
8348
|
item: {},
|
|
@@ -8360,16 +8360,16 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
8360
8360
|
);
|
|
8361
8361
|
});
|
|
8362
8362
|
return (_ctx, _cache) => {
|
|
8363
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8363
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, toDisplayString(price.value), 1);
|
|
8364
8364
|
};
|
|
8365
8365
|
}
|
|
8366
8366
|
});
|
|
8367
|
-
const _hoisted_1
|
|
8368
|
-
const _hoisted_2$
|
|
8367
|
+
const _hoisted_1$10 = ["innerHTML"];
|
|
8368
|
+
const _hoisted_2$J = { key: 0 };
|
|
8369
8369
|
const _hoisted_3$y = { key: 1 };
|
|
8370
8370
|
const _hoisted_4$p = { class: "lupa-search-box-custom-label" };
|
|
8371
8371
|
const _hoisted_5$d = { class: "lupa-search-box-custom-text" };
|
|
8372
|
-
const _sfc_main$
|
|
8372
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
8373
8373
|
__name: "SearchBoxProductCustom",
|
|
8374
8374
|
props: {
|
|
8375
8375
|
item: {},
|
|
@@ -8395,11 +8395,11 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
8395
8395
|
key: 0,
|
|
8396
8396
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
8397
8397
|
innerHTML: text.value
|
|
8398
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1
|
|
8398
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$10)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
8399
8399
|
key: 1,
|
|
8400
8400
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
8401
8401
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
8402
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
8402
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$J, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
|
|
8403
8403
|
createBaseVNode("div", _hoisted_4$p, toDisplayString(label.value), 1),
|
|
8404
8404
|
createBaseVNode("div", _hoisted_5$d, toDisplayString(text.value), 1)
|
|
8405
8405
|
]))
|
|
@@ -8407,8 +8407,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
8407
8407
|
};
|
|
8408
8408
|
}
|
|
8409
8409
|
});
|
|
8410
|
-
const _hoisted_1
|
|
8411
|
-
const _sfc_main$
|
|
8410
|
+
const _hoisted_1$$ = ["innerHTML"];
|
|
8411
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
8412
8412
|
__name: "SearchBoxProductCustomHtml",
|
|
8413
8413
|
props: {
|
|
8414
8414
|
item: {},
|
|
@@ -8428,7 +8428,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
8428
8428
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
8429
8429
|
class: className.value,
|
|
8430
8430
|
innerHTML: text.value
|
|
8431
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1
|
|
8431
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$$);
|
|
8432
8432
|
};
|
|
8433
8433
|
}
|
|
8434
8434
|
});
|
|
@@ -8623,10 +8623,10 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
8623
8623
|
setLoading
|
|
8624
8624
|
};
|
|
8625
8625
|
});
|
|
8626
|
-
const _hoisted_1$
|
|
8627
|
-
const _hoisted_2$
|
|
8626
|
+
const _hoisted_1$_ = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
8627
|
+
const _hoisted_2$I = { class: "lupa-search-box-product-addtocart" };
|
|
8628
8628
|
const _hoisted_3$x = ["onClick", "disabled"];
|
|
8629
|
-
const _sfc_main$
|
|
8629
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
8630
8630
|
__name: "SearchBoxProductAddToCart",
|
|
8631
8631
|
props: {
|
|
8632
8632
|
item: {},
|
|
@@ -8653,8 +8653,8 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
8653
8653
|
loading.value = false;
|
|
8654
8654
|
});
|
|
8655
8655
|
return (_ctx, _cache) => {
|
|
8656
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8657
|
-
createBaseVNode("div", _hoisted_2$
|
|
8656
|
+
return openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
8657
|
+
createBaseVNode("div", _hoisted_2$I, [
|
|
8658
8658
|
createBaseVNode("button", {
|
|
8659
8659
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
8660
8660
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
@@ -8669,17 +8669,17 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
8669
8669
|
});
|
|
8670
8670
|
const __default__$4 = {
|
|
8671
8671
|
components: {
|
|
8672
|
-
SearchBoxProductImage: _sfc_main$
|
|
8673
|
-
SearchBoxProductTitle: _sfc_main$
|
|
8674
|
-
SearchBoxProductDescription: _sfc_main$
|
|
8675
|
-
SearchBoxProductPrice: _sfc_main$
|
|
8676
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
8677
|
-
SearchBoxProductCustom: _sfc_main$
|
|
8678
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
8679
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
8672
|
+
SearchBoxProductImage: _sfc_main$1a,
|
|
8673
|
+
SearchBoxProductTitle: _sfc_main$19,
|
|
8674
|
+
SearchBoxProductDescription: _sfc_main$18,
|
|
8675
|
+
SearchBoxProductPrice: _sfc_main$17,
|
|
8676
|
+
SearchBoxProductRegularPrice: _sfc_main$16,
|
|
8677
|
+
SearchBoxProductCustom: _sfc_main$15,
|
|
8678
|
+
SearchBoxProductCustomHtml: _sfc_main$14,
|
|
8679
|
+
SearchBoxProductAddToCart: _sfc_main$13
|
|
8680
8680
|
}
|
|
8681
8681
|
};
|
|
8682
|
-
const _sfc_main$
|
|
8682
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
8683
8683
|
__name: "SearchBoxProductElement",
|
|
8684
8684
|
props: {
|
|
8685
8685
|
item: {},
|
|
@@ -8793,14 +8793,14 @@ const useTrackingStore = defineStore("tracking", () => {
|
|
|
8793
8793
|
};
|
|
8794
8794
|
return { trackSearch, trackResults, trackEvent };
|
|
8795
8795
|
});
|
|
8796
|
-
const _hoisted_1$
|
|
8797
|
-
const _hoisted_2$
|
|
8796
|
+
const _hoisted_1$Z = ["href"];
|
|
8797
|
+
const _hoisted_2$H = { class: "lupa-search-box-product-image-section" };
|
|
8798
8798
|
const _hoisted_3$w = { class: "lupa-search-box-product-details-section" };
|
|
8799
8799
|
const _hoisted_4$o = {
|
|
8800
8800
|
key: 0,
|
|
8801
8801
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
8802
8802
|
};
|
|
8803
|
-
const _sfc_main$
|
|
8803
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
8804
8804
|
__name: "SearchBoxProduct",
|
|
8805
8805
|
props: {
|
|
8806
8806
|
item: {},
|
|
@@ -8893,9 +8893,9 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
8893
8893
|
href: link.value,
|
|
8894
8894
|
onClick: handleClick
|
|
8895
8895
|
}, [
|
|
8896
|
-
createBaseVNode("div", _hoisted_2$
|
|
8896
|
+
createBaseVNode("div", _hoisted_2$H, [
|
|
8897
8897
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
8898
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8898
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
8899
8899
|
class: "lupa-search-box-product-element",
|
|
8900
8900
|
item: _ctx.item,
|
|
8901
8901
|
element,
|
|
@@ -8907,7 +8907,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
8907
8907
|
]),
|
|
8908
8908
|
createBaseVNode("div", _hoisted_3$w, [
|
|
8909
8909
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
8910
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8910
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
8911
8911
|
class: "lupa-search-box-product-element",
|
|
8912
8912
|
item: _ctx.item,
|
|
8913
8913
|
element,
|
|
@@ -8918,7 +8918,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
8918
8918
|
}), 128))
|
|
8919
8919
|
]),
|
|
8920
8920
|
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
|
|
8921
|
-
createVNode(_sfc_main$
|
|
8921
|
+
createVNode(_sfc_main$12, {
|
|
8922
8922
|
class: "lupa-search-box-product-element",
|
|
8923
8923
|
item: _ctx.item,
|
|
8924
8924
|
element: addToCartElement.value,
|
|
@@ -8927,12 +8927,12 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
8927
8927
|
isInStock: isInStock.value
|
|
8928
8928
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
8929
8929
|
])) : createCommentVNode("", true)
|
|
8930
|
-
], 10, _hoisted_1$
|
|
8930
|
+
], 10, _hoisted_1$Z);
|
|
8931
8931
|
};
|
|
8932
8932
|
}
|
|
8933
8933
|
});
|
|
8934
|
-
const _hoisted_1$
|
|
8935
|
-
const _sfc_main
|
|
8934
|
+
const _hoisted_1$Y = { id: "lupa-search-box-products" };
|
|
8935
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
8936
8936
|
__name: "SearchBoxProducts",
|
|
8937
8937
|
props: {
|
|
8938
8938
|
items: {},
|
|
@@ -8952,7 +8952,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
8952
8952
|
return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
|
|
8953
8953
|
});
|
|
8954
8954
|
return (_ctx, _cache) => {
|
|
8955
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8955
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Y, [
|
|
8956
8956
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
8957
8957
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
8958
8958
|
key: index,
|
|
@@ -8964,7 +8964,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
8964
8964
|
onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
|
|
8965
8965
|
});
|
|
8966
8966
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
8967
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8967
|
+
return openBlock(), createBlock(_sfc_main$11, {
|
|
8968
8968
|
key: index,
|
|
8969
8969
|
item,
|
|
8970
8970
|
panelOptions: _ctx.panelOptions,
|
|
@@ -8978,7 +8978,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
8978
8978
|
};
|
|
8979
8979
|
}
|
|
8980
8980
|
});
|
|
8981
|
-
const _sfc_main
|
|
8981
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
8982
8982
|
__name: "SearchBoxProductsWrapper",
|
|
8983
8983
|
props: {
|
|
8984
8984
|
panel: {},
|
|
@@ -9030,7 +9030,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
9030
9030
|
const getItemsDebounced = debounce$1(getItems, props.debounce);
|
|
9031
9031
|
return (_ctx, _cache) => {
|
|
9032
9032
|
var _a, _b;
|
|
9033
|
-
return openBlock(), createBlock(_sfc_main
|
|
9033
|
+
return openBlock(), createBlock(_sfc_main$10, {
|
|
9034
9034
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
9035
9035
|
panelOptions: _ctx.panel,
|
|
9036
9036
|
labels: _ctx.labels,
|
|
@@ -9048,11 +9048,11 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
9048
9048
|
};
|
|
9049
9049
|
}
|
|
9050
9050
|
});
|
|
9051
|
-
const _hoisted_1$
|
|
9051
|
+
const _hoisted_1$X = {
|
|
9052
9052
|
key: 0,
|
|
9053
9053
|
id: "lupa-search-box-panel"
|
|
9054
9054
|
};
|
|
9055
|
-
const _hoisted_2$
|
|
9055
|
+
const _hoisted_2$G = {
|
|
9056
9056
|
class: "lupa-main-panel",
|
|
9057
9057
|
"data-cy": "lupa-main-panel"
|
|
9058
9058
|
};
|
|
@@ -9063,11 +9063,11 @@ const _hoisted_4$n = {
|
|
|
9063
9063
|
};
|
|
9064
9064
|
const __default__$3 = {
|
|
9065
9065
|
components: {
|
|
9066
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
9067
|
-
SearchBoxProductsWrapper: _sfc_main
|
|
9066
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1c,
|
|
9067
|
+
SearchBoxProductsWrapper: _sfc_main$$
|
|
9068
9068
|
}
|
|
9069
9069
|
};
|
|
9070
|
-
const _sfc_main$
|
|
9070
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
9071
9071
|
__name: "SearchBoxMainPanel",
|
|
9072
9072
|
props: {
|
|
9073
9073
|
options: {},
|
|
@@ -9181,8 +9181,8 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
9181
9181
|
ref_key: "panelContainer",
|
|
9182
9182
|
ref: panelContainer
|
|
9183
9183
|
}, [
|
|
9184
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9185
|
-
createBaseVNode("div", _hoisted_2$
|
|
9184
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
9185
|
+
createBaseVNode("div", _hoisted_2$G, [
|
|
9186
9186
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayPanels.value, (panel, index) => {
|
|
9187
9187
|
return openBlock(), createElementBlock("div", {
|
|
9188
9188
|
key: index,
|
|
@@ -9214,13 +9214,13 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
9214
9214
|
], 10, _hoisted_3$v);
|
|
9215
9215
|
}), 128))
|
|
9216
9216
|
]),
|
|
9217
|
-
createVNode(_sfc_main$
|
|
9217
|
+
createVNode(_sfc_main$1h, {
|
|
9218
9218
|
labels: labels.value,
|
|
9219
9219
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
9220
9220
|
onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
|
|
9221
9221
|
}, null, 8, ["labels", "showTotalCount"])
|
|
9222
9222
|
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
|
|
9223
|
-
createVNode(_sfc_main$
|
|
9223
|
+
createVNode(_sfc_main$1f, {
|
|
9224
9224
|
options: _ctx.options.history,
|
|
9225
9225
|
history: history.value,
|
|
9226
9226
|
onGoToResults: handleGoToResults,
|
|
@@ -9245,9 +9245,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
|
|
|
9245
9245
|
const elements = getElements(triggers);
|
|
9246
9246
|
elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
|
|
9247
9247
|
};
|
|
9248
|
-
const _hoisted_1$
|
|
9249
|
-
const _hoisted_2$
|
|
9250
|
-
const _sfc_main$
|
|
9248
|
+
const _hoisted_1$W = { id: "lupa-search-box" };
|
|
9249
|
+
const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
|
|
9250
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
9251
9251
|
__name: "SearchBox",
|
|
9252
9252
|
props: {
|
|
9253
9253
|
options: {},
|
|
@@ -9480,9 +9480,9 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
9480
9480
|
};
|
|
9481
9481
|
return (_ctx, _cache) => {
|
|
9482
9482
|
var _a2;
|
|
9483
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9484
|
-
createBaseVNode("div", _hoisted_2$
|
|
9485
|
-
createVNode(_sfc_main$
|
|
9483
|
+
return openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
9484
|
+
createBaseVNode("div", _hoisted_2$F, [
|
|
9485
|
+
createVNode(_sfc_main$1i, {
|
|
9486
9486
|
options: inputOptions.value,
|
|
9487
9487
|
suggestedValue: suggestedValue.value,
|
|
9488
9488
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -9493,7 +9493,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
9493
9493
|
onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
|
|
9494
9494
|
onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
9495
9495
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
9496
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
9496
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$_, {
|
|
9497
9497
|
key: 0,
|
|
9498
9498
|
options: panelOptions.value,
|
|
9499
9499
|
inputValue: inputValue.value,
|
|
@@ -9580,11 +9580,11 @@ const getSearchParams = (url, params, baseUrl) => {
|
|
|
9580
9580
|
}
|
|
9581
9581
|
return searchParams;
|
|
9582
9582
|
};
|
|
9583
|
-
const _hoisted_1$
|
|
9583
|
+
const _hoisted_1$V = {
|
|
9584
9584
|
key: 0,
|
|
9585
9585
|
id: "lupa-search-results-did-you-mean"
|
|
9586
9586
|
};
|
|
9587
|
-
const _hoisted_2$
|
|
9587
|
+
const _hoisted_2$E = {
|
|
9588
9588
|
key: 0,
|
|
9589
9589
|
"data-cy": "suggested-search-text-label"
|
|
9590
9590
|
};
|
|
@@ -9593,7 +9593,7 @@ const _hoisted_3$u = {
|
|
|
9593
9593
|
"data-cy": "did-you-mean-label"
|
|
9594
9594
|
};
|
|
9595
9595
|
const _hoisted_4$m = { key: 1 };
|
|
9596
|
-
const _sfc_main$
|
|
9596
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
9597
9597
|
__name: "SearchResultsDidYouMean",
|
|
9598
9598
|
props: {
|
|
9599
9599
|
labels: {}
|
|
@@ -9625,8 +9625,8 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
9625
9625
|
paramStore.goToResults({ searchText, facet });
|
|
9626
9626
|
};
|
|
9627
9627
|
return (_ctx, _cache) => {
|
|
9628
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9629
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9628
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
9629
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
|
|
9630
9630
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
9631
9631
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
9632
9632
|
createBaseVNode("span", {
|
|
@@ -9651,12 +9651,12 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
9651
9651
|
};
|
|
9652
9652
|
}
|
|
9653
9653
|
});
|
|
9654
|
-
const _hoisted_1$
|
|
9654
|
+
const _hoisted_1$U = {
|
|
9655
9655
|
key: 0,
|
|
9656
9656
|
class: "lupa-search-results-summary"
|
|
9657
9657
|
};
|
|
9658
|
-
const _hoisted_2$
|
|
9659
|
-
const _sfc_main$
|
|
9658
|
+
const _hoisted_2$D = ["innerHTML"];
|
|
9659
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
9660
9660
|
__name: "SearchResultsSummary",
|
|
9661
9661
|
props: {
|
|
9662
9662
|
label: {},
|
|
@@ -9671,8 +9671,8 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
9671
9671
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
9672
9672
|
});
|
|
9673
9673
|
return (_ctx, _cache) => {
|
|
9674
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9675
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
9674
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
9675
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$D),
|
|
9676
9676
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
9677
9677
|
key: 0,
|
|
9678
9678
|
class: "lupa-filter-clear",
|
|
@@ -9683,18 +9683,18 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
9683
9683
|
};
|
|
9684
9684
|
}
|
|
9685
9685
|
});
|
|
9686
|
-
const _hoisted_1$
|
|
9686
|
+
const _hoisted_1$T = {
|
|
9687
9687
|
key: 0,
|
|
9688
9688
|
class: "lupa-result-page-title",
|
|
9689
9689
|
"data-cy": "lupa-result-page-title"
|
|
9690
9690
|
};
|
|
9691
|
-
const _hoisted_2$
|
|
9691
|
+
const _hoisted_2$C = { key: 0 };
|
|
9692
9692
|
const _hoisted_3$t = {
|
|
9693
9693
|
key: 1,
|
|
9694
9694
|
class: "lupa-results-total-count"
|
|
9695
9695
|
};
|
|
9696
9696
|
const _hoisted_4$l = ["innerHTML"];
|
|
9697
|
-
const _sfc_main$
|
|
9697
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
9698
9698
|
__name: "SearchResultsTitle",
|
|
9699
9699
|
props: {
|
|
9700
9700
|
options: {},
|
|
@@ -9729,12 +9729,12 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
9729
9729
|
});
|
|
9730
9730
|
return (_ctx, _cache) => {
|
|
9731
9731
|
return openBlock(), createElementBlock("div", null, [
|
|
9732
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
9732
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$T, [
|
|
9733
9733
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
9734
|
-
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9734
|
+
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
9735
9735
|
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
|
|
9736
9736
|
])) : createCommentVNode("", true),
|
|
9737
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
9737
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$X, {
|
|
9738
9738
|
key: 1,
|
|
9739
9739
|
label: summaryLabel.value
|
|
9740
9740
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -9747,8 +9747,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
9747
9747
|
};
|
|
9748
9748
|
}
|
|
9749
9749
|
});
|
|
9750
|
-
const _hoisted_1$
|
|
9751
|
-
const _hoisted_2$
|
|
9750
|
+
const _hoisted_1$S = { class: "lupa-search-result-filter-value" };
|
|
9751
|
+
const _hoisted_2$B = {
|
|
9752
9752
|
class: "lupa-current-filter-label",
|
|
9753
9753
|
"data-cy": "lupa-current-filter-label"
|
|
9754
9754
|
};
|
|
@@ -9756,7 +9756,7 @@ const _hoisted_3$s = {
|
|
|
9756
9756
|
class: "lupa-current-filter-value",
|
|
9757
9757
|
"data-cy": "lupa-current-filter-value"
|
|
9758
9758
|
};
|
|
9759
|
-
const _sfc_main$
|
|
9759
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
9760
9760
|
__name: "CurrentFilterDisplay",
|
|
9761
9761
|
props: {
|
|
9762
9762
|
filter: {}
|
|
@@ -9768,19 +9768,19 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
9768
9768
|
emit2("remove", { filter: props.filter });
|
|
9769
9769
|
};
|
|
9770
9770
|
return (_ctx, _cache) => {
|
|
9771
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9771
|
+
return openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
9772
9772
|
createBaseVNode("div", {
|
|
9773
9773
|
class: "lupa-current-filter-action",
|
|
9774
9774
|
onClick: handleClick
|
|
9775
9775
|
}, "⨉"),
|
|
9776
|
-
createBaseVNode("div", _hoisted_2$
|
|
9776
|
+
createBaseVNode("div", _hoisted_2$B, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
9777
9777
|
createBaseVNode("div", _hoisted_3$s, toDisplayString(_ctx.filter.value), 1)
|
|
9778
9778
|
]);
|
|
9779
9779
|
};
|
|
9780
9780
|
}
|
|
9781
9781
|
});
|
|
9782
|
-
const _hoisted_1$
|
|
9783
|
-
const _hoisted_2$
|
|
9782
|
+
const _hoisted_1$R = { class: "lupa-filter-title-text" };
|
|
9783
|
+
const _hoisted_2$A = {
|
|
9784
9784
|
key: 0,
|
|
9785
9785
|
class: "lupa-filter-count"
|
|
9786
9786
|
};
|
|
@@ -9789,7 +9789,7 @@ const _hoisted_3$r = {
|
|
|
9789
9789
|
class: "filter-values"
|
|
9790
9790
|
};
|
|
9791
9791
|
const _hoisted_4$k = { class: "lupa-current-filter-list" };
|
|
9792
|
-
const _sfc_main$
|
|
9792
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
9793
9793
|
__name: "CurrentFilters",
|
|
9794
9794
|
props: {
|
|
9795
9795
|
options: {},
|
|
@@ -9844,9 +9844,9 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
9844
9844
|
class: "lupa-current-filter-title",
|
|
9845
9845
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
9846
9846
|
}, [
|
|
9847
|
-
createBaseVNode("div", _hoisted_1$
|
|
9847
|
+
createBaseVNode("div", _hoisted_1$R, [
|
|
9848
9848
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
9849
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9849
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$A, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
9850
9850
|
]),
|
|
9851
9851
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
9852
9852
|
key: 0,
|
|
@@ -9856,7 +9856,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
9856
9856
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
|
|
9857
9857
|
createBaseVNode("div", _hoisted_4$k, [
|
|
9858
9858
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
|
|
9859
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9859
|
+
return openBlock(), createBlock(_sfc_main$V, {
|
|
9860
9860
|
key: filter.key + "_" + filter.value,
|
|
9861
9861
|
filter,
|
|
9862
9862
|
onRemove: handleRemove
|
|
@@ -9873,8 +9873,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
9873
9873
|
};
|
|
9874
9874
|
}
|
|
9875
9875
|
});
|
|
9876
|
-
const _hoisted_1$
|
|
9877
|
-
const _sfc_main$
|
|
9876
|
+
const _hoisted_1$Q = ["href"];
|
|
9877
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
9878
9878
|
__name: "CategoryFilterItem",
|
|
9879
9879
|
props: {
|
|
9880
9880
|
options: {},
|
|
@@ -9911,20 +9911,20 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
9911
9911
|
"data-cy": "lupa-child-category-item",
|
|
9912
9912
|
href: urlLink.value,
|
|
9913
9913
|
onClick: handleNavigation
|
|
9914
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
9914
|
+
}, toDisplayString(title.value), 9, _hoisted_1$Q)
|
|
9915
9915
|
], 2);
|
|
9916
9916
|
};
|
|
9917
9917
|
}
|
|
9918
9918
|
});
|
|
9919
|
-
const _hoisted_1$
|
|
9919
|
+
const _hoisted_1$P = {
|
|
9920
9920
|
class: "lupa-category-filter",
|
|
9921
9921
|
"data-cy": "lupa-category-filter"
|
|
9922
9922
|
};
|
|
9923
|
-
const _hoisted_2$
|
|
9923
|
+
const _hoisted_2$z = { class: "lupa-category-back" };
|
|
9924
9924
|
const _hoisted_3$q = ["href"];
|
|
9925
9925
|
const _hoisted_4$j = ["href"];
|
|
9926
9926
|
const _hoisted_5$c = { class: "lupa-child-category-list" };
|
|
9927
|
-
const _sfc_main$
|
|
9927
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
9928
9928
|
__name: "CategoryFilter",
|
|
9929
9929
|
props: {
|
|
9930
9930
|
options: {}
|
|
@@ -10010,8 +10010,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10010
10010
|
};
|
|
10011
10011
|
__expose({ fetch: fetch2 });
|
|
10012
10012
|
return (_ctx, _cache) => {
|
|
10013
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10014
|
-
createBaseVNode("div", _hoisted_2$
|
|
10013
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
10014
|
+
createBaseVNode("div", _hoisted_2$z, [
|
|
10015
10015
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
10016
10016
|
key: 0,
|
|
10017
10017
|
"data-cy": "lupa-category-back",
|
|
@@ -10031,7 +10031,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10031
10031
|
], 2),
|
|
10032
10032
|
createBaseVNode("div", _hoisted_5$c, [
|
|
10033
10033
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
10034
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10034
|
+
return openBlock(), createBlock(_sfc_main$T, {
|
|
10035
10035
|
key: getCategoryKey(child),
|
|
10036
10036
|
item: child,
|
|
10037
10037
|
options: _ctx.options
|
|
@@ -10042,11 +10042,11 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10042
10042
|
};
|
|
10043
10043
|
}
|
|
10044
10044
|
});
|
|
10045
|
-
const _hoisted_1$
|
|
10045
|
+
const _hoisted_1$O = {
|
|
10046
10046
|
class: "lupa-search-result-facet-term-values",
|
|
10047
10047
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
10048
10048
|
};
|
|
10049
|
-
const _hoisted_2$
|
|
10049
|
+
const _hoisted_2$y = ["placeholder"];
|
|
10050
10050
|
const _hoisted_3$p = { class: "lupa-terms-list" };
|
|
10051
10051
|
const _hoisted_4$i = ["onClick"];
|
|
10052
10052
|
const _hoisted_5$b = { class: "lupa-term-checkbox-wrapper" };
|
|
@@ -10058,7 +10058,7 @@ const _hoisted_8$1 = {
|
|
|
10058
10058
|
};
|
|
10059
10059
|
const _hoisted_9$1 = { key: 0 };
|
|
10060
10060
|
const _hoisted_10$1 = { key: 1 };
|
|
10061
|
-
const _sfc_main$
|
|
10061
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
10062
10062
|
__name: "TermFacet",
|
|
10063
10063
|
props: {
|
|
10064
10064
|
options: {},
|
|
@@ -10127,14 +10127,14 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
10127
10127
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
10128
10128
|
};
|
|
10129
10129
|
return (_ctx, _cache) => {
|
|
10130
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10130
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
10131
10131
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
10132
10132
|
key: 0,
|
|
10133
10133
|
class: "lupa-term-filter",
|
|
10134
10134
|
"data-cy": "lupa-term-filter",
|
|
10135
10135
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
10136
10136
|
placeholder: _ctx.options.labels.facetFilter
|
|
10137
|
-
}, null, 8, _hoisted_2$
|
|
10137
|
+
}, null, 8, _hoisted_2$y)), [
|
|
10138
10138
|
[vModelText, termFilter.value]
|
|
10139
10139
|
]) : createCommentVNode("", true),
|
|
10140
10140
|
createBaseVNode("div", _hoisted_3$p, [
|
|
@@ -11145,8 +11145,8 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
11145
11145
|
m.render = function(e, t, r, i, n, o) {
|
|
11146
11146
|
return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
|
|
11147
11147
|
}, m.__file = "src/Slider.vue";
|
|
11148
|
-
const _hoisted_1$
|
|
11149
|
-
const _hoisted_2$
|
|
11148
|
+
const _hoisted_1$N = { class: "lupa-search-result-facet-stats-values" };
|
|
11149
|
+
const _hoisted_2$x = {
|
|
11150
11150
|
key: 0,
|
|
11151
11151
|
class: "lupa-stats-facet-summary"
|
|
11152
11152
|
};
|
|
@@ -11173,7 +11173,7 @@ const _hoisted_13 = {
|
|
|
11173
11173
|
key: 2,
|
|
11174
11174
|
class: "lupa-stats-slider-wrapper"
|
|
11175
11175
|
};
|
|
11176
|
-
const _sfc_main$
|
|
11176
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
11177
11177
|
__name: "StatsFacet",
|
|
11178
11178
|
props: {
|
|
11179
11179
|
options: {},
|
|
@@ -11321,8 +11321,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
11321
11321
|
innerSliderRange.value = value;
|
|
11322
11322
|
};
|
|
11323
11323
|
return (_ctx, _cache) => {
|
|
11324
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11325
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11324
|
+
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
11325
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
|
|
11326
11326
|
createBaseVNode("div", null, [
|
|
11327
11327
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
11328
11328
|
createBaseVNode("div", _hoisted_5$a, [
|
|
@@ -11385,8 +11385,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
11385
11385
|
};
|
|
11386
11386
|
}
|
|
11387
11387
|
});
|
|
11388
|
-
const _hoisted_1$
|
|
11389
|
-
const _hoisted_2$
|
|
11388
|
+
const _hoisted_1$M = { class: "lupa-term-checkbox-wrapper" };
|
|
11389
|
+
const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
|
|
11390
11390
|
const _hoisted_3$n = { class: "lupa-term-label" };
|
|
11391
11391
|
const _hoisted_4$g = {
|
|
11392
11392
|
key: 0,
|
|
@@ -11396,7 +11396,7 @@ const _hoisted_5$9 = {
|
|
|
11396
11396
|
key: 0,
|
|
11397
11397
|
class: "lupa-facet-level"
|
|
11398
11398
|
};
|
|
11399
|
-
const _sfc_main$
|
|
11399
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
11400
11400
|
__name: "HierarchyFacetLevel",
|
|
11401
11401
|
props: {
|
|
11402
11402
|
options: {},
|
|
@@ -11442,12 +11442,12 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
11442
11442
|
"data-cy": "lupa-facet-term",
|
|
11443
11443
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
11444
11444
|
}, [
|
|
11445
|
-
createBaseVNode("div", _hoisted_1$
|
|
11445
|
+
createBaseVNode("div", _hoisted_1$M, [
|
|
11446
11446
|
createBaseVNode("span", {
|
|
11447
11447
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
11448
11448
|
}, null, 2)
|
|
11449
11449
|
]),
|
|
11450
|
-
createBaseVNode("div", _hoisted_2$
|
|
11450
|
+
createBaseVNode("div", _hoisted_2$w, [
|
|
11451
11451
|
createBaseVNode("span", _hoisted_3$n, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
11452
11452
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
11453
11453
|
])
|
|
@@ -11468,13 +11468,13 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
11468
11468
|
};
|
|
11469
11469
|
}
|
|
11470
11470
|
});
|
|
11471
|
-
const _hoisted_1$
|
|
11471
|
+
const _hoisted_1$L = {
|
|
11472
11472
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
11473
11473
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
11474
11474
|
};
|
|
11475
|
-
const _hoisted_2$
|
|
11475
|
+
const _hoisted_2$v = { key: 0 };
|
|
11476
11476
|
const _hoisted_3$m = ["placeholder"];
|
|
11477
|
-
const _sfc_main$
|
|
11477
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
11478
11478
|
__name: "HierarchyFacet",
|
|
11479
11479
|
props: {
|
|
11480
11480
|
options: {},
|
|
@@ -11524,8 +11524,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
11524
11524
|
showAll.value = true;
|
|
11525
11525
|
};
|
|
11526
11526
|
return (_ctx, _cache) => {
|
|
11527
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11528
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11527
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
11528
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
|
|
11529
11529
|
withDirectives(createBaseVNode("input", {
|
|
11530
11530
|
class: "lupa-term-filter",
|
|
11531
11531
|
"data-cy": "lupa-term-filter",
|
|
@@ -11536,7 +11536,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
11536
11536
|
])
|
|
11537
11537
|
])) : createCommentVNode("", true),
|
|
11538
11538
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
11539
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11539
|
+
return openBlock(), createBlock(_sfc_main$P, {
|
|
11540
11540
|
key: item.title,
|
|
11541
11541
|
options: _ctx.options,
|
|
11542
11542
|
item,
|
|
@@ -11556,20 +11556,20 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
11556
11556
|
};
|
|
11557
11557
|
}
|
|
11558
11558
|
});
|
|
11559
|
-
const _hoisted_1$
|
|
11560
|
-
const _hoisted_2$
|
|
11559
|
+
const _hoisted_1$K = { class: "lupa-facet-label-text" };
|
|
11560
|
+
const _hoisted_2$u = {
|
|
11561
11561
|
key: 0,
|
|
11562
11562
|
class: "lupa-facet-content",
|
|
11563
11563
|
"data-cy": "lupa-facet-content"
|
|
11564
11564
|
};
|
|
11565
11565
|
const __default__$2 = {
|
|
11566
11566
|
components: {
|
|
11567
|
-
TermFacet: _sfc_main$
|
|
11568
|
-
StatsFacet: _sfc_main$
|
|
11569
|
-
HierarchyFacet: _sfc_main$
|
|
11567
|
+
TermFacet: _sfc_main$R,
|
|
11568
|
+
StatsFacet: _sfc_main$Q,
|
|
11569
|
+
HierarchyFacet: _sfc_main$O
|
|
11570
11570
|
}
|
|
11571
11571
|
};
|
|
11572
|
-
const _sfc_main$
|
|
11572
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
11573
11573
|
__name: "FacetDisplay",
|
|
11574
11574
|
props: {
|
|
11575
11575
|
options: {},
|
|
@@ -11680,12 +11680,12 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
11680
11680
|
"data-cy": "lupa-search-result-facet-label",
|
|
11681
11681
|
onClick: toggleFacet
|
|
11682
11682
|
}, [
|
|
11683
|
-
createBaseVNode("div", _hoisted_1$
|
|
11683
|
+
createBaseVNode("div", _hoisted_1$K, toDisplayString(facet.value.label), 1),
|
|
11684
11684
|
createBaseVNode("div", {
|
|
11685
11685
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
11686
11686
|
}, null, 2)
|
|
11687
11687
|
], 2),
|
|
11688
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11688
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
|
|
11689
11689
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
11690
11690
|
facet: facet.value,
|
|
11691
11691
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -11703,12 +11703,12 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
11703
11703
|
};
|
|
11704
11704
|
}
|
|
11705
11705
|
}));
|
|
11706
|
-
const _hoisted_1$
|
|
11707
|
-
const _hoisted_2$
|
|
11706
|
+
const _hoisted_1$J = { class: "lupa-search-result-facet-section" };
|
|
11707
|
+
const _hoisted_2$t = {
|
|
11708
11708
|
key: 0,
|
|
11709
11709
|
class: "lupa-facets-title"
|
|
11710
11710
|
};
|
|
11711
|
-
const _sfc_main$
|
|
11711
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
11712
11712
|
__name: "FacetList",
|
|
11713
11713
|
props: {
|
|
11714
11714
|
options: {},
|
|
@@ -11742,14 +11742,14 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
11742
11742
|
};
|
|
11743
11743
|
return (_ctx, _cache) => {
|
|
11744
11744
|
var _a;
|
|
11745
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11746
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11745
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
11746
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
11747
11747
|
createBaseVNode("div", {
|
|
11748
11748
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
11749
11749
|
}, [
|
|
11750
11750
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
11751
11751
|
var _a2;
|
|
11752
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11752
|
+
return openBlock(), createBlock(_sfc_main$N, {
|
|
11753
11753
|
key: facet.key,
|
|
11754
11754
|
facet,
|
|
11755
11755
|
currentFilters: currentFiltersValue.value,
|
|
@@ -11764,8 +11764,8 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
11764
11764
|
};
|
|
11765
11765
|
}
|
|
11766
11766
|
});
|
|
11767
|
-
const _hoisted_1$
|
|
11768
|
-
const _sfc_main$
|
|
11767
|
+
const _hoisted_1$I = { class: "lupa-search-result-facets" };
|
|
11768
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
11769
11769
|
__name: "Facets",
|
|
11770
11770
|
props: {
|
|
11771
11771
|
options: {},
|
|
@@ -11811,8 +11811,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11811
11811
|
paramStore.removeParameters({ paramsToRemove: [param] });
|
|
11812
11812
|
};
|
|
11813
11813
|
return (_ctx, _cache) => {
|
|
11814
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11815
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
11814
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
11815
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$M, {
|
|
11816
11816
|
key: 0,
|
|
11817
11817
|
options: _ctx.options,
|
|
11818
11818
|
facets: regularFacets.value,
|
|
@@ -11826,11 +11826,11 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11826
11826
|
};
|
|
11827
11827
|
}
|
|
11828
11828
|
});
|
|
11829
|
-
const _hoisted_1$
|
|
11829
|
+
const _hoisted_1$H = {
|
|
11830
11830
|
id: "lupa-search-result-filters",
|
|
11831
11831
|
class: "lupa-search-result-filters"
|
|
11832
11832
|
};
|
|
11833
|
-
const _sfc_main$
|
|
11833
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
11834
11834
|
__name: "SearchResultsFilters",
|
|
11835
11835
|
props: {
|
|
11836
11836
|
options: {},
|
|
@@ -11859,19 +11859,19 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
11859
11859
|
__expose({ fetch: fetch2 });
|
|
11860
11860
|
return (_ctx, _cache) => {
|
|
11861
11861
|
var _a;
|
|
11862
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11863
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
11862
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
11863
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$U, {
|
|
11864
11864
|
key: 0,
|
|
11865
11865
|
options: _ctx.options.currentFilters,
|
|
11866
11866
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
11867
11867
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
11868
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
11868
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$S, {
|
|
11869
11869
|
key: 1,
|
|
11870
11870
|
options: _ctx.options.categories,
|
|
11871
11871
|
ref_key: "categoryFilters",
|
|
11872
11872
|
ref: categoryFilters
|
|
11873
11873
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
11874
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
11874
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
|
|
11875
11875
|
key: 2,
|
|
11876
11876
|
options: _ctx.options.facets
|
|
11877
11877
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -11879,11 +11879,11 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
11879
11879
|
};
|
|
11880
11880
|
}
|
|
11881
11881
|
});
|
|
11882
|
-
const _hoisted_1$
|
|
11882
|
+
const _hoisted_1$G = {
|
|
11883
11883
|
key: 0,
|
|
11884
11884
|
class: "lupa-mobile-filter-sidebar"
|
|
11885
11885
|
};
|
|
11886
|
-
const _hoisted_2$
|
|
11886
|
+
const _hoisted_2$s = ["onClick"];
|
|
11887
11887
|
const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
|
|
11888
11888
|
const _hoisted_4$f = { class: "lupa-sidebar-top" };
|
|
11889
11889
|
const _hoisted_5$8 = { class: "lupa-sidebar-title" };
|
|
@@ -11892,7 +11892,7 @@ const _hoisted_6$5 = {
|
|
|
11892
11892
|
class: "lupa-sidebar-filter-count"
|
|
11893
11893
|
};
|
|
11894
11894
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
11895
|
-
const _sfc_main$
|
|
11895
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
11896
11896
|
__name: "MobileFilterSidebar",
|
|
11897
11897
|
props: {
|
|
11898
11898
|
options: {}
|
|
@@ -11918,11 +11918,11 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11918
11918
|
searchResultStore.setSidebarState({ visible: false });
|
|
11919
11919
|
};
|
|
11920
11920
|
return (_ctx, _cache) => {
|
|
11921
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11921
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
11922
11922
|
createBaseVNode("div", {
|
|
11923
11923
|
class: "lupa-sidebar-close",
|
|
11924
11924
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
11925
|
-
}, null, 8, _hoisted_2$
|
|
11925
|
+
}, null, 8, _hoisted_2$s),
|
|
11926
11926
|
createBaseVNode("div", _hoisted_3$l, [
|
|
11927
11927
|
createBaseVNode("div", _hoisted_4$f, [
|
|
11928
11928
|
createBaseVNode("div", _hoisted_5$8, [
|
|
@@ -11935,7 +11935,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11935
11935
|
})
|
|
11936
11936
|
]),
|
|
11937
11937
|
createBaseVNode("div", _hoisted_7$4, [
|
|
11938
|
-
createVNode(_sfc_main$
|
|
11938
|
+
createVNode(_sfc_main$K, {
|
|
11939
11939
|
options: _ctx.options,
|
|
11940
11940
|
expandable: isActiveFiltersExpanded.value
|
|
11941
11941
|
}, null, 8, ["options", "expandable"])
|
|
@@ -11945,14 +11945,14 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11945
11945
|
};
|
|
11946
11946
|
}
|
|
11947
11947
|
});
|
|
11948
|
-
const _hoisted_1$
|
|
11949
|
-
const _hoisted_2$
|
|
11948
|
+
const _hoisted_1$F = { id: "lupa-search-results-breadcrumbs" };
|
|
11949
|
+
const _hoisted_2$r = ["href", "onClick"];
|
|
11950
11950
|
const _hoisted_3$k = {
|
|
11951
11951
|
key: 1,
|
|
11952
11952
|
class: "lupa-search-results-breadcrumb-text"
|
|
11953
11953
|
};
|
|
11954
11954
|
const _hoisted_4$e = { key: 2 };
|
|
11955
|
-
const _sfc_main$
|
|
11955
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
11956
11956
|
__name: "SearchResultsBreadcrumbs",
|
|
11957
11957
|
props: {
|
|
11958
11958
|
breadcrumbs: {}
|
|
@@ -11977,7 +11977,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11977
11977
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
11978
11978
|
};
|
|
11979
11979
|
return (_ctx, _cache) => {
|
|
11980
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11980
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
11981
11981
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
11982
11982
|
return openBlock(), createElementBlock("span", {
|
|
11983
11983
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -11991,7 +11991,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11991
11991
|
var _a;
|
|
11992
11992
|
return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
11993
11993
|
}
|
|
11994
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
11994
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$r)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
11995
11995
|
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
|
|
11996
11996
|
]);
|
|
11997
11997
|
}), 128))
|
|
@@ -11999,11 +11999,11 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11999
11999
|
};
|
|
12000
12000
|
}
|
|
12001
12001
|
});
|
|
12002
|
-
const _hoisted_1$
|
|
12002
|
+
const _hoisted_1$E = {
|
|
12003
12003
|
id: "lupa-search-result-filters",
|
|
12004
12004
|
class: "lupa-search-result-filters"
|
|
12005
12005
|
};
|
|
12006
|
-
const _sfc_main$
|
|
12006
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
12007
12007
|
__name: "FiltersTopDropdown",
|
|
12008
12008
|
props: {
|
|
12009
12009
|
options: {}
|
|
@@ -12011,8 +12011,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
12011
12011
|
setup(__props) {
|
|
12012
12012
|
return (_ctx, _cache) => {
|
|
12013
12013
|
var _a;
|
|
12014
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12015
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
12014
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
12015
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
|
|
12016
12016
|
key: 0,
|
|
12017
12017
|
options: _ctx.options.facets,
|
|
12018
12018
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -12022,8 +12022,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
12022
12022
|
};
|
|
12023
12023
|
}
|
|
12024
12024
|
});
|
|
12025
|
-
const _hoisted_1$
|
|
12026
|
-
const _sfc_main$
|
|
12025
|
+
const _hoisted_1$D = { id: "lupa-search-results-layout-selection" };
|
|
12026
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
12027
12027
|
__name: "SearchResultsLayoutSelection",
|
|
12028
12028
|
setup(__props) {
|
|
12029
12029
|
const searchResultStore = useSearchResultStore();
|
|
@@ -12034,7 +12034,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
12034
12034
|
searchResultStore.setLayout(layout2);
|
|
12035
12035
|
};
|
|
12036
12036
|
return (_ctx, _cache) => {
|
|
12037
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12037
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
12038
12038
|
createBaseVNode("div", {
|
|
12039
12039
|
class: normalizeClass([
|
|
12040
12040
|
"lupa-layout-selection-grid",
|
|
@@ -12056,11 +12056,11 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
12056
12056
|
};
|
|
12057
12057
|
}
|
|
12058
12058
|
});
|
|
12059
|
-
const _hoisted_1$
|
|
12059
|
+
const _hoisted_1$C = {
|
|
12060
12060
|
key: 0,
|
|
12061
12061
|
class: "lupa-mobile-toggle-filter-count"
|
|
12062
12062
|
};
|
|
12063
|
-
const _sfc_main$
|
|
12063
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
12064
12064
|
__name: "SearchResultsMobileToggle",
|
|
12065
12065
|
props: {
|
|
12066
12066
|
label: {},
|
|
@@ -12078,17 +12078,17 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
12078
12078
|
onClick: handleMobileToggle
|
|
12079
12079
|
}, [
|
|
12080
12080
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
12081
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
12081
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$C, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
12082
12082
|
], 2);
|
|
12083
12083
|
};
|
|
12084
12084
|
}
|
|
12085
12085
|
});
|
|
12086
|
-
const _hoisted_1$
|
|
12086
|
+
const _hoisted_1$B = {
|
|
12087
12087
|
key: 0,
|
|
12088
12088
|
id: "lupa-search-results-page-select",
|
|
12089
12089
|
"data-cy": "lupa-search-results-page-select"
|
|
12090
12090
|
};
|
|
12091
|
-
const _hoisted_2$
|
|
12091
|
+
const _hoisted_2$q = {
|
|
12092
12092
|
key: 0,
|
|
12093
12093
|
class: "lupa-page-number-separator"
|
|
12094
12094
|
};
|
|
@@ -12097,7 +12097,7 @@ const _hoisted_4$d = {
|
|
|
12097
12097
|
key: 0,
|
|
12098
12098
|
class: "lupa-page-number-separator"
|
|
12099
12099
|
};
|
|
12100
|
-
const _sfc_main$
|
|
12100
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
12101
12101
|
__name: "SearchResultsPageSelect",
|
|
12102
12102
|
props: {
|
|
12103
12103
|
lastPageLabel: {},
|
|
@@ -12159,7 +12159,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
12159
12159
|
}
|
|
12160
12160
|
};
|
|
12161
12161
|
return (_ctx, _cache) => {
|
|
12162
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
12162
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
12163
12163
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
12164
12164
|
key: 0,
|
|
12165
12165
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -12170,7 +12170,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
12170
12170
|
class: "lupa-page-number lupa-page-number-first",
|
|
12171
12171
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
12172
12172
|
}, " 1 "),
|
|
12173
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12173
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$q, "...")) : createCommentVNode("", true)
|
|
12174
12174
|
], 64)) : createCommentVNode("", true),
|
|
12175
12175
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
12176
12176
|
return openBlock(), createElementBlock("div", {
|
|
@@ -12203,13 +12203,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
12203
12203
|
};
|
|
12204
12204
|
}
|
|
12205
12205
|
});
|
|
12206
|
-
const _hoisted_1$
|
|
12206
|
+
const _hoisted_1$A = {
|
|
12207
12207
|
id: "lupa-search-results-page-size",
|
|
12208
12208
|
"data-cy": "lupa-search-results-page-size"
|
|
12209
12209
|
};
|
|
12210
|
-
const _hoisted_2$
|
|
12210
|
+
const _hoisted_2$p = { id: "lupa-select" };
|
|
12211
12211
|
const _hoisted_3$i = { class: "lupa-select-label" };
|
|
12212
|
-
const _sfc_main$
|
|
12212
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
12213
12213
|
__name: "SearchResultsPageSize",
|
|
12214
12214
|
props: {
|
|
12215
12215
|
label: {},
|
|
@@ -12226,8 +12226,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
12226
12226
|
});
|
|
12227
12227
|
};
|
|
12228
12228
|
return (_ctx, _cache) => {
|
|
12229
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12230
|
-
createBaseVNode("div", _hoisted_2$
|
|
12229
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
12230
|
+
createBaseVNode("div", _hoisted_2$p, [
|
|
12231
12231
|
createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.label), 1),
|
|
12232
12232
|
createBaseVNode("select", {
|
|
12233
12233
|
class: "lupa-select-dropdown",
|
|
@@ -12245,14 +12245,14 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
12245
12245
|
};
|
|
12246
12246
|
}
|
|
12247
12247
|
});
|
|
12248
|
-
const _hoisted_1$
|
|
12248
|
+
const _hoisted_1$z = {
|
|
12249
12249
|
id: "lupa-search-results-sort",
|
|
12250
12250
|
class: "lupa-search-results-sort"
|
|
12251
12251
|
};
|
|
12252
|
-
const _hoisted_2$
|
|
12252
|
+
const _hoisted_2$o = { id: "lupa-select" };
|
|
12253
12253
|
const _hoisted_3$h = { class: "lupa-select-label" };
|
|
12254
12254
|
const _hoisted_4$c = ["value"];
|
|
12255
|
-
const _sfc_main$
|
|
12255
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
12256
12256
|
__name: "SearchResultsSort",
|
|
12257
12257
|
props: {
|
|
12258
12258
|
options: {},
|
|
@@ -12263,6 +12263,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12263
12263
|
const paramStore = useParamsStore();
|
|
12264
12264
|
const { sort } = storeToRefs(paramStore);
|
|
12265
12265
|
const selectedKey = ref("");
|
|
12266
|
+
const previousKey = ref("");
|
|
12266
12267
|
const sortItems = computed(() => {
|
|
12267
12268
|
if (props.options.options && props.options.options.length) {
|
|
12268
12269
|
return props.options.options;
|
|
@@ -12278,6 +12279,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12278
12279
|
var _a, _b;
|
|
12279
12280
|
const optionToSelect = (_a = sortItems.value.find((x) => x.key === sort.value)) == null ? void 0 : _a.key;
|
|
12280
12281
|
selectedKey.value = optionToSelect != null ? optionToSelect : (_b = defaultSortValue.value) == null ? void 0 : _b.key;
|
|
12282
|
+
previousKey.value = selectedKey.value;
|
|
12281
12283
|
};
|
|
12282
12284
|
watch(sort, () => setSortValue());
|
|
12283
12285
|
onMounted(() => {
|
|
@@ -12289,15 +12291,16 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12289
12291
|
if (!value) {
|
|
12290
12292
|
return;
|
|
12291
12293
|
}
|
|
12292
|
-
(_c = (_b = props.callbacks) == null ? void 0 : _b.onSortChange) == null ? void 0 : _c.call(_b, { selectedSortKey: value });
|
|
12294
|
+
(_c = (_b = props.callbacks) == null ? void 0 : _b.onSortChange) == null ? void 0 : _c.call(_b, { selectedSortKey: value, previousSortKey: previousKey.value });
|
|
12293
12295
|
paramStore.appendParams({
|
|
12294
12296
|
params: [{ name: QUERY_PARAMS$1.SORT, value }],
|
|
12295
12297
|
paramsToRemove: [QUERY_PARAMS$1.PAGE]
|
|
12296
12298
|
});
|
|
12299
|
+
previousKey.value = selectedKey.value;
|
|
12297
12300
|
};
|
|
12298
12301
|
return (_ctx, _cache) => {
|
|
12299
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12300
|
-
createBaseVNode("div", _hoisted_2$
|
|
12302
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
12303
|
+
createBaseVNode("div", _hoisted_2$o, [
|
|
12301
12304
|
createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
|
|
12302
12305
|
withDirectives(createBaseVNode("select", {
|
|
12303
12306
|
class: "lupa-select-dropdown",
|
|
@@ -12320,14 +12323,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12320
12323
|
};
|
|
12321
12324
|
}
|
|
12322
12325
|
});
|
|
12323
|
-
const _hoisted_1$
|
|
12324
|
-
const _hoisted_2$
|
|
12326
|
+
const _hoisted_1$y = { class: "lupa-toolbar-left" };
|
|
12327
|
+
const _hoisted_2$n = { key: 1 };
|
|
12325
12328
|
const _hoisted_3$g = { key: 3 };
|
|
12326
12329
|
const _hoisted_4$b = { key: 5 };
|
|
12327
12330
|
const _hoisted_5$7 = { class: "lupa-toolbar-right" };
|
|
12328
12331
|
const _hoisted_6$4 = { key: 1 };
|
|
12329
12332
|
const _hoisted_7$3 = { key: 3 };
|
|
12330
|
-
const _sfc_main$
|
|
12333
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
12331
12334
|
__name: "SearchResultsToolbar",
|
|
12332
12335
|
props: {
|
|
12333
12336
|
options: {},
|
|
@@ -12426,15 +12429,15 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
12426
12429
|
id: "lupa-search-results-toolbar",
|
|
12427
12430
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
12428
12431
|
}, [
|
|
12429
|
-
createBaseVNode("div", _hoisted_1$
|
|
12430
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
12431
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
12432
|
+
createBaseVNode("div", _hoisted_1$y, [
|
|
12433
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$G, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$n)),
|
|
12434
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$X, {
|
|
12432
12435
|
key: 2,
|
|
12433
12436
|
label: searchSummaryLabel.value,
|
|
12434
12437
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
12435
12438
|
onClear: handleClearAll
|
|
12436
12439
|
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
|
|
12437
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
12440
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
|
|
12438
12441
|
key: 4,
|
|
12439
12442
|
options: paginationOptions.value.pageSelect,
|
|
12440
12443
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
@@ -12442,16 +12445,16 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
12442
12445
|
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$b))
|
|
12443
12446
|
]),
|
|
12444
12447
|
createBaseVNode("div", _hoisted_5$7, [
|
|
12445
|
-
createVNode(_sfc_main$
|
|
12448
|
+
createVNode(_sfc_main$F, {
|
|
12446
12449
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
12447
12450
|
"show-filter-count": showMobileFilterCount.value
|
|
12448
12451
|
}, null, 8, ["label", "show-filter-count"]),
|
|
12449
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
12452
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$D, {
|
|
12450
12453
|
key: 0,
|
|
12451
12454
|
options: paginationOptions.value.pageSize,
|
|
12452
12455
|
label: paginationOptions.value.labels.pageSize
|
|
12453
12456
|
}, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$4)),
|
|
12454
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
12457
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$C, {
|
|
12455
12458
|
key: 2,
|
|
12456
12459
|
options: sortOptions.value,
|
|
12457
12460
|
callbacks: callbacks.value
|
|
@@ -12461,14 +12464,14 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
12461
12464
|
};
|
|
12462
12465
|
}
|
|
12463
12466
|
});
|
|
12464
|
-
const _hoisted_1$
|
|
12465
|
-
const _hoisted_2$
|
|
12467
|
+
const _hoisted_1$x = { class: "lupa-badge-title" };
|
|
12468
|
+
const _hoisted_2$m = ["src"];
|
|
12466
12469
|
const _hoisted_3$f = { key: 1 };
|
|
12467
12470
|
const _hoisted_4$a = {
|
|
12468
12471
|
key: 0,
|
|
12469
12472
|
class: "lupa-badge-full-text"
|
|
12470
12473
|
};
|
|
12471
|
-
const _sfc_main$
|
|
12474
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
12472
12475
|
__name: "SearchResultGeneratedBadge",
|
|
12473
12476
|
props: {
|
|
12474
12477
|
options: {},
|
|
@@ -12501,11 +12504,11 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
12501
12504
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
12502
12505
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
12503
12506
|
}, [
|
|
12504
|
-
createBaseVNode("span", _hoisted_1$
|
|
12507
|
+
createBaseVNode("span", _hoisted_1$x, [
|
|
12505
12508
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
12506
12509
|
key: 0,
|
|
12507
12510
|
src: image.value
|
|
12508
|
-
}, null, 8, _hoisted_2$
|
|
12511
|
+
}, null, 8, _hoisted_2$m)) : createCommentVNode("", true),
|
|
12509
12512
|
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
12510
12513
|
]),
|
|
12511
12514
|
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$a, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
@@ -12513,8 +12516,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
12513
12516
|
};
|
|
12514
12517
|
}
|
|
12515
12518
|
});
|
|
12516
|
-
const _hoisted_1$
|
|
12517
|
-
const _sfc_main$
|
|
12519
|
+
const _hoisted_1$w = { class: "lupa-generated-badges" };
|
|
12520
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
12518
12521
|
__name: "SearchResultGeneratedBadges",
|
|
12519
12522
|
props: {
|
|
12520
12523
|
options: {}
|
|
@@ -12540,9 +12543,9 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
12540
12543
|
})).filter((b) => Boolean(b.id));
|
|
12541
12544
|
});
|
|
12542
12545
|
return (_ctx, _cache) => {
|
|
12543
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12546
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
12544
12547
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
12545
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12548
|
+
return openBlock(), createBlock(_sfc_main$A, {
|
|
12546
12549
|
key: badge.id,
|
|
12547
12550
|
badge,
|
|
12548
12551
|
options: _ctx.options
|
|
@@ -12552,8 +12555,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
12552
12555
|
};
|
|
12553
12556
|
}
|
|
12554
12557
|
});
|
|
12555
|
-
const _hoisted_1$
|
|
12556
|
-
const _sfc_main$
|
|
12558
|
+
const _hoisted_1$v = ["innerHTML"];
|
|
12559
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
12557
12560
|
__name: "CustomBadge",
|
|
12558
12561
|
props: {
|
|
12559
12562
|
badge: {}
|
|
@@ -12572,12 +12575,12 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
12572
12575
|
return openBlock(), createElementBlock("div", {
|
|
12573
12576
|
class: normalizeClass(className.value),
|
|
12574
12577
|
innerHTML: text.value
|
|
12575
|
-
}, null, 10, _hoisted_1$
|
|
12578
|
+
}, null, 10, _hoisted_1$v);
|
|
12576
12579
|
};
|
|
12577
12580
|
}
|
|
12578
12581
|
});
|
|
12579
|
-
const _hoisted_1$
|
|
12580
|
-
const _sfc_main$
|
|
12582
|
+
const _hoisted_1$u = { class: "lupa-text-badges" };
|
|
12583
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
12581
12584
|
__name: "TextBadge",
|
|
12582
12585
|
props: {
|
|
12583
12586
|
badge: {}
|
|
@@ -12592,7 +12595,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12592
12595
|
return badges.value.slice(0, props.badge.maxItems);
|
|
12593
12596
|
});
|
|
12594
12597
|
return (_ctx, _cache) => {
|
|
12595
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12598
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
12596
12599
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
12597
12600
|
return openBlock(), createElementBlock("div", {
|
|
12598
12601
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -12603,9 +12606,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12603
12606
|
};
|
|
12604
12607
|
}
|
|
12605
12608
|
});
|
|
12606
|
-
const _hoisted_1$
|
|
12607
|
-
const _hoisted_2$
|
|
12608
|
-
const _sfc_main$
|
|
12609
|
+
const _hoisted_1$t = { class: "lupa-image-badges" };
|
|
12610
|
+
const _hoisted_2$l = ["src"];
|
|
12611
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
12609
12612
|
__name: "ImageBadge",
|
|
12610
12613
|
props: {
|
|
12611
12614
|
badge: {}
|
|
@@ -12625,7 +12628,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
12625
12628
|
return `${props.badge.rootImageUrl}${src}`;
|
|
12626
12629
|
};
|
|
12627
12630
|
return (_ctx, _cache) => {
|
|
12628
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12631
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
12629
12632
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
12630
12633
|
return openBlock(), createElementBlock("div", {
|
|
12631
12634
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -12633,22 +12636,22 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
12633
12636
|
}, [
|
|
12634
12637
|
createBaseVNode("img", {
|
|
12635
12638
|
src: getImageUrl(item)
|
|
12636
|
-
}, null, 8, _hoisted_2$
|
|
12639
|
+
}, null, 8, _hoisted_2$l)
|
|
12637
12640
|
]);
|
|
12638
12641
|
}), 128))
|
|
12639
12642
|
]);
|
|
12640
12643
|
};
|
|
12641
12644
|
}
|
|
12642
12645
|
});
|
|
12643
|
-
const _hoisted_1$
|
|
12646
|
+
const _hoisted_1$s = { id: "lupa-search-results-badges" };
|
|
12644
12647
|
const __default__$1 = {
|
|
12645
12648
|
components: {
|
|
12646
|
-
CustomBadge: _sfc_main$
|
|
12647
|
-
TextBadge: _sfc_main$
|
|
12648
|
-
ImageBadge: _sfc_main$
|
|
12649
|
+
CustomBadge: _sfc_main$y,
|
|
12650
|
+
TextBadge: _sfc_main$x,
|
|
12651
|
+
ImageBadge: _sfc_main$w
|
|
12649
12652
|
}
|
|
12650
12653
|
};
|
|
12651
|
-
const _sfc_main$
|
|
12654
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
12652
12655
|
__name: "SearchResultsBadgeWrapper",
|
|
12653
12656
|
props: {
|
|
12654
12657
|
position: {},
|
|
@@ -12694,7 +12697,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
12694
12697
|
}
|
|
12695
12698
|
};
|
|
12696
12699
|
return (_ctx, _cache) => {
|
|
12697
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12700
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
12698
12701
|
createBaseVNode("div", {
|
|
12699
12702
|
id: "lupa-badges",
|
|
12700
12703
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -12705,7 +12708,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
12705
12708
|
badge
|
|
12706
12709
|
}, null, 8, ["badge"]);
|
|
12707
12710
|
}), 128)),
|
|
12708
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
12711
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$z, {
|
|
12709
12712
|
key: 0,
|
|
12710
12713
|
options: _ctx.options
|
|
12711
12714
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -12714,7 +12717,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
12714
12717
|
};
|
|
12715
12718
|
}
|
|
12716
12719
|
}));
|
|
12717
|
-
const _sfc_main$
|
|
12720
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
12718
12721
|
__name: "SearchResultsProductImage",
|
|
12719
12722
|
props: {
|
|
12720
12723
|
item: {},
|
|
@@ -12722,7 +12725,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
12722
12725
|
},
|
|
12723
12726
|
setup(__props) {
|
|
12724
12727
|
return (_ctx, _cache) => {
|
|
12725
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12728
|
+
return openBlock(), createBlock(_sfc_main$1b, {
|
|
12726
12729
|
item: _ctx.item,
|
|
12727
12730
|
options: _ctx.options,
|
|
12728
12731
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -12731,14 +12734,14 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
12731
12734
|
};
|
|
12732
12735
|
}
|
|
12733
12736
|
});
|
|
12734
|
-
const _hoisted_1$
|
|
12735
|
-
const _hoisted_2$
|
|
12737
|
+
const _hoisted_1$r = ["innerHTML"];
|
|
12738
|
+
const _hoisted_2$k = ["title"];
|
|
12736
12739
|
const _hoisted_3$e = {
|
|
12737
12740
|
key: 0,
|
|
12738
12741
|
class: "lupa-search-results-product-title-text"
|
|
12739
12742
|
};
|
|
12740
12743
|
const _hoisted_4$9 = ["href"];
|
|
12741
|
-
const _sfc_main$
|
|
12744
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
12742
12745
|
__name: "SearchResultsProductTitle",
|
|
12743
12746
|
props: {
|
|
12744
12747
|
item: {},
|
|
@@ -12771,7 +12774,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
12771
12774
|
class: "lupa-search-results-product-title",
|
|
12772
12775
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12773
12776
|
innerHTML: title.value
|
|
12774
|
-
}, null, 12, _hoisted_1$
|
|
12777
|
+
}, null, 12, _hoisted_1$r)) : (openBlock(), createElementBlock("div", {
|
|
12775
12778
|
key: 1,
|
|
12776
12779
|
class: "lupa-search-results-product-title",
|
|
12777
12780
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -12784,12 +12787,12 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
12784
12787
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
12785
12788
|
onClick: handleNavigation
|
|
12786
12789
|
}, toDisplayString(title.value), 9, _hoisted_4$9)) : createCommentVNode("", true)
|
|
12787
|
-
], 12, _hoisted_2$
|
|
12790
|
+
], 12, _hoisted_2$k));
|
|
12788
12791
|
};
|
|
12789
12792
|
}
|
|
12790
12793
|
});
|
|
12791
|
-
const _hoisted_1$
|
|
12792
|
-
const _sfc_main$
|
|
12794
|
+
const _hoisted_1$q = ["innerHTML"];
|
|
12795
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
12793
12796
|
__name: "SearchResultsProductDescription",
|
|
12794
12797
|
props: {
|
|
12795
12798
|
item: {},
|
|
@@ -12813,7 +12816,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
12813
12816
|
class: "lupa-search-results-product-description",
|
|
12814
12817
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12815
12818
|
innerHTML: description.value
|
|
12816
|
-
}, null, 12, _hoisted_1$
|
|
12819
|
+
}, null, 12, _hoisted_1$q)) : (openBlock(), createElementBlock("div", {
|
|
12817
12820
|
key: 1,
|
|
12818
12821
|
class: "lupa-search-results-product-description",
|
|
12819
12822
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -12821,15 +12824,15 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
12821
12824
|
};
|
|
12822
12825
|
}
|
|
12823
12826
|
});
|
|
12824
|
-
const _hoisted_1$
|
|
12825
|
-
const _hoisted_2$
|
|
12827
|
+
const _hoisted_1$p = { id: "lupa-search-results-rating" };
|
|
12828
|
+
const _hoisted_2$j = { class: "lupa-ratings" };
|
|
12826
12829
|
const _hoisted_3$d = { class: "lupa-ratings-base" };
|
|
12827
12830
|
const _hoisted_4$8 = ["innerHTML"];
|
|
12828
12831
|
const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
|
|
12829
12832
|
const _hoisted_6$3 = ["innerHTML"];
|
|
12830
12833
|
const _hoisted_7$2 = ["href"];
|
|
12831
12834
|
const STAR_COUNT = 5;
|
|
12832
|
-
const _sfc_main$
|
|
12835
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
12833
12836
|
__name: "SearchResultsProductRating",
|
|
12834
12837
|
props: {
|
|
12835
12838
|
item: {},
|
|
@@ -12860,8 +12863,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
12860
12863
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
12861
12864
|
});
|
|
12862
12865
|
return (_ctx, _cache) => {
|
|
12863
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12864
|
-
createBaseVNode("div", _hoisted_2$
|
|
12866
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
12867
|
+
createBaseVNode("div", _hoisted_2$j, [
|
|
12865
12868
|
createBaseVNode("div", _hoisted_3$d, [
|
|
12866
12869
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
12867
12870
|
return openBlock(), createElementBlock("div", {
|
|
@@ -12894,11 +12897,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
12894
12897
|
};
|
|
12895
12898
|
}
|
|
12896
12899
|
});
|
|
12897
|
-
const _hoisted_1$
|
|
12900
|
+
const _hoisted_1$o = {
|
|
12898
12901
|
class: "lupa-search-results-product-regular-price",
|
|
12899
12902
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
12900
12903
|
};
|
|
12901
|
-
const _sfc_main$
|
|
12904
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
12902
12905
|
__name: "SearchResultsProductRegularPrice",
|
|
12903
12906
|
props: {
|
|
12904
12907
|
item: {},
|
|
@@ -12916,15 +12919,15 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
12916
12919
|
);
|
|
12917
12920
|
});
|
|
12918
12921
|
return (_ctx, _cache) => {
|
|
12919
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12922
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, toDisplayString(price.value), 1);
|
|
12920
12923
|
};
|
|
12921
12924
|
}
|
|
12922
12925
|
});
|
|
12923
|
-
const _hoisted_1$
|
|
12926
|
+
const _hoisted_1$n = {
|
|
12924
12927
|
class: "lupa-search-results-product-price",
|
|
12925
12928
|
"data-cy": "lupa-search-results-product-price"
|
|
12926
12929
|
};
|
|
12927
|
-
const _sfc_main$
|
|
12930
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
12928
12931
|
__name: "SearchResultsProductPrice",
|
|
12929
12932
|
props: {
|
|
12930
12933
|
item: {},
|
|
@@ -12942,16 +12945,16 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
12942
12945
|
);
|
|
12943
12946
|
});
|
|
12944
12947
|
return (_ctx, _cache) => {
|
|
12945
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12948
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
12946
12949
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
12947
12950
|
]);
|
|
12948
12951
|
};
|
|
12949
12952
|
}
|
|
12950
12953
|
});
|
|
12951
|
-
const _hoisted_1$
|
|
12952
|
-
const _hoisted_2$
|
|
12954
|
+
const _hoisted_1$m = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
12955
|
+
const _hoisted_2$i = { class: "lupa-search-results-product-addtocart" };
|
|
12953
12956
|
const _hoisted_3$c = ["onClick", "disabled"];
|
|
12954
|
-
const _sfc_main$
|
|
12957
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
12955
12958
|
__name: "SearchResultsProductAddToCart",
|
|
12956
12959
|
props: {
|
|
12957
12960
|
item: {},
|
|
@@ -12978,8 +12981,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
12978
12981
|
loading.value = false;
|
|
12979
12982
|
});
|
|
12980
12983
|
return (_ctx, _cache) => {
|
|
12981
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12982
|
-
createBaseVNode("div", _hoisted_2$
|
|
12984
|
+
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
12985
|
+
createBaseVNode("div", _hoisted_2$i, [
|
|
12983
12986
|
createBaseVNode("button", {
|
|
12984
12987
|
onClick: withModifiers(handleClick, ["stop"]),
|
|
12985
12988
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
@@ -12991,12 +12994,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
12991
12994
|
};
|
|
12992
12995
|
}
|
|
12993
12996
|
});
|
|
12994
|
-
const _hoisted_1$
|
|
12995
|
-
const _hoisted_2$
|
|
12997
|
+
const _hoisted_1$l = ["innerHTML"];
|
|
12998
|
+
const _hoisted_2$h = { key: 0 };
|
|
12996
12999
|
const _hoisted_3$b = { key: 1 };
|
|
12997
13000
|
const _hoisted_4$7 = { class: "lupa-search-box-custom-label" };
|
|
12998
13001
|
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
12999
|
-
const _sfc_main$
|
|
13002
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
13000
13003
|
__name: "SearchResultsProductCustom",
|
|
13001
13004
|
props: {
|
|
13002
13005
|
item: {},
|
|
@@ -13034,11 +13037,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
13034
13037
|
key: 0,
|
|
13035
13038
|
class: className.value,
|
|
13036
13039
|
innerHTML: text.value
|
|
13037
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
13040
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$l)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
13038
13041
|
key: 1,
|
|
13039
13042
|
class: className.value
|
|
13040
13043
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
13041
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13044
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$h, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$b, [
|
|
13042
13045
|
createBaseVNode("div", _hoisted_4$7, toDisplayString(label.value), 1),
|
|
13043
13046
|
createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
|
|
13044
13047
|
]))
|
|
@@ -13046,8 +13049,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
13046
13049
|
};
|
|
13047
13050
|
}
|
|
13048
13051
|
});
|
|
13049
|
-
const _hoisted_1$
|
|
13050
|
-
const _sfc_main$
|
|
13052
|
+
const _hoisted_1$k = ["innerHTML"];
|
|
13053
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
13051
13054
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
13052
13055
|
props: {
|
|
13053
13056
|
item: {},
|
|
@@ -13071,15 +13074,15 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
13071
13074
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
13072
13075
|
class: className.value,
|
|
13073
13076
|
innerHTML: text.value
|
|
13074
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
13077
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$k);
|
|
13075
13078
|
};
|
|
13076
13079
|
}
|
|
13077
13080
|
});
|
|
13078
|
-
const _hoisted_1$
|
|
13079
|
-
const _hoisted_2$
|
|
13081
|
+
const _hoisted_1$j = { id: "lupa-search-results-rating" };
|
|
13082
|
+
const _hoisted_2$g = ["innerHTML"];
|
|
13080
13083
|
const _hoisted_3$a = { class: "lupa-ratings" };
|
|
13081
13084
|
const _hoisted_4$6 = ["href"];
|
|
13082
|
-
const _sfc_main$
|
|
13085
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
13083
13086
|
__name: "SearchResultsProductSingleStarRating",
|
|
13084
13087
|
props: {
|
|
13085
13088
|
item: {},
|
|
@@ -13107,11 +13110,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
13107
13110
|
return RATING_STAR_HTML;
|
|
13108
13111
|
});
|
|
13109
13112
|
return (_ctx, _cache) => {
|
|
13110
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13113
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
13111
13114
|
createBaseVNode("div", {
|
|
13112
13115
|
innerHTML: star.value,
|
|
13113
13116
|
class: "lupa-rating lupa-rating-highlighted"
|
|
13114
|
-
}, null, 8, _hoisted_2$
|
|
13117
|
+
}, null, 8, _hoisted_2$g),
|
|
13115
13118
|
createBaseVNode("div", _hoisted_3$a, toDisplayString(rating.value), 1),
|
|
13116
13119
|
createBaseVNode("a", {
|
|
13117
13120
|
href: ratingLink.value,
|
|
@@ -13123,19 +13126,19 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
13123
13126
|
});
|
|
13124
13127
|
const __default__ = {
|
|
13125
13128
|
components: {
|
|
13126
|
-
SearchResultsProductImage: _sfc_main$
|
|
13127
|
-
SearchResultsProductTitle: _sfc_main$
|
|
13128
|
-
SearchResultsProductDescription: _sfc_main$
|
|
13129
|
-
SearchResultsProductRating: _sfc_main$
|
|
13130
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
13131
|
-
SearchResultsProductPrice: _sfc_main$
|
|
13132
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
13133
|
-
SearchResultsProductCustom: _sfc_main$
|
|
13134
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
13135
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
13136
|
-
}
|
|
13137
|
-
};
|
|
13138
|
-
const _sfc_main$
|
|
13129
|
+
SearchResultsProductImage: _sfc_main$u,
|
|
13130
|
+
SearchResultsProductTitle: _sfc_main$t,
|
|
13131
|
+
SearchResultsProductDescription: _sfc_main$s,
|
|
13132
|
+
SearchResultsProductRating: _sfc_main$r,
|
|
13133
|
+
SearchResultsProductRegularPrice: _sfc_main$q,
|
|
13134
|
+
SearchResultsProductPrice: _sfc_main$p,
|
|
13135
|
+
SearchResultsProductAddToCart: _sfc_main$o,
|
|
13136
|
+
SearchResultsProductCustom: _sfc_main$n,
|
|
13137
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$m,
|
|
13138
|
+
SearchResultsProductSingleStarRating: _sfc_main$l
|
|
13139
|
+
}
|
|
13140
|
+
};
|
|
13141
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
13139
13142
|
__name: "SearchResultsProductCardElement",
|
|
13140
13143
|
props: {
|
|
13141
13144
|
item: {},
|
|
@@ -13205,13 +13208,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
13205
13208
|
};
|
|
13206
13209
|
}
|
|
13207
13210
|
}));
|
|
13208
|
-
const _hoisted_1$
|
|
13209
|
-
const _hoisted_2$
|
|
13211
|
+
const _hoisted_1$i = ["href"];
|
|
13212
|
+
const _hoisted_2$f = {
|
|
13210
13213
|
key: 0,
|
|
13211
13214
|
class: "lupa-out-of-stock"
|
|
13212
13215
|
};
|
|
13213
13216
|
const _hoisted_3$9 = { class: "lupa-search-result-product-details-section" };
|
|
13214
|
-
const _sfc_main$
|
|
13217
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
13215
13218
|
__name: "SearchResultsProductCard",
|
|
13216
13219
|
props: {
|
|
13217
13220
|
product: {},
|
|
@@ -13356,7 +13359,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13356
13359
|
class: normalizeClass(["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]),
|
|
13357
13360
|
onClick: handleClick
|
|
13358
13361
|
}, [
|
|
13359
|
-
createVNode(_sfc_main$
|
|
13362
|
+
createVNode(_sfc_main$v, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
13360
13363
|
createBaseVNode("div", {
|
|
13361
13364
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
13362
13365
|
}, [
|
|
@@ -13366,7 +13369,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13366
13369
|
onClick: handleNavigation
|
|
13367
13370
|
}, [
|
|
13368
13371
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
13369
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13372
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13370
13373
|
class: "lupa-search-results-product-element",
|
|
13371
13374
|
item: _ctx.product,
|
|
13372
13375
|
element,
|
|
@@ -13376,16 +13379,16 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13376
13379
|
link: link.value
|
|
13377
13380
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
13378
13381
|
}), 128)),
|
|
13379
|
-
createVNode(_sfc_main$
|
|
13382
|
+
createVNode(_sfc_main$v, {
|
|
13380
13383
|
options: badgesOptions.value,
|
|
13381
13384
|
position: "image",
|
|
13382
13385
|
class: "lupa-image-badges"
|
|
13383
13386
|
}, null, 8, ["options"]),
|
|
13384
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13385
|
-
], 8, _hoisted_1$
|
|
13387
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$f, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
13388
|
+
], 8, _hoisted_1$i),
|
|
13386
13389
|
createBaseVNode("div", _hoisted_3$9, [
|
|
13387
13390
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
13388
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13391
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13389
13392
|
class: "lupa-search-results-product-element",
|
|
13390
13393
|
item: _ctx.product,
|
|
13391
13394
|
element,
|
|
@@ -13403,7 +13406,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13403
13406
|
class: normalizeClass("lupa-element-group-" + group)
|
|
13404
13407
|
}, [
|
|
13405
13408
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
13406
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13409
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13407
13410
|
class: "lupa-search-results-product-element",
|
|
13408
13411
|
item: _ctx.product,
|
|
13409
13412
|
element,
|
|
@@ -13421,11 +13424,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13421
13424
|
};
|
|
13422
13425
|
}
|
|
13423
13426
|
});
|
|
13424
|
-
const _hoisted_1$
|
|
13427
|
+
const _hoisted_1$h = {
|
|
13425
13428
|
id: "lupa-search-results-similar-queries",
|
|
13426
13429
|
"data-cy": "lupa-search-results-similar-queries"
|
|
13427
13430
|
};
|
|
13428
|
-
const _hoisted_2$
|
|
13431
|
+
const _hoisted_2$e = { class: "lupa-similar-queries-label" };
|
|
13429
13432
|
const _hoisted_3$8 = {
|
|
13430
13433
|
class: "lupa-similar-query-label",
|
|
13431
13434
|
"data-cy": "lupa-similar-query-label"
|
|
@@ -13437,7 +13440,7 @@ const _hoisted_7$1 = {
|
|
|
13437
13440
|
class: "lupa-products",
|
|
13438
13441
|
"data-cy": "lupa-products"
|
|
13439
13442
|
};
|
|
13440
|
-
const _sfc_main$
|
|
13443
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
13441
13444
|
__name: "SearchResultsSimilarQueries",
|
|
13442
13445
|
props: {
|
|
13443
13446
|
labels: {},
|
|
@@ -13467,8 +13470,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
13467
13470
|
paramsStore.goToResults({ searchText, facet });
|
|
13468
13471
|
};
|
|
13469
13472
|
return (_ctx, _cache) => {
|
|
13470
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13471
|
-
createBaseVNode("div", _hoisted_2$
|
|
13473
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
13474
|
+
createBaseVNode("div", _hoisted_2$e, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
13472
13475
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
13473
13476
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
13474
13477
|
createBaseVNode("div", _hoisted_3$8, [
|
|
@@ -13487,7 +13490,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
13487
13490
|
]),
|
|
13488
13491
|
createBaseVNode("div", _hoisted_7$1, [
|
|
13489
13492
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
13490
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13493
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
13491
13494
|
style: normalizeStyle(_ctx.columnSize),
|
|
13492
13495
|
key: getDocumentKey(index2, product),
|
|
13493
13496
|
product,
|
|
@@ -13501,15 +13504,15 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
13501
13504
|
};
|
|
13502
13505
|
}
|
|
13503
13506
|
});
|
|
13504
|
-
const _hoisted_1$
|
|
13507
|
+
const _hoisted_1$g = {
|
|
13505
13508
|
key: 0,
|
|
13506
13509
|
class: "lupa-results-additional-panel"
|
|
13507
13510
|
};
|
|
13508
|
-
const _hoisted_2$
|
|
13511
|
+
const _hoisted_2$d = {
|
|
13509
13512
|
class: "lupa-results-additional-panel-items",
|
|
13510
13513
|
"data-cy": "lupa-results-additional-panel-items"
|
|
13511
13514
|
};
|
|
13512
|
-
const _sfc_main$
|
|
13515
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
13513
13516
|
__name: "AdditionalPanel",
|
|
13514
13517
|
props: {
|
|
13515
13518
|
panel: {},
|
|
@@ -13581,10 +13584,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
13581
13584
|
handleQueryChange();
|
|
13582
13585
|
});
|
|
13583
13586
|
return (_ctx, _cache) => {
|
|
13584
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13585
|
-
createBaseVNode("div", _hoisted_2$
|
|
13587
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
13588
|
+
createBaseVNode("div", _hoisted_2$d, [
|
|
13586
13589
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
13587
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13590
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
13588
13591
|
key: index,
|
|
13589
13592
|
product: item,
|
|
13590
13593
|
options: _ctx.panel,
|
|
@@ -13602,11 +13605,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
13602
13605
|
};
|
|
13603
13606
|
}
|
|
13604
13607
|
});
|
|
13605
|
-
const _hoisted_1$
|
|
13608
|
+
const _hoisted_1$f = {
|
|
13606
13609
|
key: 0,
|
|
13607
13610
|
class: "lupa-results-additional-panels"
|
|
13608
13611
|
};
|
|
13609
|
-
const _sfc_main$
|
|
13612
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
13610
13613
|
__name: "AdditionalPanels",
|
|
13611
13614
|
props: {
|
|
13612
13615
|
options: {},
|
|
@@ -13623,9 +13626,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
13623
13626
|
return locationPanels.value.length > 0;
|
|
13624
13627
|
});
|
|
13625
13628
|
return (_ctx, _cache) => {
|
|
13626
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13629
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
13627
13630
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
13628
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13631
|
+
return openBlock(), createBlock(_sfc_main$h, {
|
|
13629
13632
|
key: panel.queryKey,
|
|
13630
13633
|
panel,
|
|
13631
13634
|
options: _ctx.sdkOptions
|
|
@@ -13642,21 +13645,21 @@ const _export_sfc = (sfc, props) => {
|
|
|
13642
13645
|
}
|
|
13643
13646
|
return target;
|
|
13644
13647
|
};
|
|
13645
|
-
const _sfc_main$
|
|
13646
|
-
const _hoisted_1$
|
|
13647
|
-
const _hoisted_2$
|
|
13648
|
+
const _sfc_main$f = {};
|
|
13649
|
+
const _hoisted_1$e = { class: "lupa-spinner-wrapper" };
|
|
13650
|
+
const _hoisted_2$c = { class: "lupa-spinner" };
|
|
13648
13651
|
function _sfc_render(_ctx, _cache) {
|
|
13649
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13650
|
-
createBaseVNode("div", _hoisted_2$
|
|
13652
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
13653
|
+
createBaseVNode("div", _hoisted_2$c, [
|
|
13651
13654
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
|
|
13652
13655
|
return createBaseVNode("div", { key: x });
|
|
13653
13656
|
}), 64))
|
|
13654
13657
|
])
|
|
13655
13658
|
]);
|
|
13656
13659
|
}
|
|
13657
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13658
|
-
const _hoisted_1$
|
|
13659
|
-
const _hoisted_2$
|
|
13660
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render]]);
|
|
13661
|
+
const _hoisted_1$d = { id: "lupa-search-results-products" };
|
|
13662
|
+
const _hoisted_2$b = {
|
|
13660
13663
|
class: "lupa-products",
|
|
13661
13664
|
"data-cy": "lupa-products"
|
|
13662
13665
|
};
|
|
@@ -13671,7 +13674,7 @@ const _hoisted_4$4 = {
|
|
|
13671
13674
|
"data-cy": "lupa-no-results"
|
|
13672
13675
|
};
|
|
13673
13676
|
const _hoisted_5$3 = { key: 4 };
|
|
13674
|
-
const _sfc_main$
|
|
13677
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
13675
13678
|
__name: "SearchResultsProducts",
|
|
13676
13679
|
props: {
|
|
13677
13680
|
options: {},
|
|
@@ -13762,23 +13765,23 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13762
13765
|
};
|
|
13763
13766
|
return (_ctx, _cache) => {
|
|
13764
13767
|
var _a;
|
|
13765
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13768
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
13766
13769
|
unref(loading) && !unref(isMobileSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
13767
13770
|
key: 0,
|
|
13768
13771
|
class: "lupa-loader"
|
|
13769
13772
|
})) : createCommentVNode("", true),
|
|
13770
13773
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
13771
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13774
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
|
|
13772
13775
|
key: 0,
|
|
13773
13776
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
13774
13777
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13775
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13778
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$B, {
|
|
13776
13779
|
key: 1,
|
|
13777
13780
|
class: "lupa-toolbar-mobile",
|
|
13778
13781
|
options: _ctx.options,
|
|
13779
13782
|
"pagination-location": "top"
|
|
13780
13783
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13781
|
-
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
13784
|
+
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$U, {
|
|
13782
13785
|
key: 2,
|
|
13783
13786
|
class: normalizeClass(currentFiltersClass.value),
|
|
13784
13787
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -13786,18 +13789,18 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13786
13789
|
expandable: !desktopFiltersExpanded.value
|
|
13787
13790
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
13788
13791
|
], 64)) : createCommentVNode("", true),
|
|
13789
|
-
createVNode(_sfc_main$
|
|
13792
|
+
createVNode(_sfc_main$g, {
|
|
13790
13793
|
options: _ctx.options,
|
|
13791
13794
|
location: "top",
|
|
13792
13795
|
sdkOptions: _ctx.options.options
|
|
13793
13796
|
}, null, 8, ["options", "sdkOptions"]),
|
|
13794
13797
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
13795
|
-
createVNode(_sfc_main$
|
|
13798
|
+
createVNode(_sfc_main$B, {
|
|
13796
13799
|
class: "lupa-toolbar-top",
|
|
13797
13800
|
options: _ctx.options,
|
|
13798
13801
|
"pagination-location": "top"
|
|
13799
13802
|
}, null, 8, ["options"]),
|
|
13800
|
-
createBaseVNode("div", _hoisted_2$
|
|
13803
|
+
createBaseVNode("div", _hoisted_2$b, [
|
|
13801
13804
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
|
|
13802
13805
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
13803
13806
|
style: normalizeStyle(columnSize.value),
|
|
@@ -13806,7 +13809,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13806
13809
|
options: productCardOptions.value
|
|
13807
13810
|
});
|
|
13808
13811
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
13809
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13812
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
13810
13813
|
style: normalizeStyle(columnSize.value),
|
|
13811
13814
|
key: getProductKeyAction(index, product),
|
|
13812
13815
|
product,
|
|
@@ -13822,12 +13825,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13822
13825
|
onClick: goToFirstPage
|
|
13823
13826
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
13824
13827
|
])) : createCommentVNode("", true),
|
|
13825
|
-
createVNode(_sfc_main$
|
|
13828
|
+
createVNode(_sfc_main$B, {
|
|
13826
13829
|
class: "lupa-toolbar-bottom",
|
|
13827
13830
|
options: _ctx.options,
|
|
13828
13831
|
"pagination-location": "bottom"
|
|
13829
13832
|
}, null, 8, ["options"]),
|
|
13830
|
-
createVNode(_sfc_main$
|
|
13833
|
+
createVNode(_sfc_main$g, {
|
|
13831
13834
|
options: _ctx.options,
|
|
13832
13835
|
location: "bottom",
|
|
13833
13836
|
sdkOptions: _ctx.options.options
|
|
@@ -13837,7 +13840,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13837
13840
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
13838
13841
|
])) : createCommentVNode("", true),
|
|
13839
13842
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
13840
|
-
createVNode(_sfc_main$
|
|
13843
|
+
createVNode(_sfc_main$i, {
|
|
13841
13844
|
labels: similarQueriesLabels.value,
|
|
13842
13845
|
columnSize: columnSize.value,
|
|
13843
13846
|
productCardOptions: productCardOptions.value
|
|
@@ -13848,13 +13851,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13848
13851
|
};
|
|
13849
13852
|
}
|
|
13850
13853
|
});
|
|
13851
|
-
const _hoisted_1$
|
|
13852
|
-
const _hoisted_2$
|
|
13854
|
+
const _hoisted_1$c = { class: "lupa-top-mobile-filter-wrapper" };
|
|
13855
|
+
const _hoisted_2$a = {
|
|
13853
13856
|
key: 0,
|
|
13854
13857
|
class: "lupa-category-back"
|
|
13855
13858
|
};
|
|
13856
13859
|
const _hoisted_3$6 = ["href"];
|
|
13857
|
-
const _sfc_main$
|
|
13860
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
13858
13861
|
__name: "CategoryTopFilters",
|
|
13859
13862
|
props: {
|
|
13860
13863
|
options: {}
|
|
@@ -13886,15 +13889,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
13886
13889
|
return openBlock(), createElementBlock("div", {
|
|
13887
13890
|
class: normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
|
|
13888
13891
|
}, [
|
|
13889
|
-
createBaseVNode("div", _hoisted_1$
|
|
13890
|
-
hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13892
|
+
createBaseVNode("div", _hoisted_1$c, [
|
|
13893
|
+
hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
13891
13894
|
createBaseVNode("a", {
|
|
13892
13895
|
"data-cy": "lupa-category-back",
|
|
13893
13896
|
href: backUrlLink.value,
|
|
13894
13897
|
onClick: handleNavigationBack
|
|
13895
13898
|
}, toDisplayString(backTitle.value), 9, _hoisted_3$6)
|
|
13896
13899
|
])) : createCommentVNode("", true),
|
|
13897
|
-
createVNode(_sfc_main$
|
|
13900
|
+
createVNode(_sfc_main$B, {
|
|
13898
13901
|
class: "lupa-toolbar-mobile",
|
|
13899
13902
|
"pagination-location": "top",
|
|
13900
13903
|
options: _ctx.options
|
|
@@ -13904,18 +13907,18 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
13904
13907
|
};
|
|
13905
13908
|
}
|
|
13906
13909
|
});
|
|
13907
|
-
const _hoisted_1$
|
|
13910
|
+
const _hoisted_1$b = {
|
|
13908
13911
|
key: 0,
|
|
13909
13912
|
class: "lupa-container-title-summary-mobile"
|
|
13910
13913
|
};
|
|
13911
|
-
const _hoisted_2$
|
|
13914
|
+
const _hoisted_2$9 = {
|
|
13912
13915
|
key: 4,
|
|
13913
13916
|
id: "lupa-search-results",
|
|
13914
13917
|
class: "top-layout-wrapper"
|
|
13915
13918
|
};
|
|
13916
13919
|
const _hoisted_3$5 = { class: "search-content" };
|
|
13917
13920
|
const _hoisted_4$3 = { id: "lupa-search-results" };
|
|
13918
|
-
const _sfc_main$
|
|
13921
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
13919
13922
|
__name: "SearchResults",
|
|
13920
13923
|
props: {
|
|
13921
13924
|
options: {},
|
|
@@ -13988,7 +13991,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
13988
13991
|
const hasResults2 = Boolean(
|
|
13989
13992
|
results.total > 0 || ((_a = results.similarQueries) == null ? void 0 : _a.length) || ((_b = results.didYouMean) == null ? void 0 : _b.options)
|
|
13990
13993
|
);
|
|
13991
|
-
(_d = (_c = props.options.callbacks) == null ? void 0 : _c.onSearchResults) == null ? void 0 : _d.call(_c, { queryKey, hasResults: hasResults2 });
|
|
13994
|
+
(_d = (_c = props.options.callbacks) == null ? void 0 : _c.onSearchResults) == null ? void 0 : _d.call(_c, { queryKey, hasResults: hasResults2, params: paramStore.params });
|
|
13992
13995
|
if (!hasResults2) {
|
|
13993
13996
|
return;
|
|
13994
13997
|
}
|
|
@@ -14104,40 +14107,40 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
14104
14107
|
return openBlock(), createElementBlock("div", {
|
|
14105
14108
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
14106
14109
|
}, [
|
|
14107
|
-
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14108
|
-
createVNode(_sfc_main$
|
|
14109
|
-
createVNode(_sfc_main$
|
|
14110
|
+
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
14111
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14112
|
+
createVNode(_sfc_main$W, {
|
|
14110
14113
|
"show-summary": true,
|
|
14111
14114
|
options: _ctx.options,
|
|
14112
14115
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
14113
14116
|
}, null, 8, ["options", "is-product-list"])
|
|
14114
14117
|
])) : createCommentVNode("", true),
|
|
14115
|
-
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$
|
|
14118
|
+
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$d, {
|
|
14116
14119
|
key: 1,
|
|
14117
14120
|
options: _ctx.options
|
|
14118
14121
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14119
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
14122
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$J, {
|
|
14120
14123
|
key: 2,
|
|
14121
14124
|
options: _ctx.options.filters
|
|
14122
14125
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14123
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
14126
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$I, {
|
|
14124
14127
|
key: 3,
|
|
14125
14128
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
14126
14129
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
14127
|
-
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
14128
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14130
|
+
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
14131
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
14129
14132
|
key: 0,
|
|
14130
14133
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
14131
14134
|
ref_key: "searchResultsFilters",
|
|
14132
14135
|
ref: searchResultsFilters
|
|
14133
14136
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14134
14137
|
createBaseVNode("div", _hoisted_3$5, [
|
|
14135
|
-
createVNode(_sfc_main$
|
|
14136
|
-
createVNode(_sfc_main$
|
|
14138
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14139
|
+
createVNode(_sfc_main$W, {
|
|
14137
14140
|
options: _ctx.options,
|
|
14138
14141
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
14139
14142
|
}, null, 8, ["options", "is-product-list"]),
|
|
14140
|
-
createVNode(_sfc_main$
|
|
14143
|
+
createVNode(_sfc_main$e, {
|
|
14141
14144
|
options: _ctx.options,
|
|
14142
14145
|
ssr: ssrEnabled.value
|
|
14143
14146
|
}, {
|
|
@@ -14148,19 +14151,19 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
14148
14151
|
}, 8, ["options", "ssr"])
|
|
14149
14152
|
])
|
|
14150
14153
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
14151
|
-
createVNode(_sfc_main$
|
|
14152
|
-
createVNode(_sfc_main$
|
|
14154
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14155
|
+
createVNode(_sfc_main$W, {
|
|
14153
14156
|
options: _ctx.options,
|
|
14154
14157
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
14155
14158
|
}, null, 8, ["options", "is-product-list"]),
|
|
14156
14159
|
createBaseVNode("div", _hoisted_4$3, [
|
|
14157
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14160
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
14158
14161
|
key: 0,
|
|
14159
14162
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
14160
14163
|
ref_key: "searchResultsFilters",
|
|
14161
14164
|
ref: searchResultsFilters
|
|
14162
14165
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14163
|
-
createVNode(_sfc_main$
|
|
14166
|
+
createVNode(_sfc_main$e, {
|
|
14164
14167
|
options: _ctx.options,
|
|
14165
14168
|
ssr: ssrEnabled.value
|
|
14166
14169
|
}, createSlots({
|
|
@@ -14183,12 +14186,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
14183
14186
|
};
|
|
14184
14187
|
}
|
|
14185
14188
|
});
|
|
14186
|
-
const _hoisted_1$
|
|
14189
|
+
const _hoisted_1$a = {
|
|
14187
14190
|
key: 0,
|
|
14188
14191
|
class: "lupa-category-overview"
|
|
14189
14192
|
};
|
|
14190
|
-
const _hoisted_2$
|
|
14191
|
-
const _sfc_main$
|
|
14193
|
+
const _hoisted_2$8 = ["innerHTML"];
|
|
14194
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
14192
14195
|
__name: "CategoryDescription",
|
|
14193
14196
|
props: {
|
|
14194
14197
|
options: {}
|
|
@@ -14204,16 +14207,16 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
14204
14207
|
return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
|
|
14205
14208
|
});
|
|
14206
14209
|
return (_ctx, _cache) => {
|
|
14207
|
-
return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14210
|
+
return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
14208
14211
|
createBaseVNode("div", {
|
|
14209
14212
|
class: "lupa-category-description",
|
|
14210
14213
|
innerHTML: description.value
|
|
14211
|
-
}, null, 8, _hoisted_2$
|
|
14214
|
+
}, null, 8, _hoisted_2$8)
|
|
14212
14215
|
])) : createCommentVNode("", true);
|
|
14213
14216
|
};
|
|
14214
14217
|
}
|
|
14215
14218
|
});
|
|
14216
|
-
const _sfc_main$
|
|
14219
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
14217
14220
|
__name: "ProductList",
|
|
14218
14221
|
props: {
|
|
14219
14222
|
options: {}
|
|
@@ -14235,7 +14238,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
14235
14238
|
__expose({ fetch: fetch2 });
|
|
14236
14239
|
return (_ctx, _cache) => {
|
|
14237
14240
|
return openBlock(), createElementBlock("div", null, [
|
|
14238
|
-
createVNode(_sfc_main$
|
|
14241
|
+
createVNode(_sfc_main$c, {
|
|
14239
14242
|
options: componentOptions.value,
|
|
14240
14243
|
"initial-filters": _ctx.options.initialFilters,
|
|
14241
14244
|
"is-product-list": true,
|
|
@@ -14243,7 +14246,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
14243
14246
|
ref: searchResults2
|
|
14244
14247
|
}, {
|
|
14245
14248
|
default: withCtx(() => [
|
|
14246
|
-
createVNode(_sfc_main$
|
|
14249
|
+
createVNode(_sfc_main$b, { options: _ctx.options }, null, 8, ["options"])
|
|
14247
14250
|
]),
|
|
14248
14251
|
_: 1
|
|
14249
14252
|
}, 8, ["options", "initial-filters"])
|
|
@@ -19734,9 +19737,9 @@ lodash$1.exports;
|
|
|
19734
19737
|
}).call(commonjsGlobal$1);
|
|
19735
19738
|
})(lodash$1, lodash$1.exports);
|
|
19736
19739
|
var lodashExports$1 = lodash$1.exports;
|
|
19737
|
-
const _hoisted_1$
|
|
19738
|
-
const _hoisted_2$
|
|
19739
|
-
const _sfc_main$
|
|
19740
|
+
const _hoisted_1$9 = ["onClick"];
|
|
19741
|
+
const _hoisted_2$7 = { class: "lupa-search-box-container" };
|
|
19742
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
19740
19743
|
__name: "SearchContainer",
|
|
19741
19744
|
props: {
|
|
19742
19745
|
options: {}
|
|
@@ -19781,8 +19784,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
19781
19784
|
class: "lupa-search-container",
|
|
19782
19785
|
onClick: withModifiers(innerClick, ["stop"])
|
|
19783
19786
|
}, [
|
|
19784
|
-
createBaseVNode("div", _hoisted_2$
|
|
19785
|
-
createVNode(_sfc_main$
|
|
19787
|
+
createBaseVNode("div", _hoisted_2$7, [
|
|
19788
|
+
createVNode(_sfc_main$Z, {
|
|
19786
19789
|
options: fullSearchBoxOptions.value,
|
|
19787
19790
|
"is-search-container": true,
|
|
19788
19791
|
ref_key: "searchBox",
|
|
@@ -19790,13 +19793,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
19790
19793
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
19791
19794
|
}, null, 8, ["options"])
|
|
19792
19795
|
]),
|
|
19793
|
-
createVNode(_sfc_main$
|
|
19796
|
+
createVNode(_sfc_main$c, {
|
|
19794
19797
|
options: fullSearchResultsOptions.value,
|
|
19795
19798
|
"is-container": true,
|
|
19796
19799
|
ref_key: "searchResults",
|
|
19797
19800
|
ref: searchResults2
|
|
19798
19801
|
}, null, 8, ["options"])
|
|
19799
|
-
], 8, _hoisted_1$
|
|
19802
|
+
], 8, _hoisted_1$9)
|
|
19800
19803
|
]);
|
|
19801
19804
|
};
|
|
19802
19805
|
}
|
|
@@ -20499,13 +20502,13 @@ var Slide = defineComponent({
|
|
|
20499
20502
|
};
|
|
20500
20503
|
}
|
|
20501
20504
|
});
|
|
20502
|
-
const _hoisted_1$
|
|
20503
|
-
const _hoisted_2$
|
|
20505
|
+
const _hoisted_1$8 = { class: "lupa-search-product-recommendations-wrapper" };
|
|
20506
|
+
const _hoisted_2$6 = {
|
|
20504
20507
|
key: 0,
|
|
20505
20508
|
class: "lupa-recommended-products",
|
|
20506
20509
|
"data-cy": "lupa-recommended-products"
|
|
20507
20510
|
};
|
|
20508
|
-
const _sfc_main$
|
|
20511
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
20509
20512
|
__name: "Recommendations",
|
|
20510
20513
|
props: {
|
|
20511
20514
|
options: {}
|
|
@@ -20591,8 +20594,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
20591
20594
|
});
|
|
20592
20595
|
__expose({ fetch: fetch2 });
|
|
20593
20596
|
return (_ctx, _cache) => {
|
|
20594
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20595
|
-
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
20597
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
20598
|
+
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
|
|
20596
20599
|
createVNode(unref(Carousel), mergeProps(carouselOptions.value, { "wrap-around": true }), {
|
|
20597
20600
|
addons: withCtx(() => [
|
|
20598
20601
|
createVNode(unref(Navigation))
|
|
@@ -20603,7 +20606,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
20603
20606
|
key: getProductKeyAction(index, product)
|
|
20604
20607
|
}, {
|
|
20605
20608
|
default: withCtx(() => [
|
|
20606
|
-
createVNode(_sfc_main$
|
|
20609
|
+
createVNode(_sfc_main$j, {
|
|
20607
20610
|
product,
|
|
20608
20611
|
options: _ctx.options,
|
|
20609
20612
|
"click-tracking-settings": clickTrackingSettings.value
|
|
@@ -20620,19 +20623,19 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
20620
20623
|
};
|
|
20621
20624
|
}
|
|
20622
20625
|
});
|
|
20623
|
-
const _hoisted_1$
|
|
20624
|
-
const _hoisted_2$
|
|
20626
|
+
const _hoisted_1$7 = { class: "lupa-chat-spinner" };
|
|
20627
|
+
const _hoisted_2$5 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
20625
20628
|
const _hoisted_3$4 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
20626
20629
|
const _hoisted_4$2 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
20627
20630
|
const _hoisted_5$2 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
20628
20631
|
const _hoisted_6$1 = [
|
|
20629
|
-
_hoisted_2$
|
|
20632
|
+
_hoisted_2$5,
|
|
20630
20633
|
_hoisted_3$4,
|
|
20631
20634
|
_hoisted_4$2,
|
|
20632
20635
|
_hoisted_5$2
|
|
20633
20636
|
];
|
|
20634
20637
|
const _hoisted_7 = { class: "lupa-chat-spinner-message" };
|
|
20635
|
-
const _sfc_main$
|
|
20638
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
20636
20639
|
__name: "ChatSpinner",
|
|
20637
20640
|
props: {
|
|
20638
20641
|
small: { type: Boolean },
|
|
@@ -20640,7 +20643,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
20640
20643
|
},
|
|
20641
20644
|
setup(__props) {
|
|
20642
20645
|
return (_ctx, _cache) => {
|
|
20643
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
20646
|
+
return openBlock(), createElementBlock("section", _hoisted_1$7, [
|
|
20644
20647
|
createBaseVNode("div", {
|
|
20645
20648
|
class: normalizeClass([{ small: _ctx.small }, "lds-ring"])
|
|
20646
20649
|
}, _hoisted_6$1, 2),
|
|
@@ -20649,13 +20652,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
20649
20652
|
};
|
|
20650
20653
|
}
|
|
20651
20654
|
});
|
|
20652
|
-
const _hoisted_1$
|
|
20653
|
-
const _hoisted_2$
|
|
20655
|
+
const _hoisted_1$6 = { class: "lupa-chat-input-container" };
|
|
20656
|
+
const _hoisted_2$4 = { id: "lupa-search-box-input" };
|
|
20654
20657
|
const _hoisted_3$3 = {
|
|
20655
20658
|
key: 0,
|
|
20656
20659
|
class: "lupa-chat-form-submit"
|
|
20657
20660
|
};
|
|
20658
|
-
const _sfc_main$
|
|
20661
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
20659
20662
|
__name: "ChatInput",
|
|
20660
20663
|
props: {
|
|
20661
20664
|
disabled: { type: Boolean }
|
|
@@ -20668,13 +20671,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
20668
20671
|
inputValue.value = "";
|
|
20669
20672
|
};
|
|
20670
20673
|
return (_ctx, _cache) => {
|
|
20671
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20674
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
20672
20675
|
createBaseVNode("form", {
|
|
20673
20676
|
action: "javascript:void(0);",
|
|
20674
20677
|
class: "chat-input-form",
|
|
20675
20678
|
onSubmit: submit
|
|
20676
20679
|
}, [
|
|
20677
|
-
createBaseVNode("div", _hoisted_2$
|
|
20680
|
+
createBaseVNode("div", _hoisted_2$4, [
|
|
20678
20681
|
withDirectives(createBaseVNode("input", {
|
|
20679
20682
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
|
|
20680
20683
|
ref: "mainInput",
|
|
@@ -20687,7 +20690,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
20687
20690
|
[vModelText, inputValue.value]
|
|
20688
20691
|
])
|
|
20689
20692
|
]),
|
|
20690
|
-
!_ctx.disabled ? (openBlock(), createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (openBlock(), createBlock(_sfc_main$
|
|
20693
|
+
!_ctx.disabled ? (openBlock(), createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (openBlock(), createBlock(_sfc_main$7, {
|
|
20691
20694
|
key: 1,
|
|
20692
20695
|
small: true
|
|
20693
20696
|
}))
|
|
@@ -20816,15 +20819,36 @@ const prepareChatHistory = (chatLog) => {
|
|
|
20816
20819
|
}
|
|
20817
20820
|
return history;
|
|
20818
20821
|
};
|
|
20822
|
+
const getTextResponseChunkStream = (options, { initialQuery, messageHistory }, onChunkReceived) => {
|
|
20823
|
+
var _a;
|
|
20824
|
+
fetch(`${getApiUrl(options.environment, options.customBaseUrl)}chat/text`, __spreadProps2(__spreadValues2({}, defaultConfig), {
|
|
20825
|
+
body: JSON.stringify({ initialQuery, messageHistory }),
|
|
20826
|
+
headers: __spreadValues2(__spreadValues2({}, headers), (_a = options.customHeaders) != null ? _a : {})
|
|
20827
|
+
})).then((response) => {
|
|
20828
|
+
const reader = response.body.getReader();
|
|
20829
|
+
return reader.read().then(function processStream({ done, value }) {
|
|
20830
|
+
if (done) {
|
|
20831
|
+
return "";
|
|
20832
|
+
}
|
|
20833
|
+
const result = new TextDecoder("utf-8").decode(value);
|
|
20834
|
+
const sanitezedResult = result.replace("\n", '<div class="br"></div>');
|
|
20835
|
+
onChunkReceived(sanitezedResult);
|
|
20836
|
+
return reader.read().then(processStream);
|
|
20837
|
+
});
|
|
20838
|
+
}).catch((error) => {
|
|
20839
|
+
console.error(`Fetch Error: ${error}`);
|
|
20840
|
+
});
|
|
20841
|
+
};
|
|
20819
20842
|
const ChatService = {
|
|
20820
20843
|
suggestSearchChatPhrases,
|
|
20821
20844
|
suggestPhraseAlternatives,
|
|
20822
20845
|
suggestSimplifiedPhrases,
|
|
20823
20846
|
suggestBestProductMatches,
|
|
20824
|
-
prepareChatHistory
|
|
20847
|
+
prepareChatHistory,
|
|
20848
|
+
getTextResponseChunkStream
|
|
20825
20849
|
};
|
|
20826
|
-
const _hoisted_1$
|
|
20827
|
-
const _sfc_main$
|
|
20850
|
+
const _hoisted_1$5 = { class: "lupa-chat-results" };
|
|
20851
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
20828
20852
|
__name: "ChatPhraseProductsList",
|
|
20829
20853
|
props: {
|
|
20830
20854
|
options: {},
|
|
@@ -20836,9 +20860,9 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
20836
20860
|
return getProductKey(`${index}`, product, props.options.idKey);
|
|
20837
20861
|
};
|
|
20838
20862
|
return (_ctx, _cache) => {
|
|
20839
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
20863
|
+
return openBlock(), createElementBlock("section", _hoisted_1$5, [
|
|
20840
20864
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
20841
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20865
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
20842
20866
|
class: "lupa-chat-product-card",
|
|
20843
20867
|
key: getProductKeyAction(index, product),
|
|
20844
20868
|
product,
|
|
@@ -20849,8 +20873,8 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
20849
20873
|
};
|
|
20850
20874
|
}
|
|
20851
20875
|
});
|
|
20852
|
-
const _hoisted_1$
|
|
20853
|
-
const _hoisted_2$
|
|
20876
|
+
const _hoisted_1$4 = { class: "lupa-chat-content-entry-phrase" };
|
|
20877
|
+
const _hoisted_2$3 = { class: "lupa-chat-phrase-title" };
|
|
20854
20878
|
const _hoisted_3$2 = {
|
|
20855
20879
|
key: 0,
|
|
20856
20880
|
class: "alert"
|
|
@@ -20863,7 +20887,7 @@ const _hoisted_5$1 = /* @__PURE__ */ createBaseVNode("p", null, "We found no mat
|
|
|
20863
20887
|
const _hoisted_6 = [
|
|
20864
20888
|
_hoisted_5$1
|
|
20865
20889
|
];
|
|
20866
|
-
const _sfc_main$
|
|
20890
|
+
const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
20867
20891
|
__name: "ChatContentEntryPhrase",
|
|
20868
20892
|
props: {
|
|
20869
20893
|
options: {},
|
|
@@ -20943,20 +20967,20 @@ const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
|
|
|
20943
20967
|
return phrases != null ? phrases : [];
|
|
20944
20968
|
});
|
|
20945
20969
|
return (_ctx, _cache) => {
|
|
20946
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20947
|
-
createBaseVNode("div", _hoisted_2$
|
|
20970
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
20971
|
+
createBaseVNode("div", _hoisted_2$3, [
|
|
20948
20972
|
createBaseVNode("h3", null, toDisplayString(displayPhrase.value), 1),
|
|
20949
20973
|
createBaseVNode("sub", null, toDisplayString(usedAlternativePhrases.value.join(", ")), 1),
|
|
20950
20974
|
usedPartialResults.value ? (openBlock(), createElementBlock("sub", _hoisted_3$2, "Including partial matches - which might not be what you are looking for")) : createCommentVNode("", true)
|
|
20951
20975
|
]),
|
|
20952
20976
|
createBaseVNode("div", null, [
|
|
20953
|
-
createVNode(_sfc_main$
|
|
20977
|
+
createVNode(_sfc_main$5, {
|
|
20954
20978
|
"search-results": searchResults2.value,
|
|
20955
20979
|
options: _ctx.options.displayOptions
|
|
20956
20980
|
}, null, 8, ["search-results", "options"])
|
|
20957
20981
|
]),
|
|
20958
20982
|
!loading.value && !searchResults2.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$1, _hoisted_6)) : createCommentVNode("", true),
|
|
20959
|
-
loading.value ? (openBlock(), createBlock(_sfc_main$
|
|
20983
|
+
loading.value ? (openBlock(), createBlock(_sfc_main$7, {
|
|
20960
20984
|
key: 1,
|
|
20961
20985
|
message: currentAction.value
|
|
20962
20986
|
}, null, 8, ["message"])) : createCommentVNode("", true)
|
|
@@ -20964,10 +20988,10 @@ const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
|
|
|
20964
20988
|
};
|
|
20965
20989
|
}
|
|
20966
20990
|
});
|
|
20967
|
-
const _hoisted_1$
|
|
20968
|
-
const _hoisted_2$
|
|
20991
|
+
const _hoisted_1$3 = { class: "lupa-chat-best-matches lupa-chat-content-entry" };
|
|
20992
|
+
const _hoisted_2$2 = /* @__PURE__ */ createBaseVNode("h3", null, "Best matches", -1);
|
|
20969
20993
|
const _hoisted_3$1 = { key: 0 };
|
|
20970
|
-
const _sfc_main$
|
|
20994
|
+
const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
|
|
20971
20995
|
__name: "ChatContentEntry",
|
|
20972
20996
|
props: {
|
|
20973
20997
|
entry: {},
|
|
@@ -21032,7 +21056,7 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
|
21032
21056
|
key: phrase,
|
|
21033
21057
|
class: "lupa-chat-content-entry"
|
|
21034
21058
|
}, [
|
|
21035
|
-
phrase ? (openBlock(), createBlock(_sfc_main$
|
|
21059
|
+
phrase ? (openBlock(), createBlock(_sfc_main$4$1, {
|
|
21036
21060
|
key: 0,
|
|
21037
21061
|
phrase,
|
|
21038
21062
|
options: _ctx.options,
|
|
@@ -21041,14 +21065,14 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
|
21041
21065
|
]);
|
|
21042
21066
|
}), 128))
|
|
21043
21067
|
]),
|
|
21044
|
-
createBaseVNode("section", _hoisted_1$
|
|
21045
|
-
_hoisted_2$
|
|
21068
|
+
createBaseVNode("section", _hoisted_1$3, [
|
|
21069
|
+
_hoisted_2$2,
|
|
21046
21070
|
explanation.value ? (openBlock(), createElementBlock("p", _hoisted_3$1, toDisplayString(explanation.value), 1)) : createCommentVNode("", true),
|
|
21047
|
-
loading.value ? (openBlock(), createBlock(_sfc_main$
|
|
21071
|
+
loading.value ? (openBlock(), createBlock(_sfc_main$7, {
|
|
21048
21072
|
key: 1,
|
|
21049
21073
|
message: "Selecting the best matches for you. This might take a few seconds."
|
|
21050
21074
|
})) : createCommentVNode("", true),
|
|
21051
|
-
bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$
|
|
21075
|
+
bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$5, {
|
|
21052
21076
|
key: 2,
|
|
21053
21077
|
"search-results": bestMatchProducts.value,
|
|
21054
21078
|
options: _ctx.options.displayOptions
|
|
@@ -21058,6 +21082,39 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
|
21058
21082
|
};
|
|
21059
21083
|
}
|
|
21060
21084
|
});
|
|
21085
|
+
const _hoisted_1$2 = { class: "lupa-chat-text-response" };
|
|
21086
|
+
const _hoisted_2$1 = ["innerHTML"];
|
|
21087
|
+
const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
21088
|
+
__name: "ChatTextEntry",
|
|
21089
|
+
props: {
|
|
21090
|
+
content: {},
|
|
21091
|
+
options: {},
|
|
21092
|
+
history: {}
|
|
21093
|
+
},
|
|
21094
|
+
setup(__props) {
|
|
21095
|
+
const props = __props;
|
|
21096
|
+
const content = ref("");
|
|
21097
|
+
const processChunk = (chunk) => {
|
|
21098
|
+
content.value += chunk;
|
|
21099
|
+
};
|
|
21100
|
+
onMounted(() => {
|
|
21101
|
+
var _a;
|
|
21102
|
+
ChatService.getTextResponseChunkStream(
|
|
21103
|
+
props.options.sdkOptions,
|
|
21104
|
+
{
|
|
21105
|
+
initialQuery: props.content,
|
|
21106
|
+
messageHistory: (_a = props.history) != null ? _a : []
|
|
21107
|
+
},
|
|
21108
|
+
processChunk
|
|
21109
|
+
);
|
|
21110
|
+
});
|
|
21111
|
+
return (_ctx, _cache) => {
|
|
21112
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
21113
|
+
createBaseVNode("p", { innerHTML: content.value }, null, 8, _hoisted_2$1)
|
|
21114
|
+
]);
|
|
21115
|
+
};
|
|
21116
|
+
}
|
|
21117
|
+
});
|
|
21061
21118
|
const _hoisted_1$1 = { class: "lupa-chat-section-title" };
|
|
21062
21119
|
const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
21063
21120
|
__name: "ChatContentList",
|
|
@@ -21075,16 +21132,23 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
|
21075
21132
|
return openBlock(), createElementBlock("div", null, [
|
|
21076
21133
|
createBaseVNode("ul", null, [
|
|
21077
21134
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.content, (entry) => {
|
|
21135
|
+
var _a;
|
|
21078
21136
|
return openBlock(), createElementBlock("li", {
|
|
21079
21137
|
key: entry.key
|
|
21080
21138
|
}, [
|
|
21081
21139
|
createBaseVNode("h4", _hoisted_1$1, toDisplayString(entry.userInput), 1),
|
|
21082
21140
|
createVNode(_sfc_main$2$1, {
|
|
21141
|
+
content: entry.userInput,
|
|
21142
|
+
history: _ctx.history,
|
|
21143
|
+
options: _ctx.options
|
|
21144
|
+
}, null, 8, ["content", "history", "options"]),
|
|
21145
|
+
((_a = entry.suggestedPhrases) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_sfc_main$3$1, {
|
|
21146
|
+
key: 0,
|
|
21083
21147
|
entry,
|
|
21084
21148
|
options: _ctx.options,
|
|
21085
21149
|
history: _ctx.history,
|
|
21086
21150
|
onLoaded: (items) => bestItemsLoaded(items, entry.key)
|
|
21087
|
-
}, null, 8, ["entry", "options", "history", "onLoaded"])
|
|
21151
|
+
}, null, 8, ["entry", "options", "history", "onLoaded"])) : createCommentVNode("", true)
|
|
21088
21152
|
]);
|
|
21089
21153
|
}), 128))
|
|
21090
21154
|
])
|
|
@@ -21105,7 +21169,7 @@ const _hoisted_4 = {
|
|
|
21105
21169
|
class: "lupa-chat-spinner-main"
|
|
21106
21170
|
};
|
|
21107
21171
|
const _hoisted_5 = { class: "lupasearch-chat-input" };
|
|
21108
|
-
const _sfc_main$
|
|
21172
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
21109
21173
|
__name: "ChatContainer",
|
|
21110
21174
|
props: {
|
|
21111
21175
|
options: {}
|
|
@@ -21123,6 +21187,14 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
21123
21187
|
}
|
|
21124
21188
|
try {
|
|
21125
21189
|
loading.value = true;
|
|
21190
|
+
const key = Date.now().toString();
|
|
21191
|
+
let chatLog = {
|
|
21192
|
+
key,
|
|
21193
|
+
userInput: input,
|
|
21194
|
+
allPhrases: [],
|
|
21195
|
+
suggestedPhrases: []
|
|
21196
|
+
};
|
|
21197
|
+
chatContent.value.push(chatLog);
|
|
21126
21198
|
const request = {
|
|
21127
21199
|
userPrompt: input,
|
|
21128
21200
|
messageHistory: (_a = history.value) != null ? _a : [],
|
|
@@ -21137,13 +21209,12 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
21137
21209
|
return;
|
|
21138
21210
|
}
|
|
21139
21211
|
const validPhrases = phrases.filter((p2) => (p2 == null ? void 0 : p2.trim().length) > 0);
|
|
21140
|
-
|
|
21141
|
-
|
|
21142
|
-
|
|
21143
|
-
|
|
21144
|
-
|
|
21145
|
-
|
|
21146
|
-
chatContent.value.push(chatLog);
|
|
21212
|
+
chatContent.value = chatContent.value.map(
|
|
21213
|
+
(c2) => c2.key === key ? __spreadProps2(__spreadValues2({}, c2), {
|
|
21214
|
+
allPhrases: [...validPhrases],
|
|
21215
|
+
suggestedPhrases: phrases
|
|
21216
|
+
}) : c2
|
|
21217
|
+
);
|
|
21147
21218
|
} finally {
|
|
21148
21219
|
loading.value = false;
|
|
21149
21220
|
}
|
|
@@ -21164,10 +21235,10 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
21164
21235
|
}, null, 8, ["content", "options", "history"])
|
|
21165
21236
|
])) : createCommentVNode("", true),
|
|
21166
21237
|
loading.value ? (openBlock(), createElementBlock("section", _hoisted_4, [
|
|
21167
|
-
createVNode(_sfc_main$
|
|
21238
|
+
createVNode(_sfc_main$7, { message: "Loading initial recommendations... This might take up to 20s" })
|
|
21168
21239
|
])) : createCommentVNode("", true),
|
|
21169
21240
|
createBaseVNode("section", _hoisted_5, [
|
|
21170
|
-
createVNode(_sfc_main$
|
|
21241
|
+
createVNode(_sfc_main$6, {
|
|
21171
21242
|
onSubmit: submitChatInput,
|
|
21172
21243
|
disabled: loading.value
|
|
21173
21244
|
}, null, 8, ["disabled"])
|
|
@@ -26738,7 +26809,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
26738
26809
|
};
|
|
26739
26810
|
__expose({ fetch: fetch2 });
|
|
26740
26811
|
return (_ctx, _cache) => {
|
|
26741
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26812
|
+
return openBlock(), createBlock(unref(_sfc_main$Z), {
|
|
26742
26813
|
options: fullSearchBoxOptions.value,
|
|
26743
26814
|
ref_key: "searchBox",
|
|
26744
26815
|
ref: searchBox2
|
|
@@ -26865,7 +26936,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
26865
26936
|
};
|
|
26866
26937
|
__expose({ fetch: fetch2 });
|
|
26867
26938
|
return (_ctx, _cache) => {
|
|
26868
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26939
|
+
return openBlock(), createBlock(unref(_sfc_main$c), {
|
|
26869
26940
|
options: fullSearchResultsOptions.value,
|
|
26870
26941
|
ref_key: "searchResults",
|
|
26871
26942
|
ref: searchResults2
|
|
@@ -26890,7 +26961,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
26890
26961
|
};
|
|
26891
26962
|
__expose({ fetch: fetch2 });
|
|
26892
26963
|
return (_ctx, _cache) => {
|
|
26893
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26964
|
+
return openBlock(), createBlock(unref(_sfc_main$a), {
|
|
26894
26965
|
options: fullProductListOptions.value,
|
|
26895
26966
|
ref_key: "productList",
|
|
26896
26967
|
ref: productList2
|
|
@@ -26970,7 +27041,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26970
27041
|
__expose({ fetch: fetch2, reloadOptions });
|
|
26971
27042
|
return (_ctx, _cache) => {
|
|
26972
27043
|
return openBlock(), createElementBlock("div", null, [
|
|
26973
|
-
containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
27044
|
+
containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$9), {
|
|
26974
27045
|
key: 0,
|
|
26975
27046
|
options: containerOptions.value,
|
|
26976
27047
|
ref_key: "productList",
|
|
@@ -26994,7 +27065,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26994
27065
|
};
|
|
26995
27066
|
__expose({ fetch: fetch2 });
|
|
26996
27067
|
return (_ctx, _cache) => {
|
|
26997
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
27068
|
+
return openBlock(), createBlock(unref(_sfc_main$8), {
|
|
26998
27069
|
options: _ctx.recommendationOptions,
|
|
26999
27070
|
ref_key: "productRecommendations",
|
|
27000
27071
|
ref: productRecommendations
|
|
@@ -27213,7 +27284,7 @@ const chat = (options, mountOptions) => {
|
|
|
27213
27284
|
}
|
|
27214
27285
|
return;
|
|
27215
27286
|
}
|
|
27216
|
-
const instance = createVue(options.displayOptions.containerSelector, _sfc_main$
|
|
27287
|
+
const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1j, {
|
|
27217
27288
|
options
|
|
27218
27289
|
});
|
|
27219
27290
|
if (!instance) {
|