tabexseriescomponents 0.0.442 → 0.0.443
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.cjs.js +73 -46
- package/dist/index.esm.js +73 -46
- package/dist/index.umd.js +73 -46
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -5584,8 +5584,6 @@ var Productinfo = function Productinfo(props) {
|
|
|
5584
5584
|
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.hasvariants) == 1) {
|
|
5585
5585
|
if (addtocardpayloadobj.variantid.length != 0) {
|
|
5586
5586
|
runfunc = true;
|
|
5587
|
-
} else {
|
|
5588
|
-
NotificationManager.warning('', 'Please Choose Product Options');
|
|
5589
5587
|
}
|
|
5590
5588
|
} else {
|
|
5591
5589
|
runfunc = true;
|
|
@@ -15805,7 +15803,12 @@ var Filter$1 = function Filter(props) {
|
|
|
15805
15803
|
className: "h-100 d-flex align-items-center"
|
|
15806
15804
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15807
15805
|
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
15808
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15806
|
+
}, item.optionname == 'Color' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15807
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
15808
|
+
style: {
|
|
15809
|
+
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
15810
|
+
}
|
|
15811
|
+
}, valueitem.value_identifier), item.optionname != 'Color' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15809
15812
|
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
15810
15813
|
style: {
|
|
15811
15814
|
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
@@ -17555,7 +17558,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
17555
17558
|
setopenFilterSlider: setopenFilterSlider,
|
|
17556
17559
|
show_product_group_titles: show_product_group_titles
|
|
17557
17560
|
})), sectionproperties.showvariantfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17558
|
-
className: 'col-lg-3 d-flex'
|
|
17561
|
+
className: 'col-lg-3 d-flex d-md-none'
|
|
17559
17562
|
}, /*#__PURE__*/React__default["default"].createElement(Filter$1, {
|
|
17560
17563
|
sectionpropertiesprops: sectionproperties,
|
|
17561
17564
|
actions: actions,
|
|
@@ -18706,7 +18709,11 @@ var MarqueeHeader = function MarqueeHeader(props) {
|
|
|
18706
18709
|
"class": "d-flex flex-row align-items-center"
|
|
18707
18710
|
}, textarray.map(function (item, index) {
|
|
18708
18711
|
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
18709
|
-
"class": header_cssstyles.textSlider + '
|
|
18712
|
+
"class": header_cssstyles.textSlider + ' mb-0 p-0 ',
|
|
18713
|
+
style: {
|
|
18714
|
+
marginLeft: 200,
|
|
18715
|
+
marginRight: 200
|
|
18716
|
+
}
|
|
18710
18717
|
}, langdetect == 'en' ? item.textEnglish : item.textArabic);
|
|
18711
18718
|
}))), templateproperties_context.textslidertype == 'Text' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18712
18719
|
"class": props.srcfrom == 'sidemarquee' ? 'w-100 text-start' : 'w-100 allcentered'
|
|
@@ -58578,16 +58585,19 @@ var Slideshowzoom = function Slideshowzoom(props) {
|
|
|
58578
58585
|
};
|
|
58579
58586
|
var SlideShowTextContainer = function SlideShowTextContainer(item) {
|
|
58580
58587
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
58581
|
-
"class": cardarrayofobjs.length != 0 ? 'row m-0 w-100 allcentered align-items-md-center justify-content-md-center p-0 mt-sm-n6' : 'row m-0 w-100 allcentered align-items-md-center justify-content-md-center p-0'
|
|
58588
|
+
"class": cardarrayofobjs.length != 0 ? 'row m-0 w-sm-100 allcentered align-items-md-center justify-content-md-center p-0 mt-sm-n6 px-5' : 'row m-0 w-sm-100 allcentered align-items-md-center justify-content-md-center p-0 px-5'
|
|
58589
|
+
// style={{ position: 'absolute', top: cardarrayofobjs.length != 0 ? '40%' : '50%', zIndex: 2 }}
|
|
58590
|
+
,
|
|
58582
58591
|
style: {
|
|
58583
58592
|
position: 'absolute',
|
|
58584
|
-
|
|
58585
|
-
zIndex: 2
|
|
58593
|
+
bottom: 40,
|
|
58594
|
+
zIndex: 2,
|
|
58595
|
+
width: '50%'
|
|
58586
58596
|
}
|
|
58587
58597
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
58588
|
-
"class": sectionproperties.text1centered == 'Centered' ? 'col-lg-12 allcentered' : 'col-lg-12 '
|
|
58598
|
+
"class": sectionproperties.text1centered == 'Centered' ? 'col-lg-12 allcentered mb-1' : 'col-lg-12 mb-1 '
|
|
58589
58599
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
58590
|
-
className: "m-0 p-0 wordbreak
|
|
58600
|
+
className: "m-0 p-0 wordbreak",
|
|
58591
58601
|
style: {
|
|
58592
58602
|
fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
|
|
58593
58603
|
color: sectionproperties.slideshowText1ContentColor,
|
|
@@ -58595,7 +58605,7 @@ var Slideshowzoom = function Slideshowzoom(props) {
|
|
|
58595
58605
|
textAlign: sectionproperties.text1centered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
58596
58606
|
}
|
|
58597
58607
|
}, langdetect == 'en' ? item.titleen : item.titlear)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
58598
|
-
"class": sectionproperties.text2centered == 'Centered' ? 'col-lg-12 allcentered' : 'col-lg-12 '
|
|
58608
|
+
"class": sectionproperties.text2centered == 'Centered' ? 'col-lg-12 allcentered mb-3' : 'col-lg-12 mb-3 '
|
|
58599
58609
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
58600
58610
|
className: "m-0 p-0 wordbreak",
|
|
58601
58611
|
style: {
|
|
@@ -58614,11 +58624,7 @@ var Slideshowzoom = function Slideshowzoom(props) {
|
|
|
58614
58624
|
style: {
|
|
58615
58625
|
direction: langdetect == 'en' ? 'ltr' : 'rtl'
|
|
58616
58626
|
}
|
|
58617
|
-
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar, ' '
|
|
58618
|
-
size: 20
|
|
58619
|
-
}) : /*#__PURE__*/React__default["default"].createElement(IoIosArrowRoundBack.IoIosArrowRoundBack, {
|
|
58620
|
-
size: 20
|
|
58621
|
-
}))));
|
|
58627
|
+
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar, ' ')));
|
|
58622
58628
|
};
|
|
58623
58629
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
58624
58630
|
"class": "row m-0 w-100"
|
|
@@ -63633,11 +63639,15 @@ var Card23 = function Card23(props) {
|
|
|
63633
63639
|
border: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
|
|
63634
63640
|
paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
|
|
63635
63641
|
paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
|
|
63642
|
+
transition: 'all, 0.4s',
|
|
63636
63643
|
':hover .iconsContainer': {
|
|
63637
63644
|
opacity: 1,
|
|
63638
63645
|
transition: 'all, 0.4s',
|
|
63639
63646
|
right: 10,
|
|
63640
63647
|
transform: "translateX(0px)"
|
|
63648
|
+
},
|
|
63649
|
+
':hover': {
|
|
63650
|
+
boxShadow: '0 0 10px ' + sectionproperties.sectioncardshadowcolor
|
|
63641
63651
|
}
|
|
63642
63652
|
}),
|
|
63643
63653
|
iconsContainer2: glamor.css({
|
|
@@ -63719,10 +63729,10 @@ var Card23 = function Card23(props) {
|
|
|
63719
63729
|
},
|
|
63720
63730
|
loading: "lazy",
|
|
63721
63731
|
onClick: function onClick(e) {
|
|
63722
|
-
|
|
63723
|
-
|
|
63724
|
-
|
|
63725
|
-
// setShowProductInfoModalContext(true);
|
|
63732
|
+
if (sectionproperties.hideshowcardtransition != 'Show') {
|
|
63733
|
+
e.stopPropagation();
|
|
63734
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
63735
|
+
} // setShowProductInfoModalContext(true);
|
|
63726
63736
|
// setProductIdProdutInfoModalContext(item.productid);
|
|
63727
63737
|
}
|
|
63728
63738
|
}), transition && /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
@@ -63741,9 +63751,10 @@ var Card23 = function Card23(props) {
|
|
|
63741
63751
|
},
|
|
63742
63752
|
loading: "lazy",
|
|
63743
63753
|
onClick: function onClick(e) {
|
|
63744
|
-
|
|
63745
|
-
|
|
63746
|
-
|
|
63754
|
+
if (sectionproperties.hideshowcardtransition == 'Show') {
|
|
63755
|
+
e.stopPropagation();
|
|
63756
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
63757
|
+
}
|
|
63747
63758
|
// setShowProductInfoModalContext(true);
|
|
63748
63759
|
// setProductIdProdutInfoModalContext(item.productid);
|
|
63749
63760
|
}
|
|
@@ -63877,7 +63888,8 @@ var Card23 = function Card23(props) {
|
|
|
63877
63888
|
"class": " ".concat(cardsstyles2.showmodal),
|
|
63878
63889
|
onClick: function onClick(e) {
|
|
63879
63890
|
e.stopPropagation();
|
|
63880
|
-
|
|
63891
|
+
setShowProductInfoModalContext(true);
|
|
63892
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
63881
63893
|
}
|
|
63882
63894
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
63883
63895
|
"class": "h-100 d-flex align-items-center justify-content-center"
|
|
@@ -63915,7 +63927,8 @@ var Card23 = function Card23(props) {
|
|
|
63915
63927
|
"class": " ".concat(cardsstyles2.showmodal),
|
|
63916
63928
|
onClick: function onClick(e) {
|
|
63917
63929
|
e.stopPropagation();
|
|
63918
|
-
|
|
63930
|
+
setShowProductInfoModalContext(true);
|
|
63931
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
63919
63932
|
}
|
|
63920
63933
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
63921
63934
|
"class": "h-100 d-flex align-items-center justify-content-center"
|
|
@@ -63928,18 +63941,16 @@ var Card23 = function Card23(props) {
|
|
|
63928
63941
|
paddingBottom: sectionproperties.paddingBottom + 'px'
|
|
63929
63942
|
}
|
|
63930
63943
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
63931
|
-
"class":
|
|
63944
|
+
"class":
|
|
63945
|
+
// sectionproperties.hideshowcardtransition == 'Show'
|
|
63946
|
+
// ? ` ${cardsstyles2.imageContainer} ${cardstyles.imagecontainer}` + ' d-flex d-md-none '
|
|
63947
|
+
// : ` ${cardsstyles2.imageContainer} ` + ' d-flex d-md-none '
|
|
63948
|
+
sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(cardsstyles2.imageContainer, " ").concat(cardstyles$7.imagecontainer) + ' d-flex ' : " ".concat(cardsstyles2.imageContainer, " ") + ' d-flex ',
|
|
63932
63949
|
style: {
|
|
63933
63950
|
height: sectionproperties.image_height + 'px',
|
|
63934
63951
|
marginBottom: sectionproperties.image_mb + 'px'
|
|
63935
63952
|
}
|
|
63936
63953
|
}, Image('normal')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
63937
|
-
"class": cardsstyles2.imageContainer + ' d-none d-md-flex ',
|
|
63938
|
-
style: {
|
|
63939
|
-
height: sectionproperties.height_responsive + 'px',
|
|
63940
|
-
marginBottom: sectionproperties.image_mb + 'px'
|
|
63941
|
-
}
|
|
63942
|
-
}, Image('responsive')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
63943
63954
|
"class": sectionproperties.innersectionpaddinghorizontal == 0 ? 'row m-0 w-100' : 'row m-0 w-100 pl-sm-2 pr-sm-2',
|
|
63944
63955
|
style: {
|
|
63945
63956
|
paddingLeft: sectionproperties.innersectionpaddinghorizontal + 'px',
|
|
@@ -64036,8 +64047,7 @@ var Card23 = function Card23(props) {
|
|
|
64036
64047
|
}, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
64037
64048
|
"class": "".concat(cardsstyles2.cart_btn) + ' allcentered mt-3 ',
|
|
64038
64049
|
onClick: function onClick() {
|
|
64039
|
-
|
|
64040
|
-
setProductIdProdutInfoModalContext(item.productid);
|
|
64050
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
64041
64051
|
}
|
|
64042
64052
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
64043
64053
|
"class": "d-flex align-items-center justify-content-center"
|
|
@@ -71544,10 +71554,6 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
71544
71554
|
width: sectionproperties.imageInnerWidth_Height + '%',
|
|
71545
71555
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
71546
71556
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
71547
|
-
},
|
|
71548
|
-
onClick: function onClick(e) {
|
|
71549
|
-
e.stopPropagation();
|
|
71550
|
-
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
71551
71557
|
}
|
|
71552
71558
|
}), transition && /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
71553
71559
|
"class": cardstyles$7.secondaryimage,
|
|
@@ -71559,17 +71565,26 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
71559
71565
|
width: sectionproperties.imageInnerWidth_Height + '%',
|
|
71560
71566
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
71561
71567
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
71562
|
-
},
|
|
71563
|
-
onClick: function onClick(e) {
|
|
71564
|
-
e.stopPropagation();
|
|
71565
|
-
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
71566
|
-
|
|
71567
|
-
// setShowProductInfoModalContext(true);
|
|
71568
|
-
// setProductIdProdutInfoModalContext(item.productid);
|
|
71569
71568
|
}
|
|
71570
71569
|
}));
|
|
71571
71570
|
};
|
|
71571
|
+
var _useState7 = React.useState(0),
|
|
71572
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
71573
|
+
clickCount = _useState8[0],
|
|
71574
|
+
setClickCount = _useState8[1];
|
|
71575
|
+
var handleClick = function handleClick() {
|
|
71576
|
+
// Increase the click count by 1
|
|
71577
|
+
setClickCount(function (prevCount) {
|
|
71578
|
+
return prevCount + 1;
|
|
71579
|
+
});
|
|
71580
|
+
|
|
71581
|
+
// Check if it's the second click
|
|
71582
|
+
if (clickCount === 1) {
|
|
71583
|
+
// Do whatever you want on the second click
|
|
71572
71584
|
|
|
71585
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
71586
|
+
}
|
|
71587
|
+
};
|
|
71573
71588
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71574
71589
|
"class": props.sectiontypeprops2 == 'vertical' ? "".concat(card_cssstyles.productcard) + ' w-100 px-md-1 ' : " ".concat(card_cssstyles.productcard),
|
|
71575
71590
|
style: {
|
|
@@ -71685,9 +71700,21 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
71685
71700
|
direction: 'ltr'
|
|
71686
71701
|
}
|
|
71687
71702
|
}, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), " ", langdetect == 'en' ? '' : item.currencyname)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71688
|
-
"class": sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(card_cssstyles.productcardimagecont, " ").concat(cardstyles$7.imagecontainer) + ' d-flex ' : " ".concat(card_cssstyles.productcardimagecont, " ") + ' d-flex ',
|
|
71703
|
+
"class": sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(card_cssstyles.productcardimagecont, " ").concat(cardstyles$7.imagecontainer) + ' d-flex d-md-none ' : " ".concat(card_cssstyles.productcardimagecont, " ") + ' d-flex d-md-none ',
|
|
71704
|
+
style: {
|
|
71705
|
+
marginBottom: sectionproperties.image_mb + 'px'
|
|
71706
|
+
},
|
|
71707
|
+
onClick: function onClick(e) {
|
|
71708
|
+
e.stopPropagation();
|
|
71709
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
71710
|
+
}
|
|
71711
|
+
}, Image('normal')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71712
|
+
"class": sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(card_cssstyles.productcardimagecont, " ").concat(cardstyles$7.imagecontainer) + ' d-none d-md-flex ' : " ".concat(card_cssstyles.productcardimagecont, " ") + ' d-none d-md-flex ',
|
|
71689
71713
|
style: {
|
|
71690
71714
|
marginBottom: sectionproperties.image_mb + 'px'
|
|
71715
|
+
},
|
|
71716
|
+
onClick: function onClick(e) {
|
|
71717
|
+
handleClick();
|
|
71691
71718
|
}
|
|
71692
71719
|
}, Image('normal')), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71693
71720
|
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
package/dist/index.esm.js
CHANGED
|
@@ -5535,8 +5535,6 @@ var Productinfo = function Productinfo(props) {
|
|
|
5535
5535
|
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.hasvariants) == 1) {
|
|
5536
5536
|
if (addtocardpayloadobj.variantid.length != 0) {
|
|
5537
5537
|
runfunc = true;
|
|
5538
|
-
} else {
|
|
5539
|
-
NotificationManager.warning('', 'Please Choose Product Options');
|
|
5540
5538
|
}
|
|
5541
5539
|
} else {
|
|
5542
5540
|
runfunc = true;
|
|
@@ -15756,7 +15754,12 @@ var Filter$1 = function Filter(props) {
|
|
|
15756
15754
|
className: "h-100 d-flex align-items-center"
|
|
15757
15755
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
15758
15756
|
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
15759
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
15757
|
+
}, item.optionname == 'Color' && /*#__PURE__*/React.createElement("p", {
|
|
15758
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
15759
|
+
style: {
|
|
15760
|
+
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
15761
|
+
}
|
|
15762
|
+
}, valueitem.value_identifier), item.optionname != 'Color' && /*#__PURE__*/React.createElement("p", {
|
|
15760
15763
|
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
15761
15764
|
style: {
|
|
15762
15765
|
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
@@ -17506,7 +17509,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
17506
17509
|
setopenFilterSlider: setopenFilterSlider,
|
|
17507
17510
|
show_product_group_titles: show_product_group_titles
|
|
17508
17511
|
})), sectionproperties.showvariantfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
17509
|
-
className: 'col-lg-3 d-flex'
|
|
17512
|
+
className: 'col-lg-3 d-flex d-md-none'
|
|
17510
17513
|
}, /*#__PURE__*/React.createElement(Filter$1, {
|
|
17511
17514
|
sectionpropertiesprops: sectionproperties,
|
|
17512
17515
|
actions: actions,
|
|
@@ -18657,7 +18660,11 @@ var MarqueeHeader = function MarqueeHeader(props) {
|
|
|
18657
18660
|
"class": "d-flex flex-row align-items-center"
|
|
18658
18661
|
}, textarray.map(function (item, index) {
|
|
18659
18662
|
return /*#__PURE__*/React.createElement("p", {
|
|
18660
|
-
"class": header_cssstyles.textSlider + '
|
|
18663
|
+
"class": header_cssstyles.textSlider + ' mb-0 p-0 ',
|
|
18664
|
+
style: {
|
|
18665
|
+
marginLeft: 200,
|
|
18666
|
+
marginRight: 200
|
|
18667
|
+
}
|
|
18661
18668
|
}, langdetect == 'en' ? item.textEnglish : item.textArabic);
|
|
18662
18669
|
}))), templateproperties_context.textslidertype == 'Text' && /*#__PURE__*/React.createElement("div", {
|
|
18663
18670
|
"class": props.srcfrom == 'sidemarquee' ? 'w-100 text-start' : 'w-100 allcentered'
|
|
@@ -58529,16 +58536,19 @@ var Slideshowzoom = function Slideshowzoom(props) {
|
|
|
58529
58536
|
};
|
|
58530
58537
|
var SlideShowTextContainer = function SlideShowTextContainer(item) {
|
|
58531
58538
|
return /*#__PURE__*/React.createElement("div", {
|
|
58532
|
-
"class": cardarrayofobjs.length != 0 ? 'row m-0 w-100 allcentered align-items-md-center justify-content-md-center p-0 mt-sm-n6' : 'row m-0 w-100 allcentered align-items-md-center justify-content-md-center p-0'
|
|
58539
|
+
"class": cardarrayofobjs.length != 0 ? 'row m-0 w-sm-100 allcentered align-items-md-center justify-content-md-center p-0 mt-sm-n6 px-5' : 'row m-0 w-sm-100 allcentered align-items-md-center justify-content-md-center p-0 px-5'
|
|
58540
|
+
// style={{ position: 'absolute', top: cardarrayofobjs.length != 0 ? '40%' : '50%', zIndex: 2 }}
|
|
58541
|
+
,
|
|
58533
58542
|
style: {
|
|
58534
58543
|
position: 'absolute',
|
|
58535
|
-
|
|
58536
|
-
zIndex: 2
|
|
58544
|
+
bottom: 40,
|
|
58545
|
+
zIndex: 2,
|
|
58546
|
+
width: '50%'
|
|
58537
58547
|
}
|
|
58538
58548
|
}, /*#__PURE__*/React.createElement("div", {
|
|
58539
|
-
"class": sectionproperties.text1centered == 'Centered' ? 'col-lg-12 allcentered' : 'col-lg-12 '
|
|
58549
|
+
"class": sectionproperties.text1centered == 'Centered' ? 'col-lg-12 allcentered mb-1' : 'col-lg-12 mb-1 '
|
|
58540
58550
|
}, /*#__PURE__*/React.createElement("p", {
|
|
58541
|
-
className: "m-0 p-0 wordbreak
|
|
58551
|
+
className: "m-0 p-0 wordbreak",
|
|
58542
58552
|
style: {
|
|
58543
58553
|
fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
|
|
58544
58554
|
color: sectionproperties.slideshowText1ContentColor,
|
|
@@ -58546,7 +58556,7 @@ var Slideshowzoom = function Slideshowzoom(props) {
|
|
|
58546
58556
|
textAlign: sectionproperties.text1centered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
58547
58557
|
}
|
|
58548
58558
|
}, langdetect == 'en' ? item.titleen : item.titlear)), /*#__PURE__*/React.createElement("div", {
|
|
58549
|
-
"class": sectionproperties.text2centered == 'Centered' ? 'col-lg-12 allcentered' : 'col-lg-12 '
|
|
58559
|
+
"class": sectionproperties.text2centered == 'Centered' ? 'col-lg-12 allcentered mb-3' : 'col-lg-12 mb-3 '
|
|
58550
58560
|
}, /*#__PURE__*/React.createElement("p", {
|
|
58551
58561
|
className: "m-0 p-0 wordbreak",
|
|
58552
58562
|
style: {
|
|
@@ -58565,11 +58575,7 @@ var Slideshowzoom = function Slideshowzoom(props) {
|
|
|
58565
58575
|
style: {
|
|
58566
58576
|
direction: langdetect == 'en' ? 'ltr' : 'rtl'
|
|
58567
58577
|
}
|
|
58568
|
-
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar, ' '
|
|
58569
|
-
size: 20
|
|
58570
|
-
}) : /*#__PURE__*/React.createElement(IoIosArrowRoundBack, {
|
|
58571
|
-
size: 20
|
|
58572
|
-
}))));
|
|
58578
|
+
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar, ' ')));
|
|
58573
58579
|
};
|
|
58574
58580
|
return /*#__PURE__*/React.createElement("div", {
|
|
58575
58581
|
"class": "row m-0 w-100"
|
|
@@ -63584,11 +63590,15 @@ var Card23 = function Card23(props) {
|
|
|
63584
63590
|
border: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
|
|
63585
63591
|
paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
|
|
63586
63592
|
paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
|
|
63593
|
+
transition: 'all, 0.4s',
|
|
63587
63594
|
':hover .iconsContainer': {
|
|
63588
63595
|
opacity: 1,
|
|
63589
63596
|
transition: 'all, 0.4s',
|
|
63590
63597
|
right: 10,
|
|
63591
63598
|
transform: "translateX(0px)"
|
|
63599
|
+
},
|
|
63600
|
+
':hover': {
|
|
63601
|
+
boxShadow: '0 0 10px ' + sectionproperties.sectioncardshadowcolor
|
|
63592
63602
|
}
|
|
63593
63603
|
}),
|
|
63594
63604
|
iconsContainer2: css({
|
|
@@ -63670,10 +63680,10 @@ var Card23 = function Card23(props) {
|
|
|
63670
63680
|
},
|
|
63671
63681
|
loading: "lazy",
|
|
63672
63682
|
onClick: function onClick(e) {
|
|
63673
|
-
|
|
63674
|
-
|
|
63675
|
-
|
|
63676
|
-
// setShowProductInfoModalContext(true);
|
|
63683
|
+
if (sectionproperties.hideshowcardtransition != 'Show') {
|
|
63684
|
+
e.stopPropagation();
|
|
63685
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
63686
|
+
} // setShowProductInfoModalContext(true);
|
|
63677
63687
|
// setProductIdProdutInfoModalContext(item.productid);
|
|
63678
63688
|
}
|
|
63679
63689
|
}), transition && /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
@@ -63692,9 +63702,10 @@ var Card23 = function Card23(props) {
|
|
|
63692
63702
|
},
|
|
63693
63703
|
loading: "lazy",
|
|
63694
63704
|
onClick: function onClick(e) {
|
|
63695
|
-
|
|
63696
|
-
|
|
63697
|
-
|
|
63705
|
+
if (sectionproperties.hideshowcardtransition == 'Show') {
|
|
63706
|
+
e.stopPropagation();
|
|
63707
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
63708
|
+
}
|
|
63698
63709
|
// setShowProductInfoModalContext(true);
|
|
63699
63710
|
// setProductIdProdutInfoModalContext(item.productid);
|
|
63700
63711
|
}
|
|
@@ -63828,7 +63839,8 @@ var Card23 = function Card23(props) {
|
|
|
63828
63839
|
"class": " ".concat(cardsstyles2.showmodal),
|
|
63829
63840
|
onClick: function onClick(e) {
|
|
63830
63841
|
e.stopPropagation();
|
|
63831
|
-
|
|
63842
|
+
setShowProductInfoModalContext(true);
|
|
63843
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
63832
63844
|
}
|
|
63833
63845
|
}, /*#__PURE__*/React.createElement("i", {
|
|
63834
63846
|
"class": "h-100 d-flex align-items-center justify-content-center"
|
|
@@ -63866,7 +63878,8 @@ var Card23 = function Card23(props) {
|
|
|
63866
63878
|
"class": " ".concat(cardsstyles2.showmodal),
|
|
63867
63879
|
onClick: function onClick(e) {
|
|
63868
63880
|
e.stopPropagation();
|
|
63869
|
-
|
|
63881
|
+
setShowProductInfoModalContext(true);
|
|
63882
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
63870
63883
|
}
|
|
63871
63884
|
}, /*#__PURE__*/React.createElement("i", {
|
|
63872
63885
|
"class": "h-100 d-flex align-items-center justify-content-center"
|
|
@@ -63879,18 +63892,16 @@ var Card23 = function Card23(props) {
|
|
|
63879
63892
|
paddingBottom: sectionproperties.paddingBottom + 'px'
|
|
63880
63893
|
}
|
|
63881
63894
|
}, /*#__PURE__*/React.createElement("div", {
|
|
63882
|
-
"class":
|
|
63895
|
+
"class":
|
|
63896
|
+
// sectionproperties.hideshowcardtransition == 'Show'
|
|
63897
|
+
// ? ` ${cardsstyles2.imageContainer} ${cardstyles.imagecontainer}` + ' d-flex d-md-none '
|
|
63898
|
+
// : ` ${cardsstyles2.imageContainer} ` + ' d-flex d-md-none '
|
|
63899
|
+
sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(cardsstyles2.imageContainer, " ").concat(cardstyles$7.imagecontainer) + ' d-flex ' : " ".concat(cardsstyles2.imageContainer, " ") + ' d-flex ',
|
|
63883
63900
|
style: {
|
|
63884
63901
|
height: sectionproperties.image_height + 'px',
|
|
63885
63902
|
marginBottom: sectionproperties.image_mb + 'px'
|
|
63886
63903
|
}
|
|
63887
63904
|
}, Image('normal')), /*#__PURE__*/React.createElement("div", {
|
|
63888
|
-
"class": cardsstyles2.imageContainer + ' d-none d-md-flex ',
|
|
63889
|
-
style: {
|
|
63890
|
-
height: sectionproperties.height_responsive + 'px',
|
|
63891
|
-
marginBottom: sectionproperties.image_mb + 'px'
|
|
63892
|
-
}
|
|
63893
|
-
}, Image('responsive')), /*#__PURE__*/React.createElement("div", {
|
|
63894
63905
|
"class": sectionproperties.innersectionpaddinghorizontal == 0 ? 'row m-0 w-100' : 'row m-0 w-100 pl-sm-2 pr-sm-2',
|
|
63895
63906
|
style: {
|
|
63896
63907
|
paddingLeft: sectionproperties.innersectionpaddinghorizontal + 'px',
|
|
@@ -63987,8 +63998,7 @@ var Card23 = function Card23(props) {
|
|
|
63987
63998
|
}, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React.createElement("button", {
|
|
63988
63999
|
"class": "".concat(cardsstyles2.cart_btn) + ' allcentered mt-3 ',
|
|
63989
64000
|
onClick: function onClick() {
|
|
63990
|
-
|
|
63991
|
-
setProductIdProdutInfoModalContext(item.productid);
|
|
64001
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
63992
64002
|
}
|
|
63993
64003
|
}, /*#__PURE__*/React.createElement("div", {
|
|
63994
64004
|
"class": "d-flex align-items-center justify-content-center"
|
|
@@ -71495,10 +71505,6 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
71495
71505
|
width: sectionproperties.imageInnerWidth_Height + '%',
|
|
71496
71506
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
71497
71507
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
71498
|
-
},
|
|
71499
|
-
onClick: function onClick(e) {
|
|
71500
|
-
e.stopPropagation();
|
|
71501
|
-
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
71502
71508
|
}
|
|
71503
71509
|
}), transition && /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
71504
71510
|
"class": cardstyles$7.secondaryimage,
|
|
@@ -71510,17 +71516,26 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
71510
71516
|
width: sectionproperties.imageInnerWidth_Height + '%',
|
|
71511
71517
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
71512
71518
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
71513
|
-
},
|
|
71514
|
-
onClick: function onClick(e) {
|
|
71515
|
-
e.stopPropagation();
|
|
71516
|
-
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
71517
|
-
|
|
71518
|
-
// setShowProductInfoModalContext(true);
|
|
71519
|
-
// setProductIdProdutInfoModalContext(item.productid);
|
|
71520
71519
|
}
|
|
71521
71520
|
}));
|
|
71522
71521
|
};
|
|
71522
|
+
var _useState7 = useState(0),
|
|
71523
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
71524
|
+
clickCount = _useState8[0],
|
|
71525
|
+
setClickCount = _useState8[1];
|
|
71526
|
+
var handleClick = function handleClick() {
|
|
71527
|
+
// Increase the click count by 1
|
|
71528
|
+
setClickCount(function (prevCount) {
|
|
71529
|
+
return prevCount + 1;
|
|
71530
|
+
});
|
|
71531
|
+
|
|
71532
|
+
// Check if it's the second click
|
|
71533
|
+
if (clickCount === 1) {
|
|
71534
|
+
// Do whatever you want on the second click
|
|
71523
71535
|
|
|
71536
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
71537
|
+
}
|
|
71538
|
+
};
|
|
71524
71539
|
return /*#__PURE__*/React.createElement("div", {
|
|
71525
71540
|
"class": props.sectiontypeprops2 == 'vertical' ? "".concat(card_cssstyles.productcard) + ' w-100 px-md-1 ' : " ".concat(card_cssstyles.productcard),
|
|
71526
71541
|
style: {
|
|
@@ -71636,9 +71651,21 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
71636
71651
|
direction: 'ltr'
|
|
71637
71652
|
}
|
|
71638
71653
|
}, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), " ", langdetect == 'en' ? '' : item.currencyname)), /*#__PURE__*/React.createElement("div", {
|
|
71639
|
-
"class": sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(card_cssstyles.productcardimagecont, " ").concat(cardstyles$7.imagecontainer) + ' d-flex ' : " ".concat(card_cssstyles.productcardimagecont, " ") + ' d-flex ',
|
|
71654
|
+
"class": sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(card_cssstyles.productcardimagecont, " ").concat(cardstyles$7.imagecontainer) + ' d-flex d-md-none ' : " ".concat(card_cssstyles.productcardimagecont, " ") + ' d-flex d-md-none ',
|
|
71655
|
+
style: {
|
|
71656
|
+
marginBottom: sectionproperties.image_mb + 'px'
|
|
71657
|
+
},
|
|
71658
|
+
onClick: function onClick(e) {
|
|
71659
|
+
e.stopPropagation();
|
|
71660
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
71661
|
+
}
|
|
71662
|
+
}, Image('normal')), /*#__PURE__*/React.createElement("div", {
|
|
71663
|
+
"class": sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(card_cssstyles.productcardimagecont, " ").concat(cardstyles$7.imagecontainer) + ' d-none d-md-flex ' : " ".concat(card_cssstyles.productcardimagecont, " ") + ' d-none d-md-flex ',
|
|
71640
71664
|
style: {
|
|
71641
71665
|
marginBottom: sectionproperties.image_mb + 'px'
|
|
71666
|
+
},
|
|
71667
|
+
onClick: function onClick(e) {
|
|
71668
|
+
handleClick();
|
|
71642
71669
|
}
|
|
71643
71670
|
}, Image('normal')), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React.createElement("div", {
|
|
71644
71671
|
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
package/dist/index.umd.js
CHANGED
|
@@ -5410,8 +5410,6 @@
|
|
|
5410
5410
|
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.hasvariants) == 1) {
|
|
5411
5411
|
if (addtocardpayloadobj.variantid.length != 0) {
|
|
5412
5412
|
runfunc = true;
|
|
5413
|
-
} else {
|
|
5414
|
-
NotificationManager.warning('', 'Please Choose Product Options');
|
|
5415
5413
|
}
|
|
5416
5414
|
} else {
|
|
5417
5415
|
runfunc = true;
|
|
@@ -15631,7 +15629,12 @@
|
|
|
15631
15629
|
className: "h-100 d-flex align-items-center"
|
|
15632
15630
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15633
15631
|
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
15634
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15632
|
+
}, item.optionname == 'Color' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15633
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
15634
|
+
style: {
|
|
15635
|
+
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
15636
|
+
}
|
|
15637
|
+
}, valueitem.value_identifier), item.optionname != 'Color' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15635
15638
|
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
15636
15639
|
style: {
|
|
15637
15640
|
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
@@ -17381,7 +17384,7 @@
|
|
|
17381
17384
|
setopenFilterSlider: setopenFilterSlider,
|
|
17382
17385
|
show_product_group_titles: show_product_group_titles
|
|
17383
17386
|
})), sectionproperties.showvariantfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17384
|
-
className: 'col-lg-3 d-flex'
|
|
17387
|
+
className: 'col-lg-3 d-flex d-md-none'
|
|
17385
17388
|
}, /*#__PURE__*/React__default["default"].createElement(Filter$1, {
|
|
17386
17389
|
sectionpropertiesprops: sectionproperties,
|
|
17387
17390
|
actions: actions,
|
|
@@ -18532,7 +18535,11 @@
|
|
|
18532
18535
|
"class": "d-flex flex-row align-items-center"
|
|
18533
18536
|
}, textarray.map(function (item, index) {
|
|
18534
18537
|
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
18535
|
-
"class": header_cssstyles.textSlider + '
|
|
18538
|
+
"class": header_cssstyles.textSlider + ' mb-0 p-0 ',
|
|
18539
|
+
style: {
|
|
18540
|
+
marginLeft: 200,
|
|
18541
|
+
marginRight: 200
|
|
18542
|
+
}
|
|
18536
18543
|
}, langdetect == 'en' ? item.textEnglish : item.textArabic);
|
|
18537
18544
|
}))), templateproperties_context.textslidertype == 'Text' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18538
18545
|
"class": props.srcfrom == 'sidemarquee' ? 'w-100 text-start' : 'w-100 allcentered'
|
|
@@ -58404,16 +58411,19 @@
|
|
|
58404
58411
|
};
|
|
58405
58412
|
var SlideShowTextContainer = function SlideShowTextContainer(item) {
|
|
58406
58413
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
58407
|
-
"class": cardarrayofobjs.length != 0 ? 'row m-0 w-100 allcentered align-items-md-center justify-content-md-center p-0 mt-sm-n6' : 'row m-0 w-100 allcentered align-items-md-center justify-content-md-center p-0'
|
|
58414
|
+
"class": cardarrayofobjs.length != 0 ? 'row m-0 w-sm-100 allcentered align-items-md-center justify-content-md-center p-0 mt-sm-n6 px-5' : 'row m-0 w-sm-100 allcentered align-items-md-center justify-content-md-center p-0 px-5'
|
|
58415
|
+
// style={{ position: 'absolute', top: cardarrayofobjs.length != 0 ? '40%' : '50%', zIndex: 2 }}
|
|
58416
|
+
,
|
|
58408
58417
|
style: {
|
|
58409
58418
|
position: 'absolute',
|
|
58410
|
-
|
|
58411
|
-
zIndex: 2
|
|
58419
|
+
bottom: 40,
|
|
58420
|
+
zIndex: 2,
|
|
58421
|
+
width: '50%'
|
|
58412
58422
|
}
|
|
58413
58423
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
58414
|
-
"class": sectionproperties.text1centered == 'Centered' ? 'col-lg-12 allcentered' : 'col-lg-12 '
|
|
58424
|
+
"class": sectionproperties.text1centered == 'Centered' ? 'col-lg-12 allcentered mb-1' : 'col-lg-12 mb-1 '
|
|
58415
58425
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
58416
|
-
className: "m-0 p-0 wordbreak
|
|
58426
|
+
className: "m-0 p-0 wordbreak",
|
|
58417
58427
|
style: {
|
|
58418
58428
|
fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
|
|
58419
58429
|
color: sectionproperties.slideshowText1ContentColor,
|
|
@@ -58421,7 +58431,7 @@
|
|
|
58421
58431
|
textAlign: sectionproperties.text1centered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
58422
58432
|
}
|
|
58423
58433
|
}, langdetect == 'en' ? item.titleen : item.titlear)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
58424
|
-
"class": sectionproperties.text2centered == 'Centered' ? 'col-lg-12 allcentered' : 'col-lg-12 '
|
|
58434
|
+
"class": sectionproperties.text2centered == 'Centered' ? 'col-lg-12 allcentered mb-3' : 'col-lg-12 mb-3 '
|
|
58425
58435
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
58426
58436
|
className: "m-0 p-0 wordbreak",
|
|
58427
58437
|
style: {
|
|
@@ -58440,11 +58450,7 @@
|
|
|
58440
58450
|
style: {
|
|
58441
58451
|
direction: langdetect == 'en' ? 'ltr' : 'rtl'
|
|
58442
58452
|
}
|
|
58443
|
-
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar, ' '
|
|
58444
|
-
size: 20
|
|
58445
|
-
}) : /*#__PURE__*/React__default["default"].createElement(IoIosArrowRoundBack.IoIosArrowRoundBack, {
|
|
58446
|
-
size: 20
|
|
58447
|
-
}))));
|
|
58453
|
+
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar, ' ')));
|
|
58448
58454
|
};
|
|
58449
58455
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
58450
58456
|
"class": "row m-0 w-100"
|
|
@@ -63459,11 +63465,15 @@
|
|
|
63459
63465
|
border: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
|
|
63460
63466
|
paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
|
|
63461
63467
|
paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
|
|
63468
|
+
transition: 'all, 0.4s',
|
|
63462
63469
|
':hover .iconsContainer': {
|
|
63463
63470
|
opacity: 1,
|
|
63464
63471
|
transition: 'all, 0.4s',
|
|
63465
63472
|
right: 10,
|
|
63466
63473
|
transform: "translateX(0px)"
|
|
63474
|
+
},
|
|
63475
|
+
':hover': {
|
|
63476
|
+
boxShadow: '0 0 10px ' + sectionproperties.sectioncardshadowcolor
|
|
63467
63477
|
}
|
|
63468
63478
|
}),
|
|
63469
63479
|
iconsContainer2: glamor.css({
|
|
@@ -63545,10 +63555,10 @@
|
|
|
63545
63555
|
},
|
|
63546
63556
|
loading: "lazy",
|
|
63547
63557
|
onClick: function onClick(e) {
|
|
63548
|
-
|
|
63549
|
-
|
|
63550
|
-
|
|
63551
|
-
// setShowProductInfoModalContext(true);
|
|
63558
|
+
if (sectionproperties.hideshowcardtransition != 'Show') {
|
|
63559
|
+
e.stopPropagation();
|
|
63560
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
63561
|
+
} // setShowProductInfoModalContext(true);
|
|
63552
63562
|
// setProductIdProdutInfoModalContext(item.productid);
|
|
63553
63563
|
}
|
|
63554
63564
|
}), transition && /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
@@ -63567,9 +63577,10 @@
|
|
|
63567
63577
|
},
|
|
63568
63578
|
loading: "lazy",
|
|
63569
63579
|
onClick: function onClick(e) {
|
|
63570
|
-
|
|
63571
|
-
|
|
63572
|
-
|
|
63580
|
+
if (sectionproperties.hideshowcardtransition == 'Show') {
|
|
63581
|
+
e.stopPropagation();
|
|
63582
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
63583
|
+
}
|
|
63573
63584
|
// setShowProductInfoModalContext(true);
|
|
63574
63585
|
// setProductIdProdutInfoModalContext(item.productid);
|
|
63575
63586
|
}
|
|
@@ -63703,7 +63714,8 @@
|
|
|
63703
63714
|
"class": " ".concat(cardsstyles2.showmodal),
|
|
63704
63715
|
onClick: function onClick(e) {
|
|
63705
63716
|
e.stopPropagation();
|
|
63706
|
-
|
|
63717
|
+
setShowProductInfoModalContext(true);
|
|
63718
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
63707
63719
|
}
|
|
63708
63720
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
63709
63721
|
"class": "h-100 d-flex align-items-center justify-content-center"
|
|
@@ -63741,7 +63753,8 @@
|
|
|
63741
63753
|
"class": " ".concat(cardsstyles2.showmodal),
|
|
63742
63754
|
onClick: function onClick(e) {
|
|
63743
63755
|
e.stopPropagation();
|
|
63744
|
-
|
|
63756
|
+
setShowProductInfoModalContext(true);
|
|
63757
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
63745
63758
|
}
|
|
63746
63759
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
63747
63760
|
"class": "h-100 d-flex align-items-center justify-content-center"
|
|
@@ -63754,18 +63767,16 @@
|
|
|
63754
63767
|
paddingBottom: sectionproperties.paddingBottom + 'px'
|
|
63755
63768
|
}
|
|
63756
63769
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
63757
|
-
"class":
|
|
63770
|
+
"class":
|
|
63771
|
+
// sectionproperties.hideshowcardtransition == 'Show'
|
|
63772
|
+
// ? ` ${cardsstyles2.imageContainer} ${cardstyles.imagecontainer}` + ' d-flex d-md-none '
|
|
63773
|
+
// : ` ${cardsstyles2.imageContainer} ` + ' d-flex d-md-none '
|
|
63774
|
+
sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(cardsstyles2.imageContainer, " ").concat(cardstyles$7.imagecontainer) + ' d-flex ' : " ".concat(cardsstyles2.imageContainer, " ") + ' d-flex ',
|
|
63758
63775
|
style: {
|
|
63759
63776
|
height: sectionproperties.image_height + 'px',
|
|
63760
63777
|
marginBottom: sectionproperties.image_mb + 'px'
|
|
63761
63778
|
}
|
|
63762
63779
|
}, Image('normal')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
63763
|
-
"class": cardsstyles2.imageContainer + ' d-none d-md-flex ',
|
|
63764
|
-
style: {
|
|
63765
|
-
height: sectionproperties.height_responsive + 'px',
|
|
63766
|
-
marginBottom: sectionproperties.image_mb + 'px'
|
|
63767
|
-
}
|
|
63768
|
-
}, Image('responsive')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
63769
63780
|
"class": sectionproperties.innersectionpaddinghorizontal == 0 ? 'row m-0 w-100' : 'row m-0 w-100 pl-sm-2 pr-sm-2',
|
|
63770
63781
|
style: {
|
|
63771
63782
|
paddingLeft: sectionproperties.innersectionpaddinghorizontal + 'px',
|
|
@@ -63862,8 +63873,7 @@
|
|
|
63862
63873
|
}, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
63863
63874
|
"class": "".concat(cardsstyles2.cart_btn) + ' allcentered mt-3 ',
|
|
63864
63875
|
onClick: function onClick() {
|
|
63865
|
-
|
|
63866
|
-
setProductIdProdutInfoModalContext(item.productid);
|
|
63876
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
63867
63877
|
}
|
|
63868
63878
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
63869
63879
|
"class": "d-flex align-items-center justify-content-center"
|
|
@@ -71370,10 +71380,6 @@
|
|
|
71370
71380
|
width: sectionproperties.imageInnerWidth_Height + '%',
|
|
71371
71381
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
71372
71382
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
71373
|
-
},
|
|
71374
|
-
onClick: function onClick(e) {
|
|
71375
|
-
e.stopPropagation();
|
|
71376
|
-
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
71377
71383
|
}
|
|
71378
71384
|
}), transition && /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
71379
71385
|
"class": cardstyles$7.secondaryimage,
|
|
@@ -71385,17 +71391,26 @@
|
|
|
71385
71391
|
width: sectionproperties.imageInnerWidth_Height + '%',
|
|
71386
71392
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
71387
71393
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
71388
|
-
},
|
|
71389
|
-
onClick: function onClick(e) {
|
|
71390
|
-
e.stopPropagation();
|
|
71391
|
-
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
71392
|
-
|
|
71393
|
-
// setShowProductInfoModalContext(true);
|
|
71394
|
-
// setProductIdProdutInfoModalContext(item.productid);
|
|
71395
71394
|
}
|
|
71396
71395
|
}));
|
|
71397
71396
|
};
|
|
71397
|
+
var _useState7 = React.useState(0),
|
|
71398
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
71399
|
+
clickCount = _useState8[0],
|
|
71400
|
+
setClickCount = _useState8[1];
|
|
71401
|
+
var handleClick = function handleClick() {
|
|
71402
|
+
// Increase the click count by 1
|
|
71403
|
+
setClickCount(function (prevCount) {
|
|
71404
|
+
return prevCount + 1;
|
|
71405
|
+
});
|
|
71406
|
+
|
|
71407
|
+
// Check if it's the second click
|
|
71408
|
+
if (clickCount === 1) {
|
|
71409
|
+
// Do whatever you want on the second click
|
|
71398
71410
|
|
|
71411
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
71412
|
+
}
|
|
71413
|
+
};
|
|
71399
71414
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71400
71415
|
"class": props.sectiontypeprops2 == 'vertical' ? "".concat(card_cssstyles.productcard) + ' w-100 px-md-1 ' : " ".concat(card_cssstyles.productcard),
|
|
71401
71416
|
style: {
|
|
@@ -71511,9 +71526,21 @@
|
|
|
71511
71526
|
direction: 'ltr'
|
|
71512
71527
|
}
|
|
71513
71528
|
}, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), " ", langdetect == 'en' ? '' : item.currencyname)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71514
|
-
"class": sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(card_cssstyles.productcardimagecont, " ").concat(cardstyles$7.imagecontainer) + ' d-flex ' : " ".concat(card_cssstyles.productcardimagecont, " ") + ' d-flex ',
|
|
71529
|
+
"class": sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(card_cssstyles.productcardimagecont, " ").concat(cardstyles$7.imagecontainer) + ' d-flex d-md-none ' : " ".concat(card_cssstyles.productcardimagecont, " ") + ' d-flex d-md-none ',
|
|
71530
|
+
style: {
|
|
71531
|
+
marginBottom: sectionproperties.image_mb + 'px'
|
|
71532
|
+
},
|
|
71533
|
+
onClick: function onClick(e) {
|
|
71534
|
+
e.stopPropagation();
|
|
71535
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
71536
|
+
}
|
|
71537
|
+
}, Image('normal')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71538
|
+
"class": sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(card_cssstyles.productcardimagecont, " ").concat(cardstyles$7.imagecontainer) + ' d-none d-md-flex ' : " ".concat(card_cssstyles.productcardimagecont, " ") + ' d-none d-md-flex ',
|
|
71515
71539
|
style: {
|
|
71516
71540
|
marginBottom: sectionproperties.image_mb + 'px'
|
|
71541
|
+
},
|
|
71542
|
+
onClick: function onClick(e) {
|
|
71543
|
+
handleClick();
|
|
71517
71544
|
}
|
|
71518
71545
|
}, Image('normal')), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71519
71546
|
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|