s-platform-landing-section 0.1.18 → 0.1.20
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 +629 -145
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +628 -147
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -16,8 +16,9 @@ import Slider from 'react-slick';
|
|
|
16
16
|
import 'slick-carousel/slick/slick.css';
|
|
17
17
|
import 'slick-carousel/slick/slick-theme.css';
|
|
18
18
|
import { AiOutlineShoppingCart } from 'react-icons/ai';
|
|
19
|
-
import { GoCreditCard } from 'react-icons/go';
|
|
19
|
+
import { GoCreditCard, GoClock } from 'react-icons/go';
|
|
20
20
|
import { RiDeleteBin7Line } from 'react-icons/ri';
|
|
21
|
+
import { GiNewspaper } from 'react-icons/gi';
|
|
21
22
|
|
|
22
23
|
var Button = function Button(props) {
|
|
23
24
|
var _props$label = props.label,
|
|
@@ -108,18 +109,19 @@ var getDurationValue = function getDurationValue(attributes) {
|
|
|
108
109
|
return durationAtt ? ((durationAtt === null || durationAtt === void 0 ? void 0 : (_durationAtt$value = durationAtt.value) === null || _durationAtt$value === void 0 ? void 0 : _durationAtt$value[0]) || "0") + " p" : "";
|
|
109
110
|
};
|
|
110
111
|
var genProductSlug = function genProductSlug(productName, id) {
|
|
112
|
+
var _slug, _slug2, _slug3, _slug4, _slug5, _slug6, _slug7, _slug8, _slug9, _slug10, _slug11;
|
|
111
113
|
var slug = productName === null || productName === void 0 ? void 0 : productName.toLowerCase();
|
|
112
|
-
slug = slug.replace(/(à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ)/g, "a");
|
|
113
|
-
slug = slug.replace(/(è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ)/g, "e");
|
|
114
|
-
slug = slug.replace(/(ì|í|ị|ỉ|ĩ)/g, "i");
|
|
115
|
-
slug = slug.replace(/(ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ)/g, "o");
|
|
116
|
-
slug = slug.replace(/(ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ)/g, "u");
|
|
117
|
-
slug = slug.replace(/(ỳ|ý|ỵ|ỷ|ỹ)/g, "y");
|
|
118
|
-
slug = slug.replace(/(đ)/g, "d");
|
|
119
|
-
slug = slug.replace(/([^0-9a-z-\s])/g, "");
|
|
120
|
-
slug = slug.replace(/(\s+)/g, "-");
|
|
121
|
-
slug = slug.replace(/^-+/g, "");
|
|
122
|
-
slug = slug.replace(/-+$/g, "");
|
|
114
|
+
slug = (_slug = slug) === null || _slug === void 0 ? void 0 : _slug.replace(/(à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ)/g, "a");
|
|
115
|
+
slug = (_slug2 = slug) === null || _slug2 === void 0 ? void 0 : _slug2.replace(/(è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ)/g, "e");
|
|
116
|
+
slug = (_slug3 = slug) === null || _slug3 === void 0 ? void 0 : _slug3.replace(/(ì|í|ị|ỉ|ĩ)/g, "i");
|
|
117
|
+
slug = (_slug4 = slug) === null || _slug4 === void 0 ? void 0 : _slug4.replace(/(ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ)/g, "o");
|
|
118
|
+
slug = (_slug5 = slug) === null || _slug5 === void 0 ? void 0 : _slug5.replace(/(ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ)/g, "u");
|
|
119
|
+
slug = (_slug6 = slug) === null || _slug6 === void 0 ? void 0 : _slug6.replace(/(ỳ|ý|ỵ|ỷ|ỹ)/g, "y");
|
|
120
|
+
slug = (_slug7 = slug) === null || _slug7 === void 0 ? void 0 : _slug7.replace(/(đ)/g, "d");
|
|
121
|
+
slug = (_slug8 = slug) === null || _slug8 === void 0 ? void 0 : _slug8.replace(/([^0-9a-z-\s])/g, "");
|
|
122
|
+
slug = (_slug9 = slug) === null || _slug9 === void 0 ? void 0 : _slug9.replace(/(\s+)/g, "-");
|
|
123
|
+
slug = (_slug10 = slug) === null || _slug10 === void 0 ? void 0 : _slug10.replace(/^-+/g, "");
|
|
124
|
+
slug = (_slug11 = slug) === null || _slug11 === void 0 ? void 0 : _slug11.replace(/-+$/g, "");
|
|
123
125
|
return slug + "-" + id;
|
|
124
126
|
};
|
|
125
127
|
var getLinkProductDetail = function getLinkProductDetail(product) {
|
|
@@ -130,6 +132,13 @@ var getLinkServiceDetail = function getLinkServiceDetail(product) {
|
|
|
130
132
|
var slug = genProductSlug(product === null || product === void 0 ? void 0 : product.productName, product === null || product === void 0 ? void 0 : product.productId);
|
|
131
133
|
return "/service/" + slug + "/" + (product === null || product === void 0 ? void 0 : product.shopId);
|
|
132
134
|
};
|
|
135
|
+
var getLinkNewsDetail = function getLinkNewsDetail(news) {
|
|
136
|
+
var slug = genProductSlug(news === null || news === void 0 ? void 0 : news.title, news === null || news === void 0 ? void 0 : news.articleId);
|
|
137
|
+
return "/news_detail/" + slug + "/" + (news === null || news === void 0 ? void 0 : news.catId) + "/" + (news === null || news === void 0 ? void 0 : news.shopId);
|
|
138
|
+
};
|
|
139
|
+
var getLinkNewsByCategory = function getLinkNewsByCategory(news) {
|
|
140
|
+
return "/news_by_category/" + (news === null || news === void 0 ? void 0 : news.catId) + "/" + (news === null || news === void 0 ? void 0 : news.shopId);
|
|
141
|
+
};
|
|
133
142
|
var LinkToPage = function LinkToPage(props) {
|
|
134
143
|
var _props$Link = props.Link,
|
|
135
144
|
Link = _props$Link === void 0 ? null : _props$Link,
|
|
@@ -336,9 +345,9 @@ var NavBar7 = function NavBar7(props) {
|
|
|
336
345
|
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
337
346
|
label: "Đăng nhập",
|
|
338
347
|
shopConfigStyle: shopConfigStyle
|
|
339
|
-
})), /*#__PURE__*/React__default.createElement(
|
|
340
|
-
|
|
341
|
-
|
|
348
|
+
})), /*#__PURE__*/React__default.createElement("a", {
|
|
349
|
+
href: "https://sodofin.vn/account",
|
|
350
|
+
target: "_blank"
|
|
342
351
|
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
343
352
|
label: "Đăng ký",
|
|
344
353
|
shopConfigStyle: shopConfigStyle,
|
|
@@ -554,9 +563,9 @@ var NavBar1 = function NavBar1(props) {
|
|
|
554
563
|
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
555
564
|
label: "Đăng nhập",
|
|
556
565
|
shopConfigStyle: shopConfigStyle
|
|
557
|
-
})), /*#__PURE__*/React__default.createElement(
|
|
558
|
-
|
|
559
|
-
|
|
566
|
+
})), /*#__PURE__*/React__default.createElement("a", {
|
|
567
|
+
href: "https://sodofin.vn/account",
|
|
568
|
+
target: "_blank"
|
|
560
569
|
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
561
570
|
label: "Đăng ký",
|
|
562
571
|
shopConfigStyle: shopConfigStyle,
|
|
@@ -872,12 +881,15 @@ var Hero1 = function Hero1(props) {
|
|
|
872
881
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
873
882
|
className: "w-[80%] md:w-2/3 xl:w-1/2 md:h-2/3 flex flex-col gap-2 md:gap-8 justify-center items-center bg-background opacity-90 absolute top-5 md:top-10 px-6 py-4 rounded-tr-[40px] rounded-bl-[40px] md:rounded-tr-[80px] md:rounded-bl-[80px]"
|
|
874
883
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
875
|
-
className: "text-xl text-center md:text-4xl lg:text-[40px] text-primary font-medium"
|
|
884
|
+
className: "text-xl text-center md:text-4xl lg:text-[40px] text-primary font-medium ",
|
|
885
|
+
style: {
|
|
886
|
+
lineHeight: "normal"
|
|
887
|
+
}
|
|
876
888
|
}, sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$2 = sectionData[0]) === null || _sectionData$2 === void 0 ? void 0 : _sectionData$2.title), /*#__PURE__*/React__default.createElement("div", {
|
|
877
889
|
className: "text-center md:text-2xl lg:text-3xl font-medium"
|
|
878
890
|
}, sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$3 = sectionData[0]) === null || _sectionData$3 === void 0 ? void 0 : _sectionData$3.description), /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
879
891
|
Link: Link,
|
|
880
|
-
href: (sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$4 = sectionData[0]) === null || _sectionData$4 === void 0 ? void 0 : (_sectionData$4$button = _sectionData$4.buttons) === null || _sectionData$4$button === void 0 ? void 0 : (_sectionData$4$button2 = _sectionData$4$button[0]) === null || _sectionData$4$button2 === void 0 ? void 0 : _sectionData$4$button2.route) || (sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$5 = sectionData[0]) === null || _sectionData$5 === void 0 ? void 0 : (_sectionData$5$button = _sectionData$5.buttons) === null || _sectionData$5$button === void 0 ? void 0 : (_sectionData$5$button2 = _sectionData$5$button[0]) === null || _sectionData$5$button2 === void 0 ? void 0 : _sectionData$5$button2.link)
|
|
892
|
+
href: (sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$4 = sectionData[0]) === null || _sectionData$4 === void 0 ? void 0 : (_sectionData$4$button = _sectionData$4.buttons) === null || _sectionData$4$button === void 0 ? void 0 : (_sectionData$4$button2 = _sectionData$4$button[0]) === null || _sectionData$4$button2 === void 0 ? void 0 : _sectionData$4$button2.route) || (sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$5 = sectionData[0]) === null || _sectionData$5 === void 0 ? void 0 : (_sectionData$5$button = _sectionData$5.buttons) === null || _sectionData$5$button === void 0 ? void 0 : (_sectionData$5$button2 = _sectionData$5$button[0]) === null || _sectionData$5$button2 === void 0 ? void 0 : _sectionData$5$button2.link) || "#"
|
|
881
893
|
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
882
894
|
label: sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$6 = sectionData[0]) === null || _sectionData$6 === void 0 ? void 0 : (_sectionData$6$button = _sectionData$6.buttons) === null || _sectionData$6$button === void 0 ? void 0 : (_sectionData$6$button2 = _sectionData$6$button[0]) === null || _sectionData$6$button2 === void 0 ? void 0 : _sectionData$6$button2.label,
|
|
883
895
|
shopConfigStyle: shopConfigStyle
|
|
@@ -911,7 +923,7 @@ var Hero2 = function Hero2(props) {
|
|
|
911
923
|
className: "relative"
|
|
912
924
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
913
925
|
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],
|
|
914
|
-
className: "w-full object-cover min-h-[
|
|
926
|
+
className: "w-full object-cover min-h-[30vh] md:min-h-[50vh] max-h-[100vh]"
|
|
915
927
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
916
928
|
className: "absolute flex flex-col gap-1 md:gap-4 absolute w-1/2 lg:w-1/3 top-2 sm:top-[20%] xl:top-1/4 right-[2%] lg:right-[15%]"
|
|
917
929
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
@@ -931,7 +943,7 @@ var Hero5 = function Hero5(props) {
|
|
|
931
943
|
className: "relative"
|
|
932
944
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
933
945
|
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],
|
|
934
|
-
className: "w-full min-h-[
|
|
946
|
+
className: "w-full min-h-[30vh] md:min-h-[50vh] max-h-[100vh]"
|
|
935
947
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
936
948
|
className: "flex flex-col gap-2 md:gap-4 absolute top-5 md:top-[20%] w-1/2 lg:w-1/3 left-4 xl:left-20"
|
|
937
949
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -952,7 +964,7 @@ var Hero6 = function Hero6(props) {
|
|
|
952
964
|
className: "relative"
|
|
953
965
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
954
966
|
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],
|
|
955
|
-
className: "w-full h-auto min-h-[
|
|
967
|
+
className: "w-full h-auto min-h-[30vh] md:min-h-[50vh] max-h-[100vh]"
|
|
956
968
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
957
969
|
className: "absolute top-0 md:top-14 lg:top-20 w-full p-3 md:p-6 lg:p-12 z-10 flex flex-col gap-2 md:gap-4 lg:gap-6 items-center justify-center"
|
|
958
970
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -973,7 +985,9 @@ var Hero6 = function Hero6(props) {
|
|
|
973
985
|
var Hero10 = function Hero10(props) {
|
|
974
986
|
var _data$data, _data$data$, _data$data$$srcImages, _sectionData$, _sectionData$2, _sectionData$2$button;
|
|
975
987
|
var shopConfigStyle = props.shopConfigStyle,
|
|
976
|
-
data = props.data
|
|
988
|
+
data = props.data,
|
|
989
|
+
_props$Link = props.Link,
|
|
990
|
+
Link = _props$Link === void 0 ? null : _props$Link;
|
|
977
991
|
var sectionData = data === null || data === void 0 ? void 0 : data.data;
|
|
978
992
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
979
993
|
className: "relative w-full bg-cover bg-center bg-no-repeat ",
|
|
@@ -986,8 +1000,10 @@ var Hero10 = function Hero10(props) {
|
|
|
986
1000
|
className: "relative w-full min-h-[540px] p-12 z-10 flex flex-col gap-6 items-center justify-center"
|
|
987
1001
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
988
1002
|
className: "text-3xl md:text-5xl text-white leading-[1.6] md:leading-[1.6] text-center font-headingFont"
|
|
989
|
-
}, sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$ = sectionData[0]) === null || _sectionData$ === void 0 ? void 0 : _sectionData$.title), sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$2 = sectionData[0]) === null || _sectionData$2 === void 0 ? void 0 : (_sectionData$2$button = _sectionData$2.buttons) === null || _sectionData$2$button === void 0 ? void 0 : _sectionData$2$button.map(function (button) {
|
|
990
|
-
return /*#__PURE__*/React__default.createElement(
|
|
1003
|
+
}, sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$ = sectionData[0]) === null || _sectionData$ === void 0 ? void 0 : _sectionData$.title), sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$2 = sectionData[0]) === null || _sectionData$2 === void 0 ? void 0 : (_sectionData$2$button = _sectionData$2.buttons) === null || _sectionData$2$button === void 0 ? void 0 : _sectionData$2$button.map(function (button, index) {
|
|
1004
|
+
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
1005
|
+
Link: Link,
|
|
1006
|
+
key: "gdf-" + index,
|
|
991
1007
|
href: (button === null || button === void 0 ? void 0 : button.route) || (button === null || button === void 0 ? void 0 : button.link) || "#"
|
|
992
1008
|
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
993
1009
|
label: button === null || button === void 0 ? void 0 : button.label,
|
|
@@ -7354,7 +7370,7 @@ var Features3 = function Features3(props) {
|
|
|
7354
7370
|
}, sectionData && sectionData.length > 0 && sectionData.map(function (item, index) {
|
|
7355
7371
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
7356
7372
|
Link: Link,
|
|
7357
|
-
href: (item === null || item === void 0 ? void 0 : item.link) || (item === null || item === void 0 ? void 0 : item.route)
|
|
7373
|
+
href: (item === null || item === void 0 ? void 0 : item.link) || (item === null || item === void 0 ? void 0 : item.route) || "#"
|
|
7358
7374
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
7359
7375
|
className: "grid grid-cols-2 p-3 rounded-lg font-semibold",
|
|
7360
7376
|
key: "dfsdfj-" + index,
|
|
@@ -7849,12 +7865,14 @@ var TreatmentsCategory7 = function TreatmentsCategory7(props) {
|
|
|
7849
7865
|
}));
|
|
7850
7866
|
};
|
|
7851
7867
|
|
|
7852
|
-
var NotFoundProduct = function NotFoundProduct() {
|
|
7868
|
+
var NotFoundProduct = function NotFoundProduct(props) {
|
|
7869
|
+
var _props$text = props.text,
|
|
7870
|
+
text = _props$text === void 0 ? "sản phẩm" : _props$text;
|
|
7853
7871
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
7854
7872
|
className: "h-60 flex flex-col justify-center items-center text-xl text-gray3"
|
|
7855
7873
|
}, /*#__PURE__*/React__default.createElement(FaBoxOpen, {
|
|
7856
7874
|
size: 80
|
|
7857
|
-
}), /*#__PURE__*/React__default.createElement("div", null, "Kh\xF4ng c\xF3
|
|
7875
|
+
}), /*#__PURE__*/React__default.createElement("div", null, "Kh\xF4ng c\xF3 ", text));
|
|
7858
7876
|
};
|
|
7859
7877
|
|
|
7860
7878
|
var TreatmentsList6 = function TreatmentsList6(props) {
|
|
@@ -7919,28 +7937,34 @@ var ModalNotification = function ModalNotification(props) {
|
|
|
7919
7937
|
var onClose = props.onClose,
|
|
7920
7938
|
onCloseFormBooking = props.onCloseFormBooking,
|
|
7921
7939
|
_props$isButtonClose = props.isButtonClose,
|
|
7922
|
-
isButtonClose = _props$isButtonClose === void 0 ? true : _props$isButtonClose
|
|
7940
|
+
isButtonClose = _props$isButtonClose === void 0 ? true : _props$isButtonClose,
|
|
7941
|
+
_props$className = props.className,
|
|
7942
|
+
className = _props$className === void 0 ? "" : _props$className,
|
|
7943
|
+
_props$style = props.style,
|
|
7944
|
+
style = _props$style === void 0 ? {} : _props$style,
|
|
7945
|
+
_props$buttonClassNam = props.buttonClassName,
|
|
7946
|
+
buttonClassName = _props$buttonClassNam === void 0 ? "" : _props$buttonClassNam;
|
|
7923
7947
|
var handleClickOutside = function handleClickOutside(event) {
|
|
7924
|
-
|
|
7925
|
-
|
|
7926
|
-
|
|
7927
|
-
|
|
7928
|
-
|
|
7948
|
+
event.stopPropagation();
|
|
7949
|
+
if (onClose) {
|
|
7950
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
7951
|
+
}
|
|
7952
|
+
if (onCloseFormBooking && typeof onCloseFormBooking === 'function') {
|
|
7953
|
+
onCloseFormBooking();
|
|
7929
7954
|
}
|
|
7930
7955
|
};
|
|
7931
|
-
useEffect(function () {
|
|
7932
|
-
document.addEventListener('click', handleClickOutside);
|
|
7933
|
-
return function () {
|
|
7934
|
-
document.removeEventListener('click', handleClickOutside);
|
|
7935
|
-
};
|
|
7936
|
-
}, []);
|
|
7937
7956
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
7938
|
-
className: "fixed inset-0 bg-black flex items-center justify-center bg-opacity-50 z-50 "
|
|
7957
|
+
className: "fixed inset-0 bg-black flex items-center justify-center bg-opacity-50 z-50 ",
|
|
7958
|
+
onClick: handleClickOutside
|
|
7939
7959
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
7940
|
-
className: "
|
|
7960
|
+
className: "flex items-center justify-center relative " + className,
|
|
7961
|
+
onClick: function onClick(e) {
|
|
7962
|
+
return e.stopPropagation();
|
|
7963
|
+
},
|
|
7964
|
+
style: style,
|
|
7941
7965
|
ref: modalRef
|
|
7942
7966
|
}, props === null || props === void 0 ? void 0 : props.children, isButtonClose && /*#__PURE__*/React__default.createElement("button", {
|
|
7943
|
-
className: "absolute top-4 right-4",
|
|
7967
|
+
className: "absolute top-4 right-4 " + buttonClassName,
|
|
7944
7968
|
onClick: onClose
|
|
7945
7969
|
}, /*#__PURE__*/React__default.createElement(RxCross2, null))));
|
|
7946
7970
|
};
|
|
@@ -8111,6 +8135,14 @@ var Select = forwardRef(function (props, ref) {
|
|
|
8111
8135
|
setListOptions(options);
|
|
8112
8136
|
if (!isMulti) setValue(defaultValue);
|
|
8113
8137
|
}, [options]);
|
|
8138
|
+
useEffect(function () {
|
|
8139
|
+
var delayDebounceFn = setTimeout(function () {
|
|
8140
|
+
handleSearch === null || handleSearch === void 0 ? void 0 : handleSearch(inputSearch);
|
|
8141
|
+
}, 500);
|
|
8142
|
+
return function () {
|
|
8143
|
+
return clearTimeout(delayDebounceFn);
|
|
8144
|
+
};
|
|
8145
|
+
}, [inputSearch]);
|
|
8114
8146
|
useEffect(function () {
|
|
8115
8147
|
var _inputRef$current;
|
|
8116
8148
|
inputRef === null || inputRef === void 0 ? void 0 : (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
@@ -8187,11 +8219,9 @@ var Select = forwardRef(function (props, ref) {
|
|
|
8187
8219
|
return true;
|
|
8188
8220
|
}
|
|
8189
8221
|
};
|
|
8190
|
-
var handleSearch = function handleSearch(
|
|
8191
|
-
var searchValue = e.target.value;
|
|
8192
|
-
setInputSearch(searchValue);
|
|
8222
|
+
var handleSearch = function handleSearch(searchValue) {
|
|
8193
8223
|
if (handleSearchOption && typeof handleSearchOption === 'function') {
|
|
8194
|
-
handleSearchOption(searchValue);
|
|
8224
|
+
handleSearchOption === null || handleSearchOption === void 0 ? void 0 : handleSearchOption(searchValue);
|
|
8195
8225
|
} else {
|
|
8196
8226
|
var listFilterOptions = options.filter(function (item) {
|
|
8197
8227
|
var _item$label;
|
|
@@ -8279,7 +8309,7 @@ var Select = forwardRef(function (props, ref) {
|
|
|
8279
8309
|
placeholder: "T\xECm ki\u1EBFm",
|
|
8280
8310
|
value: inputSearch,
|
|
8281
8311
|
onChange: function onChange(e) {
|
|
8282
|
-
|
|
8312
|
+
setInputSearch(e.target.value);
|
|
8283
8313
|
}
|
|
8284
8314
|
})) : null, /*#__PURE__*/React__default.createElement("div", null, (listOptions === null || listOptions === void 0 ? void 0 : listOptions.length) > 0 ? listOptions === null || listOptions === void 0 ? void 0 : listOptions.map(function (item, index) {
|
|
8285
8315
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -9074,9 +9104,10 @@ var TreatmentsList7 = function TreatmentsList7(props) {
|
|
|
9074
9104
|
var renderItemSlide = function renderItemSlide(product, index) {
|
|
9075
9105
|
var _product$productInfo, _product$productInfo2;
|
|
9076
9106
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
9077
|
-
className: "w-full"
|
|
9107
|
+
className: "w-full",
|
|
9108
|
+
key: "shshf-" + index
|
|
9078
9109
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
9079
|
-
className: "grid grid-cols-1 md:grid-cols-2 gap-6
|
|
9110
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-6",
|
|
9080
9111
|
key: index
|
|
9081
9112
|
}, /*#__PURE__*/React__default.createElement(ProductImage, {
|
|
9082
9113
|
product: product === null || product === void 0 ? void 0 : product.productInfo,
|
|
@@ -9099,33 +9130,22 @@ var TreatmentsList7 = function TreatmentsList7(props) {
|
|
|
9099
9130
|
}
|
|
9100
9131
|
}))));
|
|
9101
9132
|
};
|
|
9102
|
-
function RenderArrow(props) {
|
|
9103
|
-
var className = props.className,
|
|
9104
|
-
style = props.style,
|
|
9105
|
-
onClick = props.onClick;
|
|
9106
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
9107
|
-
className: className,
|
|
9108
|
-
style: _extends({}, style, {
|
|
9109
|
-
display: "none"
|
|
9110
|
-
}),
|
|
9111
|
-
onClick: onClick
|
|
9112
|
-
});
|
|
9113
|
-
}
|
|
9114
9133
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
9115
9134
|
className: "" + SECTION_DEFAULT_CLASS
|
|
9116
9135
|
}, /*#__PURE__*/React__default.createElement(SectionTitle, {
|
|
9117
9136
|
data: data,
|
|
9118
9137
|
shopConfigStyle: shopConfigStyle
|
|
9119
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
9120
|
-
className: "
|
|
9138
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
9139
|
+
className: "mt-12 w-full"
|
|
9140
|
+
}, (products === null || products === void 0 ? void 0 : products.length) > 0 ? /*#__PURE__*/React__default.createElement(Slider, {
|
|
9121
9141
|
infinite: true,
|
|
9122
9142
|
slidesToShow: 1,
|
|
9143
|
+
slidesToScroll: 1,
|
|
9123
9144
|
speed: 500,
|
|
9124
9145
|
autoplay: true,
|
|
9125
9146
|
autoplaySpeed: 4000,
|
|
9126
9147
|
pauseOnHover: true,
|
|
9127
|
-
|
|
9128
|
-
prevArrow: /*#__PURE__*/React__default.createElement(RenderArrow, null),
|
|
9148
|
+
arrows: false,
|
|
9129
9149
|
beforeChange: function beforeChange(oldIndex, newIndex) {
|
|
9130
9150
|
return setCurrentSlide(newIndex);
|
|
9131
9151
|
},
|
|
@@ -9139,6 +9159,8 @@ var TreatmentsList7 = function TreatmentsList7(props) {
|
|
|
9139
9159
|
}
|
|
9140
9160
|
}, products === null || products === void 0 ? void 0 : products.map(function (product, index) {
|
|
9141
9161
|
return renderItemSlide(product, index);
|
|
9162
|
+
})) : /*#__PURE__*/React__default.createElement(NotFoundProduct, {
|
|
9163
|
+
text: "d\u1ECBch v\u1EE5"
|
|
9142
9164
|
}))), /*#__PURE__*/React__default.createElement(Dash, {
|
|
9143
9165
|
color: secondary
|
|
9144
9166
|
}), isOpenModal ? /*#__PURE__*/React__default.createElement(ModalNotification, {
|
|
@@ -9616,11 +9638,14 @@ var ProductList7 = function ProductList7(props) {
|
|
|
9616
9638
|
key: index,
|
|
9617
9639
|
product: product === null || product === void 0 ? void 0 : product.productInfo
|
|
9618
9640
|
});
|
|
9619
|
-
})), /*#__PURE__*/React__default.createElement(
|
|
9641
|
+
})), (products === null || products === void 0 ? void 0 : products.length) > 0 ? /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
9642
|
+
href: "/products",
|
|
9643
|
+
Link: Link
|
|
9644
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
9620
9645
|
label: "Xem tất cả",
|
|
9621
9646
|
shopConfigStyle: shopConfigStyle,
|
|
9622
9647
|
className: "mt-12"
|
|
9623
|
-
})), /*#__PURE__*/React__default.createElement(Dash, {
|
|
9648
|
+
})) : null), /*#__PURE__*/React__default.createElement(Dash, {
|
|
9624
9649
|
color: secondary
|
|
9625
9650
|
}));
|
|
9626
9651
|
};
|
|
@@ -10668,7 +10693,7 @@ var BookingForm6 = function BookingForm6(props) {
|
|
|
10668
10693
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
10669
10694
|
className: "mt-12 grid grid-cols-1 gap-6 md:grid-cols-3 md:gap-12"
|
|
10670
10695
|
}, /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
10671
|
-
href: (data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : (_data$data$ = _data$data[0]) === null || _data$data$ === void 0 ? void 0 : _data$data$.route) || (data === null || data === void 0 ? void 0 : (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : (_data$data2$ = _data$data2[0]) === null || _data$data2$ === void 0 ? void 0 : _data$data2$.link)
|
|
10696
|
+
href: (data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : (_data$data$ = _data$data[0]) === null || _data$data$ === void 0 ? void 0 : _data$data$.route) || (data === null || data === void 0 ? void 0 : (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : (_data$data2$ = _data$data2[0]) === null || _data$data2$ === void 0 ? void 0 : _data$data2$.link) || "#"
|
|
10672
10697
|
}, data !== null && data !== void 0 && (_data$data3 = data.data) !== null && _data$data3 !== void 0 && (_data$data3$ = _data$data3[0]) !== null && _data$data3$ !== void 0 && _data$data3$.svgImage ? /*#__PURE__*/React__default.createElement("div", {
|
|
10673
10698
|
className: "text-primary w-full h-auto"
|
|
10674
10699
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -10786,7 +10811,7 @@ var Banner3 = function Banner3(props) {
|
|
|
10786
10811
|
}, sectionData === null || sectionData === void 0 ? void 0 : sectionData.map(function (item, index) {
|
|
10787
10812
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
10788
10813
|
Link: Link,
|
|
10789
|
-
href: (item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link),
|
|
10814
|
+
href: (item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link) || "#",
|
|
10790
10815
|
key: "djsd-" + index
|
|
10791
10816
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
10792
10817
|
src: item === null || item === void 0 ? void 0 : item.srcImage,
|
|
@@ -11066,7 +11091,7 @@ var Footer1 = function Footer1(props) {
|
|
|
11066
11091
|
})) === null || _shopConfigStyle$navB2 === void 0 ? void 0 : _shopConfigStyle$navB2.map(function (route, index) {
|
|
11067
11092
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
11068
11093
|
Link: Link,
|
|
11069
|
-
href: route === null || route === void 0 ? void 0 : route.route,
|
|
11094
|
+
href: (route === null || route === void 0 ? void 0 : route.route) || "#",
|
|
11070
11095
|
key: "dfjg-" + index
|
|
11071
11096
|
}, /*#__PURE__*/React__default.createElement("div", null, route === null || route === void 0 ? void 0 : route.label));
|
|
11072
11097
|
}))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -11180,7 +11205,9 @@ var Footer7 = function Footer7(props) {
|
|
|
11180
11205
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
11181
11206
|
className: "mb-4 font-semibold text-md md:text-lg"
|
|
11182
11207
|
}, "Th\xF4ng tin li\xEAn h\u1EC7"), shopAddressList === null || shopAddressList === void 0 ? void 0 : shopAddressList.map(function (item, index) {
|
|
11183
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment,
|
|
11208
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
11209
|
+
key: "dlkhg-" + index
|
|
11210
|
+
}, /*#__PURE__*/React__default.createElement("div", null, "C\u01A1 s\u1EDF ", index + 1), /*#__PURE__*/React__default.createElement("div", {
|
|
11184
11211
|
className: "flex gap-1"
|
|
11185
11212
|
}, /*#__PURE__*/React__default.createElement(IoLocationOutline, {
|
|
11186
11213
|
size: 24,
|
|
@@ -11205,7 +11232,7 @@ var Footer7 = function Footer7(props) {
|
|
|
11205
11232
|
return e === null || e === void 0 ? void 0 : e.isShow;
|
|
11206
11233
|
})) === null || _shopConfigStyle$navB2 === void 0 ? void 0 : _shopConfigStyle$navB2.map(function (route, index) {
|
|
11207
11234
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
11208
|
-
href: route === null || route === void 0 ? void 0 : route.route,
|
|
11235
|
+
href: (route === null || route === void 0 ? void 0 : route.route) || "#",
|
|
11209
11236
|
Link: Link,
|
|
11210
11237
|
key: "fiddf-" + index
|
|
11211
11238
|
}, /*#__PURE__*/React__default.createElement("div", null, route === null || route === void 0 ? void 0 : route.label));
|
|
@@ -11328,71 +11355,48 @@ var CustomerRating1 = function CustomerRating1(props) {
|
|
|
11328
11355
|
var CustomerRating5 = function CustomerRating5(props) {
|
|
11329
11356
|
var _props$data = props.data,
|
|
11330
11357
|
data = _props$data === void 0 ? {} : _props$data;
|
|
11331
|
-
var _useState = useState(0),
|
|
11332
|
-
currentIndex = _useState[0],
|
|
11333
|
-
setCurrentIndex = _useState[1];
|
|
11334
11358
|
var sectionData = data === null || data === void 0 ? void 0 : data.data;
|
|
11335
|
-
var
|
|
11336
|
-
|
|
11337
|
-
|
|
11338
|
-
var _useState3 = useState(0),
|
|
11339
|
-
endX = _useState3[0],
|
|
11340
|
-
setEndX = _useState3[1];
|
|
11341
|
-
var sliderRef = useRef();
|
|
11342
|
-
var handleTouchStart = function handleTouchStart(e) {
|
|
11343
|
-
var touchStart = e.touches[0].clientX;
|
|
11344
|
-
setStartX(touchStart);
|
|
11345
|
-
};
|
|
11346
|
-
var handleTouchMove = function handleTouchMove(e) {
|
|
11347
|
-
var touchMove = e.touches[0].clientX;
|
|
11348
|
-
setEndX(touchMove);
|
|
11349
|
-
};
|
|
11350
|
-
var handleTouchEnd = function handleTouchEnd() {
|
|
11351
|
-
var diff = startX - endX;
|
|
11352
|
-
var threshold = sliderRef.current.offsetWidth / 3;
|
|
11353
|
-
if (diff > threshold && currentIndex < sectionData.length - 1) {
|
|
11354
|
-
setCurrentIndex(currentIndex + 1);
|
|
11355
|
-
} else if (diff < -threshold && currentIndex > 0) {
|
|
11356
|
-
setCurrentIndex(currentIndex - 1);
|
|
11357
|
-
}
|
|
11358
|
-
};
|
|
11359
|
+
var _useState = useState(0),
|
|
11360
|
+
currentSlide = _useState[0],
|
|
11361
|
+
setCurrentSlide = _useState[1];
|
|
11359
11362
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
11360
11363
|
className: SECTION_CLASS + " mx-0 md:mx-4 xl:mx-20 rounded-xl pb-6 relative"
|
|
11361
11364
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
11362
11365
|
className: "absolute mt-16 inset-0 bg-bgSecondary [clip-path:polygon(0%_0%,_100%_30%,_100%_100%,_0%_100%)] z-0 rounded-3xl"
|
|
11363
11366
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
11364
|
-
className: "w-full relative z-10 border border-textHeading rounded-3xl
|
|
11365
|
-
|
|
11366
|
-
|
|
11367
|
-
|
|
11368
|
-
|
|
11369
|
-
|
|
11370
|
-
|
|
11371
|
-
|
|
11372
|
-
|
|
11367
|
+
className: "w-full relative z-10 border border-textHeading rounded-3xl"
|
|
11368
|
+
}, /*#__PURE__*/React__default.createElement(Slider, {
|
|
11369
|
+
infinite: true,
|
|
11370
|
+
slidesToShow: 1,
|
|
11371
|
+
slidesToScroll: 1,
|
|
11372
|
+
speed: 500,
|
|
11373
|
+
autoplay: true,
|
|
11374
|
+
autoplaySpeed: 4000,
|
|
11375
|
+
pauseOnHover: true,
|
|
11376
|
+
arrows: false,
|
|
11377
|
+
beforeChange: function beforeChange(oldIndex, newIndex) {
|
|
11378
|
+
return setCurrentSlide(newIndex);
|
|
11379
|
+
},
|
|
11380
|
+
dots: true,
|
|
11381
|
+
customPaging: function customPaging(i) {
|
|
11382
|
+
return i === currentSlide ? /*#__PURE__*/React__default.createElement("div", {
|
|
11383
|
+
className: "w-4 h-1 rounded-full bg-primary mt-4"
|
|
11384
|
+
}) : /*#__PURE__*/React__default.createElement("div", {
|
|
11385
|
+
className: "w-4 h-1 rounded-full bg-gray-300 mt-4"
|
|
11386
|
+
});
|
|
11373
11387
|
}
|
|
11374
11388
|
}, sectionData === null || sectionData === void 0 ? void 0 : sectionData.map(function (item, index) {
|
|
11375
11389
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
11376
|
-
className: "flex flex-col
|
|
11390
|
+
className: "p-6 !flex !flex-col md:!flex-row gap-4 xl:gap-6",
|
|
11377
11391
|
key: "lpky-" + index
|
|
11378
11392
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
11379
11393
|
src: item === null || item === void 0 ? void 0 : item.avatar,
|
|
11380
|
-
className: "w-80 h-96 object-cover rounded-3xl"
|
|
11394
|
+
className: "w-full md:w-80 h-96 object-cover rounded-3xl"
|
|
11381
11395
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
11382
|
-
className: "flex flex-col items-center md:items-start gap-6 justify-center"
|
|
11396
|
+
className: "flex flex-col items-center md:items-start gap-4 lg:gap-6 justify-center"
|
|
11383
11397
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
11384
11398
|
className: "text-4xl font-semibold"
|
|
11385
|
-
}, item === null || item === void 0 ? void 0 : item.name), /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.content), /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.description)));
|
|
11386
|
-
})), /*#__PURE__*/React__default.createElement("div", {
|
|
11387
|
-
className: "absolute bottom-2 md:bottom-20 lg:bottom-[30%] left-1/2 md:left-2/3 xl:left-1/2 transform -translate-x-1/2 flex gap-2"
|
|
11388
|
-
}, sectionData === null || sectionData === void 0 ? void 0 : sectionData.map(function (_, index) {
|
|
11389
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
11390
|
-
key: "dot-" + index,
|
|
11391
|
-
onClick: function onClick() {
|
|
11392
|
-
setCurrentIndex(index);
|
|
11393
|
-
},
|
|
11394
|
-
className: (currentIndex === index ? "w-6 bg-primary" : "w-3 bg-gray4") + " h-3 rounded-full hover:opacity-80 cursor-pointer "
|
|
11395
|
-
});
|
|
11399
|
+
}, item === null || item === void 0 ? void 0 : item.name), /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.content), /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.description, " ")));
|
|
11396
11400
|
}))));
|
|
11397
11401
|
};
|
|
11398
11402
|
|
|
@@ -11673,6 +11677,7 @@ var Breadcrumb1 = function Breadcrumb1(props) {
|
|
|
11673
11677
|
label: "Trang chủ",
|
|
11674
11678
|
route: "/"
|
|
11675
11679
|
});
|
|
11680
|
+
console.log(items);
|
|
11676
11681
|
setItems(items);
|
|
11677
11682
|
};
|
|
11678
11683
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -11685,7 +11690,7 @@ var Breadcrumb1 = function Breadcrumb1(props) {
|
|
|
11685
11690
|
className: "text-gray4"
|
|
11686
11691
|
}, "/") : null, item !== null && item !== void 0 && item.route ? /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
11687
11692
|
Link: Link,
|
|
11688
|
-
href: item === null || item === void 0 ? void 0 : item.route,
|
|
11693
|
+
href: (item === null || item === void 0 ? void 0 : item.route) || "#",
|
|
11689
11694
|
style: {
|
|
11690
11695
|
color: textHeading
|
|
11691
11696
|
}
|
|
@@ -12671,7 +12676,7 @@ var SearchBar2 = function SearchBar2(props) {
|
|
|
12671
12676
|
backgroundSize: "cover"
|
|
12672
12677
|
}
|
|
12673
12678
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
12674
|
-
className: "w-
|
|
12679
|
+
className: "w-full md:w-1/2 py-6 mx-auto px-6 flex flex-col h-full gap-4"
|
|
12675
12680
|
}, /*#__PURE__*/React__default.createElement(Input, {
|
|
12676
12681
|
icons: /*#__PURE__*/React__default.createElement(IoSearchOutline, {
|
|
12677
12682
|
className: "text-gray3"
|
|
@@ -12724,13 +12729,14 @@ var SearchBar5 = function SearchBar5(props) {
|
|
|
12724
12729
|
}, data !== null && data !== void 0 && (_data$data2 = data.data) !== null && _data$data2 !== void 0 && _data$data2.title ? /*#__PURE__*/React__default.createElement("div", {
|
|
12725
12730
|
className: "text-xl font-semibold md:text-3xl lg:text-4xl text-textButton text-center"
|
|
12726
12731
|
}, data === null || data === void 0 ? void 0 : (_data$data3 = data.data) === null || _data$data3 === void 0 ? void 0 : _data$data3.title) : null, data !== null && data !== void 0 && (_data$data4 = data.data) !== null && _data$data4 !== void 0 && _data$data4.description ? /*#__PURE__*/React__default.createElement("div", {
|
|
12727
|
-
className: "text-center"
|
|
12732
|
+
className: "text-center text-textButton"
|
|
12728
12733
|
}, data === null || data === void 0 ? void 0 : (_data$data5 = data.data) === null || _data$data5 === void 0 ? void 0 : _data$data5.description) : null, /*#__PURE__*/React__default.createElement(Input, {
|
|
12729
12734
|
onChange: setValue,
|
|
12730
12735
|
icons: /*#__PURE__*/React__default.createElement(IoSearchOutline, {
|
|
12731
12736
|
className: "text-gray3 ps-1 text-xl md:text-2xl"
|
|
12732
12737
|
}),
|
|
12733
|
-
|
|
12738
|
+
wrapClassName: "w-full sm:w-[60%] md:w-[50%] lg:w-[40%]",
|
|
12739
|
+
className: "w-full bg-bgSecondary mb-2 md:h-12",
|
|
12734
12740
|
style: {
|
|
12735
12741
|
borderRadius: "32px"
|
|
12736
12742
|
},
|
|
@@ -12751,8 +12757,7 @@ var SearchBar5 = function SearchBar5(props) {
|
|
|
12751
12757
|
|
|
12752
12758
|
var SearchBar6 = function SearchBar6(props) {
|
|
12753
12759
|
var _data$data, _data$data2, _data$data3, _data$data4, _data$data5;
|
|
12754
|
-
var
|
|
12755
|
-
_props$Link = props.Link,
|
|
12760
|
+
var _props$Link = props.Link,
|
|
12756
12761
|
Link = _props$Link === void 0 ? null : _props$Link,
|
|
12757
12762
|
data = props.data;
|
|
12758
12763
|
var _useState = useState(""),
|
|
@@ -12768,14 +12773,15 @@ var SearchBar6 = function SearchBar6(props) {
|
|
|
12768
12773
|
}, data !== null && data !== void 0 && (_data$data2 = data.data) !== null && _data$data2 !== void 0 && _data$data2.title ? /*#__PURE__*/React__default.createElement("div", {
|
|
12769
12774
|
className: "text-lg font-semibold text-textBody md:text-2xl lg:text-3xl text-center"
|
|
12770
12775
|
}, data === null || data === void 0 ? void 0 : (_data$data3 = data.data) === null || _data$data3 === void 0 ? void 0 : _data$data3.title) : null, data !== null && data !== void 0 && (_data$data4 = data.data) !== null && _data$data4 !== void 0 && _data$data4.description ? /*#__PURE__*/React__default.createElement("div", {
|
|
12771
|
-
className: "text-center"
|
|
12776
|
+
className: "text-center text-textBody"
|
|
12772
12777
|
}, data === null || data === void 0 ? void 0 : (_data$data5 = data.data) === null || _data$data5 === void 0 ? void 0 : _data$data5.description) : null, /*#__PURE__*/React__default.createElement("div", {
|
|
12773
|
-
className: "flex gap-2 md:gap-4 lg:gap-6 mb-2 md:mb-0"
|
|
12778
|
+
className: "flex gap-2 md:gap-4 lg:gap-6 mb-2 md:mb-0 w-full md:w-[70%] h-10 lg:h-12 lg:w-1/2"
|
|
12774
12779
|
}, /*#__PURE__*/React__default.createElement(Input, {
|
|
12775
12780
|
icons: /*#__PURE__*/React__default.createElement(IoSearchOutline, {
|
|
12776
12781
|
className: "text-gray3"
|
|
12777
12782
|
}),
|
|
12778
|
-
className: "w-full h-full
|
|
12783
|
+
className: "w-full h-full",
|
|
12784
|
+
wrapClassName: " w-full h-full",
|
|
12779
12785
|
inputClassName: "w-full",
|
|
12780
12786
|
placeholder: data !== null && data !== void 0 && data.sectionTitle ? data === null || data === void 0 ? void 0 : data.sectionTitle : "Tìm kiếm sản phẩm",
|
|
12781
12787
|
onChange: setValue
|
|
@@ -12784,12 +12790,10 @@ var SearchBar6 = function SearchBar6(props) {
|
|
|
12784
12790
|
href: genLinkSearch(value)
|
|
12785
12791
|
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
12786
12792
|
label: "T\xECm ki\u1EBFm",
|
|
12787
|
-
className: "whitespace-nowrap h-full"
|
|
12788
|
-
shopConfigStyle: shopConfigStyle
|
|
12793
|
+
className: "whitespace-nowrap h-full"
|
|
12789
12794
|
})) : /*#__PURE__*/React__default.createElement(Button, {
|
|
12790
12795
|
label: "T\xECm ki\u1EBFm",
|
|
12791
|
-
className: "whitespace-nowrap "
|
|
12792
|
-
shopConfigStyle: shopConfigStyle
|
|
12796
|
+
className: "whitespace-nowrap "
|
|
12793
12797
|
}))));
|
|
12794
12798
|
};
|
|
12795
12799
|
|
|
@@ -12803,12 +12807,12 @@ var ShopHighlights2 = function ShopHighlights2(props) {
|
|
|
12803
12807
|
}, sectionData === null || sectionData === void 0 ? void 0 : sectionData.map(function (item, index) {
|
|
12804
12808
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
12805
12809
|
Link: Link,
|
|
12806
|
-
href: (item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link)
|
|
12810
|
+
href: (item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link) || "#"
|
|
12807
12811
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
12808
12812
|
className: "flex flex-col items-center text-center lg:px-3 gap-3",
|
|
12809
12813
|
key: "kdf-" + index
|
|
12810
12814
|
}, item !== null && item !== void 0 && item.svgImage ? /*#__PURE__*/React__default.createElement("div", {
|
|
12811
|
-
className: "
|
|
12815
|
+
className: "bg-primary p-3 text-textButton w-16 h-16 rounded-full",
|
|
12812
12816
|
dangerouslySetInnerHTML: {
|
|
12813
12817
|
__html: configSvg(item === null || item === void 0 ? void 0 : item.svgImage)
|
|
12814
12818
|
}
|
|
@@ -12831,13 +12835,13 @@ var ShopHighlights5 = function ShopHighlights5(props) {
|
|
|
12831
12835
|
className: SECTION_CLASS + " grid md:grid-cols-3 py-6 gap-4 lg:gap-6 bg-bgSecondary"
|
|
12832
12836
|
}, sectionData === null || sectionData === void 0 ? void 0 : sectionData.map(function (item, index) {
|
|
12833
12837
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
12834
|
-
href: (item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link),
|
|
12838
|
+
href: (item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link) || "#",
|
|
12835
12839
|
Link: Link
|
|
12836
12840
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
12837
12841
|
className: "flex flex-col items-center text-center md:px-3 lg:px-6 gap-3",
|
|
12838
12842
|
key: "kdf-" + index
|
|
12839
12843
|
}, item !== null && item !== void 0 && item.svgImage ? /*#__PURE__*/React__default.createElement("div", {
|
|
12840
|
-
className: "w-16 h-16 rounded-full
|
|
12844
|
+
className: "w-16 h-16 rounded-full bg-primary p-3 text-textButton ",
|
|
12841
12845
|
dangerouslySetInnerHTML: {
|
|
12842
12846
|
__html: configSvg(item === null || item === void 0 ? void 0 : item.svgImage)
|
|
12843
12847
|
}
|
|
@@ -12865,7 +12869,7 @@ var ShopHighlights6 = function ShopHighlights6(props) {
|
|
|
12865
12869
|
className: "flex flex-col items-center text-center md:px-3 lg:px-6 gap-3",
|
|
12866
12870
|
key: "kdf-" + index
|
|
12867
12871
|
}, item !== null && item !== void 0 && item.svgImage ? /*#__PURE__*/React__default.createElement("div", {
|
|
12868
|
-
className: "text-primary w-16 h-16 rounded-full",
|
|
12872
|
+
className: "text-primary w-16 h-16 p-3 text-textButton rounded-full",
|
|
12869
12873
|
dangerouslySetInnerHTML: {
|
|
12870
12874
|
__html: configSvg(item === null || item === void 0 ? void 0 : item.svgImage)
|
|
12871
12875
|
}
|
|
@@ -12877,7 +12881,7 @@ var ShopHighlights6 = function ShopHighlights6(props) {
|
|
|
12877
12881
|
className: " w-44 h-0.5 rounded-full bg-primary"
|
|
12878
12882
|
}), /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.description), /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
12879
12883
|
Link: Link,
|
|
12880
|
-
href: (item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link)
|
|
12884
|
+
href: (item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link) || "#"
|
|
12881
12885
|
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
12882
12886
|
shopConfigStyle: shopConfigStyle,
|
|
12883
12887
|
label: item === null || item === void 0 ? void 0 : item.title
|
|
@@ -12905,10 +12909,9 @@ var ShopHighlights7 = function ShopHighlights7(props) {
|
|
|
12905
12909
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
12906
12910
|
className: "mt-6 grid grid-cols-3 gap-4 md:gap-8"
|
|
12907
12911
|
}, data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.map(function (it, index) {
|
|
12908
|
-
var _item, _item2;
|
|
12909
12912
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
12910
12913
|
Link: Link,
|
|
12911
|
-
href: (
|
|
12914
|
+
href: (it === null || it === void 0 ? void 0 : it.route) || (it === null || it === void 0 ? void 0 : it.link) || "#",
|
|
12912
12915
|
key: index,
|
|
12913
12916
|
className: "pt-6 col-span-3 md:col-span-1"
|
|
12914
12917
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -12918,7 +12921,7 @@ var ShopHighlights7 = function ShopHighlights7(props) {
|
|
|
12918
12921
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
12919
12922
|
className: "absolute w-24 h-16 rounded-2xl -right-2 -top-2 z-0 bg-secondary"
|
|
12920
12923
|
}), it !== null && it !== void 0 && it.svgImage ? /*#__PURE__*/React__default.createElement("div", {
|
|
12921
|
-
className: "w-12 text-
|
|
12924
|
+
className: "w-12 text-textButton h-16 w-16 z-20 m-auto"
|
|
12922
12925
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
12923
12926
|
dangerouslySetInnerHTML: {
|
|
12924
12927
|
__html: configSvg(it === null || it === void 0 ? void 0 : it.svgImage)
|
|
@@ -12966,5 +12969,483 @@ var VideoFull1 = function VideoFull1(props) {
|
|
|
12966
12969
|
})) : null);
|
|
12967
12970
|
};
|
|
12968
12971
|
|
|
12969
|
-
|
|
12972
|
+
var getAllArticleNewsApi = function getAllArticleNewsApi(shopId, appId, landingShopConfigId, params) {
|
|
12973
|
+
if (params === void 0) {
|
|
12974
|
+
params = {};
|
|
12975
|
+
}
|
|
12976
|
+
return api({
|
|
12977
|
+
method: "get",
|
|
12978
|
+
url: "/landing/news/article/get-all-filter",
|
|
12979
|
+
params: _extends({
|
|
12980
|
+
shopId: shopId,
|
|
12981
|
+
appId: appId,
|
|
12982
|
+
landingShopConfigId: landingShopConfigId
|
|
12983
|
+
}, params)
|
|
12984
|
+
});
|
|
12985
|
+
};
|
|
12986
|
+
var getNewsDetailApi = function getNewsDetailApi(articleId, shopId, landingShopConfigId) {
|
|
12987
|
+
return api({
|
|
12988
|
+
method: "get",
|
|
12989
|
+
url: "/landing/news/article/" + articleId,
|
|
12990
|
+
params: {
|
|
12991
|
+
shopId: shopId,
|
|
12992
|
+
landingShopConfigId: landingShopConfigId,
|
|
12993
|
+
articleId: articleId
|
|
12994
|
+
}
|
|
12995
|
+
});
|
|
12996
|
+
};
|
|
12997
|
+
|
|
12998
|
+
var NewsController = function NewsController(props) {
|
|
12999
|
+
var shopConfig = props.shopConfig,
|
|
13000
|
+
params = props.params;
|
|
13001
|
+
var _useState = useState(false),
|
|
13002
|
+
loading = _useState[0],
|
|
13003
|
+
setLoading = _useState[1];
|
|
13004
|
+
var _useState2 = useState([]),
|
|
13005
|
+
newsArticles = _useState2[0],
|
|
13006
|
+
setNewsArticles = _useState2[1];
|
|
13007
|
+
var _useState3 = useState(),
|
|
13008
|
+
setPage = _useState3[1];
|
|
13009
|
+
useEffect(function () {
|
|
13010
|
+
if (shopConfig !== null && shopConfig !== void 0 && shopConfig.shopId && shopConfig !== null && shopConfig !== void 0 && shopConfig.landingShopConfigId) {
|
|
13011
|
+
getAllArticleNews();
|
|
13012
|
+
} else {
|
|
13013
|
+
setNewsArticles([]);
|
|
13014
|
+
setPage(null);
|
|
13015
|
+
}
|
|
13016
|
+
}, [shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.landingShopConfigId, params]);
|
|
13017
|
+
var getAllArticleNews = function getAllArticleNews() {
|
|
13018
|
+
try {
|
|
13019
|
+
setLoading(true);
|
|
13020
|
+
var _temp = _catch(function () {
|
|
13021
|
+
var defaultParams = {
|
|
13022
|
+
page: 0,
|
|
13023
|
+
size: 10,
|
|
13024
|
+
active: true
|
|
13025
|
+
};
|
|
13026
|
+
var filterParams = _extends({}, defaultParams, params);
|
|
13027
|
+
return Promise.resolve(getAllArticleNewsApi(shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopId, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.appId, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.landingShopConfigId, filterParams)).then(function (response) {
|
|
13028
|
+
var _response$data, _response$data$status;
|
|
13029
|
+
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) {
|
|
13030
|
+
var _response$data2, _response$data2$data, _response$data3, _response$data3$data;
|
|
13031
|
+
setNewsArticles(response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : (_response$data2$data = _response$data2.data) === null || _response$data2$data === void 0 ? void 0 : _response$data2$data.content);
|
|
13032
|
+
setPage(response === null || response === void 0 ? void 0 : (_response$data3 = response.data) === null || _response$data3 === void 0 ? void 0 : (_response$data3$data = _response$data3.data) === null || _response$data3$data === void 0 ? void 0 : _response$data3$data.totalElements);
|
|
13033
|
+
}
|
|
13034
|
+
setLoading(false);
|
|
13035
|
+
});
|
|
13036
|
+
}, function (error) {
|
|
13037
|
+
console.log(error);
|
|
13038
|
+
setLoading(false);
|
|
13039
|
+
});
|
|
13040
|
+
return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
|
|
13041
|
+
} catch (e) {
|
|
13042
|
+
return Promise.reject(e);
|
|
13043
|
+
}
|
|
13044
|
+
};
|
|
13045
|
+
return {
|
|
13046
|
+
newsArticles: newsArticles,
|
|
13047
|
+
loading: loading
|
|
13048
|
+
};
|
|
13049
|
+
};
|
|
13050
|
+
|
|
13051
|
+
var DefaultImage$1 = function DefaultImage(props) {
|
|
13052
|
+
var _props$className = props.className,
|
|
13053
|
+
className = _props$className === void 0 ? "" : _props$className;
|
|
13054
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
13055
|
+
className: "flex justify-center items-center max-w-full h-full aspect-video rounded-lg " + className,
|
|
13056
|
+
style: {
|
|
13057
|
+
backgroundColor: "#FAFAFA"
|
|
13058
|
+
}
|
|
13059
|
+
}, /*#__PURE__*/React__default.createElement(SvgImageGallery, {
|
|
13060
|
+
width: "25%",
|
|
13061
|
+
height: "25%",
|
|
13062
|
+
fill: "#D9D9D9"
|
|
13063
|
+
}));
|
|
13064
|
+
};
|
|
13065
|
+
var NewsImage = function NewsImage(props) {
|
|
13066
|
+
var _props$size2 = props.size,
|
|
13067
|
+
size = _props$size2 === void 0 ? 0 : _props$size2,
|
|
13068
|
+
_props$className2 = props.className,
|
|
13069
|
+
className = _props$className2 === void 0 ? "" : _props$className2,
|
|
13070
|
+
news = props.news;
|
|
13071
|
+
var _useState = useState(""),
|
|
13072
|
+
src = _useState[0],
|
|
13073
|
+
setSrc = _useState[1];
|
|
13074
|
+
useEffect(function () {
|
|
13075
|
+
getNewsImage();
|
|
13076
|
+
}, [news]);
|
|
13077
|
+
var getNewsImage = function getNewsImage() {
|
|
13078
|
+
var src = news === null || news === void 0 ? void 0 : news.thumbnail;
|
|
13079
|
+
setSrc(src);
|
|
13080
|
+
};
|
|
13081
|
+
return src ? /*#__PURE__*/React__default.createElement("img", {
|
|
13082
|
+
src: src,
|
|
13083
|
+
className: "h-full rounded-lg max-w-full aspect-video " + className,
|
|
13084
|
+
style: size ? {
|
|
13085
|
+
width: size,
|
|
13086
|
+
height: size
|
|
13087
|
+
} : null
|
|
13088
|
+
}) : /*#__PURE__*/React__default.createElement(DefaultImage$1, {
|
|
13089
|
+
className: className,
|
|
13090
|
+
size: size
|
|
13091
|
+
});
|
|
13092
|
+
};
|
|
13093
|
+
|
|
13094
|
+
var NewsHighlight1 = function NewsHighlight1(props) {
|
|
13095
|
+
var _newsArticles$, _newsArticles$2, _newsArticles$3, _newsArticles$slice;
|
|
13096
|
+
var _props$SectionTitle = props.SectionTitle,
|
|
13097
|
+
SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle,
|
|
13098
|
+
_props$shopConfigStyl = props.shopConfigStyle,
|
|
13099
|
+
shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
|
|
13100
|
+
_props$Link = props.Link,
|
|
13101
|
+
Link = _props$Link === void 0 ? null : _props$Link,
|
|
13102
|
+
data = props.data;
|
|
13103
|
+
var _useState = useState({
|
|
13104
|
+
tags: "HIGHLIGHT",
|
|
13105
|
+
page: 0,
|
|
13106
|
+
size: 6,
|
|
13107
|
+
sort: "timeUpdate,DESC"
|
|
13108
|
+
}),
|
|
13109
|
+
params = _useState[0];
|
|
13110
|
+
var _NewsController = NewsController(_extends({}, props, {
|
|
13111
|
+
params: params
|
|
13112
|
+
})),
|
|
13113
|
+
_NewsController$newsA = _NewsController.newsArticles,
|
|
13114
|
+
newsArticles = _NewsController$newsA === void 0 ? [] : _NewsController$newsA;
|
|
13115
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
13116
|
+
className: "" + SECTION_CLASS
|
|
13117
|
+
}, /*#__PURE__*/React__default.createElement(SectionTitle, {
|
|
13118
|
+
data: data,
|
|
13119
|
+
shopConfigStyle: shopConfigStyle
|
|
13120
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
13121
|
+
className: "mt-12 mb-6 grid grid-cols-1 md:grid-cols-2 gap-6 "
|
|
13122
|
+
}, /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
13123
|
+
href: getLinkNewsDetail(newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[0]),
|
|
13124
|
+
Link: Link
|
|
13125
|
+
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(NewsImage, {
|
|
13126
|
+
news: newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[0]
|
|
13127
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
13128
|
+
className: "pt-3 font-medium text-lg"
|
|
13129
|
+
}, newsArticles === null || newsArticles === void 0 ? void 0 : (_newsArticles$ = newsArticles[0]) === null || _newsArticles$ === void 0 ? void 0 : _newsArticles$.title))), /*#__PURE__*/React__default.createElement("div", {
|
|
13130
|
+
className: "flex flex-col gap-6"
|
|
13131
|
+
}, /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
13132
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-4 ",
|
|
13133
|
+
href: getLinkNewsDetail(newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[1]),
|
|
13134
|
+
Link: Link
|
|
13135
|
+
}, /*#__PURE__*/React__default.createElement(NewsImage, {
|
|
13136
|
+
news: newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[1]
|
|
13137
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
13138
|
+
className: "font-medium text-lg"
|
|
13139
|
+
}, newsArticles === null || newsArticles === void 0 ? void 0 : (_newsArticles$2 = newsArticles[1]) === null || _newsArticles$2 === void 0 ? void 0 : _newsArticles$2.title)), /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
13140
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
13141
|
+
href: getLinkNewsDetail(newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[2]),
|
|
13142
|
+
Link: Link
|
|
13143
|
+
}, /*#__PURE__*/React__default.createElement(NewsImage, {
|
|
13144
|
+
news: newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles[2]
|
|
13145
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
13146
|
+
className: "font-medium text-lg"
|
|
13147
|
+
}, newsArticles === null || newsArticles === void 0 ? void 0 : (_newsArticles$3 = newsArticles[2]) === null || _newsArticles$3 === void 0 ? void 0 : _newsArticles$3.title)))), /*#__PURE__*/React__default.createElement("div", {
|
|
13148
|
+
className: "grid grid-cols-1 md:grid-cols-3 gap-6 mt-6 "
|
|
13149
|
+
}, 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) {
|
|
13150
|
+
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
13151
|
+
href: getLinkNewsDetail(item),
|
|
13152
|
+
Link: Link,
|
|
13153
|
+
key: "kdjf-" + index
|
|
13154
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
13155
|
+
className: "jgdfg-" + index
|
|
13156
|
+
}, /*#__PURE__*/React__default.createElement(NewsImage, {
|
|
13157
|
+
news: item
|
|
13158
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
13159
|
+
className: "font-medium text-lg py-2"
|
|
13160
|
+
}, item === null || item === void 0 ? void 0 : item.title)));
|
|
13161
|
+
})));
|
|
13162
|
+
};
|
|
13163
|
+
|
|
13164
|
+
var relativeTime = createCommonjsModule(function (module, exports) {
|
|
13165
|
+
!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)};}}));
|
|
13166
|
+
});
|
|
13167
|
+
|
|
13168
|
+
var vi = createCommonjsModule(function (module, exports) {
|
|
13169
|
+
!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),_}));
|
|
13170
|
+
});
|
|
13171
|
+
|
|
13172
|
+
var getAllNewsCategoriesApi = function getAllNewsCategoriesApi(shopId, landingShopConfigId, appId) {
|
|
13173
|
+
if (appId === void 0) {
|
|
13174
|
+
appId = "SSPA";
|
|
13175
|
+
}
|
|
13176
|
+
return api({
|
|
13177
|
+
method: "get",
|
|
13178
|
+
url: "/landing/news/category/get-all",
|
|
13179
|
+
params: {
|
|
13180
|
+
shopId: shopId,
|
|
13181
|
+
landingShopConfigId: landingShopConfigId,
|
|
13182
|
+
appId: appId,
|
|
13183
|
+
active: true
|
|
13184
|
+
}
|
|
13185
|
+
});
|
|
13186
|
+
};
|
|
13187
|
+
|
|
13188
|
+
var NewsCategoryController = function NewsCategoryController(props) {
|
|
13189
|
+
var params = props.params,
|
|
13190
|
+
shopConfig = props.shopConfig;
|
|
13191
|
+
var _useState = useState([]),
|
|
13192
|
+
newsCategories = _useState[0],
|
|
13193
|
+
setNewsCategories = _useState[1];
|
|
13194
|
+
useEffect(function () {
|
|
13195
|
+
if (shopConfig !== null && shopConfig !== void 0 && shopConfig.shopId && shopConfig !== null && shopConfig !== void 0 && shopConfig.landingShopConfigId) getAllNewsCategories();
|
|
13196
|
+
}, [shopConfig, params]);
|
|
13197
|
+
var getAllNewsCategories = function getAllNewsCategories() {
|
|
13198
|
+
try {
|
|
13199
|
+
var _temp = _catch(function () {
|
|
13200
|
+
return Promise.resolve(getAllNewsCategoriesApi(shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopId, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.landingShopConfigId, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.appId)).then(function (res) {
|
|
13201
|
+
var _res$data, _res$data$status;
|
|
13202
|
+
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) {
|
|
13203
|
+
var _res$data2;
|
|
13204
|
+
setNewsCategories(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.data);
|
|
13205
|
+
}
|
|
13206
|
+
});
|
|
13207
|
+
}, function (error) {
|
|
13208
|
+
console.log(error);
|
|
13209
|
+
});
|
|
13210
|
+
return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
|
|
13211
|
+
} catch (e) {
|
|
13212
|
+
return Promise.reject(e);
|
|
13213
|
+
}
|
|
13214
|
+
};
|
|
13215
|
+
return {
|
|
13216
|
+
newsCategories: newsCategories
|
|
13217
|
+
};
|
|
13218
|
+
};
|
|
13219
|
+
|
|
13220
|
+
dayjs_min.extend(relativeTime);
|
|
13221
|
+
dayjs_min.locale("vi");
|
|
13222
|
+
var News1 = function News1(props) {
|
|
13223
|
+
var _newsArticles$slice;
|
|
13224
|
+
var _props$shopConfigStyl = props.shopConfigStyle,
|
|
13225
|
+
shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
|
|
13226
|
+
_props$Link = props.Link,
|
|
13227
|
+
Link = _props$Link === void 0 ? null : _props$Link,
|
|
13228
|
+
_props$catId = props.catId,
|
|
13229
|
+
catId = _props$catId === void 0 ? "" : _props$catId;
|
|
13230
|
+
var _useState = useState({
|
|
13231
|
+
page: 0,
|
|
13232
|
+
sort: "timeUpdate,DESC",
|
|
13233
|
+
size: 10,
|
|
13234
|
+
catId: catId
|
|
13235
|
+
}),
|
|
13236
|
+
params = _useState[0],
|
|
13237
|
+
setParams = _useState[1];
|
|
13238
|
+
var _useState2 = useState({}),
|
|
13239
|
+
categorySelected = _useState2[0],
|
|
13240
|
+
setCategorySelected = _useState2[1];
|
|
13241
|
+
var _useState3 = useState(true),
|
|
13242
|
+
isSeeMore = _useState3[0],
|
|
13243
|
+
setIsSeeMore = _useState3[1];
|
|
13244
|
+
var _NewsController = NewsController(_extends({}, props, {
|
|
13245
|
+
params: params
|
|
13246
|
+
})),
|
|
13247
|
+
_NewsController$newsA = _NewsController.newsArticles,
|
|
13248
|
+
newsArticles = _NewsController$newsA === void 0 ? [] : _NewsController$newsA,
|
|
13249
|
+
loading = _NewsController.loading;
|
|
13250
|
+
var _NewsCategoryControll = NewsCategoryController(props),
|
|
13251
|
+
_NewsCategoryControll2 = _NewsCategoryControll.newsCategories,
|
|
13252
|
+
newsCategories = _NewsCategoryControll2 === void 0 ? [] : _NewsCategoryControll2;
|
|
13253
|
+
var handleSeeMoreNews = function handleSeeMoreNews() {
|
|
13254
|
+
setIsSeeMore(false);
|
|
13255
|
+
setParams(function (prev) {
|
|
13256
|
+
return _extends({}, prev, {
|
|
13257
|
+
size: (prev === null || prev === void 0 ? void 0 : prev.size) + 4
|
|
13258
|
+
});
|
|
13259
|
+
});
|
|
13260
|
+
};
|
|
13261
|
+
useEffect(function () {
|
|
13262
|
+
if ((newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.length) > 0 && params !== null && params !== void 0 && params.catId) {
|
|
13263
|
+
var category = newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.find(function (item) {
|
|
13264
|
+
return (item === null || item === void 0 ? void 0 : item.catId) == catId;
|
|
13265
|
+
});
|
|
13266
|
+
setCategorySelected(category);
|
|
13267
|
+
}
|
|
13268
|
+
}, [params === null || params === void 0 ? void 0 : params.catId, newsCategories]);
|
|
13269
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
13270
|
+
className: SECTION_CLASS + " grid grid-cols-1 md:grid-cols-3 gap-6"
|
|
13271
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
13272
|
+
className: "md:col-span-2 flex flex-col gap-8"
|
|
13273
|
+
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
13274
|
+
className: "px-6 py-3 text-textButton text-lg rounded-t-lg bg-primary w-max"
|
|
13275
|
+
}, params !== null && params !== void 0 && params.catId ? categorySelected === null || categorySelected === void 0 ? void 0 : categorySelected.catName : "Tin mới"), /*#__PURE__*/React__default.createElement("div", {
|
|
13276
|
+
className: "w-full border border-primary"
|
|
13277
|
+
})), loading & isSeeMore ? /*#__PURE__*/React__default.createElement("div", {
|
|
13278
|
+
className: "w-full h-80 flex justify-center items-center"
|
|
13279
|
+
}, /*#__PURE__*/React__default.createElement(Loading, null)) : /*#__PURE__*/React__default.createElement("div", {
|
|
13280
|
+
className: "flex flex-col gap-8"
|
|
13281
|
+
}, (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) {
|
|
13282
|
+
var _dayjs;
|
|
13283
|
+
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
13284
|
+
href: getLinkNewsDetail(item),
|
|
13285
|
+
Link: Link,
|
|
13286
|
+
key: "kghf-" + index
|
|
13287
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
13288
|
+
className: "grid grid-cols-2 gap-2 md:gap-4 cursor-pointer",
|
|
13289
|
+
key: "djfsdf-" + index
|
|
13290
|
+
}, /*#__PURE__*/React__default.createElement(NewsImage, {
|
|
13291
|
+
news: item
|
|
13292
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
13293
|
+
className: "flex flex-col gap-2 md:gap-3 pb-4"
|
|
13294
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
13295
|
+
className: "font-medium text-lg md:text-xl line-clamp-2"
|
|
13296
|
+
}, item === null || item === void 0 ? void 0 : item.title), /*#__PURE__*/React__default.createElement("div", {
|
|
13297
|
+
className: "line-clamp-3 font-normal min-h-6 md:min-h-20 text-gray3"
|
|
13298
|
+
}, item === null || item === void 0 ? void 0 : item.shortDescription), /*#__PURE__*/React__default.createElement("div", {
|
|
13299
|
+
className: " text-gray3"
|
|
13300
|
+
}, (_dayjs = dayjs_min(item === null || item === void 0 ? void 0 : item.timeUpdate)) === null || _dayjs === void 0 ? void 0 : _dayjs.fromNow()))));
|
|
13301
|
+
}) : /*#__PURE__*/React__default.createElement("div", {
|
|
13302
|
+
className: "w-full h-64 flex flex-col justify-center items-center text-gray3"
|
|
13303
|
+
}, /*#__PURE__*/React__default.createElement(GiNewspaper, {
|
|
13304
|
+
size: 80
|
|
13305
|
+
}), " 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, {
|
|
13306
|
+
label: "Xem th\xEAm",
|
|
13307
|
+
shopConfigStyle: shopConfigStyle,
|
|
13308
|
+
onClick: handleSeeMoreNews,
|
|
13309
|
+
className: "w-max mx-auto"
|
|
13310
|
+
}) : null)), /*#__PURE__*/React__default.createElement("div", {
|
|
13311
|
+
className: "sticky top-20 self-start"
|
|
13312
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
13313
|
+
className: "px-6 py-3 bg-primary rounded-t-lg text-lg text-textButton text-center"
|
|
13314
|
+
}, "Chuy\xEAn m\u1EE5c"), /*#__PURE__*/React__default.createElement("div", {
|
|
13315
|
+
className: "rounded-b-lg bg-bgSecondary"
|
|
13316
|
+
}, newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.map(function (item, index) {
|
|
13317
|
+
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
13318
|
+
href: getLinkNewsByCategory(item),
|
|
13319
|
+
Link: Link,
|
|
13320
|
+
key: "fjhnfg-" + index
|
|
13321
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
13322
|
+
className: "px-6 py-3 hover:bg-gray-100 hover:text-primary cursor-pointer",
|
|
13323
|
+
key: "sdjfdh-" + index
|
|
13324
|
+
}, item === null || item === void 0 ? void 0 : item.catName));
|
|
13325
|
+
}))));
|
|
13326
|
+
};
|
|
13327
|
+
|
|
13328
|
+
var NewsDetailController = function NewsDetailController(props) {
|
|
13329
|
+
var shopConfig = props.shopConfig,
|
|
13330
|
+
_props$articleId = props.articleId,
|
|
13331
|
+
articleId = _props$articleId === void 0 ? 0 : _props$articleId;
|
|
13332
|
+
var _useState = useState(),
|
|
13333
|
+
article = _useState[0],
|
|
13334
|
+
setArticle = _useState[1];
|
|
13335
|
+
useEffect(function () {
|
|
13336
|
+
if (articleId) {
|
|
13337
|
+
getProductDetail();
|
|
13338
|
+
}
|
|
13339
|
+
}, [articleId]);
|
|
13340
|
+
var getProductDetail = function getProductDetail() {
|
|
13341
|
+
try {
|
|
13342
|
+
var _temp = _catch(function () {
|
|
13343
|
+
return Promise.resolve(getNewsDetailApi(articleId, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopId, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.landingShopConfigId)).then(function (res) {
|
|
13344
|
+
var _res$data, _res$data$status;
|
|
13345
|
+
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) {
|
|
13346
|
+
var _res$data2;
|
|
13347
|
+
setArticle(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.data);
|
|
13348
|
+
}
|
|
13349
|
+
});
|
|
13350
|
+
}, function (e) {
|
|
13351
|
+
console.log(e);
|
|
13352
|
+
});
|
|
13353
|
+
return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
|
|
13354
|
+
} catch (e) {
|
|
13355
|
+
return Promise.reject(e);
|
|
13356
|
+
}
|
|
13357
|
+
};
|
|
13358
|
+
return {
|
|
13359
|
+
article: article
|
|
13360
|
+
};
|
|
13361
|
+
};
|
|
13362
|
+
|
|
13363
|
+
dayjs_min.extend(relativeTime);
|
|
13364
|
+
dayjs_min.locale("vi");
|
|
13365
|
+
var NewsDetail1 = function NewsDetail1(props) {
|
|
13366
|
+
var shopConfigStyle = props.shopConfigStyle,
|
|
13367
|
+
_props$catId = props.catId,
|
|
13368
|
+
catId = _props$catId === void 0 ? 0 : _props$catId,
|
|
13369
|
+
_props$Link = props.Link,
|
|
13370
|
+
Link = _props$Link === void 0 ? null : _props$Link;
|
|
13371
|
+
var _useState = useState({
|
|
13372
|
+
catId: catId,
|
|
13373
|
+
szie: 10
|
|
13374
|
+
}),
|
|
13375
|
+
params = _useState[0],
|
|
13376
|
+
setParams = _useState[1];
|
|
13377
|
+
var _NewsDetailController = NewsDetailController(props),
|
|
13378
|
+
_NewsDetailController2 = _NewsDetailController.article,
|
|
13379
|
+
article = _NewsDetailController2 === void 0 ? {} : _NewsDetailController2;
|
|
13380
|
+
var _NewsCategoryControll = NewsCategoryController(props),
|
|
13381
|
+
_NewsCategoryControll2 = _NewsCategoryControll.newsCategories,
|
|
13382
|
+
newsCategories = _NewsCategoryControll2 === void 0 ? [] : _NewsCategoryControll2;
|
|
13383
|
+
var _NewsController = NewsController(_extends({}, props, {
|
|
13384
|
+
params: params
|
|
13385
|
+
})),
|
|
13386
|
+
_NewsController$newsA = _NewsController.newsArticles,
|
|
13387
|
+
newsArticles = _NewsController$newsA === void 0 ? [] : _NewsController$newsA;
|
|
13388
|
+
var handleSeeMore = function handleSeeMore() {
|
|
13389
|
+
setParams(function (prev) {
|
|
13390
|
+
return _extends({}, prev, {
|
|
13391
|
+
size: (prev === null || prev === void 0 ? void 0 : prev.size) + 4
|
|
13392
|
+
});
|
|
13393
|
+
});
|
|
13394
|
+
};
|
|
13395
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
13396
|
+
className: SECTION_CLASS + " grid grid-cols-1 md:grid-cols-3 mt-0 md:mt-0 gap-6"
|
|
13397
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
13398
|
+
className: "md:col-span-2 flex flex-col gap-4"
|
|
13399
|
+
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
13400
|
+
className: "text-2xl font-medium"
|
|
13401
|
+
}, article === null || article === void 0 ? void 0 : article.title), /*#__PURE__*/React__default.createElement("div", {
|
|
13402
|
+
className: "flex items-center gap-2 text-gray3 mt-2"
|
|
13403
|
+
}, /*#__PURE__*/React__default.createElement(GoClock, null), dayjs_min(article === null || article === void 0 ? void 0 : article.timeUpdate).fromNow())), /*#__PURE__*/React__default.createElement("div", {
|
|
13404
|
+
className: "text-gray2"
|
|
13405
|
+
}, article === null || article === void 0 ? void 0 : article.shortDescription), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(NewsImage, {
|
|
13406
|
+
news: article
|
|
13407
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
13408
|
+
dangerouslySetInnerHTML: {
|
|
13409
|
+
__html: article === null || article === void 0 ? void 0 : article.content
|
|
13410
|
+
}
|
|
13411
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
13412
|
+
className: "mt-6"
|
|
13413
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
13414
|
+
className: "font-medium text-2xl mb-4"
|
|
13415
|
+
}, "Tin c\xF9ng chuy\xEAn m\u1EE5c"), /*#__PURE__*/React__default.createElement("div", {
|
|
13416
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-6"
|
|
13417
|
+
}, newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles.map(function (item, index) {
|
|
13418
|
+
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
13419
|
+
href: getLinkNewsDetail(item),
|
|
13420
|
+
Link: Link,
|
|
13421
|
+
key: "kghf-" + index
|
|
13422
|
+
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(NewsImage, {
|
|
13423
|
+
news: item
|
|
13424
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
13425
|
+
className: "font-medium text-lg line-clamp-2"
|
|
13426
|
+
}, item === null || item === void 0 ? void 0 : item.title)));
|
|
13427
|
+
})), (newsArticles === null || newsArticles === void 0 ? void 0 : newsArticles.length) > (params === null || params === void 0 ? void 0 : params.size) - 4 ? /*#__PURE__*/React__default.createElement("div", {
|
|
13428
|
+
className: "flex justify-center mt-4 w-full"
|
|
13429
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
13430
|
+
label: "Xem thêm",
|
|
13431
|
+
onClick: handleSeeMore,
|
|
13432
|
+
shopConfigStyle: shopConfigStyle
|
|
13433
|
+
})) : null)), /*#__PURE__*/React__default.createElement("div", {
|
|
13434
|
+
className: "sticky top-20 self-start"
|
|
13435
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
13436
|
+
className: "px-6 py-3 bg-primary rounded-t-lg text-lg text-textButton text-center"
|
|
13437
|
+
}, "Chuy\xEAn m\u1EE5c"), /*#__PURE__*/React__default.createElement("div", {
|
|
13438
|
+
className: "rounded-b-lg bg-bgSecondary"
|
|
13439
|
+
}, newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.map(function (item, index) {
|
|
13440
|
+
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
13441
|
+
href: getLinkNewsByCategory(item),
|
|
13442
|
+
Link: Link
|
|
13443
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
13444
|
+
className: "px-6 py-3 hover:bg-gray-100 hover:text-primary cursor-pointer",
|
|
13445
|
+
key: "sdjfdh-" + index
|
|
13446
|
+
}, item === null || item === void 0 ? void 0 : item.catName));
|
|
13447
|
+
}))));
|
|
13448
|
+
};
|
|
13449
|
+
|
|
13450
|
+
export { About1, About5, 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 as Hero12, Hero13, Hero2, Hero5, Hero6, Input, InputPhoneNumber, Links1, ModalNotification, NavBar1, NavBar7, News1, NewsDetail1, NewsHighlight1, PageTitle1, Partner1, ProductCategory2, ProductDetail10, ProductHighlight1, ProductHot1, ProductHot3, ProductItem2, ProductItem3, ProductItem4, ProductItem5, ProductItem6, ProductItem7, ProductList5, ProductList7, ProductSale2, ProductSearch1, Products10, Products2, Products3, ProductsTop1, SearchBar2, SearchBar5, SearchBar6, SearchProduct1, SectionTitle1, SectionTitle2, SectionTitle3, Select$1 as Select, ServiceDetail1, ShopHighlights2, ShopHighlights5, ShopHighlights6, ShopHighlights7, TextArea, TreatmentDetail1, TreatmentItem1, TreatmentsCategory7, TreatmentsList6, TreatmentsList7, VideoFull1 };
|
|
12970
13451
|
//# sourceMappingURL=index.modern.js.map
|