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 CHANGED
@@ -7641,20 +7641,17 @@ var CategoryController = function CategoryController(props) {
7641
7641
 
7642
7642
  var Hero13 = function Hero13(props) {
7643
7643
  var _sectionData$, _sectionData$$srcImag, _data$data, _data$data$;
7644
- var listRef = React.useRef(null);
7645
- var _useState = React.useState(false);
7646
7644
  var shopConfig = props.shopConfig,
7647
7645
  data = props.data;
7648
7646
  var sectionData = data === null || data === void 0 ? void 0 : data.data;
7649
- var _CategoryController = CategoryController(props);
7650
7647
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("img", {
7651
7648
  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],
7652
7649
  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,
7653
7650
  className: "w-full object-cover"
7654
7651
  }), /*#__PURE__*/React__default.createElement("div", {
7655
7652
  className: "fixed right-6 bottom-10 md:bottom-24 z-50 flex flex-col gap-4 w-max"
7656
- }, /*#__PURE__*/React__default.createElement("a", {
7657
- href: shopConfig !== null && shopConfig !== void 0 && shopConfig.shopPhone ? "tel:" + (shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopPhone) : "#"
7653
+ }, (shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopPhone) && /*#__PURE__*/React__default.createElement("a", {
7654
+ href: "tel:" + (shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopPhone)
7658
7655
  }, /*#__PURE__*/React__default.createElement("div", {
7659
7656
  className: "relative w-max"
7660
7657
  }, /*#__PURE__*/React__default.createElement("span", {
@@ -7663,9 +7660,9 @@ var Hero13 = function Hero13(props) {
7663
7660
  className: "relative z-10 p-2 rounded-full bg-primary text-textButton animate-bounce"
7664
7661
  }, /*#__PURE__*/React__default.createElement(ai.AiOutlinePhone, {
7665
7662
  size: 36
7666
- })))), /*#__PURE__*/React__default.createElement("a", {
7663
+ })))), (shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopMessenger) && /*#__PURE__*/React__default.createElement("a", {
7667
7664
  href: (shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopMessenger) || "#",
7668
- target: shopConfig !== null && shopConfig !== void 0 && shopConfig.shopMessenger ? "_blank" : "_self"
7665
+ target: "_blank"
7669
7666
  }, /*#__PURE__*/React__default.createElement("div", {
7670
7667
  className: "relative w-max"
7671
7668
  }, /*#__PURE__*/React__default.createElement("span", {
@@ -7674,7 +7671,7 @@ var Hero13 = function Hero13(props) {
7674
7671
  className: "relative z-10 p-2 rounded-full bg-primary text-textButton animate-bounce"
7675
7672
  }, /*#__PURE__*/React__default.createElement(fa.FaFacebookMessenger, {
7676
7673
  size: 32
7677
- })))), /*#__PURE__*/React__default.createElement("a", {
7674
+ })))), (shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopZalo) && /*#__PURE__*/React__default.createElement("a", {
7678
7675
  href: "https://zalo.me/" + (shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopZalo) || "#",
7679
7676
  target: "_blank"
7680
7677
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -10667,7 +10664,7 @@ var ProductItem11 = function ProductItem11(props) {
10667
10664
  };
10668
10665
 
10669
10666
  var TreatmentItem1 = function TreatmentItem1(props) {
10670
- var _product$productInfo;
10667
+ var _product$productInfo, _product$productInfo2;
10671
10668
  var product = props.product,
10672
10669
  _props$Link = props.Link,
10673
10670
  Link = _props$Link === void 0 ? null : _props$Link,
@@ -10690,7 +10687,7 @@ var TreatmentItem1 = function TreatmentItem1(props) {
10690
10687
  className: "flex flex-col md:flex-row gap-2 md:items-center md:gap-6 "
10691
10688
  }, /*#__PURE__*/React__default.createElement("div", {
10692
10689
  className: "whitespace-nowrap"
10693
- }, "Th\u1EDDi gian: 120p"), /*#__PURE__*/React__default.createElement(Button, {
10690
+ }, "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, {
10694
10691
  shopConfigStyle: shopConfigStyle,
10695
10692
  label: "\u0110\u1EB7t l\u1ECBch",
10696
10693
  className: "w-full"
@@ -16417,7 +16414,7 @@ var NewsDetail1 = function NewsDetail1(props) {
16417
16414
  }), (newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.length) > 0 ? /*#__PURE__*/React__default.createElement("div", {
16418
16415
  className: "top-6 block md:hidden"
16419
16416
  }, /*#__PURE__*/React__default.createElement("div", {
16420
- className: "px-6 bg-primary rounded-t-lg text-lg text-textButton text-center"
16417
+ className: "px-6 py-3 bg-primary rounded-t-lg text-lg text-textButton text-center"
16421
16418
  }, "Chuy\xEAn m\u1EE5c"), /*#__PURE__*/React__default.createElement("div", {
16422
16419
  className: "rounded-b-lg bg-bgSecondary"
16423
16420
  }, newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.map(function (item, index) {