s-platform-landing-section 0.1.17 → 0.1.18

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.
@@ -33,7 +33,7 @@ var Button = function Button(props) {
33
33
  _props$type = props.type,
34
34
  type = _props$type === void 0 ? "primary" : _props$type;
35
35
  var _className = type === "primary" ? "text-textButton bg-primary" : "text-primary border border-primary";
36
- _className = "font-medium rounded-lg text-sm px-3 py-2 md:px-4 md:py-2.5 hover:text-textButton hover:bg-primary hover:opacity-80 " + _className + " " + ((shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : shopConfigStyle.buttonClass) || "") + " " + className;
36
+ _className = "font-medium rounded-lg text-sm px-3 py-2 md:px-4 md:py-2.5 hover:text-textButton hover:bg-primary hover:opacity-80 " + _className + " " + className + " " + ((shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : shopConfigStyle.buttonClass) || "");
37
37
  return /*#__PURE__*/React__default.createElement("button", {
38
38
  type: "button",
39
39
  className: _className,
@@ -373,20 +373,38 @@ var NavBar7 = function NavBar7(props) {
373
373
  onClick: function onClick(event) {
374
374
  return event.stopPropagation();
375
375
  }
376
- }, /*#__PURE__*/React__default.createElement("button", {
377
- className: "flex w-full justify-end text-gray4",
376
+ }, /*#__PURE__*/React__default.createElement("div", {
377
+ className: "flex justify-between"
378
+ }, /*#__PURE__*/React__default.createElement("div", {
379
+ className: "flex gap-2 items-center"
380
+ }, /*#__PURE__*/React__default.createElement(LinkToPage, {
381
+ Link: Link,
382
+ href: "/",
383
+ onClick: function onClick() {
384
+ return setIsOpen(false);
385
+ }
386
+ }, /*#__PURE__*/React__default.createElement("img", {
387
+ src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
388
+ className: "h-14 w-14 bg-cover bg-no-repeat"
389
+ })), /*#__PURE__*/React__default.createElement("div", {
390
+ className: "text-xl font-semibold line-clamp-1"
391
+ }, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName)), /*#__PURE__*/React__default.createElement("button", {
392
+ className: "text-gray4",
378
393
  onClick: function onClick() {
379
394
  setIsOpen(false);
380
395
  }
381
396
  }, /*#__PURE__*/React__default.createElement(RxCross2, {
382
397
  size: 24
383
- })), /*#__PURE__*/React__default.createElement("div", null, shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : (_shopConfigStyle$navB3 = shopConfigStyle.navBarMenus) === null || _shopConfigStyle$navB3 === void 0 ? void 0 : (_shopConfigStyle$navB4 = _shopConfigStyle$navB3.filter(function (e) {
398
+ }))), /*#__PURE__*/React__default.createElement("div", null, shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : (_shopConfigStyle$navB3 = shopConfigStyle.navBarMenus) === null || _shopConfigStyle$navB3 === void 0 ? void 0 : (_shopConfigStyle$navB4 = _shopConfigStyle$navB3.filter(function (e) {
384
399
  return e === null || e === void 0 ? void 0 : e.isShow;
385
400
  })) === null || _shopConfigStyle$navB4 === void 0 ? void 0 : _shopConfigStyle$navB4.map(function (item, index) {
386
401
  return /*#__PURE__*/React__default.createElement(LinkToPage, {
387
402
  Link: Link,
388
403
  href: item === null || item === void 0 ? void 0 : item.route,
389
- key: index
404
+ key: index,
405
+ onClick: function onClick() {
406
+ return setIsOpen(false);
407
+ }
390
408
  }, /*#__PURE__*/React__default.createElement("div", {
391
409
  className: "py-2 " + ((item === null || item === void 0 ? void 0 : item.name) === (route === null || route === void 0 ? void 0 : route.name) ? "text-textHeading" : "")
392
410
  }, item === null || item === void 0 ? void 0 : item.label));
@@ -577,10 +595,16 @@ var NavBar1 = function NavBar1(props) {
577
595
  className: "flex justify-between"
578
596
  }, /*#__PURE__*/React__default.createElement("div", {
579
597
  className: "flex gap-2 items-center"
598
+ }, /*#__PURE__*/React__default.createElement(LinkToPage, {
599
+ Link: Link,
600
+ href: "/",
601
+ onClick: function onClick() {
602
+ return setIsOpen(false);
603
+ }
580
604
  }, /*#__PURE__*/React__default.createElement("img", {
581
605
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
582
606
  className: "h-14 w-14 bg-cover bg-no-repeat"
583
- }), /*#__PURE__*/React__default.createElement("div", {
607
+ })), /*#__PURE__*/React__default.createElement("div", {
584
608
  className: "text-xl font-semibold line-clamp-1"
585
609
  }, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName)), /*#__PURE__*/React__default.createElement("button", {
586
610
  className: "text-gray4",
@@ -595,7 +619,10 @@ var NavBar1 = function NavBar1(props) {
595
619
  return /*#__PURE__*/React__default.createElement(LinkToPage, {
596
620
  Link: Link,
597
621
  href: item === null || item === void 0 ? void 0 : item.route,
598
- key: index
622
+ key: index,
623
+ onClick: function onClick() {
624
+ return setIsOpen(false);
625
+ }
599
626
  }, /*#__PURE__*/React__default.createElement("div", {
600
627
  className: "py-2 " + ((item === null || item === void 0 ? void 0 : item.name) === (route === null || route === void 0 ? void 0 : route.name) ? "text-textHeading" : "")
601
628
  }, item === null || item === void 0 ? void 0 : item.label));
@@ -784,7 +811,7 @@ var Input = forwardRef(function (props, ref) {
784
811
  setTypeInput("text");
785
812
  }
786
813
  };
787
- var _className = "h-9 md:h-10 py-1 px-2 border border-stroke rounded-lg " + className;
814
+ var _className = "h-10 py-1 px-2 border border-stroke rounded-lg " + className;
788
815
  var _inputClassName = (isQuantity ? "text-center w-12" : "") + " focus:outline-none focus:ring-0 bg-transparent\t " + inputClassName;
789
816
  var required = !!(rules !== null && rules !== void 0 && rules.find(function (e) {
790
817
  return (e === null || e === void 0 ? void 0 : e.type) === "required";
@@ -828,7 +855,7 @@ var Input = forwardRef(function (props, ref) {
828
855
  });
829
856
 
830
857
  var Hero1 = function Hero1(props) {
831
- var _sectionData$, _sectionData$$srcImag, _sectionData$2, _sectionData$3, _sectionData$4, _sectionData$4$button, _sectionData$4$button2, _sectionData$5, _sectionData$5$button, _sectionData$5$button2;
858
+ var _sectionData$, _sectionData$$srcImag, _sectionData$2, _sectionData$3, _sectionData$4, _sectionData$4$button, _sectionData$4$button2, _sectionData$5, _sectionData$5$button, _sectionData$5$button2, _sectionData$6, _sectionData$6$button, _sectionData$6$button2;
832
859
  var shopConfigStyle = props.shopConfigStyle,
833
860
  data = props.data,
834
861
  _props$Link = props.Link,
@@ -850,9 +877,9 @@ var Hero1 = function Hero1(props) {
850
877
  className: "text-center md:text-2xl lg:text-3xl font-medium"
851
878
  }, sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$3 = sectionData[0]) === null || _sectionData$3 === void 0 ? void 0 : _sectionData$3.description), /*#__PURE__*/React__default.createElement(LinkToPage, {
852
879
  Link: Link,
853
- href: sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$4 = sectionData[0]) === null || _sectionData$4 === void 0 ? void 0 : (_sectionData$4$button = _sectionData$4.buttons) === null || _sectionData$4$button === void 0 ? void 0 : (_sectionData$4$button2 = _sectionData$4$button[0]) === null || _sectionData$4$button2 === void 0 ? void 0 : _sectionData$4$button2.link
880
+ href: (sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$4 = sectionData[0]) === null || _sectionData$4 === void 0 ? void 0 : (_sectionData$4$button = _sectionData$4.buttons) === null || _sectionData$4$button === void 0 ? void 0 : (_sectionData$4$button2 = _sectionData$4$button[0]) === null || _sectionData$4$button2 === void 0 ? void 0 : _sectionData$4$button2.route) || (sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$5 = sectionData[0]) === null || _sectionData$5 === void 0 ? void 0 : (_sectionData$5$button = _sectionData$5.buttons) === null || _sectionData$5$button === void 0 ? void 0 : (_sectionData$5$button2 = _sectionData$5$button[0]) === null || _sectionData$5$button2 === void 0 ? void 0 : _sectionData$5$button2.link)
854
881
  }, /*#__PURE__*/React__default.createElement(Button, {
855
- label: sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$5 = sectionData[0]) === null || _sectionData$5 === void 0 ? void 0 : (_sectionData$5$button = _sectionData$5.buttons) === null || _sectionData$5$button === void 0 ? void 0 : (_sectionData$5$button2 = _sectionData$5$button[0]) === null || _sectionData$5$button2 === void 0 ? void 0 : _sectionData$5$button2.label,
882
+ label: sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$6 = sectionData[0]) === null || _sectionData$6 === void 0 ? void 0 : (_sectionData$6$button = _sectionData$6.buttons) === null || _sectionData$6$button === void 0 ? void 0 : (_sectionData$6$button2 = _sectionData$6$button[0]) === null || _sectionData$6$button2 === void 0 ? void 0 : _sectionData$6$button2.label,
856
883
  shopConfigStyle: shopConfigStyle
857
884
  })), " "), /*#__PURE__*/React__default.createElement("div", {
858
885
  className: "w-[90%] md:w-2/3 xl:w-1/2 bg-background flex gap-2 md:gap-4 lg:gap-6 p-2 md:p-4 lg:p-6 rounded-xl absolute bottom-[-40px] shadow-lg"
@@ -917,7 +944,9 @@ var Hero5 = function Hero5(props) {
917
944
  var Hero6 = function Hero6(props) {
918
945
  var _data$data, _data$data$, _data$data$$srcImages, _data$data2, _data$data2$, _data$data3, _data$data3$, _sectionData$, _sectionData$$buttons;
919
946
  var shopConfigStyle = props.shopConfigStyle,
920
- data = props.data;
947
+ data = props.data,
948
+ _props$Link = props.Link,
949
+ Link = _props$Link === void 0 ? null : _props$Link;
921
950
  var sectionData = data === null || data === void 0 ? void 0 : data.data;
922
951
  return /*#__PURE__*/React__default.createElement("div", {
923
952
  className: "relative"
@@ -931,7 +960,8 @@ var Hero6 = function Hero6(props) {
931
960
  }, data === null || data === void 0 ? void 0 : (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : (_data$data2$ = _data$data2[0]) === null || _data$data2$ === void 0 ? void 0 : _data$data2$.title), /*#__PURE__*/React__default.createElement("div", {
932
961
  className: "md:text-xl"
933
962
  }, data === null || data === void 0 ? void 0 : (_data$data3 = data.data) === null || _data$data3 === void 0 ? void 0 : (_data$data3$ = _data$data3[0]) === null || _data$data3$ === void 0 ? void 0 : _data$data3$.description), sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$ = sectionData[0]) === null || _sectionData$ === void 0 ? void 0 : (_sectionData$$buttons = _sectionData$.buttons) === null || _sectionData$$buttons === void 0 ? void 0 : _sectionData$$buttons.map(function (button) {
934
- return /*#__PURE__*/React__default.createElement("a", {
963
+ return /*#__PURE__*/React__default.createElement(LinkToPage, {
964
+ Link: Link,
935
965
  href: (button === null || button === void 0 ? void 0 : button.route) || (button === null || button === void 0 ? void 0 : button.link) || "#"
936
966
  }, /*#__PURE__*/React__default.createElement(Button, {
937
967
  label: button === null || button === void 0 ? void 0 : button.label,
@@ -1057,13 +1087,13 @@ var CarouselItem = function CarouselItem(props) {
1057
1087
  })))), isNavigateButton ? /*#__PURE__*/React__default.createElement("div", {
1058
1088
  className: "hidden my-auto col-span-5 md:col-span-3 lg:col-span-2 gap-4 md:flex justify-end "
1059
1089
  }, /*#__PURE__*/React__default.createElement("button", {
1060
- className: "p-2 h-full w-10 md:w-12 rounded-full " + (isScrolledToRight ? "bg-gray5" : "bg-primary"),
1090
+ className: "p-2 h-full w-10 h-10 md:h-12 md:w-12 rounded-full " + (isScrolledToRight ? "bg-gray5" : "bg-primary"),
1061
1091
  onClick: handleClickPrevImg
1062
1092
  }, /*#__PURE__*/React__default.createElement(IoIosArrowBack, {
1063
1093
  size: 32,
1064
1094
  className: "inline-block text-lg text-textButton"
1065
1095
  })), /*#__PURE__*/React__default.createElement("button", {
1066
- className: " p-2 h-full w-10 md:w-12 rounded-full " + (isScrolledToRight ? "bg-primary" : "bg-gray5"),
1096
+ className: " p-2 h-full w-10 h-10 md:h-12 md:w-12 rounded-full " + (isScrolledToRight ? "bg-primary" : "bg-gray5"),
1067
1097
  onClick: handleClickNextImg
1068
1098
  }, /*#__PURE__*/React__default.createElement(IoIosArrowForward, {
1069
1099
  size: 32,
@@ -9355,7 +9385,6 @@ var ProductItem2 = function ProductItem2(props) {
9355
9385
  Link = _props$Link === void 0 ? null : _props$Link,
9356
9386
  _props$className = props.className,
9357
9387
  className = _props$className === void 0 ? "" : _props$className;
9358
- console.log("checkkkkkkkk:::::::", className);
9359
9388
  return /*#__PURE__*/React__default.createElement(LinkToPage, {
9360
9389
  Link: Link,
9361
9390
  href: getLinkProductDetail(product)
@@ -9387,9 +9416,9 @@ var ProductItem3 = function ProductItem3(props) {
9387
9416
  product: product,
9388
9417
  className: "w-full h-44 md:h-56 lg:h-64 xl:h-72 bg-cover bg-no-repeat rounded-t-2xl"
9389
9418
  }), /*#__PURE__*/React__default.createElement("div", {
9390
- className: "p-4 flex flex-col gap-4 items-start"
9419
+ className: "p-4 flex flex-col gap-2 md:gap-4 items-start"
9391
9420
  }, /*#__PURE__*/React__default.createElement("div", {
9392
- className: "line-clamp-1"
9421
+ className: "line-clamp-1 text-lg"
9393
9422
  }, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
9394
9423
  product: product,
9395
9424
  className: "text-lg text-start"
@@ -9411,14 +9440,14 @@ var ProductItem4 = function ProductItem4(props) {
9411
9440
  className: "w-full border border-stroke flex flex-col gap-2 md:gap-4 rounded-2xl p-2 md:p-4 xl:p-6 " + className
9412
9441
  }, /*#__PURE__*/React__default.createElement(ProductImage, {
9413
9442
  product: product,
9414
- className: "w-full h-44 sm:h-56 xl:h-72 bg-cover bg-no-repeat rounded-2xl"
9443
+ className: "w-full h-40 sm:h-56 lg:h-60 xl:h-64 bg-cover bg-no-repeat rounded-2xl"
9415
9444
  }), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
9416
- className: "text-start line-clamp-1"
9445
+ className: "text-start line-clamp-1 text-lg"
9417
9446
  }, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
9418
9447
  product: product,
9419
9448
  className: "text-lg text-start mt-2"
9420
9449
  })), /*#__PURE__*/React__default.createElement("div", {
9421
- className: "flex pt-4 gap-2 md:gap-4 border-t items-center"
9450
+ className: "flex pt-2 md:pt-4 gap-2 md:gap-4 border-t items-center"
9422
9451
  }, /*#__PURE__*/React__default.createElement("div", {
9423
9452
  className: "p-2 md:p-[10px] rounded-full hover:opacity-80 border border-primary h-full w-auto flex items-center justify-center " + (shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : shopConfigStyle.buttonClass)
9424
9453
  }, /*#__PURE__*/React__default.createElement(FiShoppingCart, {
@@ -9477,7 +9506,7 @@ var ProductItem6 = function ProductItem6(props) {
9477
9506
  className: "w-full border border-stroke flex flex-col gap-2 md:gap-4 rounded-2xl p-2 md:p-4 xl:p-6 " + className
9478
9507
  }, /*#__PURE__*/React__default.createElement(ProductImage, {
9479
9508
  product: product,
9480
- className: "w-full h-44 sm:h-56 xl:h-72 bg-cover bg-no-repeat rounded-2xl"
9509
+ className: "w-full h-40 sm:h-56 lg:h-60 xl:h-64 bg-cover bg-no-repeat rounded-2xl"
9481
9510
  }), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
9482
9511
  className: "text start line-clamp-1"
9483
9512
  }, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
@@ -10352,12 +10381,14 @@ var ProductHighlight1 = function ProductHighlight1(props) {
10352
10381
  return /*#__PURE__*/React__default.createElement(ProductItem, {
10353
10382
  Link: Link,
10354
10383
  product: product === null || product === void 0 ? void 0 : product.productInfo,
10384
+ shopConfigStyle: shopConfigStyle,
10355
10385
  key: "zjk-" + idx
10356
10386
  });
10357
10387
  })) : /*#__PURE__*/React__default.createElement(NotFoundProduct, null), !loading && (products === null || products === void 0 ? void 0 : products.length) > (params === null || params === void 0 ? void 0 : params.size) - 4 ? /*#__PURE__*/React__default.createElement(Button, {
10358
10388
  label: "Xem thêm",
10359
10389
  onClick: handleGetMoreProducts,
10360
- className: "mx-auto " + (shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : shopConfigStyle.buttonClass),
10390
+ shopConfigStyle: shopConfigStyle,
10391
+ className: "mx-auto",
10361
10392
  type: "outline"
10362
10393
  }) : null);
10363
10394
  };
@@ -10619,7 +10650,7 @@ var Booking1 = function Booking1(props) {
10619
10650
  };
10620
10651
 
10621
10652
  var BookingForm6 = function BookingForm6(props) {
10622
- var _data$data, _data$data$, _data$data2, _data$data2$;
10653
+ var _data$data, _data$data$, _data$data2, _data$data2$, _data$data3, _data$data3$, _data$data4, _data$data4$, _data$data5, _data$data5$, _data$data6, _data$data6$;
10623
10654
  var _props$shopConfigStyl = props.shopConfigStyle,
10624
10655
  shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
10625
10656
  _props$shopConfig = props.shopConfig,
@@ -10636,14 +10667,20 @@ var BookingForm6 = function BookingForm6(props) {
10636
10667
  shopConfigStyle: shopConfigStyle
10637
10668
  }), /*#__PURE__*/React__default.createElement("div", {
10638
10669
  className: "mt-12 grid grid-cols-1 gap-6 md:grid-cols-3 md:gap-12"
10670
+ }, /*#__PURE__*/React__default.createElement(LinkToPage, {
10671
+ href: (data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : (_data$data$ = _data$data[0]) === null || _data$data$ === void 0 ? void 0 : _data$data$.route) || (data === null || data === void 0 ? void 0 : (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : (_data$data2$ = _data$data2[0]) === null || _data$data2$ === void 0 ? void 0 : _data$data2$.link)
10672
+ }, data !== null && data !== void 0 && (_data$data3 = data.data) !== null && _data$data3 !== void 0 && (_data$data3$ = _data$data3[0]) !== null && _data$data3$ !== void 0 && _data$data3$.svgImage ? /*#__PURE__*/React__default.createElement("div", {
10673
+ className: "text-primary w-full h-auto"
10639
10674
  }, /*#__PURE__*/React__default.createElement("div", {
10640
- className: ""
10641
- }, /*#__PURE__*/React__default.createElement("img", {
10642
- src: data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : (_data$data$ = _data$data[0]) === null || _data$data$ === void 0 ? void 0 : _data$data$.srcImage,
10675
+ dangerouslySetInnerHTML: {
10676
+ __html: configSvg(data === null || data === void 0 ? void 0 : (_data$data4 = data.data) === null || _data$data4 === void 0 ? void 0 : (_data$data4$ = _data$data4[0]) === null || _data$data4$ === void 0 ? void 0 : _data$data4$.svgImage)
10677
+ }
10678
+ })) : /*#__PURE__*/React__default.createElement("img", {
10679
+ src: data === null || data === void 0 ? void 0 : (_data$data5 = data.data) === null || _data$data5 === void 0 ? void 0 : (_data$data5$ = _data$data5[0]) === null || _data$data5$ === void 0 ? void 0 : _data$data5$.srcImage,
10643
10680
  className: "w-full h-auto"
10644
10681
  }), /*#__PURE__*/React__default.createElement("div", {
10645
10682
  className: "mt-4 whitespace-pre-line"
10646
- }, data === null || data === void 0 ? void 0 : (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : (_data$data2$ = _data$data2[0]) === null || _data$data2$ === void 0 ? void 0 : _data$data2$.description)), /*#__PURE__*/React__default.createElement(BookingForm, {
10683
+ }, data === null || data === void 0 ? void 0 : (_data$data6 = data.data) === null || _data$data6 === void 0 ? void 0 : (_data$data6$ = _data$data6[0]) === null || _data$data6$ === void 0 ? void 0 : _data$data6$.description)), /*#__PURE__*/React__default.createElement(BookingForm, {
10647
10684
  shopConfigStyle: shopConfigStyle,
10648
10685
  shopConfig: shopConfig,
10649
10686
  className: "col-span-2"
@@ -10740,15 +10777,21 @@ var Banner2 = function Banner2(props) {
10740
10777
  };
10741
10778
 
10742
10779
  var Banner3 = function Banner3(props) {
10743
- var data = props.data;
10780
+ var data = props.data,
10781
+ _props$Link = props.Link,
10782
+ Link = _props$Link === void 0 ? null : _props$Link;
10744
10783
  var sectionData = data === null || data === void 0 ? void 0 : data.data;
10745
10784
  return /*#__PURE__*/React__default.createElement("div", {
10746
10785
  className: SECTION_CLASS + " grid grid-cols-1 md:grid-cols-3 gap-5"
10747
10786
  }, sectionData === null || sectionData === void 0 ? void 0 : sectionData.map(function (item, index) {
10748
- return /*#__PURE__*/React__default.createElement("img", {
10787
+ return /*#__PURE__*/React__default.createElement(LinkToPage, {
10788
+ Link: Link,
10789
+ href: (item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link),
10790
+ key: "djsd-" + index
10791
+ }, /*#__PURE__*/React__default.createElement("img", {
10749
10792
  src: item === null || item === void 0 ? void 0 : item.srcImage,
10750
10793
  className: "bg-cover bg-no-repeat h-full rounded-xl"
10751
- });
10794
+ }));
10752
10795
  }));
10753
10796
  };
10754
10797
 
@@ -10941,13 +10984,11 @@ var Links1 = function Links1(props) {
10941
10984
  };
10942
10985
 
10943
10986
  var Footer1 = function Footer1(props) {
10944
- var _routes$filter;
10987
+ var _shopConfigStyle$navB, _shopConfigStyle$navB2;
10945
10988
  var shopConfig = props.shopConfig,
10946
10989
  shopConfigStyle = props.shopConfigStyle,
10947
10990
  _props$Link = props.Link,
10948
- Link = _props$Link === void 0 ? null : _props$Link,
10949
- _props$routes = props.routes,
10950
- routes = _props$routes === void 0 ? [] : _props$routes;
10991
+ Link = _props$Link === void 0 ? null : _props$Link;
10951
10992
  var _shopConfigStyle$colo = shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : shopConfigStyle.color,
10952
10993
  _shopConfigStyle$colo2 = _shopConfigStyle$colo.primary,
10953
10994
  primary = _shopConfigStyle$colo2 === void 0 ? "#000" : _shopConfigStyle$colo2,
@@ -10979,7 +11020,9 @@ var Footer1 = function Footer1(props) {
10979
11020
  };
10980
11021
  return /*#__PURE__*/React__default.createElement("div", {
10981
11022
  className: SECTION_CLASS + " !md:my-0 !my-0 pt-12 bg-bgSecondary"
10982
- }, /*#__PURE__*/React__default.createElement("div", {
11023
+ }, /*#__PURE__*/React__default.createElement(LinkToPage, {
11024
+ Link: Link,
11025
+ href: "/",
10983
11026
  className: "flex items-center"
10984
11027
  }, /*#__PURE__*/React__default.createElement("img", {
10985
11028
  className: "object-cover w-16 h-16",
@@ -11018,12 +11061,13 @@ var Footer1 = function Footer1(props) {
11018
11061
  className: "mb-3 font-semibold text-lg"
11019
11062
  }, "Li\xEAn k\u1EBFt"), /*#__PURE__*/React__default.createElement("div", {
11020
11063
  className: "leading-10 flex flex-col "
11021
- }, routes === null || routes === void 0 ? void 0 : (_routes$filter = routes.filter(function (e) {
11064
+ }, shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : (_shopConfigStyle$navB = shopConfigStyle.navBarMenus) === null || _shopConfigStyle$navB === void 0 ? void 0 : (_shopConfigStyle$navB2 = _shopConfigStyle$navB.filter(function (e) {
11022
11065
  return e === null || e === void 0 ? void 0 : e.isShow;
11023
- })) === null || _routes$filter === void 0 ? void 0 : _routes$filter.map(function (route, index) {
11066
+ })) === null || _shopConfigStyle$navB2 === void 0 ? void 0 : _shopConfigStyle$navB2.map(function (route, index) {
11024
11067
  return /*#__PURE__*/React__default.createElement(LinkToPage, {
11025
11068
  Link: Link,
11026
- href: route === null || route === void 0 ? void 0 : route.route
11069
+ href: route === null || route === void 0 ? void 0 : route.route,
11070
+ key: "dfjg-" + index
11027
11071
  }, /*#__PURE__*/React__default.createElement("div", null, route === null || route === void 0 ? void 0 : route.label));
11028
11072
  }))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
11029
11073
  className: "font-semibold mb-4 text-lg"
@@ -11071,11 +11115,11 @@ var Footer1 = function Footer1(props) {
11071
11115
  };
11072
11116
 
11073
11117
  var Footer7 = function Footer7(props) {
11074
- var _routes$filter;
11118
+ var _shopConfigStyle$navB, _shopConfigStyle$navB2;
11075
11119
  var shopConfig = props.shopConfig,
11076
11120
  shopConfigStyle = props.shopConfigStyle,
11077
- _props$routes = props.routes,
11078
- routes = _props$routes === void 0 ? [] : _props$routes;
11121
+ _props$Link = props.Link,
11122
+ Link = _props$Link === void 0 ? null : _props$Link;
11079
11123
  var _shopConfigStyle$colo = shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : shopConfigStyle.color,
11080
11124
  _shopConfigStyle$colo2 = _shopConfigStyle$colo.primary,
11081
11125
  primary = _shopConfigStyle$colo2 === void 0 ? "#000" : _shopConfigStyle$colo2,
@@ -11116,7 +11160,9 @@ var Footer7 = function Footer7(props) {
11116
11160
  background: bgSecondary,
11117
11161
  color: textBody
11118
11162
  }
11119
- }, /*#__PURE__*/React__default.createElement("div", {
11163
+ }, /*#__PURE__*/React__default.createElement(LinkToPage, {
11164
+ Link: Link,
11165
+ href: "/",
11120
11166
  className: "flex items-center gap-2"
11121
11167
  }, /*#__PURE__*/React__default.createElement("img", {
11122
11168
  className: "object-cover w-14",
@@ -11155,11 +11201,13 @@ var Footer7 = function Footer7(props) {
11155
11201
  className: "mb-4 font-semibold text-md md:text-lg"
11156
11202
  }, "Li\xEAn k\u1EBFt"), /*#__PURE__*/React__default.createElement("div", {
11157
11203
  className: "leading-10 flex flex-col "
11158
- }, routes === null || routes === void 0 ? void 0 : (_routes$filter = routes.filter(function (e) {
11204
+ }, shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : (_shopConfigStyle$navB = shopConfigStyle.navBarMenus) === null || _shopConfigStyle$navB === void 0 ? void 0 : (_shopConfigStyle$navB2 = _shopConfigStyle$navB.filter(function (e) {
11159
11205
  return e === null || e === void 0 ? void 0 : e.isShow;
11160
- })) === null || _routes$filter === void 0 ? void 0 : _routes$filter.map(function (route, index) {
11161
- return /*#__PURE__*/React__default.createElement("a", {
11162
- href: route === null || route === void 0 ? void 0 : route.route
11206
+ })) === null || _shopConfigStyle$navB2 === void 0 ? void 0 : _shopConfigStyle$navB2.map(function (route, index) {
11207
+ return /*#__PURE__*/React__default.createElement(LinkToPage, {
11208
+ href: route === null || route === void 0 ? void 0 : route.route,
11209
+ Link: Link,
11210
+ key: "fiddf-" + index
11163
11211
  }, /*#__PURE__*/React__default.createElement("div", null, route === null || route === void 0 ? void 0 : route.label));
11164
11212
  }))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
11165
11213
  className: "font-semibold mb-4 text-md md:text-lg"
@@ -11309,7 +11357,7 @@ var CustomerRating5 = function CustomerRating5(props) {
11309
11357
  }
11310
11358
  };
11311
11359
  return /*#__PURE__*/React__default.createElement("div", {
11312
- className: SECTION_CLASS + " mx-0 md:mx-4 xl:mx-20 rounded-xl relative"
11360
+ className: SECTION_CLASS + " mx-0 md:mx-4 xl:mx-20 rounded-xl pb-6 relative"
11313
11361
  }, /*#__PURE__*/React__default.createElement("div", {
11314
11362
  className: "absolute mt-16 inset-0 bg-bgSecondary [clip-path:polygon(0%_0%,_100%_30%,_100%_100%,_0%_100%)] z-0 rounded-3xl"
11315
11363
  }), /*#__PURE__*/React__default.createElement("div", {
@@ -11513,21 +11561,19 @@ var PageTitle1 = function PageTitle1(props) {
11513
11561
  };
11514
11562
 
11515
11563
  var About1 = function About1(props) {
11564
+ var shopConfig = props.shopConfig,
11565
+ data = props.data;
11516
11566
  return /*#__PURE__*/React__default.createElement("div", {
11517
11567
  className: SECTION_CLASS + " flex flex-col gap-4"
11518
- }, /*#__PURE__*/React__default.createElement("div", null, "Tr\xE1i c\xE2y s\u1EA1ch - an to\xE0n cho s\u1EE9c kho\u1EBB ng\u01B0\u1EDDi ti\xEAu d\xF9ng. C\u1EEDa h\xE0ng ORGANIC FOOD c\u1EE7a ch\xFAng t\xF4i t\u1EEBng b\u01B0\u1EDBc \u0111i v\xE0o th\u1ECB tr\u01B0\u1EDDng v\xE0 ni\u1EC1m tin c\u1EE7a kh\xE1ch h\xE0ng. Ho\u1EA1t \u0111\u1ED9ng v\xE0o th\xE1ng 5/2020, ORGANIC FOOD \u0111\xE3 tr\u1EDF th\xE0nh c\xE1i t\xEAn quen thu\u1ED9c trong l\u0129nh v\u1EF1c cung c\u1EA5p tr\xE1i c\xE2y s\u1EA1ch, an to\xE0n, cam k\u1EBFt ch\xEDn t\u1EF1 nhi\xEAn 100% v\xE0 h\u01B0\u1EDBng \u0111\u1EBFn s\u1EE9c kho\u1EBB ng\u01B0\u1EDDi ti\xEAu d\xF9ng qua 3 ti\xEAu ch\xED:"), /*#__PURE__*/React__default.createElement("div", {
11519
- className: "font-semibold"
11520
- }, "T\u1EA7m Nh\xECn"), /*#__PURE__*/React__default.createElement("div", null, "S\u1EA3n ph\u1EA9m t\u01B0\u0300 ORGANIC FOOD se\u0303 tr\u1EDF tha\u0300nh thu\u031Bo\u031Bng hi\u1EB9\u0302u quen thu\u1ECD\u0302c va\u0300 h\u01B0\u1EDBng \u0111\u1EBFn ch\u1EA5t l\u01B0\u1EE3ng t\u1ED1t nh\u1EA5t."), /*#__PURE__*/React__default.createElement("div", {
11521
- className: "font-semibold"
11522
- }, "S\u1EE9 m\u1EC7nh"), /*#__PURE__*/React__default.createElement("li", {
11523
- className: "ps-4"
11524
- }, " \u0110\u1ECD\u0302i ngu\u0303 ba\u0301n ha\u0300ng s\u0103\u0303n sa\u0300ng l\u0103\u0301ng nghe va\u0300 t\u1EA1\u0302n ta\u0302m nhi\u1EB9\u0302t huy\xEA\u0301t trong co\u0302ng vi\u1EB9\u0302c."), /*#__PURE__*/React__default.createElement("li", {
11525
- className: "ps-4"
11526
- }, " Sa\u0309n ph\xE2\u0309m th\u01B0\u0301c u\xF4\u0301ng \u0111a da\u0323ng, \u0111a\u0309m ba\u0309o t\xF4\u0301t s\u01B0\u0301c kho\u0309e va\u0300 \u0111a\u0301p \u01B0\u0301ng \u0111u\u031B\u01A1\u0323c mong \u0111\u01A1\u0323i cu\u0309a kha\u0301ch ha\u0300ng."), /*#__PURE__*/React__default.createElement("li", {
11527
- className: "ps-4"
11528
- }, " Tr\xE1i c\xE2y \u0111a d\u1EA1ng, cam k\u1EBFt h\xE0ng s\u1EA1ch \u0111\u1EA3m b\u1EA3o ch\u1EA5t l\u01B0\u1EE3ng t\u1ED1t nh\u1EA5t v\xE0 an to\xE0n tuy\u1EC7t \u0111\u1ED1i cho ng\u01B0\u1EDDi ti\xEAu d\xF9ng"), /*#__PURE__*/React__default.createElement("div", {
11529
- className: "font-semibold"
11530
- }, "Gi\xE1 Tr\u1ECB C\u1ED1t L\xF5i"), /*#__PURE__*/React__default.createElement("div", null, "ORGANIC FOOD s\u1EBD lu\xF4n l\xE0 ng\u01B0\u1EDDi b\u1EA1n tin c\u1EADy nh\u1EA5t c\xF9ng kh\xE1ch h\xE0ng, tr\xE1i c\xE2y s\u1EA1ch lu\xF4n \u0111\u1EA3m b\u1EA3o ch\u1EA5t l\u01B0\u1EE3ng v\xE0 mang l\u1EA1i ngu\u1ED3n dinh d\u01B0\u1EE1ng c\u0169ng nh\u01B0 s\u1EF1 an to\xE0n cho kh\xE1ch h\xE0ng, g\xF3p ph\u1EA7n mang \u0111\u1EBFn cu\u1ED9c s\u1ED1ng xanh kho\u1EBB m\u1EA1nh cho m\u1ECDi nh\xE0."));
11568
+ }, data !== null && data !== void 0 && data.sectionTitle ? /*#__PURE__*/React__default.createElement("h1", {
11569
+ className: "text-4xl font-semibold"
11570
+ }, data === null || data === void 0 ? void 0 : data.sectionTitle) : null, data !== null && data !== void 0 && data.sectionDescription ? /*#__PURE__*/React__default.createElement("div", {
11571
+ className: "text-xl"
11572
+ }, data === null || data === void 0 ? void 0 : data.sectionDescription) : null, /*#__PURE__*/React__default.createElement("div", {
11573
+ dangerouslySetInnerHTML: {
11574
+ __html: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopAbout
11575
+ }
11576
+ }));
11531
11577
  };
11532
11578
 
11533
11579
  var About5 = function About5(props) {
@@ -12498,7 +12544,7 @@ var SearchProduct1 = function SearchProduct1(props) {
12498
12544
  setSearchValue = _useState2[1];
12499
12545
  useEffect(function () {
12500
12546
  if (valueSearch === "") {
12501
- setProducts([]);
12547
+ setListProducts([]);
12502
12548
  } else {
12503
12549
  var delayDebounceFn = setTimeout(function () {
12504
12550
  handleSearch(valueSearch);
@@ -12570,6 +12616,7 @@ var SearchProduct1 = function SearchProduct1(props) {
12570
12616
  };
12571
12617
 
12572
12618
  var SearchBar2 = function SearchBar2(props) {
12619
+ var _data$data;
12573
12620
  var _props$Link = props.Link,
12574
12621
  Link = _props$Link === void 0 ? null : _props$Link,
12575
12622
  data = props.data;
@@ -12615,12 +12662,21 @@ var SearchBar2 = function SearchBar2(props) {
12615
12662
  }
12616
12663
  };
12617
12664
  return /*#__PURE__*/React__default.createElement("div", {
12618
- className: "w-[100vw] md:w-[50vw] py-6 mx-auto px-6 flex flex-col gap-4"
12665
+ className: SECTION_CLASS + " md:mt-6"
12666
+ }, /*#__PURE__*/React__default.createElement("div", {
12667
+ className: " w-full flex flex-col justify-center px-6 gap-2 md:gap-4 items-center rounded-xl md:rounded-3xl ",
12668
+ style: {
12669
+ background: "url(" + (data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.srcImage) + ")",
12670
+ backgroundPosition: "center",
12671
+ backgroundSize: "cover"
12672
+ }
12673
+ }, /*#__PURE__*/React__default.createElement("div", {
12674
+ className: "w-[100vw] md:w-[50vw] py-6 mx-auto px-6 flex flex-col h-full gap-4"
12619
12675
  }, /*#__PURE__*/React__default.createElement(Input, {
12620
12676
  icons: /*#__PURE__*/React__default.createElement(IoSearchOutline, {
12621
12677
  className: "text-gray3"
12622
12678
  }),
12623
- className: "w-full",
12679
+ className: "w-full h-12",
12624
12680
  inputClassName: "w-full",
12625
12681
  placeholder: data !== null && data !== void 0 && data.sectionTitle ? data === null || data === void 0 ? void 0 : data.sectionTitle : "Tìm kiếm sản phẩm",
12626
12682
  onChange: setSearchValue
@@ -12645,14 +12701,13 @@ var SearchBar2 = function SearchBar2(props) {
12645
12701
  })));
12646
12702
  })) : /*#__PURE__*/React__default.createElement("div", {
12647
12703
  className: "mx-auto"
12648
- }, data === null || data === void 0 ? void 0 : data.sectionDescription));
12704
+ }, data === null || data === void 0 ? void 0 : data.sectionDescription))));
12649
12705
  };
12650
12706
 
12651
12707
  var SearchBar5 = function SearchBar5(props) {
12652
- var _data$data, _data$data2, _data$data3;
12708
+ var _data$data, _data$data2, _data$data3, _data$data4, _data$data5;
12653
12709
  var _props$Link = props.Link,
12654
12710
  Link = _props$Link === void 0 ? null : _props$Link,
12655
- shopConfigStyle = props.shopConfigStyle,
12656
12711
  data = props.data;
12657
12712
  var _useState = useState(""),
12658
12713
  value = _useState[0],
@@ -12666,12 +12721,14 @@ var SearchBar5 = function SearchBar5(props) {
12666
12721
  backgroundPosition: "center",
12667
12722
  backgroundSize: "cover"
12668
12723
  }
12669
- }, /*#__PURE__*/React__default.createElement("div", {
12724
+ }, data !== null && data !== void 0 && (_data$data2 = data.data) !== null && _data$data2 !== void 0 && _data$data2.title ? /*#__PURE__*/React__default.createElement("div", {
12670
12725
  className: "text-xl font-semibold md:text-3xl lg:text-4xl text-textButton text-center"
12671
- }, data === null || data === void 0 ? void 0 : (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : _data$data2.title), /*#__PURE__*/React__default.createElement("div", null, data === null || data === void 0 ? void 0 : (_data$data3 = data.data) === null || _data$data3 === void 0 ? void 0 : _data$data3.description), /*#__PURE__*/React__default.createElement(Input, {
12726
+ }, data === null || data === void 0 ? void 0 : (_data$data3 = data.data) === null || _data$data3 === void 0 ? void 0 : _data$data3.title) : null, data !== null && data !== void 0 && (_data$data4 = data.data) !== null && _data$data4 !== void 0 && _data$data4.description ? /*#__PURE__*/React__default.createElement("div", {
12727
+ className: "text-center"
12728
+ }, data === null || data === void 0 ? void 0 : (_data$data5 = data.data) === null || _data$data5 === void 0 ? void 0 : _data$data5.description) : null, /*#__PURE__*/React__default.createElement(Input, {
12672
12729
  onChange: setValue,
12673
12730
  icons: /*#__PURE__*/React__default.createElement(IoSearchOutline, {
12674
- className: "text-gray3 text-xl md:text-2xl"
12731
+ className: "text-gray3 ps-1 text-xl md:text-2xl"
12675
12732
  }),
12676
12733
  className: "w-full bg-bgSecondary w-full md:w-[50vw] lg:w-[35vw] mb-2 md:h-12",
12677
12734
  style: {
@@ -12684,18 +12741,16 @@ var SearchBar5 = function SearchBar5(props) {
12684
12741
  href: genLinkSearch(value)
12685
12742
  }, /*#__PURE__*/React__default.createElement(Button, {
12686
12743
  label: "T\xECm ki\u1EBFm",
12687
- className: "whitespace-nowrap h-full ",
12688
- shopConfigStyle: shopConfigStyle
12744
+ className: "whitespace-nowrap h-full !rounded-3xl "
12689
12745
  })) : /*#__PURE__*/React__default.createElement(Button, {
12690
12746
  label: "T\xECm ki\u1EBFm",
12691
- className: "whitespace-nowrap ",
12692
- shopConfigStyle: shopConfigStyle
12747
+ className: "whitespace-nowrap !rounded-3xl py-1.5 md:py-2.5"
12693
12748
  }))
12694
12749
  })));
12695
12750
  };
12696
12751
 
12697
12752
  var SearchBar6 = function SearchBar6(props) {
12698
- var _data$data, _data$data2, _data$data3;
12753
+ var _data$data, _data$data2, _data$data3, _data$data4, _data$data5;
12699
12754
  var shopConfigStyle = props.shopConfigStyle,
12700
12755
  _props$Link = props.Link,
12701
12756
  Link = _props$Link === void 0 ? null : _props$Link,
@@ -12710,9 +12765,11 @@ var SearchBar6 = function SearchBar6(props) {
12710
12765
  backgroundPosition: "center",
12711
12766
  backgroundSize: "cover"
12712
12767
  }
12713
- }, /*#__PURE__*/React__default.createElement("div", {
12768
+ }, data !== null && data !== void 0 && (_data$data2 = data.data) !== null && _data$data2 !== void 0 && _data$data2.title ? /*#__PURE__*/React__default.createElement("div", {
12714
12769
  className: "text-lg font-semibold text-textBody md:text-2xl lg:text-3xl text-center"
12715
- }, data === null || data === void 0 ? void 0 : (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : _data$data2.title), /*#__PURE__*/React__default.createElement("div", null, data === null || data === void 0 ? void 0 : (_data$data3 = data.data) === null || _data$data3 === void 0 ? void 0 : _data$data3.description), /*#__PURE__*/React__default.createElement("div", {
12770
+ }, data === null || data === void 0 ? void 0 : (_data$data3 = data.data) === null || _data$data3 === void 0 ? void 0 : _data$data3.title) : null, data !== null && data !== void 0 && (_data$data4 = data.data) !== null && _data$data4 !== void 0 && _data$data4.description ? /*#__PURE__*/React__default.createElement("div", {
12771
+ className: "text-center"
12772
+ }, data === null || data === void 0 ? void 0 : (_data$data5 = data.data) === null || _data$data5 === void 0 ? void 0 : _data$data5.description) : null, /*#__PURE__*/React__default.createElement("div", {
12716
12773
  className: "flex gap-2 md:gap-4 lg:gap-6 mb-2 md:mb-0"
12717
12774
  }, /*#__PURE__*/React__default.createElement(Input, {
12718
12775
  icons: /*#__PURE__*/React__default.createElement(IoSearchOutline, {
@@ -12737,12 +12794,17 @@ var SearchBar6 = function SearchBar6(props) {
12737
12794
  };
12738
12795
 
12739
12796
  var ShopHighlights2 = function ShopHighlights2(props) {
12740
- var data = props.data;
12797
+ var data = props.data,
12798
+ _props$Link = props.Link,
12799
+ Link = _props$Link === void 0 ? null : _props$Link;
12741
12800
  var sectionData = data === null || data === void 0 ? void 0 : data.data;
12742
12801
  return /*#__PURE__*/React__default.createElement("div", {
12743
12802
  className: SECTION_CLASS + " my-0 md:my-0 py-6 grid grid-cols-2 md:grid-cols-4 gap-4 lg:gap-6"
12744
12803
  }, sectionData === null || sectionData === void 0 ? void 0 : sectionData.map(function (item, index) {
12745
- return /*#__PURE__*/React__default.createElement("div", {
12804
+ return /*#__PURE__*/React__default.createElement(LinkToPage, {
12805
+ Link: Link,
12806
+ href: (item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link)
12807
+ }, /*#__PURE__*/React__default.createElement("div", {
12746
12808
  className: "flex flex-col items-center text-center lg:px-3 gap-3",
12747
12809
  key: "kdf-" + index
12748
12810
  }, item !== null && item !== void 0 && item.svgImage ? /*#__PURE__*/React__default.createElement("div", {
@@ -12756,17 +12818,22 @@ var ShopHighlights2 = function ShopHighlights2(props) {
12756
12818
  className: "w-16 h-16 p-3 rounded-full bg-primary"
12757
12819
  }), /*#__PURE__*/React__default.createElement("div", {
12758
12820
  className: "font-medium text-lg"
12759
- }, item === null || item === void 0 ? void 0 : item.title), /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.description));
12821
+ }, item === null || item === void 0 ? void 0 : item.title), /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.description)));
12760
12822
  }));
12761
12823
  };
12762
12824
 
12763
12825
  var ShopHighlights5 = function ShopHighlights5(props) {
12764
- var data = props.data;
12826
+ var data = props.data,
12827
+ _props$Link = props.Link,
12828
+ Link = _props$Link === void 0 ? null : _props$Link;
12765
12829
  var sectionData = data === null || data === void 0 ? void 0 : data.data;
12766
12830
  return /*#__PURE__*/React__default.createElement("div", {
12767
12831
  className: SECTION_CLASS + " grid md:grid-cols-3 py-6 gap-4 lg:gap-6 bg-bgSecondary"
12768
12832
  }, sectionData === null || sectionData === void 0 ? void 0 : sectionData.map(function (item, index) {
12769
- return /*#__PURE__*/React__default.createElement("div", {
12833
+ return /*#__PURE__*/React__default.createElement(LinkToPage, {
12834
+ href: (item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link),
12835
+ Link: Link
12836
+ }, /*#__PURE__*/React__default.createElement("div", {
12770
12837
  className: "flex flex-col items-center text-center md:px-3 lg:px-6 gap-3",
12771
12838
  key: "kdf-" + index
12772
12839
  }, item !== null && item !== void 0 && item.svgImage ? /*#__PURE__*/React__default.createElement("div", {
@@ -12780,7 +12847,7 @@ var ShopHighlights5 = function ShopHighlights5(props) {
12780
12847
  className: "w-16 h-16 rounded-full bg-primary"
12781
12848
  }), /*#__PURE__*/React__default.createElement("div", {
12782
12849
  className: "font-medium text-xl text-textHeading pt-2 border-t border-textHeading"
12783
- }, item === null || item === void 0 ? void 0 : item.title), /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.description));
12850
+ }, item === null || item === void 0 ? void 0 : item.title), /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.description)));
12784
12851
  }));
12785
12852
  };
12786
12853
 
@@ -12810,7 +12877,7 @@ var ShopHighlights6 = function ShopHighlights6(props) {
12810
12877
  className: " w-44 h-0.5 rounded-full bg-primary"
12811
12878
  }), /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.description), /*#__PURE__*/React__default.createElement(LinkToPage, {
12812
12879
  Link: Link,
12813
- href: (item === null || item === void 0 ? void 0 : item.link) || (item === null || item === void 0 ? void 0 : item.route)
12880
+ href: (item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link)
12814
12881
  }, /*#__PURE__*/React__default.createElement(Button, {
12815
12882
  shopConfigStyle: shopConfigStyle,
12816
12883
  label: item === null || item === void 0 ? void 0 : item.title
@@ -12825,7 +12892,9 @@ var ShopHighlights7 = function ShopHighlights7(props) {
12825
12892
  _props$data = props.data,
12826
12893
  data = _props$data === void 0 ? {} : _props$data,
12827
12894
  _props$SectionTitle = props.SectionTitle,
12828
- SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
12895
+ SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle,
12896
+ _props$Link = props.Link,
12897
+ Link = _props$Link === void 0 ? null : _props$Link;
12829
12898
  var _shopConfigStyle$colo = shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : shopConfigStyle.color,
12830
12899
  _shopConfigStyle$colo3 = _shopConfigStyle$colo.secondary,
12831
12900
  secondary = _shopConfigStyle$colo3 === void 0 ? "#000" : _shopConfigStyle$colo3;
@@ -12836,7 +12905,10 @@ var ShopHighlights7 = function ShopHighlights7(props) {
12836
12905
  }), /*#__PURE__*/React__default.createElement("div", {
12837
12906
  className: "mt-6 grid grid-cols-3 gap-4 md:gap-8"
12838
12907
  }, data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.map(function (it, index) {
12839
- return /*#__PURE__*/React__default.createElement("div", {
12908
+ var _item, _item2;
12909
+ return /*#__PURE__*/React__default.createElement(LinkToPage, {
12910
+ Link: Link,
12911
+ href: ((_item = item) === null || _item === void 0 ? void 0 : _item.route) || ((_item2 = item) === null || _item2 === void 0 ? void 0 : _item2.link),
12840
12912
  key: index,
12841
12913
  className: "pt-6 col-span-3 md:col-span-1"
12842
12914
  }, /*#__PURE__*/React__default.createElement("div", {