s-platform-landing-section 0.1.33 → 0.1.35

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
@@ -21,6 +21,7 @@ require('slick-carousel/slick/slick.css');
21
21
  require('slick-carousel/slick/slick-theme.css');
22
22
  var ai = require('react-icons/ai');
23
23
  var go = require('react-icons/go');
24
+ var gr = require('react-icons/gr');
24
25
  var ri = require('react-icons/ri');
25
26
  var hi = require('react-icons/hi');
26
27
  var gi = require('react-icons/gi');
@@ -428,18 +429,17 @@ var NavBar7 = function NavBar7(props) {
428
429
  position: "fixed",
429
430
  top: "-100px"
430
431
  }
431
- }, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.defaultDomain, " | ", shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName), /*#__PURE__*/React__default.createElement("div", {
432
+ }, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName), /*#__PURE__*/React__default.createElement("div", {
432
433
  className: "hidden lg:flex gap-6 justify-between items-center py-2 px-4 xl:px-20"
433
434
  }, /*#__PURE__*/React__default.createElement(LinkToPage, {
434
435
  Link: Link,
435
436
  href: "/",
436
437
  className: "flex items-center gap-2"
437
438
  }, /*#__PURE__*/React__default.createElement("img", {
438
- className: "object-cover w-12 h-12",
439
- src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
440
- alt: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName
439
+ className: "object-cover w-12 max-h-12",
440
+ src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl
441
441
  }), /*#__PURE__*/React__default.createElement("h3", {
442
- className: "text-xl md:text-2xl text-primary text-wrap line-clamp-2 leading-tight"
442
+ className: "text-xl md:text-2xl text-primary font-headingFont text-wrap line-clamp-2 leading-tight"
443
443
  }, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName)), /*#__PURE__*/React__default.createElement("div", {
444
444
  className: "hidden lg:flex flex-1 items-center gap-4"
445
445
  }, 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) {
@@ -499,11 +499,10 @@ var NavBar7 = function NavBar7(props) {
499
499
  href: "/",
500
500
  className: "flex flex-1 gap-2 items-center"
501
501
  }, /*#__PURE__*/React__default.createElement("img", {
502
- className: "object-cover w-12 h-12",
503
- src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
504
- alt: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName
502
+ className: "object-cover w-12 max-h-12",
503
+ src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl
505
504
  }), /*#__PURE__*/React__default.createElement("h3", {
506
- className: "text-xl md:text-2xl text-wrap text-primary line-clamp-2"
505
+ className: "text-xl md:text-2xl font-headingFont text-wrap text-primary line-clamp-2"
507
506
  }, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName)), cart(), /*#__PURE__*/React__default.createElement("button", {
508
507
  type: "button",
509
508
  onClick: function onClick() {
@@ -531,12 +530,12 @@ var NavBar7 = function NavBar7(props) {
531
530
  return setIsOpen(false);
532
531
  }
533
532
  }, /*#__PURE__*/React__default.createElement("div", {
534
- className: "flex gap-2 items-center"
533
+ className: "flex gap-2 items-center mb-2"
535
534
  }, /*#__PURE__*/React__default.createElement("img", {
536
535
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
537
- className: "h-14 w-14 bg-cover bg-no-repeat"
536
+ className: "max-h-14 w-14 object-cover"
538
537
  }), /*#__PURE__*/React__default.createElement("h3", {
539
- className: "text-xl font-semibold line-clamp-1"
538
+ className: "text-xl font-headingFont text-primary line-clamp-1"
540
539
  }, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName))), /*#__PURE__*/React__default.createElement("button", {
541
540
  className: "text-gray4",
542
541
  onClick: function onClick() {
@@ -730,11 +729,11 @@ var NavBar1 = function NavBar1(props) {
730
729
  href: "/",
731
730
  className: "flex items-center gap-2"
732
731
  }, /*#__PURE__*/React__default.createElement("img", {
733
- className: "object-cover w-12 h-12",
732
+ className: "object-cover w-12 max-h-12",
734
733
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
735
734
  alt: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName
736
735
  }), /*#__PURE__*/React__default.createElement("h3", {
737
- className: "text-xl md:text-2xl text-wrap font-fredoka text-primary"
736
+ className: "text-xl md:text-2xl text-wrap font-headingFont text-primary"
738
737
  }, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName)), /*#__PURE__*/React__default.createElement("div", {
739
738
  className: "hidden lg:flex flex-1 items-center gap-4"
740
739
  }, 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) {
@@ -792,11 +791,11 @@ var NavBar1 = function NavBar1(props) {
792
791
  href: "/",
793
792
  className: "flex flex-1 gap-2 items-center"
794
793
  }, /*#__PURE__*/React__default.createElement("img", {
795
- className: "object-cover w-12 h-12",
794
+ className: "object-cover w-12 max-h-12",
796
795
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
797
796
  alt: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName
798
797
  }), /*#__PURE__*/React__default.createElement("h3", {
799
- className: "text-xl md:text-2xl text-wrap text-primary"
798
+ className: "text-xl md:text-2xl text-wrap text-primary font-headingFont"
800
799
  }, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName)), cart(), /*#__PURE__*/React__default.createElement("button", {
801
800
  type: "button",
802
801
  onClick: function onClick() {
@@ -824,12 +823,12 @@ var NavBar1 = function NavBar1(props) {
824
823
  return setIsOpen(false);
825
824
  }
826
825
  }, /*#__PURE__*/React__default.createElement("div", {
827
- className: "flex gap-2 items-center"
826
+ className: "flex gap-2 items-center mb-2"
828
827
  }, /*#__PURE__*/React__default.createElement("img", {
829
828
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
830
- className: "h-14 w-14 bg-cover bg-no-repeat"
829
+ className: "max-h-14 w-14 bg-cover bg-no-repeat"
831
830
  }), /*#__PURE__*/React__default.createElement("div", {
832
- className: "text-xl line-clamp-1"
831
+ className: "text-xl font-headingFont text-primary line-clamp-1"
833
832
  }, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName))), /*#__PURE__*/React__default.createElement("button", {
834
833
  className: "text-gray4",
835
834
  onClick: function onClick() {
@@ -965,6 +964,24 @@ var SectionTitle3 = function SectionTitle3(props) {
965
964
  }, data === null || data === void 0 ? void 0 : data.sectionDescription) : null);
966
965
  };
967
966
 
967
+ var SectionTitle4 = function SectionTitle4(props) {
968
+ var _data$sectionTitle;
969
+ var data = props.data;
970
+ return /*#__PURE__*/React__default.createElement("div", {
971
+ className: true
972
+ }, data !== null && data !== void 0 && data.sectionTitle ? /*#__PURE__*/React__default.createElement("div", {
973
+ className: "flex justify-center items-center gap-6"
974
+ }, /*#__PURE__*/React__default.createElement("div", {
975
+ className: "border w-32 border-primary"
976
+ }), /*#__PURE__*/React__default.createElement("h2", {
977
+ className: "font-headingFont !leading-relaxed text-primary text-center text-2xl md:text-4xl"
978
+ }, data === null || data === void 0 ? void 0 : (_data$sectionTitle = data.sectionTitle) === null || _data$sectionTitle === void 0 ? void 0 : _data$sectionTitle.toUpperCase()), /*#__PURE__*/React__default.createElement("div", {
979
+ className: "border w-32 border-primary"
980
+ })) : null, data !== null && data !== void 0 && data.sectionDescription ? /*#__PURE__*/React__default.createElement("p", {
981
+ className: "text-xl text-center font-medium leading-relaxed text-secondary mt-2"
982
+ }, data === null || data === void 0 ? void 0 : data.sectionDescription) : null);
983
+ };
984
+
968
985
  var Input = React.forwardRef(function (props, ref) {
969
986
  var _props$label = props.label,
970
987
  label = _props$label === void 0 ? "" : _props$label,
@@ -1200,11 +1217,10 @@ var Hero2 = function Hero2(props) {
1200
1217
  className: "w-full h-auto object-cover min-h-[22vh] max-h-[100vh]"
1201
1218
  }), /*#__PURE__*/React__default.createElement("div", {
1202
1219
  className: "absolute inset-y-0 right-[1%] md:right-[8%] w-[58%] md:w-1/2 flex flex-col gap-2 md:gap-4 xl:gap-6 justify-center items-start px-4 pt-4 pb-2 md:px-8 md:pt-8 md:pb-6 xl:p-8"
1203
- }, /*#__PURE__*/React__default.createElement("img", {
1220
+ }, shopConfig !== null && shopConfig !== void 0 && shopConfig.logoUrl ? /*#__PURE__*/React__default.createElement("img", {
1204
1221
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
1205
- alt: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName,
1206
1222
  className: "h-6 w-6 sm:h-10 sm:w-10 md:h-12 md:w-12 lg:w-14 lg:h-14 xl:h-20 xl:w-20"
1207
- }), /*#__PURE__*/React__default.createElement("div", {
1223
+ }) : null, /*#__PURE__*/React__default.createElement("div", {
1208
1224
  className: "font-medium line-clamp-1 ",
1209
1225
  style: {
1210
1226
  fontSize: "clamp(1.25rem, 4vw, 3.5rem)",
@@ -1273,7 +1289,7 @@ var Hero6 = function Hero6(props) {
1273
1289
  };
1274
1290
 
1275
1291
  var Hero10 = function Hero10(props) {
1276
- var _data$data, _data$data$, _data$data$$srcImages, _sectionData$, _sectionData$2, _sectionData$2$button;
1292
+ var _data$data, _data$data$, _data$data$$srcImages, _sectionData$, _sectionData$2, _sectionData$3, _sectionData$4, _sectionData$4$button;
1277
1293
  var shopConfigStyle = props.shopConfigStyle,
1278
1294
  data = props.data,
1279
1295
  _props$Link = props.Link,
@@ -1290,7 +1306,9 @@ var Hero10 = function Hero10(props) {
1290
1306
  className: "relative w-full min-h-[540px] p-12 z-10 flex flex-col gap-6 items-center justify-center"
1291
1307
  }, /*#__PURE__*/React__default.createElement("div", {
1292
1308
  className: "text-3xl md:text-5xl text-white leading-[1.6] md:leading-[1.6] text-center font-headingFont"
1293
- }, sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$ = sectionData[0]) === null || _sectionData$ === void 0 ? void 0 : _sectionData$.title), sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$2 = sectionData[0]) === null || _sectionData$2 === void 0 ? void 0 : (_sectionData$2$button = _sectionData$2.buttons) === null || _sectionData$2$button === void 0 ? void 0 : _sectionData$2$button.map(function (button, index) {
1309
+ }, sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$ = sectionData[0]) === null || _sectionData$ === void 0 ? void 0 : _sectionData$.title), sectionData !== null && sectionData !== void 0 && (_sectionData$2 = sectionData[0]) !== null && _sectionData$2 !== void 0 && _sectionData$2.description ? /*#__PURE__*/React__default.createElement("div", {
1310
+ className: "text-lg text-center text-white md:text-2xl"
1311
+ }, sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$3 = sectionData[0]) === null || _sectionData$3 === void 0 ? void 0 : _sectionData$3.description) : null, 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$button.map(function (button, index) {
1294
1312
  return /*#__PURE__*/React__default.createElement(LinkToPage, {
1295
1313
  Link: Link,
1296
1314
  key: "gdf-" + index,
@@ -1302,7 +1320,51 @@ var Hero10 = function Hero10(props) {
1302
1320
  })));
1303
1321
  };
1304
1322
 
1323
+ var SECTION_DEFAULT_CLASS = "my-12 mx-4 xl:mx-20 bg-background";
1324
+ var SECTION_CLASS = "my-6 md:my-12 px-4 xl:px-20 bg-background";
1325
+
1305
1326
  var Hero11 = function Hero11(props) {
1327
+ var _data$data, _data$data$, _data$data$$srcImages, _data$data2, _data$data2$, _data$data2$$title, _data$data3, _data$data3$;
1328
+ var _props$data = props.data,
1329
+ data = _props$data === void 0 ? {} : _props$data,
1330
+ _props$shopConfigStyl = props.shopConfigStyle,
1331
+ shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl;
1332
+ return /*#__PURE__*/React__default.createElement("div", {
1333
+ className: SECTION_CLASS + " grid grid-cols-1 md:grid-cols-2 py-12 !bg-bgSecondary gap-6 md:gap-12"
1334
+ }, /*#__PURE__*/React__default.createElement("div", {
1335
+ className: "flex w-full"
1336
+ }, /*#__PURE__*/React__default.createElement("div", {
1337
+ className: "w-4"
1338
+ }, /*#__PURE__*/React__default.createElement("div", {
1339
+ className: "bg-primary w-4 h-1/2 mt-6 "
1340
+ }), /*#__PURE__*/React__default.createElement("div", {
1341
+ className: "h-[45%]"
1342
+ })), /*#__PURE__*/React__default.createElement("div", {
1343
+ className: "w-full"
1344
+ }, /*#__PURE__*/React__default.createElement("img", {
1345
+ 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$$srcImages = _data$data$.srcImages) === null || _data$data$$srcImages === void 0 ? void 0 : _data$data$$srcImages[0],
1346
+ className: "object-cover max-w-full h-auto"
1347
+ })), /*#__PURE__*/React__default.createElement("div", {
1348
+ className: "w-4"
1349
+ }, /*#__PURE__*/React__default.createElement("div", {
1350
+ className: "h-[45%]"
1351
+ }), /*#__PURE__*/React__default.createElement("div", {
1352
+ className: "bg-primary w-4 h-1/2 mb-6"
1353
+ }))), /*#__PURE__*/React__default.createElement("div", {
1354
+ className: "relative flex flex-col justify-center gap-6 lg:gap-10"
1355
+ }, /*#__PURE__*/React__default.createElement("div", {
1356
+ className: "text-2xl md:text-4xl !leading-[1.6] font-headingFont w-max text-center text-primary"
1357
+ }, 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 = _data$data2$.title) === null || _data$data2$$title === void 0 ? void 0 : _data$data2$$title.toUpperCase()), /*#__PURE__*/React__default.createElement("div", {
1358
+ className: "text-lg md:text-xl lg:text-2xl"
1359
+ }, 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), /*#__PURE__*/React__default.createElement(Button, {
1360
+ label: "\u0110\u1EB7t b\xE0n ngay",
1361
+ shopConfigStyle: shopConfigStyle,
1362
+ className: "!font-normal w-max",
1363
+ sho: true
1364
+ })));
1365
+ };
1366
+
1367
+ var Hero12 = function Hero12(props) {
1306
1368
  var _data$data, _data$data$, _data$data$$srcImages, _data$data2, _data$data2$, _data$data3, _data$data3$;
1307
1369
  var _props$data = props.data,
1308
1370
  data = _props$data === void 0 ? {} : _props$data;
@@ -1397,7 +1459,7 @@ var CarouselItem = function CarouselItem(props) {
1397
1459
  }, /*#__PURE__*/React__default.createElement("div", {
1398
1460
  className: "w-full overflow-hidden "
1399
1461
  }, /*#__PURE__*/React__default.createElement("div", {
1400
- className: "flex overflow-x-auto gap-2 no-scrollbar items-center",
1462
+ className: "flex overflow-x-auto gap-2 " + (isNavigateButton ? "no-scrollbar" : "scroll-custom pb-2") + " items-center",
1401
1463
  ref: listRef
1402
1464
  }, isAll ? /*#__PURE__*/React__default.createElement("div", {
1403
1465
  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",
@@ -7502,7 +7564,7 @@ var lib = {
7502
7564
  };
7503
7565
 
7504
7566
  var getBaseUrl = function getBaseUrl() {
7505
- return process.env.NEXT_PUBLIC_BASE_URL || "https://proapi.sspa.com.vn";
7567
+ return process.env.NEXT_PUBLIC_BASE_URL || "https://test-apigateway.sfin.vn";
7506
7568
  };
7507
7569
  var request = axios.create();
7508
7570
  request.interceptors.request.use(function (config) {
@@ -7553,7 +7615,7 @@ var getYoutubeVideoIdByUrl = function getYoutubeVideoIdByUrl(url) {
7553
7615
  var linkPagePolicy = "https://sites.google.com/view/sodofin-landing-page-policy";
7554
7616
  var endpointLandingShop = "/landing-shop/v2";
7555
7617
  var endpointLanding = "/landing/v2";
7556
- var baseURL = process.env.NEXT_PUBLIC_BASE_URL || "https://proapi.sspa.com.vn";
7618
+ var baseURL = process.env.NEXT_PUBLIC_BASE_URL || "https://test-apigateway.sfin.vn";
7557
7619
 
7558
7620
  var getShopCategoriesApi = function getShopCategoriesApi(shopId, types) {
7559
7621
  return api({
@@ -7648,9 +7710,6 @@ var Hero13 = function Hero13(props) {
7648
7710
  }));
7649
7711
  };
7650
7712
 
7651
- var SECTION_DEFAULT_CLASS = "my-12 mx-4 xl:mx-20 bg-background";
7652
- var SECTION_CLASS = "my-6 md:my-12 px-4 xl:px-20 bg-background";
7653
-
7654
7713
  var Features2 = function Features2(props) {
7655
7714
  var data = props.data;
7656
7715
  var sectionData = data === null || data === void 0 ? void 0 : data.data;
@@ -7757,8 +7816,6 @@ var ProductController = function ProductController(props) {
7757
7816
  setLoading(true);
7758
7817
  var _temp = _catch(function () {
7759
7818
  var filterParams = _extends({}, defaultParams, params);
7760
- console.log("filterParams params", params);
7761
- console.log("filterParams", filterParams);
7762
7819
  return Promise.resolve(getProductListApi(shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopId, filterParams)).then(function (res) {
7763
7820
  var _res$data, _res$data$status;
7764
7821
  if ((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$status = _res$data.status) === null || _res$data$status === void 0 ? void 0 : _res$data$status.code) == 200) {
@@ -8064,7 +8121,11 @@ var ProductPrice = function ProductPrice(props) {
8064
8121
  _props$className = props.className,
8065
8122
  className = _props$className === void 0 ? "" : _props$className,
8066
8123
  _props$style = props.style,
8067
- style = _props$style === void 0 ? {} : _props$style;
8124
+ style = _props$style === void 0 ? {} : _props$style,
8125
+ _props$priceClassName = props.priceClassName,
8126
+ priceClassName = _props$priceClassName === void 0 ? "" : _props$priceClassName,
8127
+ _props$priceBeforeDis = props.priceBeforeDiscountClassName,
8128
+ priceBeforeDiscountClassName = _props$priceBeforeDis === void 0 ? "" : _props$priceBeforeDis;
8068
8129
  var _useState = React.useState(),
8069
8130
  displayPrice = _useState[0],
8070
8131
  setDisplayPrice = _useState[1];
@@ -8098,33 +8159,34 @@ var ProductPrice = function ProductPrice(props) {
8098
8159
  }
8099
8160
  };
8100
8161
  return /*#__PURE__*/React__default.createElement("div", {
8101
- className: className
8102
- }, displayPriceBeforeDiscount !== displayPrice && displayPriceBeforeDiscount != null ? /*#__PURE__*/React__default.createElement("span", {
8103
- className: "text-gray3 line-through mr-2"
8104
- }, displayPriceBeforeDiscount) : null, /*#__PURE__*/React__default.createElement("span", {
8105
- className: "text-primary font-semibold",
8162
+ className: "flex gap-4 flex-wrap " + className
8163
+ }, /*#__PURE__*/React__default.createElement("span", {
8164
+ className: "text-primary font-semibold " + priceClassName,
8106
8165
  style: style
8107
- }, displayPrice));
8166
+ }, displayPrice), displayPriceBeforeDiscount !== displayPrice && displayPriceBeforeDiscount != null ? /*#__PURE__*/React__default.createElement("span", {
8167
+ className: "text-gray3 line-through " + priceBeforeDiscountClassName + " "
8168
+ }, displayPriceBeforeDiscount) : null);
8108
8169
  };
8109
8170
 
8110
8171
  var ProductItem1 = function ProductItem1(props) {
8172
+ var _product$productInfo, _product$productInfo2;
8111
8173
  var product = props.product;
8112
8174
  return /*#__PURE__*/React__default.createElement("div", {
8113
8175
  className: "flex"
8114
8176
  }, /*#__PURE__*/React__default.createElement(ProductImage, {
8115
- product: product,
8177
+ product: product === null || product === void 0 ? void 0 : product.productInfo,
8116
8178
  className: "!w-20 rounded-lg"
8117
8179
  }), /*#__PURE__*/React__default.createElement("div", {
8118
8180
  className: "ml-4 border-b border-stroke flex-1"
8119
8181
  }, /*#__PURE__*/React__default.createElement("div", {
8120
8182
  className: "text-lg"
8121
- }, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement("div", {
8183
+ }, product === null || product === void 0 ? void 0 : (_product$productInfo = product.productInfo) === null || _product$productInfo === void 0 ? void 0 : _product$productInfo.productName), /*#__PURE__*/React__default.createElement("div", {
8122
8184
  className: "flex mt-2"
8123
8185
  }, /*#__PURE__*/React__default.createElement("div", {
8124
8186
  className: "flex-1 text-gray3"
8125
- }, getDurationValue(product === null || product === void 0 ? void 0 : product.attributes)), /*#__PURE__*/React__default.createElement(ProductPrice, {
8126
- product: product
8127
- }))));
8187
+ }, getDurationValue(product === null || product === void 0 ? void 0 : (_product$productInfo2 = product.productInfo) === null || _product$productInfo2 === void 0 ? void 0 : _product$productInfo2.attributes)), product !== null && product !== void 0 && product.isShowProductPriceOnLanding ? /*#__PURE__*/React__default.createElement(ProductPrice, {
8188
+ product: product === null || product === void 0 ? void 0 : product.productInfo
8189
+ }) : null)));
8128
8190
  };
8129
8191
 
8130
8192
  var Dash = function Dash(props) {
@@ -8232,7 +8294,7 @@ var TreatmentsCategory7 = function TreatmentsCategory7(props) {
8232
8294
  Link: Link,
8233
8295
  href: getLinkServiceDetail(product === null || product === void 0 ? void 0 : product.productInfo)
8234
8296
  }, /*#__PURE__*/React__default.createElement(ProductItem1, {
8235
- product: product === null || product === void 0 ? void 0 : product.productInfo
8297
+ product: product
8236
8298
  }));
8237
8299
  })) : /*#__PURE__*/React__default.createElement(NotFoundProduct, {
8238
8300
  text: "d\u1ECBch v\u1EE5"
@@ -8287,10 +8349,12 @@ var TreatmentsList6 = function TreatmentsList6(props) {
8287
8349
  return /*#__PURE__*/React__default.createElement(TreatmentItem, {
8288
8350
  Link: Link,
8289
8351
  shopConfigStyle: shopConfigStyle,
8290
- product: product === null || product === void 0 ? void 0 : product.productInfo,
8352
+ product: product,
8291
8353
  key: "htrhr-" + idx
8292
8354
  });
8293
- })) : /*#__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, {
8355
+ })) : /*#__PURE__*/React__default.createElement(NotFoundProduct, {
8356
+ text: "d\u1ECBch v\u1EE5"
8357
+ }), !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, {
8294
8358
  label: "Xem thêm",
8295
8359
  onClick: handleGetMoreProducts,
8296
8360
  className: "mx-auto " + (shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : shopConfigStyle.buttonClass),
@@ -8516,7 +8580,7 @@ var Select = React.forwardRef(function (props, ref) {
8516
8580
  React.useEffect(function () {
8517
8581
  var delayDebounceFn = setTimeout(function () {
8518
8582
  handleSearch === null || handleSearch === void 0 ? void 0 : handleSearch(inputSearch);
8519
- }, 500);
8583
+ }, 600);
8520
8584
  return function () {
8521
8585
  return clearTimeout(delayDebounceFn);
8522
8586
  };
@@ -8647,7 +8711,7 @@ var Select = React.forwardRef(function (props, ref) {
8647
8711
  }, label ? /*#__PURE__*/React__default.createElement("div", {
8648
8712
  className: "mb-1 " + labelClassName
8649
8713
  }, label, " ", labelRequired) : null, /*#__PURE__*/React__default.createElement("div", {
8650
- className: "flex flex-col gap-2 rounded-lg w-full bg-white " + (disabled ? "!bg-gray6" : "") + " border " + className
8714
+ className: "flex flex-col gap-2 rounded-lg w-full bg-white " + (disabled ? "!bg-gray6" : "") + " border border-stroke " + className
8651
8715
  }, /*#__PURE__*/React__default.createElement("button", {
8652
8716
  className: " w-full h-10 bg-transparent flex justify-between items-center px-3 py-2 " + selectClassName,
8653
8717
  onClick: handleToggleSelect,
@@ -9473,8 +9537,8 @@ var TreatmentsList7 = function TreatmentsList7(props) {
9473
9537
  params: params
9474
9538
  })),
9475
9539
  _ProductController$pr = _ProductController.products,
9476
- products = _ProductController$pr === void 0 ? [] : _ProductController$pr;
9477
- console.log("treatment1:", products);
9540
+ products = _ProductController$pr === void 0 ? [] : _ProductController$pr,
9541
+ loading = _ProductController.loading;
9478
9542
  var handleOpenModalBooking = function handleOpenModalBooking(event, data) {
9479
9543
  try {
9480
9544
  var _data$productInfo, _data$productInfo2;
@@ -9531,7 +9595,9 @@ var TreatmentsList7 = function TreatmentsList7(props) {
9531
9595
  shopConfigStyle: shopConfigStyle
9532
9596
  }), /*#__PURE__*/React__default.createElement("div", {
9533
9597
  className: "mt-12 w-full"
9534
- }, (products === null || products === void 0 ? void 0 : products.length) > 0 ? /*#__PURE__*/React__default.createElement(Slider, {
9598
+ }, loading ? /*#__PURE__*/React__default.createElement("div", {
9599
+ className: "flex justify-center h-20 items-center"
9600
+ }, /*#__PURE__*/React__default.createElement(Loading, null)) : (products === null || products === void 0 ? void 0 : products.length) > 0 ? /*#__PURE__*/React__default.createElement(Slider, {
9535
9601
  infinite: (products === null || products === void 0 ? void 0 : products.length) > 1 ? true : false,
9536
9602
  slidesToShow: 1,
9537
9603
  slidesToScroll: 1,
@@ -9729,7 +9795,7 @@ var ServiceDetail1 = function ServiceDetail1(props) {
9729
9795
  }
9730
9796
  }), /*#__PURE__*/React__default.createElement("p", {
9731
9797
  className: "text-lg mt-12 text-xl pb-1 pt-6 border-t border-stroke"
9732
- }, "M\xF4 t\u1EA3 s\u1EA3n ph\u1EA9m"), product !== null && product !== void 0 && product.description ? /*#__PURE__*/React__default.createElement("div", {
9798
+ }, "M\xF4 t\u1EA3 d\u1ECBch v\u1EE5"), product !== null && product !== void 0 && product.description ? /*#__PURE__*/React__default.createElement("div", {
9733
9799
  className: "h-max"
9734
9800
  }, /*#__PURE__*/React__default.createElement("div", {
9735
9801
  ref: descriptionRef,
@@ -9864,7 +9930,7 @@ var TreatmentDetail1 = function TreatmentDetail1(props) {
9864
9930
  }
9865
9931
  }), /*#__PURE__*/React__default.createElement("p", {
9866
9932
  className: "text-lg mt-12 text-xl pb-1 pt-6 border-t border-stroke"
9867
- }, "M\xF4 t\u1EA3 s\u1EA3n ph\u1EA9m"), product !== null && product !== void 0 && product.description ? /*#__PURE__*/React__default.createElement("div", {
9933
+ }, "M\xF4 t\u1EA3 d\u1ECBch v\u1EE5"), product !== null && product !== void 0 && product.description ? /*#__PURE__*/React__default.createElement("div", {
9868
9934
  className: "h-max"
9869
9935
  }, /*#__PURE__*/React__default.createElement("div", {
9870
9936
  ref: descriptionRef,
@@ -9900,6 +9966,7 @@ var TreatmentDetail1 = function TreatmentDetail1(props) {
9900
9966
  };
9901
9967
 
9902
9968
  var ProductItem2 = function ProductItem2(props) {
9969
+ var _product$productInfo;
9903
9970
  var product = props.product,
9904
9971
  _props$Link = props.Link,
9905
9972
  Link = _props$Link === void 0 ? null : _props$Link,
@@ -9907,27 +9974,29 @@ var ProductItem2 = function ProductItem2(props) {
9907
9974
  className = _props$className === void 0 ? "" : _props$className;
9908
9975
  return /*#__PURE__*/React__default.createElement(LinkToPage, {
9909
9976
  Link: Link,
9910
- href: getLinkProductDetail(product)
9977
+ href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
9911
9978
  }, /*#__PURE__*/React__default.createElement("div", {
9912
9979
  className: "text-center relative group " + className
9913
9980
  }, /*#__PURE__*/React__default.createElement(ProductImage, {
9914
- product: product,
9981
+ product: product === null || product === void 0 ? void 0 : product.productInfo,
9915
9982
  className: "max-w-[240px] rounded-full mx-auto !object-cover"
9916
- }), /*#__PURE__*/React__default.createElement(ProductPrice, {
9917
- product: product,
9918
- className: "text-lg mt-4"
9919
9983
  }), /*#__PURE__*/React__default.createElement("div", {
9984
+ className: "flex justify-center"
9985
+ }, /*#__PURE__*/React__default.createElement(ProductPrice, {
9986
+ product: product === null || product === void 0 ? void 0 : product.productInfo,
9987
+ className: "text-lg mt-4 " + (!(product !== null && product !== void 0 && product.isShowProductPriceOnLanding) ? "invisible" : "")
9988
+ })), /*#__PURE__*/React__default.createElement("div", {
9920
9989
  className: "text-lg mt-2"
9921
- }, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement("div", {
9990
+ }, product === null || product === void 0 ? void 0 : (_product$productInfo = product.productInfo) === null || _product$productInfo === void 0 ? void 0 : _product$productInfo.productName), /*#__PURE__*/React__default.createElement("div", {
9922
9991
  className: "absolute w-full h-full rounded-2xl top-0 left-0 opacity-0 group-hover:opacity-100 transition-opacity duration-300 bg-[rgba(0,0,0,0.5)] flex flex-col items-center justify-center gap-4"
9923
9992
  }, /*#__PURE__*/React__default.createElement(LinkToPage, {
9924
- href: getLinkProductDetail(product)
9993
+ href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
9925
9994
  }, /*#__PURE__*/React__default.createElement(Button, {
9926
9995
  label: /*#__PURE__*/React__default.createElement("div", {
9927
9996
  className: "flex items-center gap-2"
9928
9997
  }, "Xem chi ti\u1EBFt ", /*#__PURE__*/React__default.createElement(fa.FaArrowRight, null))
9929
9998
  })), /*#__PURE__*/React__default.createElement(LinkToPage, {
9930
- href: getLinkProductDetail(product)
9999
+ href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
9931
10000
  }, /*#__PURE__*/React__default.createElement(Button, {
9932
10001
  label: /*#__PURE__*/React__default.createElement("div", {
9933
10002
  className: "flex items-center gap-2"
@@ -9937,7 +10006,7 @@ var ProductItem2 = function ProductItem2(props) {
9937
10006
  type: "outline",
9938
10007
  className: "!border-white !text-white hover:!border-gray5"
9939
10008
  })), /*#__PURE__*/React__default.createElement(LinkToPage, {
9940
- href: getLinkProductDetail(product)
10009
+ href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
9941
10010
  }, /*#__PURE__*/React__default.createElement(Button, {
9942
10011
  label: /*#__PURE__*/React__default.createElement("div", {
9943
10012
  className: "flex items-center gap-2"
@@ -9948,6 +10017,7 @@ var ProductItem2 = function ProductItem2(props) {
9948
10017
  };
9949
10018
 
9950
10019
  var ProductItem3 = function ProductItem3(props) {
10020
+ var _product$productInfo;
9951
10021
  var product = props.product,
9952
10022
  _props$Link = props.Link,
9953
10023
  Link = _props$Link === void 0 ? null : _props$Link,
@@ -9955,23 +10025,24 @@ var ProductItem3 = function ProductItem3(props) {
9955
10025
  className = _props$className === void 0 ? "" : _props$className;
9956
10026
  return /*#__PURE__*/React__default.createElement(LinkToPage, {
9957
10027
  Link: Link,
9958
- href: getLinkProductDetail(product)
10028
+ href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
9959
10029
  }, /*#__PURE__*/React__default.createElement("div", {
9960
10030
  className: "w-full border border-stroke rounded-2xl " + className
9961
10031
  }, /*#__PURE__*/React__default.createElement(ProductImage, {
9962
- product: product,
10032
+ product: product === null || product === void 0 ? void 0 : product.productInfo,
9963
10033
  className: "w-full h-48 md:h-60 xl:h-[304px] rounded-t-2xl"
9964
10034
  }), /*#__PURE__*/React__default.createElement("div", {
9965
10035
  className: "p-4 flex flex-col gap-2 md:gap-4 items-start"
9966
10036
  }, /*#__PURE__*/React__default.createElement("div", {
9967
10037
  className: "line-clamp-1 w-full overflow-hidden text-ellipsis"
9968
- }, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
9969
- product: product,
9970
- className: "text-lg text-start"
10038
+ }, product === null || product === void 0 ? void 0 : (_product$productInfo = product.productInfo) === null || _product$productInfo === void 0 ? void 0 : _product$productInfo.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
10039
+ product: product === null || product === void 0 ? void 0 : product.productInfo,
10040
+ className: "text-lg text-start " + (!(product !== null && product !== void 0 && product.isShowProductPriceOnLanding) ? "invisible" : "")
9971
10041
  }))));
9972
10042
  };
9973
10043
 
9974
10044
  var ProductItem4 = function ProductItem4(props) {
10045
+ var _product$productInfo;
9975
10046
  var _props$shopConfigStyl = props.shopConfigStyle,
9976
10047
  shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
9977
10048
  product = props.product,
@@ -9981,17 +10052,17 @@ var ProductItem4 = function ProductItem4(props) {
9981
10052
  className = _props$className === void 0 ? "" : _props$className;
9982
10053
  return /*#__PURE__*/React__default.createElement(LinkToPage, {
9983
10054
  Link: Link,
9984
- href: getLinkProductDetail(product)
10055
+ href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
9985
10056
  }, /*#__PURE__*/React__default.createElement("div", {
9986
10057
  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
9987
10058
  }, /*#__PURE__*/React__default.createElement(ProductImage, {
9988
- product: product,
10059
+ product: product === null || product === void 0 ? void 0 : product.productInfo,
9989
10060
  className: "w-full h-40 sm:h-56 lg:h-60 xl:h-64 bg-cover bg-no-repeat rounded-2xl"
9990
10061
  }), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
9991
10062
  className: "text-start line-clamp-1 w-full overflow-hidden text-ellipsis text-lg"
9992
- }, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
9993
- product: product,
9994
- className: "text-lg text-start mt-2"
10063
+ }, product === null || product === void 0 ? void 0 : (_product$productInfo = product.productInfo) === null || _product$productInfo === void 0 ? void 0 : _product$productInfo.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
10064
+ product: product === null || product === void 0 ? void 0 : product.productInfo,
10065
+ className: "text-lg text-start mt-2 " + (!(product !== null && product !== void 0 && product.isShowProductPriceOnLanding) ? "invisible" : "")
9995
10066
  })), /*#__PURE__*/React__default.createElement("div", {
9996
10067
  className: "flex pt-2 md:pt-4 gap-2 md:gap-4 border-t items-center"
9997
10068
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -10006,6 +10077,7 @@ var ProductItem4 = function ProductItem4(props) {
10006
10077
  };
10007
10078
 
10008
10079
  var ProductItem5 = function ProductItem5(props) {
10080
+ var _product$productInfo;
10009
10081
  var product = props.product,
10010
10082
  _props$Link = props.Link,
10011
10083
  Link = _props$Link === void 0 ? null : _props$Link,
@@ -10015,17 +10087,17 @@ var ProductItem5 = function ProductItem5(props) {
10015
10087
  className = _props$className === void 0 ? "" : _props$className;
10016
10088
  return /*#__PURE__*/React__default.createElement(LinkToPage, {
10017
10089
  Link: Link,
10018
- href: getLinkProductDetail(product)
10090
+ href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
10019
10091
  }, /*#__PURE__*/React__default.createElement("div", {
10020
10092
  className: "w-full flex flex-col gap-4 rounded-2xl p-1 " + className
10021
10093
  }, /*#__PURE__*/React__default.createElement(ProductImage, {
10022
- product: product,
10094
+ product: product === null || product === void 0 ? void 0 : product.productInfo,
10023
10095
  className: "w-full w-full h-44 md:h-56 lg:h-64 xl:h-72 bg-cover bg-no-repeat rounded-2xl"
10024
10096
  }), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
10025
10097
  className: "text-start line-clamp-1 w-full overflow-hidden text-ellipsis mb-2"
10026
- }, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
10027
- product: product,
10028
- className: "text-lg text-start"
10098
+ }, product === null || product === void 0 ? void 0 : (_product$productInfo = product.productInfo) === null || _product$productInfo === void 0 ? void 0 : _product$productInfo.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
10099
+ product: product === null || product === void 0 ? void 0 : product.productInfo,
10100
+ className: "text-lg text-start " + (!(product !== null && product !== void 0 && product.isShowProductPriceOnLanding) ? "invisible" : "")
10029
10101
  })), /*#__PURE__*/React__default.createElement("div", {
10030
10102
  className: "flex gap-2 md:gap-4 "
10031
10103
  }, /*#__PURE__*/React__default.createElement(ai.AiOutlineShoppingCart, {
@@ -10038,6 +10110,7 @@ var ProductItem5 = function ProductItem5(props) {
10038
10110
  };
10039
10111
 
10040
10112
  var ProductItem6 = function ProductItem6(props) {
10113
+ var _product$productInfo;
10041
10114
  var product = props.product,
10042
10115
  _props$shopConfigStyl = props.shopConfigStyle,
10043
10116
  shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
@@ -10047,17 +10120,17 @@ var ProductItem6 = function ProductItem6(props) {
10047
10120
  className = _props$className === void 0 ? "" : _props$className;
10048
10121
  return /*#__PURE__*/React__default.createElement(LinkToPage, {
10049
10122
  Link: Link,
10050
- href: getLinkProductDetail(product)
10123
+ href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
10051
10124
  }, /*#__PURE__*/React__default.createElement("div", {
10052
10125
  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
10053
10126
  }, /*#__PURE__*/React__default.createElement(ProductImage, {
10054
- product: product,
10127
+ product: product === null || product === void 0 ? void 0 : product.productInfo,
10055
10128
  className: "w-full h-48 md:h-60 xl:h-72 rounded-2xl"
10056
10129
  }), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
10057
10130
  className: "text start line-clamp-1 w-full overflow-hidden text-ellipsis"
10058
- }, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
10059
- product: product,
10060
- className: "text-lg text-start"
10131
+ }, product === null || product === void 0 ? void 0 : (_product$productInfo = product.productInfo) === null || _product$productInfo === void 0 ? void 0 : _product$productInfo.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
10132
+ product: product === null || product === void 0 ? void 0 : product.productInfo,
10133
+ className: "text-lg text-start " + (!(product !== null && product !== void 0 && product.isShowProductPriceOnLanding) ? "invisible" : "")
10061
10134
  })), /*#__PURE__*/React__default.createElement("div", {
10062
10135
  className: "flex pt-4 gap-2 md:gap-4 border-t items-center"
10063
10136
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -10070,32 +10143,71 @@ var ProductItem6 = function ProductItem6(props) {
10070
10143
  };
10071
10144
 
10072
10145
  var ProductItem7 = function ProductItem7(props) {
10146
+ var _product$productInfo, _product$productInfo2, _product$productInfo3, _product$productInfo4, _product$productInfo5, _product$productInfo6;
10073
10147
  var product = props.product,
10074
10148
  _props$Link = props.Link,
10075
10149
  Link = _props$Link === void 0 ? null : _props$Link,
10076
10150
  _props$className = props.className,
10077
- className = _props$className === void 0 ? "" : _props$className;
10151
+ className = _props$className === void 0 ? "" : _props$className,
10152
+ _props$classNamePrice = props.classNamePrice,
10153
+ classNamePrice = _props$classNamePrice === void 0 ? "text-lg" : _props$classNamePrice;
10078
10154
  return /*#__PURE__*/React__default.createElement(LinkToPage, {
10079
10155
  Link: Link,
10080
- href: getLinkProductDetail(product)
10156
+ href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
10081
10157
  }, /*#__PURE__*/React__default.createElement("div", {
10082
10158
  className: "w-full bg-bgSecondary relative rounded-2xl " + className
10083
10159
  }, /*#__PURE__*/React__default.createElement(ProductImage, {
10084
- product: product,
10160
+ product: product === null || product === void 0 ? void 0 : product.productInfo,
10085
10161
  className: "w-full h-44 md:h-56 lg:h-64 xl:h-72 bg-cover bg-no-repeat rounded-t-2xl"
10086
10162
  }), /*#__PURE__*/React__default.createElement("div", {
10087
- className: "p-4 flex flex-col gap-4 items-start"
10163
+ className: "p-3 sm:p-4 flex flex-col gap-4 items-start"
10088
10164
  }, /*#__PURE__*/React__default.createElement("div", {
10089
10165
  className: "line-clamp-1 w-full overflow-hidden text-ellipsis"
10090
- }, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
10091
- product: product,
10092
- className: "text-lg text-start"
10093
- })), product !== null && product !== void 0 && product.priceBeforeDiscount && (product === null || product === void 0 ? void 0 : product.priceBeforeDiscount) !== (product === null || product === void 0 ? void 0 : product.price) ? /*#__PURE__*/React__default.createElement("div", {
10166
+ }, product === null || product === void 0 ? void 0 : (_product$productInfo = product.productInfo) === null || _product$productInfo === void 0 ? void 0 : _product$productInfo.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
10167
+ product: product === null || product === void 0 ? void 0 : product.productInfo,
10168
+ className: "text-start " + (!(product !== null && product !== void 0 && product.isShowProductPriceOnLanding) ? "invisible" : "") + " " + classNamePrice
10169
+ })), product !== null && product !== void 0 && product.isShowProductPriceOnLanding && product !== null && product !== void 0 && (_product$productInfo2 = product.productInfo) !== null && _product$productInfo2 !== void 0 && _product$productInfo2.priceBeforeDiscount && (product === null || product === void 0 ? void 0 : (_product$productInfo3 = product.productInfo) === null || _product$productInfo3 === void 0 ? void 0 : _product$productInfo3.priceBeforeDiscount) !== (product === null || product === void 0 ? void 0 : (_product$productInfo4 = product.productInfo) === null || _product$productInfo4 === void 0 ? void 0 : _product$productInfo4.price) ? /*#__PURE__*/React__default.createElement("div", {
10094
10170
  className: "absolute top-5 left-0 font-semibold px-3 py-1 bg-danger text-textButton rounded-r-2xl shadow-lg v-max"
10095
- }, 1 - 100 * (product === null || product === void 0 ? void 0 : product.price) / (product === null || product === void 0 ? void 0 : product.priceBeforeDiscount)) : null));
10171
+ }, 1 - 100 * (product === null || product === void 0 ? void 0 : (_product$productInfo5 = product.productInfo) === null || _product$productInfo5 === void 0 ? void 0 : _product$productInfo5.price) / (product === null || product === void 0 ? void 0 : (_product$productInfo6 = product.productInfo) === null || _product$productInfo6 === void 0 ? void 0 : _product$productInfo6.priceBeforeDiscount)) : null));
10172
+ };
10173
+
10174
+ var ProductItem8 = function ProductItem8(props) {
10175
+ var _product$productInfo;
10176
+ var product = props.product,
10177
+ _props$Link = props.Link,
10178
+ Link = _props$Link === void 0 ? null : _props$Link,
10179
+ _props$className = props.className,
10180
+ className = _props$className === void 0 ? "" : _props$className,
10181
+ _props$shopConfigStyl = props.shopConfigStyle,
10182
+ shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl;
10183
+ return /*#__PURE__*/React__default.createElement(LinkToPage, {
10184
+ Link: Link,
10185
+ href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
10186
+ }, /*#__PURE__*/React__default.createElement("div", {
10187
+ className: "text-center rounded relative group " + className
10188
+ }, /*#__PURE__*/React__default.createElement("div", {
10189
+ className: "relative "
10190
+ }, /*#__PURE__*/React__default.createElement(ProductImage, {
10191
+ product: product === null || product === void 0 ? void 0 : product.productInfo,
10192
+ className: "min-h-[360px] md:min-h-[400px] xl:min-h-[440px] !object-cover !rounded"
10193
+ }), /*#__PURE__*/React__default.createElement("div", {
10194
+ className: "absolute bottom-0 rounded-b pb-6 px-4 bg-gradient-to-t from-black/50 to-transparent flex flex-col items-center h-1/2 gap-2 w-full justify-end "
10195
+ }, /*#__PURE__*/React__default.createElement("div", {
10196
+ className: "text-lg text-textButton"
10197
+ }, product === null || product === void 0 ? void 0 : (_product$productInfo = product.productInfo) === null || _product$productInfo === void 0 ? void 0 : _product$productInfo.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
10198
+ product: product === null || product === void 0 ? void 0 : product.productInfo,
10199
+ className: !(product !== null && product !== void 0 && product.isShowProductPriceOnLanding) ? "invisible" : "",
10200
+ priceClassName: "text-textButton !font-normal",
10201
+ priceBeforeDiscountClassName: "text-textButton !font-normal"
10202
+ }), /*#__PURE__*/React__default.createElement(Button, {
10203
+ label: "Th\xEAm v\xE0o gi\u1ECF",
10204
+ shopConfigStyle: shopConfigStyle,
10205
+ className: "hidden group-hover:block transition-all duration-300 !font-normal"
10206
+ })))));
10096
10207
  };
10097
10208
 
10098
10209
  var TreatmentItem1 = function TreatmentItem1(props) {
10210
+ var _product$productInfo;
10099
10211
  var product = props.product,
10100
10212
  _props$Link = props.Link,
10101
10213
  Link = _props$Link === void 0 ? null : _props$Link,
@@ -10103,17 +10215,17 @@ var TreatmentItem1 = function TreatmentItem1(props) {
10103
10215
  shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl;
10104
10216
  return /*#__PURE__*/React__default.createElement(LinkToPage, {
10105
10217
  Link: Link,
10106
- href: getLinkServiceDetail(product)
10218
+ href: getLinkServiceDetail(product === null || product === void 0 ? void 0 : product.productInfo)
10107
10219
  }, /*#__PURE__*/React__default.createElement("div", {
10108
10220
  className: "w-full flex flex-col gap-4 rounded-2xl p-1"
10109
10221
  }, /*#__PURE__*/React__default.createElement(ProductImage, {
10110
- product: product,
10222
+ product: product === null || product === void 0 ? void 0 : product.productInfo,
10111
10223
  className: "w-full w-full h-[189px] md:h-[238px] xl:h-[304px] rounded-2xl"
10112
10224
  }), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
10113
10225
  className: "line-clamp-1 mb-2 font-medium text-lg"
10114
- }, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
10115
- product: product,
10116
- className: "text-lg text-start"
10226
+ }, product === null || product === void 0 ? void 0 : (_product$productInfo = product.productInfo) === null || _product$productInfo === void 0 ? void 0 : _product$productInfo.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
10227
+ product: product === null || product === void 0 ? void 0 : product.productInfo,
10228
+ className: "text-lg text-start " + (!(product !== null && product !== void 0 && product.isShowProductPriceOnLanding) ? "invisible" : "")
10117
10229
  })), /*#__PURE__*/React__default.createElement("div", {
10118
10230
  className: "flex flex-col md:flex-row gap-2 md:items-center md:gap-6 "
10119
10231
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -10161,7 +10273,7 @@ var ProductList7 = function ProductList7(props) {
10161
10273
  Link: Link,
10162
10274
  shopConfigStyle: shopConfigStyle,
10163
10275
  key: index,
10164
- product: product === null || product === void 0 ? void 0 : product.productInfo
10276
+ product: product
10165
10277
  });
10166
10278
  })) : /*#__PURE__*/React__default.createElement(NotFoundProduct, null), (products === null || products === void 0 ? void 0 : products.length) > 4 ? /*#__PURE__*/React__default.createElement(LinkToPage, {
10167
10279
  href: "/san-pham",
@@ -10288,9 +10400,10 @@ var Products2 = function Products2(props) {
10288
10400
  className: "px-2 lg:px-3",
10289
10401
  key: "dfg-" + index
10290
10402
  }, /*#__PURE__*/React__default.createElement(ProductItem, {
10291
- product: product === null || product === void 0 ? void 0 : product.productInfo,
10403
+ product: product,
10292
10404
  Link: Link,
10293
- shopConfigStyle: shopConfigStyle
10405
+ shopConfigStyle: shopConfigStyle,
10406
+ classNamePrice: "text-base md:text-lg"
10294
10407
  }));
10295
10408
  })) : /*#__PURE__*/React__default.createElement(NotFoundProduct, null)), /*#__PURE__*/React__default.createElement("div", {
10296
10409
  className: "absolute left-0 top-1/2 w-full flex justify-between px-2 md:px-4 lg:px-6"
@@ -10400,9 +10513,7 @@ var Products3 = function Products3(props) {
10400
10513
  loading = _ProductController.loading,
10401
10514
  page = _ProductController.page;
10402
10515
  var _CategoryController = CategoryController(_extends({}, props, {
10403
- params: {
10404
- type: "0"
10405
- }
10516
+ types: "0"
10406
10517
  })),
10407
10518
  categories = _CategoryController.categories;
10408
10519
  React.useEffect(function () {
@@ -10468,7 +10579,7 @@ var Products3 = function Products3(props) {
10468
10579
  Link: Link,
10469
10580
  key: index,
10470
10581
  shopConfigStyle: shopConfigStyle,
10471
- product: product === null || product === void 0 ? void 0 : product.productInfo
10582
+ product: product
10472
10583
  });
10473
10584
  })) : /*#__PURE__*/React__default.createElement(NotFoundProduct, null), (page === null || page === void 0 ? void 0 : page.total_pages) > 1 ? /*#__PURE__*/React__default.createElement(Pagination, _extends({
10474
10585
  className: "mt-12"
@@ -10491,7 +10602,9 @@ var Products9 = function Products9(props) {
10491
10602
  }),
10492
10603
  params = _useState[0],
10493
10604
  setParams = _useState[1];
10494
- var _CategoryController = CategoryController(_extends({}, props)),
10605
+ var _CategoryController = CategoryController(_extends({}, props, {
10606
+ types: "0"
10607
+ })),
10495
10608
  _CategoryController$c = _CategoryController.categories,
10496
10609
  categories = _CategoryController$c === void 0 ? [] : _CategoryController$c;
10497
10610
  var _ProductController = ProductController(_extends({}, props, {
@@ -10515,9 +10628,8 @@ var Products9 = function Products9(props) {
10515
10628
  acc[categoryName].push(product);
10516
10629
  return acc;
10517
10630
  }, {});
10518
- console.log(groupedProducts);
10519
10631
  return /*#__PURE__*/React__default.createElement("div", {
10520
- className: SECTION_CLASS + " flex flex-col gap-4 mt-0 md:gap-6 "
10632
+ className: SECTION_CLASS + " flex flex-col gap-4 md:!my-6 md:gap-6 "
10521
10633
  }, /*#__PURE__*/React__default.createElement(CarouselItem, {
10522
10634
  data: categories,
10523
10635
  onClick: handleChooseCategory
@@ -10544,7 +10656,7 @@ var Products9 = function Products9(props) {
10544
10656
  return /*#__PURE__*/React__default.createElement(ProductItem, {
10545
10657
  Link: Link,
10546
10658
  shopConfigStyle: shopConfigStyle,
10547
- product: product === null || product === void 0 ? void 0 : product.productInfo,
10659
+ product: product,
10548
10660
  key: product === null || product === void 0 ? void 0 : product.landingShopProductId
10549
10661
  });
10550
10662
  }) : null));
@@ -10565,7 +10677,9 @@ var Products10 = function Products10(props) {
10565
10677
  ProductItem = _props$ProductItem === void 0 ? null : _props$ProductItem,
10566
10678
  _props$Link = props.Link,
10567
10679
  Link = _props$Link === void 0 ? null : _props$Link;
10568
- var _CategoryController = CategoryController(props),
10680
+ var _CategoryController = CategoryController(_extends({}, props, {
10681
+ types: "0"
10682
+ })),
10569
10683
  _CategoryController$c = _CategoryController.categories,
10570
10684
  categories = _CategoryController$c === void 0 ? [] : _CategoryController$c;
10571
10685
  var _ProductController = ProductController(_extends({}, props, {
@@ -10596,7 +10710,7 @@ var Products10 = function Products10(props) {
10596
10710
  Link: Link,
10597
10711
  className: "border-0 bg-bgSecondary",
10598
10712
  shopConfigStyle: shopConfigStyle,
10599
- product: product === null || product === void 0 ? void 0 : product.productInfo,
10713
+ product: product,
10600
10714
  key: "zjk-" + idx
10601
10715
  });
10602
10716
  })) : /*#__PURE__*/React__default.createElement(NotFoundProduct, null));
@@ -10645,7 +10759,7 @@ var Products11 = function Products11(props) {
10645
10759
  filterItem = _useState5[0],
10646
10760
  setFilterItem = _useState5[1];
10647
10761
  var _CategoryController = CategoryController(_extends({}, props, {
10648
- params: params
10762
+ types: "0"
10649
10763
  })),
10650
10764
  _CategoryController$c = _CategoryController.categories,
10651
10765
  categories = _CategoryController$c === void 0 ? [] : _CategoryController$c;
@@ -10717,10 +10831,10 @@ var Products11 = function Products11(props) {
10717
10831
  }
10718
10832
  };
10719
10833
  return /*#__PURE__*/React__default.createElement("div", {
10720
- className: SECTION_CLASS + " grid grid-cols-1 !mt-0 md:grid-cols-4 gap-6"
10834
+ className: SECTION_CLASS + " grid grid-cols-1 !my-6 !md:my-6 md:grid-cols-4 gap-6"
10721
10835
  }, /*#__PURE__*/React__default.createElement("div", {
10722
10836
  className: "md:sticky top-0 self-start"
10723
- }, /*#__PURE__*/React__default.createElement("div", {
10837
+ }, (categories === null || categories === void 0 ? void 0 : categories.length) > 0 ? /*#__PURE__*/React__default.createElement("div", {
10724
10838
  className: " flex flex-col gap-2 rounded-3xl bg-bgSecondary p-4 max-h-96 overflow-y-auto"
10725
10839
  }, categories === null || categories === void 0 ? void 0 : categories.map(function (item, index) {
10726
10840
  return /*#__PURE__*/React__default.createElement("div", {
@@ -10730,10 +10844,10 @@ var Products11 = function Products11(props) {
10730
10844
  handleChooseCategory(item);
10731
10845
  }
10732
10846
  }, item === null || item === void 0 ? void 0 : item.cateName);
10733
- }))), /*#__PURE__*/React__default.createElement("div", {
10847
+ })) : null), /*#__PURE__*/React__default.createElement("div", {
10734
10848
  className: "md:col-span-3 flex flex-col gap-6"
10735
10849
  }, /*#__PURE__*/React__default.createElement("div", {
10736
- className: "flex gap-4"
10850
+ className: "flex gap-4 flex-wrap"
10737
10851
  }, listFilter === null || listFilter === void 0 ? void 0 : listFilter.map(function (item, index) {
10738
10852
  return /*#__PURE__*/React__default.createElement("div", {
10739
10853
  key: "kgkf-" + index,
@@ -10754,11 +10868,11 @@ var Products11 = function Products11(props) {
10754
10868
  }, /*#__PURE__*/React__default.createElement(ProductItem, {
10755
10869
  Link: Link,
10756
10870
  shopConfigStyle: shopConfigStyle,
10757
- product: product === null || product === void 0 ? void 0 : product.productInfo,
10871
+ product: product,
10758
10872
  key: product === null || product === void 0 ? void 0 : product.landingShopProductId
10759
10873
  }));
10760
10874
  }) : /*#__PURE__*/React__default.createElement("div", {
10761
- className: "md:col-span-2 lg:col-span-3 mt-20 m-auto"
10875
+ className: "col-span-2 lg:col-span-3 mt-20 m-auto"
10762
10876
  }, /*#__PURE__*/React__default.createElement(NotFoundProduct, null)))), /*#__PURE__*/React__default.createElement("div", {
10763
10877
  className: "w-full m-auto"
10764
10878
  }, (page === null || page === void 0 ? void 0 : page.total_pages) > 1 ? /*#__PURE__*/React__default.createElement(Pagination, {
@@ -10770,6 +10884,81 @@ var Products11 = function Products11(props) {
10770
10884
  }) : null)));
10771
10885
  };
10772
10886
 
10887
+ var ProductItem9 = function ProductItem9(props) {
10888
+ var _product$productInfo;
10889
+ var product = props.product;
10890
+ return /*#__PURE__*/React__default.createElement("div", {
10891
+ className: "flex border-b border-stroke items-center py-4"
10892
+ }, /*#__PURE__*/React__default.createElement(ProductImage, {
10893
+ product: product === null || product === void 0 ? void 0 : product.productInfo,
10894
+ className: "!w-24 rounded-lg"
10895
+ }), /*#__PURE__*/React__default.createElement("div", {
10896
+ className: "ml-4 flex-1"
10897
+ }, /*#__PURE__*/React__default.createElement("div", {
10898
+ className: "text-xl"
10899
+ }, product === null || product === void 0 ? void 0 : (_product$productInfo = product.productInfo) === null || _product$productInfo === void 0 ? void 0 : _product$productInfo.productName), product !== null && product !== void 0 && product.isShowProductPriceOnLanding ? /*#__PURE__*/React__default.createElement("div", {
10900
+ className: "mt-2"
10901
+ }, /*#__PURE__*/React__default.createElement(ProductPrice, {
10902
+ product: product === null || product === void 0 ? void 0 : product.productInfo,
10903
+ priceClassName: "!font-normal text-lg"
10904
+ })) : null));
10905
+ };
10906
+
10907
+ var Products12 = function Products12(props) {
10908
+ var _props$shopConfigStyl = props.shopConfigStyle,
10909
+ shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
10910
+ _props$data = props.data,
10911
+ data = _props$data === void 0 ? {} : _props$data,
10912
+ _props$SectionTitle = props.SectionTitle,
10913
+ SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle,
10914
+ _props$Link = props.Link,
10915
+ Link = _props$Link === void 0 ? null : _props$Link;
10916
+ var _useState = React.useState({
10917
+ types: "0"
10918
+ }),
10919
+ params = _useState[0],
10920
+ setParams = _useState[1];
10921
+ var _CategoryController = CategoryController(_extends({}, props, {
10922
+ types: "0"
10923
+ })),
10924
+ categories = _CategoryController.categories;
10925
+ var _ProductController = ProductController(_extends({}, props, {
10926
+ params: params
10927
+ })),
10928
+ _ProductController$pr = _ProductController.products,
10929
+ products = _ProductController$pr === void 0 ? [] : _ProductController$pr,
10930
+ loading = _ProductController.loading;
10931
+ var handleFilterByCategory = function handleFilterByCategory(category) {
10932
+ setParams(function (prev) {
10933
+ return _extends({}, prev, {
10934
+ categoryId: category === null || category === void 0 ? void 0 : category.categoryId
10935
+ });
10936
+ });
10937
+ };
10938
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
10939
+ className: SECTION_DEFAULT_CLASS + " flex flex-col gap-6"
10940
+ }, /*#__PURE__*/React__default.createElement(SectionTitle, {
10941
+ data: data,
10942
+ shopConfigStyle: shopConfigStyle
10943
+ }), /*#__PURE__*/React__default.createElement(CarouselItem, {
10944
+ isNavigateButton: false,
10945
+ data: categories,
10946
+ onClick: handleFilterByCategory
10947
+ }), loading ? /*#__PURE__*/React__default.createElement("div", {
10948
+ className: "flex w-full justify-center p-12"
10949
+ }, /*#__PURE__*/React__default.createElement(Loading, null)) : products !== null && products !== void 0 && products.length ? /*#__PURE__*/React__default.createElement("div", {
10950
+ className: "grid grid-cols-1 md:grid-cols-2 gap-x-12"
10951
+ }, products === null || products === void 0 ? void 0 : products.map(function (product, index) {
10952
+ return /*#__PURE__*/React__default.createElement(LinkToPage, {
10953
+ key: index,
10954
+ Link: Link,
10955
+ href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
10956
+ }, /*#__PURE__*/React__default.createElement(ProductItem9, {
10957
+ product: product
10958
+ }));
10959
+ })) : /*#__PURE__*/React__default.createElement(NotFoundProduct, null)));
10960
+ };
10961
+
10773
10962
  var ProductCategory2 = function ProductCategory2(props) {
10774
10963
  var _products$slice;
10775
10964
  var _props$Link = props.Link,
@@ -10785,7 +10974,9 @@ var ProductCategory2 = function ProductCategory2(props) {
10785
10974
  }),
10786
10975
  params = _useState[0],
10787
10976
  setParams = _useState[1];
10788
- var _CategoryController = CategoryController(_extends({}, props)),
10977
+ var _CategoryController = CategoryController(_extends({}, props, {
10978
+ types: "0"
10979
+ })),
10789
10980
  _CategoryController$c = _CategoryController.categories,
10790
10981
  categories = _CategoryController$c === void 0 ? [] : _CategoryController$c;
10791
10982
  var _ProductController = ProductController(_extends({}, props, {
@@ -10826,7 +11017,7 @@ var ProductCategory2 = function ProductCategory2(props) {
10826
11017
  return /*#__PURE__*/React__default.createElement(ProductItem, {
10827
11018
  Link: Link,
10828
11019
  shopConfigStyle: shopConfigStyle,
10829
- product: product === null || product === void 0 ? void 0 : product.productInfo,
11020
+ product: product,
10830
11021
  key: "zjk-" + idx
10831
11022
  });
10832
11023
  })) : /*#__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, {
@@ -10864,7 +11055,7 @@ var ProductSale2 = function ProductSale2(props) {
10864
11055
  }, products === null || products === void 0 ? void 0 : products.map(function (product, index) {
10865
11056
  return /*#__PURE__*/React__default.createElement(ProductItem, {
10866
11057
  key: index,
10867
- product: product === null || product === void 0 ? void 0 : product.productInfo
11058
+ product: product
10868
11059
  });
10869
11060
  })), /*#__PURE__*/React__default.createElement(Button, {
10870
11061
  label: "Xem tất cả",
@@ -10929,7 +11120,9 @@ var ProductSearch1 = function ProductSearch1(props) {
10929
11120
  });
10930
11121
  }, [keywordValue]);
10931
11122
  React.useEffect(function () {
10932
- if ((products === null || products === void 0 ? void 0 : products.length) > 0) setProductsFilter(products);
11123
+ if ((products === null || products === void 0 ? void 0 : products.length) > 0) setProductsFilter(products);else {
11124
+ setProductsFilter([]);
11125
+ }
10933
11126
  }, [products]);
10934
11127
  var handleGetMoreProducts = function handleGetMoreProducts() {
10935
11128
  setIsGetMore(false);
@@ -10979,7 +11172,7 @@ var ProductSearch1 = function ProductSearch1(props) {
10979
11172
  }, productsFilter === null || productsFilter === void 0 ? void 0 : (_productsFilter$slice = productsFilter.slice(0, (params === null || params === void 0 ? void 0 : params.size) - 4)) === null || _productsFilter$slice === void 0 ? void 0 : _productsFilter$slice.map(function (product, idx) {
10980
11173
  return /*#__PURE__*/React__default.createElement(ProductItem, {
10981
11174
  Link: Link,
10982
- product: product === null || product === void 0 ? void 0 : product.productInfo,
11175
+ product: product,
10983
11176
  key: "htrhr-" + idx
10984
11177
  });
10985
11178
  })) : /*#__PURE__*/React__default.createElement(NotFoundProduct, null), !loading && (productsFilter === null || productsFilter === void 0 ? void 0 : productsFilter.length) > (params === null || params === void 0 ? void 0 : params.size) - 4 ? /*#__PURE__*/React__default.createElement(Button, {
@@ -11023,7 +11216,7 @@ var ProductHot1 = function ProductHot1(props) {
11023
11216
  }));
11024
11217
  };
11025
11218
  return /*#__PURE__*/React__default.createElement("div", {
11026
- className: SECTION_CLASS + " flex flex-col gap-4 md:gap-8"
11219
+ className: SECTION_CLASS + " flex flex-col gap-6 md:gap-12"
11027
11220
  }, /*#__PURE__*/React__default.createElement(SectionTitle, {
11028
11221
  data: data,
11029
11222
  shopConfigStyle: shopConfigStyle
@@ -11035,7 +11228,7 @@ var ProductHot1 = function ProductHot1(props) {
11035
11228
  return /*#__PURE__*/React__default.createElement(ProductItem, {
11036
11229
  Link: Link,
11037
11230
  shopConfigStyle: shopConfigStyle,
11038
- product: product === null || product === void 0 ? void 0 : product.productInfo,
11231
+ product: product,
11039
11232
  key: "zjk-" + idx
11040
11233
  });
11041
11234
  })) : /*#__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, {
@@ -11084,7 +11277,7 @@ var ProductHot3 = function ProductHot3(props) {
11084
11277
  Link: Link,
11085
11278
  shopConfigStyle: shopConfigStyle,
11086
11279
  key: "htjtr-" + index,
11087
- product: product === null || product === void 0 ? void 0 : product.productInfo
11280
+ product: product
11088
11281
  });
11089
11282
  }))), /*#__PURE__*/React__default.createElement(Dash, {
11090
11283
  color: secondary
@@ -11126,7 +11319,7 @@ var ProductsTop1 = function ProductsTop1(props) {
11126
11319
  Link: Link,
11127
11320
  className: "border-0",
11128
11321
  shopConfigStyle: shopConfigStyle,
11129
- product: product === null || product === void 0 ? void 0 : product.productInfo,
11322
+ product: product,
11130
11323
  key: "htrhr-" + idx
11131
11324
  });
11132
11325
  })) : /*#__PURE__*/React__default.createElement(NotFoundProduct, null));
@@ -11176,7 +11369,7 @@ var ProductList5 = function ProductList5(props) {
11176
11369
  return /*#__PURE__*/React__default.createElement(ProductItem, {
11177
11370
  Link: Link,
11178
11371
  shopConfigStyle: shopConfigStyle,
11179
- product: product === null || product === void 0 ? void 0 : product.productInfo,
11372
+ product: product,
11180
11373
  key: "htrhr-" + idx
11181
11374
  });
11182
11375
  })) : /*#__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, {
@@ -11231,7 +11424,7 @@ var ProductHighlight1 = function ProductHighlight1(props) {
11231
11424
  }, products === null || products === void 0 ? void 0 : (_products$slice = products.slice(0, (params === null || params === void 0 ? void 0 : params.size) - 4)) === null || _products$slice === void 0 ? void 0 : _products$slice.map(function (product, idx) {
11232
11425
  return /*#__PURE__*/React__default.createElement(ProductItem, {
11233
11426
  Link: Link,
11234
- product: product === null || product === void 0 ? void 0 : product.productInfo,
11427
+ product: product,
11235
11428
  shopConfigStyle: shopConfigStyle,
11236
11429
  key: "zjk-" + idx
11237
11430
  });
@@ -11814,15 +12007,312 @@ var BookingForm6 = function BookingForm6(props) {
11814
12007
  })));
11815
12008
  };
11816
12009
 
11817
- var Banner1 = function Banner1(props) {
11818
- var data = props.data,
11819
- shopConfigStyle = props.shopConfigStyle,
11820
- _props$SectionTitle = props.SectionTitle,
11821
- SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
11822
- var sectionData = data === null || data === void 0 ? void 0 : data.data;
12010
+ var TextArea = React.forwardRef(function (props, ref) {
12011
+ var _props$label = props.label,
12012
+ label = _props$label === void 0 ? "" : _props$label,
12013
+ _props$placeholder = props.placeholder,
12014
+ placeholder = _props$placeholder === void 0 ? "" : _props$placeholder,
12015
+ _props$rules = props.rules,
12016
+ rules = _props$rules === void 0 ? [] : _props$rules,
12017
+ _props$textareaClassN = props.textareaClassName,
12018
+ textareaClassName = _props$textareaClassN === void 0 ? "" : _props$textareaClassN,
12019
+ _props$className = props.className,
12020
+ className = _props$className === void 0 ? "" : _props$className,
12021
+ _props$defaultValue = props.defaultValue,
12022
+ defaultValue = _props$defaultValue === void 0 ? "" : _props$defaultValue,
12023
+ _props$labelClassName = props.labelClassName,
12024
+ labelClassName = _props$labelClassName === void 0 ? "" : _props$labelClassName,
12025
+ _props$onChange = props.onChange,
12026
+ onChange = _props$onChange === void 0 ? function () {} : _props$onChange;
12027
+ var _useState = React.useState(defaultValue),
12028
+ value = _useState[0],
12029
+ _setValue = _useState[1];
12030
+ var _useState2 = React.useState(""),
12031
+ error = _useState2[0],
12032
+ _setError = _useState2[1];
12033
+ React.useImperativeHandle(ref, function () {
12034
+ return {
12035
+ validateData: function validateData() {
12036
+ return _validateData();
12037
+ },
12038
+ setValue: function setValue(text) {
12039
+ return _setValue(text);
12040
+ },
12041
+ getValue: function getValue() {
12042
+ return value;
12043
+ },
12044
+ setError: function setError(err) {
12045
+ return _setError(err);
12046
+ }
12047
+ };
12048
+ });
12049
+ var _validateData = function _validateData() {
12050
+ var count = 0;
12051
+ for (var _iterator = _createForOfIteratorHelperLoose(rules), _step; !(_step = _iterator()).done;) {
12052
+ var _e$pattern;
12053
+ var e = _step.value;
12054
+ if ((e === null || e === void 0 ? void 0 : e.type) === 'required' && value === '') {
12055
+ _setError(e === null || e === void 0 ? void 0 : e.message);
12056
+ count++;
12057
+ break;
12058
+ } else if ((e === null || e === void 0 ? void 0 : e.type) === 'pattern' && !(e !== null && e !== void 0 && (_e$pattern = e.pattern) !== null && _e$pattern !== void 0 && _e$pattern.test(value))) {
12059
+ _setError(e === null || e === void 0 ? void 0 : e.message);
12060
+ count++;
12061
+ break;
12062
+ }
12063
+ }
12064
+ if (count) {
12065
+ return false;
12066
+ } else {
12067
+ _setError('');
12068
+ return true;
12069
+ }
12070
+ };
12071
+ var handleOnChangeValue = function handleOnChangeValue(e) {
12072
+ var value = e.target.value;
12073
+ _setValue(value);
12074
+ onChange === null || onChange === void 0 ? void 0 : onChange(value);
12075
+ };
12076
+ var required = !!(rules !== null && rules !== void 0 && rules.find(function (e) {
12077
+ return (e === null || e === void 0 ? void 0 : e.type) === "required";
12078
+ }));
12079
+ var labelRequired = required ? /*#__PURE__*/React__default.createElement("span", {
12080
+ className: "text-danger"
12081
+ }, " *") : null;
11823
12082
  return /*#__PURE__*/React__default.createElement("div", {
11824
- className: "" + SECTION_DEFAULT_CLASS
11825
- }, /*#__PURE__*/React__default.createElement(SectionTitle, {
12083
+ className: "" + className
12084
+ }, label ? /*#__PURE__*/React__default.createElement("div", {
12085
+ className: "mb-1 " + labelClassName
12086
+ }, label, labelRequired) : null, /*#__PURE__*/React__default.createElement("textarea", {
12087
+ name: "",
12088
+ id: "",
12089
+ className: "focus:outline-none focus:ring-0 border rounded-xl min-h-24 " + textareaClassName,
12090
+ placeholder: placeholder,
12091
+ value: value,
12092
+ onChange: function onChange(e) {
12093
+ handleOnChangeValue(e);
12094
+ }
12095
+ }), error ? /*#__PURE__*/React__default.createElement("div", {
12096
+ className: "text-danger"
12097
+ }, error) : null);
12098
+ });
12099
+
12100
+ var BookingFoodForm = function BookingFoodForm(props) {
12101
+ var _props$shopConfig = props.shopConfig,
12102
+ shopConfig = _props$shopConfig === void 0 ? {} : _props$shopConfig,
12103
+ _props$shopConfigStyl = props.shopConfigStyle,
12104
+ shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
12105
+ _props$onCloseFormBoo = props.onCloseFormBooking,
12106
+ onCloseFormBooking = _props$onCloseFormBoo === void 0 ? function () {} : _props$onCloseFormBoo,
12107
+ _props$defaultValue = props.defaultValue,
12108
+ defaultValue = _props$defaultValue === void 0 ? [] : _props$defaultValue,
12109
+ _props$className = props.className,
12110
+ className = _props$className === void 0 ? "" : _props$className,
12111
+ _props$isModalBooking = props.isModalBooking,
12112
+ isModalBooking = _props$isModalBooking === void 0 ? false : _props$isModalBooking;
12113
+ var _useState = React.useState(defaultValue),
12114
+ listProductSelected = _useState[0],
12115
+ setListProductSelected = _useState[1];
12116
+ var inputNameRef = React.useRef(null);
12117
+ var inputDateRef = React.useRef(null);
12118
+ var inputPhoneNumberRef = React.useRef(null);
12119
+ var inputQuantityRef = React.useRef(null);
12120
+ var _useState2 = React.useState(false),
12121
+ isOpenPopup = _useState2[0],
12122
+ setIsOpenPopup = _useState2[1];
12123
+ var _useState3 = React.useState(false),
12124
+ isHiddenForm = _useState3[0],
12125
+ setIsHiddenForm = _useState3[1];
12126
+ var _BookingController = BookingController(props),
12127
+ _BookingController$cr = _BookingController.createSchedule,
12128
+ createSchedule = _BookingController$cr === void 0 ? function () {} : _BookingController$cr;
12129
+ var checkDateBooking = function checkDateBooking() {
12130
+ var _inputDateRef$current;
12131
+ var scheduleDate = inputDateRef === null || inputDateRef === void 0 ? void 0 : (_inputDateRef$current = inputDateRef.current) === null || _inputDateRef$current === void 0 ? void 0 : _inputDateRef$current.getValue();
12132
+ return scheduleDate && scheduleDate >= Date.now();
12133
+ };
12134
+ var handleSubmit = function handleSubmit() {
12135
+ try {
12136
+ var _inputNameRef$current, _inputPhoneNumberRef$, _inputDateRef$current2, _inputQuantityRef$cur;
12137
+ var validateName = inputNameRef === null || inputNameRef === void 0 ? void 0 : (_inputNameRef$current = inputNameRef.current) === null || _inputNameRef$current === void 0 ? void 0 : _inputNameRef$current.validateData();
12138
+ var validatePhoneNumber = inputPhoneNumberRef === null || inputPhoneNumberRef === void 0 ? void 0 : (_inputPhoneNumberRef$ = inputPhoneNumberRef.current) === null || _inputPhoneNumberRef$ === void 0 ? void 0 : _inputPhoneNumberRef$.validateData();
12139
+ var validateDate = inputDateRef === null || inputDateRef === void 0 ? void 0 : (_inputDateRef$current2 = inputDateRef.current) === null || _inputDateRef$current2 === void 0 ? void 0 : _inputDateRef$current2.validateData();
12140
+ var validateQuantity = inputQuantityRef === null || inputQuantityRef === void 0 ? void 0 : (_inputQuantityRef$cur = inputQuantityRef.current) === null || _inputQuantityRef$cur === void 0 ? void 0 : _inputQuantityRef$cur.validateData();
12141
+ var _temp = function () {
12142
+ if (validateName && validatePhoneNumber && validateDate && validateQuantity) {
12143
+ var _inputPhoneNumberRef$2, _inputNameRef$current2, _inputDateRef$current3;
12144
+ var customerPhone = inputPhoneNumberRef === null || inputPhoneNumberRef === void 0 ? void 0 : (_inputPhoneNumberRef$2 = inputPhoneNumberRef.current) === null || _inputPhoneNumberRef$2 === void 0 ? void 0 : _inputPhoneNumberRef$2.getValue();
12145
+ var customerName = inputNameRef === null || inputNameRef === void 0 ? void 0 : (_inputNameRef$current2 = inputNameRef.current) === null || _inputNameRef$current2 === void 0 ? void 0 : _inputNameRef$current2.getValue();
12146
+ var scheduleDate = inputDateRef === null || inputDateRef === void 0 ? void 0 : (_inputDateRef$current3 = inputDateRef.current) === null || _inputDateRef$current3 === void 0 ? void 0 : _inputDateRef$current3.getValue();
12147
+ var services = listProductSelected === null || listProductSelected === void 0 ? void 0 : listProductSelected.map(function (item) {
12148
+ var _item$technical;
12149
+ return {
12150
+ productId: item === null || item === void 0 ? void 0 : item.value,
12151
+ technicalStaffIds: [item === null || item === void 0 ? void 0 : (_item$technical = item.technical) === null || _item$technical === void 0 ? void 0 : _item$technical.sysUserId],
12152
+ quantity: item === null || item === void 0 ? void 0 : item.quantity,
12153
+ oldService: item === null || item === void 0 ? void 0 : item.oldService
12154
+ };
12155
+ });
12156
+ var shopId = shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopId;
12157
+ console.log("check payload:::", services);
12158
+ return Promise.resolve(createSchedule(customerName, customerPhone, scheduleDate, services, shopId)).then(function (response) {
12159
+ var _response$data, _response$data$status;
12160
+ if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$status = _response$data.status) === null || _response$data$status === void 0 ? void 0 : _response$data$status.code) === '200') {
12161
+ var _inputPhoneNumberRef$3, _inputNameRef$current3, _inputDateRef$current4;
12162
+ if (isModalBooking) {
12163
+ setIsHiddenForm(true);
12164
+ }
12165
+ setIsOpenPopup(true);
12166
+ inputPhoneNumberRef === null || inputPhoneNumberRef === void 0 ? void 0 : (_inputPhoneNumberRef$3 = inputPhoneNumberRef.current) === null || _inputPhoneNumberRef$3 === void 0 ? void 0 : _inputPhoneNumberRef$3.setValue("");
12167
+ inputNameRef === null || inputNameRef === void 0 ? void 0 : (_inputNameRef$current3 = inputNameRef.current) === null || _inputNameRef$current3 === void 0 ? void 0 : _inputNameRef$current3.setValue("");
12168
+ inputDateRef === null || inputDateRef === void 0 ? void 0 : (_inputDateRef$current4 = inputDateRef.current) === null || _inputDateRef$current4 === void 0 ? void 0 : _inputDateRef$current4.setValue(new Date());
12169
+ setListProductSelected([]);
12170
+ }
12171
+ });
12172
+ }
12173
+ }();
12174
+ return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
12175
+ } catch (e) {
12176
+ return Promise.reject(e);
12177
+ }
12178
+ };
12179
+ var handleClosePopup = function handleClosePopup() {
12180
+ setIsOpenPopup(false);
12181
+ setIsHiddenForm(false);
12182
+ };
12183
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, !isHiddenForm ? /*#__PURE__*/React__default.createElement("div", {
12184
+ className: "flex flex-col gap-4 rounded-2xl p-6 border bg-white " + className
12185
+ }, /*#__PURE__*/React__default.createElement("div", {
12186
+ className: "grid grid-cols-1 md:grid-cols-2 gap-4"
12187
+ }, /*#__PURE__*/React__default.createElement(Input, {
12188
+ ref: inputNameRef,
12189
+ label: "Họ và tên",
12190
+ placeholder: "Nhập họ tên",
12191
+ rules: [{
12192
+ type: "required",
12193
+ message: "Bắt buộc nhập họ tên"
12194
+ }],
12195
+ className: "w-full rounded-lg bg-white",
12196
+ inputClassName: "w-full focus:outline-none focus:ring-0"
12197
+ }), /*#__PURE__*/React__default.createElement(InputPhoneNumber, {
12198
+ ref: inputPhoneNumberRef,
12199
+ name: "customerPhone",
12200
+ label: "Số điện thoại",
12201
+ placeholder: "Nhập số điện thoại",
12202
+ rules: [{
12203
+ type: "required",
12204
+ message: "Bắt buộc nhập số điện thoại"
12205
+ }, {
12206
+ type: "pattern",
12207
+ pattern: pattern === null || pattern === void 0 ? void 0 : pattern.phoneNumberPattern,
12208
+ message: "Số điện thoại không hợp lệ!"
12209
+ }],
12210
+ className: "bg-bgSecondary"
12211
+ })), /*#__PURE__*/React__default.createElement("div", {
12212
+ className: "grid grid-cols-1 md:grid-cols-2 gap-4"
12213
+ }, /*#__PURE__*/React__default.createElement(Input, {
12214
+ ref: inputQuantityRef,
12215
+ label: "Số người",
12216
+ placeholder: "Nhập số người",
12217
+ rules: [{
12218
+ type: "required",
12219
+ message: "Bắt buộc nhập số người"
12220
+ }],
12221
+ className: "w-full rounded-lg bg-white",
12222
+ inputClassName: "w-full focus:outline-none focus:ring-0"
12223
+ }), /*#__PURE__*/React__default.createElement(DateTimePicker, {
12224
+ ref: inputDateRef,
12225
+ label: "Thời gian",
12226
+ className: "w-full rounded-lg",
12227
+ placeholder: "Chọn thời gian",
12228
+ time: true,
12229
+ rules: [{
12230
+ type: "required",
12231
+ message: "Bắt buộc chọn ngày đặt"
12232
+ }, {
12233
+ type: "validate",
12234
+ message: "Thời gian không hợp lệ",
12235
+ validate: checkDateBooking
12236
+ }]
12237
+ })), /*#__PURE__*/React__default.createElement("div", {
12238
+ className: "grid grid-cols-1 gap-6"
12239
+ }, /*#__PURE__*/React__default.createElement(TextArea, {
12240
+ label: "Ghi ch\xFA",
12241
+ placeholder: "Nh\u1EADp ghi ch\xFA (n\u1EBFu c\xF3)",
12242
+ className: " w-full ",
12243
+ textareaClassName: "px-4 py-3 w-full min-h-32"
12244
+ })), /*#__PURE__*/React__default.createElement("div", {
12245
+ className: "text-center"
12246
+ }, /*#__PURE__*/React__default.createElement(Button, {
12247
+ label: "Đặt lịch ngay",
12248
+ shopConfigStyle: shopConfigStyle,
12249
+ onClick: handleSubmit
12250
+ }))) : null, isOpenPopup && /*#__PURE__*/React__default.createElement(ModalNotification, {
12251
+ onCloseFormBooking: onCloseFormBooking,
12252
+ onClose: handleClosePopup
12253
+ }, /*#__PURE__*/React__default.createElement("div", {
12254
+ className: "bg-white rounded-lg shadow-lg p-6 lg:px-16 lg:pb-10 max-w-sm flex gap-4 flex-col items-center justify-center"
12255
+ }, /*#__PURE__*/React__default.createElement("div", {
12256
+ className: "flex items-center justify-center"
12257
+ }, /*#__PURE__*/React__default.createElement(fa.FaCheckCircle, {
12258
+ className: "h-full text-green-500",
12259
+ style: {
12260
+ fontSize: "56px"
12261
+ }
12262
+ })), /*#__PURE__*/React__default.createElement("div", {
12263
+ className: "font-medium text-2xl"
12264
+ }, "\u0110\u1EB7t l\u1ECBch th\xE0nh c\xF4ng"), /*#__PURE__*/React__default.createElement("div", {
12265
+ className: "text-center"
12266
+ }, "Ch\xFAng t\xF4i \u0111\xE3 ghi nh\u1EADn th\xF4ng tin c\u1EE7a b\u1EA1n v\xE0 s\u1EBD li\xEAn h\u1EC7 l\u1EA1i ngay"))));
12267
+ };
12268
+
12269
+ var BookingTable1 = function BookingTable1(props) {
12270
+ 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$;
12271
+ var _props$shopConfigStyl = props.shopConfigStyle,
12272
+ shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
12273
+ _props$shopConfig = props.shopConfig,
12274
+ shopConfig = _props$shopConfig === void 0 ? {} : _props$shopConfig,
12275
+ _props$data = props.data,
12276
+ data = _props$data === void 0 ? {} : _props$data,
12277
+ _props$SectionTitle = props.SectionTitle,
12278
+ SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
12279
+ console.log("booking data", data);
12280
+ return /*#__PURE__*/React__default.createElement("div", {
12281
+ className: "relative w-full px-4 xl:px-20 py-12"
12282
+ }, /*#__PURE__*/React__default.createElement(SectionTitle, {
12283
+ data: data,
12284
+ shopConfigStyle: shopConfigStyle
12285
+ }), /*#__PURE__*/React__default.createElement("div", {
12286
+ className: "mt-6 md:mt-12 grid grid-cols-1 gap-6 md:grid-cols-3 md:gap-12"
12287
+ }, /*#__PURE__*/React__default.createElement(LinkToPage, {
12288
+ href: convertURL(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) || "#"
12289
+ }, 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", {
12290
+ className: "text-primary w-full h-auto"
12291
+ }, /*#__PURE__*/React__default.createElement("div", {
12292
+ dangerouslySetInnerHTML: {
12293
+ __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)
12294
+ }
12295
+ })) : /*#__PURE__*/React__default.createElement("img", {
12296
+ 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,
12297
+ className: "w-full h-auto"
12298
+ }), /*#__PURE__*/React__default.createElement("div", {
12299
+ className: "mt-4 whitespace-pre-line"
12300
+ }, 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(BookingFoodForm, {
12301
+ shopConfigStyle: shopConfigStyle,
12302
+ shopConfig: shopConfig,
12303
+ className: "col-span-2"
12304
+ })));
12305
+ };
12306
+
12307
+ var Banner1 = function Banner1(props) {
12308
+ var data = props.data,
12309
+ shopConfigStyle = props.shopConfigStyle,
12310
+ _props$SectionTitle = props.SectionTitle,
12311
+ SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
12312
+ var sectionData = data === null || data === void 0 ? void 0 : data.data;
12313
+ return /*#__PURE__*/React__default.createElement("div", {
12314
+ className: "" + SECTION_DEFAULT_CLASS
12315
+ }, /*#__PURE__*/React__default.createElement(SectionTitle, {
11826
12316
  data: data,
11827
12317
  shopConfigStyle: shopConfigStyle
11828
12318
  }), /*#__PURE__*/React__default.createElement("div", {
@@ -11864,7 +12354,7 @@ var Banner2 = function Banner2(props) {
11864
12354
  data: data,
11865
12355
  shopConfigStyle: shopConfigStyle
11866
12356
  }), /*#__PURE__*/React__default.createElement(Slider, {
11867
- className: "center",
12357
+ className: "center mt-6 lg:mt-12",
11868
12358
  infinite: false,
11869
12359
  slidesToShow: 2,
11870
12360
  speed: 500,
@@ -12158,7 +12648,7 @@ var dataFake = [{
12158
12648
  title: "Đa dạng thanh toán",
12159
12649
  data: [{
12160
12650
  svgImage: "",
12161
- srcImage: /*#__PURE__*/React__default.createElement(fa6.FaArrowsRotate, null),
12651
+ srcImage: /*#__PURE__*/React__default.createElement(gr.GrPowerCycle, null),
12162
12652
  label: "Chuyển khoản",
12163
12653
  link: ""
12164
12654
  }, {
@@ -12195,7 +12685,7 @@ var dataFake = [{
12195
12685
  label: "Chính sách bảo hành",
12196
12686
  link: ""
12197
12687
  }, {
12198
- srcImage: /*#__PURE__*/React__default.createElement(fa6.FaArrowsRotate, null),
12688
+ srcImage: /*#__PURE__*/React__default.createElement(gr.GrPowerCycle, null),
12199
12689
  svgImage: "",
12200
12690
  label: "Chính sách đổi trả",
12201
12691
  link: ""
@@ -12324,11 +12814,10 @@ var Footer1 = function Footer1(props) {
12324
12814
  href: "/",
12325
12815
  className: "flex items-center"
12326
12816
  }, /*#__PURE__*/React__default.createElement("img", {
12327
- className: "object-cover w-16 h-16",
12328
- src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
12329
- alt: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName
12817
+ className: "object-cover w-14 max-h-14",
12818
+ src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl
12330
12819
  }), /*#__PURE__*/React__default.createElement("h3", {
12331
- className: " text-2xl md:text-3xl font-semibold ms-2",
12820
+ className: "text-2xl md:text-3xl ms-2 font-headingFont ",
12332
12821
  style: {
12333
12822
  color: primary
12334
12823
  }
@@ -12433,7 +12922,6 @@ var Footer7 = function Footer7(props) {
12433
12922
  textButton = _shopConfigStyle$colo4 === void 0 ? "#fff" : _shopConfigStyle$colo4,
12434
12923
  _shopConfigStyle$colo5 = _shopConfigStyle$colo.bgSecondary,
12435
12924
  bgSecondary = _shopConfigStyle$colo5 === void 0 ? "#fff" : _shopConfigStyle$colo5;
12436
- console.log("Footer7 shopConfig", shopConfig);
12437
12925
  var _useState = React.useState([]),
12438
12926
  shopAddressList = _useState[0],
12439
12927
  setShopAddressList = _useState[1];
@@ -12469,11 +12957,10 @@ var Footer7 = function Footer7(props) {
12469
12957
  href: "/",
12470
12958
  className: "flex items-center gap-2"
12471
12959
  }, /*#__PURE__*/React__default.createElement("img", {
12472
- className: "object-cover w-14",
12473
- src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
12474
- alt: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName
12960
+ className: "object-cover w-14 max-h-14",
12961
+ src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl
12475
12962
  }), /*#__PURE__*/React__default.createElement("h3", {
12476
- className: " text-2xl md:text-3xl ms-2",
12963
+ className: " text-2xl md:text-3xl ms-2 font-headingFont ",
12477
12964
  style: {
12478
12965
  color: primary
12479
12966
  }
@@ -12573,10 +13060,11 @@ var RatingStar = function RatingStar(props) {
12573
13060
  _props$className = props.className,
12574
13061
  className = _props$className === void 0 ? "" : _props$className;
12575
13062
  var res = [];
12576
- for (var i = 1; i < star; i++) {
13063
+ for (var i = 1; i <= star; i++) {
12577
13064
  res.push(/*#__PURE__*/React__default.createElement(fa6.FaStar, {
12578
13065
  color: "#E2B93B"
12579
13066
  }));
13067
+ if (i > 5) break;
12580
13068
  }
12581
13069
  var decimalPart = star % 1;
12582
13070
  if (decimalPart && decimalPart >= 0.5) {
@@ -12733,6 +13221,46 @@ var CustomerRating6 = function CustomerRating6(props) {
12733
13221
  }))));
12734
13222
  };
12735
13223
 
13224
+ var CustomerRating8 = function CustomerRating8(props) {
13225
+ var _data$data;
13226
+ var _props$shopConfigStyl = props.shopConfigStyle,
13227
+ shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
13228
+ _props$data = props.data,
13229
+ data = _props$data === void 0 ? {} : _props$data,
13230
+ _props$SectionTitle = props.SectionTitle,
13231
+ SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
13232
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
13233
+ className: SECTION_CLASS + " !my-0 py-12 bg-bgSecondary"
13234
+ }, /*#__PURE__*/React__default.createElement(SectionTitle, {
13235
+ data: data,
13236
+ shopConfigStyle: shopConfigStyle
13237
+ }), /*#__PURE__*/React__default.createElement("div", {
13238
+ className: " mt-6 md:mt-12 grid grid-cols-1 md:grid-cols-3 gap-6"
13239
+ }, data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.map(function (item, index) {
13240
+ return /*#__PURE__*/React__default.createElement("div", {
13241
+ className: "flex flex-col items-center gap-2 p-4 border border-stroke rounded-2xl ",
13242
+ key: "ht-" + index
13243
+ }, /*#__PURE__*/React__default.createElement("img", {
13244
+ src: item === null || item === void 0 ? void 0 : item.avatar,
13245
+ className: "w-40 h-40 rounded-full object-cover border-8 border-stroke"
13246
+ }), /*#__PURE__*/React__default.createElement("div", {
13247
+ className: "text-xl text-primary"
13248
+ }, item === null || item === void 0 ? void 0 : item.name), /*#__PURE__*/React__default.createElement("div", {
13249
+ className: "text-gray3"
13250
+ }, item === null || item === void 0 ? void 0 : item.description), /*#__PURE__*/React__default.createElement("div", {
13251
+ className: "flex gap-2 "
13252
+ }, /*#__PURE__*/React__default.createElement(ri.RiDoubleQuotesL, {
13253
+ className: "text-gray3",
13254
+ size: 36
13255
+ }), /*#__PURE__*/React__default.createElement("div", {
13256
+ className: "pt-4"
13257
+ }, item === null || item === void 0 ? void 0 : item.content), /*#__PURE__*/React__default.createElement(ri.RiDoubleQuotesL, {
13258
+ className: " mt-auto text-gray3",
13259
+ size: 36
13260
+ })));
13261
+ }))));
13262
+ };
13263
+
12736
13264
  var CustomerRating10 = function CustomerRating10(props) {
12737
13265
  var _data$data;
12738
13266
  var _props$shopConfigStyl = props.shopConfigStyle,
@@ -12907,6 +13435,45 @@ var Gallery1 = function Gallery1(props) {
12907
13435
  }));
12908
13436
  };
12909
13437
 
13438
+ var Gallery1$1 = function Gallery1(props) {
13439
+ var _data$data, _data$data$slice, _data$data2, _data$data2$slice, _data$data3, _data$data3$slice;
13440
+ var _props$shopConfigStyl = props.shopConfigStyle,
13441
+ shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
13442
+ _props$data = props.data,
13443
+ data = _props$data === void 0 ? {} : _props$data,
13444
+ _props$SectionTitle = props.SectionTitle,
13445
+ SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
13446
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
13447
+ className: "" + SECTION_DEFAULT_CLASS
13448
+ }, /*#__PURE__*/React__default.createElement(SectionTitle, {
13449
+ data: data,
13450
+ shopConfigStyle: shopConfigStyle
13451
+ }), /*#__PURE__*/React__default.createElement("div", {
13452
+ className: "grid grid-cols-3 gap-2 md:gap-6 mt-6 md:mt-12"
13453
+ }, /*#__PURE__*/React__default.createElement("div", {
13454
+ className: "flex flex-col gap-2 md:gap-4"
13455
+ }, data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : (_data$data$slice = _data$data.slice(0, 2)) === null || _data$data$slice === void 0 ? void 0 : _data$data$slice.map(function (item, index) {
13456
+ return /*#__PURE__*/React__default.createElement("img", {
13457
+ src: item === null || item === void 0 ? void 0 : item.srcImage,
13458
+ className: "w-full h-full object-cover rounded-xl md:rounded-2xl"
13459
+ });
13460
+ })), /*#__PURE__*/React__default.createElement("div", {
13461
+ className: "flex flex-col gap-2 md:gap-4"
13462
+ }, data === null || data === void 0 ? void 0 : (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : (_data$data2$slice = _data$data2.slice(2, 4)) === null || _data$data2$slice === void 0 ? void 0 : _data$data2$slice.map(function (item, index) {
13463
+ return /*#__PURE__*/React__default.createElement("img", {
13464
+ src: item === null || item === void 0 ? void 0 : item.srcImage,
13465
+ className: "w-full h-full object-cover rounded-xl md:rounded-2xl odd:h-[130%]"
13466
+ });
13467
+ })), /*#__PURE__*/React__default.createElement("div", {
13468
+ className: "flex flex-col gap-2 md:gap-4"
13469
+ }, data === null || data === void 0 ? void 0 : (_data$data3 = data.data) === null || _data$data3 === void 0 ? void 0 : (_data$data3$slice = _data$data3.slice(4, 6)) === null || _data$data3$slice === void 0 ? void 0 : _data$data3$slice.map(function (item, index) {
13470
+ return /*#__PURE__*/React__default.createElement("img", {
13471
+ src: item === null || item === void 0 ? void 0 : item.srcImage,
13472
+ className: "w-full h-full object-cover rounded-xl md:rounded-2xl even:h-[130%]"
13473
+ });
13474
+ })))));
13475
+ };
13476
+
12910
13477
  var PageTitle1 = function PageTitle1(props) {
12911
13478
  var _sectionData$;
12912
13479
  var data = props.data,
@@ -12923,7 +13490,122 @@ var PageTitle1 = function PageTitle1(props) {
12923
13490
  className: "relative w-full p-20 z-10 flex flex-col gap-6 items-center justify-center"
12924
13491
  }, /*#__PURE__*/React__default.createElement("h2", {
12925
13492
  className: "text-3xl md:text-5xl text-white leading-[1.6] md:leading-[1.6] text-center font-headingFont"
12926
- }, sectionData !== null && sectionData !== void 0 && sectionData.sectionTitle ? sectionData === null || sectionData === void 0 ? void 0 : sectionData.sectionTitle : route === null || route === void 0 ? void 0 : route.label)));
13493
+ }, data !== null && data !== void 0 && data.sectionTitle ? data === null || data === void 0 ? void 0 : data.sectionTitle : route === null || route === void 0 ? void 0 : route.label)));
13494
+ };
13495
+
13496
+ var PageTitle2 = function PageTitle2(props) {
13497
+ var _sectionData$;
13498
+ var data = props.data,
13499
+ route = props.route;
13500
+ var sectionData = data === null || data === void 0 ? void 0 : data.data;
13501
+ return /*#__PURE__*/React__default.createElement("div", {
13502
+ className: "relative w-full bg-cover bg-center bg-no-repeat ",
13503
+ style: {
13504
+ backgroundImage: "url(" + (sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$ = sectionData[0]) === null || _sectionData$ === void 0 ? void 0 : _sectionData$.srcImage) + ")"
13505
+ }
13506
+ }, /*#__PURE__*/React__default.createElement("div", {
13507
+ className: "absolute top-0 w-full h-full bg-black opacity-40 z-0"
13508
+ }), /*#__PURE__*/React__default.createElement("div", {
13509
+ className: "relative w-full p-20 z-10 flex flex-col gap-6 items-center justify-center"
13510
+ }, /*#__PURE__*/React__default.createElement("h2", {
13511
+ className: "text-3xl md:text-5xl text-white leading-[1.6] md:leading-[1.6] text-center font-headingFont"
13512
+ }, data !== null && data !== void 0 && data.sectionTitle ? data === null || data === void 0 ? void 0 : data.sectionTitle : route === null || route === void 0 ? void 0 : route.label), data !== null && data !== void 0 && data.sectionDescription ? /*#__PURE__*/React__default.createElement("div", {
13513
+ className: "text-lg md:text-2xl text-white"
13514
+ }, data === null || data === void 0 ? void 0 : data.sectionDescription) : null));
13515
+ };
13516
+
13517
+ var Breadcrumb1 = function Breadcrumb1(props) {
13518
+ var shopConfigStyle = props.shopConfigStyle,
13519
+ route = props.route,
13520
+ _props$routes = props.routes,
13521
+ routes = _props$routes === void 0 ? [] : _props$routes,
13522
+ _props$Link = props.Link,
13523
+ Link = _props$Link === void 0 ? null : _props$Link,
13524
+ _props$className = props.className,
13525
+ className = _props$className === void 0 ? "" : _props$className,
13526
+ _props$routeClassName = props.routeClassName,
13527
+ routeClassName = _props$routeClassName === void 0 ? "" : _props$routeClassName;
13528
+ var _shopConfigStyle$colo = shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : shopConfigStyle.color,
13529
+ _shopConfigStyle$colo3 = _shopConfigStyle$colo.textHeading,
13530
+ textHeading = _shopConfigStyle$colo3 === void 0 ? "#000" : _shopConfigStyle$colo3;
13531
+ var _useState = React.useState([]),
13532
+ items = _useState[0],
13533
+ setItems = _useState[1];
13534
+ React.useEffect(function () {
13535
+ getItems();
13536
+ }, [route]);
13537
+ var getItems = function getItems() {
13538
+ var _route$route, _route$route$split, _route$route$split$fi, _items, _items2;
13539
+ var items = route === null || route === void 0 ? void 0 : (_route$route = route.route) === null || _route$route === void 0 ? void 0 : (_route$route$split = _route$route.split("/")) === null || _route$route$split === void 0 ? void 0 : (_route$route$split$fi = _route$route$split.filter(function (e) {
13540
+ return e === null || e === void 0 ? void 0 : e.length;
13541
+ })) === null || _route$route$split$fi === void 0 ? void 0 : _route$route$split$fi.slice(0, 2);
13542
+ items = (_items = items) === null || _items === void 0 ? void 0 : _items.map(function (e) {
13543
+ var _e, _e$replace, _e$replace$replace, _e$replace$replace$re;
13544
+ if (e === "product") e = "products";else if (e === "service") e = "services";
13545
+ return (routes === null || routes === void 0 ? void 0 : routes.find(function (r) {
13546
+ return (r === null || r === void 0 ? void 0 : r.name) === e;
13547
+ })) || {
13548
+ label: (_e = e) === null || _e === void 0 ? void 0 : (_e$replace = _e.replace(/-{3}/g, "###")) === null || _e$replace === void 0 ? void 0 : (_e$replace$replace = _e$replace.replace(/-/g, " ")) === null || _e$replace$replace === void 0 ? void 0 : (_e$replace$replace$re = _e$replace$replace.replace(/###/g, "-")) === null || _e$replace$replace$re === void 0 ? void 0 : _e$replace$replace$re.replace(/~/g, "/")
13549
+ };
13550
+ });
13551
+ (_items2 = items) === null || _items2 === void 0 ? void 0 : _items2.unshift({
13552
+ name: "home",
13553
+ label: "Trang chủ",
13554
+ route: "/"
13555
+ });
13556
+ console.log(items);
13557
+ setItems(items);
13558
+ };
13559
+ return /*#__PURE__*/React__default.createElement("div", {
13560
+ className: SECTION_DEFAULT_CLASS + " !my-6 flex gap-2 overflow-x-auto scroll-custom " + className
13561
+ }, items === null || items === void 0 ? void 0 : items.map(function (item, index) {
13562
+ return /*#__PURE__*/React__default.createElement("div", {
13563
+ key: index,
13564
+ className: "flex gap-2 flex-shrink-0"
13565
+ }, index ? /*#__PURE__*/React__default.createElement("div", {
13566
+ className: "text-gray4"
13567
+ }, "/") : null, item !== null && item !== void 0 && item.route ? /*#__PURE__*/React__default.createElement(LinkToPage, {
13568
+ Link: Link,
13569
+ href: convertURL(item === null || item === void 0 ? void 0 : item.route) || "#",
13570
+ style: {
13571
+ color: textHeading
13572
+ },
13573
+ className: routeClassName
13574
+ }, item === null || item === void 0 ? void 0 : item.label) : /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.label));
13575
+ }));
13576
+ };
13577
+
13578
+ var PageTitle3 = function PageTitle3(props) {
13579
+ var _sectionData$, _route$route, _route$route$split, _route$route$split$fi, _route$route$split$fi2, _route$route$split$fi3, _route$route$split$fi4, _route$route$split$fi5;
13580
+ var data = props.data,
13581
+ route = props.route,
13582
+ shopConfigStyle = props.shopConfigStyle,
13583
+ _props$routes = props.routes,
13584
+ routes = _props$routes === void 0 ? [] : _props$routes,
13585
+ _props$Link = props.Link,
13586
+ Link = _props$Link === void 0 ? null : _props$Link;
13587
+ var sectionData = data === null || data === void 0 ? void 0 : data.data;
13588
+ return /*#__PURE__*/React__default.createElement("div", {
13589
+ className: "relative w-full bg-cover bg-center bg-no-repeat mb-6 md:mb-12 ",
13590
+ style: {
13591
+ backgroundImage: "url(" + (sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$ = sectionData[0]) === null || _sectionData$ === void 0 ? void 0 : _sectionData$.srcImage) + ")"
13592
+ }
13593
+ }, /*#__PURE__*/React__default.createElement("div", {
13594
+ className: "absolute top-0 w-full h-full bg-black opacity-60 z-0"
13595
+ }), /*#__PURE__*/React__default.createElement("div", {
13596
+ className: "relative w-full p-20 z-10 flex flex-col items-center justify-center"
13597
+ }, /*#__PURE__*/React__default.createElement("h2", {
13598
+ className: "text-3xl md:text-5xl text-white leading-[1.6] md:leading-[1.6] text-center font-headingFont"
13599
+ }, route === null || route === void 0 ? void 0 : (_route$route = route.route) === null || _route$route === void 0 ? void 0 : (_route$route$split = _route$route.split("/")) === null || _route$route$split === void 0 ? void 0 : (_route$route$split$fi = _route$route$split.filter(function (e) {
13600
+ return e === null || e === void 0 ? void 0 : e.length;
13601
+ })) === null || _route$route$split$fi === void 0 ? void 0 : (_route$route$split$fi2 = _route$route$split$fi.at(-1)) === null || _route$route$split$fi2 === void 0 ? void 0 : (_route$route$split$fi3 = _route$route$split$fi2.replace(/-{3}/g, "###")) === null || _route$route$split$fi3 === void 0 ? void 0 : (_route$route$split$fi4 = _route$route$split$fi3.replace(/-/g, " ")) === null || _route$route$split$fi4 === void 0 ? void 0 : (_route$route$split$fi5 = _route$route$split$fi4.replace(/###/g, "-")) === null || _route$route$split$fi5 === void 0 ? void 0 : _route$route$split$fi5.replace(/~/g, "/")), /*#__PURE__*/React__default.createElement(Breadcrumb1, {
13602
+ className: "!bg-transparent !text-gray4",
13603
+ routeClassName: "!text-textButton",
13604
+ shopConfigStyle: shopConfigStyle,
13605
+ route: route,
13606
+ routes: routes,
13607
+ Link: Link
13608
+ })));
12927
13609
  };
12928
13610
 
12929
13611
  var About1 = function About1(props) {
@@ -12933,12 +13615,12 @@ var About1 = function About1(props) {
12933
13615
  _props$SectionTitle = props.SectionTitle,
12934
13616
  SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
12935
13617
  return /*#__PURE__*/React__default.createElement("div", {
12936
- className: SECTION_CLASS + " flex flex-col gap-4"
13618
+ className: SECTION_CLASS + " flex flex-col gap-6"
12937
13619
  }, data !== null && data !== void 0 && data.sectionTitle ? /*#__PURE__*/React__default.createElement(SectionTitle, {
12938
13620
  data: data,
12939
13621
  shopConfigStyle: shopConfigStyle
12940
13622
  }) : null, /*#__PURE__*/React__default.createElement("div", {
12941
- className: "text-wrap",
13623
+ className: "text-wrap ck-content",
12942
13624
  dangerouslySetInnerHTML: {
12943
13625
  __html: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopAbout
12944
13626
  }
@@ -12953,17 +13635,18 @@ var About5 = function About5(props) {
12953
13635
  SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle,
12954
13636
  data = props.data;
12955
13637
  var sectionData = data === null || data === void 0 ? void 0 : data.data;
12956
- console.log("About5 sectionData", sectionData);
12957
13638
  return /*#__PURE__*/React__default.createElement("div", {
12958
13639
  className: SECTION_DEFAULT_CLASS + " "
12959
- }, data !== null && data !== void 0 && data.sectionTitle ? /*#__PURE__*/React__default.createElement(SectionTitle, {
13640
+ }, data !== null && data !== void 0 && data.sectionTitle ? /*#__PURE__*/React__default.createElement("div", {
13641
+ className: "mb-6"
13642
+ }, /*#__PURE__*/React__default.createElement(SectionTitle, {
12960
13643
  data: data,
12961
13644
  shopConfigStyle: shopConfigStyle
12962
- }) : null, /*#__PURE__*/React__default.createElement("div", {
13645
+ })) : null, /*#__PURE__*/React__default.createElement("div", {
12963
13646
  className: "grid grid-cols-1 lg:grid-cols-2 gap-12 mt-4 md:mt-6"
12964
13647
  }, /*#__PURE__*/React__default.createElement("img", {
12965
13648
  src: sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$ = sectionData[0]) === null || _sectionData$ === void 0 ? void 0 : _sectionData$.srcImage,
12966
- className: "w-full hidden lg:block rounded-xl"
13649
+ className: "w-full object-cover hidden lg:block rounded-xl"
12967
13650
  }), /*#__PURE__*/React__default.createElement("div", {
12968
13651
  className: "ck-content text-wrap",
12969
13652
  dangerouslySetInnerHTML: {
@@ -12971,31 +13654,34 @@ var About5 = function About5(props) {
12971
13654
  }
12972
13655
  }), /*#__PURE__*/React__default.createElement("img", {
12973
13656
  src: sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$2 = sectionData[0]) === null || _sectionData$2 === void 0 ? void 0 : _sectionData$2.srcImage,
12974
- className: "w-full block lg:hidden rounded-xl"
13657
+ className: "w-full block object-cover lg:hidden rounded-xl"
12975
13658
  })));
12976
13659
  };
12977
13660
 
12978
13661
  var About6 = function About6(props) {
12979
13662
  var _sectionData$, _sectionData$2;
12980
- var shopConfig = props.shopConfig,
12981
- data = props.data;
13663
+ var shopConfigStyle = props.shopConfigStyle,
13664
+ shopConfig = props.shopConfig,
13665
+ data = props.data,
13666
+ _props$SectionTitle = props.SectionTitle,
13667
+ SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
12982
13668
  var sectionData = data === null || data === void 0 ? void 0 : data.data;
12983
- console.log("About5 sectionData", sectionData);
12984
13669
  return /*#__PURE__*/React__default.createElement("div", {
12985
13670
  className: SECTION_DEFAULT_CLASS + " mt-0"
12986
- }, /*#__PURE__*/React__default.createElement("h2", {
12987
- className: "text-2xl md:text-4xl text-textHeading font-semibold mb-6 lg:mb-8"
12988
- }, data === null || data === void 0 ? void 0 : data.sectionTitle) , /*#__PURE__*/React__default.createElement("div", {
12989
- className: "grid grid-cols-1 lg:grid-cols-5 gap-6 lg:gap-10"
13671
+ }, /*#__PURE__*/React__default.createElement(SectionTitle, {
13672
+ data: data,
13673
+ shopConfigStyle: shopConfigStyle
13674
+ }), /*#__PURE__*/React__default.createElement("div", {
13675
+ className: "grid grid-cols-1 lg:grid-cols-5 gap-6 lg:gap-10 " + (data !== null && data !== void 0 && data.sectionTitle ? "mt-6" : "mt-0")
12990
13676
  }, /*#__PURE__*/React__default.createElement("img", {
12991
13677
  src: sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$ = sectionData[0]) === null || _sectionData$ === void 0 ? void 0 : _sectionData$.srcImage,
12992
13678
  className: "w-full h-auto object-cover lg:hidden block rounded-xl"
12993
- }), /*#__PURE__*/React__default.createElement("div", {
13679
+ }), shopConfig !== null && shopConfig !== void 0 && shopConfig.shopAbout ? /*#__PURE__*/React__default.createElement("div", {
12994
13680
  className: "ck-content text-wrap lg:col-span-3 bg-bgSecondary p-4 lg:p-6 rounded-2xl",
12995
13681
  dangerouslySetInnerHTML: {
12996
13682
  __html: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopAbout
12997
13683
  }
12998
- }), /*#__PURE__*/React__default.createElement("img", {
13684
+ }) : null, /*#__PURE__*/React__default.createElement("img", {
12999
13685
  src: sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$2 = sectionData[0]) === null || _sectionData$2 === void 0 ? void 0 : _sectionData$2.srcImage,
13000
13686
  className: "w-full h-auto object-cover lg:col-span-2 lg:block hidden rounded-xl"
13001
13687
  })));
@@ -13050,62 +13736,6 @@ var Contact1 = function Contact1(props) {
13050
13736
  }) : null));
13051
13737
  };
13052
13738
 
13053
- var Breadcrumb1 = function Breadcrumb1(props) {
13054
- var shopConfigStyle = props.shopConfigStyle,
13055
- route = props.route,
13056
- _props$routes = props.routes,
13057
- routes = _props$routes === void 0 ? [] : _props$routes,
13058
- _props$Link = props.Link,
13059
- Link = _props$Link === void 0 ? null : _props$Link;
13060
- var _shopConfigStyle$colo = shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : shopConfigStyle.color,
13061
- _shopConfigStyle$colo3 = _shopConfigStyle$colo.textHeading,
13062
- textHeading = _shopConfigStyle$colo3 === void 0 ? "#000" : _shopConfigStyle$colo3;
13063
- var _useState = React.useState([]),
13064
- items = _useState[0],
13065
- setItems = _useState[1];
13066
- React.useEffect(function () {
13067
- getItems();
13068
- }, [route]);
13069
- var getItems = function getItems() {
13070
- var _route$route, _route$route$split, _route$route$split$fi, _items, _items2;
13071
- var items = route === null || route === void 0 ? void 0 : (_route$route = route.route) === null || _route$route === void 0 ? void 0 : (_route$route$split = _route$route.split("/")) === null || _route$route$split === void 0 ? void 0 : (_route$route$split$fi = _route$route$split.filter(function (e) {
13072
- return e === null || e === void 0 ? void 0 : e.length;
13073
- })) === null || _route$route$split$fi === void 0 ? void 0 : _route$route$split$fi.slice(0, 2);
13074
- items = (_items = items) === null || _items === void 0 ? void 0 : _items.map(function (e) {
13075
- var _e, _e$replace, _e$replace$replace, _e$replace$replace$re;
13076
- if (e === "product") e = "products";else if (e === "service") e = "services";
13077
- return (routes === null || routes === void 0 ? void 0 : routes.find(function (r) {
13078
- return (r === null || r === void 0 ? void 0 : r.name) === e;
13079
- })) || {
13080
- label: (_e = e) === null || _e === void 0 ? void 0 : (_e$replace = _e.replace(/-{3}/g, "###")) === null || _e$replace === void 0 ? void 0 : (_e$replace$replace = _e$replace.replace(/-/g, " ")) === null || _e$replace$replace === void 0 ? void 0 : (_e$replace$replace$re = _e$replace$replace.replace(/###/g, "-")) === null || _e$replace$replace$re === void 0 ? void 0 : _e$replace$replace$re.replace(/~/g, "/")
13081
- };
13082
- });
13083
- (_items2 = items) === null || _items2 === void 0 ? void 0 : _items2.unshift({
13084
- name: "home",
13085
- label: "Trang chủ",
13086
- route: "/"
13087
- });
13088
- console.log(items);
13089
- setItems(items);
13090
- };
13091
- return /*#__PURE__*/React__default.createElement("div", {
13092
- className: SECTION_DEFAULT_CLASS + " !my-6 flex gap-2 overflow-x-auto scroll-custom"
13093
- }, items === null || items === void 0 ? void 0 : items.map(function (item, index) {
13094
- return /*#__PURE__*/React__default.createElement("div", {
13095
- key: index,
13096
- className: "flex gap-2 flex-shrink-0"
13097
- }, index ? /*#__PURE__*/React__default.createElement("div", {
13098
- className: "text-gray4"
13099
- }, "/") : null, item !== null && item !== void 0 && item.route ? /*#__PURE__*/React__default.createElement(LinkToPage, {
13100
- Link: Link,
13101
- href: convertURL(item === null || item === void 0 ? void 0 : item.route) || "#",
13102
- style: {
13103
- color: textHeading
13104
- }
13105
- }, item === null || item === void 0 ? void 0 : item.label) : /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.label));
13106
- }));
13107
- };
13108
-
13109
13739
  var getRegionApi = function getRegionApi(parentId) {
13110
13740
  return api({
13111
13741
  method: "get",
@@ -13223,96 +13853,6 @@ var RegionController = function RegionController(props) {
13223
13853
  };
13224
13854
  };
13225
13855
 
13226
- var TextArea = React.forwardRef(function (props, ref) {
13227
- var _props$label = props.label,
13228
- label = _props$label === void 0 ? "" : _props$label,
13229
- _props$placeholder = props.placeholder,
13230
- placeholder = _props$placeholder === void 0 ? "" : _props$placeholder,
13231
- _props$rules = props.rules,
13232
- rules = _props$rules === void 0 ? [] : _props$rules,
13233
- _props$textareaClassN = props.textareaClassName,
13234
- textareaClassName = _props$textareaClassN === void 0 ? "" : _props$textareaClassN,
13235
- _props$className = props.className,
13236
- className = _props$className === void 0 ? "" : _props$className,
13237
- _props$defaultValue = props.defaultValue,
13238
- defaultValue = _props$defaultValue === void 0 ? "" : _props$defaultValue,
13239
- _props$labelClassName = props.labelClassName,
13240
- labelClassName = _props$labelClassName === void 0 ? "" : _props$labelClassName,
13241
- _props$onChange = props.onChange,
13242
- onChange = _props$onChange === void 0 ? function () {} : _props$onChange;
13243
- var _useState = React.useState(defaultValue),
13244
- value = _useState[0],
13245
- _setValue = _useState[1];
13246
- var _useState2 = React.useState(""),
13247
- error = _useState2[0],
13248
- _setError = _useState2[1];
13249
- React.useImperativeHandle(ref, function () {
13250
- return {
13251
- validateData: function validateData() {
13252
- return _validateData();
13253
- },
13254
- setValue: function setValue(text) {
13255
- return _setValue(text);
13256
- },
13257
- getValue: function getValue() {
13258
- return value;
13259
- },
13260
- setError: function setError(err) {
13261
- return _setError(err);
13262
- }
13263
- };
13264
- });
13265
- var _validateData = function _validateData() {
13266
- var count = 0;
13267
- for (var _iterator = _createForOfIteratorHelperLoose(rules), _step; !(_step = _iterator()).done;) {
13268
- var _e$pattern;
13269
- var e = _step.value;
13270
- if ((e === null || e === void 0 ? void 0 : e.type) === 'required' && value === '') {
13271
- _setError(e === null || e === void 0 ? void 0 : e.message);
13272
- count++;
13273
- break;
13274
- } else if ((e === null || e === void 0 ? void 0 : e.type) === 'pattern' && !(e !== null && e !== void 0 && (_e$pattern = e.pattern) !== null && _e$pattern !== void 0 && _e$pattern.test(value))) {
13275
- _setError(e === null || e === void 0 ? void 0 : e.message);
13276
- count++;
13277
- break;
13278
- }
13279
- }
13280
- if (count) {
13281
- return false;
13282
- } else {
13283
- _setError('');
13284
- return true;
13285
- }
13286
- };
13287
- var handleOnChangeValue = function handleOnChangeValue(e) {
13288
- var value = e.target.value;
13289
- _setValue(value);
13290
- onChange === null || onChange === void 0 ? void 0 : onChange(value);
13291
- };
13292
- var required = !!(rules !== null && rules !== void 0 && rules.find(function (e) {
13293
- return (e === null || e === void 0 ? void 0 : e.type) === "required";
13294
- }));
13295
- var labelRequired = required ? /*#__PURE__*/React__default.createElement("span", {
13296
- className: "text-danger"
13297
- }, " *") : null;
13298
- return /*#__PURE__*/React__default.createElement("div", {
13299
- className: "" + className
13300
- }, label ? /*#__PURE__*/React__default.createElement("div", {
13301
- className: "mb-1 " + labelClassName
13302
- }, label, labelRequired) : null, /*#__PURE__*/React__default.createElement("textarea", {
13303
- name: "",
13304
- id: "",
13305
- className: "focus:outline-none focus:ring-0 " + textareaClassName,
13306
- placeholder: placeholder,
13307
- value: value,
13308
- onChange: function onChange(e) {
13309
- handleOnChangeValue(e);
13310
- }
13311
- }), error ? /*#__PURE__*/React__default.createElement("div", {
13312
- className: "text-danger"
13313
- }, error) : null);
13314
- });
13315
-
13316
13856
  var FormCheckout = React.forwardRef(function (props, ref) {
13317
13857
  var _props$label = props.label,
13318
13858
  label = _props$label === void 0 ? "" : _props$label,
@@ -13961,7 +14501,7 @@ var SearchProduct1 = function SearchProduct1(props) {
13961
14501
  } else {
13962
14502
  var delayDebounceFn = setTimeout(function () {
13963
14503
  handleSearch(valueSearch);
13964
- }, 500);
14504
+ }, 600);
13965
14505
  return function () {
13966
14506
  return clearTimeout(delayDebounceFn);
13967
14507
  };
@@ -14020,9 +14560,9 @@ var SearchProduct1 = function SearchProduct1(props) {
14020
14560
  className: "flex flex-col px-1 gap-2 border-b w-full"
14021
14561
  }, /*#__PURE__*/React__default.createElement("div", {
14022
14562
  className: "mt-1 text-lg font-medium\t"
14023
- }, item === null || item === void 0 ? void 0 : (_item$productInfo = item.productInfo) === null || _item$productInfo === void 0 ? void 0 : _item$productInfo.productName), /*#__PURE__*/React__default.createElement("div", {
14024
- className: " text-lg font-medium\t"
14025
- }, formatCurrency(item === null || item === void 0 ? void 0 : (_item$productInfo2 = item.productInfo) === null || _item$productInfo2 === void 0 ? void 0 : _item$productInfo2.price))));
14563
+ }, item === null || item === void 0 ? void 0 : (_item$productInfo = item.productInfo) === null || _item$productInfo === void 0 ? void 0 : _item$productInfo.productName), item !== null && item !== void 0 && item.isShowProductPriceOnLanding ? /*#__PURE__*/React__default.createElement("div", {
14564
+ className: " text-lg font-medium"
14565
+ }, formatCurrency(item === null || item === void 0 ? void 0 : (_item$productInfo2 = item.productInfo) === null || _item$productInfo2 === void 0 ? void 0 : _item$productInfo2.price)) : null));
14026
14566
  })) : /*#__PURE__*/React__default.createElement("div", {
14027
14567
  className: "text-center"
14028
14568
  }, data === null || data === void 0 ? void 0 : data.sectionDescription));
@@ -14051,7 +14591,7 @@ var SearchBar2 = function SearchBar2(props) {
14051
14591
  } else {
14052
14592
  var delayDebounceFn = setTimeout(function () {
14053
14593
  handleSearch(valueSearch);
14054
- }, 500);
14594
+ }, 600);
14055
14595
  return function () {
14056
14596
  return clearTimeout(delayDebounceFn);
14057
14597
  };
@@ -14113,9 +14653,9 @@ var SearchBar2 = function SearchBar2(props) {
14113
14653
  className: "flex flex-col px-1 gap-2 border-b w-full"
14114
14654
  }, /*#__PURE__*/React__default.createElement("div", {
14115
14655
  className: "mt-1 text-lg font-medium\t"
14116
- }, item === null || item === void 0 ? void 0 : (_item$productInfo = item.productInfo) === null || _item$productInfo === void 0 ? void 0 : _item$productInfo.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
14656
+ }, item === null || item === void 0 ? void 0 : (_item$productInfo = item.productInfo) === null || _item$productInfo === void 0 ? void 0 : _item$productInfo.productName), item !== null && item !== void 0 && item.isShowProductPriceOnLanding ? /*#__PURE__*/React__default.createElement(ProductPrice, {
14117
14657
  product: item === null || item === void 0 ? void 0 : item.productInfo
14118
- })));
14658
+ }) : null));
14119
14659
  })) : null)));
14120
14660
  };
14121
14661
 
@@ -14146,7 +14686,7 @@ var SearchBar5 = function SearchBar5(props) {
14146
14686
  }, /*#__PURE__*/React__default.createElement("div", {
14147
14687
  className: "absolute inset-0 bg-black/45 rounded-xl md:rounded-3xl"
14148
14688
  }), /*#__PURE__*/React__default.createElement("div", {
14149
- className: "flex flex-col relative gap-2 md:gap-4 items-center justify-center"
14689
+ className: "flex flex-col relative gap-2 md:gap-4 items-center justify-center w-full sm:min-w-2/3 lg:min-w-1/2"
14150
14690
  }, data !== null && data !== void 0 && (_data$data2 = data.data) !== null && _data$data2 !== void 0 && _data$data2.title ? /*#__PURE__*/React__default.createElement("div", {
14151
14691
  className: "text-lg font-semibold md:text-3xl lg:text-4xl text-textButton text-center"
14152
14692
  }, 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", {
@@ -14156,7 +14696,7 @@ var SearchBar5 = function SearchBar5(props) {
14156
14696
  icons: /*#__PURE__*/React__default.createElement(io5.IoSearchOutline, {
14157
14697
  className: "text-gray3 ps-1 text-xl md:text-2xl"
14158
14698
  }),
14159
- wrapClassName: "w-full md:w-[80%] ",
14699
+ wrapClassName: "w-[90%] sm:w-1/2 lg:w-[40%] ",
14160
14700
  className: "w-full bg-bgSecondary mb-2 md:h-12",
14161
14701
  onKeyDown: function onKeyDown(e) {
14162
14702
  handleSearch(e);
@@ -14386,6 +14926,37 @@ var ShopHighlights7 = function ShopHighlights7(props) {
14386
14926
  }));
14387
14927
  };
14388
14928
 
14929
+ var ShopHighlights8 = function ShopHighlights8(props) {
14930
+ var data = props.data,
14931
+ _props$Link = props.Link,
14932
+ Link = _props$Link === void 0 ? null : _props$Link,
14933
+ _props$SectionTitle = props.SectionTitle,
14934
+ SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
14935
+ var sectionData = data === null || data === void 0 ? void 0 : data.data;
14936
+ return /*#__PURE__*/React__default.createElement("div", {
14937
+ className: SECTION_CLASS + " flex flex-col gap-6 md:gap-10"
14938
+ }, /*#__PURE__*/React__default.createElement(SectionTitle, {
14939
+ data: data
14940
+ }), /*#__PURE__*/React__default.createElement("div", {
14941
+ className: "grid grid-cols-2 lg:grid-cols-4 gap-4 md:gap-10"
14942
+ }, sectionData === null || sectionData === void 0 ? void 0 : sectionData.map(function (item, index) {
14943
+ return /*#__PURE__*/React__default.createElement(LinkToPage, {
14944
+ Link: Link,
14945
+ href: convertURL(item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link) || "#",
14946
+ key: "kdf-" + index
14947
+ }, /*#__PURE__*/React__default.createElement("div", {
14948
+ className: "flex flex-col h-full gap-3"
14949
+ }, /*#__PURE__*/React__default.createElement("img", {
14950
+ src: item === null || item === void 0 ? void 0 : item.srcImage,
14951
+ className: "object-cover"
14952
+ }), /*#__PURE__*/React__default.createElement("div", {
14953
+ className: "text-2xl text-textBody"
14954
+ }, item === null || item === void 0 ? void 0 : item.title), /*#__PURE__*/React__default.createElement("div", {
14955
+ className: "flex-grow text-textBody leading-relaxed"
14956
+ }, item === null || item === void 0 ? void 0 : item.description)));
14957
+ })));
14958
+ };
14959
+
14389
14960
  var VideoFull1 = function VideoFull1(props) {
14390
14961
  var _data$data, _data$data$;
14391
14962
  var shopConfigStyle = props.shopConfigStyle,
@@ -14500,7 +15071,7 @@ var DefaultImage$1 = function DefaultImage(props) {
14500
15071
  var _props$className = props.className,
14501
15072
  className = _props$className === void 0 ? "" : _props$className;
14502
15073
  return /*#__PURE__*/React__default.createElement("div", {
14503
- className: "flex justify-center items-center max-w-full h-full aspect-video rounded-lg " + className,
15074
+ className: "flex justify-center items-center w-full h-full aspect-video object-cover rounded-lg " + className,
14504
15075
  style: {
14505
15076
  backgroundColor: "#FAFAFA"
14506
15077
  }
@@ -14528,7 +15099,7 @@ var NewsImage = function NewsImage(props) {
14528
15099
  };
14529
15100
  return src ? /*#__PURE__*/React__default.createElement("img", {
14530
15101
  src: src,
14531
- className: "h-full rounded-lg max-w-full aspect-video " + className,
15102
+ className: "h-full rounded-lg w-full aspect-video object-cover " + className,
14532
15103
  style: size ? {
14533
15104
  width: size,
14534
15105
  height: size
@@ -14539,8 +15110,56 @@ var NewsImage = function NewsImage(props) {
14539
15110
  });
14540
15111
  };
14541
15112
 
15113
+ var NewsItem2 = function NewsItem2(_ref) {
15114
+ var newsArticle = _ref.newsArticle;
15115
+ return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(NewsImage, {
15116
+ news: newsArticle
15117
+ }), /*#__PURE__*/React__default.createElement("div", {
15118
+ className: "pt-3 font-medium text-lg line-clamp-3",
15119
+ style: {
15120
+ lineHeight: 1.6
15121
+ }
15122
+ }, newsArticle === null || newsArticle === void 0 ? void 0 : newsArticle.title));
15123
+ };
15124
+
15125
+ var relativeTime = createCommonjsModule(function (module, exports) {
15126
+ !function(r,e){module.exports=e();}(commonjsGlobal,(function(){return function(r,e,t){r=r||{};var n=e.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(r,e,t,o){return n.fromToBase(r,e,t,o)}t.en.relativeTime=o,n.fromToBase=function(e,n,i,d,u){for(var f,a,s,l=i.$locale().relativeTime||o,h=r.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],m=h.length,c=0;c<m;c+=1){var y=h[c];y.d&&(f=d?t(e).diff(i,y.d,!0):i.diff(e,y.d,!0));var p=(r.rounding||Math.round)(Math.abs(f));if(s=f>0,p<=y.r||!y.r){p<=1&&c>0&&(y=h[c-1]);var v=l[y.l];u&&(p=u(""+p)),a="string"==typeof v?v.replace("%d",p):v(p,n,y.l,s);break}}if(n)return a;var M=s?l.future:l.past;return "function"==typeof M?M(a):M.replace("%s",a)},n.to=function(r,e){return i(r,e,this,!0)},n.from=function(r,e){return i(r,e,this)};var d=function(r){return r.$u?t.utc():t()};n.toNow=function(r){return this.to(d(this),r)},n.fromNow=function(r){return this.from(d(this),r)};}}));
15127
+ });
15128
+
15129
+ var vi = createCommonjsModule(function (module, exports) {
15130
+ !function(t,n){module.exports=n(dayjs_min);}(commonjsGlobal,(function(t){function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var h=n(t),_={name:"vi",weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),weekStart:1,weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),ordinal:function(t){return t},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"}};return h.default.locale(_,null,!0),_}));
15131
+ });
15132
+
15133
+ dayjs_min.extend(relativeTime);
15134
+ dayjs_min.locale("vi");
15135
+ var NewsItem1 = function NewsItem1(_ref) {
15136
+ var _dayjs;
15137
+ var newsArticle = _ref.newsArticle,
15138
+ _ref$isHidden = _ref.isHidden,
15139
+ isHidden = _ref$isHidden === void 0 ? false : _ref$isHidden;
15140
+ return /*#__PURE__*/React__default.createElement("div", {
15141
+ className: "grid grid-cols-1 md:grid-cols-2 gap-4 "
15142
+ }, /*#__PURE__*/React__default.createElement(NewsImage, {
15143
+ news: newsArticle
15144
+ }), /*#__PURE__*/React__default.createElement("div", {
15145
+ className: "flex flex-col gap-4 md:gap-3 pb-4"
15146
+ }, /*#__PURE__*/React__default.createElement("div", {
15147
+ className: "font-medium text-lg line-clamp-3 md:line-clamp-2 lg:line-clamp-3",
15148
+ style: {
15149
+ lineHeight: 1.6
15150
+ }
15151
+ }, newsArticle === null || newsArticle === void 0 ? void 0 : newsArticle.title), !isHidden ? /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
15152
+ className: "line-clamp-4 md:line-clamp-3 lg:line-clamp-4 font-normal min-h-6 md:min-h-20 text-gray3",
15153
+ style: {
15154
+ lineHeight: 1.6
15155
+ }
15156
+ }, newsArticle === null || newsArticle === void 0 ? void 0 : newsArticle.shortDescription), /*#__PURE__*/React__default.createElement("div", {
15157
+ className: "text-gray3 mt-4"
15158
+ }, (_dayjs = dayjs_min(newsArticle === null || newsArticle === void 0 ? void 0 : newsArticle.timeUpdate)) === null || _dayjs === void 0 ? void 0 : _dayjs.fromNow())) : null));
15159
+ };
15160
+
14542
15161
  var NewsHighlight1 = function NewsHighlight1(props) {
14543
- var _newsArticles$, _newsArticles$2, _newsArticles$3, _newsArticles$slice;
15162
+ var _newsArticles$slice;
14544
15163
  var _props$SectionTitle = props.SectionTitle,
14545
15164
  SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle,
14546
15165
  _props$shopConfigStyl = props.shopConfigStyle,
@@ -14565,34 +15184,34 @@ var NewsHighlight1 = function NewsHighlight1(props) {
14565
15184
  }, /*#__PURE__*/React__default.createElement(SectionTitle, {
14566
15185
  data: data,
14567
15186
  shopConfigStyle: shopConfigStyle
14568
- }), /*#__PURE__*/React__default.createElement("div", {
15187
+ }), (newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles.length) > 0 ? /*#__PURE__*/React__default.createElement("div", {
14569
15188
  className: "mt-12 mb-6 grid grid-cols-1 md:grid-cols-2 gap-6 "
14570
15189
  }, /*#__PURE__*/React__default.createElement(LinkToPage, {
14571
15190
  href: getLinkNewsDetail(newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[0]),
14572
15191
  Link: Link
14573
- }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(NewsImage, {
14574
- news: newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[0]
14575
- }), /*#__PURE__*/React__default.createElement("div", {
14576
- className: "pt-3 font-medium text-lg"
14577
- }, newsArticles === null || newsArticles === void 0 ? void 0 : (_newsArticles$ = newsArticles[0]) === null || _newsArticles$ === void 0 ? void 0 : _newsArticles$.title))), /*#__PURE__*/React__default.createElement("div", {
15192
+ }, /*#__PURE__*/React__default.createElement(NewsItem2, {
15193
+ newsArticle: newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[0]
15194
+ })), /*#__PURE__*/React__default.createElement("div", {
14578
15195
  className: "flex flex-col gap-6"
14579
- }, /*#__PURE__*/React__default.createElement(LinkToPage, {
14580
- className: "grid grid-cols-1 md:grid-cols-2 gap-4 ",
15196
+ }, newsArticles !== null && newsArticles !== void 0 && newsArticles[1] ? /*#__PURE__*/React__default.createElement(LinkToPage, {
14581
15197
  href: getLinkNewsDetail(newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[1]),
14582
15198
  Link: Link
14583
- }, /*#__PURE__*/React__default.createElement(NewsImage, {
14584
- news: newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[1]
14585
- }), /*#__PURE__*/React__default.createElement("div", {
14586
- className: "font-medium text-lg"
14587
- }, newsArticles === null || newsArticles === void 0 ? void 0 : (_newsArticles$2 = newsArticles[1]) === null || _newsArticles$2 === void 0 ? void 0 : _newsArticles$2.title)), /*#__PURE__*/React__default.createElement(LinkToPage, {
14588
- className: "grid grid-cols-1 md:grid-cols-2 gap-4",
15199
+ }, newsArticles !== null && newsArticles !== void 0 && newsArticles[2] ? /*#__PURE__*/React__default.createElement(NewsItem1, {
15200
+ newsArticle: newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[1],
15201
+ isHidden: true
15202
+ }) : /*#__PURE__*/React__default.createElement(NewsItem2, {
15203
+ newsArticle: newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[1]
15204
+ })) : null, newsArticles !== null && newsArticles !== void 0 && newsArticles[2] ? /*#__PURE__*/React__default.createElement(LinkToPage, {
14589
15205
  href: getLinkNewsDetail(newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[2]),
14590
15206
  Link: Link
14591
- }, /*#__PURE__*/React__default.createElement(NewsImage, {
14592
- news: newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[2]
14593
- }), /*#__PURE__*/React__default.createElement("div", {
14594
- className: "font-medium text-lg"
14595
- }, newsArticles === null || newsArticles === void 0 ? void 0 : (_newsArticles$3 = newsArticles[2]) === null || _newsArticles$3 === void 0 ? void 0 : _newsArticles$3.title)))), /*#__PURE__*/React__default.createElement("div", {
15207
+ }, /*#__PURE__*/React__default.createElement(NewsItem1, {
15208
+ newsArticle: newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[2],
15209
+ isHidden: true
15210
+ })) : null)) : /*#__PURE__*/React__default.createElement("div", {
15211
+ className: "w-full h-64 flex flex-col justify-center items-center text-gray3"
15212
+ }, /*#__PURE__*/React__default.createElement(gi.GiNewspaper, {
15213
+ size: 80
15214
+ }), " Kh\xF4ng c\xF3 tin t\u1EE9c n\xE0o"), /*#__PURE__*/React__default.createElement("div", {
14596
15215
  className: "grid grid-cols-1 md:grid-cols-3 gap-6 mt-6 "
14597
15216
  }, newsArticles === null || newsArticles === void 0 ? void 0 : (_newsArticles$slice = newsArticles.slice(3, 6)) === null || _newsArticles$slice === void 0 ? void 0 : _newsArticles$slice.map(function (item, index) {
14598
15217
  return /*#__PURE__*/React__default.createElement(LinkToPage, {
@@ -14601,22 +15220,12 @@ var NewsHighlight1 = function NewsHighlight1(props) {
14601
15220
  key: "kdjf-" + index
14602
15221
  }, /*#__PURE__*/React__default.createElement("div", {
14603
15222
  className: "jgdfg-" + index
14604
- }, /*#__PURE__*/React__default.createElement(NewsImage, {
14605
- news: item
14606
- }), /*#__PURE__*/React__default.createElement("div", {
14607
- className: "font-medium text-lg py-2"
14608
- }, item === null || item === void 0 ? void 0 : item.title)));
15223
+ }, /*#__PURE__*/React__default.createElement(NewsItem2, {
15224
+ newsArticle: item
15225
+ })));
14609
15226
  })));
14610
15227
  };
14611
15228
 
14612
- var relativeTime = createCommonjsModule(function (module, exports) {
14613
- !function(r,e){module.exports=e();}(commonjsGlobal,(function(){return function(r,e,t){r=r||{};var n=e.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(r,e,t,o){return n.fromToBase(r,e,t,o)}t.en.relativeTime=o,n.fromToBase=function(e,n,i,d,u){for(var f,a,s,l=i.$locale().relativeTime||o,h=r.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],m=h.length,c=0;c<m;c+=1){var y=h[c];y.d&&(f=d?t(e).diff(i,y.d,!0):i.diff(e,y.d,!0));var p=(r.rounding||Math.round)(Math.abs(f));if(s=f>0,p<=y.r||!y.r){p<=1&&c>0&&(y=h[c-1]);var v=l[y.l];u&&(p=u(""+p)),a="string"==typeof v?v.replace("%d",p):v(p,n,y.l,s);break}}if(n)return a;var M=s?l.future:l.past;return "function"==typeof M?M(a):M.replace("%s",a)},n.to=function(r,e){return i(r,e,this,!0)},n.from=function(r,e){return i(r,e,this)};var d=function(r){return r.$u?t.utc():t()};n.toNow=function(r){return this.to(d(this),r)},n.fromNow=function(r){return this.from(d(this),r)};}}));
14614
- });
14615
-
14616
- var vi = createCommonjsModule(function (module, exports) {
14617
- !function(t,n){module.exports=n(dayjs_min);}(commonjsGlobal,(function(t){function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var h=n(t),_={name:"vi",weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),weekStart:1,weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),ordinal:function(t){return t},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"}};return h.default.locale(_,null,!0),_}));
14618
- });
14619
-
14620
15229
  var getAllNewsCategoriesApi = function getAllNewsCategoriesApi(shopId, landingShopConfigId, appId) {
14621
15230
  if (appId === void 0) {
14622
15231
  appId = "SSPA";
@@ -14727,10 +15336,10 @@ var News1 = function News1(props) {
14727
15336
  });
14728
15337
  }
14729
15338
  }, "Chuy\xEAn m\u1EE5c"), /*#__PURE__*/React__default.createElement("div", {
14730
- className: "rounded-b-lg bg-bgSecondary"
15339
+ className: "rounded-b-lg bg-bgSecondary overflow-y-auto scroll-container max-h-[700px]"
14731
15340
  }, newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.map(function (item, index) {
14732
15341
  return /*#__PURE__*/React__default.createElement("div", {
14733
- className: "px-6 py-3 hover:bg-gray-100 hover:text-primary cursor-pointer",
15342
+ className: "px-6 hover:bg-gray-100 hover:text-primary cursor-pointer " + ((item === null || item === void 0 ? void 0 : item.catId) === (categorySelected === null || categorySelected === void 0 ? void 0 : categorySelected.catId) ? "bg-gray-100 text-primary" : "") + " ",
14734
15343
  key: "sdjfdh-" + index,
14735
15344
  onClick: function onClick() {
14736
15345
  setCategorySelected(item);
@@ -14740,39 +15349,33 @@ var News1 = function News1(props) {
14740
15349
  });
14741
15350
  });
14742
15351
  }
14743
- }, item === null || item === void 0 ? void 0 : item.catName);
15352
+ }, /*#__PURE__*/React__default.createElement("div", {
15353
+ className: "border-b border-dashed py-4 " + ((newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.length) - 1 === index ? "border-b-0" : "")
15354
+ }, /*#__PURE__*/React__default.createElement("div", {
15355
+ className: "line-clamp-3"
15356
+ }, item === null || item === void 0 ? void 0 : item.catName)));
14744
15357
  }))), /*#__PURE__*/React__default.createElement("div", {
14745
15358
  className: "md:col-span-2 flex flex-col gap-8"
14746
15359
  }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
14747
- className: "px-6 py-3 text-textButton text-lg rounded-t-lg bg-primary w-max"
14748
- }, params !== null && params !== void 0 && params.catId ? categorySelected === null || categorySelected === void 0 ? void 0 : categorySelected.catName : "Tin mới"), /*#__PURE__*/React__default.createElement("div", {
15360
+ className: "px-6 py-3 text-textButton text-lg rounded-t-lg bg-primary w-max max-w-full"
15361
+ }, /*#__PURE__*/React__default.createElement("div", {
15362
+ className: "line-clamp-1"
15363
+ }, params !== null && params !== void 0 && params.catId ? categorySelected === null || categorySelected === void 0 ? void 0 : categorySelected.catName : "Tin mới")), /*#__PURE__*/React__default.createElement("div", {
14749
15364
  className: "w-full border border-primary"
14750
15365
  })), loading & isSeeMore ? /*#__PURE__*/React__default.createElement("div", {
14751
15366
  className: "w-full h-80 flex justify-center items-center"
14752
15367
  }, /*#__PURE__*/React__default.createElement(Loading, null)) : /*#__PURE__*/React__default.createElement("div", {
14753
15368
  className: "flex flex-col gap-8"
14754
15369
  }, (newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles.length) > 0 ? newsArticles === null || newsArticles === void 0 ? void 0 : (_newsArticles$slice = newsArticles.slice(0, (params === null || params === void 0 ? void 0 : params.size) - 4)) === null || _newsArticles$slice === void 0 ? void 0 : _newsArticles$slice.map(function (item, index) {
14755
- var _dayjs;
14756
15370
  return /*#__PURE__*/React__default.createElement(LinkToPage, {
14757
15371
  href: getLinkNewsDetail(item),
14758
15372
  Link: Link,
14759
15373
  key: "kghf-" + index
14760
- }, /*#__PURE__*/React__default.createElement("div", {
14761
- className: "grid grid-cols-2 gap-2 md:gap-4 cursor-pointer",
14762
- key: "djfsdf-" + index
14763
- }, /*#__PURE__*/React__default.createElement(NewsImage, {
14764
- news: item
14765
- }), /*#__PURE__*/React__default.createElement("div", {
14766
- className: "flex flex-col gap-2 md:gap-3 pb-4"
14767
- }, /*#__PURE__*/React__default.createElement("div", {
14768
- className: "font-medium text-lg md:text-xl line-clamp-2"
14769
- }, item === null || item === void 0 ? void 0 : item.title), /*#__PURE__*/React__default.createElement("div", {
14770
- className: "line-clamp-3 font-normal min-h-6 md:min-h-20 text-gray3"
14771
- }, item === null || item === void 0 ? void 0 : item.shortDescription), /*#__PURE__*/React__default.createElement("div", {
14772
- className: " text-gray3"
14773
- }, (_dayjs = dayjs_min(item === null || item === void 0 ? void 0 : item.timeUpdate)) === null || _dayjs === void 0 ? void 0 : _dayjs.fromNow()))));
15374
+ }, /*#__PURE__*/React__default.createElement(NewsItem1, {
15375
+ newsArticle: item
15376
+ }));
14774
15377
  }) : /*#__PURE__*/React__default.createElement("div", {
14775
- className: "w-full h-64 flex flex-col justify-center items-center text-gray3"
15378
+ className: "w-full h-64 flex flex-col justify-center items-center text-gray3 "
14776
15379
  }, /*#__PURE__*/React__default.createElement(gi.GiNewspaper, {
14777
15380
  size: 80
14778
15381
  }), " Kh\xF4ng c\xF3 tin t\u1EE9c n\xE0o"), (newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles.length) > (params === null || params === void 0 ? void 0 : params.size) - 4 ? /*#__PURE__*/React__default.createElement(Button, {
@@ -14792,10 +15395,10 @@ var News1 = function News1(props) {
14792
15395
  });
14793
15396
  }
14794
15397
  }, "Chuy\xEAn m\u1EE5c"), /*#__PURE__*/React__default.createElement("div", {
14795
- className: "rounded-b-lg bg-bgSecondary"
15398
+ className: "rounded-b-lg bg-bgSecondary overflow-y-auto scroll-container max-h-[700px]"
14796
15399
  }, newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.map(function (item, index) {
14797
15400
  return /*#__PURE__*/React__default.createElement("div", {
14798
- className: "px-6 py-3 hover:bg-gray-100 hover:text-primary cursor-pointer",
15401
+ className: "px-4 hover:bg-gray-100 hover:text-primary cursor-pointer " + ((item === null || item === void 0 ? void 0 : item.catId) === (categorySelected === null || categorySelected === void 0 ? void 0 : categorySelected.catId) ? "bg-gray-100 text-primary" : "") + " ",
14799
15402
  key: "sdjfdh-" + index,
14800
15403
  onClick: function onClick() {
14801
15404
  setCategorySelected(item);
@@ -14805,7 +15408,11 @@ var News1 = function News1(props) {
14805
15408
  });
14806
15409
  });
14807
15410
  }
14808
- }, item === null || item === void 0 ? void 0 : item.catName);
15411
+ }, /*#__PURE__*/React__default.createElement("div", {
15412
+ className: "border-b border-dashed py-4 " + ((newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.length) - 1 === index ? "border-b-0" : "")
15413
+ }, /*#__PURE__*/React__default.createElement("div", {
15414
+ className: "line-clamp-3"
15415
+ }, item === null || item === void 0 ? void 0 : item.catName)));
14809
15416
  }))));
14810
15417
  };
14811
15418
 
@@ -14854,7 +15461,7 @@ var NewsDetail1 = function NewsDetail1(props) {
14854
15461
  Link = _props$Link === void 0 ? null : _props$Link;
14855
15462
  var _useState = React.useState({
14856
15463
  catId: catId,
14857
- szie: 10
15464
+ size: 10
14858
15465
  }),
14859
15466
  params = _useState[0],
14860
15467
  setParams = _useState[1];
@@ -14892,10 +15499,10 @@ var NewsDetail1 = function NewsDetail1(props) {
14892
15499
  dangerouslySetInnerHTML: {
14893
15500
  __html: article === null || article === void 0 ? void 0 : article.content
14894
15501
  }
14895
- }), /*#__PURE__*/React__default.createElement("div", {
15502
+ }), (newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.length) > 0 ? /*#__PURE__*/React__default.createElement("div", {
14896
15503
  className: "top-6 block md:hidden"
14897
15504
  }, /*#__PURE__*/React__default.createElement("div", {
14898
- className: "px-6 py-3 bg-primary rounded-t-lg text-lg text-textButton text-center"
15505
+ className: "px-6 bg-primary rounded-t-lg text-lg text-textButton text-center"
14899
15506
  }, "Chuy\xEAn m\u1EE5c"), /*#__PURE__*/React__default.createElement("div", {
14900
15507
  className: "rounded-b-lg bg-bgSecondary"
14901
15508
  }, newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.map(function (item, index) {
@@ -14903,10 +15510,14 @@ var NewsDetail1 = function NewsDetail1(props) {
14903
15510
  href: getLinkNewsByCategory(item),
14904
15511
  Link: Link
14905
15512
  }, /*#__PURE__*/React__default.createElement("div", {
14906
- className: "px-6 py-3 hover:bg-gray-100 hover:text-primary cursor-pointer",
15513
+ className: "px-4 hover:bg-gray-100 hover:text-primary cursor-pointer",
14907
15514
  key: "sdjfdh-" + index
14908
- }, item === null || item === void 0 ? void 0 : item.catName));
14909
- }))), /*#__PURE__*/React__default.createElement("div", {
15515
+ }, /*#__PURE__*/React__default.createElement("div", {
15516
+ className: "border-b border-dashed py-4 " + ((newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.length) - 1 === index ? "border-b-0" : "")
15517
+ }, /*#__PURE__*/React__default.createElement("div", {
15518
+ className: "line-clamp-3"
15519
+ }, item === null || item === void 0 ? void 0 : item.catName))));
15520
+ }))) : null, (newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles.length) > 0 ? /*#__PURE__*/React__default.createElement("div", {
14910
15521
  className: "mt-6"
14911
15522
  }, /*#__PURE__*/React__default.createElement("div", {
14912
15523
  className: "font-medium text-2xl mb-4"
@@ -14917,19 +15528,17 @@ var NewsDetail1 = function NewsDetail1(props) {
14917
15528
  href: getLinkNewsDetail(item),
14918
15529
  Link: Link,
14919
15530
  key: "kghf-" + index
14920
- }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(NewsImage, {
14921
- news: item
14922
- }), /*#__PURE__*/React__default.createElement("div", {
14923
- className: "font-medium text-lg line-clamp-2"
14924
- }, item === null || item === void 0 ? void 0 : item.title)));
15531
+ }, /*#__PURE__*/React__default.createElement(NewsItem2, {
15532
+ newsArticle: item
15533
+ }));
14925
15534
  })), (newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles.length) > (params === null || params === void 0 ? void 0 : params.size) - 4 ? /*#__PURE__*/React__default.createElement("div", {
14926
15535
  className: "flex justify-center mt-4 w-full"
14927
15536
  }, /*#__PURE__*/React__default.createElement(Button, {
14928
15537
  label: "Xem thêm",
14929
15538
  onClick: handleSeeMore,
14930
15539
  shopConfigStyle: shopConfigStyle
14931
- })) : null)), /*#__PURE__*/React__default.createElement("div", {
14932
- className: "sticky top-20 self-start hidden md:block"
15540
+ })) : null) : null), (newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.length) > 0 ? /*#__PURE__*/React__default.createElement("div", {
15541
+ className: "sticky top-20 self-start hidden md:block overflow-y-auto scroll-container max-h-[700px]"
14933
15542
  }, /*#__PURE__*/React__default.createElement("div", {
14934
15543
  className: "px-6 py-3 bg-primary rounded-t-lg text-lg text-textButton text-center"
14935
15544
  }, "Chuy\xEAn m\u1EE5c"), /*#__PURE__*/React__default.createElement("div", {
@@ -14939,10 +15548,14 @@ var NewsDetail1 = function NewsDetail1(props) {
14939
15548
  href: getLinkNewsByCategory(item),
14940
15549
  Link: Link
14941
15550
  }, /*#__PURE__*/React__default.createElement("div", {
14942
- className: "px-6 py-3 hover:bg-gray-100 hover:text-primary cursor-pointer",
15551
+ className: "px-4 hover:bg-gray-100 hover:text-primary cursor-pointer",
14943
15552
  key: "sdjfdh-" + index
14944
- }, item === null || item === void 0 ? void 0 : item.catName));
14945
- }))));
15553
+ }, /*#__PURE__*/React__default.createElement("div", {
15554
+ className: "border-b border-dashed py-4 " + ((newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.length) - 1 === index ? "border-b-0" : "")
15555
+ }, /*#__PURE__*/React__default.createElement("div", {
15556
+ className: "line-clamp-3"
15557
+ }, item === null || item === void 0 ? void 0 : item.catName))));
15558
+ }))) : null);
14946
15559
  };
14947
15560
 
14948
15561
  exports.About1 = About1;
@@ -14957,6 +15570,7 @@ exports.BannerFull1 = BannerFull1;
14957
15570
  exports.BannerFull2 = BannerFull2;
14958
15571
  exports.Booking1 = Booking1;
14959
15572
  exports.BookingForm6 = BookingForm6;
15573
+ exports.BookingTable1 = BookingTable1;
14960
15574
  exports.Breadcrumb1 = Breadcrumb1;
14961
15575
  exports.Button = Button;
14962
15576
  exports.Carts1 = Carts1;
@@ -14965,6 +15579,7 @@ exports.CustomerRating1 = CustomerRating1;
14965
15579
  exports.CustomerRating10 = CustomerRating10;
14966
15580
  exports.CustomerRating5 = CustomerRating5;
14967
15581
  exports.CustomerRating6 = CustomerRating6;
15582
+ exports.CustomerRating8 = CustomerRating8;
14968
15583
  exports.DateTimePicker = DateTimePicker;
14969
15584
  exports.Employees1 = Employees1;
14970
15585
  exports.Features2 = Features2;
@@ -14972,9 +15587,11 @@ exports.Features3 = Features3;
14972
15587
  exports.Footer1 = Footer1;
14973
15588
  exports.Footer7 = Footer7;
14974
15589
  exports.Gallery1 = Gallery1;
15590
+ exports.Gallery2 = Gallery1$1;
14975
15591
  exports.Hero1 = Hero1;
14976
15592
  exports.Hero10 = Hero10;
14977
- exports.Hero12 = Hero11;
15593
+ exports.Hero11 = Hero11;
15594
+ exports.Hero12 = Hero12;
14978
15595
  exports.Hero13 = Hero13;
14979
15596
  exports.Hero2 = Hero2;
14980
15597
  exports.Hero5 = Hero5;
@@ -14989,6 +15606,8 @@ exports.News1 = News1;
14989
15606
  exports.NewsDetail1 = NewsDetail1;
14990
15607
  exports.NewsHighlight1 = NewsHighlight1;
14991
15608
  exports.PageTitle1 = PageTitle1;
15609
+ exports.PageTitle2 = PageTitle2;
15610
+ exports.PageTitle3 = PageTitle3;
14992
15611
  exports.Partner1 = Partner1;
14993
15612
  exports.ProductCategory2 = ProductCategory2;
14994
15613
  exports.ProductDetail10 = ProductDetail10;
@@ -15003,12 +15622,14 @@ exports.ProductItem4 = ProductItem4;
15003
15622
  exports.ProductItem5 = ProductItem5;
15004
15623
  exports.ProductItem6 = ProductItem6;
15005
15624
  exports.ProductItem7 = ProductItem7;
15625
+ exports.ProductItem8 = ProductItem8;
15006
15626
  exports.ProductList5 = ProductList5;
15007
15627
  exports.ProductList7 = ProductList7;
15008
15628
  exports.ProductSale2 = ProductSale2;
15009
15629
  exports.ProductSearch1 = ProductSearch1;
15010
15630
  exports.Products10 = Products10;
15011
15631
  exports.Products11 = Products11;
15632
+ exports.Products12 = Products12;
15012
15633
  exports.Products2 = Products2;
15013
15634
  exports.Products3 = Products3;
15014
15635
  exports.Products9 = Products9;
@@ -15020,12 +15641,14 @@ exports.SearchProduct1 = SearchProduct1;
15020
15641
  exports.SectionTitle1 = SectionTitle1;
15021
15642
  exports.SectionTitle2 = SectionTitle2;
15022
15643
  exports.SectionTitle3 = SectionTitle3;
15644
+ exports.SectionTitle4 = SectionTitle4;
15023
15645
  exports.Select = Select$1;
15024
15646
  exports.ServiceDetail1 = ServiceDetail1;
15025
15647
  exports.ShopHighlights2 = ShopHighlights2;
15026
15648
  exports.ShopHighlights5 = ShopHighlights5;
15027
15649
  exports.ShopHighlights6 = ShopHighlights6;
15028
15650
  exports.ShopHighlights7 = ShopHighlights7;
15651
+ exports.ShopHighlights8 = ShopHighlights8;
15029
15652
  exports.TextArea = TextArea;
15030
15653
  exports.TreatmentDetail1 = TreatmentDetail1;
15031
15654
  exports.TreatmentItem1 = TreatmentItem1;