@getlupa/client 1.1.5 → 1.1.7
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 +372 -321
- package/dist/lupaSearch.js +372 -321
- package/dist/lupaSearch.mjs +372 -321
- package/dist/lupaSearch.umd.js +372 -321
- package/package.json +2 -2
package/dist/lupaSearch.umd.js
CHANGED
|
@@ -7644,16 +7644,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7644
7644
|
resetHighlightIndex
|
|
7645
7645
|
};
|
|
7646
7646
|
});
|
|
7647
|
-
const _hoisted_1$
|
|
7648
|
-
const _hoisted_2$
|
|
7649
|
-
const _hoisted_3$
|
|
7650
|
-
const _hoisted_4$
|
|
7647
|
+
const _hoisted_1$13 = { id: "lupa-search-box-input-container" };
|
|
7648
|
+
const _hoisted_2$J = { class: "lupa-input-clear" };
|
|
7649
|
+
const _hoisted_3$v = { id: "lupa-search-box-input" };
|
|
7650
|
+
const _hoisted_4$o = ["value"];
|
|
7651
7651
|
const _hoisted_5$c = ["placeholder"];
|
|
7652
7652
|
const _hoisted_6$6 = {
|
|
7653
7653
|
key: 0,
|
|
7654
7654
|
class: "lupa-close-label"
|
|
7655
7655
|
};
|
|
7656
|
-
const _sfc_main$
|
|
7656
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
7657
7657
|
__name: "SearchBoxInput",
|
|
7658
7658
|
props: {
|
|
7659
7659
|
options: {},
|
|
@@ -7730,19 +7730,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7730
7730
|
};
|
|
7731
7731
|
__expose({ focus });
|
|
7732
7732
|
return (_ctx, _cache) => {
|
|
7733
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7734
|
-
createBaseVNode("div", _hoisted_2$
|
|
7733
|
+
return openBlock(), createElementBlock("div", _hoisted_1$13, [
|
|
7734
|
+
createBaseVNode("div", _hoisted_2$J, [
|
|
7735
7735
|
createBaseVNode("div", {
|
|
7736
7736
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
7737
7737
|
onClick: clear2
|
|
7738
7738
|
}, null, 2)
|
|
7739
7739
|
]),
|
|
7740
|
-
createBaseVNode("div", _hoisted_3$
|
|
7740
|
+
createBaseVNode("div", _hoisted_3$v, [
|
|
7741
7741
|
createBaseVNode("input", {
|
|
7742
7742
|
class: "lupa-hint",
|
|
7743
7743
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
7744
7744
|
disabled: ""
|
|
7745
|
-
}, null, 8, _hoisted_4$
|
|
7745
|
+
}, null, 8, _hoisted_4$o),
|
|
7746
7746
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
7747
7747
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
7748
7748
|
}, inputAttributes.value, {
|
|
@@ -7770,7 +7770,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7770
7770
|
};
|
|
7771
7771
|
}
|
|
7772
7772
|
});
|
|
7773
|
-
const _sfc_main$
|
|
7773
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
7774
7774
|
__name: "SearchBoxMoreResults",
|
|
7775
7775
|
props: {
|
|
7776
7776
|
labels: {},
|
|
@@ -7802,9 +7802,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7802
7802
|
};
|
|
7803
7803
|
}
|
|
7804
7804
|
});
|
|
7805
|
-
const _hoisted_1$
|
|
7806
|
-
const _hoisted_2$
|
|
7807
|
-
const _sfc_main$
|
|
7805
|
+
const _hoisted_1$12 = { class: "lupa-search-box-history-item" };
|
|
7806
|
+
const _hoisted_2$I = { class: "lupa-search-box-history-item-content" };
|
|
7807
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
7808
7808
|
__name: "SearchBoxHistoryItem",
|
|
7809
7809
|
props: {
|
|
7810
7810
|
item: {},
|
|
@@ -7820,8 +7820,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7820
7820
|
emit2("click", { query: props.item });
|
|
7821
7821
|
};
|
|
7822
7822
|
return (_ctx, _cache) => {
|
|
7823
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7824
|
-
createBaseVNode("div", _hoisted_2$
|
|
7823
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
7824
|
+
createBaseVNode("div", _hoisted_2$I, [
|
|
7825
7825
|
createBaseVNode("div", {
|
|
7826
7826
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
7827
7827
|
onClick: click2
|
|
@@ -7835,11 +7835,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7835
7835
|
};
|
|
7836
7836
|
}
|
|
7837
7837
|
});
|
|
7838
|
-
const _hoisted_1$
|
|
7838
|
+
const _hoisted_1$11 = {
|
|
7839
7839
|
key: 0,
|
|
7840
7840
|
class: "lupa-search-box-history-panel"
|
|
7841
7841
|
};
|
|
7842
|
-
const _sfc_main$
|
|
7842
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
7843
7843
|
__name: "SearchBoxHistoryPanel",
|
|
7844
7844
|
props: {
|
|
7845
7845
|
options: {}
|
|
@@ -7880,9 +7880,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7880
7880
|
}
|
|
7881
7881
|
};
|
|
7882
7882
|
return (_ctx, _cache) => {
|
|
7883
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7883
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
7884
7884
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
7885
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7885
|
+
return openBlock(), createBlock(_sfc_main$19, {
|
|
7886
7886
|
key: item,
|
|
7887
7887
|
item,
|
|
7888
7888
|
highlighted: index === highlightIndex.value,
|
|
@@ -7898,18 +7898,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7898
7898
|
};
|
|
7899
7899
|
}
|
|
7900
7900
|
});
|
|
7901
|
-
const _hoisted_1
|
|
7902
|
-
const _hoisted_2$
|
|
7901
|
+
const _hoisted_1$10 = ["innerHTML"];
|
|
7902
|
+
const _hoisted_2$H = {
|
|
7903
7903
|
key: 1,
|
|
7904
7904
|
"data-cy": "lupa-suggestion-value",
|
|
7905
7905
|
class: "lupa-suggestion-value"
|
|
7906
7906
|
};
|
|
7907
|
-
const _hoisted_3$
|
|
7907
|
+
const _hoisted_3$u = {
|
|
7908
7908
|
key: 2,
|
|
7909
7909
|
class: "lupa-suggestion-facet",
|
|
7910
7910
|
"data-cy": "lupa-suggestion-facet"
|
|
7911
7911
|
};
|
|
7912
|
-
const _hoisted_4$
|
|
7912
|
+
const _hoisted_4$n = {
|
|
7913
7913
|
class: "lupa-suggestion-facet-label",
|
|
7914
7914
|
"data-cy": "lupa-suggestion-facet-label"
|
|
7915
7915
|
};
|
|
@@ -7917,7 +7917,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7917
7917
|
class: "lupa-suggestion-facet-value",
|
|
7918
7918
|
"data-cy": "lupa-suggestion-facet-value"
|
|
7919
7919
|
};
|
|
7920
|
-
const _sfc_main$
|
|
7920
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
7921
7921
|
__name: "SearchBoxSuggestion",
|
|
7922
7922
|
props: {
|
|
7923
7923
|
suggestion: {},
|
|
@@ -7953,20 +7953,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7953
7953
|
class: "lupa-suggestion-value",
|
|
7954
7954
|
"data-cy": "lupa-suggestion-value",
|
|
7955
7955
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
7956
|
-
}, null, 8, _hoisted_1
|
|
7957
|
-
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
7958
|
-
createBaseVNode("span", _hoisted_4$
|
|
7956
|
+
}, null, 8, _hoisted_1$10)) : (openBlock(), createElementBlock("div", _hoisted_2$H, toDisplayString(_ctx.suggestion.display), 1)),
|
|
7957
|
+
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
|
|
7958
|
+
createBaseVNode("span", _hoisted_4$n, toDisplayString(facetLabel.value), 1),
|
|
7959
7959
|
createBaseVNode("span", _hoisted_5$b, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
7960
7960
|
])) : createCommentVNode("", true)
|
|
7961
7961
|
]);
|
|
7962
7962
|
};
|
|
7963
7963
|
}
|
|
7964
7964
|
});
|
|
7965
|
-
const _hoisted_1
|
|
7965
|
+
const _hoisted_1$$ = {
|
|
7966
7966
|
id: "lupa-search-box-suggestions",
|
|
7967
7967
|
"data-cy": "lupa-search-box-suggestions"
|
|
7968
7968
|
};
|
|
7969
|
-
const _sfc_main$
|
|
7969
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
7970
7970
|
__name: "SearchBoxSuggestions",
|
|
7971
7971
|
props: {
|
|
7972
7972
|
items: {},
|
|
@@ -8026,9 +8026,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8026
8026
|
});
|
|
8027
8027
|
});
|
|
8028
8028
|
return (_ctx, _cache) => {
|
|
8029
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
8029
|
+
return openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
8030
8030
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
8031
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8031
|
+
return openBlock(), createBlock(_sfc_main$17, {
|
|
8032
8032
|
key: getSuggestionKey(item),
|
|
8033
8033
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
8034
8034
|
suggestion: item,
|
|
@@ -8056,7 +8056,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8056
8056
|
}, timeout);
|
|
8057
8057
|
};
|
|
8058
8058
|
};
|
|
8059
|
-
const _sfc_main$
|
|
8059
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
8060
8060
|
__name: "SearchBoxSuggestionsWrapper",
|
|
8061
8061
|
props: {
|
|
8062
8062
|
panel: {},
|
|
@@ -8097,7 +8097,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8097
8097
|
};
|
|
8098
8098
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
8099
8099
|
return (_ctx, _cache) => {
|
|
8100
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8100
|
+
return openBlock(), createBlock(_sfc_main$16, {
|
|
8101
8101
|
items: searchResult.value,
|
|
8102
8102
|
highlight: _ctx.panel.highlight,
|
|
8103
8103
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -8175,8 +8175,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8175
8175
|
});
|
|
8176
8176
|
return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
|
|
8177
8177
|
});
|
|
8178
|
-
const _hoisted_1$
|
|
8179
|
-
const _sfc_main$
|
|
8178
|
+
const _hoisted_1$_ = ["src"];
|
|
8179
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
8180
8180
|
__name: "ProductImage",
|
|
8181
8181
|
props: {
|
|
8182
8182
|
item: {},
|
|
@@ -8224,12 +8224,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8224
8224
|
class: normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
|
|
8225
8225
|
src: finalUrl.value,
|
|
8226
8226
|
onError: replaceWithPlaceholder
|
|
8227
|
-
}, null, 42, _hoisted_1$
|
|
8227
|
+
}, null, 42, _hoisted_1$_)
|
|
8228
8228
|
], 2);
|
|
8229
8229
|
};
|
|
8230
8230
|
}
|
|
8231
8231
|
});
|
|
8232
|
-
const _sfc_main$
|
|
8232
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
8233
8233
|
__name: "SearchBoxProductImage",
|
|
8234
8234
|
props: {
|
|
8235
8235
|
item: {},
|
|
@@ -8237,7 +8237,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8237
8237
|
},
|
|
8238
8238
|
setup(__props) {
|
|
8239
8239
|
return (_ctx, _cache) => {
|
|
8240
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8240
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
8241
8241
|
item: _ctx.item,
|
|
8242
8242
|
options: _ctx.options,
|
|
8243
8243
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -8246,12 +8246,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8246
8246
|
};
|
|
8247
8247
|
}
|
|
8248
8248
|
});
|
|
8249
|
-
const _hoisted_1$
|
|
8250
|
-
const _hoisted_2$
|
|
8249
|
+
const _hoisted_1$Z = ["innerHTML"];
|
|
8250
|
+
const _hoisted_2$G = {
|
|
8251
8251
|
key: 1,
|
|
8252
8252
|
class: "lupa-search-box-product-title"
|
|
8253
8253
|
};
|
|
8254
|
-
const _sfc_main$
|
|
8254
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
8255
8255
|
__name: "SearchBoxProductTitle",
|
|
8256
8256
|
props: {
|
|
8257
8257
|
item: {},
|
|
@@ -8271,18 +8271,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8271
8271
|
key: 0,
|
|
8272
8272
|
class: "lupa-search-box-product-title",
|
|
8273
8273
|
innerHTML: title.value
|
|
8274
|
-
}, null, 8, _hoisted_1$
|
|
8274
|
+
}, null, 8, _hoisted_1$Z)) : (openBlock(), createElementBlock("div", _hoisted_2$G, [
|
|
8275
8275
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
8276
8276
|
]));
|
|
8277
8277
|
};
|
|
8278
8278
|
}
|
|
8279
8279
|
});
|
|
8280
|
-
const _hoisted_1$
|
|
8281
|
-
const _hoisted_2$
|
|
8280
|
+
const _hoisted_1$Y = ["innerHTML"];
|
|
8281
|
+
const _hoisted_2$F = {
|
|
8282
8282
|
key: 1,
|
|
8283
8283
|
class: "lupa-search-box-product-description"
|
|
8284
8284
|
};
|
|
8285
|
-
const _sfc_main$
|
|
8285
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
8286
8286
|
__name: "SearchBoxProductDescription",
|
|
8287
8287
|
props: {
|
|
8288
8288
|
item: {},
|
|
@@ -8302,12 +8302,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8302
8302
|
key: 0,
|
|
8303
8303
|
class: "lupa-search-box-product-description",
|
|
8304
8304
|
innerHTML: description.value
|
|
8305
|
-
}, null, 8, _hoisted_1$
|
|
8305
|
+
}, null, 8, _hoisted_1$Y)) : (openBlock(), createElementBlock("div", _hoisted_2$F, toDisplayString(description.value), 1));
|
|
8306
8306
|
};
|
|
8307
8307
|
}
|
|
8308
8308
|
});
|
|
8309
|
-
const _hoisted_1$
|
|
8310
|
-
const _sfc_main
|
|
8309
|
+
const _hoisted_1$X = { class: "lupa-search-box-product-price" };
|
|
8310
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
8311
8311
|
__name: "SearchBoxProductPrice",
|
|
8312
8312
|
props: {
|
|
8313
8313
|
item: {},
|
|
@@ -8325,14 +8325,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8325
8325
|
);
|
|
8326
8326
|
});
|
|
8327
8327
|
return (_ctx, _cache) => {
|
|
8328
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8328
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
8329
8329
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
8330
8330
|
]);
|
|
8331
8331
|
};
|
|
8332
8332
|
}
|
|
8333
8333
|
});
|
|
8334
|
-
const _hoisted_1$
|
|
8335
|
-
const _sfc_main
|
|
8334
|
+
const _hoisted_1$W = { class: "lupa-search-box-product-regular-price" };
|
|
8335
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
8336
8336
|
__name: "SearchBoxProductRegularPrice",
|
|
8337
8337
|
props: {
|
|
8338
8338
|
item: {},
|
|
@@ -8350,16 +8350,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8350
8350
|
);
|
|
8351
8351
|
});
|
|
8352
8352
|
return (_ctx, _cache) => {
|
|
8353
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8353
|
+
return openBlock(), createElementBlock("div", _hoisted_1$W, toDisplayString(price.value), 1);
|
|
8354
8354
|
};
|
|
8355
8355
|
}
|
|
8356
8356
|
});
|
|
8357
|
-
const _hoisted_1$
|
|
8358
|
-
const _hoisted_2$
|
|
8359
|
-
const _hoisted_3$
|
|
8360
|
-
const _hoisted_4$
|
|
8357
|
+
const _hoisted_1$V = ["innerHTML"];
|
|
8358
|
+
const _hoisted_2$E = { key: 0 };
|
|
8359
|
+
const _hoisted_3$t = { key: 1 };
|
|
8360
|
+
const _hoisted_4$m = { class: "lupa-search-box-custom-label" };
|
|
8361
8361
|
const _hoisted_5$a = { class: "lupa-search-box-custom-text" };
|
|
8362
|
-
const _sfc_main$
|
|
8362
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
8363
8363
|
__name: "SearchBoxProductCustom",
|
|
8364
8364
|
props: {
|
|
8365
8365
|
item: {},
|
|
@@ -8385,20 +8385,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8385
8385
|
key: 0,
|
|
8386
8386
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
8387
8387
|
innerHTML: text.value
|
|
8388
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
8388
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$V)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
8389
8389
|
key: 1,
|
|
8390
8390
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
8391
8391
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
8392
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
8393
|
-
createBaseVNode("div", _hoisted_4$
|
|
8392
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$E, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
8393
|
+
createBaseVNode("div", _hoisted_4$m, toDisplayString(label.value), 1),
|
|
8394
8394
|
createBaseVNode("div", _hoisted_5$a, toDisplayString(text.value), 1)
|
|
8395
8395
|
]))
|
|
8396
8396
|
], 16));
|
|
8397
8397
|
};
|
|
8398
8398
|
}
|
|
8399
8399
|
});
|
|
8400
|
-
const _hoisted_1$
|
|
8401
|
-
const _sfc_main$
|
|
8400
|
+
const _hoisted_1$U = ["innerHTML"];
|
|
8401
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
8402
8402
|
__name: "SearchBoxProductCustomHtml",
|
|
8403
8403
|
props: {
|
|
8404
8404
|
item: {},
|
|
@@ -8418,7 +8418,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8418
8418
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
8419
8419
|
class: className.value,
|
|
8420
8420
|
innerHTML: text.value
|
|
8421
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
8421
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$U);
|
|
8422
8422
|
};
|
|
8423
8423
|
}
|
|
8424
8424
|
});
|
|
@@ -8613,10 +8613,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8613
8613
|
setLoading
|
|
8614
8614
|
};
|
|
8615
8615
|
});
|
|
8616
|
-
const _hoisted_1$
|
|
8617
|
-
const _hoisted_2$
|
|
8618
|
-
const _hoisted_3$
|
|
8619
|
-
const _sfc_main$
|
|
8616
|
+
const _hoisted_1$T = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
8617
|
+
const _hoisted_2$D = { class: "lupa-search-box-product-addtocart" };
|
|
8618
|
+
const _hoisted_3$s = ["onClick", "disabled"];
|
|
8619
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
8620
8620
|
__name: "SearchBoxProductAddToCart",
|
|
8621
8621
|
props: {
|
|
8622
8622
|
item: {},
|
|
@@ -8643,15 +8643,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8643
8643
|
loading.value = false;
|
|
8644
8644
|
});
|
|
8645
8645
|
return (_ctx, _cache) => {
|
|
8646
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8647
|
-
createBaseVNode("div", _hoisted_2$
|
|
8646
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
8647
|
+
createBaseVNode("div", _hoisted_2$D, [
|
|
8648
8648
|
createBaseVNode("button", {
|
|
8649
8649
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
8650
8650
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
8651
8651
|
"data-cy": "lupa-add-to-cart",
|
|
8652
8652
|
type: "button",
|
|
8653
8653
|
disabled: !inStockValue.value || loading.value
|
|
8654
|
-
}, toDisplayString(label.value), 11, _hoisted_3$
|
|
8654
|
+
}, toDisplayString(label.value), 11, _hoisted_3$s)
|
|
8655
8655
|
])
|
|
8656
8656
|
]);
|
|
8657
8657
|
};
|
|
@@ -8659,17 +8659,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8659
8659
|
});
|
|
8660
8660
|
const __default__$4 = {
|
|
8661
8661
|
components: {
|
|
8662
|
-
SearchBoxProductImage: _sfc_main$
|
|
8663
|
-
SearchBoxProductTitle: _sfc_main$
|
|
8664
|
-
SearchBoxProductDescription: _sfc_main$
|
|
8665
|
-
SearchBoxProductPrice: _sfc_main
|
|
8666
|
-
SearchBoxProductRegularPrice: _sfc_main
|
|
8667
|
-
SearchBoxProductCustom: _sfc_main$
|
|
8668
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
8669
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
8662
|
+
SearchBoxProductImage: _sfc_main$13,
|
|
8663
|
+
SearchBoxProductTitle: _sfc_main$12,
|
|
8664
|
+
SearchBoxProductDescription: _sfc_main$11,
|
|
8665
|
+
SearchBoxProductPrice: _sfc_main$10,
|
|
8666
|
+
SearchBoxProductRegularPrice: _sfc_main$$,
|
|
8667
|
+
SearchBoxProductCustom: _sfc_main$_,
|
|
8668
|
+
SearchBoxProductCustomHtml: _sfc_main$Z,
|
|
8669
|
+
SearchBoxProductAddToCart: _sfc_main$Y
|
|
8670
8670
|
}
|
|
8671
8671
|
};
|
|
8672
|
-
const _sfc_main$
|
|
8672
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
8673
8673
|
__name: "SearchBoxProductElement",
|
|
8674
8674
|
props: {
|
|
8675
8675
|
item: {},
|
|
@@ -8783,14 +8783,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8783
8783
|
};
|
|
8784
8784
|
return { trackSearch, trackResults, trackEvent };
|
|
8785
8785
|
});
|
|
8786
|
-
const _hoisted_1$
|
|
8787
|
-
const _hoisted_2$
|
|
8788
|
-
const _hoisted_3$
|
|
8789
|
-
const _hoisted_4$
|
|
8786
|
+
const _hoisted_1$S = ["href"];
|
|
8787
|
+
const _hoisted_2$C = { class: "lupa-search-box-product-image-section" };
|
|
8788
|
+
const _hoisted_3$r = { class: "lupa-search-box-product-details-section" };
|
|
8789
|
+
const _hoisted_4$l = {
|
|
8790
8790
|
key: 0,
|
|
8791
8791
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
8792
8792
|
};
|
|
8793
|
-
const _sfc_main$
|
|
8793
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
8794
8794
|
__name: "SearchBoxProduct",
|
|
8795
8795
|
props: {
|
|
8796
8796
|
item: {},
|
|
@@ -8883,9 +8883,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8883
8883
|
href: link.value,
|
|
8884
8884
|
onClick: handleClick
|
|
8885
8885
|
}, [
|
|
8886
|
-
createBaseVNode("div", _hoisted_2$
|
|
8886
|
+
createBaseVNode("div", _hoisted_2$C, [
|
|
8887
8887
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
8888
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8888
|
+
return openBlock(), createBlock(_sfc_main$X, {
|
|
8889
8889
|
class: "lupa-search-box-product-element",
|
|
8890
8890
|
item: _ctx.item,
|
|
8891
8891
|
element,
|
|
@@ -8895,9 +8895,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8895
8895
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
8896
8896
|
}), 128))
|
|
8897
8897
|
]),
|
|
8898
|
-
createBaseVNode("div", _hoisted_3$
|
|
8898
|
+
createBaseVNode("div", _hoisted_3$r, [
|
|
8899
8899
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
8900
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8900
|
+
return openBlock(), createBlock(_sfc_main$X, {
|
|
8901
8901
|
class: "lupa-search-box-product-element",
|
|
8902
8902
|
item: _ctx.item,
|
|
8903
8903
|
element,
|
|
@@ -8907,8 +8907,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8907
8907
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
8908
8908
|
}), 128))
|
|
8909
8909
|
]),
|
|
8910
|
-
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
8911
|
-
createVNode(_sfc_main$
|
|
8910
|
+
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$l, [
|
|
8911
|
+
createVNode(_sfc_main$X, {
|
|
8912
8912
|
class: "lupa-search-box-product-element",
|
|
8913
8913
|
item: _ctx.item,
|
|
8914
8914
|
element: addToCartElement.value,
|
|
@@ -8917,12 +8917,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8917
8917
|
isInStock: isInStock.value
|
|
8918
8918
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
8919
8919
|
])) : createCommentVNode("", true)
|
|
8920
|
-
], 10, _hoisted_1$
|
|
8920
|
+
], 10, _hoisted_1$S);
|
|
8921
8921
|
};
|
|
8922
8922
|
}
|
|
8923
8923
|
});
|
|
8924
|
-
const _hoisted_1$
|
|
8925
|
-
const _sfc_main$
|
|
8924
|
+
const _hoisted_1$R = { id: "lupa-search-box-products" };
|
|
8925
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
8926
8926
|
__name: "SearchBoxProducts",
|
|
8927
8927
|
props: {
|
|
8928
8928
|
items: {},
|
|
@@ -8942,7 +8942,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8942
8942
|
return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
|
|
8943
8943
|
});
|
|
8944
8944
|
return (_ctx, _cache) => {
|
|
8945
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8945
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
8946
8946
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
8947
8947
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
8948
8948
|
key: index,
|
|
@@ -8954,7 +8954,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8954
8954
|
onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
|
|
8955
8955
|
});
|
|
8956
8956
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
8957
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8957
|
+
return openBlock(), createBlock(_sfc_main$W, {
|
|
8958
8958
|
key: index,
|
|
8959
8959
|
item,
|
|
8960
8960
|
panelOptions: _ctx.panelOptions,
|
|
@@ -8968,7 +8968,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8968
8968
|
};
|
|
8969
8969
|
}
|
|
8970
8970
|
});
|
|
8971
|
-
const _sfc_main$
|
|
8971
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
8972
8972
|
__name: "SearchBoxProductsWrapper",
|
|
8973
8973
|
props: {
|
|
8974
8974
|
panel: {},
|
|
@@ -9020,7 +9020,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9020
9020
|
const getItemsDebounced = debounce$1(getItems, props.debounce);
|
|
9021
9021
|
return (_ctx, _cache) => {
|
|
9022
9022
|
var _a, _b;
|
|
9023
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9023
|
+
return openBlock(), createBlock(_sfc_main$V, {
|
|
9024
9024
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
9025
9025
|
panelOptions: _ctx.panel,
|
|
9026
9026
|
labels: _ctx.labels,
|
|
@@ -9038,26 +9038,26 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9038
9038
|
};
|
|
9039
9039
|
}
|
|
9040
9040
|
});
|
|
9041
|
-
const _hoisted_1$
|
|
9041
|
+
const _hoisted_1$Q = {
|
|
9042
9042
|
key: 0,
|
|
9043
9043
|
id: "lupa-search-box-panel"
|
|
9044
9044
|
};
|
|
9045
|
-
const _hoisted_2$
|
|
9045
|
+
const _hoisted_2$B = {
|
|
9046
9046
|
class: "lupa-main-panel",
|
|
9047
9047
|
"data-cy": "lupa-main-panel"
|
|
9048
9048
|
};
|
|
9049
|
-
const _hoisted_3$
|
|
9050
|
-
const _hoisted_4$
|
|
9049
|
+
const _hoisted_3$q = ["data-cy"];
|
|
9050
|
+
const _hoisted_4$k = {
|
|
9051
9051
|
key: 1,
|
|
9052
9052
|
id: "lupa-search-box-panel"
|
|
9053
9053
|
};
|
|
9054
9054
|
const __default__$3 = {
|
|
9055
9055
|
components: {
|
|
9056
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
9057
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
9056
|
+
SearchBoxSuggestionsWrapper: _sfc_main$15,
|
|
9057
|
+
SearchBoxProductsWrapper: _sfc_main$U
|
|
9058
9058
|
}
|
|
9059
9059
|
};
|
|
9060
|
-
const _sfc_main$
|
|
9060
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
9061
9061
|
__name: "SearchBoxMainPanel",
|
|
9062
9062
|
props: {
|
|
9063
9063
|
options: {},
|
|
@@ -9171,8 +9171,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9171
9171
|
ref_key: "panelContainer",
|
|
9172
9172
|
ref: panelContainer
|
|
9173
9173
|
}, [
|
|
9174
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9175
|
-
createBaseVNode("div", _hoisted_2$
|
|
9174
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
9175
|
+
createBaseVNode("div", _hoisted_2$B, [
|
|
9176
9176
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayPanels.value, (panel, index) => {
|
|
9177
9177
|
return openBlock(), createElementBlock("div", {
|
|
9178
9178
|
key: index,
|
|
@@ -9201,16 +9201,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9201
9201
|
key: "0"
|
|
9202
9202
|
} : void 0
|
|
9203
9203
|
]), 1064, ["panel", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
9204
|
-
], 10, _hoisted_3$
|
|
9204
|
+
], 10, _hoisted_3$q);
|
|
9205
9205
|
}), 128))
|
|
9206
9206
|
]),
|
|
9207
|
-
createVNode(_sfc_main$
|
|
9207
|
+
createVNode(_sfc_main$1a, {
|
|
9208
9208
|
labels: labels.value,
|
|
9209
9209
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
9210
9210
|
onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
|
|
9211
9211
|
}, null, 8, ["labels", "showTotalCount"])
|
|
9212
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
9213
|
-
createVNode(_sfc_main$
|
|
9212
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$k, [
|
|
9213
|
+
createVNode(_sfc_main$18, {
|
|
9214
9214
|
options: _ctx.options.history,
|
|
9215
9215
|
history: history.value,
|
|
9216
9216
|
onGoToResults: handleGoToResults,
|
|
@@ -9235,9 +9235,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9235
9235
|
const elements = getElements(triggers);
|
|
9236
9236
|
elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
|
|
9237
9237
|
};
|
|
9238
|
-
const _hoisted_1$
|
|
9239
|
-
const _hoisted_2$
|
|
9240
|
-
const _sfc_main$
|
|
9238
|
+
const _hoisted_1$P = { id: "lupa-search-box" };
|
|
9239
|
+
const _hoisted_2$A = { class: "lupa-search-box-wrapper" };
|
|
9240
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
9241
9241
|
__name: "SearchBox",
|
|
9242
9242
|
props: {
|
|
9243
9243
|
options: {},
|
|
@@ -9469,9 +9469,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9469
9469
|
};
|
|
9470
9470
|
return (_ctx, _cache) => {
|
|
9471
9471
|
var _a2;
|
|
9472
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9473
|
-
createBaseVNode("div", _hoisted_2$
|
|
9474
|
-
createVNode(_sfc_main$
|
|
9472
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
9473
|
+
createBaseVNode("div", _hoisted_2$A, [
|
|
9474
|
+
createVNode(_sfc_main$1b, {
|
|
9475
9475
|
options: inputOptions.value,
|
|
9476
9476
|
suggestedValue: suggestedValue.value,
|
|
9477
9477
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -9482,7 +9482,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9482
9482
|
onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
|
|
9483
9483
|
onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
9484
9484
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
9485
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
9485
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$T, {
|
|
9486
9486
|
key: 0,
|
|
9487
9487
|
options: panelOptions.value,
|
|
9488
9488
|
inputValue: inputValue.value,
|
|
@@ -9569,20 +9569,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9569
9569
|
}
|
|
9570
9570
|
return searchParams;
|
|
9571
9571
|
};
|
|
9572
|
-
const _hoisted_1$
|
|
9572
|
+
const _hoisted_1$O = {
|
|
9573
9573
|
key: 0,
|
|
9574
9574
|
id: "lupa-search-results-did-you-mean"
|
|
9575
9575
|
};
|
|
9576
|
-
const _hoisted_2$
|
|
9576
|
+
const _hoisted_2$z = {
|
|
9577
9577
|
key: 0,
|
|
9578
9578
|
"data-cy": "suggested-search-text-label"
|
|
9579
9579
|
};
|
|
9580
|
-
const _hoisted_3$
|
|
9580
|
+
const _hoisted_3$p = {
|
|
9581
9581
|
key: 1,
|
|
9582
9582
|
"data-cy": "did-you-mean-label"
|
|
9583
9583
|
};
|
|
9584
|
-
const _hoisted_4$
|
|
9585
|
-
const _sfc_main$
|
|
9584
|
+
const _hoisted_4$j = { key: 1 };
|
|
9585
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
9586
9586
|
__name: "SearchResultsDidYouMean",
|
|
9587
9587
|
props: {
|
|
9588
9588
|
labels: {}
|
|
@@ -9614,8 +9614,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9614
9614
|
paramStore.goToResults({ searchText, facet });
|
|
9615
9615
|
};
|
|
9616
9616
|
return (_ctx, _cache) => {
|
|
9617
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9618
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9617
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
9618
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
|
|
9619
9619
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
9620
9620
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
9621
9621
|
createBaseVNode("span", {
|
|
@@ -9624,7 +9624,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9624
9624
|
]);
|
|
9625
9625
|
}), 128))
|
|
9626
9626
|
])) : createCommentVNode("", true),
|
|
9627
|
-
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9627
|
+
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$p, [
|
|
9628
9628
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
9629
9629
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
9630
9630
|
label.includes("{1}") ? (openBlock(), createElementBlock("span", {
|
|
@@ -9632,7 +9632,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9632
9632
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
9633
9633
|
"data-cy": "did-you-mean-value",
|
|
9634
9634
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
9635
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
9635
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$j, toDisplayString(label) + " ", 1))
|
|
9636
9636
|
]);
|
|
9637
9637
|
}), 128))
|
|
9638
9638
|
])) : createCommentVNode("", true)
|
|
@@ -9640,12 +9640,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9640
9640
|
};
|
|
9641
9641
|
}
|
|
9642
9642
|
});
|
|
9643
|
-
const _hoisted_1$
|
|
9643
|
+
const _hoisted_1$N = {
|
|
9644
9644
|
key: 0,
|
|
9645
9645
|
class: "lupa-search-results-summary"
|
|
9646
9646
|
};
|
|
9647
|
-
const _hoisted_2$
|
|
9648
|
-
const _sfc_main$
|
|
9647
|
+
const _hoisted_2$y = ["innerHTML"];
|
|
9648
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
9649
9649
|
__name: "SearchResultsSummary",
|
|
9650
9650
|
props: {
|
|
9651
9651
|
label: {},
|
|
@@ -9660,8 +9660,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9660
9660
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
9661
9661
|
});
|
|
9662
9662
|
return (_ctx, _cache) => {
|
|
9663
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9664
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
9663
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
9664
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$y),
|
|
9665
9665
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
9666
9666
|
key: 0,
|
|
9667
9667
|
class: "lupa-filter-clear",
|
|
@@ -9672,18 +9672,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9672
9672
|
};
|
|
9673
9673
|
}
|
|
9674
9674
|
});
|
|
9675
|
-
const _hoisted_1$
|
|
9675
|
+
const _hoisted_1$M = {
|
|
9676
9676
|
key: 0,
|
|
9677
9677
|
class: "lupa-result-page-title",
|
|
9678
9678
|
"data-cy": "lupa-result-page-title"
|
|
9679
9679
|
};
|
|
9680
|
-
const _hoisted_2$
|
|
9681
|
-
const _hoisted_3$
|
|
9680
|
+
const _hoisted_2$x = { key: 0 };
|
|
9681
|
+
const _hoisted_3$o = {
|
|
9682
9682
|
key: 1,
|
|
9683
9683
|
class: "lupa-results-total-count"
|
|
9684
9684
|
};
|
|
9685
|
-
const _hoisted_4$
|
|
9686
|
-
const _sfc_main$
|
|
9685
|
+
const _hoisted_4$i = ["innerHTML"];
|
|
9686
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
9687
9687
|
__name: "SearchResultsTitle",
|
|
9688
9688
|
props: {
|
|
9689
9689
|
options: {},
|
|
@@ -9718,12 +9718,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9718
9718
|
});
|
|
9719
9719
|
return (_ctx, _cache) => {
|
|
9720
9720
|
return openBlock(), createElementBlock("div", null, [
|
|
9721
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
9721
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$M, [
|
|
9722
9722
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
9723
|
-
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9724
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
9723
|
+
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$x, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
9724
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$o, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
|
|
9725
9725
|
])) : createCommentVNode("", true),
|
|
9726
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
9726
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
9727
9727
|
key: 1,
|
|
9728
9728
|
label: summaryLabel.value
|
|
9729
9729
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -9731,21 +9731,21 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9731
9731
|
key: 2,
|
|
9732
9732
|
class: "lupa-result-page-description-top",
|
|
9733
9733
|
innerHTML: descriptionTop.value
|
|
9734
|
-
}, null, 8, _hoisted_4$
|
|
9734
|
+
}, null, 8, _hoisted_4$i)) : createCommentVNode("", true)
|
|
9735
9735
|
]);
|
|
9736
9736
|
};
|
|
9737
9737
|
}
|
|
9738
9738
|
});
|
|
9739
|
-
const _hoisted_1$
|
|
9740
|
-
const _hoisted_2$
|
|
9739
|
+
const _hoisted_1$L = { class: "lupa-search-result-filter-value" };
|
|
9740
|
+
const _hoisted_2$w = {
|
|
9741
9741
|
class: "lupa-current-filter-label",
|
|
9742
9742
|
"data-cy": "lupa-current-filter-label"
|
|
9743
9743
|
};
|
|
9744
|
-
const _hoisted_3$
|
|
9744
|
+
const _hoisted_3$n = {
|
|
9745
9745
|
class: "lupa-current-filter-value",
|
|
9746
9746
|
"data-cy": "lupa-current-filter-value"
|
|
9747
9747
|
};
|
|
9748
|
-
const _sfc_main$
|
|
9748
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
9749
9749
|
__name: "CurrentFilterDisplay",
|
|
9750
9750
|
props: {
|
|
9751
9751
|
filter: {}
|
|
@@ -9757,28 +9757,28 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9757
9757
|
emit2("remove", { filter: props.filter });
|
|
9758
9758
|
};
|
|
9759
9759
|
return (_ctx, _cache) => {
|
|
9760
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9760
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
9761
9761
|
createBaseVNode("div", {
|
|
9762
9762
|
class: "lupa-current-filter-action",
|
|
9763
9763
|
onClick: handleClick
|
|
9764
9764
|
}, "⨉"),
|
|
9765
|
-
createBaseVNode("div", _hoisted_2$
|
|
9766
|
-
createBaseVNode("div", _hoisted_3$
|
|
9765
|
+
createBaseVNode("div", _hoisted_2$w, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
9766
|
+
createBaseVNode("div", _hoisted_3$n, toDisplayString(_ctx.filter.value), 1)
|
|
9767
9767
|
]);
|
|
9768
9768
|
};
|
|
9769
9769
|
}
|
|
9770
9770
|
});
|
|
9771
|
-
const _hoisted_1$
|
|
9772
|
-
const _hoisted_2$
|
|
9771
|
+
const _hoisted_1$K = { class: "lupa-filter-title-text" };
|
|
9772
|
+
const _hoisted_2$v = {
|
|
9773
9773
|
key: 0,
|
|
9774
9774
|
class: "lupa-filter-count"
|
|
9775
9775
|
};
|
|
9776
|
-
const _hoisted_3$
|
|
9776
|
+
const _hoisted_3$m = {
|
|
9777
9777
|
key: 0,
|
|
9778
9778
|
class: "filter-values"
|
|
9779
9779
|
};
|
|
9780
|
-
const _hoisted_4$
|
|
9781
|
-
const _sfc_main$
|
|
9780
|
+
const _hoisted_4$h = { class: "lupa-current-filter-list" };
|
|
9781
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
9782
9782
|
__name: "CurrentFilters",
|
|
9783
9783
|
props: {
|
|
9784
9784
|
options: {},
|
|
@@ -9833,19 +9833,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9833
9833
|
class: "lupa-current-filter-title",
|
|
9834
9834
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
9835
9835
|
}, [
|
|
9836
|
-
createBaseVNode("div", _hoisted_1$
|
|
9836
|
+
createBaseVNode("div", _hoisted_1$K, [
|
|
9837
9837
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
9838
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9838
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$v, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
9839
9839
|
]),
|
|
9840
9840
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
9841
9841
|
key: 0,
|
|
9842
9842
|
class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
9843
9843
|
}, null, 2)) : createCommentVNode("", true)
|
|
9844
9844
|
]),
|
|
9845
|
-
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9846
|
-
createBaseVNode("div", _hoisted_4$
|
|
9845
|
+
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$m, [
|
|
9846
|
+
createBaseVNode("div", _hoisted_4$h, [
|
|
9847
9847
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
|
|
9848
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9848
|
+
return openBlock(), createBlock(_sfc_main$O, {
|
|
9849
9849
|
key: filter.key + "_" + filter.value,
|
|
9850
9850
|
filter,
|
|
9851
9851
|
onRemove: handleRemove
|
|
@@ -9862,8 +9862,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9862
9862
|
};
|
|
9863
9863
|
}
|
|
9864
9864
|
});
|
|
9865
|
-
const _hoisted_1$
|
|
9866
|
-
const _sfc_main$
|
|
9865
|
+
const _hoisted_1$J = ["href"];
|
|
9866
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
9867
9867
|
__name: "CategoryFilterItem",
|
|
9868
9868
|
props: {
|
|
9869
9869
|
options: {},
|
|
@@ -9900,20 +9900,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9900
9900
|
"data-cy": "lupa-child-category-item",
|
|
9901
9901
|
href: urlLink.value,
|
|
9902
9902
|
onClick: handleNavigation
|
|
9903
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
9903
|
+
}, toDisplayString(title.value), 9, _hoisted_1$J)
|
|
9904
9904
|
], 2);
|
|
9905
9905
|
};
|
|
9906
9906
|
}
|
|
9907
9907
|
});
|
|
9908
|
-
const _hoisted_1$
|
|
9908
|
+
const _hoisted_1$I = {
|
|
9909
9909
|
class: "lupa-category-filter",
|
|
9910
9910
|
"data-cy": "lupa-category-filter"
|
|
9911
9911
|
};
|
|
9912
|
-
const _hoisted_2$
|
|
9913
|
-
const _hoisted_3$
|
|
9914
|
-
const _hoisted_4$
|
|
9912
|
+
const _hoisted_2$u = { class: "lupa-category-back" };
|
|
9913
|
+
const _hoisted_3$l = ["href"];
|
|
9914
|
+
const _hoisted_4$g = ["href"];
|
|
9915
9915
|
const _hoisted_5$9 = { class: "lupa-child-category-list" };
|
|
9916
|
-
const _sfc_main$
|
|
9916
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
9917
9917
|
__name: "CategoryFilter",
|
|
9918
9918
|
props: {
|
|
9919
9919
|
options: {}
|
|
@@ -9999,14 +9999,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9999
9999
|
};
|
|
10000
10000
|
__expose({ fetch: fetch2 });
|
|
10001
10001
|
return (_ctx, _cache) => {
|
|
10002
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10003
|
-
createBaseVNode("div", _hoisted_2$
|
|
10002
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
10003
|
+
createBaseVNode("div", _hoisted_2$u, [
|
|
10004
10004
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
10005
10005
|
key: 0,
|
|
10006
10006
|
"data-cy": "lupa-category-back",
|
|
10007
10007
|
href: backUrlLink.value,
|
|
10008
10008
|
onClick: handleNavigationBack
|
|
10009
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
10009
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$l)) : createCommentVNode("", true)
|
|
10010
10010
|
]),
|
|
10011
10011
|
createBaseVNode("div", {
|
|
10012
10012
|
class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -10016,11 +10016,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10016
10016
|
href: parentUrlLink.value,
|
|
10017
10017
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
10018
10018
|
onClick: handleNavigationParent
|
|
10019
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
10019
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$g)
|
|
10020
10020
|
], 2),
|
|
10021
10021
|
createBaseVNode("div", _hoisted_5$9, [
|
|
10022
10022
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
10023
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10023
|
+
return openBlock(), createBlock(_sfc_main$M, {
|
|
10024
10024
|
key: getCategoryKey(child),
|
|
10025
10025
|
item: child,
|
|
10026
10026
|
options: _ctx.options
|
|
@@ -10031,13 +10031,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10031
10031
|
};
|
|
10032
10032
|
}
|
|
10033
10033
|
});
|
|
10034
|
-
const _hoisted_1$
|
|
10034
|
+
const _hoisted_1$H = {
|
|
10035
10035
|
class: "lupa-search-result-facet-term-values",
|
|
10036
10036
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
10037
10037
|
};
|
|
10038
|
-
const _hoisted_2$
|
|
10039
|
-
const _hoisted_3$
|
|
10040
|
-
const _hoisted_4$
|
|
10038
|
+
const _hoisted_2$t = ["placeholder"];
|
|
10039
|
+
const _hoisted_3$k = { class: "lupa-terms-list" };
|
|
10040
|
+
const _hoisted_4$f = ["onClick"];
|
|
10041
10041
|
const _hoisted_5$8 = { class: "lupa-term-checkbox-wrapper" };
|
|
10042
10042
|
const _hoisted_6$5 = { class: "lupa-term-checkbox-label" };
|
|
10043
10043
|
const _hoisted_7$5 = { class: "lupa-term-label" };
|
|
@@ -10047,7 +10047,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10047
10047
|
};
|
|
10048
10048
|
const _hoisted_9$1 = { key: 0 };
|
|
10049
10049
|
const _hoisted_10$1 = { key: 1 };
|
|
10050
|
-
const _sfc_main$
|
|
10050
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
10051
10051
|
__name: "TermFacet",
|
|
10052
10052
|
props: {
|
|
10053
10053
|
options: {},
|
|
@@ -10116,17 +10116,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10116
10116
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
10117
10117
|
};
|
|
10118
10118
|
return (_ctx, _cache) => {
|
|
10119
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10119
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
10120
10120
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
10121
10121
|
key: 0,
|
|
10122
10122
|
class: "lupa-term-filter",
|
|
10123
10123
|
"data-cy": "lupa-term-filter",
|
|
10124
10124
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
10125
10125
|
placeholder: _ctx.options.labels.facetFilter
|
|
10126
|
-
}, null, 8, _hoisted_2$
|
|
10126
|
+
}, null, 8, _hoisted_2$t)), [
|
|
10127
10127
|
[vModelText, termFilter.value]
|
|
10128
10128
|
]) : createCommentVNode("", true),
|
|
10129
|
-
createBaseVNode("div", _hoisted_3$
|
|
10129
|
+
createBaseVNode("div", _hoisted_3$k, [
|
|
10130
10130
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
10131
10131
|
return openBlock(), createElementBlock("div", {
|
|
10132
10132
|
class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -10143,7 +10143,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10143
10143
|
createBaseVNode("span", _hoisted_7$5, toDisplayString(item.title), 1),
|
|
10144
10144
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
10145
10145
|
])
|
|
10146
|
-
], 10, _hoisted_4$
|
|
10146
|
+
], 10, _hoisted_4$f);
|
|
10147
10147
|
}), 128))
|
|
10148
10148
|
]),
|
|
10149
10149
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -11134,16 +11134,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11134
11134
|
m.render = function(e, t, r, i, n, o) {
|
|
11135
11135
|
return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
|
|
11136
11136
|
}, m.__file = "src/Slider.vue";
|
|
11137
|
-
const _hoisted_1$
|
|
11138
|
-
const _hoisted_2$
|
|
11137
|
+
const _hoisted_1$G = { class: "lupa-search-result-facet-stats-values" };
|
|
11138
|
+
const _hoisted_2$s = {
|
|
11139
11139
|
key: 0,
|
|
11140
11140
|
class: "lupa-stats-facet-summary"
|
|
11141
11141
|
};
|
|
11142
|
-
const _hoisted_3$
|
|
11142
|
+
const _hoisted_3$j = {
|
|
11143
11143
|
key: 1,
|
|
11144
11144
|
class: "lupa-stats-facet-summary-input"
|
|
11145
11145
|
};
|
|
11146
|
-
const _hoisted_4$
|
|
11146
|
+
const _hoisted_4$e = {
|
|
11147
11147
|
key: 0,
|
|
11148
11148
|
class: "lupa-stats-range-label"
|
|
11149
11149
|
};
|
|
@@ -11162,7 +11162,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11162
11162
|
key: 2,
|
|
11163
11163
|
class: "lupa-stats-slider-wrapper"
|
|
11164
11164
|
};
|
|
11165
|
-
const _sfc_main$
|
|
11165
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
11166
11166
|
__name: "StatsFacet",
|
|
11167
11167
|
props: {
|
|
11168
11168
|
options: {},
|
|
@@ -11310,10 +11310,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11310
11310
|
innerSliderRange.value = value;
|
|
11311
11311
|
};
|
|
11312
11312
|
return (_ctx, _cache) => {
|
|
11313
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11314
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11313
|
+
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
11314
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$s, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$j, [
|
|
11315
11315
|
createBaseVNode("div", null, [
|
|
11316
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
11316
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
11317
11317
|
createBaseVNode("div", _hoisted_5$7, [
|
|
11318
11318
|
withDirectives(createBaseVNode("input", {
|
|
11319
11319
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
@@ -11374,10 +11374,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11374
11374
|
};
|
|
11375
11375
|
}
|
|
11376
11376
|
});
|
|
11377
|
-
const _hoisted_1$
|
|
11378
|
-
const _hoisted_2$
|
|
11379
|
-
const _hoisted_3$
|
|
11380
|
-
const _hoisted_4$
|
|
11377
|
+
const _hoisted_1$F = { class: "lupa-term-checkbox-wrapper" };
|
|
11378
|
+
const _hoisted_2$r = { class: "lupa-term-checkbox-label" };
|
|
11379
|
+
const _hoisted_3$i = { class: "lupa-term-label" };
|
|
11380
|
+
const _hoisted_4$d = {
|
|
11381
11381
|
key: 0,
|
|
11382
11382
|
class: "lupa-term-count"
|
|
11383
11383
|
};
|
|
@@ -11385,7 +11385,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11385
11385
|
key: 0,
|
|
11386
11386
|
class: "lupa-facet-level"
|
|
11387
11387
|
};
|
|
11388
|
-
const _sfc_main$
|
|
11388
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
11389
11389
|
__name: "HierarchyFacetLevel",
|
|
11390
11390
|
props: {
|
|
11391
11391
|
options: {},
|
|
@@ -11431,14 +11431,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11431
11431
|
"data-cy": "lupa-facet-term",
|
|
11432
11432
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
11433
11433
|
}, [
|
|
11434
|
-
createBaseVNode("div", _hoisted_1$
|
|
11434
|
+
createBaseVNode("div", _hoisted_1$F, [
|
|
11435
11435
|
createBaseVNode("span", {
|
|
11436
11436
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
11437
11437
|
}, null, 2)
|
|
11438
11438
|
]),
|
|
11439
|
-
createBaseVNode("div", _hoisted_2$
|
|
11440
|
-
createBaseVNode("span", _hoisted_3$
|
|
11441
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
11439
|
+
createBaseVNode("div", _hoisted_2$r, [
|
|
11440
|
+
createBaseVNode("span", _hoisted_3$i, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
11441
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$d, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
11442
11442
|
])
|
|
11443
11443
|
]),
|
|
11444
11444
|
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
|
|
@@ -11457,13 +11457,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11457
11457
|
};
|
|
11458
11458
|
}
|
|
11459
11459
|
});
|
|
11460
|
-
const _hoisted_1$
|
|
11460
|
+
const _hoisted_1$E = {
|
|
11461
11461
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
11462
11462
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
11463
11463
|
};
|
|
11464
|
-
const _hoisted_2$
|
|
11465
|
-
const _hoisted_3$
|
|
11466
|
-
const _sfc_main$
|
|
11464
|
+
const _hoisted_2$q = { key: 0 };
|
|
11465
|
+
const _hoisted_3$h = ["placeholder"];
|
|
11466
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
11467
11467
|
__name: "HierarchyFacet",
|
|
11468
11468
|
props: {
|
|
11469
11469
|
options: {},
|
|
@@ -11513,19 +11513,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11513
11513
|
showAll.value = true;
|
|
11514
11514
|
};
|
|
11515
11515
|
return (_ctx, _cache) => {
|
|
11516
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11517
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11516
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
11517
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$q, [
|
|
11518
11518
|
withDirectives(createBaseVNode("input", {
|
|
11519
11519
|
class: "lupa-term-filter",
|
|
11520
11520
|
"data-cy": "lupa-term-filter",
|
|
11521
11521
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
11522
11522
|
placeholder: _ctx.options.labels.facetFilter
|
|
11523
|
-
}, null, 8, _hoisted_3$
|
|
11523
|
+
}, null, 8, _hoisted_3$h), [
|
|
11524
11524
|
[vModelText, termFilter.value]
|
|
11525
11525
|
])
|
|
11526
11526
|
])) : createCommentVNode("", true),
|
|
11527
11527
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
11528
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11528
|
+
return openBlock(), createBlock(_sfc_main$I, {
|
|
11529
11529
|
key: item.title,
|
|
11530
11530
|
options: _ctx.options,
|
|
11531
11531
|
item,
|
|
@@ -11545,20 +11545,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11545
11545
|
};
|
|
11546
11546
|
}
|
|
11547
11547
|
});
|
|
11548
|
-
const _hoisted_1$
|
|
11549
|
-
const _hoisted_2$
|
|
11548
|
+
const _hoisted_1$D = { class: "lupa-facet-label-text" };
|
|
11549
|
+
const _hoisted_2$p = {
|
|
11550
11550
|
key: 0,
|
|
11551
11551
|
class: "lupa-facet-content",
|
|
11552
11552
|
"data-cy": "lupa-facet-content"
|
|
11553
11553
|
};
|
|
11554
11554
|
const __default__$2 = {
|
|
11555
11555
|
components: {
|
|
11556
|
-
TermFacet: _sfc_main$
|
|
11557
|
-
StatsFacet: _sfc_main$
|
|
11558
|
-
HierarchyFacet: _sfc_main$
|
|
11556
|
+
TermFacet: _sfc_main$K,
|
|
11557
|
+
StatsFacet: _sfc_main$J,
|
|
11558
|
+
HierarchyFacet: _sfc_main$H
|
|
11559
11559
|
}
|
|
11560
11560
|
};
|
|
11561
|
-
const _sfc_main$
|
|
11561
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
11562
11562
|
__name: "FacetDisplay",
|
|
11563
11563
|
props: {
|
|
11564
11564
|
options: {},
|
|
@@ -11669,12 +11669,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11669
11669
|
"data-cy": "lupa-search-result-facet-label",
|
|
11670
11670
|
onClick: toggleFacet
|
|
11671
11671
|
}, [
|
|
11672
|
-
createBaseVNode("div", _hoisted_1$
|
|
11672
|
+
createBaseVNode("div", _hoisted_1$D, toDisplayString(facet.value.label), 1),
|
|
11673
11673
|
createBaseVNode("div", {
|
|
11674
11674
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
11675
11675
|
}, null, 2)
|
|
11676
11676
|
], 2),
|
|
11677
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11677
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, [
|
|
11678
11678
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
11679
11679
|
facet: facet.value,
|
|
11680
11680
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -11692,12 +11692,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11692
11692
|
};
|
|
11693
11693
|
}
|
|
11694
11694
|
}));
|
|
11695
|
-
const _hoisted_1$
|
|
11696
|
-
const _hoisted_2$
|
|
11695
|
+
const _hoisted_1$C = { class: "lupa-search-result-facet-section" };
|
|
11696
|
+
const _hoisted_2$o = {
|
|
11697
11697
|
key: 0,
|
|
11698
11698
|
class: "lupa-facets-title"
|
|
11699
11699
|
};
|
|
11700
|
-
const _sfc_main$
|
|
11700
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
11701
11701
|
__name: "FacetList",
|
|
11702
11702
|
props: {
|
|
11703
11703
|
options: {},
|
|
@@ -11731,14 +11731,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11731
11731
|
};
|
|
11732
11732
|
return (_ctx, _cache) => {
|
|
11733
11733
|
var _a;
|
|
11734
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11735
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11734
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
11735
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$o, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
11736
11736
|
createBaseVNode("div", {
|
|
11737
11737
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
11738
11738
|
}, [
|
|
11739
11739
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
11740
11740
|
var _a2;
|
|
11741
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11741
|
+
return openBlock(), createBlock(_sfc_main$G, {
|
|
11742
11742
|
key: facet.key,
|
|
11743
11743
|
facet,
|
|
11744
11744
|
currentFilters: currentFiltersValue.value,
|
|
@@ -11753,8 +11753,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11753
11753
|
};
|
|
11754
11754
|
}
|
|
11755
11755
|
});
|
|
11756
|
-
const _hoisted_1$
|
|
11757
|
-
const _sfc_main$
|
|
11756
|
+
const _hoisted_1$B = { class: "lupa-search-result-facets" };
|
|
11757
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
11758
11758
|
__name: "Facets",
|
|
11759
11759
|
props: {
|
|
11760
11760
|
options: {},
|
|
@@ -11800,8 +11800,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11800
11800
|
paramStore.removeParameters({ paramsToRemove: [param] });
|
|
11801
11801
|
};
|
|
11802
11802
|
return (_ctx, _cache) => {
|
|
11803
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11804
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
11803
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
11804
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$F, {
|
|
11805
11805
|
key: 0,
|
|
11806
11806
|
options: _ctx.options,
|
|
11807
11807
|
facets: regularFacets.value,
|
|
@@ -11815,11 +11815,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11815
11815
|
};
|
|
11816
11816
|
}
|
|
11817
11817
|
});
|
|
11818
|
-
const _hoisted_1$
|
|
11818
|
+
const _hoisted_1$A = {
|
|
11819
11819
|
id: "lupa-search-result-filters",
|
|
11820
11820
|
class: "lupa-search-result-filters"
|
|
11821
11821
|
};
|
|
11822
|
-
const _sfc_main$
|
|
11822
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
11823
11823
|
__name: "SearchResultsFilters",
|
|
11824
11824
|
props: {
|
|
11825
11825
|
options: {},
|
|
@@ -11848,19 +11848,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11848
11848
|
__expose({ fetch: fetch2 });
|
|
11849
11849
|
return (_ctx, _cache) => {
|
|
11850
11850
|
var _a;
|
|
11851
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11852
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
11851
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
11852
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$N, {
|
|
11853
11853
|
key: 0,
|
|
11854
11854
|
options: _ctx.options.currentFilters,
|
|
11855
11855
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
11856
11856
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
11857
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
11857
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$L, {
|
|
11858
11858
|
key: 1,
|
|
11859
11859
|
options: _ctx.options.categories,
|
|
11860
11860
|
ref_key: "categoryFilters",
|
|
11861
11861
|
ref: categoryFilters
|
|
11862
11862
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
11863
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
11863
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$E, {
|
|
11864
11864
|
key: 2,
|
|
11865
11865
|
options: _ctx.options.facets
|
|
11866
11866
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -11868,20 +11868,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11868
11868
|
};
|
|
11869
11869
|
}
|
|
11870
11870
|
});
|
|
11871
|
-
const _hoisted_1$
|
|
11871
|
+
const _hoisted_1$z = {
|
|
11872
11872
|
key: 0,
|
|
11873
11873
|
class: "lupa-mobile-filter-sidebar"
|
|
11874
11874
|
};
|
|
11875
|
-
const _hoisted_2$
|
|
11876
|
-
const _hoisted_3$
|
|
11877
|
-
const _hoisted_4$
|
|
11875
|
+
const _hoisted_2$n = ["onClick"];
|
|
11876
|
+
const _hoisted_3$g = { class: "lupa-mobile-sidebar-content" };
|
|
11877
|
+
const _hoisted_4$c = { class: "lupa-sidebar-top" };
|
|
11878
11878
|
const _hoisted_5$5 = { class: "lupa-sidebar-title" };
|
|
11879
11879
|
const _hoisted_6$3 = {
|
|
11880
11880
|
key: 0,
|
|
11881
11881
|
class: "lupa-sidebar-filter-count"
|
|
11882
11882
|
};
|
|
11883
11883
|
const _hoisted_7$3 = { class: "lupa-sidebar-filter-options" };
|
|
11884
|
-
const _sfc_main$
|
|
11884
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
11885
11885
|
__name: "MobileFilterSidebar",
|
|
11886
11886
|
props: {
|
|
11887
11887
|
options: {}
|
|
@@ -11907,13 +11907,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11907
11907
|
searchResultStore.setSidebarState({ visible: false });
|
|
11908
11908
|
};
|
|
11909
11909
|
return (_ctx, _cache) => {
|
|
11910
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11910
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
11911
11911
|
createBaseVNode("div", {
|
|
11912
11912
|
class: "lupa-sidebar-close",
|
|
11913
11913
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
11914
|
-
}, null, 8, _hoisted_2$
|
|
11915
|
-
createBaseVNode("div", _hoisted_3$
|
|
11916
|
-
createBaseVNode("div", _hoisted_4$
|
|
11914
|
+
}, null, 8, _hoisted_2$n),
|
|
11915
|
+
createBaseVNode("div", _hoisted_3$g, [
|
|
11916
|
+
createBaseVNode("div", _hoisted_4$c, [
|
|
11917
11917
|
createBaseVNode("div", _hoisted_5$5, [
|
|
11918
11918
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
11919
11919
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$3, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
@@ -11924,7 +11924,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11924
11924
|
})
|
|
11925
11925
|
]),
|
|
11926
11926
|
createBaseVNode("div", _hoisted_7$3, [
|
|
11927
|
-
createVNode(_sfc_main$
|
|
11927
|
+
createVNode(_sfc_main$D, {
|
|
11928
11928
|
options: _ctx.options,
|
|
11929
11929
|
expandable: isActiveFiltersExpanded.value
|
|
11930
11930
|
}, null, 8, ["options", "expandable"])
|
|
@@ -11934,14 +11934,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11934
11934
|
};
|
|
11935
11935
|
}
|
|
11936
11936
|
});
|
|
11937
|
-
const _hoisted_1$
|
|
11938
|
-
const _hoisted_2$
|
|
11939
|
-
const _hoisted_3$
|
|
11937
|
+
const _hoisted_1$y = { id: "lupa-search-results-breadcrumbs" };
|
|
11938
|
+
const _hoisted_2$m = ["href", "onClick"];
|
|
11939
|
+
const _hoisted_3$f = {
|
|
11940
11940
|
key: 1,
|
|
11941
11941
|
class: "lupa-search-results-breadcrumb-text"
|
|
11942
11942
|
};
|
|
11943
|
-
const _hoisted_4$
|
|
11944
|
-
const _sfc_main$
|
|
11943
|
+
const _hoisted_4$b = { key: 2 };
|
|
11944
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
11945
11945
|
__name: "SearchResultsBreadcrumbs",
|
|
11946
11946
|
props: {
|
|
11947
11947
|
breadcrumbs: {}
|
|
@@ -11966,7 +11966,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11966
11966
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
11967
11967
|
};
|
|
11968
11968
|
return (_ctx, _cache) => {
|
|
11969
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11969
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
11970
11970
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
11971
11971
|
return openBlock(), createElementBlock("span", {
|
|
11972
11972
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -11980,19 +11980,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11980
11980
|
var _a;
|
|
11981
11981
|
return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
11982
11982
|
}
|
|
11983
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
11984
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
11983
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$m)) : (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
11984
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$b, " / ")) : createCommentVNode("", true)
|
|
11985
11985
|
]);
|
|
11986
11986
|
}), 128))
|
|
11987
11987
|
]);
|
|
11988
11988
|
};
|
|
11989
11989
|
}
|
|
11990
11990
|
});
|
|
11991
|
-
const _hoisted_1$
|
|
11991
|
+
const _hoisted_1$x = {
|
|
11992
11992
|
id: "lupa-search-result-filters",
|
|
11993
11993
|
class: "lupa-search-result-filters"
|
|
11994
11994
|
};
|
|
11995
|
-
const _sfc_main$
|
|
11995
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
11996
11996
|
__name: "FiltersTopDropdown",
|
|
11997
11997
|
props: {
|
|
11998
11998
|
options: {}
|
|
@@ -12000,8 +12000,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12000
12000
|
setup(__props) {
|
|
12001
12001
|
return (_ctx, _cache) => {
|
|
12002
12002
|
var _a;
|
|
12003
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12004
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
12003
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
12004
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$E, {
|
|
12005
12005
|
key: 0,
|
|
12006
12006
|
options: _ctx.options.facets,
|
|
12007
12007
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -12011,8 +12011,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12011
12011
|
};
|
|
12012
12012
|
}
|
|
12013
12013
|
});
|
|
12014
|
-
const _hoisted_1$
|
|
12015
|
-
const _sfc_main$
|
|
12014
|
+
const _hoisted_1$w = { id: "lupa-search-results-layout-selection" };
|
|
12015
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
12016
12016
|
__name: "SearchResultsLayoutSelection",
|
|
12017
12017
|
setup(__props) {
|
|
12018
12018
|
const searchResultStore = useSearchResultStore();
|
|
@@ -12023,7 +12023,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12023
12023
|
searchResultStore.setLayout(layout2);
|
|
12024
12024
|
};
|
|
12025
12025
|
return (_ctx, _cache) => {
|
|
12026
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12026
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
12027
12027
|
createBaseVNode("div", {
|
|
12028
12028
|
class: normalizeClass([
|
|
12029
12029
|
"lupa-layout-selection-grid",
|
|
@@ -12045,11 +12045,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12045
12045
|
};
|
|
12046
12046
|
}
|
|
12047
12047
|
});
|
|
12048
|
-
const _hoisted_1$
|
|
12048
|
+
const _hoisted_1$v = {
|
|
12049
12049
|
key: 0,
|
|
12050
12050
|
class: "lupa-mobile-toggle-filter-count"
|
|
12051
12051
|
};
|
|
12052
|
-
const _sfc_main$
|
|
12052
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
12053
12053
|
__name: "SearchResultsMobileToggle",
|
|
12054
12054
|
props: {
|
|
12055
12055
|
label: {},
|
|
@@ -12067,26 +12067,26 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12067
12067
|
onClick: handleMobileToggle
|
|
12068
12068
|
}, [
|
|
12069
12069
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
12070
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
12070
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$v, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
12071
12071
|
], 2);
|
|
12072
12072
|
};
|
|
12073
12073
|
}
|
|
12074
12074
|
});
|
|
12075
|
-
const _hoisted_1$
|
|
12075
|
+
const _hoisted_1$u = {
|
|
12076
12076
|
key: 0,
|
|
12077
12077
|
id: "lupa-search-results-page-select",
|
|
12078
12078
|
"data-cy": "lupa-search-results-page-select"
|
|
12079
12079
|
};
|
|
12080
|
-
const _hoisted_2$
|
|
12080
|
+
const _hoisted_2$l = {
|
|
12081
12081
|
key: 0,
|
|
12082
12082
|
class: "lupa-page-number-separator"
|
|
12083
12083
|
};
|
|
12084
|
-
const _hoisted_3$
|
|
12085
|
-
const _hoisted_4$
|
|
12084
|
+
const _hoisted_3$e = ["onClick"];
|
|
12085
|
+
const _hoisted_4$a = {
|
|
12086
12086
|
key: 0,
|
|
12087
12087
|
class: "lupa-page-number-separator"
|
|
12088
12088
|
};
|
|
12089
|
-
const _sfc_main$
|
|
12089
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
12090
12090
|
__name: "SearchResultsPageSelect",
|
|
12091
12091
|
props: {
|
|
12092
12092
|
lastPageLabel: {},
|
|
@@ -12148,7 +12148,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12148
12148
|
}
|
|
12149
12149
|
};
|
|
12150
12150
|
return (_ctx, _cache) => {
|
|
12151
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
12151
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
12152
12152
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
12153
12153
|
key: 0,
|
|
12154
12154
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -12159,7 +12159,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12159
12159
|
class: "lupa-page-number lupa-page-number-first",
|
|
12160
12160
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
12161
12161
|
}, " 1 "),
|
|
12162
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12162
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, "...")) : createCommentVNode("", true)
|
|
12163
12163
|
], 64)) : createCommentVNode("", true),
|
|
12164
12164
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
12165
12165
|
return openBlock(), createElementBlock("div", {
|
|
@@ -12170,10 +12170,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12170
12170
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
12171
12171
|
]),
|
|
12172
12172
|
"data-cy": "lupa-page-number"
|
|
12173
|
-
}, toDisplayString(page), 11, _hoisted_3$
|
|
12173
|
+
}, toDisplayString(page), 11, _hoisted_3$e);
|
|
12174
12174
|
}), 128)),
|
|
12175
12175
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
12176
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
12176
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$a, "...")) : createCommentVNode("", true),
|
|
12177
12177
|
createBaseVNode("div", {
|
|
12178
12178
|
class: "lupa-page-number lupa-page-number-last",
|
|
12179
12179
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -12192,13 +12192,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12192
12192
|
};
|
|
12193
12193
|
}
|
|
12194
12194
|
});
|
|
12195
|
-
const _hoisted_1$
|
|
12195
|
+
const _hoisted_1$t = {
|
|
12196
12196
|
id: "lupa-search-results-page-size",
|
|
12197
12197
|
"data-cy": "lupa-search-results-page-size"
|
|
12198
12198
|
};
|
|
12199
|
-
const _hoisted_2$
|
|
12200
|
-
const _hoisted_3$
|
|
12201
|
-
const _sfc_main$
|
|
12199
|
+
const _hoisted_2$k = { id: "lupa-select" };
|
|
12200
|
+
const _hoisted_3$d = { class: "lupa-select-label" };
|
|
12201
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
12202
12202
|
__name: "SearchResultsPageSize",
|
|
12203
12203
|
props: {
|
|
12204
12204
|
label: {},
|
|
@@ -12215,9 +12215,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12215
12215
|
});
|
|
12216
12216
|
};
|
|
12217
12217
|
return (_ctx, _cache) => {
|
|
12218
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12219
|
-
createBaseVNode("div", _hoisted_2$
|
|
12220
|
-
createBaseVNode("label", _hoisted_3$
|
|
12218
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
12219
|
+
createBaseVNode("div", _hoisted_2$k, [
|
|
12220
|
+
createBaseVNode("label", _hoisted_3$d, toDisplayString(_ctx.label), 1),
|
|
12221
12221
|
createBaseVNode("select", {
|
|
12222
12222
|
class: "lupa-select-dropdown",
|
|
12223
12223
|
"data-cy": "lupa-page-size-select-dropdown",
|
|
@@ -12234,14 +12234,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12234
12234
|
};
|
|
12235
12235
|
}
|
|
12236
12236
|
});
|
|
12237
|
-
const _hoisted_1$
|
|
12237
|
+
const _hoisted_1$s = {
|
|
12238
12238
|
id: "lupa-search-results-sort",
|
|
12239
12239
|
class: "lupa-search-results-sort"
|
|
12240
12240
|
};
|
|
12241
|
-
const _hoisted_2$
|
|
12242
|
-
const _hoisted_3$
|
|
12243
|
-
const _hoisted_4$
|
|
12244
|
-
const _sfc_main$
|
|
12241
|
+
const _hoisted_2$j = { id: "lupa-select" };
|
|
12242
|
+
const _hoisted_3$c = { class: "lupa-select-label" };
|
|
12243
|
+
const _hoisted_4$9 = ["value"];
|
|
12244
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
12245
12245
|
__name: "SearchResultsSort",
|
|
12246
12246
|
props: {
|
|
12247
12247
|
options: {}
|
|
@@ -12283,9 +12283,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12283
12283
|
});
|
|
12284
12284
|
};
|
|
12285
12285
|
return (_ctx, _cache) => {
|
|
12286
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12287
|
-
createBaseVNode("div", _hoisted_2$
|
|
12288
|
-
createBaseVNode("label", _hoisted_3$
|
|
12286
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
12287
|
+
createBaseVNode("div", _hoisted_2$j, [
|
|
12288
|
+
createBaseVNode("label", _hoisted_3$c, toDisplayString(_ctx.options.label), 1),
|
|
12289
12289
|
withDirectives(createBaseVNode("select", {
|
|
12290
12290
|
class: "lupa-select-dropdown",
|
|
12291
12291
|
"data-cy": "lupa-sort-select-dropdown",
|
|
@@ -12297,7 +12297,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12297
12297
|
return openBlock(), createElementBlock("option", {
|
|
12298
12298
|
key: option.key,
|
|
12299
12299
|
value: option.key
|
|
12300
|
-
}, toDisplayString(option.label), 9, _hoisted_4$
|
|
12300
|
+
}, toDisplayString(option.label), 9, _hoisted_4$9);
|
|
12301
12301
|
}), 128))
|
|
12302
12302
|
], 544), [
|
|
12303
12303
|
[vModelSelect, selectedKey.value]
|
|
@@ -12307,14 +12307,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12307
12307
|
};
|
|
12308
12308
|
}
|
|
12309
12309
|
});
|
|
12310
|
-
const _hoisted_1$
|
|
12311
|
-
const _hoisted_2$
|
|
12312
|
-
const _hoisted_3$
|
|
12313
|
-
const _hoisted_4$
|
|
12310
|
+
const _hoisted_1$r = { class: "lupa-toolbar-left" };
|
|
12311
|
+
const _hoisted_2$i = { key: 1 };
|
|
12312
|
+
const _hoisted_3$b = { key: 3 };
|
|
12313
|
+
const _hoisted_4$8 = { key: 5 };
|
|
12314
12314
|
const _hoisted_5$4 = { class: "lupa-toolbar-right" };
|
|
12315
12315
|
const _hoisted_6$2 = { key: 1 };
|
|
12316
12316
|
const _hoisted_7$2 = { key: 3 };
|
|
12317
|
-
const _sfc_main$
|
|
12317
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
12318
12318
|
__name: "SearchResultsToolbar",
|
|
12319
12319
|
props: {
|
|
12320
12320
|
options: {},
|
|
@@ -12411,32 +12411,32 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12411
12411
|
id: "lupa-search-results-toolbar",
|
|
12412
12412
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
12413
12413
|
}, [
|
|
12414
|
-
createBaseVNode("div", _hoisted_1$
|
|
12415
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
12416
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
12414
|
+
createBaseVNode("div", _hoisted_1$r, [
|
|
12415
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$z, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$i)),
|
|
12416
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
12417
12417
|
key: 2,
|
|
12418
12418
|
label: searchSummaryLabel.value,
|
|
12419
12419
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
12420
12420
|
onClear: handleClearAll
|
|
12421
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
12422
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
12421
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$b)),
|
|
12422
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$x, {
|
|
12423
12423
|
key: 4,
|
|
12424
12424
|
options: paginationOptions.value.pageSelect,
|
|
12425
12425
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
12426
12426
|
"first-page-label": paginationOptions.value.labels.showLess
|
|
12427
|
-
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
12427
|
+
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$8))
|
|
12428
12428
|
]),
|
|
12429
12429
|
createBaseVNode("div", _hoisted_5$4, [
|
|
12430
|
-
createVNode(_sfc_main$
|
|
12430
|
+
createVNode(_sfc_main$y, {
|
|
12431
12431
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
12432
12432
|
"show-filter-count": showMobileFilterCount.value
|
|
12433
12433
|
}, null, 8, ["label", "show-filter-count"]),
|
|
12434
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
12434
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$w, {
|
|
12435
12435
|
key: 0,
|
|
12436
12436
|
options: paginationOptions.value.pageSize,
|
|
12437
12437
|
label: paginationOptions.value.labels.pageSize
|
|
12438
12438
|
}, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$2)),
|
|
12439
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
12439
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$v, {
|
|
12440
12440
|
key: 2,
|
|
12441
12441
|
options: sortOptions.value
|
|
12442
12442
|
}, null, 8, ["options"])) : (openBlock(), createElementBlock("div", _hoisted_7$2))
|
|
@@ -12445,6 +12445,58 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12445
12445
|
};
|
|
12446
12446
|
}
|
|
12447
12447
|
});
|
|
12448
|
+
const _hoisted_1$q = { class: "lupa-badge-title" };
|
|
12449
|
+
const _hoisted_2$h = ["src"];
|
|
12450
|
+
const _hoisted_3$a = { key: 1 };
|
|
12451
|
+
const _hoisted_4$7 = {
|
|
12452
|
+
key: 0,
|
|
12453
|
+
class: "lupa-badge-full-text"
|
|
12454
|
+
};
|
|
12455
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
12456
|
+
__name: "SearchResultGeneratedBadge",
|
|
12457
|
+
props: {
|
|
12458
|
+
options: {},
|
|
12459
|
+
badge: {}
|
|
12460
|
+
},
|
|
12461
|
+
setup(__props) {
|
|
12462
|
+
const props = __props;
|
|
12463
|
+
const image = computed(() => {
|
|
12464
|
+
var _a, _b, _c;
|
|
12465
|
+
return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.image) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : "";
|
|
12466
|
+
});
|
|
12467
|
+
const showTitle = computed(() => {
|
|
12468
|
+
var _a, _b, _c;
|
|
12469
|
+
return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.showTitle) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : true;
|
|
12470
|
+
});
|
|
12471
|
+
const hasAdditionalText = computed(() => {
|
|
12472
|
+
var _a, _b;
|
|
12473
|
+
return Boolean((_a = props.badge) == null ? void 0 : _a.additionalText) && typeof ((_b = props.badge) == null ? void 0 : _b.additionalText) === "string";
|
|
12474
|
+
});
|
|
12475
|
+
const hasTitleText = computed(() => {
|
|
12476
|
+
var _a, _b;
|
|
12477
|
+
return Boolean((_a = props.badge) == null ? void 0 : _a.titleText) && typeof ((_b = props.badge) == null ? void 0 : _b.titleText) === "string";
|
|
12478
|
+
});
|
|
12479
|
+
const customClassName = computed(() => {
|
|
12480
|
+
var _a, _b, _c;
|
|
12481
|
+
return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.customClass) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : "";
|
|
12482
|
+
});
|
|
12483
|
+
return (_ctx, _cache) => {
|
|
12484
|
+
return openBlock(), createElementBlock("div", {
|
|
12485
|
+
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
12486
|
+
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
12487
|
+
}, [
|
|
12488
|
+
createBaseVNode("span", _hoisted_1$q, [
|
|
12489
|
+
image.value ? (openBlock(), createElementBlock("img", {
|
|
12490
|
+
key: 0,
|
|
12491
|
+
src: image.value
|
|
12492
|
+
}, null, 8, _hoisted_2$h)) : createCommentVNode("", true),
|
|
12493
|
+
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$a, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
12494
|
+
]),
|
|
12495
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$7, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
12496
|
+
], 6);
|
|
12497
|
+
};
|
|
12498
|
+
}
|
|
12499
|
+
});
|
|
12448
12500
|
const _hoisted_1$p = { class: "lupa-generated-badges" };
|
|
12449
12501
|
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
12450
12502
|
__name: "SearchResultGeneratedBadges",
|
|
@@ -12472,10 +12524,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12472
12524
|
})).filter((b) => Boolean(b.id));
|
|
12473
12525
|
});
|
|
12474
12526
|
return (_ctx, _cache) => {
|
|
12475
|
-
const _component_SearchResultGeneratedBadge = resolveComponent("SearchResultGeneratedBadge");
|
|
12476
12527
|
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
12477
12528
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
12478
|
-
return openBlock(), createBlock(
|
|
12529
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
12479
12530
|
key: badge.id,
|
|
12480
12531
|
badge,
|
|
12481
12532
|
options: _ctx.options
|
|
@@ -12638,7 +12689,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12638
12689
|
badge
|
|
12639
12690
|
}, null, 8, ["badge"]);
|
|
12640
12691
|
}), 128)),
|
|
12641
|
-
|
|
12692
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$s, {
|
|
12642
12693
|
key: 0,
|
|
12643
12694
|
options: _ctx.options
|
|
12644
12695
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -12655,7 +12706,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12655
12706
|
},
|
|
12656
12707
|
setup(__props) {
|
|
12657
12708
|
return (_ctx, _cache) => {
|
|
12658
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12709
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
12659
12710
|
item: _ctx.item,
|
|
12660
12711
|
options: _ctx.options,
|
|
12661
12712
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -13736,17 +13787,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13736
13787
|
class: "lupa-loader"
|
|
13737
13788
|
})) : createCommentVNode("", true),
|
|
13738
13789
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
13739
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13790
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$A, {
|
|
13740
13791
|
key: 0,
|
|
13741
13792
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
13742
13793
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13743
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13794
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$u, {
|
|
13744
13795
|
key: 1,
|
|
13745
13796
|
class: "lupa-toolbar-mobile",
|
|
13746
13797
|
options: _ctx.options,
|
|
13747
13798
|
"pagination-location": "top"
|
|
13748
13799
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13749
|
-
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
13800
|
+
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$N, {
|
|
13750
13801
|
key: 2,
|
|
13751
13802
|
class: normalizeClass(currentFiltersClass.value),
|
|
13752
13803
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -13760,7 +13811,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13760
13811
|
sdkOptions: _ctx.options.options
|
|
13761
13812
|
}, null, 8, ["options", "sdkOptions"]),
|
|
13762
13813
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
13763
|
-
createVNode(_sfc_main$
|
|
13814
|
+
createVNode(_sfc_main$u, {
|
|
13764
13815
|
class: "lupa-toolbar-top",
|
|
13765
13816
|
options: _ctx.options,
|
|
13766
13817
|
"pagination-location": "top"
|
|
@@ -13790,7 +13841,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13790
13841
|
onClick: goToFirstPage
|
|
13791
13842
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
13792
13843
|
])) : createCommentVNode("", true),
|
|
13793
|
-
createVNode(_sfc_main$
|
|
13844
|
+
createVNode(_sfc_main$u, {
|
|
13794
13845
|
class: "lupa-toolbar-bottom",
|
|
13795
13846
|
options: _ctx.options,
|
|
13796
13847
|
"pagination-location": "bottom"
|
|
@@ -13862,7 +13913,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13862
13913
|
onClick: handleNavigationBack
|
|
13863
13914
|
}, toDisplayString(backTitle.value), 9, _hoisted_3$1)
|
|
13864
13915
|
])) : createCommentVNode("", true),
|
|
13865
|
-
createVNode(_sfc_main$
|
|
13916
|
+
createVNode(_sfc_main$u, {
|
|
13866
13917
|
class: "lupa-toolbar-mobile",
|
|
13867
13918
|
"pagination-location": "top",
|
|
13868
13919
|
options: _ctx.options
|
|
@@ -14073,8 +14124,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14073
14124
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
14074
14125
|
}, [
|
|
14075
14126
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
14076
|
-
createVNode(_sfc_main$
|
|
14077
|
-
createVNode(_sfc_main$
|
|
14127
|
+
createVNode(_sfc_main$R, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14128
|
+
createVNode(_sfc_main$P, {
|
|
14078
14129
|
"show-summary": true,
|
|
14079
14130
|
options: _ctx.options,
|
|
14080
14131
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
@@ -14084,24 +14135,24 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14084
14135
|
key: 1,
|
|
14085
14136
|
options: _ctx.options
|
|
14086
14137
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14087
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
14138
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$C, {
|
|
14088
14139
|
key: 2,
|
|
14089
14140
|
options: _ctx.options.filters
|
|
14090
14141
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14091
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
14142
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$B, {
|
|
14092
14143
|
key: 3,
|
|
14093
14144
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
14094
14145
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
14095
14146
|
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
|
|
14096
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14147
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$D, {
|
|
14097
14148
|
key: 0,
|
|
14098
14149
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
14099
14150
|
ref_key: "searchResultsFilters",
|
|
14100
14151
|
ref: searchResultsFilters
|
|
14101
14152
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14102
14153
|
createBaseVNode("div", _hoisted_3, [
|
|
14103
|
-
createVNode(_sfc_main$
|
|
14104
|
-
createVNode(_sfc_main$
|
|
14154
|
+
createVNode(_sfc_main$R, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14155
|
+
createVNode(_sfc_main$P, {
|
|
14105
14156
|
options: _ctx.options,
|
|
14106
14157
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
14107
14158
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -14116,13 +14167,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14116
14167
|
}, 8, ["options", "ssr"])
|
|
14117
14168
|
])
|
|
14118
14169
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
14119
|
-
createVNode(_sfc_main$
|
|
14120
|
-
createVNode(_sfc_main$
|
|
14170
|
+
createVNode(_sfc_main$R, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14171
|
+
createVNode(_sfc_main$P, {
|
|
14121
14172
|
options: _ctx.options,
|
|
14122
14173
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
14123
14174
|
}, null, 8, ["options", "is-product-list"]),
|
|
14124
14175
|
createBaseVNode("div", _hoisted_4, [
|
|
14125
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14176
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$D, {
|
|
14126
14177
|
key: 0,
|
|
14127
14178
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
14128
14179
|
ref_key: "searchResultsFilters",
|
|
@@ -19750,7 +19801,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
19750
19801
|
onClick: withModifiers(innerClick, ["stop"])
|
|
19751
19802
|
}, [
|
|
19752
19803
|
createBaseVNode("div", _hoisted_2$1, [
|
|
19753
|
-
createVNode(_sfc_main$
|
|
19804
|
+
createVNode(_sfc_main$S, {
|
|
19754
19805
|
options: fullSearchBoxOptions.value,
|
|
19755
19806
|
"is-search-container": true,
|
|
19756
19807
|
ref_key: "searchBox",
|
|
@@ -20473,7 +20524,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20473
20524
|
class: "lupa-recommended-products",
|
|
20474
20525
|
"data-cy": "lupa-recommended-products"
|
|
20475
20526
|
};
|
|
20476
|
-
const _sfc_main$
|
|
20527
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
20477
20528
|
__name: "Recommendations",
|
|
20478
20529
|
props: {
|
|
20479
20530
|
options: {}
|
|
@@ -26150,7 +26201,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26150
26201
|
};
|
|
26151
26202
|
__expose({ fetch: fetch2 });
|
|
26152
26203
|
return (_ctx, _cache) => {
|
|
26153
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26204
|
+
return openBlock(), createBlock(unref(_sfc_main$S), {
|
|
26154
26205
|
options: fullSearchBoxOptions.value,
|
|
26155
26206
|
ref_key: "searchBox",
|
|
26156
26207
|
ref: searchBox2
|
|
@@ -26406,7 +26457,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26406
26457
|
};
|
|
26407
26458
|
__expose({ fetch: fetch2 });
|
|
26408
26459
|
return (_ctx, _cache) => {
|
|
26409
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26460
|
+
return openBlock(), createBlock(unref(_sfc_main$1c), {
|
|
26410
26461
|
options: _ctx.recommendationOptions,
|
|
26411
26462
|
ref_key: "productRecommendations",
|
|
26412
26463
|
ref: productRecommendations
|
|
@@ -26696,7 +26747,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26696
26747
|
clearSearchContainer,
|
|
26697
26748
|
clearRecommendations
|
|
26698
26749
|
};
|
|
26699
|
-
if (window) {
|
|
26750
|
+
if (typeof window !== "undefined") {
|
|
26700
26751
|
window.getLupa = lupaSearch;
|
|
26701
26752
|
window.lupaSearch = lupaSearch;
|
|
26702
26753
|
}
|