s-platform-landing-section 0.1.14 → 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 +169 -55
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +167 -55
- package/dist/index.modern.js.map +1 -1
- package/package.json +4 -2
package/dist/index.js
CHANGED
|
@@ -15,6 +15,9 @@ var bs = require('react-icons/bs');
|
|
|
15
15
|
var lu = require('react-icons/lu');
|
|
16
16
|
var DatePicker = _interopDefault(require('react-datepicker'));
|
|
17
17
|
require('react-datepicker/dist/react-datepicker.css');
|
|
18
|
+
var Slider = _interopDefault(require('react-slick'));
|
|
19
|
+
require('slick-carousel/slick/slick.css');
|
|
20
|
+
require('slick-carousel/slick/slick-theme.css');
|
|
18
21
|
var ai = require('react-icons/ai');
|
|
19
22
|
var go = require('react-icons/go');
|
|
20
23
|
var ri = require('react-icons/ri');
|
|
@@ -211,7 +214,7 @@ var Options = function Options(props) {
|
|
|
211
214
|
};
|
|
212
215
|
|
|
213
216
|
var NavBar7 = function NavBar7(props) {
|
|
214
|
-
var _routes$find,
|
|
217
|
+
var _routes$find, _shopConfigStyle$navB, _shopConfigStyle$navB2, _shopConfigStyle$navB3, _shopConfigStyle$navB4;
|
|
215
218
|
var _useState = React.useState(false),
|
|
216
219
|
isOpen = _useState[0],
|
|
217
220
|
setIsOpen = _useState[1];
|
|
@@ -257,17 +260,6 @@ var NavBar7 = function NavBar7(props) {
|
|
|
257
260
|
className: "text-gray3"
|
|
258
261
|
})
|
|
259
262
|
}];
|
|
260
|
-
React.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
263
|
React.useEffect(function () {
|
|
272
264
|
var totalItem = cartItems === null || cartItems === void 0 ? void 0 : cartItems.reduce(function (total, item) {
|
|
273
265
|
return total + (item === null || item === void 0 ? void 0 : item.quantity);
|
|
@@ -306,9 +298,9 @@ var NavBar7 = function NavBar7(props) {
|
|
|
306
298
|
className: "text-xl md:text-2xl whitespace-nowrap font-semibold text-primary"
|
|
307
299
|
}, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName)), /*#__PURE__*/React__default.createElement("div", {
|
|
308
300
|
className: "hidden lg:flex flex-1 items-center gap-4"
|
|
309
|
-
},
|
|
301
|
+
}, 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
302
|
return e === null || e === void 0 ? void 0 : e.isShow;
|
|
311
|
-
})) === null ||
|
|
303
|
+
})) === null || _shopConfigStyle$navB2 === void 0 ? void 0 : _shopConfigStyle$navB2.map(function (item, index) {
|
|
312
304
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
313
305
|
Link: Link,
|
|
314
306
|
href: item === null || item === void 0 ? void 0 : item.route,
|
|
@@ -391,9 +383,9 @@ var NavBar7 = function NavBar7(props) {
|
|
|
391
383
|
}
|
|
392
384
|
}, /*#__PURE__*/React__default.createElement(rx.RxCross2, {
|
|
393
385
|
size: 24
|
|
394
|
-
})), /*#__PURE__*/React__default.createElement("div", null,
|
|
386
|
+
})), /*#__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
387
|
return e === null || e === void 0 ? void 0 : e.isShow;
|
|
396
|
-
})) === null ||
|
|
388
|
+
})) === null || _shopConfigStyle$navB4 === void 0 ? void 0 : _shopConfigStyle$navB4.map(function (item, index) {
|
|
397
389
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
398
390
|
Link: Link,
|
|
399
391
|
href: item === null || item === void 0 ? void 0 : item.route,
|
|
@@ -405,7 +397,7 @@ var NavBar7 = function NavBar7(props) {
|
|
|
405
397
|
};
|
|
406
398
|
|
|
407
399
|
var NavBar1 = function NavBar1(props) {
|
|
408
|
-
var _routes$find,
|
|
400
|
+
var _routes$find, _shopConfigStyle$navB, _shopConfigStyle$navB2, _shopConfigStyle$navB3, _shopConfigStyle$navB4;
|
|
409
401
|
var _useState = React.useState(false),
|
|
410
402
|
isOpen = _useState[0],
|
|
411
403
|
setIsOpen = _useState[1];
|
|
@@ -451,17 +443,6 @@ var NavBar1 = function NavBar1(props) {
|
|
|
451
443
|
className: "text-gray3"
|
|
452
444
|
})
|
|
453
445
|
}];
|
|
454
|
-
React.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
446
|
React.useEffect(function () {
|
|
466
447
|
var totalItem = cartItems === null || cartItems === void 0 ? void 0 : cartItems.reduce(function (total, item) {
|
|
467
448
|
return total + (item === null || item === void 0 ? void 0 : item.quantity);
|
|
@@ -519,9 +500,9 @@ var NavBar1 = function NavBar1(props) {
|
|
|
519
500
|
className: "text-xl md:text-2xl whitespace-nowrap font-semibold text-primary"
|
|
520
501
|
}, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName)), /*#__PURE__*/React__default.createElement("div", {
|
|
521
502
|
className: "hidden lg:flex flex-1 items-center gap-4"
|
|
522
|
-
},
|
|
503
|
+
}, 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
504
|
return e === null || e === void 0 ? void 0 : e.isShow;
|
|
524
|
-
})) === null ||
|
|
505
|
+
})) === null || _shopConfigStyle$navB2 === void 0 ? void 0 : _shopConfigStyle$navB2.map(function (item, index) {
|
|
525
506
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
526
507
|
Link: Link,
|
|
527
508
|
href: item === null || item === void 0 ? void 0 : item.route,
|
|
@@ -611,9 +592,9 @@ var NavBar1 = function NavBar1(props) {
|
|
|
611
592
|
}
|
|
612
593
|
}, /*#__PURE__*/React__default.createElement(rx.RxCross2, {
|
|
613
594
|
size: 24
|
|
614
|
-
}))), /*#__PURE__*/React__default.createElement("div", null,
|
|
595
|
+
}))), /*#__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
596
|
return e === null || e === void 0 ? void 0 : e.isShow;
|
|
616
|
-
})) === null ||
|
|
597
|
+
})) === null || _shopConfigStyle$navB4 === void 0 ? void 0 : _shopConfigStyle$navB4.map(function (item, index) {
|
|
617
598
|
return /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
618
599
|
Link: Link,
|
|
619
600
|
href: item === null || item === void 0 ? void 0 : item.route,
|
|
@@ -649,9 +630,9 @@ var SvgIcon = function SvgIcon(_ref) {
|
|
|
649
630
|
var SectionTitle1 = function SectionTitle1(props) {
|
|
650
631
|
var _props$data = props.data,
|
|
651
632
|
data = _props$data === void 0 ? {} : _props$data;
|
|
652
|
-
return /*#__PURE__*/React__default.createElement("div", null, data !== null && data !== void 0 && data.sectionTitle ? /*#__PURE__*/React__default.createElement("div", {
|
|
633
|
+
return /*#__PURE__*/React__default.createElement("div", null, data !== null && data !== void 0 && data.sectionTitle ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
653
634
|
className: "text-center text-2xl md:text-4xl font-headingFont font-semibold leading-relaxed text-textHeading"
|
|
654
|
-
}, data === null || data === void 0 ? void 0 : data.sectionTitle)
|
|
635
|
+
}, data === null || data === void 0 ? void 0 : data.sectionTitle), /*#__PURE__*/React__default.createElement("div", {
|
|
655
636
|
className: "flex items-center justify-center"
|
|
656
637
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
657
638
|
className: "w-32 h-0.5 rounded-full bg-secondary"
|
|
@@ -659,7 +640,7 @@ var SectionTitle1 = function SectionTitle1(props) {
|
|
|
659
640
|
className: "w-9 h-9 text-secondary"
|
|
660
641
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
661
642
|
className: " w-32 h-0.5 rounded-full bg-secondary"
|
|
662
|
-
})), data !== null && data !== void 0 && data.sectionDescription ? /*#__PURE__*/React__default.createElement("div", {
|
|
643
|
+
}))) : null, data !== null && data !== void 0 && data.sectionDescription ? /*#__PURE__*/React__default.createElement("div", {
|
|
663
644
|
className: "text-xl font-medium text-center leading-relaxed text-textSecondary"
|
|
664
645
|
}, data === null || data === void 0 ? void 0 : data.sectionDescription) : null);
|
|
665
646
|
};
|
|
@@ -7646,6 +7627,11 @@ var pattern = {
|
|
|
7646
7627
|
phoneNumberPattern: /^(?:\+84|0)\d{9}$/
|
|
7647
7628
|
};
|
|
7648
7629
|
var numberPattern = /^\d+$/;
|
|
7630
|
+
var getYoutubeVideoIdByUrl = function getYoutubeVideoIdByUrl(url) {
|
|
7631
|
+
var regex = /(?:youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/|youtube\.com\/shorts\/)([a-zA-Z0-9_-]{11})/;
|
|
7632
|
+
var match = url === null || url === void 0 ? void 0 : url.match(regex);
|
|
7633
|
+
return match ? match[1] : null;
|
|
7634
|
+
};
|
|
7649
7635
|
|
|
7650
7636
|
function getMinMax(array, field) {
|
|
7651
7637
|
if (!(array !== null && array !== void 0 && array.length) || !array[0].hasOwnProperty(field)) {
|
|
@@ -9029,6 +9015,9 @@ var TreatmentsList7 = function TreatmentsList7(props) {
|
|
|
9029
9015
|
var _useState3 = React.useState([]),
|
|
9030
9016
|
dataBooking = _useState3[0],
|
|
9031
9017
|
setDataBooking = _useState3[1];
|
|
9018
|
+
var _useState4 = React.useState(0),
|
|
9019
|
+
currentSlide = _useState4[0],
|
|
9020
|
+
setCurrentSlide = _useState4[1];
|
|
9032
9021
|
var _ProductController = ProductController(_extends({}, props, {
|
|
9033
9022
|
params: params
|
|
9034
9023
|
})),
|
|
@@ -9055,23 +9044,18 @@ var TreatmentsList7 = function TreatmentsList7(props) {
|
|
|
9055
9044
|
setIsOpenModal(false);
|
|
9056
9045
|
setDataBooking([]);
|
|
9057
9046
|
};
|
|
9058
|
-
|
|
9059
|
-
className: "" + SECTION_DEFAULT_CLASS
|
|
9060
|
-
}, /*#__PURE__*/React__default.createElement(SectionTitle, {
|
|
9061
|
-
data: data,
|
|
9062
|
-
shopConfigStyle: shopConfigStyle
|
|
9063
|
-
}), products === null || products === void 0 ? void 0 : products.map(function (product, index) {
|
|
9047
|
+
var renderItemSlide = function renderItemSlide(product, index) {
|
|
9064
9048
|
var _product$productInfo, _product$productInfo2;
|
|
9065
9049
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
9066
|
-
className: "
|
|
9067
|
-
key: "rthirr-" + index
|
|
9050
|
+
className: "w-full"
|
|
9068
9051
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
9069
|
-
className: "
|
|
9052
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-6 mt-12",
|
|
9053
|
+
key: index
|
|
9070
9054
|
}, /*#__PURE__*/React__default.createElement(ProductImage, {
|
|
9071
9055
|
product: product === null || product === void 0 ? void 0 : product.productInfo,
|
|
9072
9056
|
className: "aspect-video rounded-2xl"
|
|
9073
|
-
})
|
|
9074
|
-
className:
|
|
9057
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
9058
|
+
className: ''
|
|
9075
9059
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
9076
9060
|
className: "font-medium text-2xl"
|
|
9077
9061
|
}, product === null || product === void 0 ? void 0 : (_product$productInfo = product.productInfo) === null || _product$productInfo === void 0 ? void 0 : _product$productInfo.productName), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -9086,13 +9070,49 @@ var TreatmentsList7 = function TreatmentsList7(props) {
|
|
|
9086
9070
|
onClick: function onClick(event) {
|
|
9087
9071
|
handleOpenModalBooking(event, product);
|
|
9088
9072
|
}
|
|
9089
|
-
}))
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9095
|
-
|
|
9073
|
+
}))));
|
|
9074
|
+
};
|
|
9075
|
+
function RenderArrow(props) {
|
|
9076
|
+
var className = props.className,
|
|
9077
|
+
style = props.style,
|
|
9078
|
+
onClick = props.onClick;
|
|
9079
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
9080
|
+
className: className,
|
|
9081
|
+
style: _extends({}, style, {
|
|
9082
|
+
display: "none"
|
|
9083
|
+
}),
|
|
9084
|
+
onClick: onClick
|
|
9085
|
+
});
|
|
9086
|
+
}
|
|
9087
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
9088
|
+
className: "" + SECTION_DEFAULT_CLASS
|
|
9089
|
+
}, /*#__PURE__*/React__default.createElement(SectionTitle, {
|
|
9090
|
+
data: data,
|
|
9091
|
+
shopConfigStyle: shopConfigStyle
|
|
9092
|
+
}), /*#__PURE__*/React__default.createElement(Slider, {
|
|
9093
|
+
className: "center",
|
|
9094
|
+
infinite: true,
|
|
9095
|
+
slidesToShow: 1,
|
|
9096
|
+
speed: 500,
|
|
9097
|
+
autoplay: true,
|
|
9098
|
+
autoplaySpeed: 4000,
|
|
9099
|
+
pauseOnHover: true,
|
|
9100
|
+
nextArrow: /*#__PURE__*/React__default.createElement(RenderArrow, null),
|
|
9101
|
+
prevArrow: /*#__PURE__*/React__default.createElement(RenderArrow, null),
|
|
9102
|
+
beforeChange: function beforeChange(oldIndex, newIndex) {
|
|
9103
|
+
return setCurrentSlide(newIndex);
|
|
9104
|
+
},
|
|
9105
|
+
dots: true,
|
|
9106
|
+
customPaging: function customPaging(i) {
|
|
9107
|
+
return i === currentSlide ? /*#__PURE__*/React__default.createElement("div", {
|
|
9108
|
+
className: "w-4 h-1 rounded-full bg-primary mt-4"
|
|
9109
|
+
}) : /*#__PURE__*/React__default.createElement("div", {
|
|
9110
|
+
className: "w-4 h-1 rounded-full bg-gray-300 mt-4"
|
|
9111
|
+
});
|
|
9112
|
+
}
|
|
9113
|
+
}, products === null || products === void 0 ? void 0 : products.map(function (product, index) {
|
|
9114
|
+
return renderItemSlide(product, index);
|
|
9115
|
+
}))), /*#__PURE__*/React__default.createElement(Dash, {
|
|
9096
9116
|
color: secondary
|
|
9097
9117
|
}), isOpenModal ? /*#__PURE__*/React__default.createElement(ModalNotification, {
|
|
9098
9118
|
onClose: handleCloseModal
|
|
@@ -9533,7 +9553,7 @@ var TreatmentItem1 = function TreatmentItem1(props) {
|
|
|
9533
9553
|
}))));
|
|
9534
9554
|
};
|
|
9535
9555
|
|
|
9536
|
-
var
|
|
9556
|
+
var ProductList7 = function ProductList7(props) {
|
|
9537
9557
|
var _props$shopConfigStyl = props.shopConfigStyle,
|
|
9538
9558
|
shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
|
|
9539
9559
|
_props$data = props.data,
|
|
@@ -10656,6 +10676,72 @@ var Banner1 = function Banner1(props) {
|
|
|
10656
10676
|
})));
|
|
10657
10677
|
};
|
|
10658
10678
|
|
|
10679
|
+
var Banner2 = function Banner2(props) {
|
|
10680
|
+
var data = props.data,
|
|
10681
|
+
shopConfigStyle = props.shopConfigStyle,
|
|
10682
|
+
_props$SectionTitle = props.SectionTitle,
|
|
10683
|
+
SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
|
|
10684
|
+
var sectionData = data === null || data === void 0 ? void 0 : data.data;
|
|
10685
|
+
var _useState = React.useState(0),
|
|
10686
|
+
currentSlide = _useState[0],
|
|
10687
|
+
setCurrentSlide = _useState[1];
|
|
10688
|
+
function RenderArrow(props) {
|
|
10689
|
+
var className = props.className,
|
|
10690
|
+
style = props.style,
|
|
10691
|
+
onClick = props.onClick;
|
|
10692
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
10693
|
+
className: className,
|
|
10694
|
+
style: _extends({}, style, {
|
|
10695
|
+
display: "none"
|
|
10696
|
+
}),
|
|
10697
|
+
onClick: onClick
|
|
10698
|
+
});
|
|
10699
|
+
}
|
|
10700
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
10701
|
+
className: "" + SECTION_DEFAULT_CLASS
|
|
10702
|
+
}, /*#__PURE__*/React__default.createElement(SectionTitle, {
|
|
10703
|
+
data: data,
|
|
10704
|
+
shopConfigStyle: shopConfigStyle
|
|
10705
|
+
}), /*#__PURE__*/React__default.createElement(Slider, {
|
|
10706
|
+
className: "center",
|
|
10707
|
+
infinite: false,
|
|
10708
|
+
slidesToShow: 2,
|
|
10709
|
+
speed: 500,
|
|
10710
|
+
autoplay: true,
|
|
10711
|
+
autoplaySpeed: 4000,
|
|
10712
|
+
pauseOnHover: true,
|
|
10713
|
+
nextArrow: /*#__PURE__*/React__default.createElement(RenderArrow, null),
|
|
10714
|
+
prevArrow: /*#__PURE__*/React__default.createElement(RenderArrow, null),
|
|
10715
|
+
beforeChange: function beforeChange(oldIndex, newIndex) {
|
|
10716
|
+
return setCurrentSlide(newIndex);
|
|
10717
|
+
},
|
|
10718
|
+
dots: true,
|
|
10719
|
+
customPaging: function customPaging(i) {
|
|
10720
|
+
return i === currentSlide ? /*#__PURE__*/React__default.createElement("div", {
|
|
10721
|
+
className: "w-4 h-1 rounded-full bg-primary mt-4"
|
|
10722
|
+
}) : /*#__PURE__*/React__default.createElement("div", {
|
|
10723
|
+
className: "w-4 h-1 rounded-full bg-gray-300 mt-4"
|
|
10724
|
+
});
|
|
10725
|
+
},
|
|
10726
|
+
centerPadding: "20px",
|
|
10727
|
+
responsive: [{
|
|
10728
|
+
breakpoint: 600,
|
|
10729
|
+
settings: {
|
|
10730
|
+
slidesToShow: 1
|
|
10731
|
+
}
|
|
10732
|
+
}]
|
|
10733
|
+
}, (sectionData === null || sectionData === void 0 ? void 0 : sectionData.length) > 0 && (sectionData === null || sectionData === void 0 ? void 0 : sectionData.map(function (item, index) {
|
|
10734
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
10735
|
+
className: 'px-2'
|
|
10736
|
+
}, /*#__PURE__*/React__default.createElement("img", {
|
|
10737
|
+
src: item === null || item === void 0 ? void 0 : item.srcImage,
|
|
10738
|
+
alt: "",
|
|
10739
|
+
className: "rounded-2xl",
|
|
10740
|
+
key: index
|
|
10741
|
+
}));
|
|
10742
|
+
}))));
|
|
10743
|
+
};
|
|
10744
|
+
|
|
10659
10745
|
var Banner3 = function Banner3(props) {
|
|
10660
10746
|
var data = props.data;
|
|
10661
10747
|
var sectionData = data === null || data === void 0 ? void 0 : data.data;
|
|
@@ -12750,10 +12836,37 @@ var ShopHighlights7 = function ShopHighlights7(props) {
|
|
|
12750
12836
|
}));
|
|
12751
12837
|
};
|
|
12752
12838
|
|
|
12839
|
+
var VideoFull1 = function VideoFull1(props) {
|
|
12840
|
+
var _data$data, _data$data$;
|
|
12841
|
+
var shopConfigStyle = props.shopConfigStyle,
|
|
12842
|
+
data = props.data,
|
|
12843
|
+
_props$SectionTitle = props.SectionTitle,
|
|
12844
|
+
SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
|
|
12845
|
+
console.log("VideoFull1 data", data);
|
|
12846
|
+
var youtubeVideoId = getYoutubeVideoIdByUrl(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$.link);
|
|
12847
|
+
console.log("VideoFull1 youtubeVideoId", youtubeVideoId);
|
|
12848
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
12849
|
+
className: "" + SECTION_DEFAULT_CLASS
|
|
12850
|
+
}, /*#__PURE__*/React__default.createElement(SectionTitle, {
|
|
12851
|
+
data: data,
|
|
12852
|
+
shopConfigStyle: shopConfigStyle
|
|
12853
|
+
}), youtubeVideoId ? /*#__PURE__*/React__default.createElement("div", {
|
|
12854
|
+
className: "w-full aspect-video"
|
|
12855
|
+
}, /*#__PURE__*/React__default.createElement("iframe", {
|
|
12856
|
+
className: "w-full h-full",
|
|
12857
|
+
src: "https://www.youtube.com/embed/" + youtubeVideoId,
|
|
12858
|
+
title: "YouTube video player",
|
|
12859
|
+
frameBorder: "0",
|
|
12860
|
+
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
|
|
12861
|
+
allowFullScreen: true
|
|
12862
|
+
})) : null);
|
|
12863
|
+
};
|
|
12864
|
+
|
|
12753
12865
|
exports.About1 = About1;
|
|
12754
12866
|
exports.About5 = About5;
|
|
12755
12867
|
exports.Address1 = Address1;
|
|
12756
12868
|
exports.Banner1 = Banner1;
|
|
12869
|
+
exports.Banner2 = Banner2;
|
|
12757
12870
|
exports.Banner3 = Banner3;
|
|
12758
12871
|
exports.Banner7 = Banner7;
|
|
12759
12872
|
exports.BannerFull1 = BannerFull1;
|
|
@@ -12802,12 +12915,12 @@ exports.ProductItem5 = ProductItem5;
|
|
|
12802
12915
|
exports.ProductItem6 = ProductItem6;
|
|
12803
12916
|
exports.ProductItem7 = ProductItem7;
|
|
12804
12917
|
exports.ProductList5 = ProductList5;
|
|
12918
|
+
exports.ProductList7 = ProductList7;
|
|
12805
12919
|
exports.ProductSale2 = ProductSale2;
|
|
12806
12920
|
exports.ProductSearch1 = ProductSearch1;
|
|
12807
12921
|
exports.Products10 = Products10;
|
|
12808
12922
|
exports.Products2 = Products2;
|
|
12809
12923
|
exports.Products3 = Products3;
|
|
12810
|
-
exports.ProductsList7 = ProductsList7;
|
|
12811
12924
|
exports.ProductsTop1 = ProductsTop1;
|
|
12812
12925
|
exports.SearchBar2 = SearchBar2;
|
|
12813
12926
|
exports.SearchBar5 = SearchBar5;
|
|
@@ -12828,4 +12941,5 @@ exports.TreatmentItem1 = TreatmentItem1;
|
|
|
12828
12941
|
exports.TreatmentsCategory7 = TreatmentsCategory7;
|
|
12829
12942
|
exports.TreatmentsList6 = TreatmentsList6;
|
|
12830
12943
|
exports.TreatmentsList7 = TreatmentsList7;
|
|
12944
|
+
exports.VideoFull1 = VideoFull1;
|
|
12831
12945
|
//# sourceMappingURL=index.js.map
|