s-platform-landing-section 0.1.15 → 0.1.16
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 -34
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +12 -34
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -211,7 +211,7 @@ var Options = function Options(props) {
|
|
|
211
211
|
};
|
|
212
212
|
|
|
213
213
|
var NavBar7 = function NavBar7(props) {
|
|
214
|
-
var _routes$find,
|
|
214
|
+
var _routes$find, _shopConfigStyle$navB, _shopConfigStyle$navB2, _shopConfigStyle$navB3, _shopConfigStyle$navB4;
|
|
215
215
|
var _useState = useState(false),
|
|
216
216
|
isOpen = _useState[0],
|
|
217
217
|
setIsOpen = _useState[1];
|
|
@@ -257,17 +257,6 @@ var NavBar7 = function NavBar7(props) {
|
|
|
257
257
|
className: "text-gray3"
|
|
258
258
|
})
|
|
259
259
|
}];
|
|
260
|
-
useEffect(function () {
|
|
261
|
-
if ((shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.landingTemplateCode) === "cafe_1" || (shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.landingTemplateCode) === "grocery_1" || (shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.landingTemplateCode) === "fashion_1") {
|
|
262
|
-
routes === null || routes === void 0 ? void 0 : routes.forEach(function (route) {
|
|
263
|
-
if ((route === null || route === void 0 ? void 0 : route.name) === "home" || (route === null || route === void 0 ? void 0 : route.name) === "products" || (route === null || route === void 0 ? void 0 : route.name) === "about") {
|
|
264
|
-
route.isShow = true;
|
|
265
|
-
} else {
|
|
266
|
-
route.isShow = false;
|
|
267
|
-
}
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
}, [shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.landingTemplateCode]);
|
|
271
260
|
useEffect(function () {
|
|
272
261
|
var totalItem = cartItems === null || cartItems === void 0 ? void 0 : cartItems.reduce(function (total, item) {
|
|
273
262
|
return total + (item === null || item === void 0 ? void 0 : item.quantity);
|
|
@@ -306,9 +295,9 @@ var NavBar7 = function NavBar7(props) {
|
|
|
306
295
|
className: "text-xl md:text-2xl whitespace-nowrap font-semibold text-primary"
|
|
307
296
|
}, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName)), /*#__PURE__*/React__default.createElement("div", {
|
|
308
297
|
className: "hidden lg:flex flex-1 items-center gap-4"
|
|
309
|
-
},
|
|
298
|
+
}, shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : (_shopConfigStyle$navB = shopConfigStyle.navBarMenus) === null || _shopConfigStyle$navB === void 0 ? void 0 : (_shopConfigStyle$navB2 = _shopConfigStyle$navB.filter(function (e) {
|
|
310
299
|
return e === null || e === void 0 ? void 0 : e.isShow;
|
|
311
|
-
})) === null ||
|
|
300
|
+
})) === null || _shopConfigStyle$navB2 === void 0 ? void 0 : _shopConfigStyle$navB2.map(function (item, index) {
|
|
312
301
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
313
302
|
Link: Link,
|
|
314
303
|
href: item === null || item === void 0 ? void 0 : item.route,
|
|
@@ -391,9 +380,9 @@ var NavBar7 = function NavBar7(props) {
|
|
|
391
380
|
}
|
|
392
381
|
}, /*#__PURE__*/React__default.createElement(RxCross2, {
|
|
393
382
|
size: 24
|
|
394
|
-
})), /*#__PURE__*/React__default.createElement("div", null,
|
|
383
|
+
})), /*#__PURE__*/React__default.createElement("div", null, shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : (_shopConfigStyle$navB3 = shopConfigStyle.navBarMenus) === null || _shopConfigStyle$navB3 === void 0 ? void 0 : (_shopConfigStyle$navB4 = _shopConfigStyle$navB3.filter(function (e) {
|
|
395
384
|
return e === null || e === void 0 ? void 0 : e.isShow;
|
|
396
|
-
})) === null ||
|
|
385
|
+
})) === null || _shopConfigStyle$navB4 === void 0 ? void 0 : _shopConfigStyle$navB4.map(function (item, index) {
|
|
397
386
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
398
387
|
Link: Link,
|
|
399
388
|
href: item === null || item === void 0 ? void 0 : item.route,
|
|
@@ -405,7 +394,7 @@ var NavBar7 = function NavBar7(props) {
|
|
|
405
394
|
};
|
|
406
395
|
|
|
407
396
|
var NavBar1 = function NavBar1(props) {
|
|
408
|
-
var _routes$find,
|
|
397
|
+
var _routes$find, _shopConfigStyle$navB, _shopConfigStyle$navB2, _shopConfigStyle$navB3, _shopConfigStyle$navB4;
|
|
409
398
|
var _useState = useState(false),
|
|
410
399
|
isOpen = _useState[0],
|
|
411
400
|
setIsOpen = _useState[1];
|
|
@@ -451,17 +440,6 @@ var NavBar1 = function NavBar1(props) {
|
|
|
451
440
|
className: "text-gray3"
|
|
452
441
|
})
|
|
453
442
|
}];
|
|
454
|
-
useEffect(function () {
|
|
455
|
-
if ((shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.landingTemplateCode) === "cafe_1" || (shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.landingTemplateCode) === "grocery_1" || (shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.landingTemplateCode) === "fashion_1") {
|
|
456
|
-
routes === null || routes === void 0 ? void 0 : routes.forEach(function (route) {
|
|
457
|
-
if ((route === null || route === void 0 ? void 0 : route.name) === "home" || (route === null || route === void 0 ? void 0 : route.name) === "products" || (route === null || route === void 0 ? void 0 : route.name) === "about") {
|
|
458
|
-
route.isShow = true;
|
|
459
|
-
} else {
|
|
460
|
-
route.isShow = false;
|
|
461
|
-
}
|
|
462
|
-
});
|
|
463
|
-
}
|
|
464
|
-
}, [shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.landingTemplateCode]);
|
|
465
443
|
useEffect(function () {
|
|
466
444
|
var totalItem = cartItems === null || cartItems === void 0 ? void 0 : cartItems.reduce(function (total, item) {
|
|
467
445
|
return total + (item === null || item === void 0 ? void 0 : item.quantity);
|
|
@@ -519,9 +497,9 @@ var NavBar1 = function NavBar1(props) {
|
|
|
519
497
|
className: "text-xl md:text-2xl whitespace-nowrap font-semibold text-primary"
|
|
520
498
|
}, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName)), /*#__PURE__*/React__default.createElement("div", {
|
|
521
499
|
className: "hidden lg:flex flex-1 items-center gap-4"
|
|
522
|
-
},
|
|
500
|
+
}, shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : (_shopConfigStyle$navB = shopConfigStyle.navBarMenus) === null || _shopConfigStyle$navB === void 0 ? void 0 : (_shopConfigStyle$navB2 = _shopConfigStyle$navB.filter(function (e) {
|
|
523
501
|
return e === null || e === void 0 ? void 0 : e.isShow;
|
|
524
|
-
})) === null ||
|
|
502
|
+
})) === null || _shopConfigStyle$navB2 === void 0 ? void 0 : _shopConfigStyle$navB2.map(function (item, index) {
|
|
525
503
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
526
504
|
Link: Link,
|
|
527
505
|
href: item === null || item === void 0 ? void 0 : item.route,
|
|
@@ -611,9 +589,9 @@ var NavBar1 = function NavBar1(props) {
|
|
|
611
589
|
}
|
|
612
590
|
}, /*#__PURE__*/React__default.createElement(RxCross2, {
|
|
613
591
|
size: 24
|
|
614
|
-
}))), /*#__PURE__*/React__default.createElement("div", null,
|
|
592
|
+
}))), /*#__PURE__*/React__default.createElement("div", null, shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : (_shopConfigStyle$navB3 = shopConfigStyle.navBarMenus) === null || _shopConfigStyle$navB3 === void 0 ? void 0 : (_shopConfigStyle$navB4 = _shopConfigStyle$navB3.filter(function (e) {
|
|
615
593
|
return e === null || e === void 0 ? void 0 : e.isShow;
|
|
616
|
-
})) === null ||
|
|
594
|
+
})) === null || _shopConfigStyle$navB4 === void 0 ? void 0 : _shopConfigStyle$navB4.map(function (item, index) {
|
|
617
595
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
618
596
|
Link: Link,
|
|
619
597
|
href: item === null || item === void 0 ? void 0 : item.route,
|
|
@@ -9572,7 +9550,7 @@ var TreatmentItem1 = function TreatmentItem1(props) {
|
|
|
9572
9550
|
}))));
|
|
9573
9551
|
};
|
|
9574
9552
|
|
|
9575
|
-
var
|
|
9553
|
+
var ProductList7 = function ProductList7(props) {
|
|
9576
9554
|
var _props$shopConfigStyl = props.shopConfigStyle,
|
|
9577
9555
|
shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
|
|
9578
9556
|
_props$data = props.data,
|
|
@@ -12881,5 +12859,5 @@ var VideoFull1 = function VideoFull1(props) {
|
|
|
12881
12859
|
})) : null);
|
|
12882
12860
|
};
|
|
12883
12861
|
|
|
12884
|
-
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, PageTitle1, Partner1, ProductCategory2, ProductDetail10, ProductHighlight1, ProductHot1, ProductHot3, ProductItem2, ProductItem3, ProductItem4, ProductItem5, ProductItem6, ProductItem7, ProductList5, ProductSale2, ProductSearch1, Products10, Products2, Products3,
|
|
12862
|
+
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, 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 };
|
|
12885
12863
|
//# sourceMappingURL=index.modern.js.map
|