s-platform-landing-section 0.1.36-beta.2 → 0.1.36-beta.4
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 +12 -15
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +12 -15
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -7638,20 +7638,17 @@ var CategoryController = function CategoryController(props) {
|
|
|
7638
7638
|
|
|
7639
7639
|
var Hero13 = function Hero13(props) {
|
|
7640
7640
|
var _sectionData$, _sectionData$$srcImag, _data$data, _data$data$;
|
|
7641
|
-
var listRef = useRef(null);
|
|
7642
|
-
var _useState = useState(false);
|
|
7643
7641
|
var shopConfig = props.shopConfig,
|
|
7644
7642
|
data = props.data;
|
|
7645
7643
|
var sectionData = data === null || data === void 0 ? void 0 : data.data;
|
|
7646
|
-
var _CategoryController = CategoryController(props);
|
|
7647
7644
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("img", {
|
|
7648
7645
|
src: sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$ = sectionData[0]) === null || _sectionData$ === void 0 ? void 0 : (_sectionData$$srcImag = _sectionData$.srcImages) === null || _sectionData$$srcImag === void 0 ? void 0 : _sectionData$$srcImag[0],
|
|
7649
7646
|
alt: 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$.title,
|
|
7650
7647
|
className: "w-full object-cover"
|
|
7651
7648
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
7652
7649
|
className: "fixed right-6 bottom-10 md:bottom-24 z-50 flex flex-col gap-4 w-max"
|
|
7653
|
-
}, /*#__PURE__*/React__default.createElement("a", {
|
|
7654
|
-
href:
|
|
7650
|
+
}, (shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopPhone) && /*#__PURE__*/React__default.createElement("a", {
|
|
7651
|
+
href: "tel:" + (shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopPhone)
|
|
7655
7652
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
7656
7653
|
className: "relative w-max"
|
|
7657
7654
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
@@ -7660,9 +7657,9 @@ var Hero13 = function Hero13(props) {
|
|
|
7660
7657
|
className: "relative z-10 p-2 rounded-full bg-primary text-textButton animate-bounce"
|
|
7661
7658
|
}, /*#__PURE__*/React__default.createElement(AiOutlinePhone, {
|
|
7662
7659
|
size: 36
|
|
7663
|
-
})))), /*#__PURE__*/React__default.createElement("a", {
|
|
7660
|
+
})))), (shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopMessenger) && /*#__PURE__*/React__default.createElement("a", {
|
|
7664
7661
|
href: (shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopMessenger) || "#",
|
|
7665
|
-
target:
|
|
7662
|
+
target: "_blank"
|
|
7666
7663
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
7667
7664
|
className: "relative w-max"
|
|
7668
7665
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
@@ -7671,7 +7668,7 @@ var Hero13 = function Hero13(props) {
|
|
|
7671
7668
|
className: "relative z-10 p-2 rounded-full bg-primary text-textButton animate-bounce"
|
|
7672
7669
|
}, /*#__PURE__*/React__default.createElement(FaFacebookMessenger, {
|
|
7673
7670
|
size: 32
|
|
7674
|
-
})))), /*#__PURE__*/React__default.createElement("a", {
|
|
7671
|
+
})))), (shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopZalo) && /*#__PURE__*/React__default.createElement("a", {
|
|
7675
7672
|
href: "https://zalo.me/" + (shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopZalo) || "#",
|
|
7676
7673
|
target: "_blank"
|
|
7677
7674
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -7750,7 +7747,7 @@ var Hero15 = function Hero15(props) {
|
|
|
7750
7747
|
};
|
|
7751
7748
|
|
|
7752
7749
|
var Hero16 = function Hero16(props) {
|
|
7753
|
-
var _data$data, _data$data$, _data$data$$srcImages, _data$data2, _data$data2$, _data$
|
|
7750
|
+
var _data$data, _data$data$, _data$data$$srcImages, _data$data2, _data$data2$, _data$data3, _data$data3$, _data$data4, _data$data4$, _data$data4$$srcImage;
|
|
7754
7751
|
var _props$data = props.data,
|
|
7755
7752
|
data = _props$data === void 0 ? {} : _props$data,
|
|
7756
7753
|
_props$shopConfigStyl = props.shopConfigStyle,
|
|
@@ -7778,9 +7775,9 @@ var Hero16 = function Hero16(props) {
|
|
|
7778
7775
|
className: "w-full md:w-2/3 absolute top-[10%] md:top-1/3 left-0 z-10 px-4 xl:px-20 flex flex-col gap-6 text-textButton my-auto"
|
|
7779
7776
|
}, /*#__PURE__*/React__default.createElement("h2", {
|
|
7780
7777
|
className: "font-medium text-2xl lg:text-4xl"
|
|
7781
|
-
},
|
|
7778
|
+
}, data === null || data === void 0 ? void 0 : (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : (_data$data2$ = _data$data2[0]) === null || _data$data2$ === void 0 ? void 0 : _data$data2$.title), /*#__PURE__*/React__default.createElement("div", {
|
|
7782
7779
|
className: " text-lg lg:text-2xl"
|
|
7783
|
-
},
|
|
7780
|
+
}, 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("div", {
|
|
7784
7781
|
className: "flex flex-col md:flex-row gap-4 w-full"
|
|
7785
7782
|
}, /*#__PURE__*/React__default.createElement(Input, {
|
|
7786
7783
|
wrapClassName: "w-full md:w-2/3 xl:w-[85%]",
|
|
@@ -7816,7 +7813,7 @@ var Hero16 = function Hero16(props) {
|
|
|
7816
7813
|
d: "M75.1847 149.804C55 189.553 14.9932 204.532 0 212H480V0C424.514 20.7319 393 94.1529 216.361 62.1956C120.186 44.7957 96.1405 108.537 75.1847 149.804Z",
|
|
7817
7814
|
fill: "currentColor"
|
|
7818
7815
|
}))), /*#__PURE__*/React__default.createElement("img", {
|
|
7819
|
-
src: data === null || data === void 0 ? void 0 : (_data$
|
|
7816
|
+
src: 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$$srcImage = _data$data4$.srcImages) === null || _data$data4$$srcImage === void 0 ? void 0 : _data$data4$$srcImage[1],
|
|
7820
7817
|
className: "object-cover w-[28%] h-auto absolute right-10 opacity-100 bottom-0 z-10"
|
|
7821
7818
|
}));
|
|
7822
7819
|
};
|
|
@@ -10664,7 +10661,7 @@ var ProductItem11 = function ProductItem11(props) {
|
|
|
10664
10661
|
};
|
|
10665
10662
|
|
|
10666
10663
|
var TreatmentItem1 = function TreatmentItem1(props) {
|
|
10667
|
-
var _product$productInfo;
|
|
10664
|
+
var _product$productInfo, _product$productInfo2;
|
|
10668
10665
|
var product = props.product,
|
|
10669
10666
|
_props$Link = props.Link,
|
|
10670
10667
|
Link = _props$Link === void 0 ? null : _props$Link,
|
|
@@ -10687,7 +10684,7 @@ var TreatmentItem1 = function TreatmentItem1(props) {
|
|
|
10687
10684
|
className: "flex flex-col md:flex-row gap-2 md:items-center md:gap-6 "
|
|
10688
10685
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10689
10686
|
className: "whitespace-nowrap"
|
|
10690
|
-
}, "Th\u1EDDi gian:
|
|
10687
|
+
}, "Th\u1EDDi gian: ", getDurationValue(product === null || product === void 0 ? void 0 : (_product$productInfo2 = product.productInfo) === null || _product$productInfo2 === void 0 ? void 0 : _product$productInfo2.attributes)), /*#__PURE__*/React__default.createElement(Button, {
|
|
10691
10688
|
shopConfigStyle: shopConfigStyle,
|
|
10692
10689
|
label: "\u0110\u1EB7t l\u1ECBch",
|
|
10693
10690
|
className: "w-full"
|
|
@@ -16414,7 +16411,7 @@ var NewsDetail1 = function NewsDetail1(props) {
|
|
|
16414
16411
|
}), (newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.length) > 0 ? /*#__PURE__*/React__default.createElement("div", {
|
|
16415
16412
|
className: "top-6 block md:hidden"
|
|
16416
16413
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
16417
|
-
className: "px-6 bg-primary rounded-t-lg text-lg text-textButton text-center"
|
|
16414
|
+
className: "px-6 py-3 bg-primary rounded-t-lg text-lg text-textButton text-center"
|
|
16418
16415
|
}, "Chuy\xEAn m\u1EE5c"), /*#__PURE__*/React__default.createElement("div", {
|
|
16419
16416
|
className: "rounded-b-lg bg-bgSecondary"
|
|
16420
16417
|
}, newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.map(function (item, index) {
|