s-platform-landing-section 0.1.36-beta.2 → 0.1.36-beta.3
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 +8 -11
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8 -11
- 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", {
|
|
@@ -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) {
|