@sledge-app/react-instant-search 0.0.97 → 0.0.99

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.
@@ -59,6 +59,7 @@ const LOCAL_STORAGE_KEY = {
59
59
  ANONYM_ID: "sledge-anonym-id",
60
60
  AUTH_APP: "sledge-auth-app",
61
61
  INSTANT_SEARCH_AUTH_APP: "sledge-instant-search-auth-app",
62
+ GENERAL_SETTING: "sledge-general-setting",
62
63
  WISHLIST_SETTING: "sledge-wishlist-setting",
63
64
  PRODUCT_REVIEW_SETTING: "sledge-product-review-setting",
64
65
  INSTANT_SEARCH_SETTING: "sledge-instant-search-setting",
@@ -1199,7 +1200,7 @@ const WidgetHeaderClearTrigger = ({ buttonText, shareId, dataSettings, isFirstLo
1199
1200
  onSubmit: window.sledgeWishlistWidgetClearList || {}
1200
1201
  });
1201
1202
  };
1202
- return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: !isRequiredLogin && /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: !shareId && /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: isFirstLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "132px", height: "46px", color: "grey-100", rounded: "md" }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-wishlist__widget-header-item", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "button", colorType: "danger", onClick: handleClick, style: display_button_clear_all_style, children: buttonText ? buttonText : button_clear_all || "Clear Wishlist" }) }) }) }) });
1203
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: !isRequiredLogin && /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: !shareId && /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: isFirstLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "132px", height: "46px", color: "lighten", rounded: "md" }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-wishlist__widget-header-item", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "button", colorType: "danger", onClick: handleClick, style: display_button_clear_all_style, children: buttonText ? buttonText : button_clear_all || "Clear Wishlist" }) }) }) }) });
1203
1204
  };
1204
1205
  const WidgetHeaderShareTrigger = ({ wishlistData, buttonText, showShareTrigger, shareLink, shareId, dataSettings, isFirstLoading }) => {
1205
1206
  var _a, _b, _c, _d, _e, _f;
@@ -1336,7 +1337,7 @@ const WidgetHeaderShareTrigger = ({ wishlistData, buttonText, showShareTrigger,
1336
1337
  React__default.useEffect(() => {
1337
1338
  setIsRequiredLogin(sledgeAnonymId && is_required_login);
1338
1339
  }, [sledgeAnonymId]);
1339
- return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: !isRequiredLogin && /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: showShareTrigger && /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: isFirstLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "136px", height: "46px", color: "grey-100", rounded: "md" }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-wishlist__widget-header-item sledge-wishlist__widget-header-share-trigger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1340
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: !isRequiredLogin && /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: showShareTrigger && /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: isFirstLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "136px", height: "46px", color: "lighten", rounded: "md" }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-wishlist__widget-header-item sledge-wishlist__widget-header-share-trigger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1340
1341
  Button,
1341
1342
  {
1342
1343
  type: "button",
@@ -1471,7 +1472,7 @@ const WidgetHeader$1 = ({ isFirstLoading, ...props }) => {
1471
1472
  justifyContent: "space-between"
1472
1473
  },
1473
1474
  children: [
1474
- /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "190px", height: "46px", color: "grey-100", rounded: "md" }),
1475
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "190px", height: "46px", color: "lighten", rounded: "md" }),
1475
1476
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
1476
1477
  "div",
1477
1478
  {
@@ -1480,9 +1481,9 @@ const WidgetHeader$1 = ({ isFirstLoading, ...props }) => {
1480
1481
  gap: "8px"
1481
1482
  },
1482
1483
  children: [
1483
- /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "440px", height: "46px", color: "grey-100", rounded: "md" }),
1484
- /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "132px", height: "46px", color: "grey-100", rounded: "md" }),
1485
- /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "136px", height: "46px", color: "grey-100", rounded: "md" })
1484
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "440px", height: "46px", color: "lighten", rounded: "md" }),
1485
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "132px", height: "46px", color: "lighten", rounded: "md" }),
1486
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "136px", height: "46px", color: "lighten", rounded: "md" })
1486
1487
  ]
1487
1488
  }
1488
1489
  ),
@@ -1494,8 +1495,8 @@ const WidgetHeader$1 = ({ isFirstLoading, ...props }) => {
1494
1495
  gap: "26px"
1495
1496
  },
1496
1497
  children: [
1497
- /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "190px", height: "46px", color: "grey-100", rounded: "md" }),
1498
- /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "190px", height: "46px", color: "grey-100", rounded: "md" })
1498
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "190px", height: "46px", color: "lighten", rounded: "md" }),
1499
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "190px", height: "46px", color: "lighten", rounded: "md" })
1499
1500
  ]
1500
1501
  }
1501
1502
  )
@@ -1537,6 +1538,22 @@ const getReviewInfo = async (id) => {
1537
1538
  return;
1538
1539
  });
1539
1540
  };
1541
+ const getProductsReviewInfo = async (ids, token) => {
1542
+ let convertIds = ids.map((v) => sanitizeDataId(v));
1543
+ let sledgeAuthApp = token || localStorage.getItem(LOCAL_STORAGE_KEY.AUTH_APP);
1544
+ var myHeaders = new Headers();
1545
+ myHeaders.append("Authorization", `Bearer ${sledgeAuthApp}`);
1546
+ var requestOptions = {
1547
+ method: "GET",
1548
+ headers: myHeaders,
1549
+ redirect: "follow"
1550
+ };
1551
+ return await fetch(`${API_URL}/review/info/ids/${convertIds.join(",")}`, requestOptions).then((response) => response.json()).then((result) => {
1552
+ return result;
1553
+ }).catch(() => {
1554
+ return;
1555
+ });
1556
+ };
1540
1557
  const Rating = (props) => {
1541
1558
  var _a, _b;
1542
1559
  const { total, average, size = "md", params, withSkeletonLoading = true, withTotal = true, isScrollToElementWidget = true, data: propsData, sledgeSettings } = props;
@@ -1645,7 +1662,7 @@ const Rating = (props) => {
1645
1662
  setIsFirstLoading(true);
1646
1663
  handleProductRatingInfo((_d = (_c = triggerRenderMultipleComponent == null ? void 0 : triggerRenderMultipleComponent.productReview) == null ? void 0 : _c.rating) == null ? void 0 : _d.value, true);
1647
1664
  }, [productId, triggerRenderMultipleComponent]);
1648
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-product-review__rating", onClick: handleOnClick, children: isFirstLoading && withSkeletonLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "230px", height: "28px", color: "grey-100", rounded: "md" }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
1665
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-product-review__rating", onClick: handleOnClick, children: isFirstLoading && withSkeletonLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "230px", height: "28px", color: "lighten", rounded: "md" }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
1649
1666
  /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", style: { display: "none" }, id: "sledge-product-review-rating-icon-svg-store", children: [
1650
1667
  /* @__PURE__ */ jsxRuntimeExports.jsx("symbol", { id: "sledge-product-review-icons-rating-icon-fill", viewBox: "0 0 30 29", fill: fill_color || "#23BC45", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1651
1668
  "path",
@@ -1737,7 +1754,7 @@ const WidgetHeaderAddTrigger = ({ isFirstLoading, text, dataSettings, params, on
1737
1754
  ...display_button_write_review_font_weight && { fontWeight: display_button_write_review_font_weight },
1738
1755
  ...display_button_write_review_text_transform && { textTransform: display_button_write_review_text_transform }
1739
1756
  };
1740
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-product-review__widget-header-item", children: isFirstLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "134px", height: "42px", rounded: "lg", color: "grey-100" }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(
1757
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-product-review__widget-header-item", children: isFirstLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "134px", height: "42px", rounded: "lg", color: "lighten" }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(
1741
1758
  Button,
1742
1759
  {
1743
1760
  type: "button",
@@ -1769,7 +1786,7 @@ const WidgetHeaderSort = ({ isFirstLoading, productReviewSort, dataSettings, set
1769
1786
  setSelectedSort && setSelectedSort(value);
1770
1787
  };
1771
1788
  const getSelectedSort = clickedSortId || ((_b = productReviewSort[0]) == null ? void 0 : _b.value);
1772
- return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: !show_sorting_options ? null : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-product-review__widget-header-item", children: isFirstLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "134px", height: "42px", rounded: "lg", color: "grey-100" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
1789
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: !show_sorting_options ? null : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-product-review__widget-header-item", children: isFirstLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "134px", height: "42px", rounded: "lg", color: "lighten" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
1773
1790
  SelectField,
1774
1791
  {
1775
1792
  align: "end",
@@ -1894,7 +1911,7 @@ const WidgetHeaderSummary = (props) => {
1894
1911
  setIsFirstLoading(true);
1895
1912
  handleProductReviewInfo();
1896
1913
  }, [isOpen, productId]);
1897
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-product-review__widget-summary", children: isFirstLoading && !summaryData ? /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "630px", height: "42px", color: "grey-100", rounded: "md", animationDuration: "5s" }) : isLoading && !summaryData ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(
1914
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-product-review__widget-summary", children: isFirstLoading && !summaryData ? /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "630px", height: "42px", color: "lighten", rounded: "md" }) : isLoading && !summaryData ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(
1898
1915
  Popover,
1899
1916
  {
1900
1917
  trigger: /* @__PURE__ */ jsxRuntimeExports.jsxs(motion.div, { initial: false, animate: isOpen ? "open" : "closed", className: "sledge-product-review__widget-summary-trigger", children: [
@@ -1928,22 +1945,21 @@ const WidgetHeaderSummary = (props) => {
1928
1945
  ] }),
1929
1946
  content: isFirstLoadingSummary ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-product-review__widget-summary-dist-progress", children: [5, 4, 3, 2, 1].map((index) => {
1930
1947
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge-product-review__widget-summary-dist-progress-item", children: [
1931
- /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "108px", height: "22px", color: "grey-100", rounded: "md", animationDuration: "15s" }),
1948
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "108px", height: "22px", color: "lighten", rounded: "md" }),
1932
1949
  /* @__PURE__ */ jsxRuntimeExports.jsx(
1933
1950
  SkeletonLoading.Item,
1934
1951
  {
1935
1952
  width: "128px",
1936
1953
  height: "22px",
1937
- color: "grey-100",
1954
+ color: "lighten",
1938
1955
  rounded: "md",
1939
- animationDuration: "13s",
1940
1956
  style: {
1941
1957
  marginLeft: "13px",
1942
1958
  marginRight: "12px"
1943
1959
  }
1944
1960
  }
1945
1961
  ),
1946
- /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "38px", height: "22px", color: "grey-100", rounded: "md", animationDuration: "42s" })
1962
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "38px", height: "22px", color: "lighten", rounded: "md" })
1947
1963
  ] }, index);
1948
1964
  }) }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-product-review__widget-summary-dist", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-product-review__widget-summary-dist-progress", children: [5, 4, 3, 2, 1].map((item, index) => {
1949
1965
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge-product-review__widget-summary-dist-progress-item", children: [
@@ -2174,6 +2190,7 @@ const ProductGrid = ({
2174
2190
  onAfterRenderProduct && onAfterRenderProduct("success");
2175
2191
  }, []);
2176
2192
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `sledge__product-grid ${className}`, "data-grid-type": type, children: data == null ? void 0 : data.map((item, index) => {
2193
+ var _a, _b, _c;
2177
2194
  const { product, variants } = item || {};
2178
2195
  const { id, title, image, url, vendor = "", currency } = product || {};
2179
2196
  const { id: variant_id = "", title: variant_title = "", price = "", sku = "" } = (variants == null ? void 0 : variants.length) ? variants[0] : {};
@@ -2190,7 +2207,13 @@ const ProductGrid = ({
2190
2207
  is_out_of_stock: Object.hasOwn(variants[index2], "inventory_quantity") ? !inventory_quantity : false
2191
2208
  };
2192
2209
  })
2193
- }
2210
+ },
2211
+ ...dataReviews && Object.keys(dataReviews).length ? {
2212
+ review: {
2213
+ total: ((_a = dataReviews == null ? void 0 : dataReviews[id]) == null ? void 0 : _a.review_count) ? dataReviews == null ? void 0 : dataReviews[id].review_count : 0,
2214
+ average: ((_c = (_b = dataReviews == null ? void 0 : dataReviews[id]) == null ? void 0 : _b.rating) == null ? void 0 : _c.average) ? dataReviews == null ? void 0 : dataReviews[id].rating.average : 0
2215
+ }
2216
+ } : {}
2194
2217
  },
2195
2218
  showPopupComponent,
2196
2219
  setShowPopupComponent
@@ -2417,17 +2440,33 @@ const ScrollArea = ({ children, isLoading = false, className = "", withCorner =
2417
2440
  ] });
2418
2441
  };
2419
2442
  const SkeletonLoading$1 = "";
2420
- const SkeletonItem = ({ width, height, rounded, color, animationDuration = "8s", disableAnimation = false, style = {}, className = "", ...otherProps }) => {
2421
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
2443
+ const SkeletonItem = ({ width, height, rounded, color, style = {}, className = "", ...otherProps }) => {
2444
+ const [isLoading, setIsLoading] = React__default.useState(true);
2445
+ const [dataSettings, setDataSettings] = React__default.useState({});
2446
+ const { enable, colors } = (dataSettings == null ? void 0 : dataSettings.skeleton) || {};
2447
+ const { main_color } = colors || {};
2448
+ const handleSettings = () => {
2449
+ let response;
2450
+ response = JSON.parse(localStorage.getItem(LOCAL_STORAGE_KEY.GENERAL_SETTING) || "");
2451
+ if (!response)
2452
+ return;
2453
+ setIsLoading(false);
2454
+ setDataSettings(response);
2455
+ };
2456
+ React__default.useEffect(() => {
2457
+ handleSettings();
2458
+ }, []);
2459
+ return !isLoading && enable ? /* @__PURE__ */ jsxRuntimeExports.jsx(
2422
2460
  "div",
2423
2461
  {
2424
- className: `sledge__skeleton-item ${className} ${!disableAnimation ? "sledge__skeleton-item-animation" : ""}`,
2462
+ className: `sledge__skeleton-item sledge__skeleton-item-animation ${className}`,
2425
2463
  style: {
2426
2464
  ...{
2427
2465
  width,
2428
- height,
2429
- WebkitAnimationDuration: animationDuration,
2430
- animationDuration
2466
+ height
2467
+ },
2468
+ ...main_color && {
2469
+ background: main_color
2431
2470
  },
2432
2471
  ...style
2433
2472
  },
@@ -2435,7 +2474,7 @@ const SkeletonItem = ({ width, height, rounded, color, animationDuration = "8s",
2435
2474
  "data-skeleton-color": color,
2436
2475
  ...otherProps
2437
2476
  }
2438
- );
2477
+ ) : null;
2439
2478
  };
2440
2479
  const SkeletonProductGrid = ({ count, type }) => {
2441
2480
  let components = [];
@@ -2444,22 +2483,21 @@ const SkeletonProductGrid = ({ count, type }) => {
2444
2483
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge__product-grid-card", children: [
2445
2484
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge__product-grid-content", children: [
2446
2485
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge__product-grid-card-image sledge__skeleton-product-grid-card-image", children: [
2447
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-wishlist__trigger-block", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonItem, { width: "40px", height: "40px", color: "grey-300", rounded: "sm", disableAnimation: true }) }),
2448
- /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonItem, { width: "100%", height: "100%", color: "grey-100", rounded: "md" })
2486
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-wishlist__trigger-block", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonItem, { width: "40px", height: "40px", color: "darken", rounded: "sm" }) }),
2487
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonItem, { width: "100%", height: "100%", color: "lighten", rounded: "md" })
2449
2488
  ] }),
2450
2489
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge__product-grid-card-desc", children: [
2451
2490
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge__product-grid-card-title", children: [
2452
- /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonItem, { width: "134px", height: "28px", color: "grey-100", rounded: "md", animationDuration: "15s" }),
2453
- /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonItem, { width: "80px", height: "28px", color: "grey-100", rounded: "md", animationDuration: "20s" })
2491
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonItem, { width: "134px", height: "28px", color: "lighten", rounded: "md" }),
2492
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonItem, { width: "80px", height: "28px", color: "lighten", rounded: "md" })
2454
2493
  ] }),
2455
2494
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__product-grid-card-text", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
2456
2495
  SkeletonItem,
2457
2496
  {
2458
2497
  width: "190px",
2459
2498
  height: "46px",
2460
- color: "grey-100",
2499
+ color: "lighten",
2461
2500
  rounded: "md",
2462
- animationDuration: "13s",
2463
2501
  style: {
2464
2502
  marginBottom: "16px"
2465
2503
  }
@@ -2467,7 +2505,7 @@ const SkeletonProductGrid = ({ count, type }) => {
2467
2505
  ) })
2468
2506
  ] })
2469
2507
  ] }),
2470
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__product-grid-button-wrapper", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonItem, { width: "117px", height: "40px", color: "grey-100", rounded: "md", animationDuration: "15s" }) })
2508
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__product-grid-button-wrapper", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonItem, { width: "117px", height: "40px", color: "lighten", rounded: "md" }) })
2471
2509
  ] }, i)
2472
2510
  );
2473
2511
  }
@@ -2477,16 +2515,7 @@ const SkeletonReviewGrid = ({ count, type, gridItemHeights = [] }) => {
2477
2515
  let components = [];
2478
2516
  for (let i = 0; i < count; i++) {
2479
2517
  components.push(
2480
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-product-review__widget-review-card", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
2481
- SkeletonItem,
2482
- {
2483
- width: "100%",
2484
- height: type === "list" || type === "grid" && !(gridItemHeights == null ? void 0 : gridItemHeights.length) ? "111px" : gridItemHeights[i],
2485
- color: "grey-100",
2486
- rounded: "md",
2487
- animationDuration: type === "list" ? "2.5s" : "8s"
2488
- }
2489
- ) }, i)
2518
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-product-review__widget-review-card", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonItem, { width: "100%", height: type === "list" || type === "grid" && !(gridItemHeights == null ? void 0 : gridItemHeights.length) ? "111px" : gridItemHeights[i], color: "lighten", rounded: "md" }) }, i)
2490
2519
  );
2491
2520
  }
2492
2521
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -2503,16 +2532,16 @@ const SkeletonCollectionGrid = ({ count }) => {
2503
2532
  for (let i = 0; i < count; i++) {
2504
2533
  components.push(
2505
2534
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge__collection-grid-card", children: [
2506
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__collection-grid-card-image", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonItem, { width: "246px", height: "246px", color: "grey-300", rounded: "md" }) }),
2535
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__collection-grid-card-image", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonItem, { width: "246px", height: "246px", color: "darken", rounded: "md" }) }),
2507
2536
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge__collection-grid-card-content", children: [
2508
2537
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge__collection-grid-card-text", children: [
2509
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__collection-grid-card-content-title", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonItem, { width: "100%", height: "70px", color: "grey-300", rounded: "lg" }) }),
2538
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__collection-grid-card-content-title", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonItem, { width: "100%", height: "70px", color: "darken", rounded: "lg" }) }),
2510
2539
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__collection-grid-card-content-description", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
2511
2540
  SkeletonItem,
2512
2541
  {
2513
2542
  width: "100%",
2514
2543
  height: "47px",
2515
- color: "grey-300",
2544
+ color: "darken",
2516
2545
  rounded: "md",
2517
2546
  style: {
2518
2547
  maxWidth: "357px"
@@ -2525,9 +2554,8 @@ const SkeletonCollectionGrid = ({ count }) => {
2525
2554
  {
2526
2555
  width: "100%",
2527
2556
  height: "40px",
2528
- color: "grey-300",
2557
+ color: "darken",
2529
2558
  rounded: "md",
2530
- animationDuration: "20s",
2531
2559
  style: {
2532
2560
  maxWidth: "117px"
2533
2561
  }
@@ -2549,9 +2577,8 @@ const SkeletonPageGrid = ({ count }) => {
2549
2577
  {
2550
2578
  width: "100%",
2551
2579
  height: "100%",
2552
- color: "grey-300",
2580
+ color: "darken",
2553
2581
  rounded: "md",
2554
- animationDuration: "13s",
2555
2582
  style: {
2556
2583
  borderTopRightRadius: 0,
2557
2584
  borderBottomRightRadius: 0
@@ -2559,15 +2586,14 @@ const SkeletonPageGrid = ({ count }) => {
2559
2586
  }
2560
2587
  ) }),
2561
2588
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge__page-grid-card-content", children: [
2562
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__page-grid-card-content-title", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonItem, { width: "100%", height: "40px", color: "grey-300", rounded: "md", animationDuration: "6s" }) }),
2589
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__page-grid-card-content-title", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonItem, { width: "100%", height: "40px", color: "darken", rounded: "md" }) }),
2563
2590
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__page-grid-card-content-description", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
2564
2591
  SkeletonItem,
2565
2592
  {
2566
2593
  width: "100%",
2567
2594
  height: "40px",
2568
- color: "grey-300",
2595
+ color: "darken",
2569
2596
  rounded: "md",
2570
- animationDuration: "17s",
2571
2597
  style: {
2572
2598
  maxWidth: "115px"
2573
2599
  }
@@ -2584,14 +2610,14 @@ const SkeletonBlogGrid = ({ count }) => {
2584
2610
  for (let i = 0; i < count; i++) {
2585
2611
  components.push(
2586
2612
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__blog-grid-card", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge__blog-grid-content", children: [
2587
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__blog-grid-card-image", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonItem, { width: "100%", height: "100%", color: "grey-100", rounded: "md", animationDuration: "10s" }) }),
2613
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__blog-grid-card-image", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonItem, { width: "100%", height: "100%", color: "lighten", rounded: "md" }) }),
2588
2614
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge__blog-grid-card-desc", children: [
2589
2615
  /* @__PURE__ */ jsxRuntimeExports.jsx(
2590
2616
  SkeletonItem,
2591
2617
  {
2592
2618
  width: "100%",
2593
2619
  height: "28px",
2594
- color: "grey-100",
2620
+ color: "lighten",
2595
2621
  rounded: "md",
2596
2622
  style: {
2597
2623
  maxWidth: "242px",
@@ -2605,9 +2631,8 @@ const SkeletonBlogGrid = ({ count }) => {
2605
2631
  {
2606
2632
  width: "100%",
2607
2633
  height: "28px",
2608
- color: "grey-100",
2634
+ color: "lighten",
2609
2635
  rounded: "md",
2610
- animationDuration: "23s",
2611
2636
  style: {
2612
2637
  maxWidth: "80px",
2613
2638
  marginBottom: "27px"
@@ -2619,9 +2644,8 @@ const SkeletonBlogGrid = ({ count }) => {
2619
2644
  {
2620
2645
  width: "100%",
2621
2646
  height: "80px",
2622
- color: "grey-100",
2647
+ color: "lighten",
2623
2648
  rounded: "md",
2624
- animationDuration: "13s",
2625
2649
  style: {
2626
2650
  maxWidth: "190px",
2627
2651
  marginBottom: "27px"
@@ -2633,9 +2657,8 @@ const SkeletonBlogGrid = ({ count }) => {
2633
2657
  {
2634
2658
  width: "100%",
2635
2659
  height: "40px",
2636
- color: "grey-100",
2660
+ color: "lighten",
2637
2661
  rounded: "md",
2638
- animationDuration: "20s",
2639
2662
  style: {
2640
2663
  maxWidth: "117px"
2641
2664
  }
@@ -2787,6 +2810,7 @@ const SearchIconWidgetPopup = () => {
2787
2810
  const [keyword, setKeyword] = React__default.useState("");
2788
2811
  const [searchResultProduct, setSearchResultProduct] = React__default.useState([]);
2789
2812
  const [searchResultOther, setSearchResultOther] = React__default.useState([]);
2813
+ const [dataReviews, setDataReviews] = React__default.useState({});
2790
2814
  const [displaySettings, setDisplaySettings] = React__default.useState({});
2791
2815
  const [suggestionSettings, setSuggestionSettings] = React__default.useState({});
2792
2816
  const [suggestionIndex, setSuggestionIndex] = React__default.useState("");
@@ -2807,8 +2831,8 @@ const SearchIconWidgetPopup = () => {
2807
2831
  });
2808
2832
  const searchFieldRef = React__default.useRef(null);
2809
2833
  const previousState = usePrevious({ keyword });
2810
- const handleMultiSearch = async (data, onSearch = false) => {
2811
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2;
2834
+ const handleMultiSearch = async (data, onSearch = false, withFetchReviewInfo = false) => {
2835
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2;
2812
2836
  setIsLoading(true);
2813
2837
  const { tabs, suffix_index_product, hidden_tags, display, show_out_of_stock } = data;
2814
2838
  const suggestion = ((_a2 = display == null ? void 0 : display.search) == null ? void 0 : _a2.suggestion) || {};
@@ -2857,6 +2881,14 @@ const SearchIconWidgetPopup = () => {
2857
2881
  !keyword.length && Object.keys(suggestion).length && ((_f2 = (_e2 = suggestion[valueSuggestionIndex]) == null ? void 0 : _e2.products) == null ? void 0 : _f2.active) && ((_i2 = (_h2 = (_g2 = suggestion[valueSuggestionIndex]) == null ? void 0 : _g2.products) == null ? void 0 : _h2.list) == null ? void 0 : _i2.length)
2858
2882
  );
2859
2883
  let dataSearchResultProduct = isPriorityZeroCharacter ? (_k2 = (_j2 = suggestion[valueSuggestionIndex]) == null ? void 0 : _j2.products) == null ? void 0 : _k2.list : getValueSearchResultProduct;
2884
+ if (withFetchReviewInfo) {
2885
+ let searchResultProductIds = dataSearchResultProduct.map(({ id }) => id);
2886
+ let valueDataReviews = await getProductsReviewInfo(searchResultProductIds);
2887
+ if (((_l2 = valueDataReviews == null ? void 0 : valueDataReviews.status) == null ? void 0 : _l2.code) === 200)
2888
+ setDataReviews(valueDataReviews == null ? void 0 : valueDataReviews.data);
2889
+ } else {
2890
+ setDataReviews({});
2891
+ }
2860
2892
  setSearchResultProduct(dataSearchResultProduct);
2861
2893
  setSearchResultOther(valueSearchResultOther);
2862
2894
  setSuggestionIndex(valueSuggestionIndex);
@@ -2871,7 +2903,7 @@ const SearchIconWidgetPopup = () => {
2871
2903
  const { display } = response;
2872
2904
  setDisplaySettings(display);
2873
2905
  setSuggestionSettings((_a2 = display == null ? void 0 : display.search) == null ? void 0 : _a2.suggestion);
2874
- await handleMultiSearch(response);
2906
+ await handleMultiSearch(response, false, true);
2875
2907
  };
2876
2908
  React__default.useEffect(() => {
2877
2909
  if (!isRenderAppInstantSearch)
@@ -2949,7 +2981,7 @@ const SearchIconWidgetPopup = () => {
2949
2981
  {
2950
2982
  width: "100%",
2951
2983
  height: "42px",
2952
- color: "grey-100",
2984
+ color: "lighten",
2953
2985
  rounded: "md",
2954
2986
  ...Boolean(index) && {
2955
2987
  style: { marginTop: "12px" }
@@ -2971,9 +3003,8 @@ const SearchIconWidgetPopup = () => {
2971
3003
  {
2972
3004
  width: "100%",
2973
3005
  height: "28px",
2974
- color: "grey-100",
3006
+ color: "lighten",
2975
3007
  rounded: "md",
2976
- animationDuration: "13s",
2977
3008
  style: {
2978
3009
  maxWidth: "140px"
2979
3010
  }
@@ -3037,7 +3068,8 @@ const SearchIconWidgetPopup = () => {
3037
3068
  onAfterRemoveWishlist: handleFunctions.onAfterRemoveWishlist,
3038
3069
  onAfterRenderProduct: handleFunctions.onAfterRenderProduct,
3039
3070
  showPopupComponent: showInfo,
3040
- setShowPopupComponent: setShowInfo
3071
+ setShowPopupComponent: setShowInfo,
3072
+ dataReviews
3041
3073
  }
3042
3074
  ) }) : Object.keys(suggestionSettings).length && ((_k = (_j = suggestionSettings[suggestionIndex]) == null ? void 0 : _j.products) == null ? void 0 : _k.active) && ((_n = (_m = (_l = suggestionSettings[suggestionIndex]) == null ? void 0 : _l.products) == null ? void 0 : _m.list) == null ? void 0 : _n.length) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
3043
3075
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge-instant-search__icon-widget-search-form-result-product-suggestion-no-result-text", children: [
@@ -3276,8 +3308,8 @@ const SearchResultWidget = (props) => {
3276
3308
  return () => clearTimeout(delayDebounceFn);
3277
3309
  }
3278
3310
  }, [keyword]);
3279
- const tabSkeleton = layoutType === "default" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-tab-list sledge-instant-search__result-tab-list-skeleton", children: [1, 2, 3, 4, 5].map((index) => /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "122px", height: "28px", rounded: "md", color: "grey-100", animationDuration: "15s" }, index)) }) : null;
3280
- const filterHorizontalSkeleton = ((_j = displaySettings == null ? void 0 : displaySettings.filter) == null ? void 0 : _j.enable_on_search) && ((_k = displaySettings == null ? void 0 : displaySettings.filter) == null ? void 0 : _k.layout) === "horizontal" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-filter-horizontal-skeleton", children: [1, 2, 3, 4, 5, 6, 7].map((index) => /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "106px", height: "42px", rounded: "md", color: "grey-100", animationDuration: "13s" }, index)) }) : null;
3311
+ const tabSkeleton = layoutType === "default" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-tab-list sledge-instant-search__result-tab-list-skeleton", children: [1, 2, 3, 4, 5].map((index) => /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "122px", height: "28px", rounded: "md", color: "lighten" }, index)) }) : null;
3312
+ const filterHorizontalSkeleton = ((_j = displaySettings == null ? void 0 : displaySettings.filter) == null ? void 0 : _j.enable_on_search) && ((_k = displaySettings == null ? void 0 : displaySettings.filter) == null ? void 0 : _k.layout) === "horizontal" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-filter-horizontal-skeleton", children: [1, 2, 3, 4, 5, 6, 7].map((index) => /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "106px", height: "42px", rounded: "md", color: "lighten" }, index)) }) : null;
3281
3313
  const filterVerticalSkeleton = ((_l = displaySettings == null ? void 0 : displaySettings.filter) == null ? void 0 : _l.enable_on_search) && ((_m = displaySettings == null ? void 0 : displaySettings.filter) == null ? void 0 : _m.layout) === "vertical" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
3282
3314
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
3283
3315
  "div",
@@ -3291,8 +3323,8 @@ const SearchResultWidget = (props) => {
3291
3323
  marginBottom: "23px"
3292
3324
  },
3293
3325
  children: [
3294
- /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "117px", height: "28px", color: "grey-100", rounded: "md", animationDuration: "15s" }),
3295
- /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "80px", height: "28px", color: "grey-100", rounded: "md", animationDuration: "15s" })
3326
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "117px", height: "28px", color: "lighten", rounded: "md" }),
3327
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "80px", height: "28px", color: "lighten", rounded: "md" })
3296
3328
  ]
3297
3329
  }
3298
3330
  ),
@@ -3301,7 +3333,7 @@ const SearchResultWidget = (props) => {
3301
3333
  {
3302
3334
  width: "100%",
3303
3335
  height: "28px",
3304
- color: "grey-100",
3336
+ color: "lighten",
3305
3337
  rounded: "md",
3306
3338
  style: {
3307
3339
  maxWidth: "270px",
@@ -3314,7 +3346,7 @@ const SearchResultWidget = (props) => {
3314
3346
  {
3315
3347
  width: "100%",
3316
3348
  height: "28px",
3317
- color: "grey-100",
3349
+ color: "lighten",
3318
3350
  rounded: "md",
3319
3351
  style: {
3320
3352
  maxWidth: "163px",
@@ -3328,7 +3360,7 @@ const SearchResultWidget = (props) => {
3328
3360
  {
3329
3361
  width: "100%",
3330
3362
  height: "28px",
3331
- color: "grey-100",
3363
+ color: "lighten",
3332
3364
  rounded: "md",
3333
3365
  style: {
3334
3366
  maxWidth: "163px",
@@ -3341,7 +3373,7 @@ const SearchResultWidget = (props) => {
3341
3373
  {
3342
3374
  width: "100%",
3343
3375
  height: "28px",
3344
- color: "grey-100",
3376
+ color: "lighten",
3345
3377
  rounded: "md",
3346
3378
  style: {
3347
3379
  maxWidth: "270px",
@@ -3354,7 +3386,7 @@ const SearchResultWidget = (props) => {
3354
3386
  {
3355
3387
  width: "100%",
3356
3388
  height: "28px",
3357
- color: "grey-100",
3389
+ color: "lighten",
3358
3390
  rounded: "md",
3359
3391
  style: {
3360
3392
  maxWidth: "163px",
@@ -3367,7 +3399,7 @@ const SearchResultWidget = (props) => {
3367
3399
  {
3368
3400
  width: "100%",
3369
3401
  height: "28px",
3370
- color: "grey-100",
3402
+ color: "lighten",
3371
3403
  rounded: "md",
3372
3404
  style: {
3373
3405
  maxWidth: "163px",
@@ -3380,7 +3412,7 @@ const SearchResultWidget = (props) => {
3380
3412
  {
3381
3413
  width: "100%",
3382
3414
  height: "28px",
3383
- color: "grey-100",
3415
+ color: "lighten",
3384
3416
  rounded: "md",
3385
3417
  style: {
3386
3418
  maxWidth: "270px",
@@ -3393,7 +3425,7 @@ const SearchResultWidget = (props) => {
3393
3425
  {
3394
3426
  width: "100%",
3395
3427
  height: "28px",
3396
- color: "grey-100",
3428
+ color: "lighten",
3397
3429
  rounded: "md",
3398
3430
  style: {
3399
3431
  maxWidth: "270px",
@@ -3406,7 +3438,7 @@ const SearchResultWidget = (props) => {
3406
3438
  {
3407
3439
  width: "100%",
3408
3440
  height: "28px",
3409
- color: "grey-100",
3441
+ color: "lighten",
3410
3442
  rounded: "md",
3411
3443
  style: {
3412
3444
  maxWidth: "270px",
@@ -3419,7 +3451,7 @@ const SearchResultWidget = (props) => {
3419
3451
  {
3420
3452
  width: "100%",
3421
3453
  height: "28px",
3422
- color: "grey-100",
3454
+ color: "lighten",
3423
3455
  rounded: "md",
3424
3456
  style: {
3425
3457
  maxWidth: "163px",
@@ -3432,7 +3464,7 @@ const SearchResultWidget = (props) => {
3432
3464
  {
3433
3465
  width: "100%",
3434
3466
  height: "28px",
3435
- color: "grey-100",
3467
+ color: "lighten",
3436
3468
  rounded: "md",
3437
3469
  style: {
3438
3470
  maxWidth: "163px",
@@ -3445,7 +3477,7 @@ const SearchResultWidget = (props) => {
3445
3477
  {
3446
3478
  width: "100%",
3447
3479
  height: "28px",
3448
- color: "grey-100",
3480
+ color: "lighten",
3449
3481
  rounded: "md",
3450
3482
  style: {
3451
3483
  maxWidth: "270px",
@@ -3458,7 +3490,7 @@ const SearchResultWidget = (props) => {
3458
3490
  {
3459
3491
  width: "100%",
3460
3492
  height: "28px",
3461
- color: "grey-100",
3493
+ color: "lighten",
3462
3494
  rounded: "md",
3463
3495
  style: {
3464
3496
  maxWidth: "163px",
@@ -3472,7 +3504,7 @@ const SearchResultWidget = (props) => {
3472
3504
  {
3473
3505
  width: "100%",
3474
3506
  height: "28px",
3475
- color: "grey-100",
3507
+ color: "lighten",
3476
3508
  rounded: "md",
3477
3509
  style: {
3478
3510
  maxWidth: "270px",
@@ -3489,7 +3521,7 @@ const SearchResultWidget = (props) => {
3489
3521
  alignItems: "center",
3490
3522
  gap: "12px"
3491
3523
  },
3492
- children: [1, 2, 3, 4, 5, 6, 7, 8, 9].map((index) => /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "34px", height: "34px", color: "grey-100", rounded: "full", animationDuration: "40s" }, index))
3524
+ children: [1, 2, 3, 4, 5, 6, 7, 8, 9].map((index) => /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "34px", height: "34px", color: "lighten", rounded: "full" }, index))
3493
3525
  }
3494
3526
  )
3495
3527
  ] }) : null;
@@ -3499,9 +3531,8 @@ const SearchResultWidget = (props) => {
3499
3531
  {
3500
3532
  width: "117px",
3501
3533
  height: "28px",
3502
- color: "grey-100",
3534
+ color: "lighten",
3503
3535
  rounded: "md",
3504
- animationDuration: "13s",
3505
3536
  style: {
3506
3537
  marginBottom: "21px"
3507
3538
  }
@@ -3510,13 +3541,13 @@ const SearchResultWidget = (props) => {
3510
3541
  /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.ProductGrid, { count: 12, type: "large" })
3511
3542
  ] });
3512
3543
  const searchAndSelectOptionSkeleton = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge-instant-search__result-data-keyword", children: [
3513
- ((_p = displaySettings == null ? void 0 : displaySettings.filter) == null ? void 0 : _p.show_total_products) && ((_q = displaySettings == null ? void 0 : displaySettings.filter) == null ? void 0 : _q.layout) === "horizontal" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-data-summary sledge-instant-search__result-data-summary-filter-horizontal", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "117px", height: "28px", color: "grey-100", rounded: "md", animationDuration: "13s" }) }) : null,
3544
+ ((_p = displaySettings == null ? void 0 : displaySettings.filter) == null ? void 0 : _p.show_total_products) && ((_q = displaySettings == null ? void 0 : displaySettings.filter) == null ? void 0 : _q.layout) === "horizontal" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-data-summary sledge-instant-search__result-data-summary-filter-horizontal", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "117px", height: "28px", color: "lighten", rounded: "md" }) }) : null,
3514
3545
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-data-keyword-form", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
3515
3546
  SkeletonLoading.Item,
3516
3547
  {
3517
3548
  width: "100%",
3518
3549
  height: "42px",
3519
- color: "grey-100",
3550
+ color: "lighten",
3520
3551
  rounded: "lg",
3521
3552
  style: {
3522
3553
  maxWidth: "630px"
@@ -3524,8 +3555,8 @@ const SearchResultWidget = (props) => {
3524
3555
  }
3525
3556
  ) }),
3526
3557
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge-instant-search__result-data-summary-item sledge-instant-search__result-data-summary-select-field", children: [
3527
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-data-summary-select-field-item", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "150px", height: "42px", color: "grey-100", rounded: "lg" }) }),
3528
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-data-summary-select-field-item", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "150px", height: "42px", color: "grey-100", rounded: "lg" }) })
3558
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-data-summary-select-field-item", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "150px", height: "42px", color: "lighten", rounded: "lg" }) }),
3559
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-data-summary-select-field-item", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "150px", height: "42px", color: "lighten", rounded: "lg" }) })
3529
3560
  ] })
3530
3561
  ] });
3531
3562
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge-instant-search__result-container", ref: searchResultContainerRef, children: [
@@ -4338,7 +4369,7 @@ const ResultCategory = (props) => {
4338
4369
  withClearField: true
4339
4370
  }
4340
4371
  ) });
4341
- const summaryTextSkeleton = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-data-summary", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "117px", height: "28px", color: "grey-100", rounded: "md", animationDuration: "18s" }) });
4372
+ const summaryTextSkeleton = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-data-summary", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.Item, { width: "117px", height: "28px", color: "lighten", rounded: "md" }) });
4342
4373
  const skeletonLoadingComponent = ((_a = String(clickedTabIndexId)) == null ? void 0 : _a.includes("collection")) ? /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.CollectionGrid, { count: 3 }) : ((_b = String(clickedTabIndexId)) == null ? void 0 : _b.includes("page")) ? /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.PageGrid, { count: 12 }) : ((_c = String(clickedTabIndexId)) == null ? void 0 : _c.includes("blog")) || ((_d = String(clickedTabIndexId)) == null ? void 0 : _d.includes("article")) ? /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.BlogGrid, { count: 12 }) : null;
4343
4374
  const ProvideElementFirstLoading = () => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge-instant-search__result-data-category-wrapper", children: [
4344
4375
  searchKeywordComponent,
@@ -4526,7 +4557,7 @@ const SearchWidget = (props) => {
4526
4557
  {
4527
4558
  width: "100%",
4528
4559
  height: "42px",
4529
- color: "grey-100",
4560
+ color: "lighten",
4530
4561
  rounded: "md",
4531
4562
  ...Boolean(index) && {
4532
4563
  style: { marginTop: "12px" }
@@ -4548,9 +4579,8 @@ const SearchWidget = (props) => {
4548
4579
  {
4549
4580
  width: "100%",
4550
4581
  height: "28px",
4551
- color: "grey-100",
4582
+ color: "lighten",
4552
4583
  rounded: "md",
4553
- animationDuration: "13s",
4554
4584
  style: {
4555
4585
  maxWidth: "140px"
4556
4586
  }