s-platform-landing-section 0.1.16 → 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,
@@ -303,7 +303,7 @@ var NavBar7 = function NavBar7(props) {
303
303
  href: item === null || item === void 0 ? void 0 : item.route,
304
304
  key: index
305
305
  }, (item === null || item === void 0 ? void 0 : item.name) === (route === null || route === void 0 ? void 0 : route.name) ? /*#__PURE__*/React__default.createElement("div", {
306
- className: "py-1 border-b text-textHeading border-textHeading"
306
+ className: "whitespace-nowrap py-1 border-b text-textHeading border-textHeading"
307
307
  }, item === null || item === void 0 ? void 0 : item.label) : /*#__PURE__*/React__default.createElement("div", {
308
308
  className: "py-1 text-textBody"
309
309
  }, item === null || item === void 0 ? void 0 : item.label));
@@ -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));
@@ -505,7 +523,7 @@ var NavBar1 = function NavBar1(props) {
505
523
  href: item === null || item === void 0 ? void 0 : item.route,
506
524
  key: index
507
525
  }, /*#__PURE__*/React__default.createElement("div", {
508
- className: "py-1 " + ((item === null || item === void 0 ? void 0 : item.name) === (route === null || route === void 0 ? void 0 : route.name) ? "border-b text-primary border-primary" : "text-textBody") + " "
526
+ className: "py-1 whitespace-nowrap " + ((item === null || item === void 0 ? void 0 : item.name) === (route === null || route === void 0 ? void 0 : route.name) ? "border-b text-primary border-primary" : "text-textBody") + " "
509
527
  }, item === null || item === void 0 ? void 0 : item.label));
510
528
  })), cart(), userInfo ?
511
529
  /*#__PURE__*/
@@ -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,
@@ -845,14 +872,14 @@ var Hero1 = function Hero1(props) {
845
872
  }, /*#__PURE__*/React__default.createElement("div", {
846
873
  className: "w-[80%] md:w-2/3 xl:w-1/2 md:h-2/3 flex flex-col gap-2 md:gap-8 justify-center items-center bg-background opacity-90 absolute top-5 md:top-10 px-6 py-4 rounded-tr-[40px] rounded-bl-[40px] md:rounded-tr-[80px] md:rounded-bl-[80px]"
847
874
  }, /*#__PURE__*/React__default.createElement("div", {
848
- className: "text-xl md:text-4xl lg:text-[40px] text-primary font-medium"
875
+ className: "text-xl text-center md:text-4xl lg:text-[40px] text-primary font-medium"
849
876
  }, sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$2 = sectionData[0]) === null || _sectionData$2 === void 0 ? void 0 : _sectionData$2.title), /*#__PURE__*/React__default.createElement("div", {
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,
@@ -1039,7 +1069,7 @@ var CarouselItem = function CarouselItem(props) {
1039
1069
  }, /*#__PURE__*/React__default.createElement("div", {
1040
1070
  className: "col-span-12 lg:col-span-10 md:col-span-9 overflow-hidden "
1041
1071
  }, /*#__PURE__*/React__default.createElement("div", {
1042
- className: "flex overflow-x-auto gap-2 hide-scrollbar items-center",
1072
+ className: "flex overflow-x-auto gap-2 no-scrollbar items-center",
1043
1073
  ref: listRef
1044
1074
  }, isAll ? /*#__PURE__*/React__default.createElement("div", {
1045
1075
  className: " " + ((Object === null || Object === void 0 ? void 0 : (_Object$keys = Object.keys(value)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) <= 0 ? "bg-primary text-textButton" : "bg-background") + " w-max border border-primary p-1 md:p-2 rounded-lg cursor-pointer whitespace-nowrap",
@@ -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, {
@@ -9635,7 +9664,7 @@ var Carousel = function Carousel(props) {
9635
9664
  className: "relative " + className + " ",
9636
9665
  style: style
9637
9666
  }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
9638
- className: " w-full pe-2 h-full flex gap-2 md:gap-4 xl:gap-6 overflow-x-auto hide-scrollbar",
9667
+ className: " w-full pe-2 h-full flex gap-2 md:gap-4 xl:gap-6 overflow-x-auto no-scrollbar",
9639
9668
  ref: carouselRef
9640
9669
  }, data && (data === null || data === void 0 ? void 0 : data.length) > 0 ? data === null || data === void 0 ? void 0 : data.map(function (item, index) {
9641
9670
  return renderItem(item, index);
@@ -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) {
@@ -12493,7 +12539,25 @@ var SearchProduct1 = function SearchProduct1(props) {
12493
12539
  setListProducts = _useState[1];
12494
12540
  var _ProductController = ProductController(_extends({}, props)),
12495
12541
  getProductListSearch = _ProductController.getProductListSearch;
12542
+ var _useState2 = useState(""),
12543
+ valueSearch = _useState2[0],
12544
+ setSearchValue = _useState2[1];
12545
+ useEffect(function () {
12546
+ if (valueSearch === "") {
12547
+ setListProducts([]);
12548
+ } else {
12549
+ var delayDebounceFn = setTimeout(function () {
12550
+ handleSearch(valueSearch);
12551
+ }, 500);
12552
+ return function () {
12553
+ return clearTimeout(delayDebounceFn);
12554
+ };
12555
+ }
12556
+ }, [valueSearch]);
12496
12557
  var handleSearch = function handleSearch(productName) {
12558
+ if (productName === void 0) {
12559
+ productName = "";
12560
+ }
12497
12561
  try {
12498
12562
  var _temp = function () {
12499
12563
  if (productName) {
@@ -12520,7 +12584,7 @@ var SearchProduct1 = function SearchProduct1(props) {
12520
12584
  },
12521
12585
  inputClassName: "w-full h-full p-2 text-lg",
12522
12586
  placeholder: (data === null || data === void 0 ? void 0 : data.sectionTitle) || "Tìm kiếm sản phẩm",
12523
- onChange: handleSearch,
12587
+ onChange: setSearchValue,
12524
12588
  icons: /*#__PURE__*/React__default.createElement("div", {
12525
12589
  className: "px-2"
12526
12590
  }, /*#__PURE__*/React__default.createElement(FiSearch, {
@@ -12552,21 +12616,39 @@ var SearchProduct1 = function SearchProduct1(props) {
12552
12616
  };
12553
12617
 
12554
12618
  var SearchBar2 = function SearchBar2(props) {
12619
+ var _data$data;
12555
12620
  var _props$Link = props.Link,
12556
12621
  Link = _props$Link === void 0 ? null : _props$Link,
12557
12622
  data = props.data;
12558
12623
  var _useState = useState([]),
12559
12624
  products = _useState[0],
12560
12625
  setProducts = _useState[1];
12626
+ var _useState2 = useState(""),
12627
+ valueSearch = _useState2[0],
12628
+ setSearchValue = _useState2[1];
12561
12629
  var _ProductController = ProductController(_extends({}, props)),
12562
12630
  getProductListSearch = _ProductController.getProductListSearch;
12631
+ useEffect(function () {
12632
+ if (valueSearch === "") {
12633
+ setProducts([]);
12634
+ } else {
12635
+ var delayDebounceFn = setTimeout(function () {
12636
+ handleSearch(valueSearch);
12637
+ }, 500);
12638
+ return function () {
12639
+ return clearTimeout(delayDebounceFn);
12640
+ };
12641
+ }
12642
+ }, [valueSearch]);
12563
12643
  var handleSearch = function handleSearch(productName) {
12564
12644
  if (productName === void 0) {
12565
12645
  productName = "";
12566
12646
  }
12567
12647
  try {
12568
12648
  var _temp = function () {
12569
- if (productName === "") setProducts([]);else {
12649
+ if (productName === "") {
12650
+ setProducts([]);
12651
+ } else {
12570
12652
  return Promise.resolve(getProductListSearch({
12571
12653
  productName: productName
12572
12654
  })).then(function (productList) {
@@ -12580,15 +12662,24 @@ var SearchBar2 = function SearchBar2(props) {
12580
12662
  }
12581
12663
  };
12582
12664
  return /*#__PURE__*/React__default.createElement("div", {
12583
- 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"
12584
12675
  }, /*#__PURE__*/React__default.createElement(Input, {
12585
12676
  icons: /*#__PURE__*/React__default.createElement(IoSearchOutline, {
12586
12677
  className: "text-gray3"
12587
12678
  }),
12588
- className: "w-full",
12679
+ className: "w-full h-12",
12589
12680
  inputClassName: "w-full",
12590
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",
12591
- onChange: handleSearch
12682
+ onChange: setSearchValue
12592
12683
  }), (products === null || products === void 0 ? void 0 : products.length) > 0 ? /*#__PURE__*/React__default.createElement("div", {
12593
12684
  className: "max-h-64 overflow-y-auto flex flex-col gap-2"
12594
12685
  }, products === null || products === void 0 ? void 0 : products.map(function (item, index) {
@@ -12610,14 +12701,13 @@ var SearchBar2 = function SearchBar2(props) {
12610
12701
  })));
12611
12702
  })) : /*#__PURE__*/React__default.createElement("div", {
12612
12703
  className: "mx-auto"
12613
- }, data === null || data === void 0 ? void 0 : data.sectionDescription));
12704
+ }, data === null || data === void 0 ? void 0 : data.sectionDescription))));
12614
12705
  };
12615
12706
 
12616
12707
  var SearchBar5 = function SearchBar5(props) {
12617
- var _data$data, _data$data2, _data$data3;
12708
+ var _data$data, _data$data2, _data$data3, _data$data4, _data$data5;
12618
12709
  var _props$Link = props.Link,
12619
12710
  Link = _props$Link === void 0 ? null : _props$Link,
12620
- shopConfigStyle = props.shopConfigStyle,
12621
12711
  data = props.data;
12622
12712
  var _useState = useState(""),
12623
12713
  value = _useState[0],
@@ -12631,12 +12721,14 @@ var SearchBar5 = function SearchBar5(props) {
12631
12721
  backgroundPosition: "center",
12632
12722
  backgroundSize: "cover"
12633
12723
  }
12634
- }, /*#__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", {
12635
12725
  className: "text-xl font-semibold md:text-3xl lg:text-4xl text-textButton text-center"
12636
- }, 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, {
12637
12729
  onChange: setValue,
12638
12730
  icons: /*#__PURE__*/React__default.createElement(IoSearchOutline, {
12639
- className: "text-gray3 text-xl md:text-2xl"
12731
+ className: "text-gray3 ps-1 text-xl md:text-2xl"
12640
12732
  }),
12641
12733
  className: "w-full bg-bgSecondary w-full md:w-[50vw] lg:w-[35vw] mb-2 md:h-12",
12642
12734
  style: {
@@ -12649,18 +12741,16 @@ var SearchBar5 = function SearchBar5(props) {
12649
12741
  href: genLinkSearch(value)
12650
12742
  }, /*#__PURE__*/React__default.createElement(Button, {
12651
12743
  label: "T\xECm ki\u1EBFm",
12652
- className: "whitespace-nowrap h-full ",
12653
- shopConfigStyle: shopConfigStyle
12744
+ className: "whitespace-nowrap h-full !rounded-3xl "
12654
12745
  })) : /*#__PURE__*/React__default.createElement(Button, {
12655
12746
  label: "T\xECm ki\u1EBFm",
12656
- className: "whitespace-nowrap ",
12657
- shopConfigStyle: shopConfigStyle
12747
+ className: "whitespace-nowrap !rounded-3xl py-1.5 md:py-2.5"
12658
12748
  }))
12659
12749
  })));
12660
12750
  };
12661
12751
 
12662
12752
  var SearchBar6 = function SearchBar6(props) {
12663
- var _data$data, _data$data2, _data$data3;
12753
+ var _data$data, _data$data2, _data$data3, _data$data4, _data$data5;
12664
12754
  var shopConfigStyle = props.shopConfigStyle,
12665
12755
  _props$Link = props.Link,
12666
12756
  Link = _props$Link === void 0 ? null : _props$Link,
@@ -12675,9 +12765,11 @@ var SearchBar6 = function SearchBar6(props) {
12675
12765
  backgroundPosition: "center",
12676
12766
  backgroundSize: "cover"
12677
12767
  }
12678
- }, /*#__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", {
12679
12769
  className: "text-lg font-semibold text-textBody md:text-2xl lg:text-3xl text-center"
12680
- }, 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", {
12681
12773
  className: "flex gap-2 md:gap-4 lg:gap-6 mb-2 md:mb-0"
12682
12774
  }, /*#__PURE__*/React__default.createElement(Input, {
12683
12775
  icons: /*#__PURE__*/React__default.createElement(IoSearchOutline, {
@@ -12702,12 +12794,17 @@ var SearchBar6 = function SearchBar6(props) {
12702
12794
  };
12703
12795
 
12704
12796
  var ShopHighlights2 = function ShopHighlights2(props) {
12705
- var data = props.data;
12797
+ var data = props.data,
12798
+ _props$Link = props.Link,
12799
+ Link = _props$Link === void 0 ? null : _props$Link;
12706
12800
  var sectionData = data === null || data === void 0 ? void 0 : data.data;
12707
12801
  return /*#__PURE__*/React__default.createElement("div", {
12708
12802
  className: SECTION_CLASS + " my-0 md:my-0 py-6 grid grid-cols-2 md:grid-cols-4 gap-4 lg:gap-6"
12709
12803
  }, sectionData === null || sectionData === void 0 ? void 0 : sectionData.map(function (item, index) {
12710
- 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", {
12711
12808
  className: "flex flex-col items-center text-center lg:px-3 gap-3",
12712
12809
  key: "kdf-" + index
12713
12810
  }, item !== null && item !== void 0 && item.svgImage ? /*#__PURE__*/React__default.createElement("div", {
@@ -12721,17 +12818,22 @@ var ShopHighlights2 = function ShopHighlights2(props) {
12721
12818
  className: "w-16 h-16 p-3 rounded-full bg-primary"
12722
12819
  }), /*#__PURE__*/React__default.createElement("div", {
12723
12820
  className: "font-medium text-lg"
12724
- }, 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)));
12725
12822
  }));
12726
12823
  };
12727
12824
 
12728
12825
  var ShopHighlights5 = function ShopHighlights5(props) {
12729
- var data = props.data;
12826
+ var data = props.data,
12827
+ _props$Link = props.Link,
12828
+ Link = _props$Link === void 0 ? null : _props$Link;
12730
12829
  var sectionData = data === null || data === void 0 ? void 0 : data.data;
12731
12830
  return /*#__PURE__*/React__default.createElement("div", {
12732
12831
  className: SECTION_CLASS + " grid md:grid-cols-3 py-6 gap-4 lg:gap-6 bg-bgSecondary"
12733
12832
  }, sectionData === null || sectionData === void 0 ? void 0 : sectionData.map(function (item, index) {
12734
- 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", {
12735
12837
  className: "flex flex-col items-center text-center md:px-3 lg:px-6 gap-3",
12736
12838
  key: "kdf-" + index
12737
12839
  }, item !== null && item !== void 0 && item.svgImage ? /*#__PURE__*/React__default.createElement("div", {
@@ -12745,7 +12847,7 @@ var ShopHighlights5 = function ShopHighlights5(props) {
12745
12847
  className: "w-16 h-16 rounded-full bg-primary"
12746
12848
  }), /*#__PURE__*/React__default.createElement("div", {
12747
12849
  className: "font-medium text-xl text-textHeading pt-2 border-t border-textHeading"
12748
- }, 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)));
12749
12851
  }));
12750
12852
  };
12751
12853
 
@@ -12775,7 +12877,7 @@ var ShopHighlights6 = function ShopHighlights6(props) {
12775
12877
  className: " w-44 h-0.5 rounded-full bg-primary"
12776
12878
  }), /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.description), /*#__PURE__*/React__default.createElement(LinkToPage, {
12777
12879
  Link: Link,
12778
- 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)
12779
12881
  }, /*#__PURE__*/React__default.createElement(Button, {
12780
12882
  shopConfigStyle: shopConfigStyle,
12781
12883
  label: item === null || item === void 0 ? void 0 : item.title
@@ -12790,7 +12892,9 @@ var ShopHighlights7 = function ShopHighlights7(props) {
12790
12892
  _props$data = props.data,
12791
12893
  data = _props$data === void 0 ? {} : _props$data,
12792
12894
  _props$SectionTitle = props.SectionTitle,
12793
- 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;
12794
12898
  var _shopConfigStyle$colo = shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : shopConfigStyle.color,
12795
12899
  _shopConfigStyle$colo3 = _shopConfigStyle$colo.secondary,
12796
12900
  secondary = _shopConfigStyle$colo3 === void 0 ? "#000" : _shopConfigStyle$colo3;
@@ -12801,7 +12905,10 @@ var ShopHighlights7 = function ShopHighlights7(props) {
12801
12905
  }), /*#__PURE__*/React__default.createElement("div", {
12802
12906
  className: "mt-6 grid grid-cols-3 gap-4 md:gap-8"
12803
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) {
12804
- 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),
12805
12912
  key: index,
12806
12913
  className: "pt-6 col-span-3 md:col-span-1"
12807
12914
  }, /*#__PURE__*/React__default.createElement("div", {