@sledge-app/react-instant-search 2.0.8 → 2.0.9
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/components/SearchResultWidget/components/FilterHorizontal.d.ts +1 -0
- package/dist/components/SearchResultWidget/components/FilterHorizontal.d.ts.map +1 -1
- package/dist/components/SearchResultWidget/layouts/DesktopLayout.d.ts +1 -1
- package/dist/components/SearchResultWidget/layouts/DesktopLayout.d.ts.map +1 -1
- package/dist/components/SearchResultWidget/layouts/MobileLayout.d.ts.map +1 -1
- package/dist/sledge-react-instant-search.cjs +1 -1
- package/dist/sledge-react-instant-search.cjs.map +1 -1
- package/dist/sledge-react-instant-search.js +66 -47
- package/dist/sledge-react-instant-search.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports, $ as $cb5cc270b50c6fcd$export$be92b6f5f03c0fe9, a as $cb5cc270b50c6fcd$export$41fb9f06171c75f4, b as $cb5cc270b50c6fcd$export$602eac185826482c, c as $cb5cc270b50c6fcd$export$7c6e2c02157bb7d2, d as $cb5cc270b50c6fcd$export$f39c2d165cd861fe, e as $cb5cc270b50c6fcd$export$21b07c8f274aebd5, f as $67824d98245208a0$export$be92b6f5f03c0fe9, g as $67824d98245208a0$export$adb584737d712b70, h as $e698a72e93240346$export$be92b6f5f03c0fe9, i as $e698a72e93240346$export$adb584737d712b70, k as $d94698215c4408a7$export$be92b6f5f03c0fe9, l as $faa2e61a3361514f$export$be92b6f5f03c0fe9, m as $faa2e61a3361514f$export$13921ac0cc260818, n as $faa2e61a3361514f$export$9a58ef0d7ad3278c, o as $faa2e61a3361514f$export$6521433ed15a34db, p as $f99a8c78507165f7$export$be92b6f5f03c0fe9, q as $f99a8c78507165f7$export$6d08773d2e66f8f2, r as $f99a8c78507165f7$export$adb584737d712b70, s as $cc7e05a45900e73f$export$6d08773d2e66f8f2, t as $cc7e05a45900e73f$export$d6e5bf9c43ea9319, u as $cc7e05a45900e73f$export$c3468e2714d175fa, v as $cc7e05a45900e73f$export$be92b6f5f03c0fe9, w as $cc7e05a45900e73f$export$41fb9f06171c75f4, x as $cc7e05a45900e73f$export$4c8d1a57a761ef94, y as $cc7e05a45900e73f$export$f04a61298a47a40f, z as $cc7e05a45900e73f$export$602eac185826482c, A as $cc7e05a45900e73f$export$7c6e2c02157bb7d2, B as $cc7e05a45900e73f$export$2f60d3ec9ad468f2, C as $cc7e05a45900e73f$export$d5c6c08dc2d3ca7, D as $cc7e05a45900e73f$export$bf1aedc3039c8d63, E as motion, F as client, G as $d94698215c4408a7$export$a455218a85c89869, H as $d94698215c4408a7$export$7a7fa4424cb20976, I as $d94698215c4408a7$export$f69c19e57285b83a, J as $a093c7e1ec25a057$export$2881499e37b75b9a, K as $a093c7e1ec25a057$export$be92b6f5f03c0fe9, L as $a093c7e1ec25a057$export$41fb9f06171c75f4, M as $a093c7e1ec25a057$export$602eac185826482c, N as $a093c7e1ec25a057$export$7c6e2c02157bb7d2, O as $a093c7e1ec25a057$export$21b07c8f274aebd5, P as $57acba87d6e25586$export$be92b6f5f03c0fe9, Q as $57acba87d6e25586$export$d5c6c08dc2d3ca7, R as $57acba87d6e25586$export$9a4e88b92edfce6b, S as $57acba87d6e25586$export$6521433ed15a34db, T as MasonryResponsive, U as Masonry, V as useEmblaCarousel, W as useVirtualizer, X as $5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9, Y as $5d3850c4d0b4e6c7$export$602eac185826482c, Z as $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff, _ as $5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2 } from "./vendor-5ae8da85.js";
|
|
2
2
|
import React__default, { useState, useEffect, createElement } from "react";
|
|
3
3
|
import { SledgeContext, CustomComponents } from "@sledge-app/core";
|
|
4
|
-
import "react-dom";
|
|
4
|
+
import { createPortal } from "react-dom";
|
|
5
5
|
const ProductFilterWidget = (props) => {
|
|
6
6
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(SearchResultWidget, { layoutType: "product-filter", ...props });
|
|
7
7
|
};
|
|
@@ -5348,17 +5348,20 @@ const FlyoutSidebar = ({ title, content, footer = null, open, setOpen, position
|
|
|
5348
5348
|
}, 0);
|
|
5349
5349
|
}, [open]);
|
|
5350
5350
|
const showBlurEffect = withBlurEffect && !isScrollAtBottom;
|
|
5351
|
-
return
|
|
5352
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
5353
|
-
|
|
5354
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge__flyout-
|
|
5355
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5351
|
+
return createPortal(
|
|
5352
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `sledge__flyout-mobile ${className}`, "data-open": open, "data-position": position, children: [
|
|
5353
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__flyout-overlay", onClick: () => setOpen(false) }),
|
|
5354
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge__flyout-mobile-wrapper", children: [
|
|
5355
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge__flyout-header", children: [
|
|
5356
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__flyout-mobile-title", children: title }),
|
|
5357
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__flyout-close-field-wrapper", children: /* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: "sledge__flyout-close-field", type: "button", onClick: () => setOpen(false), children: /* @__PURE__ */ jsxRuntimeExports.jsx(CloseIcon, { width: 14, height: 14, color: "#393d4e" }) }) })
|
|
5358
|
+
] }),
|
|
5359
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: contentContainerRef, className: `sledge__flyout-mobile-content ${showBlurEffect ? "sledge__flyout-mobile-content-blur-effect" : ""}`, children: isLoading ? null : content }),
|
|
5360
|
+
footer ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__flyout-mobile-footer", children: isLoading ? null : footer }) : null
|
|
5361
|
+
] })
|
|
5362
|
+
] }),
|
|
5363
|
+
document.body
|
|
5364
|
+
);
|
|
5362
5365
|
};
|
|
5363
5366
|
const getElement = ({ selector, setUsedScrollElement }) => {
|
|
5364
5367
|
const element = document.querySelector(selector);
|
|
@@ -7246,7 +7249,7 @@ const FilterHorizontal = (props) => {
|
|
|
7246
7249
|
isHorizontalGroup = false,
|
|
7247
7250
|
allowedFilterSlider
|
|
7248
7251
|
} = props;
|
|
7249
|
-
const { sort = null } = components;
|
|
7252
|
+
const { sort = null, limit = null } = components;
|
|
7250
7253
|
const wrapperAdditionalProps = {
|
|
7251
7254
|
...isHorizontalGroup && { "horizontal-group": "" }
|
|
7252
7255
|
};
|
|
@@ -7274,7 +7277,8 @@ const FilterHorizontal = (props) => {
|
|
|
7274
7277
|
isHorizontalGroup
|
|
7275
7278
|
}
|
|
7276
7279
|
)),
|
|
7277
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-filter-horizontal-sort", children: sort })
|
|
7280
|
+
sort ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-filter-horizontal-sort", children: sort }) : null,
|
|
7281
|
+
limit ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-filter-horizontal-limit", children: limit }) : null
|
|
7278
7282
|
]
|
|
7279
7283
|
}
|
|
7280
7284
|
),
|
|
@@ -7991,7 +7995,7 @@ const ProductGridPaginationWrapper = (props) => {
|
|
|
7991
7995
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-product-grid-pagination-wrapper", children });
|
|
7992
7996
|
};
|
|
7993
7997
|
const FilterVerticalLayout = (props) => {
|
|
7994
|
-
var _a, _b, _c;
|
|
7998
|
+
var _a, _b, _c, _d;
|
|
7995
7999
|
const {
|
|
7996
8000
|
displaySettings,
|
|
7997
8001
|
allowedFilter,
|
|
@@ -8036,13 +8040,13 @@ const FilterVerticalLayout = (props) => {
|
|
|
8036
8040
|
((_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.hide_search_bar) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SearchFieldDesktop, { children: searchField }),
|
|
8037
8041
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
|
|
8038
8042
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
|
|
8039
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
|
|
8043
|
+
((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
|
|
8040
8044
|
] })
|
|
8041
8045
|
] }),
|
|
8042
8046
|
isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: productGridSkeleton }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
8043
8047
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SummaryTextVertical, { className: "sledge-instant-search__result-summary-text-with-column-grid-selector-wrapper", children: [
|
|
8044
8048
|
summaryText,
|
|
8045
|
-
((
|
|
8049
|
+
((_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null
|
|
8046
8050
|
] }),
|
|
8047
8051
|
(searchResult == null ? void 0 : searchResult.length) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
8048
8052
|
productGrid,
|
|
@@ -8053,7 +8057,7 @@ const FilterVerticalLayout = (props) => {
|
|
|
8053
8057
|
] }) });
|
|
8054
8058
|
};
|
|
8055
8059
|
const FilterHorizontalLayout = (props) => {
|
|
8056
|
-
var _a, _b, _c;
|
|
8060
|
+
var _a, _b, _c, _d;
|
|
8057
8061
|
const {
|
|
8058
8062
|
displaySettings,
|
|
8059
8063
|
allowedFilter,
|
|
@@ -8099,8 +8103,8 @@ const FilterHorizontalLayout = (props) => {
|
|
|
8099
8103
|
((_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.hide_search_bar) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SearchFieldDesktop, { children: searchField }),
|
|
8100
8104
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
|
|
8101
8105
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
|
|
8102
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit }),
|
|
8103
|
-
((
|
|
8106
|
+
((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit }),
|
|
8107
|
+
((_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null
|
|
8104
8108
|
] })
|
|
8105
8109
|
] }),
|
|
8106
8110
|
isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: productGridSkeleton }) : /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: (searchResult == null ? void 0 : searchResult.length) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
@@ -8111,7 +8115,7 @@ const FilterHorizontalLayout = (props) => {
|
|
|
8111
8115
|
] });
|
|
8112
8116
|
};
|
|
8113
8117
|
const FilterFlyoutLayout$1 = (props) => {
|
|
8114
|
-
var _a, _b, _c;
|
|
8118
|
+
var _a, _b, _c, _d;
|
|
8115
8119
|
const {
|
|
8116
8120
|
displaySettings,
|
|
8117
8121
|
languageSettings,
|
|
@@ -8174,13 +8178,13 @@ const FilterFlyoutLayout$1 = (props) => {
|
|
|
8174
8178
|
] }),
|
|
8175
8179
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
|
|
8176
8180
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
|
|
8177
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
|
|
8181
|
+
((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
|
|
8178
8182
|
] })
|
|
8179
8183
|
] }),
|
|
8180
8184
|
isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: productGridSkeleton }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
8181
8185
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SummaryTextVertical, { className: "sledge-instant-search__result-summary-text-with-column-grid-selector-wrapper", children: [
|
|
8182
8186
|
summaryText,
|
|
8183
|
-
((
|
|
8187
|
+
((_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null
|
|
8184
8188
|
] }),
|
|
8185
8189
|
(searchResult == null ? void 0 : searchResult.length) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
8186
8190
|
productGrid,
|
|
@@ -8191,7 +8195,7 @@ const FilterFlyoutLayout$1 = (props) => {
|
|
|
8191
8195
|
] });
|
|
8192
8196
|
};
|
|
8193
8197
|
const EnterpriseLayout = (props) => {
|
|
8194
|
-
var _a, _b, _c, _d;
|
|
8198
|
+
var _a, _b, _c, _d, _e;
|
|
8195
8199
|
const {
|
|
8196
8200
|
displaySettings,
|
|
8197
8201
|
allowedFilter,
|
|
@@ -8237,8 +8241,9 @@ const EnterpriseLayout = (props) => {
|
|
|
8237
8241
|
/* @__PURE__ */ jsxRuntimeExports.jsx(FilterIcon, { width: 18, height: 18, color: "#393d4e" })
|
|
8238
8242
|
] }),
|
|
8239
8243
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
|
|
8240
|
-
((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.
|
|
8241
|
-
((_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.
|
|
8244
|
+
((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit }),
|
|
8245
|
+
((_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.hide_search_bar) ? null : searchField,
|
|
8246
|
+
((_e = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _e.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) }) : null
|
|
8242
8247
|
] }),
|
|
8243
8248
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(ResultData, { children: [
|
|
8244
8249
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `sledge-instant-search__result-filter-toggle-panel ${"animated"}`, "data-filter-toggle": openFilterToggle ? "open" : "closed", children: filterVertical == null ? void 0 : filterVertical({
|
|
@@ -8253,7 +8258,7 @@ const EnterpriseLayout = (props) => {
|
|
|
8253
8258
|
] }) });
|
|
8254
8259
|
};
|
|
8255
8260
|
const YuvaLayout = (props) => {
|
|
8256
|
-
var _a, _b, _c, _d;
|
|
8261
|
+
var _a, _b, _c, _d, _e;
|
|
8257
8262
|
const {
|
|
8258
8263
|
displaySettings,
|
|
8259
8264
|
allowedFilter,
|
|
@@ -8303,7 +8308,8 @@ const YuvaLayout = (props) => {
|
|
|
8303
8308
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
|
|
8304
8309
|
handleSearchResultFirstTime ? summaryTextSkeleton : summaryText,
|
|
8305
8310
|
((_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null,
|
|
8306
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort })
|
|
8311
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
|
|
8312
|
+
((_e = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _e.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
|
|
8307
8313
|
] })
|
|
8308
8314
|
] }),
|
|
8309
8315
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(ResultData, { children: [
|
|
@@ -8319,7 +8325,7 @@ const YuvaLayout = (props) => {
|
|
|
8319
8325
|
] }) });
|
|
8320
8326
|
};
|
|
8321
8327
|
const ToyoLayout = (props) => {
|
|
8322
|
-
var _a, _b, _c, _d;
|
|
8328
|
+
var _a, _b, _c, _d, _e;
|
|
8323
8329
|
const {
|
|
8324
8330
|
displaySettings,
|
|
8325
8331
|
allowedFilter,
|
|
@@ -8366,10 +8372,11 @@ const ToyoLayout = (props) => {
|
|
|
8366
8372
|
isHorizontalGroup: true,
|
|
8367
8373
|
showOnlyItems: true,
|
|
8368
8374
|
components: {
|
|
8369
|
-
sort
|
|
8375
|
+
sort,
|
|
8376
|
+
limit: ((_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.hide_limit_options) ? null : limit
|
|
8370
8377
|
}
|
|
8371
8378
|
}) : null,
|
|
8372
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldWrapper, { children: ((
|
|
8379
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldWrapper, { children: ((_e = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _e.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null })
|
|
8373
8380
|
] })
|
|
8374
8381
|
] }),
|
|
8375
8382
|
isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: productGridSkeleton }) : /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: (searchResult == null ? void 0 : searchResult.length) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
@@ -8380,7 +8387,7 @@ const ToyoLayout = (props) => {
|
|
|
8380
8387
|
] }) }) });
|
|
8381
8388
|
};
|
|
8382
8389
|
const FilterHorizontalGroupLayout = (props) => {
|
|
8383
|
-
var _a, _b, _c;
|
|
8390
|
+
var _a, _b, _c, _d;
|
|
8384
8391
|
const {
|
|
8385
8392
|
displaySettings,
|
|
8386
8393
|
allowedFilter,
|
|
@@ -8427,8 +8434,8 @@ const FilterHorizontalGroupLayout = (props) => {
|
|
|
8427
8434
|
((_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.hide_search_bar) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SearchFieldDesktop, { children: searchField }),
|
|
8428
8435
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
|
|
8429
8436
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
|
|
8430
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit }),
|
|
8431
|
-
((
|
|
8437
|
+
((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit }),
|
|
8438
|
+
((_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null
|
|
8432
8439
|
] })
|
|
8433
8440
|
] }),
|
|
8434
8441
|
isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: productGridSkeleton }) : /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: (searchResult == null ? void 0 : searchResult.length) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
@@ -8439,7 +8446,7 @@ const FilterHorizontalGroupLayout = (props) => {
|
|
|
8439
8446
|
] });
|
|
8440
8447
|
};
|
|
8441
8448
|
const DesktopLayout = (props) => {
|
|
8442
|
-
var _a, _b;
|
|
8449
|
+
var _a, _b, _c;
|
|
8443
8450
|
const { displaySettings } = props;
|
|
8444
8451
|
const renderLayout = () => {
|
|
8445
8452
|
var _a2;
|
|
@@ -8468,14 +8475,15 @@ const DesktopLayout = (props) => {
|
|
|
8468
8475
|
device: "desktop",
|
|
8469
8476
|
layout: (_a = displaySettings == null ? void 0 : displaySettings.filter) == null ? void 0 : _a.layout,
|
|
8470
8477
|
additionalProps: {
|
|
8471
|
-
"data-hide-search-bar": (_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.hide_search_bar
|
|
8478
|
+
"data-hide-search-bar": (_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.hide_search_bar,
|
|
8479
|
+
"data-hide-limit-options": (_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options
|
|
8472
8480
|
},
|
|
8473
8481
|
children: renderLayout()
|
|
8474
8482
|
}
|
|
8475
8483
|
);
|
|
8476
8484
|
};
|
|
8477
8485
|
const FilterFlyoutLayout = (props) => {
|
|
8478
|
-
var _a;
|
|
8486
|
+
var _a, _b, _c;
|
|
8479
8487
|
const {
|
|
8480
8488
|
displaySettings,
|
|
8481
8489
|
languageSettings,
|
|
@@ -8539,11 +8547,11 @@ const FilterFlyoutLayout = (props) => {
|
|
|
8539
8547
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: language_filter || "Filter" }),
|
|
8540
8548
|
/* @__PURE__ */ jsxRuntimeExports.jsx(FilterIcon, { width: 18, height: 18, color: "#393d4e" })
|
|
8541
8549
|
] }),
|
|
8542
|
-
searchField
|
|
8550
|
+
((_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.hide_search_bar) ? null : searchField
|
|
8543
8551
|
] }) }),
|
|
8544
8552
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
|
|
8545
8553
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
|
|
8546
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
|
|
8554
|
+
((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
|
|
8547
8555
|
] })
|
|
8548
8556
|
] }) }),
|
|
8549
8557
|
isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: productGridSkeleton }) : /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: (searchResult == null ? void 0 : searchResult.length) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
@@ -8554,7 +8562,7 @@ const FilterFlyoutLayout = (props) => {
|
|
|
8554
8562
|
] });
|
|
8555
8563
|
};
|
|
8556
8564
|
const FilterStandardLayout = (props) => {
|
|
8557
|
-
var _a;
|
|
8565
|
+
var _a, _b, _c;
|
|
8558
8566
|
const { displaySettings, languageSettings, allowedFilter, isFirstLoading, isLoading, isLoadingProduct, isLoadingSetting, searchResult = [], components, skeleton } = props;
|
|
8559
8567
|
const {
|
|
8560
8568
|
filterHorizontal = null,
|
|
@@ -8586,12 +8594,12 @@ const FilterStandardLayout = (props) => {
|
|
|
8586
8594
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SummaryTextHorizontal, { children: summaryText }),
|
|
8587
8595
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }),
|
|
8588
8596
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(FilterHorizontalBlockMobile, { children: [
|
|
8589
|
-
searchField,
|
|
8597
|
+
((_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.hide_search_bar) ? null : searchField,
|
|
8590
8598
|
filterHorizontal == null ? void 0 : filterHorizontal({ deviceType: "mobile" })
|
|
8591
8599
|
] }),
|
|
8592
8600
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
|
|
8593
8601
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
|
|
8594
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
|
|
8602
|
+
((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
|
|
8595
8603
|
] })
|
|
8596
8604
|
] }) }),
|
|
8597
8605
|
isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: productGridSkeleton }) : /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: (searchResult == null ? void 0 : searchResult.length) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
@@ -8601,7 +8609,7 @@ const FilterStandardLayout = (props) => {
|
|
|
8601
8609
|
] }) }) });
|
|
8602
8610
|
};
|
|
8603
8611
|
const StickyFilterButtonLayout = (props) => {
|
|
8604
|
-
var _a;
|
|
8612
|
+
var _a, _b, _c;
|
|
8605
8613
|
const {
|
|
8606
8614
|
displaySettings,
|
|
8607
8615
|
languageSettings,
|
|
@@ -8664,10 +8672,10 @@ const StickyFilterButtonLayout = (props) => {
|
|
|
8664
8672
|
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
8665
8673
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SummaryTextHorizontal, { children: summaryText }),
|
|
8666
8674
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }),
|
|
8667
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(FilterHorizontalBlockMobile, { children: searchField }),
|
|
8675
|
+
((_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.hide_search_bar) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(FilterHorizontalBlockMobile, { children: searchField }),
|
|
8668
8676
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
|
|
8669
8677
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
|
|
8670
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
|
|
8678
|
+
((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
|
|
8671
8679
|
] })
|
|
8672
8680
|
] }) }),
|
|
8673
8681
|
isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: productGridSkeleton }) : /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: (searchResult == null ? void 0 : searchResult.length) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
@@ -8678,7 +8686,7 @@ const StickyFilterButtonLayout = (props) => {
|
|
|
8678
8686
|
] });
|
|
8679
8687
|
};
|
|
8680
8688
|
const MobileLayout = (props) => {
|
|
8681
|
-
var _a;
|
|
8689
|
+
var _a, _b, _c;
|
|
8682
8690
|
const { displaySettings } = props;
|
|
8683
8691
|
const renderLayout = () => {
|
|
8684
8692
|
var _a2;
|
|
@@ -8693,7 +8701,18 @@ const MobileLayout = (props) => {
|
|
|
8693
8701
|
return null;
|
|
8694
8702
|
}
|
|
8695
8703
|
};
|
|
8696
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8704
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8705
|
+
RenderLayout,
|
|
8706
|
+
{
|
|
8707
|
+
device: "mobile",
|
|
8708
|
+
layout: (_a = displaySettings == null ? void 0 : displaySettings.filter) == null ? void 0 : _a.mobile_layout,
|
|
8709
|
+
additionalProps: {
|
|
8710
|
+
"data-hide-search-bar": (_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.hide_search_bar,
|
|
8711
|
+
"data-hide-limit-options": (_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options
|
|
8712
|
+
},
|
|
8713
|
+
children: renderLayout()
|
|
8714
|
+
}
|
|
8715
|
+
);
|
|
8697
8716
|
};
|
|
8698
8717
|
const SearchResultWidget = (props) => {
|
|
8699
8718
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A;
|