@getlupa/client 1.1.7 → 1.2.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/lupaSearch.iife.js +376 -397
- package/dist/lupaSearch.js +376 -397
- package/dist/lupaSearch.mjs +378 -399
- package/dist/lupaSearch.umd.js +376 -397
- package/package.json +3 -3
package/dist/lupaSearch.iife.js
CHANGED
|
@@ -6362,7 +6362,21 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6362
6362
|
if (!value) {
|
|
6363
6363
|
return "";
|
|
6364
6364
|
}
|
|
6365
|
-
|
|
6365
|
+
let output = "";
|
|
6366
|
+
let isSkip = false;
|
|
6367
|
+
value.split(/(<del>.*?<\/del>)/g).forEach((segment) => {
|
|
6368
|
+
if (segment.startsWith("<del>") && segment.endsWith("</del>")) {
|
|
6369
|
+
output += segment;
|
|
6370
|
+
isSkip = true;
|
|
6371
|
+
}
|
|
6372
|
+
if (!isSkip) {
|
|
6373
|
+
output += segment.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
6374
|
+
}
|
|
6375
|
+
if (isSkip) {
|
|
6376
|
+
isSkip = false;
|
|
6377
|
+
}
|
|
6378
|
+
});
|
|
6379
|
+
return output;
|
|
6366
6380
|
};
|
|
6367
6381
|
const initAnalyticsTracking = (analyticsOptions) => {
|
|
6368
6382
|
try {
|
|
@@ -7642,8 +7656,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7642
7656
|
resetHighlightIndex
|
|
7643
7657
|
};
|
|
7644
7658
|
});
|
|
7645
|
-
const _hoisted_1$
|
|
7646
|
-
const _hoisted_2$
|
|
7659
|
+
const _hoisted_1$12 = { id: "lupa-search-box-input-container" };
|
|
7660
|
+
const _hoisted_2$I = { class: "lupa-input-clear" };
|
|
7647
7661
|
const _hoisted_3$v = { id: "lupa-search-box-input" };
|
|
7648
7662
|
const _hoisted_4$o = ["value"];
|
|
7649
7663
|
const _hoisted_5$c = ["placeholder"];
|
|
@@ -7651,7 +7665,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7651
7665
|
key: 0,
|
|
7652
7666
|
class: "lupa-close-label"
|
|
7653
7667
|
};
|
|
7654
|
-
const _sfc_main$
|
|
7668
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
7655
7669
|
__name: "SearchBoxInput",
|
|
7656
7670
|
props: {
|
|
7657
7671
|
options: {},
|
|
@@ -7728,8 +7742,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7728
7742
|
};
|
|
7729
7743
|
__expose({ focus });
|
|
7730
7744
|
return (_ctx, _cache) => {
|
|
7731
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7732
|
-
createBaseVNode("div", _hoisted_2$
|
|
7745
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
7746
|
+
createBaseVNode("div", _hoisted_2$I, [
|
|
7733
7747
|
createBaseVNode("div", {
|
|
7734
7748
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
7735
7749
|
onClick: clear2
|
|
@@ -7768,7 +7782,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7768
7782
|
};
|
|
7769
7783
|
}
|
|
7770
7784
|
});
|
|
7771
|
-
const _sfc_main$
|
|
7785
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
7772
7786
|
__name: "SearchBoxMoreResults",
|
|
7773
7787
|
props: {
|
|
7774
7788
|
labels: {},
|
|
@@ -7800,9 +7814,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7800
7814
|
};
|
|
7801
7815
|
}
|
|
7802
7816
|
});
|
|
7803
|
-
const _hoisted_1$
|
|
7804
|
-
const _hoisted_2$
|
|
7805
|
-
const _sfc_main$
|
|
7817
|
+
const _hoisted_1$11 = { class: "lupa-search-box-history-item" };
|
|
7818
|
+
const _hoisted_2$H = { class: "lupa-search-box-history-item-content" };
|
|
7819
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
7806
7820
|
__name: "SearchBoxHistoryItem",
|
|
7807
7821
|
props: {
|
|
7808
7822
|
item: {},
|
|
@@ -7818,8 +7832,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7818
7832
|
emit2("click", { query: props.item });
|
|
7819
7833
|
};
|
|
7820
7834
|
return (_ctx, _cache) => {
|
|
7821
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7822
|
-
createBaseVNode("div", _hoisted_2$
|
|
7835
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
7836
|
+
createBaseVNode("div", _hoisted_2$H, [
|
|
7823
7837
|
createBaseVNode("div", {
|
|
7824
7838
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
7825
7839
|
onClick: click2
|
|
@@ -7833,11 +7847,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7833
7847
|
};
|
|
7834
7848
|
}
|
|
7835
7849
|
});
|
|
7836
|
-
const _hoisted_1$
|
|
7850
|
+
const _hoisted_1$10 = {
|
|
7837
7851
|
key: 0,
|
|
7838
7852
|
class: "lupa-search-box-history-panel"
|
|
7839
7853
|
};
|
|
7840
|
-
const _sfc_main$
|
|
7854
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
7841
7855
|
__name: "SearchBoxHistoryPanel",
|
|
7842
7856
|
props: {
|
|
7843
7857
|
options: {}
|
|
@@ -7878,9 +7892,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7878
7892
|
}
|
|
7879
7893
|
};
|
|
7880
7894
|
return (_ctx, _cache) => {
|
|
7881
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7895
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$10, [
|
|
7882
7896
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
7883
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7897
|
+
return openBlock(), createBlock(_sfc_main$18, {
|
|
7884
7898
|
key: item,
|
|
7885
7899
|
item,
|
|
7886
7900
|
highlighted: index === highlightIndex.value,
|
|
@@ -7896,8 +7910,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7896
7910
|
};
|
|
7897
7911
|
}
|
|
7898
7912
|
});
|
|
7899
|
-
const _hoisted_1
|
|
7900
|
-
const _hoisted_2$
|
|
7913
|
+
const _hoisted_1$$ = ["innerHTML"];
|
|
7914
|
+
const _hoisted_2$G = {
|
|
7901
7915
|
key: 1,
|
|
7902
7916
|
"data-cy": "lupa-suggestion-value",
|
|
7903
7917
|
class: "lupa-suggestion-value"
|
|
@@ -7915,7 +7929,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7915
7929
|
class: "lupa-suggestion-facet-value",
|
|
7916
7930
|
"data-cy": "lupa-suggestion-facet-value"
|
|
7917
7931
|
};
|
|
7918
|
-
const _sfc_main$
|
|
7932
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
7919
7933
|
__name: "SearchBoxSuggestion",
|
|
7920
7934
|
props: {
|
|
7921
7935
|
suggestion: {},
|
|
@@ -7951,7 +7965,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7951
7965
|
class: "lupa-suggestion-value",
|
|
7952
7966
|
"data-cy": "lupa-suggestion-value",
|
|
7953
7967
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
7954
|
-
}, null, 8, _hoisted_1
|
|
7968
|
+
}, null, 8, _hoisted_1$$)) : (openBlock(), createElementBlock("div", _hoisted_2$G, toDisplayString(_ctx.suggestion.display), 1)),
|
|
7955
7969
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
|
|
7956
7970
|
createBaseVNode("span", _hoisted_4$n, toDisplayString(facetLabel.value), 1),
|
|
7957
7971
|
createBaseVNode("span", _hoisted_5$b, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
@@ -7960,11 +7974,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7960
7974
|
};
|
|
7961
7975
|
}
|
|
7962
7976
|
});
|
|
7963
|
-
const _hoisted_1
|
|
7977
|
+
const _hoisted_1$_ = {
|
|
7964
7978
|
id: "lupa-search-box-suggestions",
|
|
7965
7979
|
"data-cy": "lupa-search-box-suggestions"
|
|
7966
7980
|
};
|
|
7967
|
-
const _sfc_main$
|
|
7981
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
7968
7982
|
__name: "SearchBoxSuggestions",
|
|
7969
7983
|
props: {
|
|
7970
7984
|
items: {},
|
|
@@ -8024,9 +8038,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8024
8038
|
});
|
|
8025
8039
|
});
|
|
8026
8040
|
return (_ctx, _cache) => {
|
|
8027
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
8041
|
+
return openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
8028
8042
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
8029
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8043
|
+
return openBlock(), createBlock(_sfc_main$16, {
|
|
8030
8044
|
key: getSuggestionKey(item),
|
|
8031
8045
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
8032
8046
|
suggestion: item,
|
|
@@ -8054,7 +8068,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8054
8068
|
}, timeout);
|
|
8055
8069
|
};
|
|
8056
8070
|
};
|
|
8057
|
-
const _sfc_main$
|
|
8071
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
8058
8072
|
__name: "SearchBoxSuggestionsWrapper",
|
|
8059
8073
|
props: {
|
|
8060
8074
|
panel: {},
|
|
@@ -8095,7 +8109,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8095
8109
|
};
|
|
8096
8110
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
8097
8111
|
return (_ctx, _cache) => {
|
|
8098
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8112
|
+
return openBlock(), createBlock(_sfc_main$15, {
|
|
8099
8113
|
items: searchResult.value,
|
|
8100
8114
|
highlight: _ctx.panel.highlight,
|
|
8101
8115
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -8173,8 +8187,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8173
8187
|
});
|
|
8174
8188
|
return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
|
|
8175
8189
|
});
|
|
8176
|
-
const _hoisted_1$
|
|
8177
|
-
const _sfc_main$
|
|
8190
|
+
const _hoisted_1$Z = ["src"];
|
|
8191
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
8178
8192
|
__name: "ProductImage",
|
|
8179
8193
|
props: {
|
|
8180
8194
|
item: {},
|
|
@@ -8222,12 +8236,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8222
8236
|
class: normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
|
|
8223
8237
|
src: finalUrl.value,
|
|
8224
8238
|
onError: replaceWithPlaceholder
|
|
8225
|
-
}, null, 42, _hoisted_1$
|
|
8239
|
+
}, null, 42, _hoisted_1$Z)
|
|
8226
8240
|
], 2);
|
|
8227
8241
|
};
|
|
8228
8242
|
}
|
|
8229
8243
|
});
|
|
8230
|
-
const _sfc_main$
|
|
8244
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
8231
8245
|
__name: "SearchBoxProductImage",
|
|
8232
8246
|
props: {
|
|
8233
8247
|
item: {},
|
|
@@ -8235,7 +8249,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8235
8249
|
},
|
|
8236
8250
|
setup(__props) {
|
|
8237
8251
|
return (_ctx, _cache) => {
|
|
8238
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8252
|
+
return openBlock(), createBlock(_sfc_main$13, {
|
|
8239
8253
|
item: _ctx.item,
|
|
8240
8254
|
options: _ctx.options,
|
|
8241
8255
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -8244,12 +8258,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8244
8258
|
};
|
|
8245
8259
|
}
|
|
8246
8260
|
});
|
|
8247
|
-
const _hoisted_1$
|
|
8248
|
-
const _hoisted_2$
|
|
8261
|
+
const _hoisted_1$Y = ["innerHTML"];
|
|
8262
|
+
const _hoisted_2$F = {
|
|
8249
8263
|
key: 1,
|
|
8250
8264
|
class: "lupa-search-box-product-title"
|
|
8251
8265
|
};
|
|
8252
|
-
const _sfc_main$
|
|
8266
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
8253
8267
|
__name: "SearchBoxProductTitle",
|
|
8254
8268
|
props: {
|
|
8255
8269
|
item: {},
|
|
@@ -8269,18 +8283,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8269
8283
|
key: 0,
|
|
8270
8284
|
class: "lupa-search-box-product-title",
|
|
8271
8285
|
innerHTML: title.value
|
|
8272
|
-
}, null, 8, _hoisted_1$
|
|
8286
|
+
}, null, 8, _hoisted_1$Y)) : (openBlock(), createElementBlock("div", _hoisted_2$F, [
|
|
8273
8287
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
8274
8288
|
]));
|
|
8275
8289
|
};
|
|
8276
8290
|
}
|
|
8277
8291
|
});
|
|
8278
|
-
const _hoisted_1$
|
|
8279
|
-
const _hoisted_2$
|
|
8292
|
+
const _hoisted_1$X = ["innerHTML"];
|
|
8293
|
+
const _hoisted_2$E = {
|
|
8280
8294
|
key: 1,
|
|
8281
8295
|
class: "lupa-search-box-product-description"
|
|
8282
8296
|
};
|
|
8283
|
-
const _sfc_main$
|
|
8297
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
8284
8298
|
__name: "SearchBoxProductDescription",
|
|
8285
8299
|
props: {
|
|
8286
8300
|
item: {},
|
|
@@ -8300,12 +8314,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8300
8314
|
key: 0,
|
|
8301
8315
|
class: "lupa-search-box-product-description",
|
|
8302
8316
|
innerHTML: description.value
|
|
8303
|
-
}, null, 8, _hoisted_1$
|
|
8317
|
+
}, null, 8, _hoisted_1$X)) : (openBlock(), createElementBlock("div", _hoisted_2$E, toDisplayString(description.value), 1));
|
|
8304
8318
|
};
|
|
8305
8319
|
}
|
|
8306
8320
|
});
|
|
8307
|
-
const _hoisted_1$
|
|
8308
|
-
const _sfc_main
|
|
8321
|
+
const _hoisted_1$W = { class: "lupa-search-box-product-price" };
|
|
8322
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
8309
8323
|
__name: "SearchBoxProductPrice",
|
|
8310
8324
|
props: {
|
|
8311
8325
|
item: {},
|
|
@@ -8323,14 +8337,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8323
8337
|
);
|
|
8324
8338
|
});
|
|
8325
8339
|
return (_ctx, _cache) => {
|
|
8326
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8340
|
+
return openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
8327
8341
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
8328
8342
|
]);
|
|
8329
8343
|
};
|
|
8330
8344
|
}
|
|
8331
8345
|
});
|
|
8332
|
-
const _hoisted_1$
|
|
8333
|
-
const _sfc_main
|
|
8346
|
+
const _hoisted_1$V = { class: "lupa-search-box-product-regular-price" };
|
|
8347
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
8334
8348
|
__name: "SearchBoxProductRegularPrice",
|
|
8335
8349
|
props: {
|
|
8336
8350
|
item: {},
|
|
@@ -8348,16 +8362,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8348
8362
|
);
|
|
8349
8363
|
});
|
|
8350
8364
|
return (_ctx, _cache) => {
|
|
8351
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8365
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, toDisplayString(price.value), 1);
|
|
8352
8366
|
};
|
|
8353
8367
|
}
|
|
8354
8368
|
});
|
|
8355
|
-
const _hoisted_1$
|
|
8356
|
-
const _hoisted_2$
|
|
8369
|
+
const _hoisted_1$U = ["innerHTML"];
|
|
8370
|
+
const _hoisted_2$D = { key: 0 };
|
|
8357
8371
|
const _hoisted_3$t = { key: 1 };
|
|
8358
8372
|
const _hoisted_4$m = { class: "lupa-search-box-custom-label" };
|
|
8359
8373
|
const _hoisted_5$a = { class: "lupa-search-box-custom-text" };
|
|
8360
|
-
const _sfc_main$
|
|
8374
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
8361
8375
|
__name: "SearchBoxProductCustom",
|
|
8362
8376
|
props: {
|
|
8363
8377
|
item: {},
|
|
@@ -8383,11 +8397,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8383
8397
|
key: 0,
|
|
8384
8398
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
8385
8399
|
innerHTML: text.value
|
|
8386
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
8400
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$U)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
8387
8401
|
key: 1,
|
|
8388
8402
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
8389
8403
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
8390
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
8404
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$D, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
8391
8405
|
createBaseVNode("div", _hoisted_4$m, toDisplayString(label.value), 1),
|
|
8392
8406
|
createBaseVNode("div", _hoisted_5$a, toDisplayString(text.value), 1)
|
|
8393
8407
|
]))
|
|
@@ -8395,8 +8409,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8395
8409
|
};
|
|
8396
8410
|
}
|
|
8397
8411
|
});
|
|
8398
|
-
const _hoisted_1$
|
|
8399
|
-
const _sfc_main$
|
|
8412
|
+
const _hoisted_1$T = ["innerHTML"];
|
|
8413
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
8400
8414
|
__name: "SearchBoxProductCustomHtml",
|
|
8401
8415
|
props: {
|
|
8402
8416
|
item: {},
|
|
@@ -8416,7 +8430,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8416
8430
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
8417
8431
|
class: className.value,
|
|
8418
8432
|
innerHTML: text.value
|
|
8419
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
8433
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$T);
|
|
8420
8434
|
};
|
|
8421
8435
|
}
|
|
8422
8436
|
});
|
|
@@ -8611,10 +8625,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8611
8625
|
setLoading
|
|
8612
8626
|
};
|
|
8613
8627
|
});
|
|
8614
|
-
const _hoisted_1$
|
|
8615
|
-
const _hoisted_2$
|
|
8628
|
+
const _hoisted_1$S = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
8629
|
+
const _hoisted_2$C = { class: "lupa-search-box-product-addtocart" };
|
|
8616
8630
|
const _hoisted_3$s = ["onClick", "disabled"];
|
|
8617
|
-
const _sfc_main$
|
|
8631
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
8618
8632
|
__name: "SearchBoxProductAddToCart",
|
|
8619
8633
|
props: {
|
|
8620
8634
|
item: {},
|
|
@@ -8641,8 +8655,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8641
8655
|
loading.value = false;
|
|
8642
8656
|
});
|
|
8643
8657
|
return (_ctx, _cache) => {
|
|
8644
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8645
|
-
createBaseVNode("div", _hoisted_2$
|
|
8658
|
+
return openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
8659
|
+
createBaseVNode("div", _hoisted_2$C, [
|
|
8646
8660
|
createBaseVNode("button", {
|
|
8647
8661
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
8648
8662
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
@@ -8657,17 +8671,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8657
8671
|
});
|
|
8658
8672
|
const __default__$4 = {
|
|
8659
8673
|
components: {
|
|
8660
|
-
SearchBoxProductImage: _sfc_main$
|
|
8661
|
-
SearchBoxProductTitle: _sfc_main$
|
|
8662
|
-
SearchBoxProductDescription: _sfc_main$
|
|
8663
|
-
SearchBoxProductPrice: _sfc_main
|
|
8664
|
-
SearchBoxProductRegularPrice: _sfc_main
|
|
8665
|
-
SearchBoxProductCustom: _sfc_main$
|
|
8666
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
8667
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
8674
|
+
SearchBoxProductImage: _sfc_main$12,
|
|
8675
|
+
SearchBoxProductTitle: _sfc_main$11,
|
|
8676
|
+
SearchBoxProductDescription: _sfc_main$10,
|
|
8677
|
+
SearchBoxProductPrice: _sfc_main$$,
|
|
8678
|
+
SearchBoxProductRegularPrice: _sfc_main$_,
|
|
8679
|
+
SearchBoxProductCustom: _sfc_main$Z,
|
|
8680
|
+
SearchBoxProductCustomHtml: _sfc_main$Y,
|
|
8681
|
+
SearchBoxProductAddToCart: _sfc_main$X
|
|
8668
8682
|
}
|
|
8669
8683
|
};
|
|
8670
|
-
const _sfc_main$
|
|
8684
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
8671
8685
|
__name: "SearchBoxProductElement",
|
|
8672
8686
|
props: {
|
|
8673
8687
|
item: {},
|
|
@@ -8781,14 +8795,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8781
8795
|
};
|
|
8782
8796
|
return { trackSearch, trackResults, trackEvent };
|
|
8783
8797
|
});
|
|
8784
|
-
const _hoisted_1$
|
|
8785
|
-
const _hoisted_2$
|
|
8798
|
+
const _hoisted_1$R = ["href"];
|
|
8799
|
+
const _hoisted_2$B = { class: "lupa-search-box-product-image-section" };
|
|
8786
8800
|
const _hoisted_3$r = { class: "lupa-search-box-product-details-section" };
|
|
8787
8801
|
const _hoisted_4$l = {
|
|
8788
8802
|
key: 0,
|
|
8789
8803
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
8790
8804
|
};
|
|
8791
|
-
const _sfc_main$
|
|
8805
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
8792
8806
|
__name: "SearchBoxProduct",
|
|
8793
8807
|
props: {
|
|
8794
8808
|
item: {},
|
|
@@ -8881,9 +8895,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8881
8895
|
href: link.value,
|
|
8882
8896
|
onClick: handleClick
|
|
8883
8897
|
}, [
|
|
8884
|
-
createBaseVNode("div", _hoisted_2$
|
|
8898
|
+
createBaseVNode("div", _hoisted_2$B, [
|
|
8885
8899
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
8886
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8900
|
+
return openBlock(), createBlock(_sfc_main$W, {
|
|
8887
8901
|
class: "lupa-search-box-product-element",
|
|
8888
8902
|
item: _ctx.item,
|
|
8889
8903
|
element,
|
|
@@ -8895,7 +8909,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8895
8909
|
]),
|
|
8896
8910
|
createBaseVNode("div", _hoisted_3$r, [
|
|
8897
8911
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
8898
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8912
|
+
return openBlock(), createBlock(_sfc_main$W, {
|
|
8899
8913
|
class: "lupa-search-box-product-element",
|
|
8900
8914
|
item: _ctx.item,
|
|
8901
8915
|
element,
|
|
@@ -8906,7 +8920,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8906
8920
|
}), 128))
|
|
8907
8921
|
]),
|
|
8908
8922
|
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$l, [
|
|
8909
|
-
createVNode(_sfc_main$
|
|
8923
|
+
createVNode(_sfc_main$W, {
|
|
8910
8924
|
class: "lupa-search-box-product-element",
|
|
8911
8925
|
item: _ctx.item,
|
|
8912
8926
|
element: addToCartElement.value,
|
|
@@ -8915,12 +8929,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8915
8929
|
isInStock: isInStock.value
|
|
8916
8930
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
8917
8931
|
])) : createCommentVNode("", true)
|
|
8918
|
-
], 10, _hoisted_1$
|
|
8932
|
+
], 10, _hoisted_1$R);
|
|
8919
8933
|
};
|
|
8920
8934
|
}
|
|
8921
8935
|
});
|
|
8922
|
-
const _hoisted_1$
|
|
8923
|
-
const _sfc_main$
|
|
8936
|
+
const _hoisted_1$Q = { id: "lupa-search-box-products" };
|
|
8937
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
8924
8938
|
__name: "SearchBoxProducts",
|
|
8925
8939
|
props: {
|
|
8926
8940
|
items: {},
|
|
@@ -8940,7 +8954,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8940
8954
|
return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
|
|
8941
8955
|
});
|
|
8942
8956
|
return (_ctx, _cache) => {
|
|
8943
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8957
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
8944
8958
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
8945
8959
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
8946
8960
|
key: index,
|
|
@@ -8952,7 +8966,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8952
8966
|
onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
|
|
8953
8967
|
});
|
|
8954
8968
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
8955
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8969
|
+
return openBlock(), createBlock(_sfc_main$V, {
|
|
8956
8970
|
key: index,
|
|
8957
8971
|
item,
|
|
8958
8972
|
panelOptions: _ctx.panelOptions,
|
|
@@ -8966,7 +8980,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8966
8980
|
};
|
|
8967
8981
|
}
|
|
8968
8982
|
});
|
|
8969
|
-
const _sfc_main$
|
|
8983
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
8970
8984
|
__name: "SearchBoxProductsWrapper",
|
|
8971
8985
|
props: {
|
|
8972
8986
|
panel: {},
|
|
@@ -9018,7 +9032,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9018
9032
|
const getItemsDebounced = debounce$1(getItems, props.debounce);
|
|
9019
9033
|
return (_ctx, _cache) => {
|
|
9020
9034
|
var _a, _b;
|
|
9021
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9035
|
+
return openBlock(), createBlock(_sfc_main$U, {
|
|
9022
9036
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
9023
9037
|
panelOptions: _ctx.panel,
|
|
9024
9038
|
labels: _ctx.labels,
|
|
@@ -9036,11 +9050,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9036
9050
|
};
|
|
9037
9051
|
}
|
|
9038
9052
|
});
|
|
9039
|
-
const _hoisted_1$
|
|
9053
|
+
const _hoisted_1$P = {
|
|
9040
9054
|
key: 0,
|
|
9041
9055
|
id: "lupa-search-box-panel"
|
|
9042
9056
|
};
|
|
9043
|
-
const _hoisted_2$
|
|
9057
|
+
const _hoisted_2$A = {
|
|
9044
9058
|
class: "lupa-main-panel",
|
|
9045
9059
|
"data-cy": "lupa-main-panel"
|
|
9046
9060
|
};
|
|
@@ -9051,11 +9065,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9051
9065
|
};
|
|
9052
9066
|
const __default__$3 = {
|
|
9053
9067
|
components: {
|
|
9054
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
9055
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
9068
|
+
SearchBoxSuggestionsWrapper: _sfc_main$14,
|
|
9069
|
+
SearchBoxProductsWrapper: _sfc_main$T
|
|
9056
9070
|
}
|
|
9057
9071
|
};
|
|
9058
|
-
const _sfc_main$
|
|
9072
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
9059
9073
|
__name: "SearchBoxMainPanel",
|
|
9060
9074
|
props: {
|
|
9061
9075
|
options: {},
|
|
@@ -9169,8 +9183,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9169
9183
|
ref_key: "panelContainer",
|
|
9170
9184
|
ref: panelContainer
|
|
9171
9185
|
}, [
|
|
9172
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9173
|
-
createBaseVNode("div", _hoisted_2$
|
|
9186
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
9187
|
+
createBaseVNode("div", _hoisted_2$A, [
|
|
9174
9188
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayPanels.value, (panel, index) => {
|
|
9175
9189
|
return openBlock(), createElementBlock("div", {
|
|
9176
9190
|
key: index,
|
|
@@ -9202,13 +9216,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9202
9216
|
], 10, _hoisted_3$q);
|
|
9203
9217
|
}), 128))
|
|
9204
9218
|
]),
|
|
9205
|
-
createVNode(_sfc_main$
|
|
9219
|
+
createVNode(_sfc_main$19, {
|
|
9206
9220
|
labels: labels.value,
|
|
9207
9221
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
9208
9222
|
onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
|
|
9209
9223
|
}, null, 8, ["labels", "showTotalCount"])
|
|
9210
9224
|
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$k, [
|
|
9211
|
-
createVNode(_sfc_main$
|
|
9225
|
+
createVNode(_sfc_main$17, {
|
|
9212
9226
|
options: _ctx.options.history,
|
|
9213
9227
|
history: history.value,
|
|
9214
9228
|
onGoToResults: handleGoToResults,
|
|
@@ -9233,9 +9247,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9233
9247
|
const elements = getElements(triggers);
|
|
9234
9248
|
elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
|
|
9235
9249
|
};
|
|
9236
|
-
const _hoisted_1$
|
|
9237
|
-
const _hoisted_2$
|
|
9238
|
-
const _sfc_main$
|
|
9250
|
+
const _hoisted_1$O = { id: "lupa-search-box" };
|
|
9251
|
+
const _hoisted_2$z = { class: "lupa-search-box-wrapper" };
|
|
9252
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
9239
9253
|
__name: "SearchBox",
|
|
9240
9254
|
props: {
|
|
9241
9255
|
options: {},
|
|
@@ -9467,9 +9481,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9467
9481
|
};
|
|
9468
9482
|
return (_ctx, _cache) => {
|
|
9469
9483
|
var _a2;
|
|
9470
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9471
|
-
createBaseVNode("div", _hoisted_2$
|
|
9472
|
-
createVNode(_sfc_main$
|
|
9484
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
9485
|
+
createBaseVNode("div", _hoisted_2$z, [
|
|
9486
|
+
createVNode(_sfc_main$1a, {
|
|
9473
9487
|
options: inputOptions.value,
|
|
9474
9488
|
suggestedValue: suggestedValue.value,
|
|
9475
9489
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -9480,7 +9494,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9480
9494
|
onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
|
|
9481
9495
|
onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
9482
9496
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
9483
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
9497
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$S, {
|
|
9484
9498
|
key: 0,
|
|
9485
9499
|
options: panelOptions.value,
|
|
9486
9500
|
inputValue: inputValue.value,
|
|
@@ -9567,11 +9581,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9567
9581
|
}
|
|
9568
9582
|
return searchParams;
|
|
9569
9583
|
};
|
|
9570
|
-
const _hoisted_1$
|
|
9584
|
+
const _hoisted_1$N = {
|
|
9571
9585
|
key: 0,
|
|
9572
9586
|
id: "lupa-search-results-did-you-mean"
|
|
9573
9587
|
};
|
|
9574
|
-
const _hoisted_2$
|
|
9588
|
+
const _hoisted_2$y = {
|
|
9575
9589
|
key: 0,
|
|
9576
9590
|
"data-cy": "suggested-search-text-label"
|
|
9577
9591
|
};
|
|
@@ -9580,7 +9594,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9580
9594
|
"data-cy": "did-you-mean-label"
|
|
9581
9595
|
};
|
|
9582
9596
|
const _hoisted_4$j = { key: 1 };
|
|
9583
|
-
const _sfc_main$
|
|
9597
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
9584
9598
|
__name: "SearchResultsDidYouMean",
|
|
9585
9599
|
props: {
|
|
9586
9600
|
labels: {}
|
|
@@ -9612,8 +9626,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9612
9626
|
paramStore.goToResults({ searchText, facet });
|
|
9613
9627
|
};
|
|
9614
9628
|
return (_ctx, _cache) => {
|
|
9615
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9616
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9629
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
9630
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
|
|
9617
9631
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
9618
9632
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
9619
9633
|
createBaseVNode("span", {
|
|
@@ -9638,12 +9652,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9638
9652
|
};
|
|
9639
9653
|
}
|
|
9640
9654
|
});
|
|
9641
|
-
const _hoisted_1$
|
|
9655
|
+
const _hoisted_1$M = {
|
|
9642
9656
|
key: 0,
|
|
9643
9657
|
class: "lupa-search-results-summary"
|
|
9644
9658
|
};
|
|
9645
|
-
const _hoisted_2$
|
|
9646
|
-
const _sfc_main$
|
|
9659
|
+
const _hoisted_2$x = ["innerHTML"];
|
|
9660
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
9647
9661
|
__name: "SearchResultsSummary",
|
|
9648
9662
|
props: {
|
|
9649
9663
|
label: {},
|
|
@@ -9658,8 +9672,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9658
9672
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
9659
9673
|
});
|
|
9660
9674
|
return (_ctx, _cache) => {
|
|
9661
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9662
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
9675
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
9676
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$x),
|
|
9663
9677
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
9664
9678
|
key: 0,
|
|
9665
9679
|
class: "lupa-filter-clear",
|
|
@@ -9670,18 +9684,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9670
9684
|
};
|
|
9671
9685
|
}
|
|
9672
9686
|
});
|
|
9673
|
-
const _hoisted_1$
|
|
9687
|
+
const _hoisted_1$L = {
|
|
9674
9688
|
key: 0,
|
|
9675
9689
|
class: "lupa-result-page-title",
|
|
9676
9690
|
"data-cy": "lupa-result-page-title"
|
|
9677
9691
|
};
|
|
9678
|
-
const _hoisted_2$
|
|
9692
|
+
const _hoisted_2$w = { key: 0 };
|
|
9679
9693
|
const _hoisted_3$o = {
|
|
9680
9694
|
key: 1,
|
|
9681
9695
|
class: "lupa-results-total-count"
|
|
9682
9696
|
};
|
|
9683
9697
|
const _hoisted_4$i = ["innerHTML"];
|
|
9684
|
-
const _sfc_main$
|
|
9698
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
9685
9699
|
__name: "SearchResultsTitle",
|
|
9686
9700
|
props: {
|
|
9687
9701
|
options: {},
|
|
@@ -9716,12 +9730,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9716
9730
|
});
|
|
9717
9731
|
return (_ctx, _cache) => {
|
|
9718
9732
|
return openBlock(), createElementBlock("div", null, [
|
|
9719
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
9733
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$L, [
|
|
9720
9734
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
9721
|
-
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9735
|
+
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$w, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
9722
9736
|
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$o, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
|
|
9723
9737
|
])) : createCommentVNode("", true),
|
|
9724
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
9738
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$P, {
|
|
9725
9739
|
key: 1,
|
|
9726
9740
|
label: summaryLabel.value
|
|
9727
9741
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -9734,8 +9748,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9734
9748
|
};
|
|
9735
9749
|
}
|
|
9736
9750
|
});
|
|
9737
|
-
const _hoisted_1$
|
|
9738
|
-
const _hoisted_2$
|
|
9751
|
+
const _hoisted_1$K = { class: "lupa-search-result-filter-value" };
|
|
9752
|
+
const _hoisted_2$v = {
|
|
9739
9753
|
class: "lupa-current-filter-label",
|
|
9740
9754
|
"data-cy": "lupa-current-filter-label"
|
|
9741
9755
|
};
|
|
@@ -9743,7 +9757,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9743
9757
|
class: "lupa-current-filter-value",
|
|
9744
9758
|
"data-cy": "lupa-current-filter-value"
|
|
9745
9759
|
};
|
|
9746
|
-
const _sfc_main$
|
|
9760
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
9747
9761
|
__name: "CurrentFilterDisplay",
|
|
9748
9762
|
props: {
|
|
9749
9763
|
filter: {}
|
|
@@ -9755,19 +9769,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9755
9769
|
emit2("remove", { filter: props.filter });
|
|
9756
9770
|
};
|
|
9757
9771
|
return (_ctx, _cache) => {
|
|
9758
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9772
|
+
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
9759
9773
|
createBaseVNode("div", {
|
|
9760
9774
|
class: "lupa-current-filter-action",
|
|
9761
9775
|
onClick: handleClick
|
|
9762
9776
|
}, "⨉"),
|
|
9763
|
-
createBaseVNode("div", _hoisted_2$
|
|
9777
|
+
createBaseVNode("div", _hoisted_2$v, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
9764
9778
|
createBaseVNode("div", _hoisted_3$n, toDisplayString(_ctx.filter.value), 1)
|
|
9765
9779
|
]);
|
|
9766
9780
|
};
|
|
9767
9781
|
}
|
|
9768
9782
|
});
|
|
9769
|
-
const _hoisted_1$
|
|
9770
|
-
const _hoisted_2$
|
|
9783
|
+
const _hoisted_1$J = { class: "lupa-filter-title-text" };
|
|
9784
|
+
const _hoisted_2$u = {
|
|
9771
9785
|
key: 0,
|
|
9772
9786
|
class: "lupa-filter-count"
|
|
9773
9787
|
};
|
|
@@ -9776,7 +9790,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9776
9790
|
class: "filter-values"
|
|
9777
9791
|
};
|
|
9778
9792
|
const _hoisted_4$h = { class: "lupa-current-filter-list" };
|
|
9779
|
-
const _sfc_main$
|
|
9793
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
9780
9794
|
__name: "CurrentFilters",
|
|
9781
9795
|
props: {
|
|
9782
9796
|
options: {},
|
|
@@ -9831,9 +9845,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9831
9845
|
class: "lupa-current-filter-title",
|
|
9832
9846
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
9833
9847
|
}, [
|
|
9834
|
-
createBaseVNode("div", _hoisted_1$
|
|
9848
|
+
createBaseVNode("div", _hoisted_1$J, [
|
|
9835
9849
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
9836
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9850
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$u, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
9837
9851
|
]),
|
|
9838
9852
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
9839
9853
|
key: 0,
|
|
@@ -9843,7 +9857,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9843
9857
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$m, [
|
|
9844
9858
|
createBaseVNode("div", _hoisted_4$h, [
|
|
9845
9859
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
|
|
9846
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9860
|
+
return openBlock(), createBlock(_sfc_main$N, {
|
|
9847
9861
|
key: filter.key + "_" + filter.value,
|
|
9848
9862
|
filter,
|
|
9849
9863
|
onRemove: handleRemove
|
|
@@ -9860,8 +9874,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9860
9874
|
};
|
|
9861
9875
|
}
|
|
9862
9876
|
});
|
|
9863
|
-
const _hoisted_1$
|
|
9864
|
-
const _sfc_main$
|
|
9877
|
+
const _hoisted_1$I = ["href"];
|
|
9878
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
9865
9879
|
__name: "CategoryFilterItem",
|
|
9866
9880
|
props: {
|
|
9867
9881
|
options: {},
|
|
@@ -9898,20 +9912,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9898
9912
|
"data-cy": "lupa-child-category-item",
|
|
9899
9913
|
href: urlLink.value,
|
|
9900
9914
|
onClick: handleNavigation
|
|
9901
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
9915
|
+
}, toDisplayString(title.value), 9, _hoisted_1$I)
|
|
9902
9916
|
], 2);
|
|
9903
9917
|
};
|
|
9904
9918
|
}
|
|
9905
9919
|
});
|
|
9906
|
-
const _hoisted_1$
|
|
9920
|
+
const _hoisted_1$H = {
|
|
9907
9921
|
class: "lupa-category-filter",
|
|
9908
9922
|
"data-cy": "lupa-category-filter"
|
|
9909
9923
|
};
|
|
9910
|
-
const _hoisted_2$
|
|
9924
|
+
const _hoisted_2$t = { class: "lupa-category-back" };
|
|
9911
9925
|
const _hoisted_3$l = ["href"];
|
|
9912
9926
|
const _hoisted_4$g = ["href"];
|
|
9913
9927
|
const _hoisted_5$9 = { class: "lupa-child-category-list" };
|
|
9914
|
-
const _sfc_main$
|
|
9928
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
9915
9929
|
__name: "CategoryFilter",
|
|
9916
9930
|
props: {
|
|
9917
9931
|
options: {}
|
|
@@ -9997,8 +10011,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9997
10011
|
};
|
|
9998
10012
|
__expose({ fetch: fetch2 });
|
|
9999
10013
|
return (_ctx, _cache) => {
|
|
10000
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10001
|
-
createBaseVNode("div", _hoisted_2$
|
|
10014
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
10015
|
+
createBaseVNode("div", _hoisted_2$t, [
|
|
10002
10016
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
10003
10017
|
key: 0,
|
|
10004
10018
|
"data-cy": "lupa-category-back",
|
|
@@ -10018,7 +10032,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10018
10032
|
], 2),
|
|
10019
10033
|
createBaseVNode("div", _hoisted_5$9, [
|
|
10020
10034
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
10021
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10035
|
+
return openBlock(), createBlock(_sfc_main$L, {
|
|
10022
10036
|
key: getCategoryKey(child),
|
|
10023
10037
|
item: child,
|
|
10024
10038
|
options: _ctx.options
|
|
@@ -10029,23 +10043,23 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10029
10043
|
};
|
|
10030
10044
|
}
|
|
10031
10045
|
});
|
|
10032
|
-
const _hoisted_1$
|
|
10046
|
+
const _hoisted_1$G = {
|
|
10033
10047
|
class: "lupa-search-result-facet-term-values",
|
|
10034
10048
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
10035
10049
|
};
|
|
10036
|
-
const _hoisted_2$
|
|
10050
|
+
const _hoisted_2$s = ["placeholder"];
|
|
10037
10051
|
const _hoisted_3$k = { class: "lupa-terms-list" };
|
|
10038
10052
|
const _hoisted_4$f = ["onClick"];
|
|
10039
10053
|
const _hoisted_5$8 = { class: "lupa-term-checkbox-wrapper" };
|
|
10040
10054
|
const _hoisted_6$5 = { class: "lupa-term-checkbox-label" };
|
|
10041
10055
|
const _hoisted_7$5 = { class: "lupa-term-label" };
|
|
10042
|
-
const _hoisted_8$
|
|
10056
|
+
const _hoisted_8$1 = {
|
|
10043
10057
|
key: 0,
|
|
10044
10058
|
class: "lupa-term-count"
|
|
10045
10059
|
};
|
|
10046
10060
|
const _hoisted_9$1 = { key: 0 };
|
|
10047
10061
|
const _hoisted_10$1 = { key: 1 };
|
|
10048
|
-
const _sfc_main$
|
|
10062
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
10049
10063
|
__name: "TermFacet",
|
|
10050
10064
|
props: {
|
|
10051
10065
|
options: {},
|
|
@@ -10114,14 +10128,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10114
10128
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
10115
10129
|
};
|
|
10116
10130
|
return (_ctx, _cache) => {
|
|
10117
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10131
|
+
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
10118
10132
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
10119
10133
|
key: 0,
|
|
10120
10134
|
class: "lupa-term-filter",
|
|
10121
10135
|
"data-cy": "lupa-term-filter",
|
|
10122
10136
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
10123
10137
|
placeholder: _ctx.options.labels.facetFilter
|
|
10124
|
-
}, null, 8, _hoisted_2$
|
|
10138
|
+
}, null, 8, _hoisted_2$s)), [
|
|
10125
10139
|
[vModelText, termFilter.value]
|
|
10126
10140
|
]) : createCommentVNode("", true),
|
|
10127
10141
|
createBaseVNode("div", _hoisted_3$k, [
|
|
@@ -10139,7 +10153,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10139
10153
|
]),
|
|
10140
10154
|
createBaseVNode("div", _hoisted_6$5, [
|
|
10141
10155
|
createBaseVNode("span", _hoisted_7$5, toDisplayString(item.title), 1),
|
|
10142
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$
|
|
10156
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
10143
10157
|
])
|
|
10144
10158
|
], 10, _hoisted_4$f);
|
|
10145
10159
|
}), 128))
|
|
@@ -11132,8 +11146,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11132
11146
|
m.render = function(e, t, r, i, n, o) {
|
|
11133
11147
|
return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
|
|
11134
11148
|
}, m.__file = "src/Slider.vue";
|
|
11135
|
-
const _hoisted_1$
|
|
11136
|
-
const _hoisted_2$
|
|
11149
|
+
const _hoisted_1$F = { class: "lupa-search-result-facet-stats-values" };
|
|
11150
|
+
const _hoisted_2$r = {
|
|
11137
11151
|
key: 0,
|
|
11138
11152
|
class: "lupa-stats-facet-summary"
|
|
11139
11153
|
};
|
|
@@ -11148,7 +11162,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11148
11162
|
const _hoisted_5$7 = { class: "lupa-stats-from" };
|
|
11149
11163
|
const _hoisted_6$4 = ["max", "min", "pattern"];
|
|
11150
11164
|
const _hoisted_7$4 = { key: 0 };
|
|
11151
|
-
const _hoisted_8
|
|
11165
|
+
const _hoisted_8 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
11152
11166
|
const _hoisted_9 = {
|
|
11153
11167
|
key: 0,
|
|
11154
11168
|
class: "lupa-stats-range-label"
|
|
@@ -11160,7 +11174,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11160
11174
|
key: 2,
|
|
11161
11175
|
class: "lupa-stats-slider-wrapper"
|
|
11162
11176
|
};
|
|
11163
|
-
const _sfc_main$
|
|
11177
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
11164
11178
|
__name: "StatsFacet",
|
|
11165
11179
|
props: {
|
|
11166
11180
|
options: {},
|
|
@@ -11308,8 +11322,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11308
11322
|
innerSliderRange.value = value;
|
|
11309
11323
|
};
|
|
11310
11324
|
return (_ctx, _cache) => {
|
|
11311
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11312
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11325
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
11326
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$j, [
|
|
11313
11327
|
createBaseVNode("div", null, [
|
|
11314
11328
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
11315
11329
|
createBaseVNode("div", _hoisted_5$7, [
|
|
@@ -11331,7 +11345,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11331
11345
|
isPrice.value ? (openBlock(), createElementBlock("span", _hoisted_7$4, toDisplayString(currency.value), 1)) : createCommentVNode("", true)
|
|
11332
11346
|
])
|
|
11333
11347
|
]),
|
|
11334
|
-
_hoisted_8
|
|
11348
|
+
_hoisted_8,
|
|
11335
11349
|
createBaseVNode("div", null, [
|
|
11336
11350
|
rangeLabelTo.value ? (openBlock(), createElementBlock("div", _hoisted_9, toDisplayString(rangeLabelTo.value), 1)) : createCommentVNode("", true),
|
|
11337
11351
|
createBaseVNode("div", _hoisted_10, [
|
|
@@ -11372,8 +11386,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11372
11386
|
};
|
|
11373
11387
|
}
|
|
11374
11388
|
});
|
|
11375
|
-
const _hoisted_1$
|
|
11376
|
-
const _hoisted_2$
|
|
11389
|
+
const _hoisted_1$E = { class: "lupa-term-checkbox-wrapper" };
|
|
11390
|
+
const _hoisted_2$q = { class: "lupa-term-checkbox-label" };
|
|
11377
11391
|
const _hoisted_3$i = { class: "lupa-term-label" };
|
|
11378
11392
|
const _hoisted_4$d = {
|
|
11379
11393
|
key: 0,
|
|
@@ -11383,7 +11397,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11383
11397
|
key: 0,
|
|
11384
11398
|
class: "lupa-facet-level"
|
|
11385
11399
|
};
|
|
11386
|
-
const _sfc_main$
|
|
11400
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
11387
11401
|
__name: "HierarchyFacetLevel",
|
|
11388
11402
|
props: {
|
|
11389
11403
|
options: {},
|
|
@@ -11429,12 +11443,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11429
11443
|
"data-cy": "lupa-facet-term",
|
|
11430
11444
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
11431
11445
|
}, [
|
|
11432
|
-
createBaseVNode("div", _hoisted_1$
|
|
11446
|
+
createBaseVNode("div", _hoisted_1$E, [
|
|
11433
11447
|
createBaseVNode("span", {
|
|
11434
11448
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
11435
11449
|
}, null, 2)
|
|
11436
11450
|
]),
|
|
11437
|
-
createBaseVNode("div", _hoisted_2$
|
|
11451
|
+
createBaseVNode("div", _hoisted_2$q, [
|
|
11438
11452
|
createBaseVNode("span", _hoisted_3$i, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
11439
11453
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$d, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
11440
11454
|
])
|
|
@@ -11455,13 +11469,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11455
11469
|
};
|
|
11456
11470
|
}
|
|
11457
11471
|
});
|
|
11458
|
-
const _hoisted_1$
|
|
11472
|
+
const _hoisted_1$D = {
|
|
11459
11473
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
11460
11474
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
11461
11475
|
};
|
|
11462
|
-
const _hoisted_2$
|
|
11476
|
+
const _hoisted_2$p = { key: 0 };
|
|
11463
11477
|
const _hoisted_3$h = ["placeholder"];
|
|
11464
|
-
const _sfc_main$
|
|
11478
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
11465
11479
|
__name: "HierarchyFacet",
|
|
11466
11480
|
props: {
|
|
11467
11481
|
options: {},
|
|
@@ -11511,8 +11525,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11511
11525
|
showAll.value = true;
|
|
11512
11526
|
};
|
|
11513
11527
|
return (_ctx, _cache) => {
|
|
11514
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11515
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11528
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
11529
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, [
|
|
11516
11530
|
withDirectives(createBaseVNode("input", {
|
|
11517
11531
|
class: "lupa-term-filter",
|
|
11518
11532
|
"data-cy": "lupa-term-filter",
|
|
@@ -11523,7 +11537,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11523
11537
|
])
|
|
11524
11538
|
])) : createCommentVNode("", true),
|
|
11525
11539
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
11526
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11540
|
+
return openBlock(), createBlock(_sfc_main$H, {
|
|
11527
11541
|
key: item.title,
|
|
11528
11542
|
options: _ctx.options,
|
|
11529
11543
|
item,
|
|
@@ -11543,20 +11557,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11543
11557
|
};
|
|
11544
11558
|
}
|
|
11545
11559
|
});
|
|
11546
|
-
const _hoisted_1$
|
|
11547
|
-
const _hoisted_2$
|
|
11560
|
+
const _hoisted_1$C = { class: "lupa-facet-label-text" };
|
|
11561
|
+
const _hoisted_2$o = {
|
|
11548
11562
|
key: 0,
|
|
11549
11563
|
class: "lupa-facet-content",
|
|
11550
11564
|
"data-cy": "lupa-facet-content"
|
|
11551
11565
|
};
|
|
11552
11566
|
const __default__$2 = {
|
|
11553
11567
|
components: {
|
|
11554
|
-
TermFacet: _sfc_main$
|
|
11555
|
-
StatsFacet: _sfc_main$
|
|
11556
|
-
HierarchyFacet: _sfc_main$
|
|
11568
|
+
TermFacet: _sfc_main$J,
|
|
11569
|
+
StatsFacet: _sfc_main$I,
|
|
11570
|
+
HierarchyFacet: _sfc_main$G
|
|
11557
11571
|
}
|
|
11558
11572
|
};
|
|
11559
|
-
const _sfc_main$
|
|
11573
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
11560
11574
|
__name: "FacetDisplay",
|
|
11561
11575
|
props: {
|
|
11562
11576
|
options: {},
|
|
@@ -11667,12 +11681,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11667
11681
|
"data-cy": "lupa-search-result-facet-label",
|
|
11668
11682
|
onClick: toggleFacet
|
|
11669
11683
|
}, [
|
|
11670
|
-
createBaseVNode("div", _hoisted_1$
|
|
11684
|
+
createBaseVNode("div", _hoisted_1$C, toDisplayString(facet.value.label), 1),
|
|
11671
11685
|
createBaseVNode("div", {
|
|
11672
11686
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
11673
11687
|
}, null, 2)
|
|
11674
11688
|
], 2),
|
|
11675
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11689
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$o, [
|
|
11676
11690
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
11677
11691
|
facet: facet.value,
|
|
11678
11692
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -11690,12 +11704,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11690
11704
|
};
|
|
11691
11705
|
}
|
|
11692
11706
|
}));
|
|
11693
|
-
const _hoisted_1$
|
|
11694
|
-
const _hoisted_2$
|
|
11707
|
+
const _hoisted_1$B = { class: "lupa-search-result-facet-section" };
|
|
11708
|
+
const _hoisted_2$n = {
|
|
11695
11709
|
key: 0,
|
|
11696
11710
|
class: "lupa-facets-title"
|
|
11697
11711
|
};
|
|
11698
|
-
const _sfc_main$
|
|
11712
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
11699
11713
|
__name: "FacetList",
|
|
11700
11714
|
props: {
|
|
11701
11715
|
options: {},
|
|
@@ -11729,14 +11743,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11729
11743
|
};
|
|
11730
11744
|
return (_ctx, _cache) => {
|
|
11731
11745
|
var _a;
|
|
11732
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11733
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11746
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
11747
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
11734
11748
|
createBaseVNode("div", {
|
|
11735
11749
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
11736
11750
|
}, [
|
|
11737
11751
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
11738
11752
|
var _a2;
|
|
11739
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11753
|
+
return openBlock(), createBlock(_sfc_main$F, {
|
|
11740
11754
|
key: facet.key,
|
|
11741
11755
|
facet,
|
|
11742
11756
|
currentFilters: currentFiltersValue.value,
|
|
@@ -11751,8 +11765,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11751
11765
|
};
|
|
11752
11766
|
}
|
|
11753
11767
|
});
|
|
11754
|
-
const _hoisted_1$
|
|
11755
|
-
const _sfc_main$
|
|
11768
|
+
const _hoisted_1$A = { class: "lupa-search-result-facets" };
|
|
11769
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
11756
11770
|
__name: "Facets",
|
|
11757
11771
|
props: {
|
|
11758
11772
|
options: {},
|
|
@@ -11798,8 +11812,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11798
11812
|
paramStore.removeParameters({ paramsToRemove: [param] });
|
|
11799
11813
|
};
|
|
11800
11814
|
return (_ctx, _cache) => {
|
|
11801
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11802
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
11815
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
11816
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$E, {
|
|
11803
11817
|
key: 0,
|
|
11804
11818
|
options: _ctx.options,
|
|
11805
11819
|
facets: regularFacets.value,
|
|
@@ -11813,11 +11827,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11813
11827
|
};
|
|
11814
11828
|
}
|
|
11815
11829
|
});
|
|
11816
|
-
const _hoisted_1$
|
|
11830
|
+
const _hoisted_1$z = {
|
|
11817
11831
|
id: "lupa-search-result-filters",
|
|
11818
11832
|
class: "lupa-search-result-filters"
|
|
11819
11833
|
};
|
|
11820
|
-
const _sfc_main$
|
|
11834
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
11821
11835
|
__name: "SearchResultsFilters",
|
|
11822
11836
|
props: {
|
|
11823
11837
|
options: {},
|
|
@@ -11846,19 +11860,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11846
11860
|
__expose({ fetch: fetch2 });
|
|
11847
11861
|
return (_ctx, _cache) => {
|
|
11848
11862
|
var _a;
|
|
11849
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11850
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
11863
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
11864
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$M, {
|
|
11851
11865
|
key: 0,
|
|
11852
11866
|
options: _ctx.options.currentFilters,
|
|
11853
11867
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
11854
11868
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
11855
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
11869
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$K, {
|
|
11856
11870
|
key: 1,
|
|
11857
11871
|
options: _ctx.options.categories,
|
|
11858
11872
|
ref_key: "categoryFilters",
|
|
11859
11873
|
ref: categoryFilters
|
|
11860
11874
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
11861
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
11875
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$D, {
|
|
11862
11876
|
key: 2,
|
|
11863
11877
|
options: _ctx.options.facets
|
|
11864
11878
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -11866,11 +11880,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11866
11880
|
};
|
|
11867
11881
|
}
|
|
11868
11882
|
});
|
|
11869
|
-
const _hoisted_1$
|
|
11883
|
+
const _hoisted_1$y = {
|
|
11870
11884
|
key: 0,
|
|
11871
11885
|
class: "lupa-mobile-filter-sidebar"
|
|
11872
11886
|
};
|
|
11873
|
-
const _hoisted_2$
|
|
11887
|
+
const _hoisted_2$m = ["onClick"];
|
|
11874
11888
|
const _hoisted_3$g = { class: "lupa-mobile-sidebar-content" };
|
|
11875
11889
|
const _hoisted_4$c = { class: "lupa-sidebar-top" };
|
|
11876
11890
|
const _hoisted_5$5 = { class: "lupa-sidebar-title" };
|
|
@@ -11879,7 +11893,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11879
11893
|
class: "lupa-sidebar-filter-count"
|
|
11880
11894
|
};
|
|
11881
11895
|
const _hoisted_7$3 = { class: "lupa-sidebar-filter-options" };
|
|
11882
|
-
const _sfc_main$
|
|
11896
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
11883
11897
|
__name: "MobileFilterSidebar",
|
|
11884
11898
|
props: {
|
|
11885
11899
|
options: {}
|
|
@@ -11905,11 +11919,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11905
11919
|
searchResultStore.setSidebarState({ visible: false });
|
|
11906
11920
|
};
|
|
11907
11921
|
return (_ctx, _cache) => {
|
|
11908
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11922
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
11909
11923
|
createBaseVNode("div", {
|
|
11910
11924
|
class: "lupa-sidebar-close",
|
|
11911
11925
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
11912
|
-
}, null, 8, _hoisted_2$
|
|
11926
|
+
}, null, 8, _hoisted_2$m),
|
|
11913
11927
|
createBaseVNode("div", _hoisted_3$g, [
|
|
11914
11928
|
createBaseVNode("div", _hoisted_4$c, [
|
|
11915
11929
|
createBaseVNode("div", _hoisted_5$5, [
|
|
@@ -11922,7 +11936,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11922
11936
|
})
|
|
11923
11937
|
]),
|
|
11924
11938
|
createBaseVNode("div", _hoisted_7$3, [
|
|
11925
|
-
createVNode(_sfc_main$
|
|
11939
|
+
createVNode(_sfc_main$C, {
|
|
11926
11940
|
options: _ctx.options,
|
|
11927
11941
|
expandable: isActiveFiltersExpanded.value
|
|
11928
11942
|
}, null, 8, ["options", "expandable"])
|
|
@@ -11932,14 +11946,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11932
11946
|
};
|
|
11933
11947
|
}
|
|
11934
11948
|
});
|
|
11935
|
-
const _hoisted_1$
|
|
11936
|
-
const _hoisted_2$
|
|
11949
|
+
const _hoisted_1$x = { id: "lupa-search-results-breadcrumbs" };
|
|
11950
|
+
const _hoisted_2$l = ["href", "onClick"];
|
|
11937
11951
|
const _hoisted_3$f = {
|
|
11938
11952
|
key: 1,
|
|
11939
11953
|
class: "lupa-search-results-breadcrumb-text"
|
|
11940
11954
|
};
|
|
11941
11955
|
const _hoisted_4$b = { key: 2 };
|
|
11942
|
-
const _sfc_main$
|
|
11956
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
11943
11957
|
__name: "SearchResultsBreadcrumbs",
|
|
11944
11958
|
props: {
|
|
11945
11959
|
breadcrumbs: {}
|
|
@@ -11964,7 +11978,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11964
11978
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
11965
11979
|
};
|
|
11966
11980
|
return (_ctx, _cache) => {
|
|
11967
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11981
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
11968
11982
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
11969
11983
|
return openBlock(), createElementBlock("span", {
|
|
11970
11984
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -11978,7 +11992,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11978
11992
|
var _a;
|
|
11979
11993
|
return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
11980
11994
|
}
|
|
11981
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
11995
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$l)) : (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
11982
11996
|
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$b, " / ")) : createCommentVNode("", true)
|
|
11983
11997
|
]);
|
|
11984
11998
|
}), 128))
|
|
@@ -11986,11 +12000,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11986
12000
|
};
|
|
11987
12001
|
}
|
|
11988
12002
|
});
|
|
11989
|
-
const _hoisted_1$
|
|
12003
|
+
const _hoisted_1$w = {
|
|
11990
12004
|
id: "lupa-search-result-filters",
|
|
11991
12005
|
class: "lupa-search-result-filters"
|
|
11992
12006
|
};
|
|
11993
|
-
const _sfc_main$
|
|
12007
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
11994
12008
|
__name: "FiltersTopDropdown",
|
|
11995
12009
|
props: {
|
|
11996
12010
|
options: {}
|
|
@@ -11998,8 +12012,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11998
12012
|
setup(__props) {
|
|
11999
12013
|
return (_ctx, _cache) => {
|
|
12000
12014
|
var _a;
|
|
12001
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12002
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
12015
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
12016
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$D, {
|
|
12003
12017
|
key: 0,
|
|
12004
12018
|
options: _ctx.options.facets,
|
|
12005
12019
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -12009,8 +12023,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12009
12023
|
};
|
|
12010
12024
|
}
|
|
12011
12025
|
});
|
|
12012
|
-
const _hoisted_1$
|
|
12013
|
-
const _sfc_main$
|
|
12026
|
+
const _hoisted_1$v = { id: "lupa-search-results-layout-selection" };
|
|
12027
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
12014
12028
|
__name: "SearchResultsLayoutSelection",
|
|
12015
12029
|
setup(__props) {
|
|
12016
12030
|
const searchResultStore = useSearchResultStore();
|
|
@@ -12021,7 +12035,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12021
12035
|
searchResultStore.setLayout(layout2);
|
|
12022
12036
|
};
|
|
12023
12037
|
return (_ctx, _cache) => {
|
|
12024
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12038
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
12025
12039
|
createBaseVNode("div", {
|
|
12026
12040
|
class: normalizeClass([
|
|
12027
12041
|
"lupa-layout-selection-grid",
|
|
@@ -12043,11 +12057,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12043
12057
|
};
|
|
12044
12058
|
}
|
|
12045
12059
|
});
|
|
12046
|
-
const _hoisted_1$
|
|
12060
|
+
const _hoisted_1$u = {
|
|
12047
12061
|
key: 0,
|
|
12048
12062
|
class: "lupa-mobile-toggle-filter-count"
|
|
12049
12063
|
};
|
|
12050
|
-
const _sfc_main$
|
|
12064
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
12051
12065
|
__name: "SearchResultsMobileToggle",
|
|
12052
12066
|
props: {
|
|
12053
12067
|
label: {},
|
|
@@ -12065,17 +12079,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12065
12079
|
onClick: handleMobileToggle
|
|
12066
12080
|
}, [
|
|
12067
12081
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
12068
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
12082
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$u, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
12069
12083
|
], 2);
|
|
12070
12084
|
};
|
|
12071
12085
|
}
|
|
12072
12086
|
});
|
|
12073
|
-
const _hoisted_1$
|
|
12087
|
+
const _hoisted_1$t = {
|
|
12074
12088
|
key: 0,
|
|
12075
12089
|
id: "lupa-search-results-page-select",
|
|
12076
12090
|
"data-cy": "lupa-search-results-page-select"
|
|
12077
12091
|
};
|
|
12078
|
-
const _hoisted_2$
|
|
12092
|
+
const _hoisted_2$k = {
|
|
12079
12093
|
key: 0,
|
|
12080
12094
|
class: "lupa-page-number-separator"
|
|
12081
12095
|
};
|
|
@@ -12084,7 +12098,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12084
12098
|
key: 0,
|
|
12085
12099
|
class: "lupa-page-number-separator"
|
|
12086
12100
|
};
|
|
12087
|
-
const _sfc_main$
|
|
12101
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
12088
12102
|
__name: "SearchResultsPageSelect",
|
|
12089
12103
|
props: {
|
|
12090
12104
|
lastPageLabel: {},
|
|
@@ -12146,7 +12160,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12146
12160
|
}
|
|
12147
12161
|
};
|
|
12148
12162
|
return (_ctx, _cache) => {
|
|
12149
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
12163
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
12150
12164
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
12151
12165
|
key: 0,
|
|
12152
12166
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -12157,7 +12171,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12157
12171
|
class: "lupa-page-number lupa-page-number-first",
|
|
12158
12172
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
12159
12173
|
}, " 1 "),
|
|
12160
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12174
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$k, "...")) : createCommentVNode("", true)
|
|
12161
12175
|
], 64)) : createCommentVNode("", true),
|
|
12162
12176
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
12163
12177
|
return openBlock(), createElementBlock("div", {
|
|
@@ -12190,13 +12204,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12190
12204
|
};
|
|
12191
12205
|
}
|
|
12192
12206
|
});
|
|
12193
|
-
const _hoisted_1$
|
|
12207
|
+
const _hoisted_1$s = {
|
|
12194
12208
|
id: "lupa-search-results-page-size",
|
|
12195
12209
|
"data-cy": "lupa-search-results-page-size"
|
|
12196
12210
|
};
|
|
12197
|
-
const _hoisted_2$
|
|
12211
|
+
const _hoisted_2$j = { id: "lupa-select" };
|
|
12198
12212
|
const _hoisted_3$d = { class: "lupa-select-label" };
|
|
12199
|
-
const _sfc_main$
|
|
12213
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
12200
12214
|
__name: "SearchResultsPageSize",
|
|
12201
12215
|
props: {
|
|
12202
12216
|
label: {},
|
|
@@ -12213,8 +12227,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12213
12227
|
});
|
|
12214
12228
|
};
|
|
12215
12229
|
return (_ctx, _cache) => {
|
|
12216
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12217
|
-
createBaseVNode("div", _hoisted_2$
|
|
12230
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
12231
|
+
createBaseVNode("div", _hoisted_2$j, [
|
|
12218
12232
|
createBaseVNode("label", _hoisted_3$d, toDisplayString(_ctx.label), 1),
|
|
12219
12233
|
createBaseVNode("select", {
|
|
12220
12234
|
class: "lupa-select-dropdown",
|
|
@@ -12232,14 +12246,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12232
12246
|
};
|
|
12233
12247
|
}
|
|
12234
12248
|
});
|
|
12235
|
-
const _hoisted_1$
|
|
12249
|
+
const _hoisted_1$r = {
|
|
12236
12250
|
id: "lupa-search-results-sort",
|
|
12237
12251
|
class: "lupa-search-results-sort"
|
|
12238
12252
|
};
|
|
12239
|
-
const _hoisted_2$
|
|
12253
|
+
const _hoisted_2$i = { id: "lupa-select" };
|
|
12240
12254
|
const _hoisted_3$c = { class: "lupa-select-label" };
|
|
12241
12255
|
const _hoisted_4$9 = ["value"];
|
|
12242
|
-
const _sfc_main$
|
|
12256
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
12243
12257
|
__name: "SearchResultsSort",
|
|
12244
12258
|
props: {
|
|
12245
12259
|
options: {}
|
|
@@ -12281,8 +12295,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12281
12295
|
});
|
|
12282
12296
|
};
|
|
12283
12297
|
return (_ctx, _cache) => {
|
|
12284
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12285
|
-
createBaseVNode("div", _hoisted_2$
|
|
12298
|
+
return openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
12299
|
+
createBaseVNode("div", _hoisted_2$i, [
|
|
12286
12300
|
createBaseVNode("label", _hoisted_3$c, toDisplayString(_ctx.options.label), 1),
|
|
12287
12301
|
withDirectives(createBaseVNode("select", {
|
|
12288
12302
|
class: "lupa-select-dropdown",
|
|
@@ -12305,14 +12319,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12305
12319
|
};
|
|
12306
12320
|
}
|
|
12307
12321
|
});
|
|
12308
|
-
const _hoisted_1$
|
|
12309
|
-
const _hoisted_2$
|
|
12322
|
+
const _hoisted_1$q = { class: "lupa-toolbar-left" };
|
|
12323
|
+
const _hoisted_2$h = { key: 1 };
|
|
12310
12324
|
const _hoisted_3$b = { key: 3 };
|
|
12311
12325
|
const _hoisted_4$8 = { key: 5 };
|
|
12312
12326
|
const _hoisted_5$4 = { class: "lupa-toolbar-right" };
|
|
12313
12327
|
const _hoisted_6$2 = { key: 1 };
|
|
12314
12328
|
const _hoisted_7$2 = { key: 3 };
|
|
12315
|
-
const _sfc_main$
|
|
12329
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
12316
12330
|
__name: "SearchResultsToolbar",
|
|
12317
12331
|
props: {
|
|
12318
12332
|
options: {},
|
|
@@ -12409,15 +12423,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12409
12423
|
id: "lupa-search-results-toolbar",
|
|
12410
12424
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
12411
12425
|
}, [
|
|
12412
|
-
createBaseVNode("div", _hoisted_1$
|
|
12413
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
12414
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
12426
|
+
createBaseVNode("div", _hoisted_1$q, [
|
|
12427
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$y, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$h)),
|
|
12428
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$P, {
|
|
12415
12429
|
key: 2,
|
|
12416
12430
|
label: searchSummaryLabel.value,
|
|
12417
12431
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
12418
12432
|
onClear: handleClearAll
|
|
12419
12433
|
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$b)),
|
|
12420
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
12434
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$w, {
|
|
12421
12435
|
key: 4,
|
|
12422
12436
|
options: paginationOptions.value.pageSelect,
|
|
12423
12437
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
@@ -12425,16 +12439,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12425
12439
|
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$8))
|
|
12426
12440
|
]),
|
|
12427
12441
|
createBaseVNode("div", _hoisted_5$4, [
|
|
12428
|
-
createVNode(_sfc_main$
|
|
12442
|
+
createVNode(_sfc_main$x, {
|
|
12429
12443
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
12430
12444
|
"show-filter-count": showMobileFilterCount.value
|
|
12431
12445
|
}, null, 8, ["label", "show-filter-count"]),
|
|
12432
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
12446
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$v, {
|
|
12433
12447
|
key: 0,
|
|
12434
12448
|
options: paginationOptions.value.pageSize,
|
|
12435
12449
|
label: paginationOptions.value.labels.pageSize
|
|
12436
12450
|
}, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$2)),
|
|
12437
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
12451
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$u, {
|
|
12438
12452
|
key: 2,
|
|
12439
12453
|
options: sortOptions.value
|
|
12440
12454
|
}, null, 8, ["options"])) : (openBlock(), createElementBlock("div", _hoisted_7$2))
|
|
@@ -12443,14 +12457,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12443
12457
|
};
|
|
12444
12458
|
}
|
|
12445
12459
|
});
|
|
12446
|
-
const _hoisted_1$
|
|
12447
|
-
const _hoisted_2$
|
|
12460
|
+
const _hoisted_1$p = { class: "lupa-badge-title" };
|
|
12461
|
+
const _hoisted_2$g = ["src"];
|
|
12448
12462
|
const _hoisted_3$a = { key: 1 };
|
|
12449
12463
|
const _hoisted_4$7 = {
|
|
12450
12464
|
key: 0,
|
|
12451
12465
|
class: "lupa-badge-full-text"
|
|
12452
12466
|
};
|
|
12453
|
-
const _sfc_main$
|
|
12467
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
12454
12468
|
__name: "SearchResultGeneratedBadge",
|
|
12455
12469
|
props: {
|
|
12456
12470
|
options: {},
|
|
@@ -12483,11 +12497,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12483
12497
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
12484
12498
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
12485
12499
|
}, [
|
|
12486
|
-
createBaseVNode("span", _hoisted_1$
|
|
12500
|
+
createBaseVNode("span", _hoisted_1$p, [
|
|
12487
12501
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
12488
12502
|
key: 0,
|
|
12489
12503
|
src: image.value
|
|
12490
|
-
}, null, 8, _hoisted_2$
|
|
12504
|
+
}, null, 8, _hoisted_2$g)) : createCommentVNode("", true),
|
|
12491
12505
|
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$a, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
12492
12506
|
]),
|
|
12493
12507
|
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$7, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
@@ -12495,8 +12509,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12495
12509
|
};
|
|
12496
12510
|
}
|
|
12497
12511
|
});
|
|
12498
|
-
const _hoisted_1$
|
|
12499
|
-
const _sfc_main$
|
|
12512
|
+
const _hoisted_1$o = { class: "lupa-generated-badges" };
|
|
12513
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
12500
12514
|
__name: "SearchResultGeneratedBadges",
|
|
12501
12515
|
props: {
|
|
12502
12516
|
options: {}
|
|
@@ -12522,9 +12536,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12522
12536
|
})).filter((b) => Boolean(b.id));
|
|
12523
12537
|
});
|
|
12524
12538
|
return (_ctx, _cache) => {
|
|
12525
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12539
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
12526
12540
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
12527
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12541
|
+
return openBlock(), createBlock(_sfc_main$s, {
|
|
12528
12542
|
key: badge.id,
|
|
12529
12543
|
badge,
|
|
12530
12544
|
options: _ctx.options
|
|
@@ -12534,8 +12548,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12534
12548
|
};
|
|
12535
12549
|
}
|
|
12536
12550
|
});
|
|
12537
|
-
const _hoisted_1$
|
|
12538
|
-
const _sfc_main$
|
|
12551
|
+
const _hoisted_1$n = ["innerHTML"];
|
|
12552
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
12539
12553
|
__name: "CustomBadge",
|
|
12540
12554
|
props: {
|
|
12541
12555
|
badge: {}
|
|
@@ -12554,12 +12568,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12554
12568
|
return openBlock(), createElementBlock("div", {
|
|
12555
12569
|
class: normalizeClass(className.value),
|
|
12556
12570
|
innerHTML: text.value
|
|
12557
|
-
}, null, 10, _hoisted_1$
|
|
12571
|
+
}, null, 10, _hoisted_1$n);
|
|
12558
12572
|
};
|
|
12559
12573
|
}
|
|
12560
12574
|
});
|
|
12561
|
-
const _hoisted_1$
|
|
12562
|
-
const _sfc_main$
|
|
12575
|
+
const _hoisted_1$m = { class: "lupa-text-badges" };
|
|
12576
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
12563
12577
|
__name: "TextBadge",
|
|
12564
12578
|
props: {
|
|
12565
12579
|
badge: {}
|
|
@@ -12574,7 +12588,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12574
12588
|
return badges.value.slice(0, props.badge.maxItems);
|
|
12575
12589
|
});
|
|
12576
12590
|
return (_ctx, _cache) => {
|
|
12577
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12591
|
+
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
12578
12592
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
12579
12593
|
return openBlock(), createElementBlock("div", {
|
|
12580
12594
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -12585,9 +12599,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12585
12599
|
};
|
|
12586
12600
|
}
|
|
12587
12601
|
});
|
|
12588
|
-
const _hoisted_1$
|
|
12589
|
-
const _hoisted_2$
|
|
12590
|
-
const _sfc_main$
|
|
12602
|
+
const _hoisted_1$l = { class: "lupa-image-badges" };
|
|
12603
|
+
const _hoisted_2$f = ["src"];
|
|
12604
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
12591
12605
|
__name: "ImageBadge",
|
|
12592
12606
|
props: {
|
|
12593
12607
|
badge: {}
|
|
@@ -12607,7 +12621,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12607
12621
|
return `${props.badge.rootImageUrl}${src}`;
|
|
12608
12622
|
};
|
|
12609
12623
|
return (_ctx, _cache) => {
|
|
12610
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12624
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
12611
12625
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
12612
12626
|
return openBlock(), createElementBlock("div", {
|
|
12613
12627
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -12615,22 +12629,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12615
12629
|
}, [
|
|
12616
12630
|
createBaseVNode("img", {
|
|
12617
12631
|
src: getImageUrl(item)
|
|
12618
|
-
}, null, 8, _hoisted_2$
|
|
12632
|
+
}, null, 8, _hoisted_2$f)
|
|
12619
12633
|
]);
|
|
12620
12634
|
}), 128))
|
|
12621
12635
|
]);
|
|
12622
12636
|
};
|
|
12623
12637
|
}
|
|
12624
12638
|
});
|
|
12625
|
-
const _hoisted_1$
|
|
12639
|
+
const _hoisted_1$k = { id: "lupa-search-results-badges" };
|
|
12626
12640
|
const __default__$1 = {
|
|
12627
12641
|
components: {
|
|
12628
|
-
CustomBadge: _sfc_main$
|
|
12629
|
-
TextBadge: _sfc_main$
|
|
12630
|
-
ImageBadge: _sfc_main$
|
|
12642
|
+
CustomBadge: _sfc_main$q,
|
|
12643
|
+
TextBadge: _sfc_main$p,
|
|
12644
|
+
ImageBadge: _sfc_main$o
|
|
12631
12645
|
}
|
|
12632
12646
|
};
|
|
12633
|
-
const _sfc_main$
|
|
12647
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
12634
12648
|
__name: "SearchResultsBadgeWrapper",
|
|
12635
12649
|
props: {
|
|
12636
12650
|
position: {},
|
|
@@ -12676,7 +12690,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12676
12690
|
}
|
|
12677
12691
|
};
|
|
12678
12692
|
return (_ctx, _cache) => {
|
|
12679
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12693
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
12680
12694
|
createBaseVNode("div", {
|
|
12681
12695
|
id: "lupa-badges",
|
|
12682
12696
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -12687,7 +12701,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12687
12701
|
badge
|
|
12688
12702
|
}, null, 8, ["badge"]);
|
|
12689
12703
|
}), 128)),
|
|
12690
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
12704
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$r, {
|
|
12691
12705
|
key: 0,
|
|
12692
12706
|
options: _ctx.options
|
|
12693
12707
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -12696,7 +12710,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12696
12710
|
};
|
|
12697
12711
|
}
|
|
12698
12712
|
}));
|
|
12699
|
-
const _sfc_main$
|
|
12713
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
12700
12714
|
__name: "SearchResultsProductImage",
|
|
12701
12715
|
props: {
|
|
12702
12716
|
item: {},
|
|
@@ -12704,7 +12718,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12704
12718
|
},
|
|
12705
12719
|
setup(__props) {
|
|
12706
12720
|
return (_ctx, _cache) => {
|
|
12707
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12721
|
+
return openBlock(), createBlock(_sfc_main$13, {
|
|
12708
12722
|
item: _ctx.item,
|
|
12709
12723
|
options: _ctx.options,
|
|
12710
12724
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -12713,14 +12727,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12713
12727
|
};
|
|
12714
12728
|
}
|
|
12715
12729
|
});
|
|
12716
|
-
const _hoisted_1$
|
|
12717
|
-
const _hoisted_2$
|
|
12730
|
+
const _hoisted_1$j = ["innerHTML"];
|
|
12731
|
+
const _hoisted_2$e = ["title"];
|
|
12718
12732
|
const _hoisted_3$9 = {
|
|
12719
12733
|
key: 0,
|
|
12720
12734
|
class: "lupa-search-results-product-title-text"
|
|
12721
12735
|
};
|
|
12722
12736
|
const _hoisted_4$6 = ["href"];
|
|
12723
|
-
const _sfc_main$
|
|
12737
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
12724
12738
|
__name: "SearchResultsProductTitle",
|
|
12725
12739
|
props: {
|
|
12726
12740
|
item: {},
|
|
@@ -12753,7 +12767,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12753
12767
|
class: "lupa-search-results-product-title",
|
|
12754
12768
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12755
12769
|
innerHTML: title.value
|
|
12756
|
-
}, null, 12, _hoisted_1$
|
|
12770
|
+
}, null, 12, _hoisted_1$j)) : (openBlock(), createElementBlock("div", {
|
|
12757
12771
|
key: 1,
|
|
12758
12772
|
class: "lupa-search-results-product-title",
|
|
12759
12773
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -12766,12 +12780,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12766
12780
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
12767
12781
|
onClick: handleNavigation
|
|
12768
12782
|
}, toDisplayString(title.value), 9, _hoisted_4$6)) : createCommentVNode("", true)
|
|
12769
|
-
], 12, _hoisted_2$
|
|
12783
|
+
], 12, _hoisted_2$e));
|
|
12770
12784
|
};
|
|
12771
12785
|
}
|
|
12772
12786
|
});
|
|
12773
|
-
const _hoisted_1$
|
|
12774
|
-
const _sfc_main$
|
|
12787
|
+
const _hoisted_1$i = ["innerHTML"];
|
|
12788
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
12775
12789
|
__name: "SearchResultsProductDescription",
|
|
12776
12790
|
props: {
|
|
12777
12791
|
item: {},
|
|
@@ -12795,7 +12809,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12795
12809
|
class: "lupa-search-results-product-description",
|
|
12796
12810
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12797
12811
|
innerHTML: description.value
|
|
12798
|
-
}, null, 12, _hoisted_1$
|
|
12812
|
+
}, null, 12, _hoisted_1$i)) : (openBlock(), createElementBlock("div", {
|
|
12799
12813
|
key: 1,
|
|
12800
12814
|
class: "lupa-search-results-product-description",
|
|
12801
12815
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -12803,15 +12817,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12803
12817
|
};
|
|
12804
12818
|
}
|
|
12805
12819
|
});
|
|
12806
|
-
const _hoisted_1$
|
|
12807
|
-
const _hoisted_2$
|
|
12820
|
+
const _hoisted_1$h = { id: "lupa-search-results-rating" };
|
|
12821
|
+
const _hoisted_2$d = { class: "lupa-ratings" };
|
|
12808
12822
|
const _hoisted_3$8 = { class: "lupa-ratings-base" };
|
|
12809
12823
|
const _hoisted_4$5 = ["innerHTML"];
|
|
12810
12824
|
const _hoisted_5$3 = { class: "lupa-rating-wrapper" };
|
|
12811
12825
|
const _hoisted_6$1 = ["innerHTML"];
|
|
12812
12826
|
const _hoisted_7$1 = ["href"];
|
|
12813
12827
|
const STAR_COUNT = 5;
|
|
12814
|
-
const _sfc_main$
|
|
12828
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
12815
12829
|
__name: "SearchResultsProductRating",
|
|
12816
12830
|
props: {
|
|
12817
12831
|
item: {},
|
|
@@ -12842,8 +12856,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12842
12856
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
12843
12857
|
});
|
|
12844
12858
|
return (_ctx, _cache) => {
|
|
12845
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12846
|
-
createBaseVNode("div", _hoisted_2$
|
|
12859
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
12860
|
+
createBaseVNode("div", _hoisted_2$d, [
|
|
12847
12861
|
createBaseVNode("div", _hoisted_3$8, [
|
|
12848
12862
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
12849
12863
|
return openBlock(), createElementBlock("div", {
|
|
@@ -12876,11 +12890,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12876
12890
|
};
|
|
12877
12891
|
}
|
|
12878
12892
|
});
|
|
12879
|
-
const _hoisted_1$
|
|
12893
|
+
const _hoisted_1$g = {
|
|
12880
12894
|
class: "lupa-search-results-product-regular-price",
|
|
12881
12895
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
12882
12896
|
};
|
|
12883
|
-
const _sfc_main$
|
|
12897
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
12884
12898
|
__name: "SearchResultsProductRegularPrice",
|
|
12885
12899
|
props: {
|
|
12886
12900
|
item: {},
|
|
@@ -12898,15 +12912,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12898
12912
|
);
|
|
12899
12913
|
});
|
|
12900
12914
|
return (_ctx, _cache) => {
|
|
12901
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12915
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, toDisplayString(price.value), 1);
|
|
12902
12916
|
};
|
|
12903
12917
|
}
|
|
12904
12918
|
});
|
|
12905
|
-
const _hoisted_1$
|
|
12919
|
+
const _hoisted_1$f = {
|
|
12906
12920
|
class: "lupa-search-results-product-price",
|
|
12907
12921
|
"data-cy": "lupa-search-results-product-price"
|
|
12908
12922
|
};
|
|
12909
|
-
const _sfc_main$
|
|
12923
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
12910
12924
|
__name: "SearchResultsProductPrice",
|
|
12911
12925
|
props: {
|
|
12912
12926
|
item: {},
|
|
@@ -12924,16 +12938,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12924
12938
|
);
|
|
12925
12939
|
});
|
|
12926
12940
|
return (_ctx, _cache) => {
|
|
12927
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12941
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
12928
12942
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
12929
12943
|
]);
|
|
12930
12944
|
};
|
|
12931
12945
|
}
|
|
12932
12946
|
});
|
|
12933
|
-
const _hoisted_1$
|
|
12934
|
-
const _hoisted_2$
|
|
12947
|
+
const _hoisted_1$e = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
12948
|
+
const _hoisted_2$c = { class: "lupa-search-results-product-addtocart" };
|
|
12935
12949
|
const _hoisted_3$7 = ["onClick", "disabled"];
|
|
12936
|
-
const _sfc_main$
|
|
12950
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
12937
12951
|
__name: "SearchResultsProductAddToCart",
|
|
12938
12952
|
props: {
|
|
12939
12953
|
item: {},
|
|
@@ -12960,8 +12974,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12960
12974
|
loading.value = false;
|
|
12961
12975
|
});
|
|
12962
12976
|
return (_ctx, _cache) => {
|
|
12963
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12964
|
-
createBaseVNode("div", _hoisted_2$
|
|
12977
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
12978
|
+
createBaseVNode("div", _hoisted_2$c, [
|
|
12965
12979
|
createBaseVNode("button", {
|
|
12966
12980
|
onClick: withModifiers(handleClick, ["stop"]),
|
|
12967
12981
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
@@ -12973,12 +12987,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12973
12987
|
};
|
|
12974
12988
|
}
|
|
12975
12989
|
});
|
|
12976
|
-
const _hoisted_1$
|
|
12977
|
-
const _hoisted_2$
|
|
12990
|
+
const _hoisted_1$d = ["innerHTML"];
|
|
12991
|
+
const _hoisted_2$b = { key: 0 };
|
|
12978
12992
|
const _hoisted_3$6 = { key: 1 };
|
|
12979
12993
|
const _hoisted_4$4 = { class: "lupa-search-box-custom-label" };
|
|
12980
12994
|
const _hoisted_5$2 = { class: "lupa-search-box-custom-text" };
|
|
12981
|
-
const _sfc_main$
|
|
12995
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
12982
12996
|
__name: "SearchResultsProductCustom",
|
|
12983
12997
|
props: {
|
|
12984
12998
|
item: {},
|
|
@@ -13016,11 +13030,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13016
13030
|
key: 0,
|
|
13017
13031
|
class: className.value,
|
|
13018
13032
|
innerHTML: text.value
|
|
13019
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
13033
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$d)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
13020
13034
|
key: 1,
|
|
13021
13035
|
class: className.value
|
|
13022
13036
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
13023
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13037
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$b, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$6, [
|
|
13024
13038
|
createBaseVNode("div", _hoisted_4$4, toDisplayString(label.value), 1),
|
|
13025
13039
|
createBaseVNode("div", _hoisted_5$2, toDisplayString(text.value), 1)
|
|
13026
13040
|
]))
|
|
@@ -13028,8 +13042,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13028
13042
|
};
|
|
13029
13043
|
}
|
|
13030
13044
|
});
|
|
13031
|
-
const _hoisted_1$
|
|
13032
|
-
const _sfc_main$
|
|
13045
|
+
const _hoisted_1$c = ["innerHTML"];
|
|
13046
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
13033
13047
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
13034
13048
|
props: {
|
|
13035
13049
|
item: {},
|
|
@@ -13053,15 +13067,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13053
13067
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
13054
13068
|
class: className.value,
|
|
13055
13069
|
innerHTML: text.value
|
|
13056
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
13070
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$c);
|
|
13057
13071
|
};
|
|
13058
13072
|
}
|
|
13059
13073
|
});
|
|
13060
|
-
const _hoisted_1$
|
|
13061
|
-
const _hoisted_2$
|
|
13074
|
+
const _hoisted_1$b = { id: "lupa-search-results-rating" };
|
|
13075
|
+
const _hoisted_2$a = ["innerHTML"];
|
|
13062
13076
|
const _hoisted_3$5 = { class: "lupa-ratings" };
|
|
13063
13077
|
const _hoisted_4$3 = ["href"];
|
|
13064
|
-
const _sfc_main$
|
|
13078
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
13065
13079
|
__name: "SearchResultsProductSingleStarRating",
|
|
13066
13080
|
props: {
|
|
13067
13081
|
item: {},
|
|
@@ -13089,11 +13103,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13089
13103
|
return RATING_STAR_HTML;
|
|
13090
13104
|
});
|
|
13091
13105
|
return (_ctx, _cache) => {
|
|
13092
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13106
|
+
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
13093
13107
|
createBaseVNode("div", {
|
|
13094
13108
|
innerHTML: star.value,
|
|
13095
13109
|
class: "lupa-rating lupa-rating-highlighted"
|
|
13096
|
-
}, null, 8, _hoisted_2$
|
|
13110
|
+
}, null, 8, _hoisted_2$a),
|
|
13097
13111
|
createBaseVNode("div", _hoisted_3$5, toDisplayString(rating.value), 1),
|
|
13098
13112
|
createBaseVNode("a", {
|
|
13099
13113
|
href: ratingLink.value,
|
|
@@ -13105,19 +13119,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13105
13119
|
});
|
|
13106
13120
|
const __default__ = {
|
|
13107
13121
|
components: {
|
|
13108
|
-
SearchResultsProductImage: _sfc_main$
|
|
13109
|
-
SearchResultsProductTitle: _sfc_main$
|
|
13110
|
-
SearchResultsProductDescription: _sfc_main$
|
|
13111
|
-
SearchResultsProductRating: _sfc_main$
|
|
13112
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
13113
|
-
SearchResultsProductPrice: _sfc_main$
|
|
13114
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
13115
|
-
SearchResultsProductCustom: _sfc_main$
|
|
13116
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
13117
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
13122
|
+
SearchResultsProductImage: _sfc_main$m,
|
|
13123
|
+
SearchResultsProductTitle: _sfc_main$l,
|
|
13124
|
+
SearchResultsProductDescription: _sfc_main$k,
|
|
13125
|
+
SearchResultsProductRating: _sfc_main$j,
|
|
13126
|
+
SearchResultsProductRegularPrice: _sfc_main$i,
|
|
13127
|
+
SearchResultsProductPrice: _sfc_main$h,
|
|
13128
|
+
SearchResultsProductAddToCart: _sfc_main$g,
|
|
13129
|
+
SearchResultsProductCustom: _sfc_main$f,
|
|
13130
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$e,
|
|
13131
|
+
SearchResultsProductSingleStarRating: _sfc_main$d
|
|
13118
13132
|
}
|
|
13119
13133
|
};
|
|
13120
|
-
const _sfc_main$
|
|
13134
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
13121
13135
|
__name: "SearchResultsProductCardElement",
|
|
13122
13136
|
props: {
|
|
13123
13137
|
item: {},
|
|
@@ -13187,13 +13201,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13187
13201
|
};
|
|
13188
13202
|
}
|
|
13189
13203
|
}));
|
|
13190
|
-
const _hoisted_1$
|
|
13191
|
-
const _hoisted_2$
|
|
13204
|
+
const _hoisted_1$a = ["href"];
|
|
13205
|
+
const _hoisted_2$9 = {
|
|
13192
13206
|
key: 0,
|
|
13193
13207
|
class: "lupa-out-of-stock"
|
|
13194
13208
|
};
|
|
13195
13209
|
const _hoisted_3$4 = { class: "lupa-search-result-product-details-section" };
|
|
13196
|
-
const _sfc_main$
|
|
13210
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
13197
13211
|
__name: "SearchResultsProductCard",
|
|
13198
13212
|
props: {
|
|
13199
13213
|
product: {},
|
|
@@ -13338,7 +13352,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13338
13352
|
class: normalizeClass(["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]),
|
|
13339
13353
|
onClick: handleClick
|
|
13340
13354
|
}, [
|
|
13341
|
-
createVNode(_sfc_main$
|
|
13355
|
+
createVNode(_sfc_main$n, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
13342
13356
|
createBaseVNode("div", {
|
|
13343
13357
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
13344
13358
|
}, [
|
|
@@ -13348,7 +13362,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13348
13362
|
onClick: handleNavigation
|
|
13349
13363
|
}, [
|
|
13350
13364
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
13351
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13365
|
+
return openBlock(), createBlock(_sfc_main$c, {
|
|
13352
13366
|
class: "lupa-search-results-product-element",
|
|
13353
13367
|
item: _ctx.product,
|
|
13354
13368
|
element,
|
|
@@ -13358,16 +13372,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13358
13372
|
link: link.value
|
|
13359
13373
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
13360
13374
|
}), 128)),
|
|
13361
|
-
createVNode(_sfc_main$
|
|
13375
|
+
createVNode(_sfc_main$n, {
|
|
13362
13376
|
options: badgesOptions.value,
|
|
13363
13377
|
position: "image",
|
|
13364
13378
|
class: "lupa-image-badges"
|
|
13365
13379
|
}, null, 8, ["options"]),
|
|
13366
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13367
|
-
], 8, _hoisted_1$
|
|
13380
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
13381
|
+
], 8, _hoisted_1$a),
|
|
13368
13382
|
createBaseVNode("div", _hoisted_3$4, [
|
|
13369
13383
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
13370
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13384
|
+
return openBlock(), createBlock(_sfc_main$c, {
|
|
13371
13385
|
class: "lupa-search-results-product-element",
|
|
13372
13386
|
item: _ctx.product,
|
|
13373
13387
|
element,
|
|
@@ -13385,7 +13399,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13385
13399
|
class: normalizeClass("lupa-element-group-" + group)
|
|
13386
13400
|
}, [
|
|
13387
13401
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
13388
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13402
|
+
return openBlock(), createBlock(_sfc_main$c, {
|
|
13389
13403
|
class: "lupa-search-results-product-element",
|
|
13390
13404
|
item: _ctx.product,
|
|
13391
13405
|
element,
|
|
@@ -13403,42 +13417,6 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13403
13417
|
};
|
|
13404
13418
|
}
|
|
13405
13419
|
});
|
|
13406
|
-
const _hoisted_1$a = { id: "lupa-similar-query-text-component" };
|
|
13407
|
-
const _hoisted_2$9 = ["data-cy"];
|
|
13408
|
-
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
13409
|
-
__name: "SimilarQueryText",
|
|
13410
|
-
props: {
|
|
13411
|
-
similarQuery: {},
|
|
13412
|
-
label: {}
|
|
13413
|
-
},
|
|
13414
|
-
setup(__props) {
|
|
13415
|
-
const props = __props;
|
|
13416
|
-
const searchResultStore = useSearchResultStore();
|
|
13417
|
-
const { searchResult } = storeToRefs(searchResultStore);
|
|
13418
|
-
const searchText = computed(() => searchResult.value.searchText);
|
|
13419
|
-
const count = computed(() => {
|
|
13420
|
-
return props.similarQuery.count;
|
|
13421
|
-
});
|
|
13422
|
-
const insertValue = (text, query) => {
|
|
13423
|
-
return text.includes("{1}") ? addParamsToLabel(text, query).split(" ") : text.split(" ");
|
|
13424
|
-
};
|
|
13425
|
-
const getStyle = (text) => {
|
|
13426
|
-
return !props.similarQuery.query.includes(text) ? "lupa-similar-query-crossed" : "";
|
|
13427
|
-
};
|
|
13428
|
-
return (_ctx, _cache) => {
|
|
13429
|
-
return openBlock(), createElementBlock("span", _hoisted_1$a, [
|
|
13430
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(insertValue(_ctx.label, searchText.value), (text, index) => {
|
|
13431
|
-
return openBlock(), createElementBlock("span", {
|
|
13432
|
-
key: index,
|
|
13433
|
-
class: normalizeClass(getStyle(text)),
|
|
13434
|
-
"data-cy": getStyle(text)
|
|
13435
|
-
}, toDisplayString(text) + " ", 11, _hoisted_2$9);
|
|
13436
|
-
}), 128)),
|
|
13437
|
-
createTextVNode("(" + toDisplayString(count.value) + ") ", 1)
|
|
13438
|
-
]);
|
|
13439
|
-
};
|
|
13440
|
-
}
|
|
13441
|
-
});
|
|
13442
13420
|
const _hoisted_1$9 = {
|
|
13443
13421
|
id: "lupa-search-results-similar-queries",
|
|
13444
13422
|
"data-cy": "lupa-search-results-similar-queries"
|
|
@@ -13449,10 +13427,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13449
13427
|
"data-cy": "lupa-similar-query-label"
|
|
13450
13428
|
};
|
|
13451
13429
|
const _hoisted_4$2 = ["onClick"];
|
|
13452
|
-
const _hoisted_5$1 =
|
|
13453
|
-
const _hoisted_6 = { key:
|
|
13454
|
-
const _hoisted_7 = {
|
|
13455
|
-
const _hoisted_8 = {
|
|
13430
|
+
const _hoisted_5$1 = ["innerHTML"];
|
|
13431
|
+
const _hoisted_6 = { key: 0 };
|
|
13432
|
+
const _hoisted_7 = {
|
|
13456
13433
|
class: "lupa-products",
|
|
13457
13434
|
"data-cy": "lupa-products"
|
|
13458
13435
|
};
|
|
@@ -13472,6 +13449,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13472
13449
|
const getDocumentKey = (index, product) => {
|
|
13473
13450
|
return getProductKey(`${index}`, product, props.productCardOptions.idKey);
|
|
13474
13451
|
};
|
|
13452
|
+
const similarQueryLabel = computed(() => {
|
|
13453
|
+
var _a, _b;
|
|
13454
|
+
return (_b = (_a = props.labels.similarQuery) == null ? void 0 : _a.replace("{1}", "")) != null ? _b : "";
|
|
13455
|
+
});
|
|
13456
|
+
const getSimilarQueryContent = (displayQuery) => {
|
|
13457
|
+
return escapeHtml(displayQuery);
|
|
13458
|
+
};
|
|
13475
13459
|
const goToResults = ({
|
|
13476
13460
|
searchText,
|
|
13477
13461
|
facet
|
|
@@ -13484,27 +13468,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13484
13468
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
13485
13469
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
13486
13470
|
createBaseVNode("div", _hoisted_3$3, [
|
|
13487
|
-
|
|
13488
|
-
|
|
13489
|
-
|
|
13490
|
-
|
|
13491
|
-
|
|
13492
|
-
|
|
13493
|
-
|
|
13494
|
-
|
|
13495
|
-
|
|
13496
|
-
|
|
13497
|
-
|
|
13498
|
-
|
|
13499
|
-
], 8, _hoisted_4$2)) : (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(label) + " ", 1))
|
|
13500
|
-
]);
|
|
13501
|
-
}), 128)) : (openBlock(), createElementBlock("span", _hoisted_6, [
|
|
13502
|
-
createBaseVNode("span", _hoisted_7, toDisplayString(_ctx.labels.aiSuggestions), 1)
|
|
13503
|
-
]))
|
|
13471
|
+
createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
|
|
13472
|
+
createBaseVNode("span", {
|
|
13473
|
+
id: "lupa-similar-query-text-component",
|
|
13474
|
+
class: "lupa-similar-query-value lupa-similar-query-link",
|
|
13475
|
+
onClick: ($event) => goToResults({ searchText: similarQuery.query }),
|
|
13476
|
+
"data-cy": "lupa-similar-query-value"
|
|
13477
|
+
}, [
|
|
13478
|
+
createBaseVNode("span", {
|
|
13479
|
+
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
13480
|
+
}, null, 8, _hoisted_5$1),
|
|
13481
|
+
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
13482
|
+
], 8, _hoisted_4$2)
|
|
13504
13483
|
]),
|
|
13505
|
-
createBaseVNode("div",
|
|
13484
|
+
createBaseVNode("div", _hoisted_7, [
|
|
13506
13485
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
13507
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13486
|
+
return openBlock(), createBlock(_sfc_main$b, {
|
|
13508
13487
|
style: normalizeStyle(_ctx.columnSize),
|
|
13509
13488
|
key: getDocumentKey(index2, product),
|
|
13510
13489
|
product,
|
|
@@ -13601,7 +13580,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13601
13580
|
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
13602
13581
|
createBaseVNode("div", _hoisted_2$7, [
|
|
13603
13582
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
13604
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13583
|
+
return openBlock(), createBlock(_sfc_main$b, {
|
|
13605
13584
|
key: index,
|
|
13606
13585
|
product: item,
|
|
13607
13586
|
options: _ctx.panel,
|
|
@@ -13785,17 +13764,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13785
13764
|
class: "lupa-loader"
|
|
13786
13765
|
})) : createCommentVNode("", true),
|
|
13787
13766
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
13788
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13767
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$z, {
|
|
13789
13768
|
key: 0,
|
|
13790
13769
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
13791
13770
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13792
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13771
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$t, {
|
|
13793
13772
|
key: 1,
|
|
13794
13773
|
class: "lupa-toolbar-mobile",
|
|
13795
13774
|
options: _ctx.options,
|
|
13796
13775
|
"pagination-location": "top"
|
|
13797
13776
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13798
|
-
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
13777
|
+
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$M, {
|
|
13799
13778
|
key: 2,
|
|
13800
13779
|
class: normalizeClass(currentFiltersClass.value),
|
|
13801
13780
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -13809,7 +13788,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13809
13788
|
sdkOptions: _ctx.options.options
|
|
13810
13789
|
}, null, 8, ["options", "sdkOptions"]),
|
|
13811
13790
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
13812
|
-
createVNode(_sfc_main$
|
|
13791
|
+
createVNode(_sfc_main$t, {
|
|
13813
13792
|
class: "lupa-toolbar-top",
|
|
13814
13793
|
options: _ctx.options,
|
|
13815
13794
|
"pagination-location": "top"
|
|
@@ -13823,7 +13802,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13823
13802
|
options: productCardOptions.value
|
|
13824
13803
|
});
|
|
13825
13804
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
13826
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13805
|
+
return openBlock(), createBlock(_sfc_main$b, {
|
|
13827
13806
|
style: normalizeStyle(columnSize.value),
|
|
13828
13807
|
key: getProductKeyAction(index, product),
|
|
13829
13808
|
product,
|
|
@@ -13839,7 +13818,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13839
13818
|
onClick: goToFirstPage
|
|
13840
13819
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
13841
13820
|
])) : createCommentVNode("", true),
|
|
13842
|
-
createVNode(_sfc_main$
|
|
13821
|
+
createVNode(_sfc_main$t, {
|
|
13843
13822
|
class: "lupa-toolbar-bottom",
|
|
13844
13823
|
options: _ctx.options,
|
|
13845
13824
|
"pagination-location": "bottom"
|
|
@@ -13911,7 +13890,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13911
13890
|
onClick: handleNavigationBack
|
|
13912
13891
|
}, toDisplayString(backTitle.value), 9, _hoisted_3$1)
|
|
13913
13892
|
])) : createCommentVNode("", true),
|
|
13914
|
-
createVNode(_sfc_main$
|
|
13893
|
+
createVNode(_sfc_main$t, {
|
|
13915
13894
|
class: "lupa-toolbar-mobile",
|
|
13916
13895
|
"pagination-location": "top",
|
|
13917
13896
|
options: _ctx.options
|
|
@@ -14122,8 +14101,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14122
14101
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
14123
14102
|
}, [
|
|
14124
14103
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
14125
|
-
createVNode(_sfc_main$
|
|
14126
|
-
createVNode(_sfc_main$
|
|
14104
|
+
createVNode(_sfc_main$Q, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14105
|
+
createVNode(_sfc_main$O, {
|
|
14127
14106
|
"show-summary": true,
|
|
14128
14107
|
options: _ctx.options,
|
|
14129
14108
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
@@ -14133,24 +14112,24 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14133
14112
|
key: 1,
|
|
14134
14113
|
options: _ctx.options
|
|
14135
14114
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14136
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
14115
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$B, {
|
|
14137
14116
|
key: 2,
|
|
14138
14117
|
options: _ctx.options.filters
|
|
14139
14118
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14140
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
14119
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$A, {
|
|
14141
14120
|
key: 3,
|
|
14142
14121
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
14143
14122
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
14144
14123
|
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
|
|
14145
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14124
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$C, {
|
|
14146
14125
|
key: 0,
|
|
14147
14126
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
14148
14127
|
ref_key: "searchResultsFilters",
|
|
14149
14128
|
ref: searchResultsFilters
|
|
14150
14129
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14151
14130
|
createBaseVNode("div", _hoisted_3, [
|
|
14152
|
-
createVNode(_sfc_main$
|
|
14153
|
-
createVNode(_sfc_main$
|
|
14131
|
+
createVNode(_sfc_main$Q, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14132
|
+
createVNode(_sfc_main$O, {
|
|
14154
14133
|
options: _ctx.options,
|
|
14155
14134
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
14156
14135
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -14165,13 +14144,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14165
14144
|
}, 8, ["options", "ssr"])
|
|
14166
14145
|
])
|
|
14167
14146
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
14168
|
-
createVNode(_sfc_main$
|
|
14169
|
-
createVNode(_sfc_main$
|
|
14147
|
+
createVNode(_sfc_main$Q, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14148
|
+
createVNode(_sfc_main$O, {
|
|
14170
14149
|
options: _ctx.options,
|
|
14171
14150
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
14172
14151
|
}, null, 8, ["options", "is-product-list"]),
|
|
14173
14152
|
createBaseVNode("div", _hoisted_4, [
|
|
14174
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14153
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$C, {
|
|
14175
14154
|
key: 0,
|
|
14176
14155
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
14177
14156
|
ref_key: "searchResultsFilters",
|
|
@@ -19799,7 +19778,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
19799
19778
|
onClick: withModifiers(innerClick, ["stop"])
|
|
19800
19779
|
}, [
|
|
19801
19780
|
createBaseVNode("div", _hoisted_2$1, [
|
|
19802
|
-
createVNode(_sfc_main$
|
|
19781
|
+
createVNode(_sfc_main$R, {
|
|
19803
19782
|
options: fullSearchBoxOptions.value,
|
|
19804
19783
|
"is-search-container": true,
|
|
19805
19784
|
ref_key: "searchBox",
|
|
@@ -20522,7 +20501,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20522
20501
|
class: "lupa-recommended-products",
|
|
20523
20502
|
"data-cy": "lupa-recommended-products"
|
|
20524
20503
|
};
|
|
20525
|
-
const _sfc_main$
|
|
20504
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
20526
20505
|
__name: "Recommendations",
|
|
20527
20506
|
props: {
|
|
20528
20507
|
options: {}
|
|
@@ -20620,7 +20599,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20620
20599
|
key: getProductKeyAction(index, product)
|
|
20621
20600
|
}, {
|
|
20622
20601
|
default: withCtx(() => [
|
|
20623
|
-
createVNode(_sfc_main$
|
|
20602
|
+
createVNode(_sfc_main$b, {
|
|
20624
20603
|
product,
|
|
20625
20604
|
options: _ctx.options,
|
|
20626
20605
|
"click-tracking-settings": clickTrackingSettings.value
|
|
@@ -26199,7 +26178,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26199
26178
|
};
|
|
26200
26179
|
__expose({ fetch: fetch2 });
|
|
26201
26180
|
return (_ctx, _cache) => {
|
|
26202
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26181
|
+
return openBlock(), createBlock(unref(_sfc_main$R), {
|
|
26203
26182
|
options: fullSearchBoxOptions.value,
|
|
26204
26183
|
ref_key: "searchBox",
|
|
26205
26184
|
ref: searchBox2
|
|
@@ -26455,7 +26434,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26455
26434
|
};
|
|
26456
26435
|
__expose({ fetch: fetch2 });
|
|
26457
26436
|
return (_ctx, _cache) => {
|
|
26458
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26437
|
+
return openBlock(), createBlock(unref(_sfc_main$1b), {
|
|
26459
26438
|
options: _ctx.recommendationOptions,
|
|
26460
26439
|
ref_key: "productRecommendations",
|
|
26461
26440
|
ref: productRecommendations
|