@sledge-app/react-instant-search 2.0.8 → 2.0.10

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.
@@ -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
  };
@@ -692,14 +692,18 @@ const Popover = ({
692
692
  alignOffset = 0
693
693
  }) => {
694
694
  const [open, setOpen] = React__default.useState(withOpenState ? isOpen : false);
695
- React__default.useEffect(() => {
696
- var _a;
697
- let arrowElement = (_a = document == null ? void 0 : document.querySelector(".PopoverArrow")) == null ? void 0 : _a.parentElement;
695
+ const popoverContentRef = React__default.useRef(null);
696
+ const handleCustomArrow = () => {
697
+ var _a, _b;
698
+ const popoverContentRefCurrent = popoverContentRef == null ? void 0 : popoverContentRef.current;
699
+ if (!popoverContentRefCurrent)
700
+ return;
701
+ let arrowElement = (_b = (_a = popoverContentRefCurrent == null ? void 0 : popoverContentRefCurrent.querySelector) == null ? void 0 : _a.call(popoverContentRefCurrent, ".PopoverArrow")) == null ? void 0 : _b.parentElement;
698
702
  if (arrowElement && (customArrow == null ? void 0 : customArrow.length)) {
699
703
  arrowElement.style.display = "inline-flex";
700
704
  arrowElement.innerHTML = customArrow;
701
705
  }
702
- }, [open]);
706
+ };
703
707
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
704
708
  $cb5cc270b50c6fcd$export$be92b6f5f03c0fe9,
705
709
  {
@@ -721,8 +725,12 @@ const Popover = ({
721
725
  sideOffset,
722
726
  alignOffset,
723
727
  align,
728
+ ref: popoverContentRef,
724
729
  ...setIsOpen && {
725
- onOpenAutoFocus: () => setIsOpen(true),
730
+ onOpenAutoFocus: () => {
731
+ setIsOpen(true);
732
+ handleCustomArrow();
733
+ },
726
734
  onCloseAutoFocus: () => setIsOpen(false)
727
735
  },
728
736
  children: [
@@ -5348,17 +5356,20 @@ const FlyoutSidebar = ({ title, content, footer = null, open, setOpen, position
5348
5356
  }, 0);
5349
5357
  }, [open]);
5350
5358
  const showBlurEffect = withBlurEffect && !isScrollAtBottom;
5351
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `sledge__flyout-mobile ${className}`, "data-open": open, "data-position": position, children: [
5352
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__flyout-overlay", onClick: () => setOpen(false) }),
5353
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge__flyout-mobile-wrapper", children: [
5354
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge__flyout-header", children: [
5355
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__flyout-mobile-title", children: title }),
5356
- /* @__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" }) }) })
5357
- ] }),
5358
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: contentContainerRef, className: `sledge__flyout-mobile-content ${showBlurEffect ? "sledge__flyout-mobile-content-blur-effect" : ""}`, children: isLoading ? null : content }),
5359
- footer ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__flyout-mobile-footer", children: isLoading ? null : footer }) : null
5360
- ] })
5361
- ] });
5359
+ return createPortal(
5360
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `sledge__flyout-mobile ${className}`, "data-open": open, "data-position": position, children: [
5361
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__flyout-overlay", onClick: () => setOpen(false) }),
5362
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge__flyout-mobile-wrapper", children: [
5363
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge__flyout-header", children: [
5364
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__flyout-mobile-title", children: title }),
5365
+ /* @__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" }) }) })
5366
+ ] }),
5367
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: contentContainerRef, className: `sledge__flyout-mobile-content ${showBlurEffect ? "sledge__flyout-mobile-content-blur-effect" : ""}`, children: isLoading ? null : content }),
5368
+ footer ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__flyout-mobile-footer", children: isLoading ? null : footer }) : null
5369
+ ] })
5370
+ ] }),
5371
+ document.body
5372
+ );
5362
5373
  };
5363
5374
  const getElement = ({ selector, setUsedScrollElement }) => {
5364
5375
  const element = document.querySelector(selector);
@@ -7246,7 +7257,7 @@ const FilterHorizontal = (props) => {
7246
7257
  isHorizontalGroup = false,
7247
7258
  allowedFilterSlider
7248
7259
  } = props;
7249
- const { sort = null } = components;
7260
+ const { sort = null, limit = null } = components;
7250
7261
  const wrapperAdditionalProps = {
7251
7262
  ...isHorizontalGroup && { "horizontal-group": "" }
7252
7263
  };
@@ -7274,7 +7285,8 @@ const FilterHorizontal = (props) => {
7274
7285
  isHorizontalGroup
7275
7286
  }
7276
7287
  )),
7277
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-filter-horizontal-sort", children: sort })
7288
+ sort ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-filter-horizontal-sort", children: sort }) : null,
7289
+ limit ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-filter-horizontal-limit", children: limit }) : null
7278
7290
  ]
7279
7291
  }
7280
7292
  ),
@@ -7991,7 +8003,7 @@ const ProductGridPaginationWrapper = (props) => {
7991
8003
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-product-grid-pagination-wrapper", children });
7992
8004
  };
7993
8005
  const FilterVerticalLayout = (props) => {
7994
- var _a, _b, _c;
8006
+ var _a, _b, _c, _d;
7995
8007
  const {
7996
8008
  displaySettings,
7997
8009
  allowedFilter,
@@ -8036,13 +8048,13 @@ const FilterVerticalLayout = (props) => {
8036
8048
  ((_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.hide_search_bar) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SearchFieldDesktop, { children: searchField }),
8037
8049
  /* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
8038
8050
  /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
8039
- /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
8051
+ ((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
8040
8052
  ] })
8041
8053
  ] }),
8042
8054
  isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: productGridSkeleton }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
8043
8055
  /* @__PURE__ */ jsxRuntimeExports.jsxs(SummaryTextVertical, { className: "sledge-instant-search__result-summary-text-with-column-grid-selector-wrapper", children: [
8044
8056
  summaryText,
8045
- ((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null
8057
+ ((_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null
8046
8058
  ] }),
8047
8059
  (searchResult == null ? void 0 : searchResult.length) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
8048
8060
  productGrid,
@@ -8053,7 +8065,7 @@ const FilterVerticalLayout = (props) => {
8053
8065
  ] }) });
8054
8066
  };
8055
8067
  const FilterHorizontalLayout = (props) => {
8056
- var _a, _b, _c;
8068
+ var _a, _b, _c, _d;
8057
8069
  const {
8058
8070
  displaySettings,
8059
8071
  allowedFilter,
@@ -8099,8 +8111,8 @@ const FilterHorizontalLayout = (props) => {
8099
8111
  ((_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.hide_search_bar) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SearchFieldDesktop, { children: searchField }),
8100
8112
  /* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
8101
8113
  /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
8102
- /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit }),
8103
- ((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null
8114
+ ((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit }),
8115
+ ((_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null
8104
8116
  ] })
8105
8117
  ] }),
8106
8118
  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 +8123,7 @@ const FilterHorizontalLayout = (props) => {
8111
8123
  ] });
8112
8124
  };
8113
8125
  const FilterFlyoutLayout$1 = (props) => {
8114
- var _a, _b, _c;
8126
+ var _a, _b, _c, _d;
8115
8127
  const {
8116
8128
  displaySettings,
8117
8129
  languageSettings,
@@ -8174,13 +8186,13 @@ const FilterFlyoutLayout$1 = (props) => {
8174
8186
  ] }),
8175
8187
  /* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
8176
8188
  /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
8177
- /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
8189
+ ((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
8178
8190
  ] })
8179
8191
  ] }),
8180
8192
  isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: productGridSkeleton }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
8181
8193
  /* @__PURE__ */ jsxRuntimeExports.jsxs(SummaryTextVertical, { className: "sledge-instant-search__result-summary-text-with-column-grid-selector-wrapper", children: [
8182
8194
  summaryText,
8183
- ((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null
8195
+ ((_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null
8184
8196
  ] }),
8185
8197
  (searchResult == null ? void 0 : searchResult.length) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
8186
8198
  productGrid,
@@ -8191,7 +8203,7 @@ const FilterFlyoutLayout$1 = (props) => {
8191
8203
  ] });
8192
8204
  };
8193
8205
  const EnterpriseLayout = (props) => {
8194
- var _a, _b, _c, _d;
8206
+ var _a, _b, _c, _d, _e;
8195
8207
  const {
8196
8208
  displaySettings,
8197
8209
  allowedFilter,
@@ -8237,8 +8249,9 @@ const EnterpriseLayout = (props) => {
8237
8249
  /* @__PURE__ */ jsxRuntimeExports.jsx(FilterIcon, { width: 18, height: 18, color: "#393d4e" })
8238
8250
  ] }),
8239
8251
  /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
8240
- ((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_search_bar) ? null : searchField,
8241
- ((_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) }) : null
8252
+ ((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit }),
8253
+ ((_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.hide_search_bar) ? null : searchField,
8254
+ ((_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
8255
  ] }),
8243
8256
  /* @__PURE__ */ jsxRuntimeExports.jsxs(ResultData, { children: [
8244
8257
  /* @__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 +8266,7 @@ const EnterpriseLayout = (props) => {
8253
8266
  ] }) });
8254
8267
  };
8255
8268
  const YuvaLayout = (props) => {
8256
- var _a, _b, _c, _d;
8269
+ var _a, _b, _c, _d, _e;
8257
8270
  const {
8258
8271
  displaySettings,
8259
8272
  allowedFilter,
@@ -8303,7 +8316,8 @@ const YuvaLayout = (props) => {
8303
8316
  /* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
8304
8317
  handleSearchResultFirstTime ? summaryTextSkeleton : summaryText,
8305
8318
  ((_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 })
8319
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
8320
+ ((_e = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _e.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
8307
8321
  ] })
8308
8322
  ] }),
8309
8323
  /* @__PURE__ */ jsxRuntimeExports.jsxs(ResultData, { children: [
@@ -8319,7 +8333,7 @@ const YuvaLayout = (props) => {
8319
8333
  ] }) });
8320
8334
  };
8321
8335
  const ToyoLayout = (props) => {
8322
- var _a, _b, _c, _d;
8336
+ var _a, _b, _c, _d, _e;
8323
8337
  const {
8324
8338
  displaySettings,
8325
8339
  allowedFilter,
@@ -8366,10 +8380,11 @@ const ToyoLayout = (props) => {
8366
8380
  isHorizontalGroup: true,
8367
8381
  showOnlyItems: true,
8368
8382
  components: {
8369
- sort
8383
+ sort,
8384
+ limit: ((_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.hide_limit_options) ? null : limit
8370
8385
  }
8371
8386
  }) : null,
8372
- /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldWrapper, { children: ((_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null })
8387
+ /* @__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
8388
  ] })
8374
8389
  ] }),
8375
8390
  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 +8395,7 @@ const ToyoLayout = (props) => {
8380
8395
  ] }) }) });
8381
8396
  };
8382
8397
  const FilterHorizontalGroupLayout = (props) => {
8383
- var _a, _b, _c;
8398
+ var _a, _b, _c, _d;
8384
8399
  const {
8385
8400
  displaySettings,
8386
8401
  allowedFilter,
@@ -8427,8 +8442,8 @@ const FilterHorizontalGroupLayout = (props) => {
8427
8442
  ((_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.hide_search_bar) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SearchFieldDesktop, { children: searchField }),
8428
8443
  /* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
8429
8444
  /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
8430
- /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit }),
8431
- ((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null
8445
+ ((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit }),
8446
+ ((_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null
8432
8447
  ] })
8433
8448
  ] }),
8434
8449
  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 +8454,7 @@ const FilterHorizontalGroupLayout = (props) => {
8439
8454
  ] });
8440
8455
  };
8441
8456
  const DesktopLayout = (props) => {
8442
- var _a, _b;
8457
+ var _a, _b, _c;
8443
8458
  const { displaySettings } = props;
8444
8459
  const renderLayout = () => {
8445
8460
  var _a2;
@@ -8468,14 +8483,15 @@ const DesktopLayout = (props) => {
8468
8483
  device: "desktop",
8469
8484
  layout: (_a = displaySettings == null ? void 0 : displaySettings.filter) == null ? void 0 : _a.layout,
8470
8485
  additionalProps: {
8471
- "data-hide-search-bar": (_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.hide_search_bar
8486
+ "data-hide-search-bar": (_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.hide_search_bar,
8487
+ "data-hide-limit-options": (_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options
8472
8488
  },
8473
8489
  children: renderLayout()
8474
8490
  }
8475
8491
  );
8476
8492
  };
8477
8493
  const FilterFlyoutLayout = (props) => {
8478
- var _a;
8494
+ var _a, _b, _c;
8479
8495
  const {
8480
8496
  displaySettings,
8481
8497
  languageSettings,
@@ -8539,11 +8555,11 @@ const FilterFlyoutLayout = (props) => {
8539
8555
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: language_filter || "Filter" }),
8540
8556
  /* @__PURE__ */ jsxRuntimeExports.jsx(FilterIcon, { width: 18, height: 18, color: "#393d4e" })
8541
8557
  ] }),
8542
- searchField
8558
+ ((_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.hide_search_bar) ? null : searchField
8543
8559
  ] }) }),
8544
8560
  /* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
8545
8561
  /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
8546
- /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
8562
+ ((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
8547
8563
  ] })
8548
8564
  ] }) }),
8549
8565
  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 +8570,7 @@ const FilterFlyoutLayout = (props) => {
8554
8570
  ] });
8555
8571
  };
8556
8572
  const FilterStandardLayout = (props) => {
8557
- var _a;
8573
+ var _a, _b, _c;
8558
8574
  const { displaySettings, languageSettings, allowedFilter, isFirstLoading, isLoading, isLoadingProduct, isLoadingSetting, searchResult = [], components, skeleton } = props;
8559
8575
  const {
8560
8576
  filterHorizontal = null,
@@ -8586,12 +8602,12 @@ const FilterStandardLayout = (props) => {
8586
8602
  /* @__PURE__ */ jsxRuntimeExports.jsx(SummaryTextHorizontal, { children: summaryText }),
8587
8603
  /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }),
8588
8604
  /* @__PURE__ */ jsxRuntimeExports.jsxs(FilterHorizontalBlockMobile, { children: [
8589
- searchField,
8605
+ ((_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.hide_search_bar) ? null : searchField,
8590
8606
  filterHorizontal == null ? void 0 : filterHorizontal({ deviceType: "mobile" })
8591
8607
  ] }),
8592
8608
  /* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
8593
8609
  /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
8594
- /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
8610
+ ((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
8595
8611
  ] })
8596
8612
  ] }) }),
8597
8613
  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 +8617,7 @@ const FilterStandardLayout = (props) => {
8601
8617
  ] }) }) });
8602
8618
  };
8603
8619
  const StickyFilterButtonLayout = (props) => {
8604
- var _a;
8620
+ var _a, _b, _c;
8605
8621
  const {
8606
8622
  displaySettings,
8607
8623
  languageSettings,
@@ -8664,10 +8680,10 @@ const StickyFilterButtonLayout = (props) => {
8664
8680
  ] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
8665
8681
  /* @__PURE__ */ jsxRuntimeExports.jsx(SummaryTextHorizontal, { children: summaryText }),
8666
8682
  /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }),
8667
- /* @__PURE__ */ jsxRuntimeExports.jsx(FilterHorizontalBlockMobile, { children: searchField }),
8683
+ ((_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.hide_search_bar) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(FilterHorizontalBlockMobile, { children: searchField }),
8668
8684
  /* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
8669
8685
  /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
8670
- /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
8686
+ ((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
8671
8687
  ] })
8672
8688
  ] }) }),
8673
8689
  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 +8694,7 @@ const StickyFilterButtonLayout = (props) => {
8678
8694
  ] });
8679
8695
  };
8680
8696
  const MobileLayout = (props) => {
8681
- var _a;
8697
+ var _a, _b, _c;
8682
8698
  const { displaySettings } = props;
8683
8699
  const renderLayout = () => {
8684
8700
  var _a2;
@@ -8693,7 +8709,18 @@ const MobileLayout = (props) => {
8693
8709
  return null;
8694
8710
  }
8695
8711
  };
8696
- return /* @__PURE__ */ jsxRuntimeExports.jsx(RenderLayout, { device: "mobile", layout: (_a = displaySettings == null ? void 0 : displaySettings.filter) == null ? void 0 : _a.mobile_layout, children: renderLayout() });
8712
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
8713
+ RenderLayout,
8714
+ {
8715
+ device: "mobile",
8716
+ layout: (_a = displaySettings == null ? void 0 : displaySettings.filter) == null ? void 0 : _a.mobile_layout,
8717
+ additionalProps: {
8718
+ "data-hide-search-bar": (_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.hide_search_bar,
8719
+ "data-hide-limit-options": (_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options
8720
+ },
8721
+ children: renderLayout()
8722
+ }
8723
+ );
8697
8724
  };
8698
8725
  const SearchResultWidget = (props) => {
8699
8726
  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;