tabexseriescomponents 0.0.836 → 0.0.837
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 +241 -76
- package/dist/index.esm.js +241 -76
- package/dist/index.umd.js +241 -76
- package/package.json +1 -1
- package/src.zip +0 -0
package/dist/index.cjs.js
CHANGED
|
@@ -20078,7 +20078,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
20078
20078
|
} else if (item.tabexsectioninfo.sectioncompname == 'Classiccategorycard') {
|
|
20079
20079
|
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
20080
20080
|
} else if (item.tabexsectioninfo.sectioncompname == 'Horizontalcard') {
|
|
20081
|
-
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-
|
|
20081
|
+
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
20082
20082
|
} else {
|
|
20083
20083
|
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
|
|
20084
20084
|
}
|
|
@@ -20112,7 +20112,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
20112
20112
|
} else if (item.tabexsectioninfo.sectioncompname == 'Classiccategorycard') {
|
|
20113
20113
|
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
20114
20114
|
} else if (item.tabexsectioninfo.sectioncompname == 'Horizontalcard') {
|
|
20115
|
-
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-
|
|
20115
|
+
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
20116
20116
|
} else {
|
|
20117
20117
|
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
20118
20118
|
}
|
|
@@ -20146,7 +20146,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
20146
20146
|
} else if (item.tabexsectioninfo.sectioncompname == 'Classiccategorycard') {
|
|
20147
20147
|
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
20148
20148
|
} else if (item.tabexsectioninfo.sectioncompname == 'Horizontalcard') {
|
|
20149
|
-
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-
|
|
20149
|
+
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
20150
20150
|
} else {
|
|
20151
20151
|
bootstapclass = ' col-xl-4 col-lg-4 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
20152
20152
|
}
|
|
@@ -20178,7 +20178,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
20178
20178
|
} else if (item.tabexsectioninfo.sectioncompname == 'Classiccategorycard') {
|
|
20179
20179
|
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
20180
20180
|
} else if (item.tabexsectioninfo.sectioncompname == 'Horizontalcard') {
|
|
20181
|
-
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-
|
|
20181
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
20182
20182
|
} else {
|
|
20183
20183
|
bootstapclass = ' col-xl-3 col-lg-4 col-md-4 p-0 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
20184
20184
|
}
|
|
@@ -20209,7 +20209,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
20209
20209
|
} else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage') {
|
|
20210
20210
|
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 ';
|
|
20211
20211
|
} else if (item.tabexsectioninfo.sectioncompname == 'Horizontalcard') {
|
|
20212
|
-
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-
|
|
20212
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
20213
20213
|
} else {
|
|
20214
20214
|
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
20215
20215
|
}
|
|
@@ -20243,7 +20243,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
20243
20243
|
} else if (item.tabexsectioninfo.sectioncompname == 'Classiccategorycard') {
|
|
20244
20244
|
bootstapclass = ' col-xl-2 p-0 col-lg-3 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
20245
20245
|
} else if (item.tabexsectioninfo.sectioncompname == 'Horizontalcard') {
|
|
20246
|
-
bootstapclass = ' col-xl-2 p-0 col-lg-3 col-md-
|
|
20246
|
+
bootstapclass = ' col-xl-2 p-0 col-lg-3 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
20247
20247
|
} else {
|
|
20248
20248
|
bootstapclass = ' col-xl-2 col-lg-2 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
20249
20249
|
}
|
|
@@ -62306,22 +62306,23 @@ var PopupCountryComponent = function PopupCountryComponent(props) {
|
|
|
62306
62306
|
// let returningUser = localStorage.getItem('seenPopUp');
|
|
62307
62307
|
// setshowpopup(!returningUser);
|
|
62308
62308
|
// }, []);
|
|
62309
|
-
|
|
62310
|
-
|
|
62311
|
-
|
|
62312
|
-
|
|
62313
|
-
|
|
62314
|
-
|
|
62315
|
-
|
|
62316
|
-
|
|
62317
|
-
|
|
62318
|
-
|
|
62319
|
-
|
|
62320
|
-
|
|
62321
|
-
|
|
62322
|
-
|
|
62323
|
-
|
|
62324
|
-
};
|
|
62309
|
+
// const [isModalVisible, setModalVisible] = useState(false);
|
|
62310
|
+
|
|
62311
|
+
// useEffect(() => {
|
|
62312
|
+
// // Check if the modal has been shown in the current session
|
|
62313
|
+
// const hasModalBeenShown = sessionStorage.getItem('modalShown');
|
|
62314
|
+
|
|
62315
|
+
// if (!hasModalBeenShown) {
|
|
62316
|
+
// setModalVisible(true);
|
|
62317
|
+
// // Set the flag in sessionStorage
|
|
62318
|
+
// sessionStorage.setItem('modalShown', 'true');
|
|
62319
|
+
// }
|
|
62320
|
+
// }, []);
|
|
62321
|
+
|
|
62322
|
+
// const closePopUp = () => {
|
|
62323
|
+
// setModalVisible(false);
|
|
62324
|
+
// };
|
|
62325
|
+
|
|
62325
62326
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62326
62327
|
className: "row ml-0 mr-0 w-100"
|
|
62327
62328
|
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal, {
|
|
@@ -62332,7 +62333,11 @@ var PopupCountryComponent = function PopupCountryComponent(props) {
|
|
|
62332
62333
|
centered: true,
|
|
62333
62334
|
size: 'md'
|
|
62334
62335
|
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62335
|
-
className: "row w-100 m-0"
|
|
62336
|
+
className: "row w-100 m-0",
|
|
62337
|
+
style: {
|
|
62338
|
+
minHeight: '20vh',
|
|
62339
|
+
position: 'relative'
|
|
62340
|
+
}
|
|
62336
62341
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62337
62342
|
className: "allcentered bgdanger-hover cursor-pointer",
|
|
62338
62343
|
onClick: function onClick() {
|
|
@@ -62355,35 +62360,12 @@ var PopupCountryComponent = function PopupCountryComponent(props) {
|
|
|
62355
62360
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62356
62361
|
"class": "col-lg-12 mb-2"
|
|
62357
62362
|
}, "Country/Region"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62358
|
-
"class": "
|
|
62359
|
-
|
|
62360
|
-
|
|
62361
|
-
|
|
62362
|
-
|
|
62363
|
-
|
|
62364
|
-
}, "Audi"), /*#__PURE__*/React__default["default"].createElement("option", {
|
|
62365
|
-
value: "2"
|
|
62366
|
-
}, "BMW"), /*#__PURE__*/React__default["default"].createElement("option", {
|
|
62367
|
-
value: "3"
|
|
62368
|
-
}, "Citroen"), /*#__PURE__*/React__default["default"].createElement("option", {
|
|
62369
|
-
value: "4"
|
|
62370
|
-
}, "Ford"), /*#__PURE__*/React__default["default"].createElement("option", {
|
|
62371
|
-
value: "5"
|
|
62372
|
-
}, "Honda"), /*#__PURE__*/React__default["default"].createElement("option", {
|
|
62373
|
-
value: "6"
|
|
62374
|
-
}, "Jaguar"), /*#__PURE__*/React__default["default"].createElement("option", {
|
|
62375
|
-
value: "7"
|
|
62376
|
-
}, "Land Rover"), /*#__PURE__*/React__default["default"].createElement("option", {
|
|
62377
|
-
value: "8"
|
|
62378
|
-
}, "Mercedes"), /*#__PURE__*/React__default["default"].createElement("option", {
|
|
62379
|
-
value: "9"
|
|
62380
|
-
}, "Mini"), /*#__PURE__*/React__default["default"].createElement("option", {
|
|
62381
|
-
value: "10"
|
|
62382
|
-
}, "Nissan"), /*#__PURE__*/React__default["default"].createElement("option", {
|
|
62383
|
-
value: "11"
|
|
62384
|
-
}, "Toyota"), /*#__PURE__*/React__default["default"].createElement("option", {
|
|
62385
|
-
value: "12"
|
|
62386
|
-
}, "Volvo"))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
|
|
62363
|
+
"class": "col-lg-12"
|
|
62364
|
+
}, /*#__PURE__*/React__default["default"].createElement("select", {
|
|
62365
|
+
style: {
|
|
62366
|
+
width: '100%'
|
|
62367
|
+
}
|
|
62368
|
+
}, /*#__PURE__*/React__default["default"].createElement("option", null, "Egypt/EGP"))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
|
|
62387
62369
|
};
|
|
62388
62370
|
|
|
62389
62371
|
function ownKeys$13(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -67310,7 +67292,8 @@ var ServicesectionCenteredcards = function ServicesectionCenteredcards(props) {
|
|
|
67310
67292
|
justifyContent: sectionproperties.descriptionCentered == 'Centered' ? 'center' : 'start',
|
|
67311
67293
|
marginBottom: sectionproperties.descriptionMarginBottom + 'px',
|
|
67312
67294
|
paddingLeft: langdetect == 'en' ? sectionproperties.description_marginLeft + 'px' : sectionproperties.description_marginRight + 'px',
|
|
67313
|
-
paddingRight: langdetect == 'en' ? sectionproperties.description_marginRight + 'px' : sectionproperties.description_marginLeft + 'px'
|
|
67295
|
+
paddingRight: langdetect == 'en' ? sectionproperties.description_marginRight + 'px' : sectionproperties.description_marginLeft + 'px',
|
|
67296
|
+
zIndex: 1
|
|
67314
67297
|
}
|
|
67315
67298
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
67316
67299
|
"class": sectionproperties.descFontFamily == 'Pacifico' ? sectionStyles.descriptioncont + ' PacificoFont m-0 p-0 wordbreak ' : sectionproperties.descFontFamily == 'Playfair' ? sectionStyles.descriptioncont + ' PlayfairFont m-0 p-0 wordbreak ' : sectionproperties.descFontFamily == 'Great Vibes' ? sectionStyles.descriptioncont + ' GreatvibesFont m-0 p-0 wordbreak ' : sectionproperties.descFontFamily == 'Quicksand' ? sectionStyles.descriptioncont + ' QuicksandFont m-0 p-0 wordbreak' : sectionStyles.descriptioncont + ' m-0 p-0 wordbreak',
|
|
@@ -77491,10 +77474,17 @@ var Horizontalcard = function Horizontalcard(props) {
|
|
|
77491
77474
|
props.actions.routingcountext;
|
|
77492
77475
|
props.actions.StaticPagesLinksContext;
|
|
77493
77476
|
var addtofavoritescontext = props.actions.addtofavoritescontext;
|
|
77494
|
-
|
|
77495
|
-
|
|
77477
|
+
props.actions.setShowProductInfoModalContext;
|
|
77478
|
+
props.actions.setProductIdProdutInfoModalContext;
|
|
77496
77479
|
var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
|
|
77497
77480
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
77481
|
+
var NotificationManager = props.actions.NotificationManager;
|
|
77482
|
+
var _useState5 = React.useState(false),
|
|
77483
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
77484
|
+
showquantity = _useState6[0],
|
|
77485
|
+
setshowquantity = _useState6[1];
|
|
77486
|
+
var AddtoCartContext = props.actions.AddtoCartContext;
|
|
77487
|
+
var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
|
|
77498
77488
|
var plainString = function plainString(html) {
|
|
77499
77489
|
var divContainer = document.createElement('div');
|
|
77500
77490
|
divContainer.innerHTML = html;
|
|
@@ -77621,8 +77611,122 @@ var Horizontalcard = function Horizontalcard(props) {
|
|
|
77621
77611
|
'@media (max-width: 800px)': {
|
|
77622
77612
|
height: sectionproperties.height_responsive + 'px'
|
|
77623
77613
|
}
|
|
77614
|
+
}),
|
|
77615
|
+
quantitybtn: glamor.css(_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"]({
|
|
77616
|
+
// height: sectionproperties.quantitybtn_height + 'px',
|
|
77617
|
+
// width: sectionproperties.quantitybtn_width + 'px',
|
|
77618
|
+
width: sectionproperties.cartBtnWidth == 0 ? 'auto' : sectionproperties.cartBtnWidth + 'px',
|
|
77619
|
+
height: sectionproperties.cartBtnHeight == 0 ? 'auto' : sectionproperties.cartBtnHeight + 'px',
|
|
77620
|
+
display: 'flex',
|
|
77621
|
+
flexDirection: 'row',
|
|
77622
|
+
overflow: 'hidden',
|
|
77623
|
+
// borderRadius: sectionproperties.quantitybtn_borderradius + 'px',
|
|
77624
|
+
// background: sectionproperties.quantitybtn_bgcolor,
|
|
77625
|
+
borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
|
|
77626
|
+
color: sectionproperties.cartBtnTextcolor,
|
|
77627
|
+
alignItems: 'center',
|
|
77628
|
+
justifyContent: 'center',
|
|
77629
|
+
margin: 0,
|
|
77630
|
+
position: 'relative',
|
|
77631
|
+
fontWeight: sectionproperties.quantitybtn_textfontweight
|
|
77632
|
+
}, "color", sectionproperties.quantitybtn_textcolor), "fontSize", sectionproperties.quantitybtn_textfontsize + 'px'), "border", '1px solid ' + sectionproperties.cartBtnbgColor), "zIndex", 100)),
|
|
77633
|
+
quantitybtn_text: glamor.css({
|
|
77634
|
+
margin: 'auto'
|
|
77635
|
+
}),
|
|
77636
|
+
add_quantitybtn_icon_container: glamor.css({
|
|
77637
|
+
position: 'relative',
|
|
77638
|
+
width: '40px',
|
|
77639
|
+
height: '40px',
|
|
77640
|
+
// background: sectionproperties.add_quantitybtn_bgcolor,
|
|
77641
|
+
display: 'flex',
|
|
77642
|
+
alignItems: 'center',
|
|
77643
|
+
justifyContent: 'center',
|
|
77644
|
+
// borderTopLeftRadius: langdetect == 'en' ? sectionproperties.add_quantitybtn_leftborderradius + 'px' : sectionproperties.add_quantitybtn_rightborderradius + 'px',
|
|
77645
|
+
// borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.add_quantitybtn_leftborderradius + 'px' : sectionproperties.add_quantitybtn_rightborderradius + 'px',
|
|
77646
|
+
// borderTopRightRadius: langdetect == 'en' ? sectionproperties.add_quantitybtn_rightborderradius + 'px' : sectionproperties.add_quantitybtn_leftborderradius + 'px',
|
|
77647
|
+
// borderBottomRightRadius: langdetect == 'en' ? sectionproperties.add_quantitybtn_rightborderradius + 'px' : sectionproperties.add_quantitybtn_leftborderradius + 'px',
|
|
77648
|
+
fontSize: '14px',
|
|
77649
|
+
color: sectionproperties.cartBtnbgColor,
|
|
77650
|
+
transition: '.3s',
|
|
77651
|
+
':hover': {
|
|
77652
|
+
color: sectionproperties.cartBtnbgColor
|
|
77653
|
+
// background: sectionproperties.add_quantitybtn_bgcoloronhover,
|
|
77654
|
+
},
|
|
77655
|
+
':hover .addbtn': {
|
|
77656
|
+
color: sectionproperties.cartBtnbgColor,
|
|
77657
|
+
transition: '.3s'
|
|
77658
|
+
}
|
|
77659
|
+
}),
|
|
77660
|
+
minus_quantitybtn_icon_container: glamor.css({
|
|
77661
|
+
position: 'relative',
|
|
77662
|
+
width: '40px',
|
|
77663
|
+
height: '40px',
|
|
77664
|
+
// background: sectionproperties.add_quantitybtn_bgcolor,
|
|
77665
|
+
display: 'flex',
|
|
77666
|
+
alignItems: 'center',
|
|
77667
|
+
justifyContent: 'center',
|
|
77668
|
+
// borderTopLeftRadius: langdetect == 'en' ? sectionproperties.add_quantitybtn_leftborderradius + 'px' : sectionproperties.add_quantitybtn_rightborderradius + 'px',
|
|
77669
|
+
// borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.add_quantitybtn_leftborderradius + 'px' : sectionproperties.add_quantitybtn_rightborderradius + 'px',
|
|
77670
|
+
// borderTopRightRadius: langdetect == 'en' ? sectionproperties.add_quantitybtn_rightborderradius + 'px' : sectionproperties.add_quantitybtn_leftborderradius + 'px',
|
|
77671
|
+
// borderBottomRightRadius: langdetect == 'en' ? sectionproperties.add_quantitybtn_rightborderradius + 'px' : sectionproperties.add_quantitybtn_leftborderradius + 'px',
|
|
77672
|
+
fontSize: '14px',
|
|
77673
|
+
color: sectionproperties.cartBtnbgColor,
|
|
77674
|
+
transition: '.3s',
|
|
77675
|
+
':hover': {
|
|
77676
|
+
color: sectionproperties.cartBtnbgColor
|
|
77677
|
+
// background: sectionproperties.add_quantitybtn_bgcoloronhover,
|
|
77678
|
+
},
|
|
77679
|
+
':hover .minusbtn': {
|
|
77680
|
+
color: sectionproperties.cartBtnbgColor,
|
|
77681
|
+
transition: '.3s'
|
|
77682
|
+
}
|
|
77624
77683
|
})
|
|
77625
77684
|
};
|
|
77685
|
+
var addtocartfunc = function addtocartfunc(type, quantity) {
|
|
77686
|
+
var addtocardpayloadobj = {
|
|
77687
|
+
functype: 'add',
|
|
77688
|
+
productid: item.productid,
|
|
77689
|
+
variantid: '',
|
|
77690
|
+
quantity: quantity
|
|
77691
|
+
};
|
|
77692
|
+
var runfunc = false;
|
|
77693
|
+
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
77694
|
+
if (item.hasvariants == 1) {
|
|
77695
|
+
if (addtocardpayloadobj.variantid.length != 0) {
|
|
77696
|
+
runfunc = true;
|
|
77697
|
+
} else {
|
|
77698
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Please Choose Product Options' : 'من فضلك اختر متغير');
|
|
77699
|
+
}
|
|
77700
|
+
} else {
|
|
77701
|
+
runfunc = true;
|
|
77702
|
+
}
|
|
77703
|
+
} else {
|
|
77704
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Please Choose Quantity' : 'من فضلك اختر الكمية');
|
|
77705
|
+
}
|
|
77706
|
+
if (runfunc == true) {
|
|
77707
|
+
AddtoCartContext(addtocardpayloadobj);
|
|
77708
|
+
}
|
|
77709
|
+
};
|
|
77710
|
+
var addtocartbuttonrender = function addtocartbuttonrender() {
|
|
77711
|
+
if (AddtoCartMutationContext.isLoading) {
|
|
77712
|
+
var _AddtoCartMutationCon;
|
|
77713
|
+
if ((AddtoCartMutationContext === null || AddtoCartMutationContext === void 0 || (_AddtoCartMutationCon = AddtoCartMutationContext.variables) === null || _AddtoCartMutationCon === void 0 ? void 0 : _AddtoCartMutationCon.productid) == item.productid) {
|
|
77714
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
77715
|
+
"class": ' d-flex align-items-center justify-content-center '
|
|
77716
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
77717
|
+
color: sectionproperties.quantitybtn_textcolor,
|
|
77718
|
+
width: "20px",
|
|
77719
|
+
height: "20px",
|
|
77720
|
+
duration: "1s"
|
|
77721
|
+
}));
|
|
77722
|
+
} else {
|
|
77723
|
+
return item.quantity;
|
|
77724
|
+
}
|
|
77725
|
+
}
|
|
77726
|
+
if (!AddtoCartMutationContext.isLoading) {
|
|
77727
|
+
return item.quantity;
|
|
77728
|
+
}
|
|
77729
|
+
};
|
|
77626
77730
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
77627
77731
|
"class": "row m-0 w-100",
|
|
77628
77732
|
style: {
|
|
@@ -77640,7 +77744,7 @@ var Horizontalcard = function Horizontalcard(props) {
|
|
|
77640
77744
|
paddingBottom: sectionproperties.paddingBottom + 'px'
|
|
77641
77745
|
}
|
|
77642
77746
|
}, sectionproperties.image_show == 'show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
77643
|
-
"class": props.numberOfColsvertical == '1' ? 'col-lg-
|
|
77747
|
+
"class": props.numberOfColsvertical == '1' ? 'col-lg-3 col-md-3 col-sm-3 p-0 h-100' : 'col-lg-4 col-md-4 col-sm-4 p-0 h-100'
|
|
77644
77748
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
77645
77749
|
"class": card_cssstyles.imagecont + ' d-flex allcentered ',
|
|
77646
77750
|
onClick: function onClick() {
|
|
@@ -77687,7 +77791,13 @@ var Horizontalcard = function Horizontalcard(props) {
|
|
|
77687
77791
|
fontSize: sectionproperties.badge_fontsize + 'px'
|
|
77688
77792
|
}
|
|
77689
77793
|
}, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
77690
|
-
"class": sectionproperties.image_show == 'show' ? props.numberOfColsvertical == '1' ? 'col-lg-
|
|
77794
|
+
"class": sectionproperties.image_show == 'show' ? props.numberOfColsvertical == '1' ? 'col-lg-9 col-md-9 col-sm-9 pt-' : 'col-lg-8 col-md-8 col-sm-8 pt-' : 'col-lg-12 col-md-12 col-sm-12 pt-'
|
|
77795
|
+
// sectionproperties.image_show == 'show'
|
|
77796
|
+
// ? props.numberOfColsvertical == '1'
|
|
77797
|
+
// ? 'col-lg-10 col-md-9 col-sm-9 pt-2'
|
|
77798
|
+
// : 'col-lg-8 col-md-8 col-sm-8 pt-2'
|
|
77799
|
+
// : 'col-lg-12 col-md-12 col-sm-12 pt-2'
|
|
77800
|
+
,
|
|
77691
77801
|
style: {
|
|
77692
77802
|
paddingRight: langdetect == 'en' ? 0 : '',
|
|
77693
77803
|
paddingLeft: langdetect == 'ar' ? 0 : '',
|
|
@@ -77749,16 +77859,8 @@ var Horizontalcard = function Horizontalcard(props) {
|
|
|
77749
77859
|
style: {
|
|
77750
77860
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
77751
77861
|
}
|
|
77752
|
-
}, plainString(langdetect == 'en' ? item.description : item.description))),
|
|
77753
|
-
"class": "col-lg-
|
|
77754
|
-
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
77755
|
-
"class": card_cssstyles.cart_btn,
|
|
77756
|
-
onClick: function onClick() {
|
|
77757
|
-
setShowProductInfoModalContext(true);
|
|
77758
|
-
setProductIdProdutInfoModalContext(item.productid);
|
|
77759
|
-
}
|
|
77760
|
-
}, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic)), item.isproducttobesold == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
77761
|
-
"class": "col-lg-12 p-0 d-flex align-items-center"
|
|
77862
|
+
}, plainString(langdetect == 'en' ? item.description : item.description))), item.isproducttobesold == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
77863
|
+
"class": "col-lg-9 col-md-12 p-0 d-flex align-items-center"
|
|
77762
77864
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
77763
77865
|
"class": "row m-0 w-100"
|
|
77764
77866
|
}, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -77768,12 +77870,12 @@ var Horizontalcard = function Horizontalcard(props) {
|
|
|
77768
77870
|
}, langdetect == 'en' ? item.currencyname : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : item.currencyname)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
77769
77871
|
"class": "col-lg-12 p-0 text-start"
|
|
77770
77872
|
}, item.hassale == 1 && sectionproperties.prodsalePriceshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
77771
|
-
"class": card_cssstyles.productSalePricestyles + ' m-0 p-0
|
|
77873
|
+
"class": card_cssstyles.productSalePricestyles + ' m-0 p-0 ',
|
|
77772
77874
|
style: {
|
|
77773
77875
|
textDecoration: 'line-through'
|
|
77774
77876
|
}
|
|
77775
77877
|
}, langdetect == 'en' ? item.currencyname : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname), sectionproperties.showpill == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
77776
|
-
"class": 'allcentered',
|
|
77878
|
+
"class": 'allcentered mx-2',
|
|
77777
77879
|
style: {
|
|
77778
77880
|
width: sectionproperties.pillwidth + 'px',
|
|
77779
77881
|
height: sectionproperties.pillheight + 'px',
|
|
@@ -77794,15 +77896,78 @@ var Horizontalcard = function Horizontalcard(props) {
|
|
|
77794
77896
|
fontSize: sectionproperties.pillfontSize + 'px',
|
|
77795
77897
|
direction: 'ltr'
|
|
77796
77898
|
}
|
|
77797
|
-
}, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), ' ', langdetect == 'en' ? '' : item.currencyname))))), sectionproperties.cartBtnShow == 'Show' &&
|
|
77798
|
-
"class": "col-lg-12 p-0 d-flex align-items-center mt-2"
|
|
77799
|
-
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
77800
|
-
"class": card_cssstyles.cart_btn
|
|
77899
|
+
}, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), ' ', langdetect == 'en' ? '' : item.currencyname))))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
77900
|
+
"class": "col-lg-3 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-end mt-md-2"
|
|
77901
|
+
}, showquantity == false && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
77902
|
+
"class": card_cssstyles.cart_btn
|
|
77903
|
+
// onClick={() => {
|
|
77904
|
+
// setShowProductInfoModalContext(true);
|
|
77905
|
+
// setProductIdProdutInfoModalContext(item.productid);
|
|
77906
|
+
// }}
|
|
77907
|
+
,
|
|
77801
77908
|
onClick: function onClick() {
|
|
77802
|
-
|
|
77803
|
-
|
|
77909
|
+
if (showquantity == false) {
|
|
77910
|
+
setshowquantity(true);
|
|
77911
|
+
if (item.hasvariants == 0) {
|
|
77912
|
+
var tempitem = _objectSpread$n({}, item);
|
|
77913
|
+
tempitem.quantity = 1;
|
|
77914
|
+
setitem(_objectSpread$n({}, tempitem));
|
|
77915
|
+
addtocartfunc('add', tempitem.quantity);
|
|
77916
|
+
}
|
|
77917
|
+
} else {
|
|
77918
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
|
|
77919
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
77920
|
+
} else {
|
|
77921
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
77922
|
+
}
|
|
77923
|
+
}
|
|
77804
77924
|
}
|
|
77805
|
-
}, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic)
|
|
77925
|
+
}, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic), showquantity == true && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
77926
|
+
"class": "".concat(card_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center ',
|
|
77927
|
+
style: {
|
|
77928
|
+
direction: 'ltr'
|
|
77929
|
+
}
|
|
77930
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
77931
|
+
"class": "".concat(card_cssstyles.minus_quantitybtn_icon_container),
|
|
77932
|
+
onClick: function onClick() {
|
|
77933
|
+
if (item.hasvariants == 0) {
|
|
77934
|
+
var tempitem = _objectSpread$n({}, item);
|
|
77935
|
+
tempitem.quantity = parseInt(tempitem.quantity);
|
|
77936
|
+
tempitem.quantity = tempitem.quantity - 1;
|
|
77937
|
+
if (tempitem.quantity <= 0) {
|
|
77938
|
+
tempitem.quantity = 0;
|
|
77939
|
+
}
|
|
77940
|
+
setitem(_objectSpread$n({}, tempitem));
|
|
77941
|
+
addtocartfunc('add', tempitem.quantity);
|
|
77942
|
+
} else {
|
|
77943
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
77944
|
+
}
|
|
77945
|
+
},
|
|
77946
|
+
disabled: AddtoCartMutationContext.isLoading == true ? true : false
|
|
77947
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
77948
|
+
"class": "h-100 allcentered minusbtn"
|
|
77949
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiMinus.FiMinus, null))), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
77950
|
+
"class": "".concat(card_cssstyles.quantitybtn_text) + ' d-flex align-items-center justify-content-center '
|
|
77951
|
+
}, addtocartbuttonrender()), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
77952
|
+
"class": "".concat(card_cssstyles.add_quantitybtn_icon_container),
|
|
77953
|
+
onClick: function onClick() {
|
|
77954
|
+
if (item.hasvariants == 0) {
|
|
77955
|
+
var tempitem = _objectSpread$n({}, item);
|
|
77956
|
+
tempitem.quantity = parseInt(tempitem.quantity);
|
|
77957
|
+
tempitem.quantity = tempitem.quantity + 1;
|
|
77958
|
+
if (tempitem.quantity <= 0) {
|
|
77959
|
+
tempitem.quantity = 0;
|
|
77960
|
+
}
|
|
77961
|
+
setitem(_objectSpread$n({}, tempitem));
|
|
77962
|
+
addtocartfunc('add', tempitem.quantity);
|
|
77963
|
+
} else {
|
|
77964
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
77965
|
+
}
|
|
77966
|
+
},
|
|
77967
|
+
disabled: AddtoCartMutationContext.isLoading == true ? true : false
|
|
77968
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
77969
|
+
"class": "h-100 allcentered addbtn"
|
|
77970
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiPlus.FiPlus, null))))))))));
|
|
77806
77971
|
};
|
|
77807
77972
|
|
|
77808
77973
|
function ownKeys$m(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|