tabexseriescomponents 0.0.258 → 0.0.260
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 +133 -66
- package/dist/index.esm.js +133 -66
- package/dist/index.umd.js +133 -66
- package/package.json +1 -1
- package/src.zip +0 -0
package/dist/index.cjs.js
CHANGED
|
@@ -1627,12 +1627,7 @@ 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
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer37 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : (_fetchProductInfoQuer38 = _fetchProductInfoQuer37.data) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : (_fetchProductInfoQuer39 = _fetchProductInfoQuer38.productinfo) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.isproductforcedtocheckout) == 0) {
|
|
1632
|
-
addtocartfunc();
|
|
1633
|
-
} else {
|
|
1634
|
-
routingcountext(StaticPagesLinksContext.Checkout);
|
|
1635
|
-
}
|
|
1630
|
+
addtocartfunc();
|
|
1636
1631
|
} else {
|
|
1637
1632
|
NotificationManager.warning('', 'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
|
|
1638
1633
|
}
|
|
@@ -2238,16 +2233,16 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2238
2233
|
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer25 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : (_fetchProductInfoQuer26 = _fetchProductInfoQuer25.data) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : (_fetchProductInfoQuer27 = _fetchProductInfoQuer26.productinfo) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : (_fetchProductInfoQuer28 = _fetchProductInfoQuer27.serviceinfo) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : _fetchProductInfoQuer28.scheduletype) == 'days') {
|
|
2239
2234
|
if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
|
|
2240
2235
|
addtocartfunc();
|
|
2241
|
-
if (sectionproperties.cartbtntype == 'Goes to checkout') {
|
|
2242
|
-
|
|
2243
|
-
}
|
|
2236
|
+
// if (sectionproperties.cartbtntype == 'Goes to checkout') {
|
|
2237
|
+
// routingcountext(StaticPagesLinksContext.Checkout);
|
|
2238
|
+
// }
|
|
2244
2239
|
}
|
|
2245
2240
|
} else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer29 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : (_fetchProductInfoQuer30 = _fetchProductInfoQuer29.data) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : (_fetchProductInfoQuer31 = _fetchProductInfoQuer30.productinfo) === null || _fetchProductInfoQuer31 === void 0 ? void 0 : (_fetchProductInfoQuer32 = _fetchProductInfoQuer31.serviceinfo) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : _fetchProductInfoQuer32.scheduletype) == 'minutes') {
|
|
2246
2241
|
if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
|
|
2247
2242
|
addtocartfunc();
|
|
2248
|
-
if (sectionproperties.cartbtntype == 'Goes to checkout') {
|
|
2249
|
-
|
|
2250
|
-
}
|
|
2243
|
+
// if (sectionproperties.cartbtntype == 'Goes to checkout') {
|
|
2244
|
+
// routingcountext(StaticPagesLinksContext.Checkout);
|
|
2245
|
+
// }
|
|
2251
2246
|
}
|
|
2252
2247
|
} else {
|
|
2253
2248
|
NotificationManager.warning(lang.completerequiredfields, data.data.reason);
|
|
@@ -3260,7 +3255,7 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
3260
3255
|
function ownKeys$1Y(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3261
3256
|
function _objectSpread$1Y(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1Y(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1Y(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3262
3257
|
var Productinfo = function Productinfo(props) {
|
|
3263
|
-
var _css, _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4,
|
|
3258
|
+
var _css, _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer55, _fetchProductInfoQuer56, _fetchProductInfoQuer57, _fetchProductInfoQuer58, _fetchProductInfoQuer59, _fetchProductInfoQuer60, _fetchProductInfoQuer61, _fetchProductInfoQuer62, _fetchProductInfoQuer63, _fetchProductInfoQuer64, _fetchProductInfoQuer65, _fetchProductInfoQuer66, _fetchProductInfoQuer67, _fetchProductInfoQuer68, _fetchProductInfoQuer69, _fetchProductInfoQuer70, _fetchProductInfoQuer71, _fetchProductInfoQuer72, _fetchProductInfoQuer73, _fetchProductInfoQuer74, _fetchProductInfoQuer75, _fetchProductInfoQuer76, _fetchProductInfoQuer77, _fetchProductInfoQuer78, _fetchProductInfoQuer79, _fetchProductInfoQuer80, _fetchProductInfoQuer81, _fetchProductInfoQuer82, _fetchProductInfoQuer83, _fetchProductInfoQuer84, _fetchProductInfoQuer85, _fetchProductInfoQuer86, _fetchProductInfoQuer87, _fetchProductInfoQuer88, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _fetchProductInfoQuer91, _fetchProductInfoQuer92, _fetchProductInfoQuer93, _fetchProductInfoQuer94, _fetchProductInfoQuer95, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8;
|
|
3264
3259
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
3265
3260
|
var lang = props.actions.lang;
|
|
3266
3261
|
var langdetect = props.actions.langdetect;
|
|
@@ -3640,7 +3635,10 @@ var Productinfo = function Productinfo(props) {
|
|
|
3640
3635
|
NotificationManager.warning('', 'Please Choose Quantity');
|
|
3641
3636
|
}
|
|
3642
3637
|
if (runfunc == true) {
|
|
3643
|
-
|
|
3638
|
+
var _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13;
|
|
3639
|
+
var tempaddtocardpayloadobj = _objectSpread$1Y({}, addtocardpayloadobj);
|
|
3640
|
+
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : (_fetchProductInfoQuer12 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : (_fetchProductInfoQuer13 = _fetchProductInfoQuer12.productinfo) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : _fetchProductInfoQuer13.isproductforcedtocheckout;
|
|
3641
|
+
AddtoCartContext(tempaddtocardpayloadobj);
|
|
3644
3642
|
}
|
|
3645
3643
|
};
|
|
3646
3644
|
var returnpolicyobj = function returnpolicyobj(policytype) {
|
|
@@ -4010,24 +4008,24 @@ var Productinfo = function Productinfo(props) {
|
|
|
4010
4008
|
})
|
|
4011
4009
|
};
|
|
4012
4010
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
4013
|
-
var
|
|
4011
|
+
var _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26;
|
|
4014
4012
|
var price = 0;
|
|
4015
4013
|
var quantityconditions = [];
|
|
4016
4014
|
var quantity = 0;
|
|
4017
4015
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
4018
4016
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
4019
4017
|
}
|
|
4020
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4018
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : (_fetchProductInfoQuer15 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : (_fetchProductInfoQuer16 = _fetchProductInfoQuer15.productinfo) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.productquantityoptions) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer17 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : (_fetchProductInfoQuer18 = _fetchProductInfoQuer17.data) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : (_fetchProductInfoQuer19 = _fetchProductInfoQuer18.productinfo) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : _fetchProductInfoQuer19.productquantityoptions) != null && Array.isArray(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer20 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : (_fetchProductInfoQuer21 = _fetchProductInfoQuer20.data) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : (_fetchProductInfoQuer22 = _fetchProductInfoQuer21.productinfo) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : _fetchProductInfoQuer22.productquantityoptions) && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer23 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : (_fetchProductInfoQuer24 = _fetchProductInfoQuer23.data) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : (_fetchProductInfoQuer25 = _fetchProductInfoQuer24.productinfo) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : (_fetchProductInfoQuer26 = _fetchProductInfoQuer25.productquantityoptions) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : _fetchProductInfoQuer26.length) != 0) {
|
|
4021
4019
|
quantityconditions = fetchProductInfoQueryContext.data.data.productinfo.productquantityoptions;
|
|
4022
4020
|
}
|
|
4023
4021
|
if (type == 'defaultprice') {
|
|
4024
4022
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultprice;
|
|
4025
4023
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
4026
4024
|
if (variantindexcompleted != undefined) {
|
|
4027
|
-
var
|
|
4028
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4029
|
-
var
|
|
4030
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4025
|
+
var _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30;
|
|
4026
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer27 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : (_fetchProductInfoQuer28 = _fetchProductInfoQuer27.data) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : (_fetchProductInfoQuer29 = _fetchProductInfoQuer28.productinfo) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : (_fetchProductInfoQuer30 = _fetchProductInfoQuer29.variants[variantindexcompleted]) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : _fetchProductInfoQuer30.variantprice) != undefined) {
|
|
4027
|
+
var _fetchProductInfoQuer31, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34;
|
|
4028
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer31 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer31 === void 0 ? void 0 : (_fetchProductInfoQuer32 = _fetchProductInfoQuer31.data) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : (_fetchProductInfoQuer33 = _fetchProductInfoQuer32.productinfo) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : (_fetchProductInfoQuer34 = _fetchProductInfoQuer33.variants[variantindexcompleted]) === null || _fetchProductInfoQuer34 === void 0 ? void 0 : _fetchProductInfoQuer34.variantprice;
|
|
4031
4029
|
}
|
|
4032
4030
|
}
|
|
4033
4031
|
}
|
|
@@ -4035,10 +4033,10 @@ var Productinfo = function Productinfo(props) {
|
|
|
4035
4033
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultsaleprice;
|
|
4036
4034
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
4037
4035
|
if (variantindexcompleted != undefined) {
|
|
4038
|
-
var
|
|
4039
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4040
|
-
var
|
|
4041
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4036
|
+
var _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38;
|
|
4037
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer35 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : (_fetchProductInfoQuer36 = _fetchProductInfoQuer35.data) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : (_fetchProductInfoQuer37 = _fetchProductInfoQuer36.productinfo) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : (_fetchProductInfoQuer38 = _fetchProductInfoQuer37.variants[variantindexcompleted]) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : _fetchProductInfoQuer38.variantsaleprice) != undefined) {
|
|
4038
|
+
var _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42;
|
|
4039
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer39 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : (_fetchProductInfoQuer40 = _fetchProductInfoQuer39.data) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : (_fetchProductInfoQuer41 = _fetchProductInfoQuer40.productinfo) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : (_fetchProductInfoQuer42 = _fetchProductInfoQuer41.variants[variantindexcompleted]) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : _fetchProductInfoQuer42.variantsaleprice;
|
|
4042
4040
|
}
|
|
4043
4041
|
}
|
|
4044
4042
|
}
|
|
@@ -4064,7 +4062,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
4064
4062
|
return price;
|
|
4065
4063
|
};
|
|
4066
4064
|
var getQuantityCondition = function getQuantityCondition() {
|
|
4067
|
-
var
|
|
4065
|
+
var _fetchProductInfoQuer43, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46;
|
|
4068
4066
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4069
4067
|
"class": "col-lg-12 p-0",
|
|
4070
4068
|
style: {
|
|
@@ -4094,12 +4092,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
4094
4092
|
height: 1,
|
|
4095
4093
|
background: sectionproperties.pricelisttitlecolor
|
|
4096
4094
|
}
|
|
4097
|
-
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4098
|
-
var
|
|
4095
|
+
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer43 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer43 === void 0 ? void 0 : (_fetchProductInfoQuer44 = _fetchProductInfoQuer43.data) === null || _fetchProductInfoQuer44 === void 0 ? void 0 : (_fetchProductInfoQuer45 = _fetchProductInfoQuer44.productinfo) === null || _fetchProductInfoQuer45 === void 0 ? void 0 : (_fetchProductInfoQuer46 = _fetchProductInfoQuer45.productquantityoptions) === null || _fetchProductInfoQuer46 === void 0 ? void 0 : _fetchProductInfoQuer46.map(function (item, index) {
|
|
4096
|
+
var _fetchProductInfoQuer47, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50;
|
|
4099
4097
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4100
4098
|
className: "col-lg-12 p-0 w-100 d-flex align-items-center",
|
|
4101
4099
|
style: {
|
|
4102
|
-
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4100
|
+
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer47 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer47 === void 0 ? void 0 : (_fetchProductInfoQuer48 = _fetchProductInfoQuer47.data) === null || _fetchProductInfoQuer48 === void 0 ? void 0 : (_fetchProductInfoQuer49 = _fetchProductInfoQuer48.productinfo) === null || _fetchProductInfoQuer49 === void 0 ? void 0 : (_fetchProductInfoQuer50 = _fetchProductInfoQuer49.productquantityoptions) === null || _fetchProductInfoQuer50 === void 0 ? void 0 : _fetchProductInfoQuer50.length) - 1 != index ? '1rem' : 0
|
|
4103
4101
|
}
|
|
4104
4102
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4105
4103
|
"class": "d-flex align-items-center",
|
|
@@ -4133,7 +4131,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
4133
4131
|
})));
|
|
4134
4132
|
};
|
|
4135
4133
|
var StoreInfo = function StoreInfo() {
|
|
4136
|
-
var
|
|
4134
|
+
var _fetchProductInfoQuer51, _fetchProductInfoQuer52, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _authdetailsContext$i5, _authdetailsContext$i6;
|
|
4137
4135
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4138
4136
|
"class": "row m-0 w-100"
|
|
4139
4137
|
}, sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showstoreinfo1 == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -4176,7 +4174,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
4176
4174
|
style: {
|
|
4177
4175
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
4178
4176
|
}
|
|
4179
|
-
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4177
|
+
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer51 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer51 === void 0 ? void 0 : (_fetchProductInfoQuer52 = _fetchProductInfoQuer51.data) === null || _fetchProductInfoQuer52 === void 0 ? void 0 : (_fetchProductInfoQuer53 = _fetchProductInfoQuer52.productinfo) === null || _fetchProductInfoQuer53 === void 0 ? void 0 : (_fetchProductInfoQuer54 = _fetchProductInfoQuer53.productquantityoptions) === null || _fetchProductInfoQuer54 === void 0 ? void 0 : _fetchProductInfoQuer54.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4180
4178
|
"class": "col-lg-12 p-0 mb-4"
|
|
4181
4179
|
}, getQuantityCondition()), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4182
4180
|
className: productinfo_cssstyles.storeinfocontainer + ' mb-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
@@ -4329,7 +4327,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
4329
4327
|
onClick: function onClick() {
|
|
4330
4328
|
settabname('refundpolicytab');
|
|
4331
4329
|
}
|
|
4332
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4330
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer55 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer55 === void 0 ? void 0 : (_fetchProductInfoQuer56 = _fetchProductInfoQuer55.data) === null || _fetchProductInfoQuer56 === void 0 ? void 0 : (_fetchProductInfoQuer57 = _fetchProductInfoQuer56.productinfo) === null || _fetchProductInfoQuer57 === void 0 ? void 0 : _fetchProductInfoQuer57.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
4333
4331
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
4334
4332
|
onClick: function onClick() {
|
|
4335
4333
|
settabname('reviewstab');
|
|
@@ -4340,7 +4338,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
4340
4338
|
"class": "col-lg-12 pl-5 pr-5 p-md-0 w-100"
|
|
4341
4339
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4342
4340
|
"class": "row m-0 w-100"
|
|
4343
|
-
}, langdetect == 'en' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4341
|
+
}, langdetect == 'en' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer58 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer58 === void 0 ? void 0 : (_fetchProductInfoQuer59 = _fetchProductInfoQuer58.data) === null || _fetchProductInfoQuer59 === void 0 ? void 0 : (_fetchProductInfoQuer60 = _fetchProductInfoQuer59.productinfo) === null || _fetchProductInfoQuer60 === void 0 ? void 0 : _fetchProductInfoQuer60.description_en) != '' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer61 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer61 === void 0 ? void 0 : (_fetchProductInfoQuer62 = _fetchProductInfoQuer61.data) === null || _fetchProductInfoQuer62 === void 0 ? void 0 : (_fetchProductInfoQuer63 = _fetchProductInfoQuer62.productinfo) === null || _fetchProductInfoQuer63 === void 0 ? void 0 : _fetchProductInfoQuer63.description_en) != null && sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4344
4342
|
className: "col-lg-12 p-0 mb-4 d-flex justify-content-center"
|
|
4345
4343
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4346
4344
|
className: "row m-0 w-100 d-flex"
|
|
@@ -4352,16 +4350,16 @@ var Productinfo = function Productinfo(props) {
|
|
|
4352
4350
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
4353
4351
|
},
|
|
4354
4352
|
dangerouslySetInnerHTML: {
|
|
4355
|
-
__html: showMore == true ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4353
|
+
__html: showMore == true ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer64 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer64 === void 0 ? void 0 : (_fetchProductInfoQuer65 = _fetchProductInfoQuer64.data) === null || _fetchProductInfoQuer65 === void 0 ? void 0 : (_fetchProductInfoQuer66 = _fetchProductInfoQuer65.productinfo) === null || _fetchProductInfoQuer66 === void 0 ? void 0 : _fetchProductInfoQuer66.description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer67 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer67 === void 0 ? void 0 : (_fetchProductInfoQuer68 = _fetchProductInfoQuer67.data) === null || _fetchProductInfoQuer68 === void 0 ? void 0 : (_fetchProductInfoQuer69 = _fetchProductInfoQuer68.productinfo) === null || _fetchProductInfoQuer69 === void 0 ? void 0 : _fetchProductInfoQuer69.description_en.slice(0, 1000)
|
|
4356
4354
|
}
|
|
4357
4355
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4358
4356
|
"class": "col-lg-12 allcentered"
|
|
4359
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4357
|
+
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer70 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer70 === void 0 ? void 0 : (_fetchProductInfoQuer71 = _fetchProductInfoQuer70.data) === null || _fetchProductInfoQuer71 === void 0 ? void 0 : (_fetchProductInfoQuer72 = _fetchProductInfoQuer71.productinfo) === null || _fetchProductInfoQuer72 === void 0 ? void 0 : _fetchProductInfoQuer72.description_en.length) > 1000 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4360
4358
|
"class": "m-0 p-0 cursor-pointer text-grey font-weight-600",
|
|
4361
4359
|
onClick: function onClick() {
|
|
4362
4360
|
return setShowMore(!showMore);
|
|
4363
4361
|
}
|
|
4364
|
-
}, showMore ? lang.showless : lang.showmore)))), langdetect == 'ar' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4362
|
+
}, showMore ? lang.showless : lang.showmore)))), langdetect == 'ar' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer73 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer73 === void 0 ? void 0 : (_fetchProductInfoQuer74 = _fetchProductInfoQuer73.data) === null || _fetchProductInfoQuer74 === void 0 ? void 0 : (_fetchProductInfoQuer75 = _fetchProductInfoQuer74.productinfo) === null || _fetchProductInfoQuer75 === void 0 ? void 0 : _fetchProductInfoQuer75.description_ar) != '' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer76 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer76 === void 0 ? void 0 : (_fetchProductInfoQuer77 = _fetchProductInfoQuer76.data) === null || _fetchProductInfoQuer77 === void 0 ? void 0 : (_fetchProductInfoQuer78 = _fetchProductInfoQuer77.productinfo) === null || _fetchProductInfoQuer78 === void 0 ? void 0 : _fetchProductInfoQuer78.description_ar) != null && sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4365
4363
|
className: "col-lg-12 p-0 mb-4 d-flex justify-content-center"
|
|
4366
4364
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4367
4365
|
className: "row m-0 w-100 d-flex"
|
|
@@ -4373,16 +4371,16 @@ var Productinfo = function Productinfo(props) {
|
|
|
4373
4371
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
4374
4372
|
},
|
|
4375
4373
|
dangerouslySetInnerHTML: {
|
|
4376
|
-
__html: showMore == true ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4374
|
+
__html: showMore == true ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer79 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer79 === void 0 ? void 0 : (_fetchProductInfoQuer80 = _fetchProductInfoQuer79.data) === null || _fetchProductInfoQuer80 === void 0 ? void 0 : (_fetchProductInfoQuer81 = _fetchProductInfoQuer80.productinfo) === null || _fetchProductInfoQuer81 === void 0 ? void 0 : _fetchProductInfoQuer81.description_ar : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer82 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer82 === void 0 ? void 0 : (_fetchProductInfoQuer83 = _fetchProductInfoQuer82.data) === null || _fetchProductInfoQuer83 === void 0 ? void 0 : (_fetchProductInfoQuer84 = _fetchProductInfoQuer83.productinfo) === null || _fetchProductInfoQuer84 === void 0 ? void 0 : _fetchProductInfoQuer84.description_ar.slice(0, 1000)
|
|
4377
4375
|
}
|
|
4378
4376
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4379
4377
|
"class": "col-lg-12 allcentered"
|
|
4380
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4378
|
+
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer85 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer85 === void 0 ? void 0 : (_fetchProductInfoQuer86 = _fetchProductInfoQuer85.data) === null || _fetchProductInfoQuer86 === void 0 ? void 0 : (_fetchProductInfoQuer87 = _fetchProductInfoQuer86.productinfo) === null || _fetchProductInfoQuer87 === void 0 ? void 0 : _fetchProductInfoQuer87.description_ar.length) > 1000 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4381
4379
|
"class": "m-0 p-0 cursor-pointer text-grey font-weight-600 text-right",
|
|
4382
4380
|
onClick: function onClick() {
|
|
4383
4381
|
return setShowMore(!showMore);
|
|
4384
4382
|
}
|
|
4385
|
-
}, showMore ? lang.showless : lang.showmore)))), sectionproperties.showGallery == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4383
|
+
}, showMore ? lang.showless : lang.showmore)))), sectionproperties.showGallery == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer88 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer88 === void 0 ? void 0 : (_fetchProductInfoQuer89 = _fetchProductInfoQuer88.data) === null || _fetchProductInfoQuer89 === void 0 ? void 0 : (_fetchProductInfoQuer90 = _fetchProductInfoQuer89.productinfo) === null || _fetchProductInfoQuer90 === void 0 ? void 0 : (_fetchProductInfoQuer91 = _fetchProductInfoQuer90.productimages) === null || _fetchProductInfoQuer91 === void 0 ? void 0 : _fetchProductInfoQuer91.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4386
4384
|
"class": "col-lg-12 p-0"
|
|
4387
4385
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4388
4386
|
"class": "row m-0 w-100 allcentered pl-md-3 pr-md-3",
|
|
@@ -4390,7 +4388,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
4390
4388
|
paddingLeft: sectionproperties.galleryPaddingHorizontal + 'px',
|
|
4391
4389
|
paddingRight: sectionproperties.galleryPaddingHorizontal + 'px'
|
|
4392
4390
|
}
|
|
4393
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4391
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer92 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer92 === void 0 ? void 0 : (_fetchProductInfoQuer93 = _fetchProductInfoQuer92.data) === null || _fetchProductInfoQuer93 === void 0 ? void 0 : (_fetchProductInfoQuer94 = _fetchProductInfoQuer93.productinfo) === null || _fetchProductInfoQuer94 === void 0 ? void 0 : (_fetchProductInfoQuer95 = _fetchProductInfoQuer94.productimages) === null || _fetchProductInfoQuer95 === void 0 ? void 0 : _fetchProductInfoQuer95.map(function (item, index) {
|
|
4394
4392
|
if (index <= 6) {
|
|
4395
4393
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4396
4394
|
"class": ' col-md-4 col-sm-12 mb-3 col-lg-' + sectionproperties.galleryNoOfCols,
|
|
@@ -6787,7 +6785,7 @@ var Checkout = function Checkout(props) {
|
|
|
6787
6785
|
}
|
|
6788
6786
|
setFetchTabexStatesPayloadobjContext(_objectSpread$1S({}, tempFetchTabexStatesPayloadobjContext));
|
|
6789
6787
|
} else {
|
|
6790
|
-
NotificationManager.warning('', lang.pleaselogintocheckout);
|
|
6788
|
+
// NotificationManager.warning('', lang.pleaselogintocheckout);
|
|
6791
6789
|
routingcountext(StaticPagesLinksContext.Login);
|
|
6792
6790
|
}
|
|
6793
6791
|
}
|
|
@@ -7254,7 +7252,7 @@ var Checkout = function Checkout(props) {
|
|
|
7254
7252
|
width: "20px",
|
|
7255
7253
|
height: "20px",
|
|
7256
7254
|
duration: "1s"
|
|
7257
|
-
}), !AddOrderMutationContext.isLoading ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue69 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue69 === void 0 ? void 0 : (_fetchcustomercartQue70 = _fetchcustomercartQue69.data) === null || _fetchcustomercartQue70 === void 0 ? void 0 : _fetchcustomercartQue70.customercart.paymentmethod) == 'onlinepayment' ? lang.continuetopayment : authdetailsContext.loggedin ?
|
|
7255
|
+
}), !AddOrderMutationContext.isLoading ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue69 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue69 === void 0 ? void 0 : (_fetchcustomercartQue70 = _fetchcustomercartQue69.data) === null || _fetchcustomercartQue70 === void 0 ? void 0 : _fetchcustomercartQue70.customercart.paymentmethod) == 'onlinepayment' ? lang.continuetopayment : authdetailsContext.loggedin ? langdetect == 'en' ? sectionproperties.checkoutbtn_en2 : sectionproperties.checkoutbtn_ar2 : lang.confirmorder + ' ' + lang.asaguest : ''))))));
|
|
7258
7256
|
};
|
|
7259
7257
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7260
7258
|
className: 'row m-0 w-100 d-flex justify-content-center p-sm-0 '
|
|
@@ -7466,7 +7464,17 @@ var Checkout = function Checkout(props) {
|
|
|
7466
7464
|
})), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
|
|
7467
7465
|
options: fetchTabexCountriesQueryContext.data.data.countries,
|
|
7468
7466
|
getOptionLabel: function getOptionLabel(option) {
|
|
7469
|
-
|
|
7467
|
+
var crname = '';
|
|
7468
|
+
if (langdetect == 'en') {
|
|
7469
|
+
crname = option.name;
|
|
7470
|
+
} else if (langdetect == 'ar') {
|
|
7471
|
+
if (option.name_ar != null) {
|
|
7472
|
+
crname = option.name_ar;
|
|
7473
|
+
} else {
|
|
7474
|
+
crname = option.name;
|
|
7475
|
+
}
|
|
7476
|
+
}
|
|
7477
|
+
return crname;
|
|
7470
7478
|
},
|
|
7471
7479
|
getOptionValue: function getOptionValue(option) {
|
|
7472
7480
|
return option.id;
|
|
@@ -7497,9 +7505,22 @@ var Checkout = function Checkout(props) {
|
|
|
7497
7505
|
height: "20px",
|
|
7498
7506
|
duration: "1s"
|
|
7499
7507
|
})), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
|
|
7500
|
-
options: fetchTabexStatesQueryContext.data.data.states
|
|
7508
|
+
options: fetchTabexStatesQueryContext.data.data.states
|
|
7509
|
+
// getOptionLabel={(option) => option.name}
|
|
7510
|
+
// getOptionValue={(option) => option.id}
|
|
7511
|
+
,
|
|
7501
7512
|
getOptionLabel: function getOptionLabel(option) {
|
|
7502
|
-
|
|
7513
|
+
var crname = '';
|
|
7514
|
+
if (langdetect == 'en') {
|
|
7515
|
+
crname = option.name;
|
|
7516
|
+
} else if (langdetect == 'ar') {
|
|
7517
|
+
if (option.name_ar != null) {
|
|
7518
|
+
crname = option.name_ar;
|
|
7519
|
+
} else {
|
|
7520
|
+
crname = option.name;
|
|
7521
|
+
}
|
|
7522
|
+
}
|
|
7523
|
+
return crname;
|
|
7503
7524
|
},
|
|
7504
7525
|
getOptionValue: function getOptionValue(option) {
|
|
7505
7526
|
return option.id;
|
|
@@ -7537,7 +7558,17 @@ var Checkout = function Checkout(props) {
|
|
|
7537
7558
|
})), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
|
|
7538
7559
|
options: fetchTabexCitiesQueryContext.data.data.cities,
|
|
7539
7560
|
getOptionLabel: function getOptionLabel(option) {
|
|
7540
|
-
|
|
7561
|
+
var crname = '';
|
|
7562
|
+
if (langdetect == 'en') {
|
|
7563
|
+
crname = option.name;
|
|
7564
|
+
} else if (langdetect == 'ar') {
|
|
7565
|
+
if (option.name_ar != null) {
|
|
7566
|
+
crname = option.name_ar;
|
|
7567
|
+
} else {
|
|
7568
|
+
crname = option.name;
|
|
7569
|
+
}
|
|
7570
|
+
}
|
|
7571
|
+
return crname;
|
|
7541
7572
|
},
|
|
7542
7573
|
getOptionValue: function getOptionValue(option) {
|
|
7543
7574
|
return option.id;
|
|
@@ -11252,6 +11283,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
11252
11283
|
cardobj.productimages = arrayItem.productinfo.productimages;
|
|
11253
11284
|
cardobj.quantity = itemquantity;
|
|
11254
11285
|
cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
11286
|
+
cardobj.productquantity = arrayItem.productinfo.productquantity;
|
|
11255
11287
|
if (langdetect == 'en') {
|
|
11256
11288
|
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
|
|
11257
11289
|
} else {
|
|
@@ -18190,7 +18222,7 @@ var Simpleheader = function Simpleheader(props) {
|
|
|
18190
18222
|
function ownKeys$1A(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
18191
18223
|
function _objectSpread$1A(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1A(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1A(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
18192
18224
|
var Header8 = function Header8(props) {
|
|
18193
|
-
var _css, _authdetailsContext$i3, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i7, _authdetailsContext$i8, _authdetailsContext$i10, _authdetailsContext$i11, _authdetailsContext$c, _authdetailsContext$c2, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue9,
|
|
18225
|
+
var _css, _authdetailsContext$i3, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i7, _authdetailsContext$i8, _authdetailsContext$i10, _authdetailsContext$i11, _authdetailsContext$c, _authdetailsContext$c2, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue9, _authdetailsContext$i12, _authdetailsContext$i13, _authdetailsContext$i15, _authdetailsContext$i16, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14, _fetchcustomercartQue15;
|
|
18194
18226
|
var actions = props.actions;
|
|
18195
18227
|
props.actions.history;
|
|
18196
18228
|
var lang = props.actions.lang;
|
|
@@ -18247,17 +18279,21 @@ var Header8 = function Header8(props) {
|
|
|
18247
18279
|
setsectionproperties(_objectSpread$1A({}, secpropobj));
|
|
18248
18280
|
}, [StatePagePropertiesContext]);
|
|
18249
18281
|
var subtotalcart = function subtotalcart() {
|
|
18250
|
-
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3
|
|
18251
|
-
var totalprice = 0;
|
|
18252
|
-
|
|
18253
|
-
|
|
18254
|
-
|
|
18255
|
-
|
|
18256
|
-
|
|
18257
|
-
|
|
18258
|
-
|
|
18259
|
-
|
|
18260
|
-
|
|
18282
|
+
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3;
|
|
18283
|
+
var totalprice = parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 ? void 0 : (_fetchcustomercartQue2 = _fetchcustomercartQue.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : (_fetchcustomercartQue3 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue3 === void 0 ? void 0 : _fetchcustomercartQue3.totalprice).toFixed(2);
|
|
18284
|
+
// var totalpricee = 0;
|
|
18285
|
+
// fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.forEach(function (cartitem, cartindex) {
|
|
18286
|
+
// var finalprice = 0;
|
|
18287
|
+
// if (cartitem.productinfo.hassale == 0) {
|
|
18288
|
+
// finalprice = cartitem.productinfo.defaultprice;
|
|
18289
|
+
// } else if (cartitem.productinfo.hassale == 1) {
|
|
18290
|
+
// finalprice = cartitem.productinfo.defaultsaleprice;
|
|
18291
|
+
// }
|
|
18292
|
+
// var totalsingleitem = parseFloat(finalprice) * parseFloat(cartitem.quantity);
|
|
18293
|
+
// totalpricee = totalprice + totalsingleitem;
|
|
18294
|
+
// totalprice = parseFloat(totalpricee).toFixed(2);
|
|
18295
|
+
// // totalprice = parseFloat(finalprice * cartitem.quantity + totalprice).toFixed(2);
|
|
18296
|
+
// });
|
|
18261
18297
|
return totalprice;
|
|
18262
18298
|
};
|
|
18263
18299
|
React.useEffect(function () {
|
|
@@ -19013,7 +19049,7 @@ var Header8 = function Header8(props) {
|
|
|
19013
19049
|
"class": "".concat(header_cssstyles.cart_btn) + ' cursor-pointer d-flex align-items-center justify-content-center '
|
|
19014
19050
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19015
19051
|
"class": "".concat(header_cssstyles.badge_counter_header_notifications, " ").concat(header_cssstyles.cartbadge)
|
|
19016
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
19052
|
+
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue4 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue4 === void 0 ? void 0 : (_fetchcustomercartQue5 = _fetchcustomercartQue4.data) === null || _fetchcustomercartQue5 === void 0 ? void 0 : _fetchcustomercartQue5.customercart) != null ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue6 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue6 === void 0 ? void 0 : (_fetchcustomercartQue7 = _fetchcustomercartQue6.data) === null || _fetchcustomercartQue7 === void 0 ? void 0 : (_fetchcustomercartQue8 = _fetchcustomercartQue7.customercart) === null || _fetchcustomercartQue8 === void 0 ? void 0 : (_fetchcustomercartQue9 = _fetchcustomercartQue8.cartitems) === null || _fetchcustomercartQue9 === void 0 ? void 0 : _fetchcustomercartQue9.length : 0), /*#__PURE__*/React__default["default"].createElement("i", {
|
|
19017
19053
|
"class": "h-100 allcentered"
|
|
19018
19054
|
}, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingBag.FiShoppingBag, {
|
|
19019
19055
|
size: sectionproperties.cartBtn_iconFontSize
|
|
@@ -19173,7 +19209,7 @@ var Header8 = function Header8(props) {
|
|
|
19173
19209
|
"class": "".concat(header_cssstyles.cart_btn) + ' cursor-pointer d-flex align-items-center justify-content-end '
|
|
19174
19210
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19175
19211
|
"class": "".concat(header_cssstyles.badge_counter_header_notifications, " ").concat(header_cssstyles.cartbadge)
|
|
19176
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
19212
|
+
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue10 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue10 === void 0 ? void 0 : (_fetchcustomercartQue11 = _fetchcustomercartQue10.data) === null || _fetchcustomercartQue11 === void 0 ? void 0 : _fetchcustomercartQue11.customercart) != null ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue12 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue12 === void 0 ? void 0 : (_fetchcustomercartQue13 = _fetchcustomercartQue12.data) === null || _fetchcustomercartQue13 === void 0 ? void 0 : (_fetchcustomercartQue14 = _fetchcustomercartQue13.customercart) === null || _fetchcustomercartQue14 === void 0 ? void 0 : (_fetchcustomercartQue15 = _fetchcustomercartQue14.cartitems) === null || _fetchcustomercartQue15 === void 0 ? void 0 : _fetchcustomercartQue15.length : 0), /*#__PURE__*/React__default["default"].createElement("i", {
|
|
19177
19213
|
"class": "h-100 allcentered"
|
|
19178
19214
|
}, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingBag.FiShoppingBag, {
|
|
19179
19215
|
size: sectionproperties.cartBtn_iconFontSize
|
|
@@ -32976,6 +33012,7 @@ var Sixverticalcardssection = function Sixverticalcardssection(props) {
|
|
|
32976
33012
|
var setfetchingtype = props.actions.setfetchingtype;
|
|
32977
33013
|
var fetchingtype = props.actions.fetchingtype;
|
|
32978
33014
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
33015
|
+
var fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
|
|
32979
33016
|
var actions = props.actions;
|
|
32980
33017
|
var _useState = React.useState(''),
|
|
32981
33018
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
@@ -33140,6 +33177,11 @@ var Sixverticalcardssection = function Sixverticalcardssection(props) {
|
|
|
33140
33177
|
cardobj.productimages = arrayItem.productinfo.productimages;
|
|
33141
33178
|
cardobj.quantity = itemquantity;
|
|
33142
33179
|
cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
33180
|
+
if (langdetect == 'en') {
|
|
33181
|
+
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
|
|
33182
|
+
} else {
|
|
33183
|
+
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_ar;
|
|
33184
|
+
}
|
|
33143
33185
|
if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
|
|
33144
33186
|
favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
33145
33187
|
if (arrayItem.productinfo.productid == favitem) {
|
|
@@ -47967,8 +48009,8 @@ var Categorycard_with_twolinestransition = function Categorycard_with_twolinestr
|
|
|
47967
48009
|
}, langdetect == 'en' ? sectionproperties.slideshow_btn_text : sectionproperties.slideshow_btn_text_ar)))))));
|
|
47968
48010
|
};
|
|
47969
48011
|
|
|
47970
|
-
var css_248z$a = ".Categorcycard_fullimage-module_categorycardtext__WLY3- {\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n display: flex;\n justify-content: center;\n width: 100%;\n width: 100%;\n}";
|
|
47971
|
-
var cardstyles$5 = {"categorycardtext":"Categorcycard_fullimage-module_categorycardtext__WLY3-"};
|
|
48012
|
+
var css_248z$a = ".Categorcycard_fullimage-module_categorycardtext__WLY3- {\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n display: flex;\n justify-content: center;\n width: 100%;\n width: 100%;\n}\n.Categorcycard_fullimage-module_x__EZ-yx{\n color:red\n}";
|
|
48013
|
+
var cardstyles$5 = {"categorycardtext":"Categorcycard_fullimage-module_categorycardtext__WLY3-","x":"Categorcycard_fullimage-module_x__EZ-yx"};
|
|
47972
48014
|
styleInject(css_248z$a);
|
|
47973
48015
|
|
|
47974
48016
|
function ownKeys$p(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -53696,6 +53738,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
53696
53738
|
props.actions.routingcountext;
|
|
53697
53739
|
var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
|
|
53698
53740
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
53741
|
+
var NotificationManager = props.actions.NotificationManager;
|
|
53699
53742
|
var _useState5 = React.useState(props.cardinfoindexprops),
|
|
53700
53743
|
_useState6 = _slicedToArray__default["default"](_useState5, 2);
|
|
53701
53744
|
_useState6[0];
|
|
@@ -53737,7 +53780,8 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
53737
53780
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
53738
53781
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
53739
53782
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
53740
|
-
transition: '.3s'
|
|
53783
|
+
transition: '.3s',
|
|
53784
|
+
opacity: item.productquantity < 1 ? 0.4 : 1
|
|
53741
53785
|
}),
|
|
53742
53786
|
productNameStyles: glamor.css({
|
|
53743
53787
|
color: sectionproperties.prodNameColor,
|
|
@@ -53792,6 +53836,21 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
53792
53836
|
color: sectionproperties.cartBtnTextcoloronhover,
|
|
53793
53837
|
borderColor: sectionproperties.cartBtnTextcoloronhover
|
|
53794
53838
|
}
|
|
53839
|
+
}),
|
|
53840
|
+
outstockbadge: glamor.css({
|
|
53841
|
+
width: sectionproperties.outstock_width + 'px',
|
|
53842
|
+
height: sectionproperties.outstock_height + 'px',
|
|
53843
|
+
background: sectionproperties.outstock_bg,
|
|
53844
|
+
color: sectionproperties.outstock_color,
|
|
53845
|
+
fontSize: sectionproperties.outstock_fontSize + 'px',
|
|
53846
|
+
borderRadius: sectionproperties.outstock_borderradius + 'px',
|
|
53847
|
+
position: 'absolute',
|
|
53848
|
+
zIndex: 2,
|
|
53849
|
+
top: 0,
|
|
53850
|
+
bottom: 0,
|
|
53851
|
+
left: 0,
|
|
53852
|
+
right: 0,
|
|
53853
|
+
margin: 'auto'
|
|
53795
53854
|
})
|
|
53796
53855
|
};
|
|
53797
53856
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -53904,7 +53963,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
53904
53963
|
style: {
|
|
53905
53964
|
zIndex: 1
|
|
53906
53965
|
}
|
|
53907
|
-
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
53966
|
+
}, item.image != '' && /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
53908
53967
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
53909
53968
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
53910
53969
|
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
|
|
@@ -53914,7 +53973,11 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
53914
53973
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
53915
53974
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
53916
53975
|
}
|
|
53917
|
-
}))
|
|
53976
|
+
})), item.productquantity < 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53977
|
+
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
53978
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
53979
|
+
"class": "m-0 p-0"
|
|
53980
|
+
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53918
53981
|
"class": "row m-0 w-100 "
|
|
53919
53982
|
}, sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53920
53983
|
"class": "col-lg-12 p-0"
|
|
@@ -53943,8 +54006,12 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
53943
54006
|
}, langdetect == 'en' ? 'EGP' : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م'))))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
53944
54007
|
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
|
|
53945
54008
|
onClick: function onClick() {
|
|
53946
|
-
|
|
53947
|
-
|
|
54009
|
+
if (item.productquantity > 0) {
|
|
54010
|
+
setShowProductInfoModalContext(true);
|
|
54011
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
54012
|
+
} else {
|
|
54013
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
54014
|
+
}
|
|
53948
54015
|
}
|
|
53949
54016
|
}, sectionproperties.cartBtn_iconFontSize != 0 && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
53950
54017
|
"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'
|