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.
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ var Button = function Button(props) {
36
36
  _props$type = props.type,
37
37
  type = _props$type === void 0 ? "primary" : _props$type;
38
38
  var _className = type === "primary" ? "text-textButton bg-primary" : "text-primary border border-primary";
39
- _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;
39
+ _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) || "");
40
40
  return /*#__PURE__*/React__default.createElement("button", {
41
41
  type: "button",
42
42
  className: _className,
@@ -376,20 +376,38 @@ var NavBar7 = function NavBar7(props) {
376
376
  onClick: function onClick(event) {
377
377
  return event.stopPropagation();
378
378
  }
379
- }, /*#__PURE__*/React__default.createElement("button", {
380
- className: "flex w-full justify-end text-gray4",
379
+ }, /*#__PURE__*/React__default.createElement("div", {
380
+ className: "flex justify-between"
381
+ }, /*#__PURE__*/React__default.createElement("div", {
382
+ className: "flex gap-2 items-center"
383
+ }, /*#__PURE__*/React__default.createElement(LinkToPage, {
384
+ Link: Link,
385
+ href: "/",
386
+ onClick: function onClick() {
387
+ return setIsOpen(false);
388
+ }
389
+ }, /*#__PURE__*/React__default.createElement("img", {
390
+ src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
391
+ className: "h-14 w-14 bg-cover bg-no-repeat"
392
+ })), /*#__PURE__*/React__default.createElement("div", {
393
+ className: "text-xl font-semibold line-clamp-1"
394
+ }, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName)), /*#__PURE__*/React__default.createElement("button", {
395
+ className: "text-gray4",
381
396
  onClick: function onClick() {
382
397
  setIsOpen(false);
383
398
  }
384
399
  }, /*#__PURE__*/React__default.createElement(rx.RxCross2, {
385
400
  size: 24
386
- })), /*#__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) {
401
+ }))), /*#__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) {
387
402
  return e === null || e === void 0 ? void 0 : e.isShow;
388
403
  })) === null || _shopConfigStyle$navB4 === void 0 ? void 0 : _shopConfigStyle$navB4.map(function (item, index) {
389
404
  return /*#__PURE__*/React__default.createElement(LinkToPage, {
390
405
  Link: Link,
391
406
  href: item === null || item === void 0 ? void 0 : item.route,
392
- key: index
407
+ key: index,
408
+ onClick: function onClick() {
409
+ return setIsOpen(false);
410
+ }
393
411
  }, /*#__PURE__*/React__default.createElement("div", {
394
412
  className: "py-2 " + ((item === null || item === void 0 ? void 0 : item.name) === (route === null || route === void 0 ? void 0 : route.name) ? "text-textHeading" : "")
395
413
  }, item === null || item === void 0 ? void 0 : item.label));
@@ -580,10 +598,16 @@ var NavBar1 = function NavBar1(props) {
580
598
  className: "flex justify-between"
581
599
  }, /*#__PURE__*/React__default.createElement("div", {
582
600
  className: "flex gap-2 items-center"
601
+ }, /*#__PURE__*/React__default.createElement(LinkToPage, {
602
+ Link: Link,
603
+ href: "/",
604
+ onClick: function onClick() {
605
+ return setIsOpen(false);
606
+ }
583
607
  }, /*#__PURE__*/React__default.createElement("img", {
584
608
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
585
609
  className: "h-14 w-14 bg-cover bg-no-repeat"
586
- }), /*#__PURE__*/React__default.createElement("div", {
610
+ })), /*#__PURE__*/React__default.createElement("div", {
587
611
  className: "text-xl font-semibold line-clamp-1"
588
612
  }, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName)), /*#__PURE__*/React__default.createElement("button", {
589
613
  className: "text-gray4",
@@ -598,7 +622,10 @@ var NavBar1 = function NavBar1(props) {
598
622
  return /*#__PURE__*/React__default.createElement(LinkToPage, {
599
623
  Link: Link,
600
624
  href: item === null || item === void 0 ? void 0 : item.route,
601
- key: index
625
+ key: index,
626
+ onClick: function onClick() {
627
+ return setIsOpen(false);
628
+ }
602
629
  }, /*#__PURE__*/React__default.createElement("div", {
603
630
  className: "py-2 " + ((item === null || item === void 0 ? void 0 : item.name) === (route === null || route === void 0 ? void 0 : route.name) ? "text-textHeading" : "")
604
631
  }, item === null || item === void 0 ? void 0 : item.label));
@@ -787,7 +814,7 @@ var Input = React.forwardRef(function (props, ref) {
787
814
  setTypeInput("text");
788
815
  }
789
816
  };
790
- var _className = "h-9 md:h-10 py-1 px-2 border border-stroke rounded-lg " + className;
817
+ var _className = "h-10 py-1 px-2 border border-stroke rounded-lg " + className;
791
818
  var _inputClassName = (isQuantity ? "text-center w-12" : "") + " focus:outline-none focus:ring-0 bg-transparent\t " + inputClassName;
792
819
  var required = !!(rules !== null && rules !== void 0 && rules.find(function (e) {
793
820
  return (e === null || e === void 0 ? void 0 : e.type) === "required";
@@ -831,7 +858,7 @@ var Input = React.forwardRef(function (props, ref) {
831
858
  });
832
859
 
833
860
  var Hero1 = function Hero1(props) {
834
- var _sectionData$, _sectionData$$srcImag, _sectionData$2, _sectionData$3, _sectionData$4, _sectionData$4$button, _sectionData$4$button2, _sectionData$5, _sectionData$5$button, _sectionData$5$button2;
861
+ 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;
835
862
  var shopConfigStyle = props.shopConfigStyle,
836
863
  data = props.data,
837
864
  _props$Link = props.Link,
@@ -853,9 +880,9 @@ var Hero1 = function Hero1(props) {
853
880
  className: "text-center md:text-2xl lg:text-3xl font-medium"
854
881
  }, 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, {
855
882
  Link: Link,
856
- 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
883
+ 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)
857
884
  }, /*#__PURE__*/React__default.createElement(Button, {
858
- 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,
885
+ 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,
859
886
  shopConfigStyle: shopConfigStyle
860
887
  })), " "), /*#__PURE__*/React__default.createElement("div", {
861
888
  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"
@@ -920,7 +947,9 @@ var Hero5 = function Hero5(props) {
920
947
  var Hero6 = function Hero6(props) {
921
948
  var _data$data, _data$data$, _data$data$$srcImages, _data$data2, _data$data2$, _data$data3, _data$data3$, _sectionData$, _sectionData$$buttons;
922
949
  var shopConfigStyle = props.shopConfigStyle,
923
- data = props.data;
950
+ data = props.data,
951
+ _props$Link = props.Link,
952
+ Link = _props$Link === void 0 ? null : _props$Link;
924
953
  var sectionData = data === null || data === void 0 ? void 0 : data.data;
925
954
  return /*#__PURE__*/React__default.createElement("div", {
926
955
  className: "relative"
@@ -934,7 +963,8 @@ var Hero6 = function Hero6(props) {
934
963
  }, 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", {
935
964
  className: "md:text-xl"
936
965
  }, 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) {
937
- return /*#__PURE__*/React__default.createElement("a", {
966
+ return /*#__PURE__*/React__default.createElement(LinkToPage, {
967
+ Link: Link,
938
968
  href: (button === null || button === void 0 ? void 0 : button.route) || (button === null || button === void 0 ? void 0 : button.link) || "#"
939
969
  }, /*#__PURE__*/React__default.createElement(Button, {
940
970
  label: button === null || button === void 0 ? void 0 : button.label,
@@ -1060,13 +1090,13 @@ var CarouselItem = function CarouselItem(props) {
1060
1090
  })))), isNavigateButton ? /*#__PURE__*/React__default.createElement("div", {
1061
1091
  className: "hidden my-auto col-span-5 md:col-span-3 lg:col-span-2 gap-4 md:flex justify-end "
1062
1092
  }, /*#__PURE__*/React__default.createElement("button", {
1063
- className: "p-2 h-full w-10 md:w-12 rounded-full " + (isScrolledToRight ? "bg-gray5" : "bg-primary"),
1093
+ className: "p-2 h-full w-10 h-10 md:h-12 md:w-12 rounded-full " + (isScrolledToRight ? "bg-gray5" : "bg-primary"),
1064
1094
  onClick: handleClickPrevImg
1065
1095
  }, /*#__PURE__*/React__default.createElement(io.IoIosArrowBack, {
1066
1096
  size: 32,
1067
1097
  className: "inline-block text-lg text-textButton"
1068
1098
  })), /*#__PURE__*/React__default.createElement("button", {
1069
- className: " p-2 h-full w-10 md:w-12 rounded-full " + (isScrolledToRight ? "bg-primary" : "bg-gray5"),
1099
+ className: " p-2 h-full w-10 h-10 md:h-12 md:w-12 rounded-full " + (isScrolledToRight ? "bg-primary" : "bg-gray5"),
1070
1100
  onClick: handleClickNextImg
1071
1101
  }, /*#__PURE__*/React__default.createElement(io.IoIosArrowForward, {
1072
1102
  size: 32,
@@ -9358,7 +9388,6 @@ var ProductItem2 = function ProductItem2(props) {
9358
9388
  Link = _props$Link === void 0 ? null : _props$Link,
9359
9389
  _props$className = props.className,
9360
9390
  className = _props$className === void 0 ? "" : _props$className;
9361
- console.log("checkkkkkkkk:::::::", className);
9362
9391
  return /*#__PURE__*/React__default.createElement(LinkToPage, {
9363
9392
  Link: Link,
9364
9393
  href: getLinkProductDetail(product)
@@ -9390,9 +9419,9 @@ var ProductItem3 = function ProductItem3(props) {
9390
9419
  product: product,
9391
9420
  className: "w-full h-44 md:h-56 lg:h-64 xl:h-72 bg-cover bg-no-repeat rounded-t-2xl"
9392
9421
  }), /*#__PURE__*/React__default.createElement("div", {
9393
- className: "p-4 flex flex-col gap-4 items-start"
9422
+ className: "p-4 flex flex-col gap-2 md:gap-4 items-start"
9394
9423
  }, /*#__PURE__*/React__default.createElement("div", {
9395
- className: "line-clamp-1"
9424
+ className: "line-clamp-1 text-lg"
9396
9425
  }, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
9397
9426
  product: product,
9398
9427
  className: "text-lg text-start"
@@ -9414,14 +9443,14 @@ var ProductItem4 = function ProductItem4(props) {
9414
9443
  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
9415
9444
  }, /*#__PURE__*/React__default.createElement(ProductImage, {
9416
9445
  product: product,
9417
- className: "w-full h-44 sm:h-56 xl:h-72 bg-cover bg-no-repeat rounded-2xl"
9446
+ className: "w-full h-40 sm:h-56 lg:h-60 xl:h-64 bg-cover bg-no-repeat rounded-2xl"
9418
9447
  }), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
9419
- className: "text-start line-clamp-1"
9448
+ className: "text-start line-clamp-1 text-lg"
9420
9449
  }, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
9421
9450
  product: product,
9422
9451
  className: "text-lg text-start mt-2"
9423
9452
  })), /*#__PURE__*/React__default.createElement("div", {
9424
- className: "flex pt-4 gap-2 md:gap-4 border-t items-center"
9453
+ className: "flex pt-2 md:pt-4 gap-2 md:gap-4 border-t items-center"
9425
9454
  }, /*#__PURE__*/React__default.createElement("div", {
9426
9455
  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)
9427
9456
  }, /*#__PURE__*/React__default.createElement(fi.FiShoppingCart, {
@@ -9480,7 +9509,7 @@ var ProductItem6 = function ProductItem6(props) {
9480
9509
  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
9481
9510
  }, /*#__PURE__*/React__default.createElement(ProductImage, {
9482
9511
  product: product,
9483
- className: "w-full h-44 sm:h-56 xl:h-72 bg-cover bg-no-repeat rounded-2xl"
9512
+ className: "w-full h-40 sm:h-56 lg:h-60 xl:h-64 bg-cover bg-no-repeat rounded-2xl"
9484
9513
  }), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
9485
9514
  className: "text start line-clamp-1"
9486
9515
  }, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
@@ -10355,12 +10384,14 @@ var ProductHighlight1 = function ProductHighlight1(props) {
10355
10384
  return /*#__PURE__*/React__default.createElement(ProductItem, {
10356
10385
  Link: Link,
10357
10386
  product: product === null || product === void 0 ? void 0 : product.productInfo,
10387
+ shopConfigStyle: shopConfigStyle,
10358
10388
  key: "zjk-" + idx
10359
10389
  });
10360
10390
  })) : /*#__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, {
10361
10391
  label: "Xem thêm",
10362
10392
  onClick: handleGetMoreProducts,
10363
- className: "mx-auto " + (shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : shopConfigStyle.buttonClass),
10393
+ shopConfigStyle: shopConfigStyle,
10394
+ className: "mx-auto",
10364
10395
  type: "outline"
10365
10396
  }) : null);
10366
10397
  };
@@ -10622,7 +10653,7 @@ var Booking1 = function Booking1(props) {
10622
10653
  };
10623
10654
 
10624
10655
  var BookingForm6 = function BookingForm6(props) {
10625
- var _data$data, _data$data$, _data$data2, _data$data2$;
10656
+ 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$;
10626
10657
  var _props$shopConfigStyl = props.shopConfigStyle,
10627
10658
  shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
10628
10659
  _props$shopConfig = props.shopConfig,
@@ -10639,14 +10670,20 @@ var BookingForm6 = function BookingForm6(props) {
10639
10670
  shopConfigStyle: shopConfigStyle
10640
10671
  }), /*#__PURE__*/React__default.createElement("div", {
10641
10672
  className: "mt-12 grid grid-cols-1 gap-6 md:grid-cols-3 md:gap-12"
10673
+ }, /*#__PURE__*/React__default.createElement(LinkToPage, {
10674
+ 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)
10675
+ }, 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", {
10676
+ className: "text-primary w-full h-auto"
10642
10677
  }, /*#__PURE__*/React__default.createElement("div", {
10643
- className: ""
10644
- }, /*#__PURE__*/React__default.createElement("img", {
10645
- 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,
10678
+ dangerouslySetInnerHTML: {
10679
+ __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)
10680
+ }
10681
+ })) : /*#__PURE__*/React__default.createElement("img", {
10682
+ 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,
10646
10683
  className: "w-full h-auto"
10647
10684
  }), /*#__PURE__*/React__default.createElement("div", {
10648
10685
  className: "mt-4 whitespace-pre-line"
10649
- }, 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, {
10686
+ }, 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, {
10650
10687
  shopConfigStyle: shopConfigStyle,
10651
10688
  shopConfig: shopConfig,
10652
10689
  className: "col-span-2"
@@ -10743,15 +10780,21 @@ var Banner2 = function Banner2(props) {
10743
10780
  };
10744
10781
 
10745
10782
  var Banner3 = function Banner3(props) {
10746
- var data = props.data;
10783
+ var data = props.data,
10784
+ _props$Link = props.Link,
10785
+ Link = _props$Link === void 0 ? null : _props$Link;
10747
10786
  var sectionData = data === null || data === void 0 ? void 0 : data.data;
10748
10787
  return /*#__PURE__*/React__default.createElement("div", {
10749
10788
  className: SECTION_CLASS + " grid grid-cols-1 md:grid-cols-3 gap-5"
10750
10789
  }, sectionData === null || sectionData === void 0 ? void 0 : sectionData.map(function (item, index) {
10751
- return /*#__PURE__*/React__default.createElement("img", {
10790
+ return /*#__PURE__*/React__default.createElement(LinkToPage, {
10791
+ Link: Link,
10792
+ href: (item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link),
10793
+ key: "djsd-" + index
10794
+ }, /*#__PURE__*/React__default.createElement("img", {
10752
10795
  src: item === null || item === void 0 ? void 0 : item.srcImage,
10753
10796
  className: "bg-cover bg-no-repeat h-full rounded-xl"
10754
- });
10797
+ }));
10755
10798
  }));
10756
10799
  };
10757
10800
 
@@ -10944,13 +10987,11 @@ var Links1 = function Links1(props) {
10944
10987
  };
10945
10988
 
10946
10989
  var Footer1 = function Footer1(props) {
10947
- var _routes$filter;
10990
+ var _shopConfigStyle$navB, _shopConfigStyle$navB2;
10948
10991
  var shopConfig = props.shopConfig,
10949
10992
  shopConfigStyle = props.shopConfigStyle,
10950
10993
  _props$Link = props.Link,
10951
- Link = _props$Link === void 0 ? null : _props$Link,
10952
- _props$routes = props.routes,
10953
- routes = _props$routes === void 0 ? [] : _props$routes;
10994
+ Link = _props$Link === void 0 ? null : _props$Link;
10954
10995
  var _shopConfigStyle$colo = shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : shopConfigStyle.color,
10955
10996
  _shopConfigStyle$colo2 = _shopConfigStyle$colo.primary,
10956
10997
  primary = _shopConfigStyle$colo2 === void 0 ? "#000" : _shopConfigStyle$colo2,
@@ -10982,7 +11023,9 @@ var Footer1 = function Footer1(props) {
10982
11023
  };
10983
11024
  return /*#__PURE__*/React__default.createElement("div", {
10984
11025
  className: SECTION_CLASS + " !md:my-0 !my-0 pt-12 bg-bgSecondary"
10985
- }, /*#__PURE__*/React__default.createElement("div", {
11026
+ }, /*#__PURE__*/React__default.createElement(LinkToPage, {
11027
+ Link: Link,
11028
+ href: "/",
10986
11029
  className: "flex items-center"
10987
11030
  }, /*#__PURE__*/React__default.createElement("img", {
10988
11031
  className: "object-cover w-16 h-16",
@@ -11021,12 +11064,13 @@ var Footer1 = function Footer1(props) {
11021
11064
  className: "mb-3 font-semibold text-lg"
11022
11065
  }, "Li\xEAn k\u1EBFt"), /*#__PURE__*/React__default.createElement("div", {
11023
11066
  className: "leading-10 flex flex-col "
11024
- }, routes === null || routes === void 0 ? void 0 : (_routes$filter = routes.filter(function (e) {
11067
+ }, 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) {
11025
11068
  return e === null || e === void 0 ? void 0 : e.isShow;
11026
- })) === null || _routes$filter === void 0 ? void 0 : _routes$filter.map(function (route, index) {
11069
+ })) === null || _shopConfigStyle$navB2 === void 0 ? void 0 : _shopConfigStyle$navB2.map(function (route, index) {
11027
11070
  return /*#__PURE__*/React__default.createElement(LinkToPage, {
11028
11071
  Link: Link,
11029
- href: route === null || route === void 0 ? void 0 : route.route
11072
+ href: route === null || route === void 0 ? void 0 : route.route,
11073
+ key: "dfjg-" + index
11030
11074
  }, /*#__PURE__*/React__default.createElement("div", null, route === null || route === void 0 ? void 0 : route.label));
11031
11075
  }))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
11032
11076
  className: "font-semibold mb-4 text-lg"
@@ -11074,11 +11118,11 @@ var Footer1 = function Footer1(props) {
11074
11118
  };
11075
11119
 
11076
11120
  var Footer7 = function Footer7(props) {
11077
- var _routes$filter;
11121
+ var _shopConfigStyle$navB, _shopConfigStyle$navB2;
11078
11122
  var shopConfig = props.shopConfig,
11079
11123
  shopConfigStyle = props.shopConfigStyle,
11080
- _props$routes = props.routes,
11081
- routes = _props$routes === void 0 ? [] : _props$routes;
11124
+ _props$Link = props.Link,
11125
+ Link = _props$Link === void 0 ? null : _props$Link;
11082
11126
  var _shopConfigStyle$colo = shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : shopConfigStyle.color,
11083
11127
  _shopConfigStyle$colo2 = _shopConfigStyle$colo.primary,
11084
11128
  primary = _shopConfigStyle$colo2 === void 0 ? "#000" : _shopConfigStyle$colo2,
@@ -11119,7 +11163,9 @@ var Footer7 = function Footer7(props) {
11119
11163
  background: bgSecondary,
11120
11164
  color: textBody
11121
11165
  }
11122
- }, /*#__PURE__*/React__default.createElement("div", {
11166
+ }, /*#__PURE__*/React__default.createElement(LinkToPage, {
11167
+ Link: Link,
11168
+ href: "/",
11123
11169
  className: "flex items-center gap-2"
11124
11170
  }, /*#__PURE__*/React__default.createElement("img", {
11125
11171
  className: "object-cover w-14",
@@ -11158,11 +11204,13 @@ var Footer7 = function Footer7(props) {
11158
11204
  className: "mb-4 font-semibold text-md md:text-lg"
11159
11205
  }, "Li\xEAn k\u1EBFt"), /*#__PURE__*/React__default.createElement("div", {
11160
11206
  className: "leading-10 flex flex-col "
11161
- }, routes === null || routes === void 0 ? void 0 : (_routes$filter = routes.filter(function (e) {
11207
+ }, 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) {
11162
11208
  return e === null || e === void 0 ? void 0 : e.isShow;
11163
- })) === null || _routes$filter === void 0 ? void 0 : _routes$filter.map(function (route, index) {
11164
- return /*#__PURE__*/React__default.createElement("a", {
11165
- href: route === null || route === void 0 ? void 0 : route.route
11209
+ })) === null || _shopConfigStyle$navB2 === void 0 ? void 0 : _shopConfigStyle$navB2.map(function (route, index) {
11210
+ return /*#__PURE__*/React__default.createElement(LinkToPage, {
11211
+ href: route === null || route === void 0 ? void 0 : route.route,
11212
+ Link: Link,
11213
+ key: "fiddf-" + index
11166
11214
  }, /*#__PURE__*/React__default.createElement("div", null, route === null || route === void 0 ? void 0 : route.label));
11167
11215
  }))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
11168
11216
  className: "font-semibold mb-4 text-md md:text-lg"
@@ -11312,7 +11360,7 @@ var CustomerRating5 = function CustomerRating5(props) {
11312
11360
  }
11313
11361
  };
11314
11362
  return /*#__PURE__*/React__default.createElement("div", {
11315
- className: SECTION_CLASS + " mx-0 md:mx-4 xl:mx-20 rounded-xl relative"
11363
+ className: SECTION_CLASS + " mx-0 md:mx-4 xl:mx-20 rounded-xl pb-6 relative"
11316
11364
  }, /*#__PURE__*/React__default.createElement("div", {
11317
11365
  className: "absolute mt-16 inset-0 bg-bgSecondary [clip-path:polygon(0%_0%,_100%_30%,_100%_100%,_0%_100%)] z-0 rounded-3xl"
11318
11366
  }), /*#__PURE__*/React__default.createElement("div", {
@@ -11516,21 +11564,19 @@ var PageTitle1 = function PageTitle1(props) {
11516
11564
  };
11517
11565
 
11518
11566
  var About1 = function About1(props) {
11567
+ var shopConfig = props.shopConfig,
11568
+ data = props.data;
11519
11569
  return /*#__PURE__*/React__default.createElement("div", {
11520
11570
  className: SECTION_CLASS + " flex flex-col gap-4"
11521
- }, /*#__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", {
11522
- className: "font-semibold"
11523
- }, "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", {
11524
- className: "font-semibold"
11525
- }, "S\u1EE9 m\u1EC7nh"), /*#__PURE__*/React__default.createElement("li", {
11526
- className: "ps-4"
11527
- }, " \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", {
11528
- className: "ps-4"
11529
- }, " 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", {
11530
- className: "ps-4"
11531
- }, " 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", {
11532
- className: "font-semibold"
11533
- }, "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."));
11571
+ }, data !== null && data !== void 0 && data.sectionTitle ? /*#__PURE__*/React__default.createElement("h1", {
11572
+ className: "text-4xl font-semibold"
11573
+ }, data === null || data === void 0 ? void 0 : data.sectionTitle) : null, data !== null && data !== void 0 && data.sectionDescription ? /*#__PURE__*/React__default.createElement("div", {
11574
+ className: "text-xl"
11575
+ }, data === null || data === void 0 ? void 0 : data.sectionDescription) : null, /*#__PURE__*/React__default.createElement("div", {
11576
+ dangerouslySetInnerHTML: {
11577
+ __html: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopAbout
11578
+ }
11579
+ }));
11534
11580
  };
11535
11581
 
11536
11582
  var About5 = function About5(props) {
@@ -12501,7 +12547,7 @@ var SearchProduct1 = function SearchProduct1(props) {
12501
12547
  setSearchValue = _useState2[1];
12502
12548
  React.useEffect(function () {
12503
12549
  if (valueSearch === "") {
12504
- setProducts([]);
12550
+ setListProducts([]);
12505
12551
  } else {
12506
12552
  var delayDebounceFn = setTimeout(function () {
12507
12553
  handleSearch(valueSearch);
@@ -12573,6 +12619,7 @@ var SearchProduct1 = function SearchProduct1(props) {
12573
12619
  };
12574
12620
 
12575
12621
  var SearchBar2 = function SearchBar2(props) {
12622
+ var _data$data;
12576
12623
  var _props$Link = props.Link,
12577
12624
  Link = _props$Link === void 0 ? null : _props$Link,
12578
12625
  data = props.data;
@@ -12618,12 +12665,21 @@ var SearchBar2 = function SearchBar2(props) {
12618
12665
  }
12619
12666
  };
12620
12667
  return /*#__PURE__*/React__default.createElement("div", {
12621
- className: "w-[100vw] md:w-[50vw] py-6 mx-auto px-6 flex flex-col gap-4"
12668
+ className: SECTION_CLASS + " md:mt-6"
12669
+ }, /*#__PURE__*/React__default.createElement("div", {
12670
+ className: " w-full flex flex-col justify-center px-6 gap-2 md:gap-4 items-center rounded-xl md:rounded-3xl ",
12671
+ style: {
12672
+ background: "url(" + (data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.srcImage) + ")",
12673
+ backgroundPosition: "center",
12674
+ backgroundSize: "cover"
12675
+ }
12676
+ }, /*#__PURE__*/React__default.createElement("div", {
12677
+ className: "w-[100vw] md:w-[50vw] py-6 mx-auto px-6 flex flex-col h-full gap-4"
12622
12678
  }, /*#__PURE__*/React__default.createElement(Input, {
12623
12679
  icons: /*#__PURE__*/React__default.createElement(io5.IoSearchOutline, {
12624
12680
  className: "text-gray3"
12625
12681
  }),
12626
- className: "w-full",
12682
+ className: "w-full h-12",
12627
12683
  inputClassName: "w-full",
12628
12684
  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",
12629
12685
  onChange: setSearchValue
@@ -12648,14 +12704,13 @@ var SearchBar2 = function SearchBar2(props) {
12648
12704
  })));
12649
12705
  })) : /*#__PURE__*/React__default.createElement("div", {
12650
12706
  className: "mx-auto"
12651
- }, data === null || data === void 0 ? void 0 : data.sectionDescription));
12707
+ }, data === null || data === void 0 ? void 0 : data.sectionDescription))));
12652
12708
  };
12653
12709
 
12654
12710
  var SearchBar5 = function SearchBar5(props) {
12655
- var _data$data, _data$data2, _data$data3;
12711
+ var _data$data, _data$data2, _data$data3, _data$data4, _data$data5;
12656
12712
  var _props$Link = props.Link,
12657
12713
  Link = _props$Link === void 0 ? null : _props$Link,
12658
- shopConfigStyle = props.shopConfigStyle,
12659
12714
  data = props.data;
12660
12715
  var _useState = React.useState(""),
12661
12716
  value = _useState[0],
@@ -12669,12 +12724,14 @@ var SearchBar5 = function SearchBar5(props) {
12669
12724
  backgroundPosition: "center",
12670
12725
  backgroundSize: "cover"
12671
12726
  }
12672
- }, /*#__PURE__*/React__default.createElement("div", {
12727
+ }, data !== null && data !== void 0 && (_data$data2 = data.data) !== null && _data$data2 !== void 0 && _data$data2.title ? /*#__PURE__*/React__default.createElement("div", {
12673
12728
  className: "text-xl font-semibold md:text-3xl lg:text-4xl text-textButton text-center"
12674
- }, 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, {
12729
+ }, 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", {
12730
+ className: "text-center"
12731
+ }, 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, {
12675
12732
  onChange: setValue,
12676
12733
  icons: /*#__PURE__*/React__default.createElement(io5.IoSearchOutline, {
12677
- className: "text-gray3 text-xl md:text-2xl"
12734
+ className: "text-gray3 ps-1 text-xl md:text-2xl"
12678
12735
  }),
12679
12736
  className: "w-full bg-bgSecondary w-full md:w-[50vw] lg:w-[35vw] mb-2 md:h-12",
12680
12737
  style: {
@@ -12687,18 +12744,16 @@ var SearchBar5 = function SearchBar5(props) {
12687
12744
  href: genLinkSearch(value)
12688
12745
  }, /*#__PURE__*/React__default.createElement(Button, {
12689
12746
  label: "T\xECm ki\u1EBFm",
12690
- className: "whitespace-nowrap h-full ",
12691
- shopConfigStyle: shopConfigStyle
12747
+ className: "whitespace-nowrap h-full !rounded-3xl "
12692
12748
  })) : /*#__PURE__*/React__default.createElement(Button, {
12693
12749
  label: "T\xECm ki\u1EBFm",
12694
- className: "whitespace-nowrap ",
12695
- shopConfigStyle: shopConfigStyle
12750
+ className: "whitespace-nowrap !rounded-3xl py-1.5 md:py-2.5"
12696
12751
  }))
12697
12752
  })));
12698
12753
  };
12699
12754
 
12700
12755
  var SearchBar6 = function SearchBar6(props) {
12701
- var _data$data, _data$data2, _data$data3;
12756
+ var _data$data, _data$data2, _data$data3, _data$data4, _data$data5;
12702
12757
  var shopConfigStyle = props.shopConfigStyle,
12703
12758
  _props$Link = props.Link,
12704
12759
  Link = _props$Link === void 0 ? null : _props$Link,
@@ -12713,9 +12768,11 @@ var SearchBar6 = function SearchBar6(props) {
12713
12768
  backgroundPosition: "center",
12714
12769
  backgroundSize: "cover"
12715
12770
  }
12716
- }, /*#__PURE__*/React__default.createElement("div", {
12771
+ }, data !== null && data !== void 0 && (_data$data2 = data.data) !== null && _data$data2 !== void 0 && _data$data2.title ? /*#__PURE__*/React__default.createElement("div", {
12717
12772
  className: "text-lg font-semibold text-textBody md:text-2xl lg:text-3xl text-center"
12718
- }, 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", {
12773
+ }, 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", {
12774
+ className: "text-center"
12775
+ }, 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", {
12719
12776
  className: "flex gap-2 md:gap-4 lg:gap-6 mb-2 md:mb-0"
12720
12777
  }, /*#__PURE__*/React__default.createElement(Input, {
12721
12778
  icons: /*#__PURE__*/React__default.createElement(io5.IoSearchOutline, {
@@ -12740,12 +12797,17 @@ var SearchBar6 = function SearchBar6(props) {
12740
12797
  };
12741
12798
 
12742
12799
  var ShopHighlights2 = function ShopHighlights2(props) {
12743
- var data = props.data;
12800
+ var data = props.data,
12801
+ _props$Link = props.Link,
12802
+ Link = _props$Link === void 0 ? null : _props$Link;
12744
12803
  var sectionData = data === null || data === void 0 ? void 0 : data.data;
12745
12804
  return /*#__PURE__*/React__default.createElement("div", {
12746
12805
  className: SECTION_CLASS + " my-0 md:my-0 py-6 grid grid-cols-2 md:grid-cols-4 gap-4 lg:gap-6"
12747
12806
  }, sectionData === null || sectionData === void 0 ? void 0 : sectionData.map(function (item, index) {
12748
- return /*#__PURE__*/React__default.createElement("div", {
12807
+ return /*#__PURE__*/React__default.createElement(LinkToPage, {
12808
+ Link: Link,
12809
+ href: (item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link)
12810
+ }, /*#__PURE__*/React__default.createElement("div", {
12749
12811
  className: "flex flex-col items-center text-center lg:px-3 gap-3",
12750
12812
  key: "kdf-" + index
12751
12813
  }, item !== null && item !== void 0 && item.svgImage ? /*#__PURE__*/React__default.createElement("div", {
@@ -12759,17 +12821,22 @@ var ShopHighlights2 = function ShopHighlights2(props) {
12759
12821
  className: "w-16 h-16 p-3 rounded-full bg-primary"
12760
12822
  }), /*#__PURE__*/React__default.createElement("div", {
12761
12823
  className: "font-medium text-lg"
12762
- }, item === null || item === void 0 ? void 0 : item.title), /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.description));
12824
+ }, item === null || item === void 0 ? void 0 : item.title), /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.description)));
12763
12825
  }));
12764
12826
  };
12765
12827
 
12766
12828
  var ShopHighlights5 = function ShopHighlights5(props) {
12767
- var data = props.data;
12829
+ var data = props.data,
12830
+ _props$Link = props.Link,
12831
+ Link = _props$Link === void 0 ? null : _props$Link;
12768
12832
  var sectionData = data === null || data === void 0 ? void 0 : data.data;
12769
12833
  return /*#__PURE__*/React__default.createElement("div", {
12770
12834
  className: SECTION_CLASS + " grid md:grid-cols-3 py-6 gap-4 lg:gap-6 bg-bgSecondary"
12771
12835
  }, sectionData === null || sectionData === void 0 ? void 0 : sectionData.map(function (item, index) {
12772
- return /*#__PURE__*/React__default.createElement("div", {
12836
+ return /*#__PURE__*/React__default.createElement(LinkToPage, {
12837
+ href: (item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link),
12838
+ Link: Link
12839
+ }, /*#__PURE__*/React__default.createElement("div", {
12773
12840
  className: "flex flex-col items-center text-center md:px-3 lg:px-6 gap-3",
12774
12841
  key: "kdf-" + index
12775
12842
  }, item !== null && item !== void 0 && item.svgImage ? /*#__PURE__*/React__default.createElement("div", {
@@ -12783,7 +12850,7 @@ var ShopHighlights5 = function ShopHighlights5(props) {
12783
12850
  className: "w-16 h-16 rounded-full bg-primary"
12784
12851
  }), /*#__PURE__*/React__default.createElement("div", {
12785
12852
  className: "font-medium text-xl text-textHeading pt-2 border-t border-textHeading"
12786
- }, item === null || item === void 0 ? void 0 : item.title), /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.description));
12853
+ }, item === null || item === void 0 ? void 0 : item.title), /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.description)));
12787
12854
  }));
12788
12855
  };
12789
12856
 
@@ -12813,7 +12880,7 @@ var ShopHighlights6 = function ShopHighlights6(props) {
12813
12880
  className: " w-44 h-0.5 rounded-full bg-primary"
12814
12881
  }), /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.description), /*#__PURE__*/React__default.createElement(LinkToPage, {
12815
12882
  Link: Link,
12816
- href: (item === null || item === void 0 ? void 0 : item.link) || (item === null || item === void 0 ? void 0 : item.route)
12883
+ href: (item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link)
12817
12884
  }, /*#__PURE__*/React__default.createElement(Button, {
12818
12885
  shopConfigStyle: shopConfigStyle,
12819
12886
  label: item === null || item === void 0 ? void 0 : item.title
@@ -12828,7 +12895,9 @@ var ShopHighlights7 = function ShopHighlights7(props) {
12828
12895
  _props$data = props.data,
12829
12896
  data = _props$data === void 0 ? {} : _props$data,
12830
12897
  _props$SectionTitle = props.SectionTitle,
12831
- SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
12898
+ SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle,
12899
+ _props$Link = props.Link,
12900
+ Link = _props$Link === void 0 ? null : _props$Link;
12832
12901
  var _shopConfigStyle$colo = shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : shopConfigStyle.color,
12833
12902
  _shopConfigStyle$colo3 = _shopConfigStyle$colo.secondary,
12834
12903
  secondary = _shopConfigStyle$colo3 === void 0 ? "#000" : _shopConfigStyle$colo3;
@@ -12839,7 +12908,10 @@ var ShopHighlights7 = function ShopHighlights7(props) {
12839
12908
  }), /*#__PURE__*/React__default.createElement("div", {
12840
12909
  className: "mt-6 grid grid-cols-3 gap-4 md:gap-8"
12841
12910
  }, data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.map(function (it, index) {
12842
- return /*#__PURE__*/React__default.createElement("div", {
12911
+ var _item, _item2;
12912
+ return /*#__PURE__*/React__default.createElement(LinkToPage, {
12913
+ Link: Link,
12914
+ href: ((_item = item) === null || _item === void 0 ? void 0 : _item.route) || ((_item2 = item) === null || _item2 === void 0 ? void 0 : _item2.link),
12843
12915
  key: index,
12844
12916
  className: "pt-6 col-span-3 md:col-span-1"
12845
12917
  }, /*#__PURE__*/React__default.createElement("div", {