tabexseriescomponents 0.0.258 → 0.0.259
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 +70 -15
- package/dist/index.esm.js +70 -15
- package/dist/index.umd.js +70 -15
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1627,12 +1627,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1627
1627
|
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
1628
1628
|
onClick: function onClick() {
|
|
1629
1629
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
addtocartfunc();
|
|
1633
|
-
} else {
|
|
1634
|
-
routingcountext(StaticPagesLinksContext.Checkout);
|
|
1635
|
-
}
|
|
1630
|
+
// if (fetchProductInfoQueryContext?.data?.data?.productinfo?.isproductforcedtocheckout == 0) {
|
|
1631
|
+
addtocartfunc();
|
|
1636
1632
|
} else {
|
|
1637
1633
|
NotificationManager.warning('', 'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
|
|
1638
1634
|
}
|
|
@@ -7466,7 +7462,17 @@ var Checkout = function Checkout(props) {
|
|
|
7466
7462
|
})), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
|
|
7467
7463
|
options: fetchTabexCountriesQueryContext.data.data.countries,
|
|
7468
7464
|
getOptionLabel: function getOptionLabel(option) {
|
|
7469
|
-
|
|
7465
|
+
var crname = '';
|
|
7466
|
+
if (langdetect == 'en') {
|
|
7467
|
+
crname = option.name;
|
|
7468
|
+
} else if (langdetect == 'ar') {
|
|
7469
|
+
if (option.name_ar != null) {
|
|
7470
|
+
crname = option.name_ar;
|
|
7471
|
+
} else {
|
|
7472
|
+
crname = option.name;
|
|
7473
|
+
}
|
|
7474
|
+
}
|
|
7475
|
+
return crname;
|
|
7470
7476
|
},
|
|
7471
7477
|
getOptionValue: function getOptionValue(option) {
|
|
7472
7478
|
return option.id;
|
|
@@ -7497,9 +7503,22 @@ var Checkout = function Checkout(props) {
|
|
|
7497
7503
|
height: "20px",
|
|
7498
7504
|
duration: "1s"
|
|
7499
7505
|
})), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
|
|
7500
|
-
options: fetchTabexStatesQueryContext.data.data.states
|
|
7506
|
+
options: fetchTabexStatesQueryContext.data.data.states
|
|
7507
|
+
// getOptionLabel={(option) => option.name}
|
|
7508
|
+
// getOptionValue={(option) => option.id}
|
|
7509
|
+
,
|
|
7501
7510
|
getOptionLabel: function getOptionLabel(option) {
|
|
7502
|
-
|
|
7511
|
+
var crname = '';
|
|
7512
|
+
if (langdetect == 'en') {
|
|
7513
|
+
crname = option.name;
|
|
7514
|
+
} else if (langdetect == 'ar') {
|
|
7515
|
+
if (option.name_ar != null) {
|
|
7516
|
+
crname = option.name_ar;
|
|
7517
|
+
} else {
|
|
7518
|
+
crname = option.name;
|
|
7519
|
+
}
|
|
7520
|
+
}
|
|
7521
|
+
return crname;
|
|
7503
7522
|
},
|
|
7504
7523
|
getOptionValue: function getOptionValue(option) {
|
|
7505
7524
|
return option.id;
|
|
@@ -7537,7 +7556,17 @@ var Checkout = function Checkout(props) {
|
|
|
7537
7556
|
})), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
|
|
7538
7557
|
options: fetchTabexCitiesQueryContext.data.data.cities,
|
|
7539
7558
|
getOptionLabel: function getOptionLabel(option) {
|
|
7540
|
-
|
|
7559
|
+
var crname = '';
|
|
7560
|
+
if (langdetect == 'en') {
|
|
7561
|
+
crname = option.name;
|
|
7562
|
+
} else if (langdetect == 'ar') {
|
|
7563
|
+
if (option.name_ar != null) {
|
|
7564
|
+
crname = option.name_ar;
|
|
7565
|
+
} else {
|
|
7566
|
+
crname = option.name;
|
|
7567
|
+
}
|
|
7568
|
+
}
|
|
7569
|
+
return crname;
|
|
7541
7570
|
},
|
|
7542
7571
|
getOptionValue: function getOptionValue(option) {
|
|
7543
7572
|
return option.id;
|
|
@@ -11252,6 +11281,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
11252
11281
|
cardobj.productimages = arrayItem.productinfo.productimages;
|
|
11253
11282
|
cardobj.quantity = itemquantity;
|
|
11254
11283
|
cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
11284
|
+
cardobj.productquantity = arrayItem.productinfo.productquantity;
|
|
11255
11285
|
if (langdetect == 'en') {
|
|
11256
11286
|
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
|
|
11257
11287
|
} else {
|
|
@@ -53696,6 +53726,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
53696
53726
|
props.actions.routingcountext;
|
|
53697
53727
|
var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
|
|
53698
53728
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
53729
|
+
var NotificationManager = props.actions.NotificationManager;
|
|
53699
53730
|
var _useState5 = React.useState(props.cardinfoindexprops),
|
|
53700
53731
|
_useState6 = _slicedToArray__default["default"](_useState5, 2);
|
|
53701
53732
|
_useState6[0];
|
|
@@ -53737,7 +53768,8 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
53737
53768
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
53738
53769
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
53739
53770
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
53740
|
-
transition: '.3s'
|
|
53771
|
+
transition: '.3s',
|
|
53772
|
+
opacity: item.productquantity < 1 ? 0.4 : 1
|
|
53741
53773
|
}),
|
|
53742
53774
|
productNameStyles: glamor.css({
|
|
53743
53775
|
color: sectionproperties.prodNameColor,
|
|
@@ -53792,6 +53824,21 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
53792
53824
|
color: sectionproperties.cartBtnTextcoloronhover,
|
|
53793
53825
|
borderColor: sectionproperties.cartBtnTextcoloronhover
|
|
53794
53826
|
}
|
|
53827
|
+
}),
|
|
53828
|
+
outstockbadge: glamor.css({
|
|
53829
|
+
width: sectionproperties.outstock_width + 'px',
|
|
53830
|
+
height: sectionproperties.outstock_height + 'px',
|
|
53831
|
+
background: sectionproperties.outstock_bg,
|
|
53832
|
+
color: sectionproperties.outstock_color,
|
|
53833
|
+
fontSize: sectionproperties.outstock_fontSize + 'px',
|
|
53834
|
+
borderRadius: sectionproperties.outstock_borderradius + 'px',
|
|
53835
|
+
position: 'absolute',
|
|
53836
|
+
zIndex: 2,
|
|
53837
|
+
top: 0,
|
|
53838
|
+
bottom: 0,
|
|
53839
|
+
left: 0,
|
|
53840
|
+
right: 0,
|
|
53841
|
+
margin: 'auto'
|
|
53795
53842
|
})
|
|
53796
53843
|
};
|
|
53797
53844
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -53904,7 +53951,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
53904
53951
|
style: {
|
|
53905
53952
|
zIndex: 1
|
|
53906
53953
|
}
|
|
53907
|
-
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
53954
|
+
}, item.image != '' && /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
53908
53955
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
53909
53956
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
53910
53957
|
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
|
|
@@ -53914,7 +53961,11 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
53914
53961
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
53915
53962
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
53916
53963
|
}
|
|
53917
|
-
}))
|
|
53964
|
+
})), item.productquantity < 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53965
|
+
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
53966
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
53967
|
+
"class": "m-0 p-0"
|
|
53968
|
+
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53918
53969
|
"class": "row m-0 w-100 "
|
|
53919
53970
|
}, sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53920
53971
|
"class": "col-lg-12 p-0"
|
|
@@ -53943,8 +53994,12 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
53943
53994
|
}, langdetect == 'en' ? 'EGP' : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م'))))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
53944
53995
|
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
|
|
53945
53996
|
onClick: function onClick() {
|
|
53946
|
-
|
|
53947
|
-
|
|
53997
|
+
if (item.productquantity > 0) {
|
|
53998
|
+
setShowProductInfoModalContext(true);
|
|
53999
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
54000
|
+
} else {
|
|
54001
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
54002
|
+
}
|
|
53948
54003
|
}
|
|
53949
54004
|
}, sectionproperties.cartBtn_iconFontSize != 0 && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
53950
54005
|
"class": langdetect == 'en' ? 'h-100 mr-2 d-flex align-items-center justify-content-center' : 'h-100 ml-2 d-flex align-items-center justify-content-center'
|
package/dist/index.esm.js
CHANGED
|
@@ -1580,12 +1580,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1580
1580
|
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
1581
1581
|
onClick: function onClick() {
|
|
1582
1582
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
addtocartfunc();
|
|
1586
|
-
} else {
|
|
1587
|
-
routingcountext(StaticPagesLinksContext.Checkout);
|
|
1588
|
-
}
|
|
1583
|
+
// if (fetchProductInfoQueryContext?.data?.data?.productinfo?.isproductforcedtocheckout == 0) {
|
|
1584
|
+
addtocartfunc();
|
|
1589
1585
|
} else {
|
|
1590
1586
|
NotificationManager.warning('', 'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
|
|
1591
1587
|
}
|
|
@@ -7419,7 +7415,17 @@ var Checkout = function Checkout(props) {
|
|
|
7419
7415
|
})), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select$1, {
|
|
7420
7416
|
options: fetchTabexCountriesQueryContext.data.data.countries,
|
|
7421
7417
|
getOptionLabel: function getOptionLabel(option) {
|
|
7422
|
-
|
|
7418
|
+
var crname = '';
|
|
7419
|
+
if (langdetect == 'en') {
|
|
7420
|
+
crname = option.name;
|
|
7421
|
+
} else if (langdetect == 'ar') {
|
|
7422
|
+
if (option.name_ar != null) {
|
|
7423
|
+
crname = option.name_ar;
|
|
7424
|
+
} else {
|
|
7425
|
+
crname = option.name;
|
|
7426
|
+
}
|
|
7427
|
+
}
|
|
7428
|
+
return crname;
|
|
7423
7429
|
},
|
|
7424
7430
|
getOptionValue: function getOptionValue(option) {
|
|
7425
7431
|
return option.id;
|
|
@@ -7450,9 +7456,22 @@ var Checkout = function Checkout(props) {
|
|
|
7450
7456
|
height: "20px",
|
|
7451
7457
|
duration: "1s"
|
|
7452
7458
|
})), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select$1, {
|
|
7453
|
-
options: fetchTabexStatesQueryContext.data.data.states
|
|
7459
|
+
options: fetchTabexStatesQueryContext.data.data.states
|
|
7460
|
+
// getOptionLabel={(option) => option.name}
|
|
7461
|
+
// getOptionValue={(option) => option.id}
|
|
7462
|
+
,
|
|
7454
7463
|
getOptionLabel: function getOptionLabel(option) {
|
|
7455
|
-
|
|
7464
|
+
var crname = '';
|
|
7465
|
+
if (langdetect == 'en') {
|
|
7466
|
+
crname = option.name;
|
|
7467
|
+
} else if (langdetect == 'ar') {
|
|
7468
|
+
if (option.name_ar != null) {
|
|
7469
|
+
crname = option.name_ar;
|
|
7470
|
+
} else {
|
|
7471
|
+
crname = option.name;
|
|
7472
|
+
}
|
|
7473
|
+
}
|
|
7474
|
+
return crname;
|
|
7456
7475
|
},
|
|
7457
7476
|
getOptionValue: function getOptionValue(option) {
|
|
7458
7477
|
return option.id;
|
|
@@ -7490,7 +7509,17 @@ var Checkout = function Checkout(props) {
|
|
|
7490
7509
|
})), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select$1, {
|
|
7491
7510
|
options: fetchTabexCitiesQueryContext.data.data.cities,
|
|
7492
7511
|
getOptionLabel: function getOptionLabel(option) {
|
|
7493
|
-
|
|
7512
|
+
var crname = '';
|
|
7513
|
+
if (langdetect == 'en') {
|
|
7514
|
+
crname = option.name;
|
|
7515
|
+
} else if (langdetect == 'ar') {
|
|
7516
|
+
if (option.name_ar != null) {
|
|
7517
|
+
crname = option.name_ar;
|
|
7518
|
+
} else {
|
|
7519
|
+
crname = option.name;
|
|
7520
|
+
}
|
|
7521
|
+
}
|
|
7522
|
+
return crname;
|
|
7494
7523
|
},
|
|
7495
7524
|
getOptionValue: function getOptionValue(option) {
|
|
7496
7525
|
return option.id;
|
|
@@ -11205,6 +11234,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
11205
11234
|
cardobj.productimages = arrayItem.productinfo.productimages;
|
|
11206
11235
|
cardobj.quantity = itemquantity;
|
|
11207
11236
|
cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
11237
|
+
cardobj.productquantity = arrayItem.productinfo.productquantity;
|
|
11208
11238
|
if (langdetect == 'en') {
|
|
11209
11239
|
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
|
|
11210
11240
|
} else {
|
|
@@ -53649,6 +53679,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
53649
53679
|
props.actions.routingcountext;
|
|
53650
53680
|
var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
|
|
53651
53681
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
53682
|
+
var NotificationManager = props.actions.NotificationManager;
|
|
53652
53683
|
var _useState5 = useState(props.cardinfoindexprops),
|
|
53653
53684
|
_useState6 = _slicedToArray(_useState5, 2);
|
|
53654
53685
|
_useState6[0];
|
|
@@ -53690,7 +53721,8 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
53690
53721
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
53691
53722
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
53692
53723
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
53693
|
-
transition: '.3s'
|
|
53724
|
+
transition: '.3s',
|
|
53725
|
+
opacity: item.productquantity < 1 ? 0.4 : 1
|
|
53694
53726
|
}),
|
|
53695
53727
|
productNameStyles: css({
|
|
53696
53728
|
color: sectionproperties.prodNameColor,
|
|
@@ -53745,6 +53777,21 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
53745
53777
|
color: sectionproperties.cartBtnTextcoloronhover,
|
|
53746
53778
|
borderColor: sectionproperties.cartBtnTextcoloronhover
|
|
53747
53779
|
}
|
|
53780
|
+
}),
|
|
53781
|
+
outstockbadge: css({
|
|
53782
|
+
width: sectionproperties.outstock_width + 'px',
|
|
53783
|
+
height: sectionproperties.outstock_height + 'px',
|
|
53784
|
+
background: sectionproperties.outstock_bg,
|
|
53785
|
+
color: sectionproperties.outstock_color,
|
|
53786
|
+
fontSize: sectionproperties.outstock_fontSize + 'px',
|
|
53787
|
+
borderRadius: sectionproperties.outstock_borderradius + 'px',
|
|
53788
|
+
position: 'absolute',
|
|
53789
|
+
zIndex: 2,
|
|
53790
|
+
top: 0,
|
|
53791
|
+
bottom: 0,
|
|
53792
|
+
left: 0,
|
|
53793
|
+
right: 0,
|
|
53794
|
+
margin: 'auto'
|
|
53748
53795
|
})
|
|
53749
53796
|
};
|
|
53750
53797
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -53857,7 +53904,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
53857
53904
|
style: {
|
|
53858
53905
|
zIndex: 1
|
|
53859
53906
|
}
|
|
53860
|
-
}, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
53907
|
+
}, item.image != '' && /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
53861
53908
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
53862
53909
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
53863
53910
|
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
|
|
@@ -53867,7 +53914,11 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
53867
53914
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
53868
53915
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
53869
53916
|
}
|
|
53870
|
-
}))
|
|
53917
|
+
})), item.productquantity < 1 && /*#__PURE__*/React.createElement("div", {
|
|
53918
|
+
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
53919
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
53920
|
+
"class": "m-0 p-0"
|
|
53921
|
+
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
53871
53922
|
"class": "row m-0 w-100 "
|
|
53872
53923
|
}, sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
53873
53924
|
"class": "col-lg-12 p-0"
|
|
@@ -53896,8 +53947,12 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
53896
53947
|
}, langdetect == 'en' ? 'EGP' : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م'))))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React.createElement("p", {
|
|
53897
53948
|
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
|
|
53898
53949
|
onClick: function onClick() {
|
|
53899
|
-
|
|
53900
|
-
|
|
53950
|
+
if (item.productquantity > 0) {
|
|
53951
|
+
setShowProductInfoModalContext(true);
|
|
53952
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
53953
|
+
} else {
|
|
53954
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
53955
|
+
}
|
|
53901
53956
|
}
|
|
53902
53957
|
}, sectionproperties.cartBtn_iconFontSize != 0 && /*#__PURE__*/React.createElement("i", {
|
|
53903
53958
|
"class": langdetect == 'en' ? 'h-100 mr-2 d-flex align-items-center justify-content-center' : 'h-100 ml-2 d-flex align-items-center justify-content-center'
|
package/dist/index.umd.js
CHANGED
|
@@ -1479,12 +1479,8 @@
|
|
|
1479
1479
|
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
1480
1480
|
onClick: function onClick() {
|
|
1481
1481
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
addtocartfunc();
|
|
1485
|
-
} else {
|
|
1486
|
-
routingcountext(StaticPagesLinksContext.Checkout);
|
|
1487
|
-
}
|
|
1482
|
+
// if (fetchProductInfoQueryContext?.data?.data?.productinfo?.isproductforcedtocheckout == 0) {
|
|
1483
|
+
addtocartfunc();
|
|
1488
1484
|
} else {
|
|
1489
1485
|
NotificationManager.warning('', 'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
|
|
1490
1486
|
}
|
|
@@ -7318,7 +7314,17 @@
|
|
|
7318
7314
|
})), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
|
|
7319
7315
|
options: fetchTabexCountriesQueryContext.data.data.countries,
|
|
7320
7316
|
getOptionLabel: function getOptionLabel(option) {
|
|
7321
|
-
|
|
7317
|
+
var crname = '';
|
|
7318
|
+
if (langdetect == 'en') {
|
|
7319
|
+
crname = option.name;
|
|
7320
|
+
} else if (langdetect == 'ar') {
|
|
7321
|
+
if (option.name_ar != null) {
|
|
7322
|
+
crname = option.name_ar;
|
|
7323
|
+
} else {
|
|
7324
|
+
crname = option.name;
|
|
7325
|
+
}
|
|
7326
|
+
}
|
|
7327
|
+
return crname;
|
|
7322
7328
|
},
|
|
7323
7329
|
getOptionValue: function getOptionValue(option) {
|
|
7324
7330
|
return option.id;
|
|
@@ -7349,9 +7355,22 @@
|
|
|
7349
7355
|
height: "20px",
|
|
7350
7356
|
duration: "1s"
|
|
7351
7357
|
})), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
|
|
7352
|
-
options: fetchTabexStatesQueryContext.data.data.states
|
|
7358
|
+
options: fetchTabexStatesQueryContext.data.data.states
|
|
7359
|
+
// getOptionLabel={(option) => option.name}
|
|
7360
|
+
// getOptionValue={(option) => option.id}
|
|
7361
|
+
,
|
|
7353
7362
|
getOptionLabel: function getOptionLabel(option) {
|
|
7354
|
-
|
|
7363
|
+
var crname = '';
|
|
7364
|
+
if (langdetect == 'en') {
|
|
7365
|
+
crname = option.name;
|
|
7366
|
+
} else if (langdetect == 'ar') {
|
|
7367
|
+
if (option.name_ar != null) {
|
|
7368
|
+
crname = option.name_ar;
|
|
7369
|
+
} else {
|
|
7370
|
+
crname = option.name;
|
|
7371
|
+
}
|
|
7372
|
+
}
|
|
7373
|
+
return crname;
|
|
7355
7374
|
},
|
|
7356
7375
|
getOptionValue: function getOptionValue(option) {
|
|
7357
7376
|
return option.id;
|
|
@@ -7389,7 +7408,17 @@
|
|
|
7389
7408
|
})), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
|
|
7390
7409
|
options: fetchTabexCitiesQueryContext.data.data.cities,
|
|
7391
7410
|
getOptionLabel: function getOptionLabel(option) {
|
|
7392
|
-
|
|
7411
|
+
var crname = '';
|
|
7412
|
+
if (langdetect == 'en') {
|
|
7413
|
+
crname = option.name;
|
|
7414
|
+
} else if (langdetect == 'ar') {
|
|
7415
|
+
if (option.name_ar != null) {
|
|
7416
|
+
crname = option.name_ar;
|
|
7417
|
+
} else {
|
|
7418
|
+
crname = option.name;
|
|
7419
|
+
}
|
|
7420
|
+
}
|
|
7421
|
+
return crname;
|
|
7393
7422
|
},
|
|
7394
7423
|
getOptionValue: function getOptionValue(option) {
|
|
7395
7424
|
return option.id;
|
|
@@ -11104,6 +11133,7 @@
|
|
|
11104
11133
|
cardobj.productimages = arrayItem.productinfo.productimages;
|
|
11105
11134
|
cardobj.quantity = itemquantity;
|
|
11106
11135
|
cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
11136
|
+
cardobj.productquantity = arrayItem.productinfo.productquantity;
|
|
11107
11137
|
if (langdetect == 'en') {
|
|
11108
11138
|
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
|
|
11109
11139
|
} else {
|
|
@@ -53548,6 +53578,7 @@
|
|
|
53548
53578
|
props.actions.routingcountext;
|
|
53549
53579
|
var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
|
|
53550
53580
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
53581
|
+
var NotificationManager = props.actions.NotificationManager;
|
|
53551
53582
|
var _useState5 = React.useState(props.cardinfoindexprops),
|
|
53552
53583
|
_useState6 = _slicedToArray__default["default"](_useState5, 2);
|
|
53553
53584
|
_useState6[0];
|
|
@@ -53589,7 +53620,8 @@
|
|
|
53589
53620
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
53590
53621
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
53591
53622
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
53592
|
-
transition: '.3s'
|
|
53623
|
+
transition: '.3s',
|
|
53624
|
+
opacity: item.productquantity < 1 ? 0.4 : 1
|
|
53593
53625
|
}),
|
|
53594
53626
|
productNameStyles: glamor.css({
|
|
53595
53627
|
color: sectionproperties.prodNameColor,
|
|
@@ -53644,6 +53676,21 @@
|
|
|
53644
53676
|
color: sectionproperties.cartBtnTextcoloronhover,
|
|
53645
53677
|
borderColor: sectionproperties.cartBtnTextcoloronhover
|
|
53646
53678
|
}
|
|
53679
|
+
}),
|
|
53680
|
+
outstockbadge: glamor.css({
|
|
53681
|
+
width: sectionproperties.outstock_width + 'px',
|
|
53682
|
+
height: sectionproperties.outstock_height + 'px',
|
|
53683
|
+
background: sectionproperties.outstock_bg,
|
|
53684
|
+
color: sectionproperties.outstock_color,
|
|
53685
|
+
fontSize: sectionproperties.outstock_fontSize + 'px',
|
|
53686
|
+
borderRadius: sectionproperties.outstock_borderradius + 'px',
|
|
53687
|
+
position: 'absolute',
|
|
53688
|
+
zIndex: 2,
|
|
53689
|
+
top: 0,
|
|
53690
|
+
bottom: 0,
|
|
53691
|
+
left: 0,
|
|
53692
|
+
right: 0,
|
|
53693
|
+
margin: 'auto'
|
|
53647
53694
|
})
|
|
53648
53695
|
};
|
|
53649
53696
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -53756,7 +53803,7 @@
|
|
|
53756
53803
|
style: {
|
|
53757
53804
|
zIndex: 1
|
|
53758
53805
|
}
|
|
53759
|
-
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
53806
|
+
}, item.image != '' && /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
53760
53807
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
53761
53808
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
53762
53809
|
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
|
|
@@ -53766,7 +53813,11 @@
|
|
|
53766
53813
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
53767
53814
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
53768
53815
|
}
|
|
53769
|
-
}))
|
|
53816
|
+
})), item.productquantity < 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53817
|
+
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
53818
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
53819
|
+
"class": "m-0 p-0"
|
|
53820
|
+
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53770
53821
|
"class": "row m-0 w-100 "
|
|
53771
53822
|
}, sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53772
53823
|
"class": "col-lg-12 p-0"
|
|
@@ -53795,8 +53846,12 @@
|
|
|
53795
53846
|
}, langdetect == 'en' ? 'EGP' : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م'))))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
53796
53847
|
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
|
|
53797
53848
|
onClick: function onClick() {
|
|
53798
|
-
|
|
53799
|
-
|
|
53849
|
+
if (item.productquantity > 0) {
|
|
53850
|
+
setShowProductInfoModalContext(true);
|
|
53851
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
53852
|
+
} else {
|
|
53853
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
53854
|
+
}
|
|
53800
53855
|
}
|
|
53801
53856
|
}, sectionproperties.cartBtn_iconFontSize != 0 && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
53802
53857
|
"class": langdetect == 'en' ? 'h-100 mr-2 d-flex align-items-center justify-content-center' : 'h-100 ml-2 d-flex align-items-center justify-content-center'
|