s-platform-landing-section 0.1.25 → 0.1.27

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
@@ -22,7 +22,6 @@ require('slick-carousel/slick/slick-theme.css');
22
22
  var ai = require('react-icons/ai');
23
23
  var go = require('react-icons/go');
24
24
  var hi = require('react-icons/hi');
25
- var md = require('react-icons/md');
26
25
  var ri = require('react-icons/ri');
27
26
  var gi = require('react-icons/gi');
28
27
 
@@ -1097,17 +1096,17 @@ var Hero2 = function Hero2(props) {
1097
1096
  }, /*#__PURE__*/React__default.createElement("img", {
1098
1097
  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],
1099
1098
  alt: 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,
1100
- className: "w-full object-cover min-h-[30vh] md:min-h-[50vh] max-h-[100vh]"
1099
+ className: "w-full object-cover min-h-[22vh] md:min-h-[30vh] md:min-h-[50vh] max-h-[100vh]"
1101
1100
  }), /*#__PURE__*/React__default.createElement("div", {
1102
- className: "absolute flex flex-col gap-1 md:gap-4 absolute w-1/2 lg:w-[40%] top-2 sm:top-[20%] xl:top-1/4 right-[2%] lg:right-[15%]"
1101
+ className: "absolute flex flex-col gap-1 md:gap-4 absolute w-1/2 lg:w-[40%] top-12 sm:top-[20%] xl:top-1/4 right-[2%] lg:right-[15%]"
1103
1102
  }, /*#__PURE__*/React__default.createElement("img", {
1104
1103
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
1105
1104
  alt: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName,
1106
- className: "h-6 w-6 md:h-16 md:w-16 lg:h-20 lg:w-20"
1105
+ className: "h-5 w-5 sm:h-8 sm:w-8 md:h-16 md:w-16 lg:h-20 lg:w-20"
1107
1106
  }), /*#__PURE__*/React__default.createElement("div", {
1108
- className: "text-lg md:text-3xl lg:text-4xl font-medium"
1107
+ className: "text-base md:text-3xl lg:text-4xl font-medium line-clamp-1"
1109
1108
  }, 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$.title), /*#__PURE__*/React__default.createElement("div", {
1110
- className: "text-sm md:text-xl lg:text-2xl "
1109
+ className: "text-xs md:text-xl lg:text-2xl line-clamp-2"
1111
1110
  }, 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$.description)));
1112
1111
  };
1113
1112
 
@@ -1119,13 +1118,13 @@ var Hero5 = function Hero5(props) {
1119
1118
  }, /*#__PURE__*/React__default.createElement("img", {
1120
1119
  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],
1121
1120
  alt: 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,
1122
- className: "w-full min-h-[30vh] md:min-h-[50vh] max-h-[100vh] object-cover"
1121
+ className: "w-full min-h-[25vh] md:min-h-[50vh] max-h-[100vh] object-cover"
1123
1122
  }), /*#__PURE__*/React__default.createElement("div", {
1124
- 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"
1123
+ className: "flex flex-col gap-2 md:gap-4 absolute top-10 md:top-[20%] w-1/2 lg:w-[45%] left-4 lg:left-10 xl:left-20"
1125
1124
  }, /*#__PURE__*/React__default.createElement("div", {
1126
- className: "text-xl md:text-3xl lg:text-4xl text-textHeading font-medium"
1125
+ className: "text-xl sm:text-2xl md:text-3xl lg:text-4xl text-textHeading font-medium line-clamp-2 md:line-clamp-3"
1127
1126
  }, 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$.title), /*#__PURE__*/React__default.createElement("div", {
1128
- className: "md:text-xl lg:text-2xl text-primary line-clamp-3 md:line-clamp-none"
1127
+ className: "md:text-xl lg:text-2xl text-primary line-clamp-3 md:line-clamp-4 md:line-clamp-none"
1129
1128
  }, 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$.description)));
1130
1129
  };
1131
1130
 
@@ -1141,13 +1140,13 @@ var Hero6 = function Hero6(props) {
1141
1140
  }, /*#__PURE__*/React__default.createElement("img", {
1142
1141
  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],
1143
1142
  alt: 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,
1144
- className: "object-cover w-full h-auto min-h-[30vh] md:min-h-[50vh] max-h-[100vh]"
1143
+ className: "object-cover w-full h-auto min-h-[20vh] md:min-h-[30vh] md:min-h-[50vh] max-h-[100vh]"
1145
1144
  }), /*#__PURE__*/React__default.createElement("div", {
1146
- 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"
1145
+ className: "absolute top-4 sm:top-8 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"
1147
1146
  }, /*#__PURE__*/React__default.createElement("div", {
1148
- className: "text-primary text-xl md:text-3xl lg:text-5xl leading-[1.6] md:leading-[1.6] text-center font-headingFont"
1147
+ className: "text-primary line-clamp-1 text-xl md:text-3xl lg:text-5xl leading-[1.6] md:leading-[1.6] text-center font-headingFont"
1149
1148
  }, 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$.title), /*#__PURE__*/React__default.createElement("div", {
1150
- className: "md:text-xl"
1149
+ className: "md:text-xl text-center line-clamp-1"
1151
1150
  }, 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$.description), sectionData === null || sectionData === void 0 ? void 0 : (_sectionData$ = sectionData[0]) === null || _sectionData$ === void 0 ? void 0 : (_sectionData$$buttons = _sectionData$.buttons) === null || _sectionData$$buttons === void 0 ? void 0 : _sectionData$$buttons.map(function (button) {
1152
1151
  return /*#__PURE__*/React__default.createElement(LinkToPage, {
1153
1152
  Link: Link,
@@ -7365,7 +7364,7 @@ var lib = {
7365
7364
  };
7366
7365
 
7367
7366
  var getBaseUrl = function getBaseUrl() {
7368
- return process.env.NEXT_PUBLIC_BASE_URL || "https://test-apigateway.sfin.vn";
7367
+ return process.env.NEXT_PUBLIC_BASE_URL || "https://proapi.sspa.com.vn";
7369
7368
  };
7370
7369
  var request = axios.create();
7371
7370
  request.interceptors.request.use(function (config) {
@@ -7396,10 +7395,32 @@ var api = function api(options) {
7396
7395
  return request(config);
7397
7396
  };
7398
7397
 
7398
+ var formatCurrency = function formatCurrency(amount) {
7399
+ if (isNaN(amount)) {
7400
+ return '0 ₫';
7401
+ }
7402
+ var roundedAmount = Math.round(amount);
7403
+ var formattedAmount = roundedAmount.toString().replace(/\B(?=(\d{3})+(?!\d))/g, '.');
7404
+ return formattedAmount + " \u20AB";
7405
+ };
7406
+ var pattern = {
7407
+ phoneNumberPattern: /^(?:\+84|0)\d{9}$/
7408
+ };
7409
+ var numberPattern = /^\d+$/;
7410
+ var getYoutubeVideoIdByUrl = function getYoutubeVideoIdByUrl(url) {
7411
+ var regex = /(?:youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/|youtube\.com\/shorts\/)([a-zA-Z0-9_-]{11})/;
7412
+ var match = url === null || url === void 0 ? void 0 : url.match(regex);
7413
+ return match ? match[1] : null;
7414
+ };
7415
+ var linkPagePolicy = "https://sites.google.com/view/sodofin-landing-page-policy";
7416
+ var endpointLandingShop = "/landing-shop/v2";
7417
+ var endpointLanding = "/landing/v2";
7418
+ var baseURL = "https://proapi.sspa.com.vn";
7419
+
7399
7420
  var getShopCategoriesApi = function getShopCategoriesApi(shopId, types) {
7400
7421
  return api({
7401
7422
  method: "get",
7402
- url: "/landing-shop/get-product-category-on-landing",
7423
+ url: endpointLandingShop + "/get-product-category-on-landing",
7403
7424
  params: {
7404
7425
  shopId: shopId,
7405
7426
  types: types,
@@ -7416,7 +7437,7 @@ var getProductListApi = function getProductListApi(shopId, params) {
7416
7437
  }
7417
7438
  return api({
7418
7439
  method: "get",
7419
- url: "/landing-shop/get-product-on-landing",
7440
+ url: endpointLandingShop + "/get-product-on-landing",
7420
7441
  params: _extends({
7421
7442
  shopId: shopId,
7422
7443
  isShowOnLanding: true
@@ -7833,7 +7854,7 @@ var ProductImage = function ProductImage(props) {
7833
7854
  if (src !== null && src !== void 0 && src.startsWith("http")) {
7834
7855
  setSrc(src);
7835
7856
  } else if (src) {
7836
- var urlImage = "https://test-apigateway.sfin.vn/assets/images/sshop/shops/" + (product === null || product === void 0 ? void 0 : product.shopId) + "/" + (product === null || product === void 0 ? void 0 : product.productId) + "/" + src;
7857
+ var urlImage = baseURL + "/assets/images/sshop/shops/" + (product === null || product === void 0 ? void 0 : product.shopId) + "/" + (product === null || product === void 0 ? void 0 : product.productId) + "/" + src;
7837
7858
  setSrc(urlImage);
7838
7859
  } else {
7839
7860
  setSrc(src);
@@ -7853,25 +7874,6 @@ var ProductImage = function ProductImage(props) {
7853
7874
  });
7854
7875
  };
7855
7876
 
7856
- var formatCurrency = function formatCurrency(amount) {
7857
- if (isNaN(amount)) {
7858
- return '0 ₫';
7859
- }
7860
- var roundedAmount = Math.round(amount);
7861
- var formattedAmount = roundedAmount.toString().replace(/\B(?=(\d{3})+(?!\d))/g, '.');
7862
- return formattedAmount + " \u20AB";
7863
- };
7864
- var pattern = {
7865
- phoneNumberPattern: /^(?:\+84|0)\d{9}$/
7866
- };
7867
- var numberPattern = /^\d+$/;
7868
- var getYoutubeVideoIdByUrl = function getYoutubeVideoIdByUrl(url) {
7869
- var regex = /(?:youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/|youtube\.com\/shorts\/)([a-zA-Z0-9_-]{11})/;
7870
- var match = url === null || url === void 0 ? void 0 : url.match(regex);
7871
- return match ? match[1] : null;
7872
- };
7873
- var linkPagePolicy = "https://sites.google.com/view/sodofin-landing-page-policy";
7874
-
7875
7877
  function getMinMax(array, field) {
7876
7878
  if (!(array !== null && array !== void 0 && array.length) || !array[0].hasOwnProperty(field)) {
7877
7879
  return null;
@@ -9398,7 +9400,7 @@ var TreatmentsList7 = function TreatmentsList7(props) {
9398
9400
  }), isOpenModal ? /*#__PURE__*/React__default.createElement(ModalNotification, {
9399
9401
  onClose: handleCloseModal
9400
9402
  }, /*#__PURE__*/React__default.createElement(BookingForm, {
9401
- className: "overflow-y-auto hide-scrollbar max-h-[80vh] !bg-bgSecondary",
9403
+ className: "overflow-y-auto no-scrollbar w-[85vw] sm:w-[70vw] md:w-[60vw] lg:w-[50vw] max-h-[80vh] !bg-bgSecondary",
9402
9404
  onCloseFormBooking: handleCloseModal,
9403
9405
  defaultValue: dataBooking,
9404
9406
  shopConfig: shopConfig,
@@ -9594,7 +9596,7 @@ var ServiceDetail1 = function ServiceDetail1(props) {
9594
9596
  onClose: handleCloseModal
9595
9597
  }, /*#__PURE__*/React__default.createElement(BookingForm, {
9596
9598
  isModalBooking: isBooking,
9597
- className: "overflow-y-auto hide-scrollbar max-h-[80vh]",
9599
+ className: "overflow-y-auto no-scrollbar w-[85vw] sm:w-[70vw] md:w-[60vw] lg:w-[50vw] max-h-[80vh]",
9598
9600
  onCloseFormBooking: handleCloseModal,
9599
9601
  defaultValue: dataBooking,
9600
9602
  shopConfig: shopConfig,
@@ -9729,7 +9731,7 @@ var TreatmentDetail1 = function TreatmentDetail1(props) {
9729
9731
  onClose: handleCloseModal
9730
9732
  }, /*#__PURE__*/React__default.createElement(BookingForm, {
9731
9733
  isModalBooking: isBooking,
9732
- className: "overflow-y-auto hide-scrollbar max-h-[80vh]",
9734
+ className: "overflow-y-auto no-scrollbar w-[85vw] sm:w-[70vw] md:w-[60vw] lg:w-[50vw] max-h-[80vh]",
9733
9735
  onCloseFormBooking: handleCloseModal,
9734
9736
  defaultValue: dataBooking,
9735
9737
  shopConfig: shopConfig,
@@ -11678,7 +11680,7 @@ var Banner3 = function Banner3(props) {
11678
11680
  key: "djsd-" + index
11679
11681
  }, /*#__PURE__*/React__default.createElement("img", {
11680
11682
  src: item === null || item === void 0 ? void 0 : item.srcImage,
11681
- className: "bg-cover bg-no-repeat h-full rounded-xl"
11683
+ className: "bg-cover bg-no-repeat w-full h-full rounded-xl"
11682
11684
  }));
11683
11685
  }));
11684
11686
  };
@@ -12291,10 +12293,20 @@ var CustomerRating6 = function CustomerRating6(props) {
12291
12293
  return /*#__PURE__*/React__default.createElement("div", {
12292
12294
  key: index,
12293
12295
  className: "relative bg-primary rounded-lg text-textButton px-6 py-4"
12294
- }, /*#__PURE__*/React__default.createElement(md.MdOutlineFormatQuote, {
12295
- size: 43,
12296
- className: "absolute text-black top-[-20px] right-8"
12297
- }), /*#__PURE__*/React__default.createElement("div", {
12296
+ }, /*#__PURE__*/React__default.createElement("div", {
12297
+ className: "absolute top-[-18px] right-8"
12298
+ }, /*#__PURE__*/React__default.createElement("svg", {
12299
+ width: "42",
12300
+ height: "31",
12301
+ viewBox: "0 0 42 31",
12302
+ fill: "none",
12303
+ xmlns: "http://www.w3.org/2000/svg"
12304
+ }, /*#__PURE__*/React__default.createElement("path", {
12305
+ d: "M18.8944 18.4472L19 18.2361V18V5C19 2.79086 17.2091 1 15 1H5C2.79086 1 1 2.79086 1 5V18V19H2H8.38197L4.49585 26.7722C3.83095 28.102 4.79794 29.6667 6.2847 29.6667H12.0486C12.8062 29.6667 13.4987 29.2387 13.8375 28.5611L18.8944 18.4472ZM40.2278 18.4472L40.3333 18.2361V18V5C40.3333 2.79086 38.5425 1 36.3333 1H26.3333C24.1242 1 22.3333 2.79086 22.3333 5V18V19H23.3333H29.7153L25.8292 26.7722C25.1643 28.102 26.1313 29.6667 27.618 29.6667H33.382C34.1395 29.6667 34.832 29.2387 35.1708 28.5611L40.2278 18.4472Z",
12306
+ fill: "white",
12307
+ stroke: "#36306A",
12308
+ "stroke-width": "2"
12309
+ }))), /*#__PURE__*/React__default.createElement("div", {
12298
12310
  className: "flex items-end gap-2"
12299
12311
  }, /*#__PURE__*/React__default.createElement("img", {
12300
12312
  src: item === null || item === void 0 ? void 0 : item.avatar,
@@ -12302,7 +12314,7 @@ var CustomerRating6 = function CustomerRating6(props) {
12302
12314
  }), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
12303
12315
  className: "text-xl md:text-2xl mt-2"
12304
12316
  }, item === null || item === void 0 ? void 0 : item.name), /*#__PURE__*/React__default.createElement("div", {
12305
- className: "text-gray3"
12317
+ className: "text-gray5"
12306
12318
  }, item === null || item === void 0 ? void 0 : item.description))), /*#__PURE__*/React__default.createElement("hr", {
12307
12319
  className: "mt-4"
12308
12320
  }), /*#__PURE__*/React__default.createElement("div", {
@@ -13895,7 +13907,7 @@ var getAllArticleNewsApi = function getAllArticleNewsApi(shopId, appId, landingS
13895
13907
  }
13896
13908
  return api({
13897
13909
  method: "get",
13898
- url: "/landing/news/article/get-all-filter",
13910
+ url: endpointLanding + "/news/article/get-all-filter",
13899
13911
  params: _extends({
13900
13912
  shopId: shopId,
13901
13913
  appId: appId,
@@ -13906,7 +13918,7 @@ var getAllArticleNewsApi = function getAllArticleNewsApi(shopId, appId, landingS
13906
13918
  var getNewsDetailApi = function getNewsDetailApi(articleId, shopId, landingShopConfigId) {
13907
13919
  return api({
13908
13920
  method: "get",
13909
- url: "/landing/news/article/" + articleId,
13921
+ url: endpointLanding + "/news/article/" + articleId,
13910
13922
  params: {
13911
13923
  shopId: shopId,
13912
13924
  landingShopConfigId: landingShopConfigId,
@@ -14100,7 +14112,7 @@ var getAllNewsCategoriesApi = function getAllNewsCategoriesApi(shopId, landingSh
14100
14112
  }
14101
14113
  return api({
14102
14114
  method: "get",
14103
- url: "/landing/news/category/get-all",
14115
+ url: endpointLanding + "/news/category/get-all",
14104
14116
  params: {
14105
14117
  shopId: shopId,
14106
14118
  landingShopConfigId: landingShopConfigId,
@@ -14193,6 +14205,32 @@ var News1 = function News1(props) {
14193
14205
  return /*#__PURE__*/React__default.createElement("div", {
14194
14206
  className: SECTION_CLASS + " grid grid-cols-1 md:grid-cols-3 gap-6"
14195
14207
  }, /*#__PURE__*/React__default.createElement("div", {
14208
+ className: "block md:hidden"
14209
+ }, /*#__PURE__*/React__default.createElement("div", {
14210
+ className: "px-6 py-3 bg-primary rounded-t-lg text-lg text-textButton text-center ",
14211
+ onClick: function onClick() {
14212
+ setParams({
14213
+ page: 0,
14214
+ sort: "timeUpdate,DESC",
14215
+ size: 10
14216
+ });
14217
+ }
14218
+ }, "Chuy\xEAn m\u1EE5c"), /*#__PURE__*/React__default.createElement("div", {
14219
+ className: "rounded-b-lg bg-bgSecondary"
14220
+ }, newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.map(function (item, index) {
14221
+ return /*#__PURE__*/React__default.createElement("div", {
14222
+ className: "px-6 py-3 hover:bg-gray-100 hover:text-primary cursor-pointer",
14223
+ key: "sdjfdh-" + index,
14224
+ onClick: function onClick() {
14225
+ setCategorySelected(item);
14226
+ setParams(function (prev) {
14227
+ return _extends({}, prev, {
14228
+ catId: item === null || item === void 0 ? void 0 : item.catId
14229
+ });
14230
+ });
14231
+ }
14232
+ }, item === null || item === void 0 ? void 0 : item.catName);
14233
+ }))), /*#__PURE__*/React__default.createElement("div", {
14196
14234
  className: "md:col-span-2 flex flex-col gap-8"
14197
14235
  }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
14198
14236
  className: "px-6 py-3 text-textButton text-lg rounded-t-lg bg-primary w-max"
@@ -14232,7 +14270,7 @@ var News1 = function News1(props) {
14232
14270
  onClick: handleSeeMoreNews,
14233
14271
  className: "w-max mx-auto"
14234
14272
  }) : null)), /*#__PURE__*/React__default.createElement("div", {
14235
- className: "sticky top-20 self-start"
14273
+ className: "sticky top-20 self-start md:block hidden"
14236
14274
  }, /*#__PURE__*/React__default.createElement("div", {
14237
14275
  className: "px-6 py-3 bg-primary rounded-t-lg text-lg text-textButton text-center ",
14238
14276
  onClick: function onClick() {
@@ -14344,6 +14382,20 @@ var NewsDetail1 = function NewsDetail1(props) {
14344
14382
  __html: article === null || article === void 0 ? void 0 : article.content
14345
14383
  }
14346
14384
  }), /*#__PURE__*/React__default.createElement("div", {
14385
+ className: "top-6 block md:hidden"
14386
+ }, /*#__PURE__*/React__default.createElement("div", {
14387
+ className: "px-6 py-3 bg-primary rounded-t-lg text-lg text-textButton text-center"
14388
+ }, "Chuy\xEAn m\u1EE5c"), /*#__PURE__*/React__default.createElement("div", {
14389
+ className: "rounded-b-lg bg-bgSecondary"
14390
+ }, newsCategories === null || newsCategories === void 0 ? void 0 : newsCategories.map(function (item, index) {
14391
+ return /*#__PURE__*/React__default.createElement(LinkToPage, {
14392
+ href: getLinkNewsByCategory(item),
14393
+ Link: Link
14394
+ }, /*#__PURE__*/React__default.createElement("div", {
14395
+ className: "px-6 py-3 hover:bg-gray-100 hover:text-primary cursor-pointer",
14396
+ key: "sdjfdh-" + index
14397
+ }, item === null || item === void 0 ? void 0 : item.catName));
14398
+ }))), /*#__PURE__*/React__default.createElement("div", {
14347
14399
  className: "mt-6"
14348
14400
  }, /*#__PURE__*/React__default.createElement("div", {
14349
14401
  className: "font-medium text-2xl mb-4"
@@ -14366,7 +14418,7 @@ var NewsDetail1 = function NewsDetail1(props) {
14366
14418
  onClick: handleSeeMore,
14367
14419
  shopConfigStyle: shopConfigStyle
14368
14420
  })) : null)), /*#__PURE__*/React__default.createElement("div", {
14369
- className: "sticky top-20 self-start"
14421
+ className: "sticky top-20 self-start hidden md:block"
14370
14422
  }, /*#__PURE__*/React__default.createElement("div", {
14371
14423
  className: "px-6 py-3 bg-primary rounded-t-lg text-lg text-textButton text-center"
14372
14424
  }, "Chuy\xEAn m\u1EE5c"), /*#__PURE__*/React__default.createElement("div", {