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 +1020 -397
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1012 -399
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -7,7 +7,7 @@ import { PiHandHeartBold } from 'react-icons/pi';
|
|
|
7
7
|
import { TbCategory } from 'react-icons/tb';
|
|
8
8
|
import { SiZalo } from 'react-icons/si';
|
|
9
9
|
import { IoIosStar, IoIosArrowBack, IoIosArrowForward, IoMdCheckmark, IoIosHeartEmpty, IoMdCheckmarkCircleOutline } from 'react-icons/io';
|
|
10
|
-
import { FaMinus, FaRegEyeSlash, FaPlus,
|
|
10
|
+
import { FaMinus, FaRegEyeSlash, FaPlus, FaStar, FaRegStarHalfStroke, FaRegStar } from 'react-icons/fa6';
|
|
11
11
|
import 'react-icons/ci';
|
|
12
12
|
import { BsCurrencyDollar } from 'react-icons/bs';
|
|
13
13
|
import { LuSearch, LuShoppingCart, LuShoppingBag } from 'react-icons/lu';
|
|
@@ -18,7 +18,8 @@ import 'slick-carousel/slick/slick.css';
|
|
|
18
18
|
import 'slick-carousel/slick/slick-theme.css';
|
|
19
19
|
import { AiOutlineShoppingCart, AiOutlineInfoCircle, AiOutlinePhone } from 'react-icons/ai';
|
|
20
20
|
import { GoCreditCard, GoClock } from 'react-icons/go';
|
|
21
|
-
import {
|
|
21
|
+
import { GrPowerCycle } from 'react-icons/gr';
|
|
22
|
+
import { RiMessengerFill, RiDoubleQuotesL, RiDeleteBin7Line } from 'react-icons/ri';
|
|
22
23
|
import { HiOutlineLocationMarker, HiOutlineArrowNarrowLeft, HiOutlineArrowNarrowRight } from 'react-icons/hi';
|
|
23
24
|
import { GiNewspaper } from 'react-icons/gi';
|
|
24
25
|
|
|
@@ -425,18 +426,17 @@ var NavBar7 = function NavBar7(props) {
|
|
|
425
426
|
position: "fixed",
|
|
426
427
|
top: "-100px"
|
|
427
428
|
}
|
|
428
|
-
}, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.
|
|
429
|
+
}, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName), /*#__PURE__*/React__default.createElement("div", {
|
|
429
430
|
className: "hidden lg:flex gap-6 justify-between items-center py-2 px-4 xl:px-20"
|
|
430
431
|
}, /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
431
432
|
Link: Link,
|
|
432
433
|
href: "/",
|
|
433
434
|
className: "flex items-center gap-2"
|
|
434
435
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
435
|
-
className: "object-cover w-12 h-12",
|
|
436
|
-
src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl
|
|
437
|
-
alt: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName
|
|
436
|
+
className: "object-cover w-12 max-h-12",
|
|
437
|
+
src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl
|
|
438
438
|
}), /*#__PURE__*/React__default.createElement("h3", {
|
|
439
|
-
className: "text-xl md:text-2xl text-primary text-wrap line-clamp-2 leading-tight"
|
|
439
|
+
className: "text-xl md:text-2xl text-primary font-headingFont text-wrap line-clamp-2 leading-tight"
|
|
440
440
|
}, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName)), /*#__PURE__*/React__default.createElement("div", {
|
|
441
441
|
className: "hidden lg:flex flex-1 items-center gap-4"
|
|
442
442
|
}, 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) {
|
|
@@ -496,11 +496,10 @@ var NavBar7 = function NavBar7(props) {
|
|
|
496
496
|
href: "/",
|
|
497
497
|
className: "flex flex-1 gap-2 items-center"
|
|
498
498
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
499
|
-
className: "object-cover w-12 h-12",
|
|
500
|
-
src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl
|
|
501
|
-
alt: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName
|
|
499
|
+
className: "object-cover w-12 max-h-12",
|
|
500
|
+
src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl
|
|
502
501
|
}), /*#__PURE__*/React__default.createElement("h3", {
|
|
503
|
-
className: "text-xl md:text-2xl text-wrap text-primary line-clamp-2"
|
|
502
|
+
className: "text-xl md:text-2xl font-headingFont text-wrap text-primary line-clamp-2"
|
|
504
503
|
}, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName)), cart(), /*#__PURE__*/React__default.createElement("button", {
|
|
505
504
|
type: "button",
|
|
506
505
|
onClick: function onClick() {
|
|
@@ -528,12 +527,12 @@ var NavBar7 = function NavBar7(props) {
|
|
|
528
527
|
return setIsOpen(false);
|
|
529
528
|
}
|
|
530
529
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
531
|
-
className: "flex gap-2 items-center"
|
|
530
|
+
className: "flex gap-2 items-center mb-2"
|
|
532
531
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
533
532
|
src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
|
|
534
|
-
className: "h-14 w-14
|
|
533
|
+
className: "max-h-14 w-14 object-cover"
|
|
535
534
|
}), /*#__PURE__*/React__default.createElement("h3", {
|
|
536
|
-
className: "text-xl font-
|
|
535
|
+
className: "text-xl font-headingFont text-primary line-clamp-1"
|
|
537
536
|
}, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName))), /*#__PURE__*/React__default.createElement("button", {
|
|
538
537
|
className: "text-gray4",
|
|
539
538
|
onClick: function onClick() {
|
|
@@ -727,11 +726,11 @@ var NavBar1 = function NavBar1(props) {
|
|
|
727
726
|
href: "/",
|
|
728
727
|
className: "flex items-center gap-2"
|
|
729
728
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
730
|
-
className: "object-cover w-12 h-12",
|
|
729
|
+
className: "object-cover w-12 max-h-12",
|
|
731
730
|
src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
|
|
732
731
|
alt: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName
|
|
733
732
|
}), /*#__PURE__*/React__default.createElement("h3", {
|
|
734
|
-
className: "text-xl md:text-2xl text-wrap
|
|
733
|
+
className: "text-xl md:text-2xl text-wrap font-headingFont text-primary"
|
|
735
734
|
}, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName)), /*#__PURE__*/React__default.createElement("div", {
|
|
736
735
|
className: "hidden lg:flex flex-1 items-center gap-4"
|
|
737
736
|
}, 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) {
|
|
@@ -789,11 +788,11 @@ var NavBar1 = function NavBar1(props) {
|
|
|
789
788
|
href: "/",
|
|
790
789
|
className: "flex flex-1 gap-2 items-center"
|
|
791
790
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
792
|
-
className: "object-cover w-12
|
|
791
|
+
className: "object-cover w-12 max-h-12",
|
|
793
792
|
src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
|
|
794
793
|
alt: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName
|
|
795
794
|
}), /*#__PURE__*/React__default.createElement("h3", {
|
|
796
|
-
className: "text-xl md:text-2xl text-wrap text-primary"
|
|
795
|
+
className: "text-xl md:text-2xl text-wrap text-primary font-headingFont"
|
|
797
796
|
}, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName)), cart(), /*#__PURE__*/React__default.createElement("button", {
|
|
798
797
|
type: "button",
|
|
799
798
|
onClick: function onClick() {
|
|
@@ -821,12 +820,12 @@ var NavBar1 = function NavBar1(props) {
|
|
|
821
820
|
return setIsOpen(false);
|
|
822
821
|
}
|
|
823
822
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
824
|
-
className: "flex gap-2 items-center"
|
|
823
|
+
className: "flex gap-2 items-center mb-2"
|
|
825
824
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
826
825
|
src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
|
|
827
|
-
className: "h-14 w-14 bg-cover bg-no-repeat"
|
|
826
|
+
className: "max-h-14 w-14 bg-cover bg-no-repeat"
|
|
828
827
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
829
|
-
className: "text-xl line-clamp-1"
|
|
828
|
+
className: "text-xl font-headingFont text-primary line-clamp-1"
|
|
830
829
|
}, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName))), /*#__PURE__*/React__default.createElement("button", {
|
|
831
830
|
className: "text-gray4",
|
|
832
831
|
onClick: function onClick() {
|
|
@@ -962,6 +961,24 @@ var SectionTitle3 = function SectionTitle3(props) {
|
|
|
962
961
|
}, data === null || data === void 0 ? void 0 : data.sectionDescription) : null);
|
|
963
962
|
};
|
|
964
963
|
|
|
964
|
+
var SectionTitle4 = function SectionTitle4(props) {
|
|
965
|
+
var _data$sectionTitle;
|
|
966
|
+
var data = props.data;
|
|
967
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
968
|
+
className: true
|
|
969
|
+
}, data !== null && data !== void 0 && data.sectionTitle ? /*#__PURE__*/React__default.createElement("div", {
|
|
970
|
+
className: "flex justify-center items-center gap-6"
|
|
971
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
972
|
+
className: "border w-32 border-primary"
|
|
973
|
+
}), /*#__PURE__*/React__default.createElement("h2", {
|
|
974
|
+
className: "font-headingFont !leading-relaxed text-primary text-center text-2xl md:text-4xl"
|
|
975
|
+
}, 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", {
|
|
976
|
+
className: "border w-32 border-primary"
|
|
977
|
+
})) : null, data !== null && data !== void 0 && data.sectionDescription ? /*#__PURE__*/React__default.createElement("p", {
|
|
978
|
+
className: "text-xl text-center font-medium leading-relaxed text-secondary mt-2"
|
|
979
|
+
}, data === null || data === void 0 ? void 0 : data.sectionDescription) : null);
|
|
980
|
+
};
|
|
981
|
+
|
|
965
982
|
var Input = forwardRef(function (props, ref) {
|
|
966
983
|
var _props$label = props.label,
|
|
967
984
|
label = _props$label === void 0 ? "" : _props$label,
|
|
@@ -1197,11 +1214,10 @@ var Hero2 = function Hero2(props) {
|
|
|
1197
1214
|
className: "w-full h-auto object-cover min-h-[22vh] max-h-[100vh]"
|
|
1198
1215
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1199
1216
|
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"
|
|
1200
|
-
}, /*#__PURE__*/React__default.createElement("img", {
|
|
1217
|
+
}, shopConfig !== null && shopConfig !== void 0 && shopConfig.logoUrl ? /*#__PURE__*/React__default.createElement("img", {
|
|
1201
1218
|
src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
|
|
1202
|
-
alt: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName,
|
|
1203
1219
|
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"
|
|
1204
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1220
|
+
}) : null, /*#__PURE__*/React__default.createElement("div", {
|
|
1205
1221
|
className: "font-medium line-clamp-1 ",
|
|
1206
1222
|
style: {
|
|
1207
1223
|
fontSize: "clamp(1.25rem, 4vw, 3.5rem)",
|
|
@@ -1270,7 +1286,7 @@ var Hero6 = function Hero6(props) {
|
|
|
1270
1286
|
};
|
|
1271
1287
|
|
|
1272
1288
|
var Hero10 = function Hero10(props) {
|
|
1273
|
-
var _data$data, _data$data$, _data$data$$srcImages, _sectionData$, _sectionData$2, _sectionData$
|
|
1289
|
+
var _data$data, _data$data$, _data$data$$srcImages, _sectionData$, _sectionData$2, _sectionData$3, _sectionData$4, _sectionData$4$button;
|
|
1274
1290
|
var shopConfigStyle = props.shopConfigStyle,
|
|
1275
1291
|
data = props.data,
|
|
1276
1292
|
_props$Link = props.Link,
|
|
@@ -1287,7 +1303,9 @@ var Hero10 = function Hero10(props) {
|
|
|
1287
1303
|
className: "relative w-full min-h-[540px] p-12 z-10 flex flex-col gap-6 items-center justify-center"
|
|
1288
1304
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1289
1305
|
className: "text-3xl md:text-5xl text-white leading-[1.6] md:leading-[1.6] text-center font-headingFont"
|
|
1290
|
-
}, sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$ = sectionData[0]) === null || _sectionData$ === void 0 ? void 0 : _sectionData$.title), sectionData
|
|
1306
|
+
}, 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", {
|
|
1307
|
+
className: "text-lg text-center text-white md:text-2xl"
|
|
1308
|
+
}, 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) {
|
|
1291
1309
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
1292
1310
|
Link: Link,
|
|
1293
1311
|
key: "gdf-" + index,
|
|
@@ -1299,7 +1317,51 @@ var Hero10 = function Hero10(props) {
|
|
|
1299
1317
|
})));
|
|
1300
1318
|
};
|
|
1301
1319
|
|
|
1320
|
+
var SECTION_DEFAULT_CLASS = "my-12 mx-4 xl:mx-20 bg-background";
|
|
1321
|
+
var SECTION_CLASS = "my-6 md:my-12 px-4 xl:px-20 bg-background";
|
|
1322
|
+
|
|
1302
1323
|
var Hero11 = function Hero11(props) {
|
|
1324
|
+
var _data$data, _data$data$, _data$data$$srcImages, _data$data2, _data$data2$, _data$data2$$title, _data$data3, _data$data3$;
|
|
1325
|
+
var _props$data = props.data,
|
|
1326
|
+
data = _props$data === void 0 ? {} : _props$data,
|
|
1327
|
+
_props$shopConfigStyl = props.shopConfigStyle,
|
|
1328
|
+
shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl;
|
|
1329
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1330
|
+
className: SECTION_CLASS + " grid grid-cols-1 md:grid-cols-2 py-12 !bg-bgSecondary gap-6 md:gap-12"
|
|
1331
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1332
|
+
className: "flex w-full"
|
|
1333
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1334
|
+
className: "w-4"
|
|
1335
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1336
|
+
className: "bg-primary w-4 h-1/2 mt-6 "
|
|
1337
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1338
|
+
className: "h-[45%]"
|
|
1339
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
1340
|
+
className: "w-full"
|
|
1341
|
+
}, /*#__PURE__*/React__default.createElement("img", {
|
|
1342
|
+
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],
|
|
1343
|
+
className: "object-cover max-w-full h-auto"
|
|
1344
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
1345
|
+
className: "w-4"
|
|
1346
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1347
|
+
className: "h-[45%]"
|
|
1348
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1349
|
+
className: "bg-primary w-4 h-1/2 mb-6"
|
|
1350
|
+
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
1351
|
+
className: "relative flex flex-col justify-center gap-6 lg:gap-10"
|
|
1352
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1353
|
+
className: "text-2xl md:text-4xl !leading-[1.6] font-headingFont w-max text-center text-primary"
|
|
1354
|
+
}, 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", {
|
|
1355
|
+
className: "text-lg md:text-xl lg:text-2xl"
|
|
1356
|
+
}, 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, {
|
|
1357
|
+
label: "\u0110\u1EB7t b\xE0n ngay",
|
|
1358
|
+
shopConfigStyle: shopConfigStyle,
|
|
1359
|
+
className: "!font-normal w-max",
|
|
1360
|
+
sho: true
|
|
1361
|
+
})));
|
|
1362
|
+
};
|
|
1363
|
+
|
|
1364
|
+
var Hero12 = function Hero12(props) {
|
|
1303
1365
|
var _data$data, _data$data$, _data$data$$srcImages, _data$data2, _data$data2$, _data$data3, _data$data3$;
|
|
1304
1366
|
var _props$data = props.data,
|
|
1305
1367
|
data = _props$data === void 0 ? {} : _props$data;
|
|
@@ -1394,7 +1456,7 @@ var CarouselItem = function CarouselItem(props) {
|
|
|
1394
1456
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1395
1457
|
className: "w-full overflow-hidden "
|
|
1396
1458
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1397
|
-
className: "flex overflow-x-auto gap-2 no-scrollbar items-center",
|
|
1459
|
+
className: "flex overflow-x-auto gap-2 " + (isNavigateButton ? "no-scrollbar" : "scroll-custom pb-2") + " items-center",
|
|
1398
1460
|
ref: listRef
|
|
1399
1461
|
}, isAll ? /*#__PURE__*/React__default.createElement("div", {
|
|
1400
1462
|
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",
|
|
@@ -7499,7 +7561,7 @@ var lib = {
|
|
|
7499
7561
|
};
|
|
7500
7562
|
|
|
7501
7563
|
var getBaseUrl = function getBaseUrl() {
|
|
7502
|
-
return process.env.NEXT_PUBLIC_BASE_URL || "https://
|
|
7564
|
+
return process.env.NEXT_PUBLIC_BASE_URL || "https://test-apigateway.sfin.vn";
|
|
7503
7565
|
};
|
|
7504
7566
|
var request = axios.create();
|
|
7505
7567
|
request.interceptors.request.use(function (config) {
|
|
@@ -7550,7 +7612,7 @@ var getYoutubeVideoIdByUrl = function getYoutubeVideoIdByUrl(url) {
|
|
|
7550
7612
|
var linkPagePolicy = "https://sites.google.com/view/sodofin-landing-page-policy";
|
|
7551
7613
|
var endpointLandingShop = "/landing-shop/v2";
|
|
7552
7614
|
var endpointLanding = "/landing/v2";
|
|
7553
|
-
var baseURL = process.env.NEXT_PUBLIC_BASE_URL || "https://
|
|
7615
|
+
var baseURL = process.env.NEXT_PUBLIC_BASE_URL || "https://test-apigateway.sfin.vn";
|
|
7554
7616
|
|
|
7555
7617
|
var getShopCategoriesApi = function getShopCategoriesApi(shopId, types) {
|
|
7556
7618
|
return api({
|
|
@@ -7645,9 +7707,6 @@ var Hero13 = function Hero13(props) {
|
|
|
7645
7707
|
}));
|
|
7646
7708
|
};
|
|
7647
7709
|
|
|
7648
|
-
var SECTION_DEFAULT_CLASS = "my-12 mx-4 xl:mx-20 bg-background";
|
|
7649
|
-
var SECTION_CLASS = "my-6 md:my-12 px-4 xl:px-20 bg-background";
|
|
7650
|
-
|
|
7651
7710
|
var Features2 = function Features2(props) {
|
|
7652
7711
|
var data = props.data;
|
|
7653
7712
|
var sectionData = data === null || data === void 0 ? void 0 : data.data;
|
|
@@ -7754,8 +7813,6 @@ var ProductController = function ProductController(props) {
|
|
|
7754
7813
|
setLoading(true);
|
|
7755
7814
|
var _temp = _catch(function () {
|
|
7756
7815
|
var filterParams = _extends({}, defaultParams, params);
|
|
7757
|
-
console.log("filterParams params", params);
|
|
7758
|
-
console.log("filterParams", filterParams);
|
|
7759
7816
|
return Promise.resolve(getProductListApi(shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopId, filterParams)).then(function (res) {
|
|
7760
7817
|
var _res$data, _res$data$status;
|
|
7761
7818
|
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) {
|
|
@@ -8061,7 +8118,11 @@ var ProductPrice = function ProductPrice(props) {
|
|
|
8061
8118
|
_props$className = props.className,
|
|
8062
8119
|
className = _props$className === void 0 ? "" : _props$className,
|
|
8063
8120
|
_props$style = props.style,
|
|
8064
|
-
style = _props$style === void 0 ? {} : _props$style
|
|
8121
|
+
style = _props$style === void 0 ? {} : _props$style,
|
|
8122
|
+
_props$priceClassName = props.priceClassName,
|
|
8123
|
+
priceClassName = _props$priceClassName === void 0 ? "" : _props$priceClassName,
|
|
8124
|
+
_props$priceBeforeDis = props.priceBeforeDiscountClassName,
|
|
8125
|
+
priceBeforeDiscountClassName = _props$priceBeforeDis === void 0 ? "" : _props$priceBeforeDis;
|
|
8065
8126
|
var _useState = useState(),
|
|
8066
8127
|
displayPrice = _useState[0],
|
|
8067
8128
|
setDisplayPrice = _useState[1];
|
|
@@ -8095,33 +8156,34 @@ var ProductPrice = function ProductPrice(props) {
|
|
|
8095
8156
|
}
|
|
8096
8157
|
};
|
|
8097
8158
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
8098
|
-
className: className
|
|
8099
|
-
},
|
|
8100
|
-
className: "text-
|
|
8101
|
-
}, displayPriceBeforeDiscount) : null, /*#__PURE__*/React__default.createElement("span", {
|
|
8102
|
-
className: "text-primary font-semibold",
|
|
8159
|
+
className: "flex gap-4 flex-wrap " + className
|
|
8160
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
8161
|
+
className: "text-primary font-semibold " + priceClassName,
|
|
8103
8162
|
style: style
|
|
8104
|
-
}, displayPrice)
|
|
8163
|
+
}, displayPrice), displayPriceBeforeDiscount !== displayPrice && displayPriceBeforeDiscount != null ? /*#__PURE__*/React__default.createElement("span", {
|
|
8164
|
+
className: "text-gray3 line-through " + priceBeforeDiscountClassName + " "
|
|
8165
|
+
}, displayPriceBeforeDiscount) : null);
|
|
8105
8166
|
};
|
|
8106
8167
|
|
|
8107
8168
|
var ProductItem1 = function ProductItem1(props) {
|
|
8169
|
+
var _product$productInfo, _product$productInfo2;
|
|
8108
8170
|
var product = props.product;
|
|
8109
8171
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
8110
8172
|
className: "flex"
|
|
8111
8173
|
}, /*#__PURE__*/React__default.createElement(ProductImage, {
|
|
8112
|
-
product: product,
|
|
8174
|
+
product: product === null || product === void 0 ? void 0 : product.productInfo,
|
|
8113
8175
|
className: "!w-20 rounded-lg"
|
|
8114
8176
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
8115
8177
|
className: "ml-4 border-b border-stroke flex-1"
|
|
8116
8178
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
8117
8179
|
className: "text-lg"
|
|
8118
|
-
}, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement("div", {
|
|
8180
|
+
}, 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", {
|
|
8119
8181
|
className: "flex mt-2"
|
|
8120
8182
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
8121
8183
|
className: "flex-1 text-gray3"
|
|
8122
|
-
}, getDurationValue(product === null || product === void 0 ? void 0 : product.attributes)), /*#__PURE__*/React__default.createElement(ProductPrice, {
|
|
8123
|
-
product: product
|
|
8124
|
-
}))));
|
|
8184
|
+
}, 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, {
|
|
8185
|
+
product: product === null || product === void 0 ? void 0 : product.productInfo
|
|
8186
|
+
}) : null)));
|
|
8125
8187
|
};
|
|
8126
8188
|
|
|
8127
8189
|
var Dash = function Dash(props) {
|
|
@@ -8229,7 +8291,7 @@ var TreatmentsCategory7 = function TreatmentsCategory7(props) {
|
|
|
8229
8291
|
Link: Link,
|
|
8230
8292
|
href: getLinkServiceDetail(product === null || product === void 0 ? void 0 : product.productInfo)
|
|
8231
8293
|
}, /*#__PURE__*/React__default.createElement(ProductItem1, {
|
|
8232
|
-
product: product
|
|
8294
|
+
product: product
|
|
8233
8295
|
}));
|
|
8234
8296
|
})) : /*#__PURE__*/React__default.createElement(NotFoundProduct, {
|
|
8235
8297
|
text: "d\u1ECBch v\u1EE5"
|
|
@@ -8284,10 +8346,12 @@ var TreatmentsList6 = function TreatmentsList6(props) {
|
|
|
8284
8346
|
return /*#__PURE__*/React__default.createElement(TreatmentItem, {
|
|
8285
8347
|
Link: Link,
|
|
8286
8348
|
shopConfigStyle: shopConfigStyle,
|
|
8287
|
-
product: product
|
|
8349
|
+
product: product,
|
|
8288
8350
|
key: "htrhr-" + idx
|
|
8289
8351
|
});
|
|
8290
|
-
})) : /*#__PURE__*/React__default.createElement(NotFoundProduct,
|
|
8352
|
+
})) : /*#__PURE__*/React__default.createElement(NotFoundProduct, {
|
|
8353
|
+
text: "d\u1ECBch v\u1EE5"
|
|
8354
|
+
}), !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, {
|
|
8291
8355
|
label: "Xem thêm",
|
|
8292
8356
|
onClick: handleGetMoreProducts,
|
|
8293
8357
|
className: "mx-auto " + (shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : shopConfigStyle.buttonClass),
|
|
@@ -8513,7 +8577,7 @@ var Select = forwardRef(function (props, ref) {
|
|
|
8513
8577
|
useEffect(function () {
|
|
8514
8578
|
var delayDebounceFn = setTimeout(function () {
|
|
8515
8579
|
handleSearch === null || handleSearch === void 0 ? void 0 : handleSearch(inputSearch);
|
|
8516
|
-
},
|
|
8580
|
+
}, 600);
|
|
8517
8581
|
return function () {
|
|
8518
8582
|
return clearTimeout(delayDebounceFn);
|
|
8519
8583
|
};
|
|
@@ -8644,7 +8708,7 @@ var Select = forwardRef(function (props, ref) {
|
|
|
8644
8708
|
}, label ? /*#__PURE__*/React__default.createElement("div", {
|
|
8645
8709
|
className: "mb-1 " + labelClassName
|
|
8646
8710
|
}, label, " ", labelRequired) : null, /*#__PURE__*/React__default.createElement("div", {
|
|
8647
|
-
className: "flex flex-col gap-2 rounded-lg w-full bg-white " + (disabled ? "!bg-gray6" : "") + " border " + className
|
|
8711
|
+
className: "flex flex-col gap-2 rounded-lg w-full bg-white " + (disabled ? "!bg-gray6" : "") + " border border-stroke " + className
|
|
8648
8712
|
}, /*#__PURE__*/React__default.createElement("button", {
|
|
8649
8713
|
className: " w-full h-10 bg-transparent flex justify-between items-center px-3 py-2 " + selectClassName,
|
|
8650
8714
|
onClick: handleToggleSelect,
|
|
@@ -9470,8 +9534,8 @@ var TreatmentsList7 = function TreatmentsList7(props) {
|
|
|
9470
9534
|
params: params
|
|
9471
9535
|
})),
|
|
9472
9536
|
_ProductController$pr = _ProductController.products,
|
|
9473
|
-
products = _ProductController$pr === void 0 ? [] : _ProductController$pr
|
|
9474
|
-
|
|
9537
|
+
products = _ProductController$pr === void 0 ? [] : _ProductController$pr,
|
|
9538
|
+
loading = _ProductController.loading;
|
|
9475
9539
|
var handleOpenModalBooking = function handleOpenModalBooking(event, data) {
|
|
9476
9540
|
try {
|
|
9477
9541
|
var _data$productInfo, _data$productInfo2;
|
|
@@ -9528,7 +9592,9 @@ var TreatmentsList7 = function TreatmentsList7(props) {
|
|
|
9528
9592
|
shopConfigStyle: shopConfigStyle
|
|
9529
9593
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
9530
9594
|
className: "mt-12 w-full"
|
|
9531
|
-
},
|
|
9595
|
+
}, loading ? /*#__PURE__*/React__default.createElement("div", {
|
|
9596
|
+
className: "flex justify-center h-20 items-center"
|
|
9597
|
+
}, /*#__PURE__*/React__default.createElement(Loading, null)) : (products === null || products === void 0 ? void 0 : products.length) > 0 ? /*#__PURE__*/React__default.createElement(Slider, {
|
|
9532
9598
|
infinite: (products === null || products === void 0 ? void 0 : products.length) > 1 ? true : false,
|
|
9533
9599
|
slidesToShow: 1,
|
|
9534
9600
|
slidesToScroll: 1,
|
|
@@ -9726,7 +9792,7 @@ var ServiceDetail1 = function ServiceDetail1(props) {
|
|
|
9726
9792
|
}
|
|
9727
9793
|
}), /*#__PURE__*/React__default.createElement("p", {
|
|
9728
9794
|
className: "text-lg mt-12 text-xl pb-1 pt-6 border-t border-stroke"
|
|
9729
|
-
}, "M\xF4 t\u1EA3
|
|
9795
|
+
}, "M\xF4 t\u1EA3 d\u1ECBch v\u1EE5"), product !== null && product !== void 0 && product.description ? /*#__PURE__*/React__default.createElement("div", {
|
|
9730
9796
|
className: "h-max"
|
|
9731
9797
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
9732
9798
|
ref: descriptionRef,
|
|
@@ -9861,7 +9927,7 @@ var TreatmentDetail1 = function TreatmentDetail1(props) {
|
|
|
9861
9927
|
}
|
|
9862
9928
|
}), /*#__PURE__*/React__default.createElement("p", {
|
|
9863
9929
|
className: "text-lg mt-12 text-xl pb-1 pt-6 border-t border-stroke"
|
|
9864
|
-
}, "M\xF4 t\u1EA3
|
|
9930
|
+
}, "M\xF4 t\u1EA3 d\u1ECBch v\u1EE5"), product !== null && product !== void 0 && product.description ? /*#__PURE__*/React__default.createElement("div", {
|
|
9865
9931
|
className: "h-max"
|
|
9866
9932
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
9867
9933
|
ref: descriptionRef,
|
|
@@ -9897,6 +9963,7 @@ var TreatmentDetail1 = function TreatmentDetail1(props) {
|
|
|
9897
9963
|
};
|
|
9898
9964
|
|
|
9899
9965
|
var ProductItem2 = function ProductItem2(props) {
|
|
9966
|
+
var _product$productInfo;
|
|
9900
9967
|
var product = props.product,
|
|
9901
9968
|
_props$Link = props.Link,
|
|
9902
9969
|
Link = _props$Link === void 0 ? null : _props$Link,
|
|
@@ -9904,27 +9971,29 @@ var ProductItem2 = function ProductItem2(props) {
|
|
|
9904
9971
|
className = _props$className === void 0 ? "" : _props$className;
|
|
9905
9972
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
9906
9973
|
Link: Link,
|
|
9907
|
-
href: getLinkProductDetail(product)
|
|
9974
|
+
href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
|
|
9908
9975
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
9909
9976
|
className: "text-center relative group " + className
|
|
9910
9977
|
}, /*#__PURE__*/React__default.createElement(ProductImage, {
|
|
9911
|
-
product: product,
|
|
9978
|
+
product: product === null || product === void 0 ? void 0 : product.productInfo,
|
|
9912
9979
|
className: "max-w-[240px] rounded-full mx-auto !object-cover"
|
|
9913
|
-
}), /*#__PURE__*/React__default.createElement(ProductPrice, {
|
|
9914
|
-
product: product,
|
|
9915
|
-
className: "text-lg mt-4"
|
|
9916
9980
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
9981
|
+
className: "flex justify-center"
|
|
9982
|
+
}, /*#__PURE__*/React__default.createElement(ProductPrice, {
|
|
9983
|
+
product: product === null || product === void 0 ? void 0 : product.productInfo,
|
|
9984
|
+
className: "text-lg mt-4 " + (!(product !== null && product !== void 0 && product.isShowProductPriceOnLanding) ? "invisible" : "")
|
|
9985
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
9917
9986
|
className: "text-lg mt-2"
|
|
9918
|
-
}, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement("div", {
|
|
9987
|
+
}, 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", {
|
|
9919
9988
|
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"
|
|
9920
9989
|
}, /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
9921
|
-
href: getLinkProductDetail(product)
|
|
9990
|
+
href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
|
|
9922
9991
|
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
9923
9992
|
label: /*#__PURE__*/React__default.createElement("div", {
|
|
9924
9993
|
className: "flex items-center gap-2"
|
|
9925
9994
|
}, "Xem chi ti\u1EBFt ", /*#__PURE__*/React__default.createElement(FaArrowRight, null))
|
|
9926
9995
|
})), /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
9927
|
-
href: getLinkProductDetail(product)
|
|
9996
|
+
href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
|
|
9928
9997
|
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
9929
9998
|
label: /*#__PURE__*/React__default.createElement("div", {
|
|
9930
9999
|
className: "flex items-center gap-2"
|
|
@@ -9934,7 +10003,7 @@ var ProductItem2 = function ProductItem2(props) {
|
|
|
9934
10003
|
type: "outline",
|
|
9935
10004
|
className: "!border-white !text-white hover:!border-gray5"
|
|
9936
10005
|
})), /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
9937
|
-
href: getLinkProductDetail(product)
|
|
10006
|
+
href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
|
|
9938
10007
|
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
9939
10008
|
label: /*#__PURE__*/React__default.createElement("div", {
|
|
9940
10009
|
className: "flex items-center gap-2"
|
|
@@ -9945,6 +10014,7 @@ var ProductItem2 = function ProductItem2(props) {
|
|
|
9945
10014
|
};
|
|
9946
10015
|
|
|
9947
10016
|
var ProductItem3 = function ProductItem3(props) {
|
|
10017
|
+
var _product$productInfo;
|
|
9948
10018
|
var product = props.product,
|
|
9949
10019
|
_props$Link = props.Link,
|
|
9950
10020
|
Link = _props$Link === void 0 ? null : _props$Link,
|
|
@@ -9952,23 +10022,24 @@ var ProductItem3 = function ProductItem3(props) {
|
|
|
9952
10022
|
className = _props$className === void 0 ? "" : _props$className;
|
|
9953
10023
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
9954
10024
|
Link: Link,
|
|
9955
|
-
href: getLinkProductDetail(product)
|
|
10025
|
+
href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
|
|
9956
10026
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
9957
10027
|
className: "w-full border border-stroke rounded-2xl " + className
|
|
9958
10028
|
}, /*#__PURE__*/React__default.createElement(ProductImage, {
|
|
9959
|
-
product: product,
|
|
10029
|
+
product: product === null || product === void 0 ? void 0 : product.productInfo,
|
|
9960
10030
|
className: "w-full h-48 md:h-60 xl:h-[304px] rounded-t-2xl"
|
|
9961
10031
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
9962
10032
|
className: "p-4 flex flex-col gap-2 md:gap-4 items-start"
|
|
9963
10033
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
9964
10034
|
className: "line-clamp-1 w-full overflow-hidden text-ellipsis"
|
|
9965
|
-
}, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
|
|
9966
|
-
product: product,
|
|
9967
|
-
className: "text-lg text-start"
|
|
10035
|
+
}, 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, {
|
|
10036
|
+
product: product === null || product === void 0 ? void 0 : product.productInfo,
|
|
10037
|
+
className: "text-lg text-start " + (!(product !== null && product !== void 0 && product.isShowProductPriceOnLanding) ? "invisible" : "")
|
|
9968
10038
|
}))));
|
|
9969
10039
|
};
|
|
9970
10040
|
|
|
9971
10041
|
var ProductItem4 = function ProductItem4(props) {
|
|
10042
|
+
var _product$productInfo;
|
|
9972
10043
|
var _props$shopConfigStyl = props.shopConfigStyle,
|
|
9973
10044
|
shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
|
|
9974
10045
|
product = props.product,
|
|
@@ -9978,17 +10049,17 @@ var ProductItem4 = function ProductItem4(props) {
|
|
|
9978
10049
|
className = _props$className === void 0 ? "" : _props$className;
|
|
9979
10050
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
9980
10051
|
Link: Link,
|
|
9981
|
-
href: getLinkProductDetail(product)
|
|
10052
|
+
href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
|
|
9982
10053
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
9983
10054
|
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
|
|
9984
10055
|
}, /*#__PURE__*/React__default.createElement(ProductImage, {
|
|
9985
|
-
product: product,
|
|
10056
|
+
product: product === null || product === void 0 ? void 0 : product.productInfo,
|
|
9986
10057
|
className: "w-full h-40 sm:h-56 lg:h-60 xl:h-64 bg-cover bg-no-repeat rounded-2xl"
|
|
9987
10058
|
}), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
9988
10059
|
className: "text-start line-clamp-1 w-full overflow-hidden text-ellipsis text-lg"
|
|
9989
|
-
}, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
|
|
9990
|
-
product: product,
|
|
9991
|
-
className: "text-lg text-start mt-2"
|
|
10060
|
+
}, 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, {
|
|
10061
|
+
product: product === null || product === void 0 ? void 0 : product.productInfo,
|
|
10062
|
+
className: "text-lg text-start mt-2 " + (!(product !== null && product !== void 0 && product.isShowProductPriceOnLanding) ? "invisible" : "")
|
|
9992
10063
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
9993
10064
|
className: "flex pt-2 md:pt-4 gap-2 md:gap-4 border-t items-center"
|
|
9994
10065
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -10003,6 +10074,7 @@ var ProductItem4 = function ProductItem4(props) {
|
|
|
10003
10074
|
};
|
|
10004
10075
|
|
|
10005
10076
|
var ProductItem5 = function ProductItem5(props) {
|
|
10077
|
+
var _product$productInfo;
|
|
10006
10078
|
var product = props.product,
|
|
10007
10079
|
_props$Link = props.Link,
|
|
10008
10080
|
Link = _props$Link === void 0 ? null : _props$Link,
|
|
@@ -10012,17 +10084,17 @@ var ProductItem5 = function ProductItem5(props) {
|
|
|
10012
10084
|
className = _props$className === void 0 ? "" : _props$className;
|
|
10013
10085
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
10014
10086
|
Link: Link,
|
|
10015
|
-
href: getLinkProductDetail(product)
|
|
10087
|
+
href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
|
|
10016
10088
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10017
10089
|
className: "w-full flex flex-col gap-4 rounded-2xl p-1 " + className
|
|
10018
10090
|
}, /*#__PURE__*/React__default.createElement(ProductImage, {
|
|
10019
|
-
product: product,
|
|
10091
|
+
product: product === null || product === void 0 ? void 0 : product.productInfo,
|
|
10020
10092
|
className: "w-full w-full h-44 md:h-56 lg:h-64 xl:h-72 bg-cover bg-no-repeat rounded-2xl"
|
|
10021
10093
|
}), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
10022
10094
|
className: "text-start line-clamp-1 w-full overflow-hidden text-ellipsis mb-2"
|
|
10023
|
-
}, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
|
|
10024
|
-
product: product,
|
|
10025
|
-
className: "text-lg text-start"
|
|
10095
|
+
}, 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, {
|
|
10096
|
+
product: product === null || product === void 0 ? void 0 : product.productInfo,
|
|
10097
|
+
className: "text-lg text-start " + (!(product !== null && product !== void 0 && product.isShowProductPriceOnLanding) ? "invisible" : "")
|
|
10026
10098
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
10027
10099
|
className: "flex gap-2 md:gap-4 "
|
|
10028
10100
|
}, /*#__PURE__*/React__default.createElement(AiOutlineShoppingCart, {
|
|
@@ -10035,6 +10107,7 @@ var ProductItem5 = function ProductItem5(props) {
|
|
|
10035
10107
|
};
|
|
10036
10108
|
|
|
10037
10109
|
var ProductItem6 = function ProductItem6(props) {
|
|
10110
|
+
var _product$productInfo;
|
|
10038
10111
|
var product = props.product,
|
|
10039
10112
|
_props$shopConfigStyl = props.shopConfigStyle,
|
|
10040
10113
|
shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
|
|
@@ -10044,17 +10117,17 @@ var ProductItem6 = function ProductItem6(props) {
|
|
|
10044
10117
|
className = _props$className === void 0 ? "" : _props$className;
|
|
10045
10118
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
10046
10119
|
Link: Link,
|
|
10047
|
-
href: getLinkProductDetail(product)
|
|
10120
|
+
href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
|
|
10048
10121
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10049
10122
|
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
|
|
10050
10123
|
}, /*#__PURE__*/React__default.createElement(ProductImage, {
|
|
10051
|
-
product: product,
|
|
10124
|
+
product: product === null || product === void 0 ? void 0 : product.productInfo,
|
|
10052
10125
|
className: "w-full h-48 md:h-60 xl:h-72 rounded-2xl"
|
|
10053
10126
|
}), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
10054
10127
|
className: "text start line-clamp-1 w-full overflow-hidden text-ellipsis"
|
|
10055
|
-
}, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
|
|
10056
|
-
product: product,
|
|
10057
|
-
className: "text-lg text-start"
|
|
10128
|
+
}, 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, {
|
|
10129
|
+
product: product === null || product === void 0 ? void 0 : product.productInfo,
|
|
10130
|
+
className: "text-lg text-start " + (!(product !== null && product !== void 0 && product.isShowProductPriceOnLanding) ? "invisible" : "")
|
|
10058
10131
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
10059
10132
|
className: "flex pt-4 gap-2 md:gap-4 border-t items-center"
|
|
10060
10133
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -10067,32 +10140,71 @@ var ProductItem6 = function ProductItem6(props) {
|
|
|
10067
10140
|
};
|
|
10068
10141
|
|
|
10069
10142
|
var ProductItem7 = function ProductItem7(props) {
|
|
10143
|
+
var _product$productInfo, _product$productInfo2, _product$productInfo3, _product$productInfo4, _product$productInfo5, _product$productInfo6;
|
|
10070
10144
|
var product = props.product,
|
|
10071
10145
|
_props$Link = props.Link,
|
|
10072
10146
|
Link = _props$Link === void 0 ? null : _props$Link,
|
|
10073
10147
|
_props$className = props.className,
|
|
10074
|
-
className = _props$className === void 0 ? "" : _props$className
|
|
10148
|
+
className = _props$className === void 0 ? "" : _props$className,
|
|
10149
|
+
_props$classNamePrice = props.classNamePrice,
|
|
10150
|
+
classNamePrice = _props$classNamePrice === void 0 ? "text-lg" : _props$classNamePrice;
|
|
10075
10151
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
10076
10152
|
Link: Link,
|
|
10077
|
-
href: getLinkProductDetail(product)
|
|
10153
|
+
href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
|
|
10078
10154
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10079
10155
|
className: "w-full bg-bgSecondary relative rounded-2xl " + className
|
|
10080
10156
|
}, /*#__PURE__*/React__default.createElement(ProductImage, {
|
|
10081
|
-
product: product,
|
|
10157
|
+
product: product === null || product === void 0 ? void 0 : product.productInfo,
|
|
10082
10158
|
className: "w-full h-44 md:h-56 lg:h-64 xl:h-72 bg-cover bg-no-repeat rounded-t-2xl"
|
|
10083
10159
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
10084
|
-
className: "p-4 flex flex-col gap-4 items-start"
|
|
10160
|
+
className: "p-3 sm:p-4 flex flex-col gap-4 items-start"
|
|
10085
10161
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10086
10162
|
className: "line-clamp-1 w-full overflow-hidden text-ellipsis"
|
|
10087
|
-
}, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
|
|
10088
|
-
product: product,
|
|
10089
|
-
className: "text-
|
|
10090
|
-
})), 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", {
|
|
10163
|
+
}, 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, {
|
|
10164
|
+
product: product === null || product === void 0 ? void 0 : product.productInfo,
|
|
10165
|
+
className: "text-start " + (!(product !== null && product !== void 0 && product.isShowProductPriceOnLanding) ? "invisible" : "") + " " + classNamePrice
|
|
10166
|
+
})), 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", {
|
|
10091
10167
|
className: "absolute top-5 left-0 font-semibold px-3 py-1 bg-danger text-textButton rounded-r-2xl shadow-lg v-max"
|
|
10092
|
-
}, 1 - 100 * (product === null || product === void 0 ? void 0 : product.price) / (product === null || product === void 0 ? void 0 : product.priceBeforeDiscount)) : null));
|
|
10168
|
+
}, 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));
|
|
10169
|
+
};
|
|
10170
|
+
|
|
10171
|
+
var ProductItem8 = function ProductItem8(props) {
|
|
10172
|
+
var _product$productInfo;
|
|
10173
|
+
var product = props.product,
|
|
10174
|
+
_props$Link = props.Link,
|
|
10175
|
+
Link = _props$Link === void 0 ? null : _props$Link,
|
|
10176
|
+
_props$className = props.className,
|
|
10177
|
+
className = _props$className === void 0 ? "" : _props$className,
|
|
10178
|
+
_props$shopConfigStyl = props.shopConfigStyle,
|
|
10179
|
+
shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl;
|
|
10180
|
+
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
10181
|
+
Link: Link,
|
|
10182
|
+
href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
|
|
10183
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10184
|
+
className: "text-center rounded relative group " + className
|
|
10185
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10186
|
+
className: "relative "
|
|
10187
|
+
}, /*#__PURE__*/React__default.createElement(ProductImage, {
|
|
10188
|
+
product: product === null || product === void 0 ? void 0 : product.productInfo,
|
|
10189
|
+
className: "min-h-[360px] md:min-h-[400px] xl:min-h-[440px] !object-cover !rounded"
|
|
10190
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
10191
|
+
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 "
|
|
10192
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10193
|
+
className: "text-lg text-textButton"
|
|
10194
|
+
}, 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, {
|
|
10195
|
+
product: product === null || product === void 0 ? void 0 : product.productInfo,
|
|
10196
|
+
className: !(product !== null && product !== void 0 && product.isShowProductPriceOnLanding) ? "invisible" : "",
|
|
10197
|
+
priceClassName: "text-textButton !font-normal",
|
|
10198
|
+
priceBeforeDiscountClassName: "text-textButton !font-normal"
|
|
10199
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
10200
|
+
label: "Th\xEAm v\xE0o gi\u1ECF",
|
|
10201
|
+
shopConfigStyle: shopConfigStyle,
|
|
10202
|
+
className: "hidden group-hover:block transition-all duration-300 !font-normal"
|
|
10203
|
+
})))));
|
|
10093
10204
|
};
|
|
10094
10205
|
|
|
10095
10206
|
var TreatmentItem1 = function TreatmentItem1(props) {
|
|
10207
|
+
var _product$productInfo;
|
|
10096
10208
|
var product = props.product,
|
|
10097
10209
|
_props$Link = props.Link,
|
|
10098
10210
|
Link = _props$Link === void 0 ? null : _props$Link,
|
|
@@ -10100,17 +10212,17 @@ var TreatmentItem1 = function TreatmentItem1(props) {
|
|
|
10100
10212
|
shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl;
|
|
10101
10213
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
10102
10214
|
Link: Link,
|
|
10103
|
-
href: getLinkServiceDetail(product)
|
|
10215
|
+
href: getLinkServiceDetail(product === null || product === void 0 ? void 0 : product.productInfo)
|
|
10104
10216
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10105
10217
|
className: "w-full flex flex-col gap-4 rounded-2xl p-1"
|
|
10106
10218
|
}, /*#__PURE__*/React__default.createElement(ProductImage, {
|
|
10107
|
-
product: product,
|
|
10219
|
+
product: product === null || product === void 0 ? void 0 : product.productInfo,
|
|
10108
10220
|
className: "w-full w-full h-[189px] md:h-[238px] xl:h-[304px] rounded-2xl"
|
|
10109
10221
|
}), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
10110
10222
|
className: "line-clamp-1 mb-2 font-medium text-lg"
|
|
10111
|
-
}, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement(ProductPrice, {
|
|
10112
|
-
product: product,
|
|
10113
|
-
className: "text-lg text-start"
|
|
10223
|
+
}, 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, {
|
|
10224
|
+
product: product === null || product === void 0 ? void 0 : product.productInfo,
|
|
10225
|
+
className: "text-lg text-start " + (!(product !== null && product !== void 0 && product.isShowProductPriceOnLanding) ? "invisible" : "")
|
|
10114
10226
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
10115
10227
|
className: "flex flex-col md:flex-row gap-2 md:items-center md:gap-6 "
|
|
10116
10228
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -10158,7 +10270,7 @@ var ProductList7 = function ProductList7(props) {
|
|
|
10158
10270
|
Link: Link,
|
|
10159
10271
|
shopConfigStyle: shopConfigStyle,
|
|
10160
10272
|
key: index,
|
|
10161
|
-
product: product
|
|
10273
|
+
product: product
|
|
10162
10274
|
});
|
|
10163
10275
|
})) : /*#__PURE__*/React__default.createElement(NotFoundProduct, null), (products === null || products === void 0 ? void 0 : products.length) > 4 ? /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
10164
10276
|
href: "/san-pham",
|
|
@@ -10285,9 +10397,10 @@ var Products2 = function Products2(props) {
|
|
|
10285
10397
|
className: "px-2 lg:px-3",
|
|
10286
10398
|
key: "dfg-" + index
|
|
10287
10399
|
}, /*#__PURE__*/React__default.createElement(ProductItem, {
|
|
10288
|
-
product: product
|
|
10400
|
+
product: product,
|
|
10289
10401
|
Link: Link,
|
|
10290
|
-
shopConfigStyle: shopConfigStyle
|
|
10402
|
+
shopConfigStyle: shopConfigStyle,
|
|
10403
|
+
classNamePrice: "text-base md:text-lg"
|
|
10291
10404
|
}));
|
|
10292
10405
|
})) : /*#__PURE__*/React__default.createElement(NotFoundProduct, null)), /*#__PURE__*/React__default.createElement("div", {
|
|
10293
10406
|
className: "absolute left-0 top-1/2 w-full flex justify-between px-2 md:px-4 lg:px-6"
|
|
@@ -10397,9 +10510,7 @@ var Products3 = function Products3(props) {
|
|
|
10397
10510
|
loading = _ProductController.loading,
|
|
10398
10511
|
page = _ProductController.page;
|
|
10399
10512
|
var _CategoryController = CategoryController(_extends({}, props, {
|
|
10400
|
-
|
|
10401
|
-
type: "0"
|
|
10402
|
-
}
|
|
10513
|
+
types: "0"
|
|
10403
10514
|
})),
|
|
10404
10515
|
categories = _CategoryController.categories;
|
|
10405
10516
|
useEffect(function () {
|
|
@@ -10465,7 +10576,7 @@ var Products3 = function Products3(props) {
|
|
|
10465
10576
|
Link: Link,
|
|
10466
10577
|
key: index,
|
|
10467
10578
|
shopConfigStyle: shopConfigStyle,
|
|
10468
|
-
product: product
|
|
10579
|
+
product: product
|
|
10469
10580
|
});
|
|
10470
10581
|
})) : /*#__PURE__*/React__default.createElement(NotFoundProduct, null), (page === null || page === void 0 ? void 0 : page.total_pages) > 1 ? /*#__PURE__*/React__default.createElement(Pagination, _extends({
|
|
10471
10582
|
className: "mt-12"
|
|
@@ -10488,7 +10599,9 @@ var Products9 = function Products9(props) {
|
|
|
10488
10599
|
}),
|
|
10489
10600
|
params = _useState[0],
|
|
10490
10601
|
setParams = _useState[1];
|
|
10491
|
-
var _CategoryController = CategoryController(_extends({}, props
|
|
10602
|
+
var _CategoryController = CategoryController(_extends({}, props, {
|
|
10603
|
+
types: "0"
|
|
10604
|
+
})),
|
|
10492
10605
|
_CategoryController$c = _CategoryController.categories,
|
|
10493
10606
|
categories = _CategoryController$c === void 0 ? [] : _CategoryController$c;
|
|
10494
10607
|
var _ProductController = ProductController(_extends({}, props, {
|
|
@@ -10512,9 +10625,8 @@ var Products9 = function Products9(props) {
|
|
|
10512
10625
|
acc[categoryName].push(product);
|
|
10513
10626
|
return acc;
|
|
10514
10627
|
}, {});
|
|
10515
|
-
console.log(groupedProducts);
|
|
10516
10628
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
10517
|
-
className: SECTION_CLASS + " flex flex-col gap-4
|
|
10629
|
+
className: SECTION_CLASS + " flex flex-col gap-4 md:!my-6 md:gap-6 "
|
|
10518
10630
|
}, /*#__PURE__*/React__default.createElement(CarouselItem, {
|
|
10519
10631
|
data: categories,
|
|
10520
10632
|
onClick: handleChooseCategory
|
|
@@ -10541,7 +10653,7 @@ var Products9 = function Products9(props) {
|
|
|
10541
10653
|
return /*#__PURE__*/React__default.createElement(ProductItem, {
|
|
10542
10654
|
Link: Link,
|
|
10543
10655
|
shopConfigStyle: shopConfigStyle,
|
|
10544
|
-
product: product
|
|
10656
|
+
product: product,
|
|
10545
10657
|
key: product === null || product === void 0 ? void 0 : product.landingShopProductId
|
|
10546
10658
|
});
|
|
10547
10659
|
}) : null));
|
|
@@ -10562,7 +10674,9 @@ var Products10 = function Products10(props) {
|
|
|
10562
10674
|
ProductItem = _props$ProductItem === void 0 ? null : _props$ProductItem,
|
|
10563
10675
|
_props$Link = props.Link,
|
|
10564
10676
|
Link = _props$Link === void 0 ? null : _props$Link;
|
|
10565
|
-
var _CategoryController = CategoryController(props
|
|
10677
|
+
var _CategoryController = CategoryController(_extends({}, props, {
|
|
10678
|
+
types: "0"
|
|
10679
|
+
})),
|
|
10566
10680
|
_CategoryController$c = _CategoryController.categories,
|
|
10567
10681
|
categories = _CategoryController$c === void 0 ? [] : _CategoryController$c;
|
|
10568
10682
|
var _ProductController = ProductController(_extends({}, props, {
|
|
@@ -10593,7 +10707,7 @@ var Products10 = function Products10(props) {
|
|
|
10593
10707
|
Link: Link,
|
|
10594
10708
|
className: "border-0 bg-bgSecondary",
|
|
10595
10709
|
shopConfigStyle: shopConfigStyle,
|
|
10596
|
-
product: product
|
|
10710
|
+
product: product,
|
|
10597
10711
|
key: "zjk-" + idx
|
|
10598
10712
|
});
|
|
10599
10713
|
})) : /*#__PURE__*/React__default.createElement(NotFoundProduct, null));
|
|
@@ -10642,7 +10756,7 @@ var Products11 = function Products11(props) {
|
|
|
10642
10756
|
filterItem = _useState5[0],
|
|
10643
10757
|
setFilterItem = _useState5[1];
|
|
10644
10758
|
var _CategoryController = CategoryController(_extends({}, props, {
|
|
10645
|
-
|
|
10759
|
+
types: "0"
|
|
10646
10760
|
})),
|
|
10647
10761
|
_CategoryController$c = _CategoryController.categories,
|
|
10648
10762
|
categories = _CategoryController$c === void 0 ? [] : _CategoryController$c;
|
|
@@ -10714,10 +10828,10 @@ var Products11 = function Products11(props) {
|
|
|
10714
10828
|
}
|
|
10715
10829
|
};
|
|
10716
10830
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
10717
|
-
className: SECTION_CLASS + " grid grid-cols-1 !
|
|
10831
|
+
className: SECTION_CLASS + " grid grid-cols-1 !my-6 !md:my-6 md:grid-cols-4 gap-6"
|
|
10718
10832
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10719
10833
|
className: "md:sticky top-0 self-start"
|
|
10720
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10834
|
+
}, (categories === null || categories === void 0 ? void 0 : categories.length) > 0 ? /*#__PURE__*/React__default.createElement("div", {
|
|
10721
10835
|
className: " flex flex-col gap-2 rounded-3xl bg-bgSecondary p-4 max-h-96 overflow-y-auto"
|
|
10722
10836
|
}, categories === null || categories === void 0 ? void 0 : categories.map(function (item, index) {
|
|
10723
10837
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -10727,10 +10841,10 @@ var Products11 = function Products11(props) {
|
|
|
10727
10841
|
handleChooseCategory(item);
|
|
10728
10842
|
}
|
|
10729
10843
|
}, item === null || item === void 0 ? void 0 : item.cateName);
|
|
10730
|
-
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
10844
|
+
})) : null), /*#__PURE__*/React__default.createElement("div", {
|
|
10731
10845
|
className: "md:col-span-3 flex flex-col gap-6"
|
|
10732
10846
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10733
|
-
className: "flex gap-4"
|
|
10847
|
+
className: "flex gap-4 flex-wrap"
|
|
10734
10848
|
}, listFilter === null || listFilter === void 0 ? void 0 : listFilter.map(function (item, index) {
|
|
10735
10849
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
10736
10850
|
key: "kgkf-" + index,
|
|
@@ -10751,11 +10865,11 @@ var Products11 = function Products11(props) {
|
|
|
10751
10865
|
}, /*#__PURE__*/React__default.createElement(ProductItem, {
|
|
10752
10866
|
Link: Link,
|
|
10753
10867
|
shopConfigStyle: shopConfigStyle,
|
|
10754
|
-
product: product
|
|
10868
|
+
product: product,
|
|
10755
10869
|
key: product === null || product === void 0 ? void 0 : product.landingShopProductId
|
|
10756
10870
|
}));
|
|
10757
10871
|
}) : /*#__PURE__*/React__default.createElement("div", {
|
|
10758
|
-
className: "
|
|
10872
|
+
className: "col-span-2 lg:col-span-3 mt-20 m-auto"
|
|
10759
10873
|
}, /*#__PURE__*/React__default.createElement(NotFoundProduct, null)))), /*#__PURE__*/React__default.createElement("div", {
|
|
10760
10874
|
className: "w-full m-auto"
|
|
10761
10875
|
}, (page === null || page === void 0 ? void 0 : page.total_pages) > 1 ? /*#__PURE__*/React__default.createElement(Pagination, {
|
|
@@ -10767,6 +10881,81 @@ var Products11 = function Products11(props) {
|
|
|
10767
10881
|
}) : null)));
|
|
10768
10882
|
};
|
|
10769
10883
|
|
|
10884
|
+
var ProductItem9 = function ProductItem9(props) {
|
|
10885
|
+
var _product$productInfo;
|
|
10886
|
+
var product = props.product;
|
|
10887
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
10888
|
+
className: "flex border-b border-stroke items-center py-4"
|
|
10889
|
+
}, /*#__PURE__*/React__default.createElement(ProductImage, {
|
|
10890
|
+
product: product === null || product === void 0 ? void 0 : product.productInfo,
|
|
10891
|
+
className: "!w-24 rounded-lg"
|
|
10892
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
10893
|
+
className: "ml-4 flex-1"
|
|
10894
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10895
|
+
className: "text-xl"
|
|
10896
|
+
}, 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", {
|
|
10897
|
+
className: "mt-2"
|
|
10898
|
+
}, /*#__PURE__*/React__default.createElement(ProductPrice, {
|
|
10899
|
+
product: product === null || product === void 0 ? void 0 : product.productInfo,
|
|
10900
|
+
priceClassName: "!font-normal text-lg"
|
|
10901
|
+
})) : null));
|
|
10902
|
+
};
|
|
10903
|
+
|
|
10904
|
+
var Products12 = function Products12(props) {
|
|
10905
|
+
var _props$shopConfigStyl = props.shopConfigStyle,
|
|
10906
|
+
shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
|
|
10907
|
+
_props$data = props.data,
|
|
10908
|
+
data = _props$data === void 0 ? {} : _props$data,
|
|
10909
|
+
_props$SectionTitle = props.SectionTitle,
|
|
10910
|
+
SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle,
|
|
10911
|
+
_props$Link = props.Link,
|
|
10912
|
+
Link = _props$Link === void 0 ? null : _props$Link;
|
|
10913
|
+
var _useState = useState({
|
|
10914
|
+
types: "0"
|
|
10915
|
+
}),
|
|
10916
|
+
params = _useState[0],
|
|
10917
|
+
setParams = _useState[1];
|
|
10918
|
+
var _CategoryController = CategoryController(_extends({}, props, {
|
|
10919
|
+
types: "0"
|
|
10920
|
+
})),
|
|
10921
|
+
categories = _CategoryController.categories;
|
|
10922
|
+
var _ProductController = ProductController(_extends({}, props, {
|
|
10923
|
+
params: params
|
|
10924
|
+
})),
|
|
10925
|
+
_ProductController$pr = _ProductController.products,
|
|
10926
|
+
products = _ProductController$pr === void 0 ? [] : _ProductController$pr,
|
|
10927
|
+
loading = _ProductController.loading;
|
|
10928
|
+
var handleFilterByCategory = function handleFilterByCategory(category) {
|
|
10929
|
+
setParams(function (prev) {
|
|
10930
|
+
return _extends({}, prev, {
|
|
10931
|
+
categoryId: category === null || category === void 0 ? void 0 : category.categoryId
|
|
10932
|
+
});
|
|
10933
|
+
});
|
|
10934
|
+
};
|
|
10935
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
10936
|
+
className: SECTION_DEFAULT_CLASS + " flex flex-col gap-6"
|
|
10937
|
+
}, /*#__PURE__*/React__default.createElement(SectionTitle, {
|
|
10938
|
+
data: data,
|
|
10939
|
+
shopConfigStyle: shopConfigStyle
|
|
10940
|
+
}), /*#__PURE__*/React__default.createElement(CarouselItem, {
|
|
10941
|
+
isNavigateButton: false,
|
|
10942
|
+
data: categories,
|
|
10943
|
+
onClick: handleFilterByCategory
|
|
10944
|
+
}), loading ? /*#__PURE__*/React__default.createElement("div", {
|
|
10945
|
+
className: "flex w-full justify-center p-12"
|
|
10946
|
+
}, /*#__PURE__*/React__default.createElement(Loading, null)) : products !== null && products !== void 0 && products.length ? /*#__PURE__*/React__default.createElement("div", {
|
|
10947
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-x-12"
|
|
10948
|
+
}, products === null || products === void 0 ? void 0 : products.map(function (product, index) {
|
|
10949
|
+
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
10950
|
+
key: index,
|
|
10951
|
+
Link: Link,
|
|
10952
|
+
href: getLinkProductDetail(product === null || product === void 0 ? void 0 : product.productInfo)
|
|
10953
|
+
}, /*#__PURE__*/React__default.createElement(ProductItem9, {
|
|
10954
|
+
product: product
|
|
10955
|
+
}));
|
|
10956
|
+
})) : /*#__PURE__*/React__default.createElement(NotFoundProduct, null)));
|
|
10957
|
+
};
|
|
10958
|
+
|
|
10770
10959
|
var ProductCategory2 = function ProductCategory2(props) {
|
|
10771
10960
|
var _products$slice;
|
|
10772
10961
|
var _props$Link = props.Link,
|
|
@@ -10782,7 +10971,9 @@ var ProductCategory2 = function ProductCategory2(props) {
|
|
|
10782
10971
|
}),
|
|
10783
10972
|
params = _useState[0],
|
|
10784
10973
|
setParams = _useState[1];
|
|
10785
|
-
var _CategoryController = CategoryController(_extends({}, props
|
|
10974
|
+
var _CategoryController = CategoryController(_extends({}, props, {
|
|
10975
|
+
types: "0"
|
|
10976
|
+
})),
|
|
10786
10977
|
_CategoryController$c = _CategoryController.categories,
|
|
10787
10978
|
categories = _CategoryController$c === void 0 ? [] : _CategoryController$c;
|
|
10788
10979
|
var _ProductController = ProductController(_extends({}, props, {
|
|
@@ -10823,7 +11014,7 @@ var ProductCategory2 = function ProductCategory2(props) {
|
|
|
10823
11014
|
return /*#__PURE__*/React__default.createElement(ProductItem, {
|
|
10824
11015
|
Link: Link,
|
|
10825
11016
|
shopConfigStyle: shopConfigStyle,
|
|
10826
|
-
product: product
|
|
11017
|
+
product: product,
|
|
10827
11018
|
key: "zjk-" + idx
|
|
10828
11019
|
});
|
|
10829
11020
|
})) : /*#__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, {
|
|
@@ -10861,7 +11052,7 @@ var ProductSale2 = function ProductSale2(props) {
|
|
|
10861
11052
|
}, products === null || products === void 0 ? void 0 : products.map(function (product, index) {
|
|
10862
11053
|
return /*#__PURE__*/React__default.createElement(ProductItem, {
|
|
10863
11054
|
key: index,
|
|
10864
|
-
product: product
|
|
11055
|
+
product: product
|
|
10865
11056
|
});
|
|
10866
11057
|
})), /*#__PURE__*/React__default.createElement(Button, {
|
|
10867
11058
|
label: "Xem tất cả",
|
|
@@ -10926,7 +11117,9 @@ var ProductSearch1 = function ProductSearch1(props) {
|
|
|
10926
11117
|
});
|
|
10927
11118
|
}, [keywordValue]);
|
|
10928
11119
|
useEffect(function () {
|
|
10929
|
-
if ((products === null || products === void 0 ? void 0 : products.length) > 0) setProductsFilter(products);
|
|
11120
|
+
if ((products === null || products === void 0 ? void 0 : products.length) > 0) setProductsFilter(products);else {
|
|
11121
|
+
setProductsFilter([]);
|
|
11122
|
+
}
|
|
10930
11123
|
}, [products]);
|
|
10931
11124
|
var handleGetMoreProducts = function handleGetMoreProducts() {
|
|
10932
11125
|
setIsGetMore(false);
|
|
@@ -10976,7 +11169,7 @@ var ProductSearch1 = function ProductSearch1(props) {
|
|
|
10976
11169
|
}, 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) {
|
|
10977
11170
|
return /*#__PURE__*/React__default.createElement(ProductItem, {
|
|
10978
11171
|
Link: Link,
|
|
10979
|
-
product: product
|
|
11172
|
+
product: product,
|
|
10980
11173
|
key: "htrhr-" + idx
|
|
10981
11174
|
});
|
|
10982
11175
|
})) : /*#__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, {
|
|
@@ -11020,7 +11213,7 @@ var ProductHot1 = function ProductHot1(props) {
|
|
|
11020
11213
|
}));
|
|
11021
11214
|
};
|
|
11022
11215
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
11023
|
-
className: SECTION_CLASS + " flex flex-col gap-
|
|
11216
|
+
className: SECTION_CLASS + " flex flex-col gap-6 md:gap-12"
|
|
11024
11217
|
}, /*#__PURE__*/React__default.createElement(SectionTitle, {
|
|
11025
11218
|
data: data,
|
|
11026
11219
|
shopConfigStyle: shopConfigStyle
|
|
@@ -11032,7 +11225,7 @@ var ProductHot1 = function ProductHot1(props) {
|
|
|
11032
11225
|
return /*#__PURE__*/React__default.createElement(ProductItem, {
|
|
11033
11226
|
Link: Link,
|
|
11034
11227
|
shopConfigStyle: shopConfigStyle,
|
|
11035
|
-
product: product
|
|
11228
|
+
product: product,
|
|
11036
11229
|
key: "zjk-" + idx
|
|
11037
11230
|
});
|
|
11038
11231
|
})) : /*#__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, {
|
|
@@ -11081,7 +11274,7 @@ var ProductHot3 = function ProductHot3(props) {
|
|
|
11081
11274
|
Link: Link,
|
|
11082
11275
|
shopConfigStyle: shopConfigStyle,
|
|
11083
11276
|
key: "htjtr-" + index,
|
|
11084
|
-
product: product
|
|
11277
|
+
product: product
|
|
11085
11278
|
});
|
|
11086
11279
|
}))), /*#__PURE__*/React__default.createElement(Dash, {
|
|
11087
11280
|
color: secondary
|
|
@@ -11123,7 +11316,7 @@ var ProductsTop1 = function ProductsTop1(props) {
|
|
|
11123
11316
|
Link: Link,
|
|
11124
11317
|
className: "border-0",
|
|
11125
11318
|
shopConfigStyle: shopConfigStyle,
|
|
11126
|
-
product: product
|
|
11319
|
+
product: product,
|
|
11127
11320
|
key: "htrhr-" + idx
|
|
11128
11321
|
});
|
|
11129
11322
|
})) : /*#__PURE__*/React__default.createElement(NotFoundProduct, null));
|
|
@@ -11173,7 +11366,7 @@ var ProductList5 = function ProductList5(props) {
|
|
|
11173
11366
|
return /*#__PURE__*/React__default.createElement(ProductItem, {
|
|
11174
11367
|
Link: Link,
|
|
11175
11368
|
shopConfigStyle: shopConfigStyle,
|
|
11176
|
-
product: product
|
|
11369
|
+
product: product,
|
|
11177
11370
|
key: "htrhr-" + idx
|
|
11178
11371
|
});
|
|
11179
11372
|
})) : /*#__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, {
|
|
@@ -11228,7 +11421,7 @@ var ProductHighlight1 = function ProductHighlight1(props) {
|
|
|
11228
11421
|
}, 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) {
|
|
11229
11422
|
return /*#__PURE__*/React__default.createElement(ProductItem, {
|
|
11230
11423
|
Link: Link,
|
|
11231
|
-
product: product
|
|
11424
|
+
product: product,
|
|
11232
11425
|
shopConfigStyle: shopConfigStyle,
|
|
11233
11426
|
key: "zjk-" + idx
|
|
11234
11427
|
});
|
|
@@ -11811,15 +12004,312 @@ var BookingForm6 = function BookingForm6(props) {
|
|
|
11811
12004
|
})));
|
|
11812
12005
|
};
|
|
11813
12006
|
|
|
11814
|
-
var
|
|
11815
|
-
var
|
|
11816
|
-
|
|
11817
|
-
_props$
|
|
11818
|
-
|
|
11819
|
-
|
|
12007
|
+
var TextArea = forwardRef(function (props, ref) {
|
|
12008
|
+
var _props$label = props.label,
|
|
12009
|
+
label = _props$label === void 0 ? "" : _props$label,
|
|
12010
|
+
_props$placeholder = props.placeholder,
|
|
12011
|
+
placeholder = _props$placeholder === void 0 ? "" : _props$placeholder,
|
|
12012
|
+
_props$rules = props.rules,
|
|
12013
|
+
rules = _props$rules === void 0 ? [] : _props$rules,
|
|
12014
|
+
_props$textareaClassN = props.textareaClassName,
|
|
12015
|
+
textareaClassName = _props$textareaClassN === void 0 ? "" : _props$textareaClassN,
|
|
12016
|
+
_props$className = props.className,
|
|
12017
|
+
className = _props$className === void 0 ? "" : _props$className,
|
|
12018
|
+
_props$defaultValue = props.defaultValue,
|
|
12019
|
+
defaultValue = _props$defaultValue === void 0 ? "" : _props$defaultValue,
|
|
12020
|
+
_props$labelClassName = props.labelClassName,
|
|
12021
|
+
labelClassName = _props$labelClassName === void 0 ? "" : _props$labelClassName,
|
|
12022
|
+
_props$onChange = props.onChange,
|
|
12023
|
+
onChange = _props$onChange === void 0 ? function () {} : _props$onChange;
|
|
12024
|
+
var _useState = useState(defaultValue),
|
|
12025
|
+
value = _useState[0],
|
|
12026
|
+
_setValue = _useState[1];
|
|
12027
|
+
var _useState2 = useState(""),
|
|
12028
|
+
error = _useState2[0],
|
|
12029
|
+
_setError = _useState2[1];
|
|
12030
|
+
useImperativeHandle(ref, function () {
|
|
12031
|
+
return {
|
|
12032
|
+
validateData: function validateData() {
|
|
12033
|
+
return _validateData();
|
|
12034
|
+
},
|
|
12035
|
+
setValue: function setValue(text) {
|
|
12036
|
+
return _setValue(text);
|
|
12037
|
+
},
|
|
12038
|
+
getValue: function getValue() {
|
|
12039
|
+
return value;
|
|
12040
|
+
},
|
|
12041
|
+
setError: function setError(err) {
|
|
12042
|
+
return _setError(err);
|
|
12043
|
+
}
|
|
12044
|
+
};
|
|
12045
|
+
});
|
|
12046
|
+
var _validateData = function _validateData() {
|
|
12047
|
+
var count = 0;
|
|
12048
|
+
for (var _iterator = _createForOfIteratorHelperLoose(rules), _step; !(_step = _iterator()).done;) {
|
|
12049
|
+
var _e$pattern;
|
|
12050
|
+
var e = _step.value;
|
|
12051
|
+
if ((e === null || e === void 0 ? void 0 : e.type) === 'required' && value === '') {
|
|
12052
|
+
_setError(e === null || e === void 0 ? void 0 : e.message);
|
|
12053
|
+
count++;
|
|
12054
|
+
break;
|
|
12055
|
+
} 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))) {
|
|
12056
|
+
_setError(e === null || e === void 0 ? void 0 : e.message);
|
|
12057
|
+
count++;
|
|
12058
|
+
break;
|
|
12059
|
+
}
|
|
12060
|
+
}
|
|
12061
|
+
if (count) {
|
|
12062
|
+
return false;
|
|
12063
|
+
} else {
|
|
12064
|
+
_setError('');
|
|
12065
|
+
return true;
|
|
12066
|
+
}
|
|
12067
|
+
};
|
|
12068
|
+
var handleOnChangeValue = function handleOnChangeValue(e) {
|
|
12069
|
+
var value = e.target.value;
|
|
12070
|
+
_setValue(value);
|
|
12071
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(value);
|
|
12072
|
+
};
|
|
12073
|
+
var required = !!(rules !== null && rules !== void 0 && rules.find(function (e) {
|
|
12074
|
+
return (e === null || e === void 0 ? void 0 : e.type) === "required";
|
|
12075
|
+
}));
|
|
12076
|
+
var labelRequired = required ? /*#__PURE__*/React__default.createElement("span", {
|
|
12077
|
+
className: "text-danger"
|
|
12078
|
+
}, " *") : null;
|
|
11820
12079
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
11821
|
-
className: "" +
|
|
11822
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
12080
|
+
className: "" + className
|
|
12081
|
+
}, label ? /*#__PURE__*/React__default.createElement("div", {
|
|
12082
|
+
className: "mb-1 " + labelClassName
|
|
12083
|
+
}, label, labelRequired) : null, /*#__PURE__*/React__default.createElement("textarea", {
|
|
12084
|
+
name: "",
|
|
12085
|
+
id: "",
|
|
12086
|
+
className: "focus:outline-none focus:ring-0 border rounded-xl min-h-24 " + textareaClassName,
|
|
12087
|
+
placeholder: placeholder,
|
|
12088
|
+
value: value,
|
|
12089
|
+
onChange: function onChange(e) {
|
|
12090
|
+
handleOnChangeValue(e);
|
|
12091
|
+
}
|
|
12092
|
+
}), error ? /*#__PURE__*/React__default.createElement("div", {
|
|
12093
|
+
className: "text-danger"
|
|
12094
|
+
}, error) : null);
|
|
12095
|
+
});
|
|
12096
|
+
|
|
12097
|
+
var BookingFoodForm = function BookingFoodForm(props) {
|
|
12098
|
+
var _props$shopConfig = props.shopConfig,
|
|
12099
|
+
shopConfig = _props$shopConfig === void 0 ? {} : _props$shopConfig,
|
|
12100
|
+
_props$shopConfigStyl = props.shopConfigStyle,
|
|
12101
|
+
shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
|
|
12102
|
+
_props$onCloseFormBoo = props.onCloseFormBooking,
|
|
12103
|
+
onCloseFormBooking = _props$onCloseFormBoo === void 0 ? function () {} : _props$onCloseFormBoo,
|
|
12104
|
+
_props$defaultValue = props.defaultValue,
|
|
12105
|
+
defaultValue = _props$defaultValue === void 0 ? [] : _props$defaultValue,
|
|
12106
|
+
_props$className = props.className,
|
|
12107
|
+
className = _props$className === void 0 ? "" : _props$className,
|
|
12108
|
+
_props$isModalBooking = props.isModalBooking,
|
|
12109
|
+
isModalBooking = _props$isModalBooking === void 0 ? false : _props$isModalBooking;
|
|
12110
|
+
var _useState = useState(defaultValue),
|
|
12111
|
+
listProductSelected = _useState[0],
|
|
12112
|
+
setListProductSelected = _useState[1];
|
|
12113
|
+
var inputNameRef = useRef(null);
|
|
12114
|
+
var inputDateRef = useRef(null);
|
|
12115
|
+
var inputPhoneNumberRef = useRef(null);
|
|
12116
|
+
var inputQuantityRef = useRef(null);
|
|
12117
|
+
var _useState2 = useState(false),
|
|
12118
|
+
isOpenPopup = _useState2[0],
|
|
12119
|
+
setIsOpenPopup = _useState2[1];
|
|
12120
|
+
var _useState3 = useState(false),
|
|
12121
|
+
isHiddenForm = _useState3[0],
|
|
12122
|
+
setIsHiddenForm = _useState3[1];
|
|
12123
|
+
var _BookingController = BookingController(props),
|
|
12124
|
+
_BookingController$cr = _BookingController.createSchedule,
|
|
12125
|
+
createSchedule = _BookingController$cr === void 0 ? function () {} : _BookingController$cr;
|
|
12126
|
+
var checkDateBooking = function checkDateBooking() {
|
|
12127
|
+
var _inputDateRef$current;
|
|
12128
|
+
var scheduleDate = inputDateRef === null || inputDateRef === void 0 ? void 0 : (_inputDateRef$current = inputDateRef.current) === null || _inputDateRef$current === void 0 ? void 0 : _inputDateRef$current.getValue();
|
|
12129
|
+
return scheduleDate && scheduleDate >= Date.now();
|
|
12130
|
+
};
|
|
12131
|
+
var handleSubmit = function handleSubmit() {
|
|
12132
|
+
try {
|
|
12133
|
+
var _inputNameRef$current, _inputPhoneNumberRef$, _inputDateRef$current2, _inputQuantityRef$cur;
|
|
12134
|
+
var validateName = inputNameRef === null || inputNameRef === void 0 ? void 0 : (_inputNameRef$current = inputNameRef.current) === null || _inputNameRef$current === void 0 ? void 0 : _inputNameRef$current.validateData();
|
|
12135
|
+
var validatePhoneNumber = inputPhoneNumberRef === null || inputPhoneNumberRef === void 0 ? void 0 : (_inputPhoneNumberRef$ = inputPhoneNumberRef.current) === null || _inputPhoneNumberRef$ === void 0 ? void 0 : _inputPhoneNumberRef$.validateData();
|
|
12136
|
+
var validateDate = inputDateRef === null || inputDateRef === void 0 ? void 0 : (_inputDateRef$current2 = inputDateRef.current) === null || _inputDateRef$current2 === void 0 ? void 0 : _inputDateRef$current2.validateData();
|
|
12137
|
+
var validateQuantity = inputQuantityRef === null || inputQuantityRef === void 0 ? void 0 : (_inputQuantityRef$cur = inputQuantityRef.current) === null || _inputQuantityRef$cur === void 0 ? void 0 : _inputQuantityRef$cur.validateData();
|
|
12138
|
+
var _temp = function () {
|
|
12139
|
+
if (validateName && validatePhoneNumber && validateDate && validateQuantity) {
|
|
12140
|
+
var _inputPhoneNumberRef$2, _inputNameRef$current2, _inputDateRef$current3;
|
|
12141
|
+
var customerPhone = inputPhoneNumberRef === null || inputPhoneNumberRef === void 0 ? void 0 : (_inputPhoneNumberRef$2 = inputPhoneNumberRef.current) === null || _inputPhoneNumberRef$2 === void 0 ? void 0 : _inputPhoneNumberRef$2.getValue();
|
|
12142
|
+
var customerName = inputNameRef === null || inputNameRef === void 0 ? void 0 : (_inputNameRef$current2 = inputNameRef.current) === null || _inputNameRef$current2 === void 0 ? void 0 : _inputNameRef$current2.getValue();
|
|
12143
|
+
var scheduleDate = inputDateRef === null || inputDateRef === void 0 ? void 0 : (_inputDateRef$current3 = inputDateRef.current) === null || _inputDateRef$current3 === void 0 ? void 0 : _inputDateRef$current3.getValue();
|
|
12144
|
+
var services = listProductSelected === null || listProductSelected === void 0 ? void 0 : listProductSelected.map(function (item) {
|
|
12145
|
+
var _item$technical;
|
|
12146
|
+
return {
|
|
12147
|
+
productId: item === null || item === void 0 ? void 0 : item.value,
|
|
12148
|
+
technicalStaffIds: [item === null || item === void 0 ? void 0 : (_item$technical = item.technical) === null || _item$technical === void 0 ? void 0 : _item$technical.sysUserId],
|
|
12149
|
+
quantity: item === null || item === void 0 ? void 0 : item.quantity,
|
|
12150
|
+
oldService: item === null || item === void 0 ? void 0 : item.oldService
|
|
12151
|
+
};
|
|
12152
|
+
});
|
|
12153
|
+
var shopId = shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopId;
|
|
12154
|
+
console.log("check payload:::", services);
|
|
12155
|
+
return Promise.resolve(createSchedule(customerName, customerPhone, scheduleDate, services, shopId)).then(function (response) {
|
|
12156
|
+
var _response$data, _response$data$status;
|
|
12157
|
+
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') {
|
|
12158
|
+
var _inputPhoneNumberRef$3, _inputNameRef$current3, _inputDateRef$current4;
|
|
12159
|
+
if (isModalBooking) {
|
|
12160
|
+
setIsHiddenForm(true);
|
|
12161
|
+
}
|
|
12162
|
+
setIsOpenPopup(true);
|
|
12163
|
+
inputPhoneNumberRef === null || inputPhoneNumberRef === void 0 ? void 0 : (_inputPhoneNumberRef$3 = inputPhoneNumberRef.current) === null || _inputPhoneNumberRef$3 === void 0 ? void 0 : _inputPhoneNumberRef$3.setValue("");
|
|
12164
|
+
inputNameRef === null || inputNameRef === void 0 ? void 0 : (_inputNameRef$current3 = inputNameRef.current) === null || _inputNameRef$current3 === void 0 ? void 0 : _inputNameRef$current3.setValue("");
|
|
12165
|
+
inputDateRef === null || inputDateRef === void 0 ? void 0 : (_inputDateRef$current4 = inputDateRef.current) === null || _inputDateRef$current4 === void 0 ? void 0 : _inputDateRef$current4.setValue(new Date());
|
|
12166
|
+
setListProductSelected([]);
|
|
12167
|
+
}
|
|
12168
|
+
});
|
|
12169
|
+
}
|
|
12170
|
+
}();
|
|
12171
|
+
return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
|
|
12172
|
+
} catch (e) {
|
|
12173
|
+
return Promise.reject(e);
|
|
12174
|
+
}
|
|
12175
|
+
};
|
|
12176
|
+
var handleClosePopup = function handleClosePopup() {
|
|
12177
|
+
setIsOpenPopup(false);
|
|
12178
|
+
setIsHiddenForm(false);
|
|
12179
|
+
};
|
|
12180
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, !isHiddenForm ? /*#__PURE__*/React__default.createElement("div", {
|
|
12181
|
+
className: "flex flex-col gap-4 rounded-2xl p-6 border bg-white " + className
|
|
12182
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
12183
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-4"
|
|
12184
|
+
}, /*#__PURE__*/React__default.createElement(Input, {
|
|
12185
|
+
ref: inputNameRef,
|
|
12186
|
+
label: "Họ và tên",
|
|
12187
|
+
placeholder: "Nhập họ tên",
|
|
12188
|
+
rules: [{
|
|
12189
|
+
type: "required",
|
|
12190
|
+
message: "Bắt buộc nhập họ tên"
|
|
12191
|
+
}],
|
|
12192
|
+
className: "w-full rounded-lg bg-white",
|
|
12193
|
+
inputClassName: "w-full focus:outline-none focus:ring-0"
|
|
12194
|
+
}), /*#__PURE__*/React__default.createElement(InputPhoneNumber, {
|
|
12195
|
+
ref: inputPhoneNumberRef,
|
|
12196
|
+
name: "customerPhone",
|
|
12197
|
+
label: "Số điện thoại",
|
|
12198
|
+
placeholder: "Nhập số điện thoại",
|
|
12199
|
+
rules: [{
|
|
12200
|
+
type: "required",
|
|
12201
|
+
message: "Bắt buộc nhập số điện thoại"
|
|
12202
|
+
}, {
|
|
12203
|
+
type: "pattern",
|
|
12204
|
+
pattern: pattern === null || pattern === void 0 ? void 0 : pattern.phoneNumberPattern,
|
|
12205
|
+
message: "Số điện thoại không hợp lệ!"
|
|
12206
|
+
}],
|
|
12207
|
+
className: "bg-bgSecondary"
|
|
12208
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
12209
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-4"
|
|
12210
|
+
}, /*#__PURE__*/React__default.createElement(Input, {
|
|
12211
|
+
ref: inputQuantityRef,
|
|
12212
|
+
label: "Số người",
|
|
12213
|
+
placeholder: "Nhập số người",
|
|
12214
|
+
rules: [{
|
|
12215
|
+
type: "required",
|
|
12216
|
+
message: "Bắt buộc nhập số người"
|
|
12217
|
+
}],
|
|
12218
|
+
className: "w-full rounded-lg bg-white",
|
|
12219
|
+
inputClassName: "w-full focus:outline-none focus:ring-0"
|
|
12220
|
+
}), /*#__PURE__*/React__default.createElement(DateTimePicker, {
|
|
12221
|
+
ref: inputDateRef,
|
|
12222
|
+
label: "Thời gian",
|
|
12223
|
+
className: "w-full rounded-lg",
|
|
12224
|
+
placeholder: "Chọn thời gian",
|
|
12225
|
+
time: true,
|
|
12226
|
+
rules: [{
|
|
12227
|
+
type: "required",
|
|
12228
|
+
message: "Bắt buộc chọn ngày đặt"
|
|
12229
|
+
}, {
|
|
12230
|
+
type: "validate",
|
|
12231
|
+
message: "Thời gian không hợp lệ",
|
|
12232
|
+
validate: checkDateBooking
|
|
12233
|
+
}]
|
|
12234
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
12235
|
+
className: "grid grid-cols-1 gap-6"
|
|
12236
|
+
}, /*#__PURE__*/React__default.createElement(TextArea, {
|
|
12237
|
+
label: "Ghi ch\xFA",
|
|
12238
|
+
placeholder: "Nh\u1EADp ghi ch\xFA (n\u1EBFu c\xF3)",
|
|
12239
|
+
className: " w-full ",
|
|
12240
|
+
textareaClassName: "px-4 py-3 w-full min-h-32"
|
|
12241
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
12242
|
+
className: "text-center"
|
|
12243
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
12244
|
+
label: "Đặt lịch ngay",
|
|
12245
|
+
shopConfigStyle: shopConfigStyle,
|
|
12246
|
+
onClick: handleSubmit
|
|
12247
|
+
}))) : null, isOpenPopup && /*#__PURE__*/React__default.createElement(ModalNotification, {
|
|
12248
|
+
onCloseFormBooking: onCloseFormBooking,
|
|
12249
|
+
onClose: handleClosePopup
|
|
12250
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
12251
|
+
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"
|
|
12252
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
12253
|
+
className: "flex items-center justify-center"
|
|
12254
|
+
}, /*#__PURE__*/React__default.createElement(FaCheckCircle, {
|
|
12255
|
+
className: "h-full text-green-500",
|
|
12256
|
+
style: {
|
|
12257
|
+
fontSize: "56px"
|
|
12258
|
+
}
|
|
12259
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
12260
|
+
className: "font-medium text-2xl"
|
|
12261
|
+
}, "\u0110\u1EB7t l\u1ECBch th\xE0nh c\xF4ng"), /*#__PURE__*/React__default.createElement("div", {
|
|
12262
|
+
className: "text-center"
|
|
12263
|
+
}, "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"))));
|
|
12264
|
+
};
|
|
12265
|
+
|
|
12266
|
+
var BookingTable1 = function BookingTable1(props) {
|
|
12267
|
+
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$;
|
|
12268
|
+
var _props$shopConfigStyl = props.shopConfigStyle,
|
|
12269
|
+
shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
|
|
12270
|
+
_props$shopConfig = props.shopConfig,
|
|
12271
|
+
shopConfig = _props$shopConfig === void 0 ? {} : _props$shopConfig,
|
|
12272
|
+
_props$data = props.data,
|
|
12273
|
+
data = _props$data === void 0 ? {} : _props$data,
|
|
12274
|
+
_props$SectionTitle = props.SectionTitle,
|
|
12275
|
+
SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
|
|
12276
|
+
console.log("booking data", data);
|
|
12277
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
12278
|
+
className: "relative w-full px-4 xl:px-20 py-12"
|
|
12279
|
+
}, /*#__PURE__*/React__default.createElement(SectionTitle, {
|
|
12280
|
+
data: data,
|
|
12281
|
+
shopConfigStyle: shopConfigStyle
|
|
12282
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
12283
|
+
className: "mt-6 md:mt-12 grid grid-cols-1 gap-6 md:grid-cols-3 md:gap-12"
|
|
12284
|
+
}, /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
12285
|
+
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) || "#"
|
|
12286
|
+
}, 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", {
|
|
12287
|
+
className: "text-primary w-full h-auto"
|
|
12288
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
12289
|
+
dangerouslySetInnerHTML: {
|
|
12290
|
+
__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)
|
|
12291
|
+
}
|
|
12292
|
+
})) : /*#__PURE__*/React__default.createElement("img", {
|
|
12293
|
+
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,
|
|
12294
|
+
className: "w-full h-auto"
|
|
12295
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
12296
|
+
className: "mt-4 whitespace-pre-line"
|
|
12297
|
+
}, 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, {
|
|
12298
|
+
shopConfigStyle: shopConfigStyle,
|
|
12299
|
+
shopConfig: shopConfig,
|
|
12300
|
+
className: "col-span-2"
|
|
12301
|
+
})));
|
|
12302
|
+
};
|
|
12303
|
+
|
|
12304
|
+
var Banner1 = function Banner1(props) {
|
|
12305
|
+
var data = props.data,
|
|
12306
|
+
shopConfigStyle = props.shopConfigStyle,
|
|
12307
|
+
_props$SectionTitle = props.SectionTitle,
|
|
12308
|
+
SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
|
|
12309
|
+
var sectionData = data === null || data === void 0 ? void 0 : data.data;
|
|
12310
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
12311
|
+
className: "" + SECTION_DEFAULT_CLASS
|
|
12312
|
+
}, /*#__PURE__*/React__default.createElement(SectionTitle, {
|
|
11823
12313
|
data: data,
|
|
11824
12314
|
shopConfigStyle: shopConfigStyle
|
|
11825
12315
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -11861,7 +12351,7 @@ var Banner2 = function Banner2(props) {
|
|
|
11861
12351
|
data: data,
|
|
11862
12352
|
shopConfigStyle: shopConfigStyle
|
|
11863
12353
|
}), /*#__PURE__*/React__default.createElement(Slider, {
|
|
11864
|
-
className: "center",
|
|
12354
|
+
className: "center mt-6 lg:mt-12",
|
|
11865
12355
|
infinite: false,
|
|
11866
12356
|
slidesToShow: 2,
|
|
11867
12357
|
speed: 500,
|
|
@@ -12155,7 +12645,7 @@ var dataFake = [{
|
|
|
12155
12645
|
title: "Đa dạng thanh toán",
|
|
12156
12646
|
data: [{
|
|
12157
12647
|
svgImage: "",
|
|
12158
|
-
srcImage: /*#__PURE__*/React__default.createElement(
|
|
12648
|
+
srcImage: /*#__PURE__*/React__default.createElement(GrPowerCycle, null),
|
|
12159
12649
|
label: "Chuyển khoản",
|
|
12160
12650
|
link: ""
|
|
12161
12651
|
}, {
|
|
@@ -12192,7 +12682,7 @@ var dataFake = [{
|
|
|
12192
12682
|
label: "Chính sách bảo hành",
|
|
12193
12683
|
link: ""
|
|
12194
12684
|
}, {
|
|
12195
|
-
srcImage: /*#__PURE__*/React__default.createElement(
|
|
12685
|
+
srcImage: /*#__PURE__*/React__default.createElement(GrPowerCycle, null),
|
|
12196
12686
|
svgImage: "",
|
|
12197
12687
|
label: "Chính sách đổi trả",
|
|
12198
12688
|
link: ""
|
|
@@ -12321,11 +12811,10 @@ var Footer1 = function Footer1(props) {
|
|
|
12321
12811
|
href: "/",
|
|
12322
12812
|
className: "flex items-center"
|
|
12323
12813
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
12324
|
-
className: "object-cover w-
|
|
12325
|
-
src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl
|
|
12326
|
-
alt: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName
|
|
12814
|
+
className: "object-cover w-14 max-h-14",
|
|
12815
|
+
src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl
|
|
12327
12816
|
}), /*#__PURE__*/React__default.createElement("h3", {
|
|
12328
|
-
className: "
|
|
12817
|
+
className: "text-2xl md:text-3xl ms-2 font-headingFont ",
|
|
12329
12818
|
style: {
|
|
12330
12819
|
color: primary
|
|
12331
12820
|
}
|
|
@@ -12430,7 +12919,6 @@ var Footer7 = function Footer7(props) {
|
|
|
12430
12919
|
textButton = _shopConfigStyle$colo4 === void 0 ? "#fff" : _shopConfigStyle$colo4,
|
|
12431
12920
|
_shopConfigStyle$colo5 = _shopConfigStyle$colo.bgSecondary,
|
|
12432
12921
|
bgSecondary = _shopConfigStyle$colo5 === void 0 ? "#fff" : _shopConfigStyle$colo5;
|
|
12433
|
-
console.log("Footer7 shopConfig", shopConfig);
|
|
12434
12922
|
var _useState = useState([]),
|
|
12435
12923
|
shopAddressList = _useState[0],
|
|
12436
12924
|
setShopAddressList = _useState[1];
|
|
@@ -12466,11 +12954,10 @@ var Footer7 = function Footer7(props) {
|
|
|
12466
12954
|
href: "/",
|
|
12467
12955
|
className: "flex items-center gap-2"
|
|
12468
12956
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
12469
|
-
className: "object-cover w-14",
|
|
12470
|
-
src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl
|
|
12471
|
-
alt: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName
|
|
12957
|
+
className: "object-cover w-14 max-h-14",
|
|
12958
|
+
src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl
|
|
12472
12959
|
}), /*#__PURE__*/React__default.createElement("h3", {
|
|
12473
|
-
className: " text-2xl md:text-3xl ms-2",
|
|
12960
|
+
className: " text-2xl md:text-3xl ms-2 font-headingFont ",
|
|
12474
12961
|
style: {
|
|
12475
12962
|
color: primary
|
|
12476
12963
|
}
|
|
@@ -12570,10 +13057,11 @@ var RatingStar = function RatingStar(props) {
|
|
|
12570
13057
|
_props$className = props.className,
|
|
12571
13058
|
className = _props$className === void 0 ? "" : _props$className;
|
|
12572
13059
|
var res = [];
|
|
12573
|
-
for (var i = 1; i
|
|
13060
|
+
for (var i = 1; i <= star; i++) {
|
|
12574
13061
|
res.push(/*#__PURE__*/React__default.createElement(FaStar, {
|
|
12575
13062
|
color: "#E2B93B"
|
|
12576
13063
|
}));
|
|
13064
|
+
if (i > 5) break;
|
|
12577
13065
|
}
|
|
12578
13066
|
var decimalPart = star % 1;
|
|
12579
13067
|
if (decimalPart && decimalPart >= 0.5) {
|
|
@@ -12730,6 +13218,46 @@ var CustomerRating6 = function CustomerRating6(props) {
|
|
|
12730
13218
|
}))));
|
|
12731
13219
|
};
|
|
12732
13220
|
|
|
13221
|
+
var CustomerRating8 = function CustomerRating8(props) {
|
|
13222
|
+
var _data$data;
|
|
13223
|
+
var _props$shopConfigStyl = props.shopConfigStyle,
|
|
13224
|
+
shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
|
|
13225
|
+
_props$data = props.data,
|
|
13226
|
+
data = _props$data === void 0 ? {} : _props$data,
|
|
13227
|
+
_props$SectionTitle = props.SectionTitle,
|
|
13228
|
+
SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
|
|
13229
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
13230
|
+
className: SECTION_CLASS + " !my-0 py-12 bg-bgSecondary"
|
|
13231
|
+
}, /*#__PURE__*/React__default.createElement(SectionTitle, {
|
|
13232
|
+
data: data,
|
|
13233
|
+
shopConfigStyle: shopConfigStyle
|
|
13234
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
13235
|
+
className: " mt-6 md:mt-12 grid grid-cols-1 md:grid-cols-3 gap-6"
|
|
13236
|
+
}, data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.map(function (item, index) {
|
|
13237
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
13238
|
+
className: "flex flex-col items-center gap-2 p-4 border border-stroke rounded-2xl ",
|
|
13239
|
+
key: "ht-" + index
|
|
13240
|
+
}, /*#__PURE__*/React__default.createElement("img", {
|
|
13241
|
+
src: item === null || item === void 0 ? void 0 : item.avatar,
|
|
13242
|
+
className: "w-40 h-40 rounded-full object-cover border-8 border-stroke"
|
|
13243
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
13244
|
+
className: "text-xl text-primary"
|
|
13245
|
+
}, item === null || item === void 0 ? void 0 : item.name), /*#__PURE__*/React__default.createElement("div", {
|
|
13246
|
+
className: "text-gray3"
|
|
13247
|
+
}, item === null || item === void 0 ? void 0 : item.description), /*#__PURE__*/React__default.createElement("div", {
|
|
13248
|
+
className: "flex gap-2 "
|
|
13249
|
+
}, /*#__PURE__*/React__default.createElement(RiDoubleQuotesL, {
|
|
13250
|
+
className: "text-gray3",
|
|
13251
|
+
size: 36
|
|
13252
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
13253
|
+
className: "pt-4"
|
|
13254
|
+
}, item === null || item === void 0 ? void 0 : item.content), /*#__PURE__*/React__default.createElement(RiDoubleQuotesL, {
|
|
13255
|
+
className: " mt-auto text-gray3",
|
|
13256
|
+
size: 36
|
|
13257
|
+
})));
|
|
13258
|
+
}))));
|
|
13259
|
+
};
|
|
13260
|
+
|
|
12733
13261
|
var CustomerRating10 = function CustomerRating10(props) {
|
|
12734
13262
|
var _data$data;
|
|
12735
13263
|
var _props$shopConfigStyl = props.shopConfigStyle,
|
|
@@ -12904,6 +13432,45 @@ var Gallery1 = function Gallery1(props) {
|
|
|
12904
13432
|
}));
|
|
12905
13433
|
};
|
|
12906
13434
|
|
|
13435
|
+
var Gallery1$1 = function Gallery1(props) {
|
|
13436
|
+
var _data$data, _data$data$slice, _data$data2, _data$data2$slice, _data$data3, _data$data3$slice;
|
|
13437
|
+
var _props$shopConfigStyl = props.shopConfigStyle,
|
|
13438
|
+
shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
|
|
13439
|
+
_props$data = props.data,
|
|
13440
|
+
data = _props$data === void 0 ? {} : _props$data,
|
|
13441
|
+
_props$SectionTitle = props.SectionTitle,
|
|
13442
|
+
SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
|
|
13443
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
13444
|
+
className: "" + SECTION_DEFAULT_CLASS
|
|
13445
|
+
}, /*#__PURE__*/React__default.createElement(SectionTitle, {
|
|
13446
|
+
data: data,
|
|
13447
|
+
shopConfigStyle: shopConfigStyle
|
|
13448
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
13449
|
+
className: "grid grid-cols-3 gap-2 md:gap-6 mt-6 md:mt-12"
|
|
13450
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
13451
|
+
className: "flex flex-col gap-2 md:gap-4"
|
|
13452
|
+
}, 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) {
|
|
13453
|
+
return /*#__PURE__*/React__default.createElement("img", {
|
|
13454
|
+
src: item === null || item === void 0 ? void 0 : item.srcImage,
|
|
13455
|
+
className: "w-full h-full object-cover rounded-xl md:rounded-2xl"
|
|
13456
|
+
});
|
|
13457
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
13458
|
+
className: "flex flex-col gap-2 md:gap-4"
|
|
13459
|
+
}, 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) {
|
|
13460
|
+
return /*#__PURE__*/React__default.createElement("img", {
|
|
13461
|
+
src: item === null || item === void 0 ? void 0 : item.srcImage,
|
|
13462
|
+
className: "w-full h-full object-cover rounded-xl md:rounded-2xl odd:h-[130%]"
|
|
13463
|
+
});
|
|
13464
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
13465
|
+
className: "flex flex-col gap-2 md:gap-4"
|
|
13466
|
+
}, 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) {
|
|
13467
|
+
return /*#__PURE__*/React__default.createElement("img", {
|
|
13468
|
+
src: item === null || item === void 0 ? void 0 : item.srcImage,
|
|
13469
|
+
className: "w-full h-full object-cover rounded-xl md:rounded-2xl even:h-[130%]"
|
|
13470
|
+
});
|
|
13471
|
+
})))));
|
|
13472
|
+
};
|
|
13473
|
+
|
|
12907
13474
|
var PageTitle1 = function PageTitle1(props) {
|
|
12908
13475
|
var _sectionData$;
|
|
12909
13476
|
var data = props.data,
|
|
@@ -12920,7 +13487,122 @@ var PageTitle1 = function PageTitle1(props) {
|
|
|
12920
13487
|
className: "relative w-full p-20 z-10 flex flex-col gap-6 items-center justify-center"
|
|
12921
13488
|
}, /*#__PURE__*/React__default.createElement("h2", {
|
|
12922
13489
|
className: "text-3xl md:text-5xl text-white leading-[1.6] md:leading-[1.6] text-center font-headingFont"
|
|
12923
|
-
},
|
|
13490
|
+
}, 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)));
|
|
13491
|
+
};
|
|
13492
|
+
|
|
13493
|
+
var PageTitle2 = function PageTitle2(props) {
|
|
13494
|
+
var _sectionData$;
|
|
13495
|
+
var data = props.data,
|
|
13496
|
+
route = props.route;
|
|
13497
|
+
var sectionData = data === null || data === void 0 ? void 0 : data.data;
|
|
13498
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
13499
|
+
className: "relative w-full bg-cover bg-center bg-no-repeat ",
|
|
13500
|
+
style: {
|
|
13501
|
+
backgroundImage: "url(" + (sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$ = sectionData[0]) === null || _sectionData$ === void 0 ? void 0 : _sectionData$.srcImage) + ")"
|
|
13502
|
+
}
|
|
13503
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
13504
|
+
className: "absolute top-0 w-full h-full bg-black opacity-40 z-0"
|
|
13505
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
13506
|
+
className: "relative w-full p-20 z-10 flex flex-col gap-6 items-center justify-center"
|
|
13507
|
+
}, /*#__PURE__*/React__default.createElement("h2", {
|
|
13508
|
+
className: "text-3xl md:text-5xl text-white leading-[1.6] md:leading-[1.6] text-center font-headingFont"
|
|
13509
|
+
}, 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", {
|
|
13510
|
+
className: "text-lg md:text-2xl text-white"
|
|
13511
|
+
}, data === null || data === void 0 ? void 0 : data.sectionDescription) : null));
|
|
13512
|
+
};
|
|
13513
|
+
|
|
13514
|
+
var Breadcrumb1 = function Breadcrumb1(props) {
|
|
13515
|
+
var shopConfigStyle = props.shopConfigStyle,
|
|
13516
|
+
route = props.route,
|
|
13517
|
+
_props$routes = props.routes,
|
|
13518
|
+
routes = _props$routes === void 0 ? [] : _props$routes,
|
|
13519
|
+
_props$Link = props.Link,
|
|
13520
|
+
Link = _props$Link === void 0 ? null : _props$Link,
|
|
13521
|
+
_props$className = props.className,
|
|
13522
|
+
className = _props$className === void 0 ? "" : _props$className,
|
|
13523
|
+
_props$routeClassName = props.routeClassName,
|
|
13524
|
+
routeClassName = _props$routeClassName === void 0 ? "" : _props$routeClassName;
|
|
13525
|
+
var _shopConfigStyle$colo = shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : shopConfigStyle.color,
|
|
13526
|
+
_shopConfigStyle$colo3 = _shopConfigStyle$colo.textHeading,
|
|
13527
|
+
textHeading = _shopConfigStyle$colo3 === void 0 ? "#000" : _shopConfigStyle$colo3;
|
|
13528
|
+
var _useState = useState([]),
|
|
13529
|
+
items = _useState[0],
|
|
13530
|
+
setItems = _useState[1];
|
|
13531
|
+
useEffect(function () {
|
|
13532
|
+
getItems();
|
|
13533
|
+
}, [route]);
|
|
13534
|
+
var getItems = function getItems() {
|
|
13535
|
+
var _route$route, _route$route$split, _route$route$split$fi, _items, _items2;
|
|
13536
|
+
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) {
|
|
13537
|
+
return e === null || e === void 0 ? void 0 : e.length;
|
|
13538
|
+
})) === null || _route$route$split$fi === void 0 ? void 0 : _route$route$split$fi.slice(0, 2);
|
|
13539
|
+
items = (_items = items) === null || _items === void 0 ? void 0 : _items.map(function (e) {
|
|
13540
|
+
var _e, _e$replace, _e$replace$replace, _e$replace$replace$re;
|
|
13541
|
+
if (e === "product") e = "products";else if (e === "service") e = "services";
|
|
13542
|
+
return (routes === null || routes === void 0 ? void 0 : routes.find(function (r) {
|
|
13543
|
+
return (r === null || r === void 0 ? void 0 : r.name) === e;
|
|
13544
|
+
})) || {
|
|
13545
|
+
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, "/")
|
|
13546
|
+
};
|
|
13547
|
+
});
|
|
13548
|
+
(_items2 = items) === null || _items2 === void 0 ? void 0 : _items2.unshift({
|
|
13549
|
+
name: "home",
|
|
13550
|
+
label: "Trang chủ",
|
|
13551
|
+
route: "/"
|
|
13552
|
+
});
|
|
13553
|
+
console.log(items);
|
|
13554
|
+
setItems(items);
|
|
13555
|
+
};
|
|
13556
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
13557
|
+
className: SECTION_DEFAULT_CLASS + " !my-6 flex gap-2 overflow-x-auto scroll-custom " + className
|
|
13558
|
+
}, items === null || items === void 0 ? void 0 : items.map(function (item, index) {
|
|
13559
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
13560
|
+
key: index,
|
|
13561
|
+
className: "flex gap-2 flex-shrink-0"
|
|
13562
|
+
}, index ? /*#__PURE__*/React__default.createElement("div", {
|
|
13563
|
+
className: "text-gray4"
|
|
13564
|
+
}, "/") : null, item !== null && item !== void 0 && item.route ? /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
13565
|
+
Link: Link,
|
|
13566
|
+
href: convertURL(item === null || item === void 0 ? void 0 : item.route) || "#",
|
|
13567
|
+
style: {
|
|
13568
|
+
color: textHeading
|
|
13569
|
+
},
|
|
13570
|
+
className: routeClassName
|
|
13571
|
+
}, item === null || item === void 0 ? void 0 : item.label) : /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.label));
|
|
13572
|
+
}));
|
|
13573
|
+
};
|
|
13574
|
+
|
|
13575
|
+
var PageTitle3 = function PageTitle3(props) {
|
|
13576
|
+
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;
|
|
13577
|
+
var data = props.data,
|
|
13578
|
+
route = props.route,
|
|
13579
|
+
shopConfigStyle = props.shopConfigStyle,
|
|
13580
|
+
_props$routes = props.routes,
|
|
13581
|
+
routes = _props$routes === void 0 ? [] : _props$routes,
|
|
13582
|
+
_props$Link = props.Link,
|
|
13583
|
+
Link = _props$Link === void 0 ? null : _props$Link;
|
|
13584
|
+
var sectionData = data === null || data === void 0 ? void 0 : data.data;
|
|
13585
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
13586
|
+
className: "relative w-full bg-cover bg-center bg-no-repeat mb-6 md:mb-12 ",
|
|
13587
|
+
style: {
|
|
13588
|
+
backgroundImage: "url(" + (sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$ = sectionData[0]) === null || _sectionData$ === void 0 ? void 0 : _sectionData$.srcImage) + ")"
|
|
13589
|
+
}
|
|
13590
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
13591
|
+
className: "absolute top-0 w-full h-full bg-black opacity-60 z-0"
|
|
13592
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
13593
|
+
className: "relative w-full p-20 z-10 flex flex-col items-center justify-center"
|
|
13594
|
+
}, /*#__PURE__*/React__default.createElement("h2", {
|
|
13595
|
+
className: "text-3xl md:text-5xl text-white leading-[1.6] md:leading-[1.6] text-center font-headingFont"
|
|
13596
|
+
}, 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) {
|
|
13597
|
+
return e === null || e === void 0 ? void 0 : e.length;
|
|
13598
|
+
})) === 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, {
|
|
13599
|
+
className: "!bg-transparent !text-gray4",
|
|
13600
|
+
routeClassName: "!text-textButton",
|
|
13601
|
+
shopConfigStyle: shopConfigStyle,
|
|
13602
|
+
route: route,
|
|
13603
|
+
routes: routes,
|
|
13604
|
+
Link: Link
|
|
13605
|
+
})));
|
|
12924
13606
|
};
|
|
12925
13607
|
|
|
12926
13608
|
var About1 = function About1(props) {
|
|
@@ -12930,12 +13612,12 @@ var About1 = function About1(props) {
|
|
|
12930
13612
|
_props$SectionTitle = props.SectionTitle,
|
|
12931
13613
|
SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
|
|
12932
13614
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
12933
|
-
className: SECTION_CLASS + " flex flex-col gap-
|
|
13615
|
+
className: SECTION_CLASS + " flex flex-col gap-6"
|
|
12934
13616
|
}, data !== null && data !== void 0 && data.sectionTitle ? /*#__PURE__*/React__default.createElement(SectionTitle, {
|
|
12935
13617
|
data: data,
|
|
12936
13618
|
shopConfigStyle: shopConfigStyle
|
|
12937
13619
|
}) : null, /*#__PURE__*/React__default.createElement("div", {
|
|
12938
|
-
className: "text-wrap",
|
|
13620
|
+
className: "text-wrap ck-content",
|
|
12939
13621
|
dangerouslySetInnerHTML: {
|
|
12940
13622
|
__html: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopAbout
|
|
12941
13623
|
}
|
|
@@ -12950,17 +13632,18 @@ var About5 = function About5(props) {
|
|
|
12950
13632
|
SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle,
|
|
12951
13633
|
data = props.data;
|
|
12952
13634
|
var sectionData = data === null || data === void 0 ? void 0 : data.data;
|
|
12953
|
-
console.log("About5 sectionData", sectionData);
|
|
12954
13635
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
12955
13636
|
className: SECTION_DEFAULT_CLASS + " "
|
|
12956
|
-
}, data !== null && data !== void 0 && data.sectionTitle ? /*#__PURE__*/React__default.createElement(
|
|
13637
|
+
}, data !== null && data !== void 0 && data.sectionTitle ? /*#__PURE__*/React__default.createElement("div", {
|
|
13638
|
+
className: "mb-6"
|
|
13639
|
+
}, /*#__PURE__*/React__default.createElement(SectionTitle, {
|
|
12957
13640
|
data: data,
|
|
12958
13641
|
shopConfigStyle: shopConfigStyle
|
|
12959
|
-
}) : null, /*#__PURE__*/React__default.createElement("div", {
|
|
13642
|
+
})) : null, /*#__PURE__*/React__default.createElement("div", {
|
|
12960
13643
|
className: "grid grid-cols-1 lg:grid-cols-2 gap-12 mt-4 md:mt-6"
|
|
12961
13644
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
12962
13645
|
src: sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$ = sectionData[0]) === null || _sectionData$ === void 0 ? void 0 : _sectionData$.srcImage,
|
|
12963
|
-
className: "w-full hidden lg:block rounded-xl"
|
|
13646
|
+
className: "w-full object-cover hidden lg:block rounded-xl"
|
|
12964
13647
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
12965
13648
|
className: "ck-content text-wrap",
|
|
12966
13649
|
dangerouslySetInnerHTML: {
|
|
@@ -12968,31 +13651,34 @@ var About5 = function About5(props) {
|
|
|
12968
13651
|
}
|
|
12969
13652
|
}), /*#__PURE__*/React__default.createElement("img", {
|
|
12970
13653
|
src: sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$2 = sectionData[0]) === null || _sectionData$2 === void 0 ? void 0 : _sectionData$2.srcImage,
|
|
12971
|
-
className: "w-full block lg:hidden rounded-xl"
|
|
13654
|
+
className: "w-full block object-cover lg:hidden rounded-xl"
|
|
12972
13655
|
})));
|
|
12973
13656
|
};
|
|
12974
13657
|
|
|
12975
13658
|
var About6 = function About6(props) {
|
|
12976
13659
|
var _sectionData$, _sectionData$2;
|
|
12977
|
-
var
|
|
12978
|
-
|
|
13660
|
+
var shopConfigStyle = props.shopConfigStyle,
|
|
13661
|
+
shopConfig = props.shopConfig,
|
|
13662
|
+
data = props.data,
|
|
13663
|
+
_props$SectionTitle = props.SectionTitle,
|
|
13664
|
+
SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
|
|
12979
13665
|
var sectionData = data === null || data === void 0 ? void 0 : data.data;
|
|
12980
|
-
console.log("About5 sectionData", sectionData);
|
|
12981
13666
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
12982
13667
|
className: SECTION_DEFAULT_CLASS + " mt-0"
|
|
12983
|
-
},
|
|
12984
|
-
|
|
12985
|
-
|
|
12986
|
-
|
|
13668
|
+
}, /*#__PURE__*/React__default.createElement(SectionTitle, {
|
|
13669
|
+
data: data,
|
|
13670
|
+
shopConfigStyle: shopConfigStyle
|
|
13671
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
13672
|
+
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")
|
|
12987
13673
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
12988
13674
|
src: sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$ = sectionData[0]) === null || _sectionData$ === void 0 ? void 0 : _sectionData$.srcImage,
|
|
12989
13675
|
className: "w-full h-auto object-cover lg:hidden block rounded-xl"
|
|
12990
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
13676
|
+
}), shopConfig !== null && shopConfig !== void 0 && shopConfig.shopAbout ? /*#__PURE__*/React__default.createElement("div", {
|
|
12991
13677
|
className: "ck-content text-wrap lg:col-span-3 bg-bgSecondary p-4 lg:p-6 rounded-2xl",
|
|
12992
13678
|
dangerouslySetInnerHTML: {
|
|
12993
13679
|
__html: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopAbout
|
|
12994
13680
|
}
|
|
12995
|
-
}), /*#__PURE__*/React__default.createElement("img", {
|
|
13681
|
+
}) : null, /*#__PURE__*/React__default.createElement("img", {
|
|
12996
13682
|
src: sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$2 = sectionData[0]) === null || _sectionData$2 === void 0 ? void 0 : _sectionData$2.srcImage,
|
|
12997
13683
|
className: "w-full h-auto object-cover lg:col-span-2 lg:block hidden rounded-xl"
|
|
12998
13684
|
})));
|
|
@@ -13047,62 +13733,6 @@ var Contact1 = function Contact1(props) {
|
|
|
13047
13733
|
}) : null));
|
|
13048
13734
|
};
|
|
13049
13735
|
|
|
13050
|
-
var Breadcrumb1 = function Breadcrumb1(props) {
|
|
13051
|
-
var shopConfigStyle = props.shopConfigStyle,
|
|
13052
|
-
route = props.route,
|
|
13053
|
-
_props$routes = props.routes,
|
|
13054
|
-
routes = _props$routes === void 0 ? [] : _props$routes,
|
|
13055
|
-
_props$Link = props.Link,
|
|
13056
|
-
Link = _props$Link === void 0 ? null : _props$Link;
|
|
13057
|
-
var _shopConfigStyle$colo = shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : shopConfigStyle.color,
|
|
13058
|
-
_shopConfigStyle$colo3 = _shopConfigStyle$colo.textHeading,
|
|
13059
|
-
textHeading = _shopConfigStyle$colo3 === void 0 ? "#000" : _shopConfigStyle$colo3;
|
|
13060
|
-
var _useState = useState([]),
|
|
13061
|
-
items = _useState[0],
|
|
13062
|
-
setItems = _useState[1];
|
|
13063
|
-
useEffect(function () {
|
|
13064
|
-
getItems();
|
|
13065
|
-
}, [route]);
|
|
13066
|
-
var getItems = function getItems() {
|
|
13067
|
-
var _route$route, _route$route$split, _route$route$split$fi, _items, _items2;
|
|
13068
|
-
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) {
|
|
13069
|
-
return e === null || e === void 0 ? void 0 : e.length;
|
|
13070
|
-
})) === null || _route$route$split$fi === void 0 ? void 0 : _route$route$split$fi.slice(0, 2);
|
|
13071
|
-
items = (_items = items) === null || _items === void 0 ? void 0 : _items.map(function (e) {
|
|
13072
|
-
var _e, _e$replace, _e$replace$replace, _e$replace$replace$re;
|
|
13073
|
-
if (e === "product") e = "products";else if (e === "service") e = "services";
|
|
13074
|
-
return (routes === null || routes === void 0 ? void 0 : routes.find(function (r) {
|
|
13075
|
-
return (r === null || r === void 0 ? void 0 : r.name) === e;
|
|
13076
|
-
})) || {
|
|
13077
|
-
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, "/")
|
|
13078
|
-
};
|
|
13079
|
-
});
|
|
13080
|
-
(_items2 = items) === null || _items2 === void 0 ? void 0 : _items2.unshift({
|
|
13081
|
-
name: "home",
|
|
13082
|
-
label: "Trang chủ",
|
|
13083
|
-
route: "/"
|
|
13084
|
-
});
|
|
13085
|
-
console.log(items);
|
|
13086
|
-
setItems(items);
|
|
13087
|
-
};
|
|
13088
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
13089
|
-
className: SECTION_DEFAULT_CLASS + " !my-6 flex gap-2 overflow-x-auto scroll-custom"
|
|
13090
|
-
}, items === null || items === void 0 ? void 0 : items.map(function (item, index) {
|
|
13091
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
13092
|
-
key: index,
|
|
13093
|
-
className: "flex gap-2 flex-shrink-0"
|
|
13094
|
-
}, index ? /*#__PURE__*/React__default.createElement("div", {
|
|
13095
|
-
className: "text-gray4"
|
|
13096
|
-
}, "/") : null, item !== null && item !== void 0 && item.route ? /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
13097
|
-
Link: Link,
|
|
13098
|
-
href: convertURL(item === null || item === void 0 ? void 0 : item.route) || "#",
|
|
13099
|
-
style: {
|
|
13100
|
-
color: textHeading
|
|
13101
|
-
}
|
|
13102
|
-
}, item === null || item === void 0 ? void 0 : item.label) : /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.label));
|
|
13103
|
-
}));
|
|
13104
|
-
};
|
|
13105
|
-
|
|
13106
13736
|
var getRegionApi = function getRegionApi(parentId) {
|
|
13107
13737
|
return api({
|
|
13108
13738
|
method: "get",
|
|
@@ -13220,96 +13850,6 @@ var RegionController = function RegionController(props) {
|
|
|
13220
13850
|
};
|
|
13221
13851
|
};
|
|
13222
13852
|
|
|
13223
|
-
var TextArea = forwardRef(function (props, ref) {
|
|
13224
|
-
var _props$label = props.label,
|
|
13225
|
-
label = _props$label === void 0 ? "" : _props$label,
|
|
13226
|
-
_props$placeholder = props.placeholder,
|
|
13227
|
-
placeholder = _props$placeholder === void 0 ? "" : _props$placeholder,
|
|
13228
|
-
_props$rules = props.rules,
|
|
13229
|
-
rules = _props$rules === void 0 ? [] : _props$rules,
|
|
13230
|
-
_props$textareaClassN = props.textareaClassName,
|
|
13231
|
-
textareaClassName = _props$textareaClassN === void 0 ? "" : _props$textareaClassN,
|
|
13232
|
-
_props$className = props.className,
|
|
13233
|
-
className = _props$className === void 0 ? "" : _props$className,
|
|
13234
|
-
_props$defaultValue = props.defaultValue,
|
|
13235
|
-
defaultValue = _props$defaultValue === void 0 ? "" : _props$defaultValue,
|
|
13236
|
-
_props$labelClassName = props.labelClassName,
|
|
13237
|
-
labelClassName = _props$labelClassName === void 0 ? "" : _props$labelClassName,
|
|
13238
|
-
_props$onChange = props.onChange,
|
|
13239
|
-
onChange = _props$onChange === void 0 ? function () {} : _props$onChange;
|
|
13240
|
-
var _useState = useState(defaultValue),
|
|
13241
|
-
value = _useState[0],
|
|
13242
|
-
_setValue = _useState[1];
|
|
13243
|
-
var _useState2 = useState(""),
|
|
13244
|
-
error = _useState2[0],
|
|
13245
|
-
_setError = _useState2[1];
|
|
13246
|
-
useImperativeHandle(ref, function () {
|
|
13247
|
-
return {
|
|
13248
|
-
validateData: function validateData() {
|
|
13249
|
-
return _validateData();
|
|
13250
|
-
},
|
|
13251
|
-
setValue: function setValue(text) {
|
|
13252
|
-
return _setValue(text);
|
|
13253
|
-
},
|
|
13254
|
-
getValue: function getValue() {
|
|
13255
|
-
return value;
|
|
13256
|
-
},
|
|
13257
|
-
setError: function setError(err) {
|
|
13258
|
-
return _setError(err);
|
|
13259
|
-
}
|
|
13260
|
-
};
|
|
13261
|
-
});
|
|
13262
|
-
var _validateData = function _validateData() {
|
|
13263
|
-
var count = 0;
|
|
13264
|
-
for (var _iterator = _createForOfIteratorHelperLoose(rules), _step; !(_step = _iterator()).done;) {
|
|
13265
|
-
var _e$pattern;
|
|
13266
|
-
var e = _step.value;
|
|
13267
|
-
if ((e === null || e === void 0 ? void 0 : e.type) === 'required' && value === '') {
|
|
13268
|
-
_setError(e === null || e === void 0 ? void 0 : e.message);
|
|
13269
|
-
count++;
|
|
13270
|
-
break;
|
|
13271
|
-
} 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))) {
|
|
13272
|
-
_setError(e === null || e === void 0 ? void 0 : e.message);
|
|
13273
|
-
count++;
|
|
13274
|
-
break;
|
|
13275
|
-
}
|
|
13276
|
-
}
|
|
13277
|
-
if (count) {
|
|
13278
|
-
return false;
|
|
13279
|
-
} else {
|
|
13280
|
-
_setError('');
|
|
13281
|
-
return true;
|
|
13282
|
-
}
|
|
13283
|
-
};
|
|
13284
|
-
var handleOnChangeValue = function handleOnChangeValue(e) {
|
|
13285
|
-
var value = e.target.value;
|
|
13286
|
-
_setValue(value);
|
|
13287
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(value);
|
|
13288
|
-
};
|
|
13289
|
-
var required = !!(rules !== null && rules !== void 0 && rules.find(function (e) {
|
|
13290
|
-
return (e === null || e === void 0 ? void 0 : e.type) === "required";
|
|
13291
|
-
}));
|
|
13292
|
-
var labelRequired = required ? /*#__PURE__*/React__default.createElement("span", {
|
|
13293
|
-
className: "text-danger"
|
|
13294
|
-
}, " *") : null;
|
|
13295
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
13296
|
-
className: "" + className
|
|
13297
|
-
}, label ? /*#__PURE__*/React__default.createElement("div", {
|
|
13298
|
-
className: "mb-1 " + labelClassName
|
|
13299
|
-
}, label, labelRequired) : null, /*#__PURE__*/React__default.createElement("textarea", {
|
|
13300
|
-
name: "",
|
|
13301
|
-
id: "",
|
|
13302
|
-
className: "focus:outline-none focus:ring-0 " + textareaClassName,
|
|
13303
|
-
placeholder: placeholder,
|
|
13304
|
-
value: value,
|
|
13305
|
-
onChange: function onChange(e) {
|
|
13306
|
-
handleOnChangeValue(e);
|
|
13307
|
-
}
|
|
13308
|
-
}), error ? /*#__PURE__*/React__default.createElement("div", {
|
|
13309
|
-
className: "text-danger"
|
|
13310
|
-
}, error) : null);
|
|
13311
|
-
});
|
|
13312
|
-
|
|
13313
13853
|
var FormCheckout = forwardRef(function (props, ref) {
|
|
13314
13854
|
var _props$label = props.label,
|
|
13315
13855
|
label = _props$label === void 0 ? "" : _props$label,
|
|
@@ -13958,7 +14498,7 @@ var SearchProduct1 = function SearchProduct1(props) {
|
|
|
13958
14498
|
} else {
|
|
13959
14499
|
var delayDebounceFn = setTimeout(function () {
|
|
13960
14500
|
handleSearch(valueSearch);
|
|
13961
|
-
},
|
|
14501
|
+
}, 600);
|
|
13962
14502
|
return function () {
|
|
13963
14503
|
return clearTimeout(delayDebounceFn);
|
|
13964
14504
|
};
|
|
@@ -14017,9 +14557,9 @@ var SearchProduct1 = function SearchProduct1(props) {
|
|
|
14017
14557
|
className: "flex flex-col px-1 gap-2 border-b w-full"
|
|
14018
14558
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
14019
14559
|
className: "mt-1 text-lg font-medium\t"
|
|
14020
|
-
}, 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", {
|
|
14021
|
-
className: " text-lg font-medium
|
|
14022
|
-
}, formatCurrency(item === null || item === void 0 ? void 0 : (_item$productInfo2 = item.productInfo) === null || _item$productInfo2 === void 0 ? void 0 : _item$productInfo2.price))));
|
|
14560
|
+
}, 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", {
|
|
14561
|
+
className: " text-lg font-medium"
|
|
14562
|
+
}, formatCurrency(item === null || item === void 0 ? void 0 : (_item$productInfo2 = item.productInfo) === null || _item$productInfo2 === void 0 ? void 0 : _item$productInfo2.price)) : null));
|
|
14023
14563
|
})) : /*#__PURE__*/React__default.createElement("div", {
|
|
14024
14564
|
className: "text-center"
|
|
14025
14565
|
}, data === null || data === void 0 ? void 0 : data.sectionDescription));
|
|
@@ -14048,7 +14588,7 @@ var SearchBar2 = function SearchBar2(props) {
|
|
|
14048
14588
|
} else {
|
|
14049
14589
|
var delayDebounceFn = setTimeout(function () {
|
|
14050
14590
|
handleSearch(valueSearch);
|
|
14051
|
-
},
|
|
14591
|
+
}, 600);
|
|
14052
14592
|
return function () {
|
|
14053
14593
|
return clearTimeout(delayDebounceFn);
|
|
14054
14594
|
};
|
|
@@ -14110,9 +14650,9 @@ var SearchBar2 = function SearchBar2(props) {
|
|
|
14110
14650
|
className: "flex flex-col px-1 gap-2 border-b w-full"
|
|
14111
14651
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
14112
14652
|
className: "mt-1 text-lg font-medium\t"
|
|
14113
|
-
}, 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, {
|
|
14653
|
+
}, 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, {
|
|
14114
14654
|
product: item === null || item === void 0 ? void 0 : item.productInfo
|
|
14115
|
-
})));
|
|
14655
|
+
}) : null));
|
|
14116
14656
|
})) : null)));
|
|
14117
14657
|
};
|
|
14118
14658
|
|
|
@@ -14143,7 +14683,7 @@ var SearchBar5 = function SearchBar5(props) {
|
|
|
14143
14683
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
14144
14684
|
className: "absolute inset-0 bg-black/45 rounded-xl md:rounded-3xl"
|
|
14145
14685
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
14146
|
-
className: "flex flex-col relative gap-2 md:gap-4 items-center justify-center"
|
|
14686
|
+
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"
|
|
14147
14687
|
}, data !== null && data !== void 0 && (_data$data2 = data.data) !== null && _data$data2 !== void 0 && _data$data2.title ? /*#__PURE__*/React__default.createElement("div", {
|
|
14148
14688
|
className: "text-lg font-semibold md:text-3xl lg:text-4xl text-textButton text-center"
|
|
14149
14689
|
}, 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", {
|
|
@@ -14153,7 +14693,7 @@ var SearchBar5 = function SearchBar5(props) {
|
|
|
14153
14693
|
icons: /*#__PURE__*/React__default.createElement(IoSearchOutline, {
|
|
14154
14694
|
className: "text-gray3 ps-1 text-xl md:text-2xl"
|
|
14155
14695
|
}),
|
|
14156
|
-
wrapClassName: "w-
|
|
14696
|
+
wrapClassName: "w-[90%] sm:w-1/2 lg:w-[40%] ",
|
|
14157
14697
|
className: "w-full bg-bgSecondary mb-2 md:h-12",
|
|
14158
14698
|
onKeyDown: function onKeyDown(e) {
|
|
14159
14699
|
handleSearch(e);
|
|
@@ -14383,6 +14923,37 @@ var ShopHighlights7 = function ShopHighlights7(props) {
|
|
|
14383
14923
|
}));
|
|
14384
14924
|
};
|
|
14385
14925
|
|
|
14926
|
+
var ShopHighlights8 = function ShopHighlights8(props) {
|
|
14927
|
+
var data = props.data,
|
|
14928
|
+
_props$Link = props.Link,
|
|
14929
|
+
Link = _props$Link === void 0 ? null : _props$Link,
|
|
14930
|
+
_props$SectionTitle = props.SectionTitle,
|
|
14931
|
+
SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
|
|
14932
|
+
var sectionData = data === null || data === void 0 ? void 0 : data.data;
|
|
14933
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
14934
|
+
className: SECTION_CLASS + " flex flex-col gap-6 md:gap-10"
|
|
14935
|
+
}, /*#__PURE__*/React__default.createElement(SectionTitle, {
|
|
14936
|
+
data: data
|
|
14937
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
14938
|
+
className: "grid grid-cols-2 lg:grid-cols-4 gap-4 md:gap-10"
|
|
14939
|
+
}, sectionData === null || sectionData === void 0 ? void 0 : sectionData.map(function (item, index) {
|
|
14940
|
+
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
14941
|
+
Link: Link,
|
|
14942
|
+
href: convertURL(item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link) || "#",
|
|
14943
|
+
key: "kdf-" + index
|
|
14944
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
14945
|
+
className: "flex flex-col h-full gap-3"
|
|
14946
|
+
}, /*#__PURE__*/React__default.createElement("img", {
|
|
14947
|
+
src: item === null || item === void 0 ? void 0 : item.srcImage,
|
|
14948
|
+
className: "object-cover"
|
|
14949
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
14950
|
+
className: "text-2xl text-textBody"
|
|
14951
|
+
}, item === null || item === void 0 ? void 0 : item.title), /*#__PURE__*/React__default.createElement("div", {
|
|
14952
|
+
className: "flex-grow text-textBody leading-relaxed"
|
|
14953
|
+
}, item === null || item === void 0 ? void 0 : item.description)));
|
|
14954
|
+
})));
|
|
14955
|
+
};
|
|
14956
|
+
|
|
14386
14957
|
var VideoFull1 = function VideoFull1(props) {
|
|
14387
14958
|
var _data$data, _data$data$;
|
|
14388
14959
|
var shopConfigStyle = props.shopConfigStyle,
|
|
@@ -14497,7 +15068,7 @@ var DefaultImage$1 = function DefaultImage(props) {
|
|
|
14497
15068
|
var _props$className = props.className,
|
|
14498
15069
|
className = _props$className === void 0 ? "" : _props$className;
|
|
14499
15070
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
14500
|
-
className: "flex justify-center items-center
|
|
15071
|
+
className: "flex justify-center items-center w-full h-full aspect-video object-cover rounded-lg " + className,
|
|
14501
15072
|
style: {
|
|
14502
15073
|
backgroundColor: "#FAFAFA"
|
|
14503
15074
|
}
|
|
@@ -14525,7 +15096,7 @@ var NewsImage = function NewsImage(props) {
|
|
|
14525
15096
|
};
|
|
14526
15097
|
return src ? /*#__PURE__*/React__default.createElement("img", {
|
|
14527
15098
|
src: src,
|
|
14528
|
-
className: "h-full rounded-lg
|
|
15099
|
+
className: "h-full rounded-lg w-full aspect-video object-cover " + className,
|
|
14529
15100
|
style: size ? {
|
|
14530
15101
|
width: size,
|
|
14531
15102
|
height: size
|
|
@@ -14536,8 +15107,56 @@ var NewsImage = function NewsImage(props) {
|
|
|
14536
15107
|
});
|
|
14537
15108
|
};
|
|
14538
15109
|
|
|
15110
|
+
var NewsItem2 = function NewsItem2(_ref) {
|
|
15111
|
+
var newsArticle = _ref.newsArticle;
|
|
15112
|
+
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(NewsImage, {
|
|
15113
|
+
news: newsArticle
|
|
15114
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
15115
|
+
className: "pt-3 font-medium text-lg line-clamp-3",
|
|
15116
|
+
style: {
|
|
15117
|
+
lineHeight: 1.6
|
|
15118
|
+
}
|
|
15119
|
+
}, newsArticle === null || newsArticle === void 0 ? void 0 : newsArticle.title));
|
|
15120
|
+
};
|
|
15121
|
+
|
|
15122
|
+
var relativeTime = createCommonjsModule(function (module, exports) {
|
|
15123
|
+
!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)};}}));
|
|
15124
|
+
});
|
|
15125
|
+
|
|
15126
|
+
var vi = createCommonjsModule(function (module, exports) {
|
|
15127
|
+
!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),_}));
|
|
15128
|
+
});
|
|
15129
|
+
|
|
15130
|
+
dayjs_min.extend(relativeTime);
|
|
15131
|
+
dayjs_min.locale("vi");
|
|
15132
|
+
var NewsItem1 = function NewsItem1(_ref) {
|
|
15133
|
+
var _dayjs;
|
|
15134
|
+
var newsArticle = _ref.newsArticle,
|
|
15135
|
+
_ref$isHidden = _ref.isHidden,
|
|
15136
|
+
isHidden = _ref$isHidden === void 0 ? false : _ref$isHidden;
|
|
15137
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
15138
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-4 "
|
|
15139
|
+
}, /*#__PURE__*/React__default.createElement(NewsImage, {
|
|
15140
|
+
news: newsArticle
|
|
15141
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
15142
|
+
className: "flex flex-col gap-4 md:gap-3 pb-4"
|
|
15143
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
15144
|
+
className: "font-medium text-lg line-clamp-3 md:line-clamp-2 lg:line-clamp-3",
|
|
15145
|
+
style: {
|
|
15146
|
+
lineHeight: 1.6
|
|
15147
|
+
}
|
|
15148
|
+
}, newsArticle === null || newsArticle === void 0 ? void 0 : newsArticle.title), !isHidden ? /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
15149
|
+
className: "line-clamp-4 md:line-clamp-3 lg:line-clamp-4 font-normal min-h-6 md:min-h-20 text-gray3",
|
|
15150
|
+
style: {
|
|
15151
|
+
lineHeight: 1.6
|
|
15152
|
+
}
|
|
15153
|
+
}, newsArticle === null || newsArticle === void 0 ? void 0 : newsArticle.shortDescription), /*#__PURE__*/React__default.createElement("div", {
|
|
15154
|
+
className: "text-gray3 mt-4"
|
|
15155
|
+
}, (_dayjs = dayjs_min(newsArticle === null || newsArticle === void 0 ? void 0 : newsArticle.timeUpdate)) === null || _dayjs === void 0 ? void 0 : _dayjs.fromNow())) : null));
|
|
15156
|
+
};
|
|
15157
|
+
|
|
14539
15158
|
var NewsHighlight1 = function NewsHighlight1(props) {
|
|
14540
|
-
var _newsArticles
|
|
15159
|
+
var _newsArticles$slice;
|
|
14541
15160
|
var _props$SectionTitle = props.SectionTitle,
|
|
14542
15161
|
SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle,
|
|
14543
15162
|
_props$shopConfigStyl = props.shopConfigStyle,
|
|
@@ -14562,34 +15181,34 @@ var NewsHighlight1 = function NewsHighlight1(props) {
|
|
|
14562
15181
|
}, /*#__PURE__*/React__default.createElement(SectionTitle, {
|
|
14563
15182
|
data: data,
|
|
14564
15183
|
shopConfigStyle: shopConfigStyle
|
|
14565
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
15184
|
+
}), (newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles.length) > 0 ? /*#__PURE__*/React__default.createElement("div", {
|
|
14566
15185
|
className: "mt-12 mb-6 grid grid-cols-1 md:grid-cols-2 gap-6 "
|
|
14567
15186
|
}, /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
14568
15187
|
href: getLinkNewsDetail(newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[0]),
|
|
14569
15188
|
Link: Link
|
|
14570
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
14571
|
-
|
|
14572
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
14573
|
-
className: "pt-3 font-medium text-lg"
|
|
14574
|
-
}, newsArticles === null || newsArticles === void 0 ? void 0 : (_newsArticles$ = newsArticles[0]) === null || _newsArticles$ === void 0 ? void 0 : _newsArticles$.title))), /*#__PURE__*/React__default.createElement("div", {
|
|
15189
|
+
}, /*#__PURE__*/React__default.createElement(NewsItem2, {
|
|
15190
|
+
newsArticle: newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[0]
|
|
15191
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
14575
15192
|
className: "flex flex-col gap-6"
|
|
14576
|
-
}, /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
14577
|
-
className: "grid grid-cols-1 md:grid-cols-2 gap-4 ",
|
|
15193
|
+
}, newsArticles !== null && newsArticles !== void 0 && newsArticles[1] ? /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
14578
15194
|
href: getLinkNewsDetail(newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[1]),
|
|
14579
15195
|
Link: Link
|
|
14580
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
14581
|
-
|
|
14582
|
-
|
|
14583
|
-
|
|
14584
|
-
|
|
14585
|
-
|
|
15196
|
+
}, newsArticles !== null && newsArticles !== void 0 && newsArticles[2] ? /*#__PURE__*/React__default.createElement(NewsItem1, {
|
|
15197
|
+
newsArticle: newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[1],
|
|
15198
|
+
isHidden: true
|
|
15199
|
+
}) : /*#__PURE__*/React__default.createElement(NewsItem2, {
|
|
15200
|
+
newsArticle: newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[1]
|
|
15201
|
+
})) : null, newsArticles !== null && newsArticles !== void 0 && newsArticles[2] ? /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
14586
15202
|
href: getLinkNewsDetail(newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[2]),
|
|
14587
15203
|
Link: Link
|
|
14588
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
14589
|
-
|
|
14590
|
-
|
|
14591
|
-
|
|
14592
|
-
|
|
15204
|
+
}, /*#__PURE__*/React__default.createElement(NewsItem1, {
|
|
15205
|
+
newsArticle: newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[2],
|
|
15206
|
+
isHidden: true
|
|
15207
|
+
})) : null)) : /*#__PURE__*/React__default.createElement("div", {
|
|
15208
|
+
className: "w-full h-64 flex flex-col justify-center items-center text-gray3"
|
|
15209
|
+
}, /*#__PURE__*/React__default.createElement(GiNewspaper, {
|
|
15210
|
+
size: 80
|
|
15211
|
+
}), " Kh\xF4ng c\xF3 tin t\u1EE9c n\xE0o"), /*#__PURE__*/React__default.createElement("div", {
|
|
14593
15212
|
className: "grid grid-cols-1 md:grid-cols-3 gap-6 mt-6 "
|
|
14594
15213
|
}, 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) {
|
|
14595
15214
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
@@ -14598,22 +15217,12 @@ var NewsHighlight1 = function NewsHighlight1(props) {
|
|
|
14598
15217
|
key: "kdjf-" + index
|
|
14599
15218
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
14600
15219
|
className: "jgdfg-" + index
|
|
14601
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
14602
|
-
|
|
14603
|
-
})
|
|
14604
|
-
className: "font-medium text-lg py-2"
|
|
14605
|
-
}, item === null || item === void 0 ? void 0 : item.title)));
|
|
15220
|
+
}, /*#__PURE__*/React__default.createElement(NewsItem2, {
|
|
15221
|
+
newsArticle: item
|
|
15222
|
+
})));
|
|
14606
15223
|
})));
|
|
14607
15224
|
};
|
|
14608
15225
|
|
|
14609
|
-
var relativeTime = createCommonjsModule(function (module, exports) {
|
|
14610
|
-
!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)};}}));
|
|
14611
|
-
});
|
|
14612
|
-
|
|
14613
|
-
var vi = createCommonjsModule(function (module, exports) {
|
|
14614
|
-
!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),_}));
|
|
14615
|
-
});
|
|
14616
|
-
|
|
14617
15226
|
var getAllNewsCategoriesApi = function getAllNewsCategoriesApi(shopId, landingShopConfigId, appId) {
|
|
14618
15227
|
if (appId === void 0) {
|
|
14619
15228
|
appId = "SSPA";
|
|
@@ -14724,10 +15333,10 @@ var News1 = function News1(props) {
|
|
|
14724
15333
|
});
|
|
14725
15334
|
}
|
|
14726
15335
|
}, "Chuy\xEAn m\u1EE5c"), /*#__PURE__*/React__default.createElement("div", {
|
|
14727
|
-
className: "rounded-b-lg bg-bgSecondary"
|
|
15336
|
+
className: "rounded-b-lg bg-bgSecondary overflow-y-auto scroll-container max-h-[700px]"
|
|
14728
15337
|
}, newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.map(function (item, index) {
|
|
14729
15338
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
14730
|
-
className: "px-6
|
|
15339
|
+
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" : "") + " ",
|
|
14731
15340
|
key: "sdjfdh-" + index,
|
|
14732
15341
|
onClick: function onClick() {
|
|
14733
15342
|
setCategorySelected(item);
|
|
@@ -14737,39 +15346,33 @@ var News1 = function News1(props) {
|
|
|
14737
15346
|
});
|
|
14738
15347
|
});
|
|
14739
15348
|
}
|
|
14740
|
-
},
|
|
15349
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
15350
|
+
className: "border-b border-dashed py-4 " + ((newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.length) - 1 === index ? "border-b-0" : "")
|
|
15351
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
15352
|
+
className: "line-clamp-3"
|
|
15353
|
+
}, item === null || item === void 0 ? void 0 : item.catName)));
|
|
14741
15354
|
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
14742
15355
|
className: "md:col-span-2 flex flex-col gap-8"
|
|
14743
15356
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
14744
|
-
className: "px-6 py-3 text-textButton text-lg rounded-t-lg bg-primary w-max"
|
|
14745
|
-
},
|
|
15357
|
+
className: "px-6 py-3 text-textButton text-lg rounded-t-lg bg-primary w-max max-w-full"
|
|
15358
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
15359
|
+
className: "line-clamp-1"
|
|
15360
|
+
}, params !== null && params !== void 0 && params.catId ? categorySelected === null || categorySelected === void 0 ? void 0 : categorySelected.catName : "Tin mới")), /*#__PURE__*/React__default.createElement("div", {
|
|
14746
15361
|
className: "w-full border border-primary"
|
|
14747
15362
|
})), loading & isSeeMore ? /*#__PURE__*/React__default.createElement("div", {
|
|
14748
15363
|
className: "w-full h-80 flex justify-center items-center"
|
|
14749
15364
|
}, /*#__PURE__*/React__default.createElement(Loading, null)) : /*#__PURE__*/React__default.createElement("div", {
|
|
14750
15365
|
className: "flex flex-col gap-8"
|
|
14751
15366
|
}, (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) {
|
|
14752
|
-
var _dayjs;
|
|
14753
15367
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
14754
15368
|
href: getLinkNewsDetail(item),
|
|
14755
15369
|
Link: Link,
|
|
14756
15370
|
key: "kghf-" + index
|
|
14757
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
14758
|
-
|
|
14759
|
-
|
|
14760
|
-
}, /*#__PURE__*/React__default.createElement(NewsImage, {
|
|
14761
|
-
news: item
|
|
14762
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
14763
|
-
className: "flex flex-col gap-2 md:gap-3 pb-4"
|
|
14764
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
14765
|
-
className: "font-medium text-lg md:text-xl line-clamp-2"
|
|
14766
|
-
}, item === null || item === void 0 ? void 0 : item.title), /*#__PURE__*/React__default.createElement("div", {
|
|
14767
|
-
className: "line-clamp-3 font-normal min-h-6 md:min-h-20 text-gray3"
|
|
14768
|
-
}, item === null || item === void 0 ? void 0 : item.shortDescription), /*#__PURE__*/React__default.createElement("div", {
|
|
14769
|
-
className: " text-gray3"
|
|
14770
|
-
}, (_dayjs = dayjs_min(item === null || item === void 0 ? void 0 : item.timeUpdate)) === null || _dayjs === void 0 ? void 0 : _dayjs.fromNow()))));
|
|
15371
|
+
}, /*#__PURE__*/React__default.createElement(NewsItem1, {
|
|
15372
|
+
newsArticle: item
|
|
15373
|
+
}));
|
|
14771
15374
|
}) : /*#__PURE__*/React__default.createElement("div", {
|
|
14772
|
-
className: "w-full h-64 flex flex-col justify-center items-center text-gray3"
|
|
15375
|
+
className: "w-full h-64 flex flex-col justify-center items-center text-gray3 "
|
|
14773
15376
|
}, /*#__PURE__*/React__default.createElement(GiNewspaper, {
|
|
14774
15377
|
size: 80
|
|
14775
15378
|
}), " 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, {
|
|
@@ -14789,10 +15392,10 @@ var News1 = function News1(props) {
|
|
|
14789
15392
|
});
|
|
14790
15393
|
}
|
|
14791
15394
|
}, "Chuy\xEAn m\u1EE5c"), /*#__PURE__*/React__default.createElement("div", {
|
|
14792
|
-
className: "rounded-b-lg bg-bgSecondary"
|
|
15395
|
+
className: "rounded-b-lg bg-bgSecondary overflow-y-auto scroll-container max-h-[700px]"
|
|
14793
15396
|
}, newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.map(function (item, index) {
|
|
14794
15397
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
14795
|
-
className: "px-
|
|
15398
|
+
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" : "") + " ",
|
|
14796
15399
|
key: "sdjfdh-" + index,
|
|
14797
15400
|
onClick: function onClick() {
|
|
14798
15401
|
setCategorySelected(item);
|
|
@@ -14802,7 +15405,11 @@ var News1 = function News1(props) {
|
|
|
14802
15405
|
});
|
|
14803
15406
|
});
|
|
14804
15407
|
}
|
|
14805
|
-
},
|
|
15408
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
15409
|
+
className: "border-b border-dashed py-4 " + ((newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.length) - 1 === index ? "border-b-0" : "")
|
|
15410
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
15411
|
+
className: "line-clamp-3"
|
|
15412
|
+
}, item === null || item === void 0 ? void 0 : item.catName)));
|
|
14806
15413
|
}))));
|
|
14807
15414
|
};
|
|
14808
15415
|
|
|
@@ -14851,7 +15458,7 @@ var NewsDetail1 = function NewsDetail1(props) {
|
|
|
14851
15458
|
Link = _props$Link === void 0 ? null : _props$Link;
|
|
14852
15459
|
var _useState = useState({
|
|
14853
15460
|
catId: catId,
|
|
14854
|
-
|
|
15461
|
+
size: 10
|
|
14855
15462
|
}),
|
|
14856
15463
|
params = _useState[0],
|
|
14857
15464
|
setParams = _useState[1];
|
|
@@ -14889,10 +15496,10 @@ var NewsDetail1 = function NewsDetail1(props) {
|
|
|
14889
15496
|
dangerouslySetInnerHTML: {
|
|
14890
15497
|
__html: article === null || article === void 0 ? void 0 : article.content
|
|
14891
15498
|
}
|
|
14892
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
15499
|
+
}), (newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.length) > 0 ? /*#__PURE__*/React__default.createElement("div", {
|
|
14893
15500
|
className: "top-6 block md:hidden"
|
|
14894
15501
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
14895
|
-
className: "px-6
|
|
15502
|
+
className: "px-6 bg-primary rounded-t-lg text-lg text-textButton text-center"
|
|
14896
15503
|
}, "Chuy\xEAn m\u1EE5c"), /*#__PURE__*/React__default.createElement("div", {
|
|
14897
15504
|
className: "rounded-b-lg bg-bgSecondary"
|
|
14898
15505
|
}, newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.map(function (item, index) {
|
|
@@ -14900,10 +15507,14 @@ var NewsDetail1 = function NewsDetail1(props) {
|
|
|
14900
15507
|
href: getLinkNewsByCategory(item),
|
|
14901
15508
|
Link: Link
|
|
14902
15509
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
14903
|
-
className: "px-
|
|
15510
|
+
className: "px-4 hover:bg-gray-100 hover:text-primary cursor-pointer",
|
|
14904
15511
|
key: "sdjfdh-" + index
|
|
14905
|
-
},
|
|
14906
|
-
|
|
15512
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
15513
|
+
className: "border-b border-dashed py-4 " + ((newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.length) - 1 === index ? "border-b-0" : "")
|
|
15514
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
15515
|
+
className: "line-clamp-3"
|
|
15516
|
+
}, item === null || item === void 0 ? void 0 : item.catName))));
|
|
15517
|
+
}))) : null, (newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles.length) > 0 ? /*#__PURE__*/React__default.createElement("div", {
|
|
14907
15518
|
className: "mt-6"
|
|
14908
15519
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
14909
15520
|
className: "font-medium text-2xl mb-4"
|
|
@@ -14914,19 +15525,17 @@ var NewsDetail1 = function NewsDetail1(props) {
|
|
|
14914
15525
|
href: getLinkNewsDetail(item),
|
|
14915
15526
|
Link: Link,
|
|
14916
15527
|
key: "kghf-" + index
|
|
14917
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
14918
|
-
|
|
14919
|
-
})
|
|
14920
|
-
className: "font-medium text-lg line-clamp-2"
|
|
14921
|
-
}, item === null || item === void 0 ? void 0 : item.title)));
|
|
15528
|
+
}, /*#__PURE__*/React__default.createElement(NewsItem2, {
|
|
15529
|
+
newsArticle: item
|
|
15530
|
+
}));
|
|
14922
15531
|
})), (newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles.length) > (params === null || params === void 0 ? void 0 : params.size) - 4 ? /*#__PURE__*/React__default.createElement("div", {
|
|
14923
15532
|
className: "flex justify-center mt-4 w-full"
|
|
14924
15533
|
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
14925
15534
|
label: "Xem thêm",
|
|
14926
15535
|
onClick: handleSeeMore,
|
|
14927
15536
|
shopConfigStyle: shopConfigStyle
|
|
14928
|
-
})) : null)), /*#__PURE__*/React__default.createElement("div", {
|
|
14929
|
-
className: "sticky top-20 self-start hidden md:block"
|
|
15537
|
+
})) : null) : null), (newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.length) > 0 ? /*#__PURE__*/React__default.createElement("div", {
|
|
15538
|
+
className: "sticky top-20 self-start hidden md:block overflow-y-auto scroll-container max-h-[700px]"
|
|
14930
15539
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
14931
15540
|
className: "px-6 py-3 bg-primary rounded-t-lg text-lg text-textButton text-center"
|
|
14932
15541
|
}, "Chuy\xEAn m\u1EE5c"), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -14936,11 +15545,15 @@ var NewsDetail1 = function NewsDetail1(props) {
|
|
|
14936
15545
|
href: getLinkNewsByCategory(item),
|
|
14937
15546
|
Link: Link
|
|
14938
15547
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
14939
|
-
className: "px-
|
|
15548
|
+
className: "px-4 hover:bg-gray-100 hover:text-primary cursor-pointer",
|
|
14940
15549
|
key: "sdjfdh-" + index
|
|
14941
|
-
},
|
|
14942
|
-
|
|
15550
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
15551
|
+
className: "border-b border-dashed py-4 " + ((newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.length) - 1 === index ? "border-b-0" : "")
|
|
15552
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
15553
|
+
className: "line-clamp-3"
|
|
15554
|
+
}, item === null || item === void 0 ? void 0 : item.catName))));
|
|
15555
|
+
}))) : null);
|
|
14943
15556
|
};
|
|
14944
15557
|
|
|
14945
|
-
export { About1, About5, About6, Address1, Banner1, Banner2, Banner3, Banner7, BannerFull1, BannerFull2, Booking1, BookingForm6, Breadcrumb1, Button, Carts1, Contact1, CustomerRating1, CustomerRating10, CustomerRating5, CustomerRating6, DateTimePicker, Employees1, Features2, Features3, Footer1, Footer7, Gallery1, Hero1, Hero10, Hero11
|
|
15558
|
+
export { About1, About5, About6, Address1, Banner1, Banner2, Banner3, Banner7, BannerFull1, BannerFull2, Booking1, BookingForm6, BookingTable1, Breadcrumb1, Button, Carts1, Contact1, CustomerRating1, CustomerRating10, CustomerRating5, CustomerRating6, CustomerRating8, DateTimePicker, Employees1, Features2, Features3, Footer1, Footer7, Gallery1, Gallery1$1 as Gallery2, Hero1, Hero10, Hero11, Hero12, Hero13, Hero2, Hero5, Hero6, Input, InputPhoneNumber, Links1, ModalNotification, NavBar1, NavBar7, News1, NewsDetail1, NewsHighlight1, PageTitle1, PageTitle2, PageTitle3, Partner1, ProductCategory2, ProductDetail10, ProductDetail11, ProductHighlight1, ProductHot1, ProductHot3, ProductImage, ProductItem2, ProductItem3, ProductItem4, ProductItem5, ProductItem6, ProductItem7, ProductItem8, ProductList5, ProductList7, ProductSale2, ProductSearch1, Products10, Products11, Products12, Products2, Products3, Products9, ProductsTop1, SearchBar2, SearchBar5, SearchBar6, SearchProduct1, SectionTitle1, SectionTitle2, SectionTitle3, SectionTitle4, Select$1 as Select, ServiceDetail1, ShopHighlights2, ShopHighlights5, ShopHighlights6, ShopHighlights7, ShopHighlights8, TextArea, TreatmentDetail1, TreatmentItem1, TreatmentsCategory7, TreatmentsList6, TreatmentsList7, VideoFull1 };
|
|
14946
15559
|
//# sourceMappingURL=index.modern.js.map
|