tabexseriescomponents 0.0.826 → 0.0.827
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 -65
- package/dist/index.esm.js +70 -65
- package/dist/index.umd.js +70 -65
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -6488,7 +6488,7 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
6488
6488
|
function ownKeys$2u(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; }
|
|
6489
6489
|
function _objectSpread$2u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2u(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6490
6490
|
var Productinfo = function Productinfo(props) {
|
|
6491
|
-
var _css, _ref, _ref2, _ref3,
|
|
6491
|
+
var _css, _ref, _ref2, _ref3, _fetchProductInfoQuer47, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer50, _fetchProductInfoQuer51, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer52, _fetchProductInfoQuer53, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
|
|
6492
6492
|
var _useState = React.useState({}),
|
|
6493
6493
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
6494
6494
|
ProductInfoObj = _useState2[0],
|
|
@@ -6639,7 +6639,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6639
6639
|
};
|
|
6640
6640
|
React.useEffect(function () {
|
|
6641
6641
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
6642
|
-
var _fetchProductInfoQuer, _fetchProductInfoQuer2;
|
|
6642
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3;
|
|
6643
6643
|
var secpropobj = {};
|
|
6644
6644
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
6645
6645
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
@@ -6649,19 +6649,22 @@ var Productinfo = function Productinfo(props) {
|
|
|
6649
6649
|
settabname('descriptiontab');
|
|
6650
6650
|
if (sectionproperties.prodCatShow == 'Hide' || sectionproperties.descriptionposition != 'Bottom' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.product_videos) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.length) == 0) {
|
|
6651
6651
|
settabname('shippingpolicytab');
|
|
6652
|
-
} else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.product_videos) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.length)
|
|
6652
|
+
} else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.product_videos) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.length) == 0 && sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide') {
|
|
6653
6653
|
// settabname('videostab');
|
|
6654
6654
|
settabname('reviewstab');
|
|
6655
|
+
} else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.product_videos) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.length) != 0 && sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide') {
|
|
6656
|
+
// settabname('videostab');
|
|
6657
|
+
settabname('videostab');
|
|
6655
6658
|
}
|
|
6656
6659
|
}
|
|
6657
6660
|
}, [StatePagePropertiesContext]);
|
|
6658
6661
|
React.useEffect(function () {
|
|
6659
|
-
var
|
|
6660
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6661
|
-
var
|
|
6662
|
-
if (Array.isArray(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6663
|
-
var
|
|
6664
|
-
var temparr = _toConsumableArray__default["default"](fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6662
|
+
var _fetchProductInfoQuer4;
|
|
6663
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.product_videos) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.length) != 0) {
|
|
6664
|
+
var _fetchProductInfoQuer5;
|
|
6665
|
+
if (Array.isArray(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.product_videos)) {
|
|
6666
|
+
var _fetchProductInfoQuer6;
|
|
6667
|
+
var temparr = _toConsumableArray__default["default"](fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.product_videos);
|
|
6665
6668
|
temparr.forEach(function (item) {
|
|
6666
6669
|
item.linkclicked = false;
|
|
6667
6670
|
});
|
|
@@ -6703,13 +6706,13 @@ var Productinfo = function Productinfo(props) {
|
|
|
6703
6706
|
// }, [fetchProductInfoQueryContext.isSuccess, fetchProductInfoQueryContext.data, props, props.actions]);
|
|
6704
6707
|
React.useEffect(function () {
|
|
6705
6708
|
if (Object.keys(ProductInfoObj).length != 0 && !isloaded) {
|
|
6706
|
-
var
|
|
6709
|
+
var _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10;
|
|
6707
6710
|
variantchecker();
|
|
6708
6711
|
Pixel_EventsContext('productview', {
|
|
6709
|
-
name_en: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6710
|
-
name_ar: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6711
|
-
productid: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6712
|
-
sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6712
|
+
name_en: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.name_en,
|
|
6713
|
+
name_ar: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.name_ar,
|
|
6714
|
+
productid: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.productid,
|
|
6715
|
+
sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.sku
|
|
6713
6716
|
});
|
|
6714
6717
|
}
|
|
6715
6718
|
}, [ProductInfoObj, isloaded]);
|
|
@@ -6724,12 +6727,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
6724
6727
|
React.useEffect(function () {
|
|
6725
6728
|
if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && ikimagecredcontext != undefined) {
|
|
6726
6729
|
if (fetchProductInfoQueryContext.data.data.productinfo != null) {
|
|
6727
|
-
var
|
|
6730
|
+
var _fetchProductInfoQuer11, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19;
|
|
6728
6731
|
var tempproductimagesarray = [];
|
|
6729
6732
|
var sizeguideimagetemp = [];
|
|
6730
|
-
if (Array.isArray(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6731
|
-
var
|
|
6732
|
-
fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6733
|
+
if (Array.isArray(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : _fetchProductInfoQuer11.productimages)) {
|
|
6734
|
+
var _fetchProductInfoQuer12;
|
|
6735
|
+
fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer12 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.productinfo) === null || _fetchProductInfoQuer12 === void 0 || _fetchProductInfoQuer12.productimages.forEach(function (arrayItem, arrayindex) {
|
|
6733
6736
|
var imagepath = arrayItem.path;
|
|
6734
6737
|
|
|
6735
6738
|
// var sizeguideimagearrayobj = {
|
|
@@ -6775,7 +6778,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6775
6778
|
tempaddtocardpayloadobj.productid = fetchProductInfoQueryContext.data.data.productinfo.productid;
|
|
6776
6779
|
// setaddtocardpayloadobj({ ...tempaddtocardpayloadobj });
|
|
6777
6780
|
setRelatedProductsTagid(fetchProductInfoQueryContext.data.data.productinfo.maintagid);
|
|
6778
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6781
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.productinfo) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : _fetchProductInfoQuer13.maintagid) != null && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.maintagid) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : _fetchProductInfoQuer14.length) != 0) {
|
|
6779
6782
|
GeneralAPIMutationContext.mutate({
|
|
6780
6783
|
endpointurl: '/FetchRelatedProducts',
|
|
6781
6784
|
tagid: fetchProductInfoQueryContext.data.data.productinfo.maintagid,
|
|
@@ -6786,14 +6789,14 @@ var Productinfo = function Productinfo(props) {
|
|
|
6786
6789
|
}
|
|
6787
6790
|
});
|
|
6788
6791
|
}
|
|
6789
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6792
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer15 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.productinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : _fetchProductInfoQuer15.item_type) == 'package list') {
|
|
6790
6793
|
tempaddtocardpayloadobj.item_type = 'package list';
|
|
6791
6794
|
} else {
|
|
6792
6795
|
tempaddtocardpayloadobj.item_type = 'product';
|
|
6793
6796
|
}
|
|
6794
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6795
|
-
var
|
|
6796
|
-
quantitystepincrearse = parseInt(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6797
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.productinfo) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.quantitystepincrearse) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer17 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.data) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.productinfo) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : _fetchProductInfoQuer17.quantitystepincrearse) != null && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer18 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.productinfo) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : _fetchProductInfoQuer18.quantitystepincrearse) != 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer19 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.productinfo) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : _fetchProductInfoQuer19.quantitystepincrearse) != '') {
|
|
6798
|
+
var _fetchProductInfoQuer20;
|
|
6799
|
+
quantitystepincrearse = parseInt(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer20 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.productinfo) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : _fetchProductInfoQuer20.quantitystepincrearse);
|
|
6797
6800
|
}
|
|
6798
6801
|
tempaddtocardpayloadobj.quantity = quantitystepincrearse;
|
|
6799
6802
|
setaddtocardpayloadobj(_objectSpread$2u({}, tempaddtocardpayloadobj));
|
|
@@ -6981,8 +6984,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
6981
6984
|
var forcetocheckoutvalue = forcetocheckout;
|
|
6982
6985
|
// alert(addtocardpayloadobj.quantity + 'sad');
|
|
6983
6986
|
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
6984
|
-
var
|
|
6985
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6987
|
+
var _fetchProductInfoQuer21;
|
|
6988
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer21 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.productinfo) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : _fetchProductInfoQuer21.hasvariants) == 1) {
|
|
6986
6989
|
if (addtocardpayloadobj.variantid.length != 0) {
|
|
6987
6990
|
runfunc = true;
|
|
6988
6991
|
} else {
|
|
@@ -6997,16 +7000,16 @@ var Productinfo = function Productinfo(props) {
|
|
|
6997
7000
|
NotificationManager.warning('', 'Please Choose Quantity');
|
|
6998
7001
|
}
|
|
6999
7002
|
if (runfunc == true) {
|
|
7000
|
-
var
|
|
7003
|
+
var _fetchProductInfoQuer22, _fetchProductInfoQuer23;
|
|
7001
7004
|
var tempaddtocardpayloadobj = _objectSpread$2u({}, addtocardpayloadobj);
|
|
7002
|
-
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7003
|
-
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7005
|
+
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer22 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer22 === void 0 || (_fetchProductInfoQuer22 = _fetchProductInfoQuer22.data) === null || _fetchProductInfoQuer22 === void 0 || (_fetchProductInfoQuer22 = _fetchProductInfoQuer22.productinfo) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : _fetchProductInfoQuer22.isproductforcedtocheckout;
|
|
7006
|
+
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer23 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer23 === void 0 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.data) === null || _fetchProductInfoQuer23 === void 0 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.productinfo) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : _fetchProductInfoQuer23.vendorproviderid;
|
|
7004
7007
|
if (forcetocheckoutvalue != undefined) {
|
|
7005
7008
|
tempaddtocardpayloadobj.forcetocheckoutvalue = forcetocheckoutvalue;
|
|
7006
7009
|
}
|
|
7007
7010
|
var Extrafieldvalidationresponse = validateextrafields();
|
|
7008
7011
|
if (Extrafieldvalidationresponse.status) {
|
|
7009
|
-
var
|
|
7012
|
+
var _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29;
|
|
7010
7013
|
// Pixel_EventsContext('AddToCart', {
|
|
7011
7014
|
// content_ids: [fetchProductInfoQueryContext?.data?.data?.productinfo?.productid],
|
|
7012
7015
|
// content_name: fetchProductInfoQueryContext?.data?.data?.productinfo?.name_en + ' - ' + fetchProductInfoQueryContext?.data?.data?.productinfo?.name_ar,
|
|
@@ -7017,17 +7020,17 @@ var Productinfo = function Productinfo(props) {
|
|
|
7017
7020
|
// quantity: addtocardpayloadobj.quantity,
|
|
7018
7021
|
// });
|
|
7019
7022
|
var finalprice = 0;
|
|
7020
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7023
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer24 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.productinfo) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : _fetchProductInfoQuer24.hassale) == 1) {
|
|
7021
7024
|
finalprice = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
|
|
7022
7025
|
} else {
|
|
7023
7026
|
finalprice = getprice_discountpriceprops('defaultprice', 0, variantindexcompleted);
|
|
7024
7027
|
}
|
|
7025
7028
|
Pixel_EventsContext('AddToCart', {
|
|
7026
|
-
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7027
|
-
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7028
|
-
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7029
|
+
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer25 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer25 === void 0 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.data) === null || _fetchProductInfoQuer25 === void 0 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.productinfo) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : _fetchProductInfoQuer25.productid],
|
|
7030
|
+
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer26 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer26 === void 0 || (_fetchProductInfoQuer26 = _fetchProductInfoQuer26.data) === null || _fetchProductInfoQuer26 === void 0 || (_fetchProductInfoQuer26 = _fetchProductInfoQuer26.productinfo) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : _fetchProductInfoQuer26.name_en) + ' - ' + (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer27 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer27 === void 0 || (_fetchProductInfoQuer27 = _fetchProductInfoQuer27.data) === null || _fetchProductInfoQuer27 === void 0 || (_fetchProductInfoQuer27 = _fetchProductInfoQuer27.productinfo) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : _fetchProductInfoQuer27.name_ar),
|
|
7031
|
+
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer28 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer28 === void 0 || (_fetchProductInfoQuer28 = _fetchProductInfoQuer28.data) === null || _fetchProductInfoQuer28 === void 0 || (_fetchProductInfoQuer28 = _fetchProductInfoQuer28.productinfo) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : _fetchProductInfoQuer28.sku,
|
|
7029
7032
|
content_type: 'product',
|
|
7030
|
-
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7033
|
+
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer29 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer29 === void 0 || (_fetchProductInfoQuer29 = _fetchProductInfoQuer29.data) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : _fetchProductInfoQuer29.currencyname_en,
|
|
7031
7034
|
value: finalprice,
|
|
7032
7035
|
quantity: addtocardpayloadobj.quantity
|
|
7033
7036
|
});
|
|
@@ -7036,12 +7039,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
7036
7039
|
}
|
|
7037
7040
|
};
|
|
7038
7041
|
var validateextrafields = function validateextrafields() {
|
|
7039
|
-
var
|
|
7042
|
+
var _fetchProductInfoQuer30;
|
|
7040
7043
|
var tempaddtocardpayloadobj = _objectSpread$2u({}, addtocardpayloadobj);
|
|
7041
7044
|
var status = false;
|
|
7042
7045
|
var reason = '';
|
|
7043
7046
|
var missingitemsfound = [];
|
|
7044
|
-
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7047
|
+
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer30 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer30 === void 0 || (_fetchProductInfoQuer30 = _fetchProductInfoQuer30.data) === null || _fetchProductInfoQuer30 === void 0 || (_fetchProductInfoQuer30 = _fetchProductInfoQuer30.productinfo) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : _fetchProductInfoQuer30.productextrafields;
|
|
7045
7048
|
if ((extrafields === null || extrafields === void 0 ? void 0 : extrafields.length) == 0) {
|
|
7046
7049
|
status = true;
|
|
7047
7050
|
} else {
|
|
@@ -7657,24 +7660,24 @@ var Productinfo = function Productinfo(props) {
|
|
|
7657
7660
|
}
|
|
7658
7661
|
}));
|
|
7659
7662
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
7660
|
-
var
|
|
7663
|
+
var _fetchProductInfoQuer31, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34;
|
|
7661
7664
|
var price = 0;
|
|
7662
7665
|
var quantityconditions = [];
|
|
7663
7666
|
var quantity = 0;
|
|
7664
7667
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
7665
7668
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
7666
7669
|
}
|
|
7667
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7670
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer31 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer31 === void 0 || (_fetchProductInfoQuer31 = _fetchProductInfoQuer31.data) === null || _fetchProductInfoQuer31 === void 0 || (_fetchProductInfoQuer31 = _fetchProductInfoQuer31.productinfo) === null || _fetchProductInfoQuer31 === void 0 ? void 0 : _fetchProductInfoQuer31.productquantityoptions) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer32 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer32 === void 0 || (_fetchProductInfoQuer32 = _fetchProductInfoQuer32.data) === null || _fetchProductInfoQuer32 === void 0 || (_fetchProductInfoQuer32 = _fetchProductInfoQuer32.productinfo) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : _fetchProductInfoQuer32.productquantityoptions) != null && Array.isArray(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer33 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer33 === void 0 || (_fetchProductInfoQuer33 = _fetchProductInfoQuer33.data) === null || _fetchProductInfoQuer33 === void 0 || (_fetchProductInfoQuer33 = _fetchProductInfoQuer33.productinfo) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : _fetchProductInfoQuer33.productquantityoptions) && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer34 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer34 === void 0 || (_fetchProductInfoQuer34 = _fetchProductInfoQuer34.data) === null || _fetchProductInfoQuer34 === void 0 || (_fetchProductInfoQuer34 = _fetchProductInfoQuer34.productinfo) === null || _fetchProductInfoQuer34 === void 0 || (_fetchProductInfoQuer34 = _fetchProductInfoQuer34.productquantityoptions) === null || _fetchProductInfoQuer34 === void 0 ? void 0 : _fetchProductInfoQuer34.length) != 0) {
|
|
7668
7671
|
quantityconditions = fetchProductInfoQueryContext.data.data.productinfo.productquantityoptions;
|
|
7669
7672
|
}
|
|
7670
7673
|
if (type == 'defaultprice') {
|
|
7671
7674
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultprice;
|
|
7672
7675
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
7673
7676
|
if (variantindexcompleted != undefined) {
|
|
7674
|
-
var
|
|
7675
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7676
|
-
var
|
|
7677
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7677
|
+
var _fetchProductInfoQuer35;
|
|
7678
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer35 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer35 === void 0 || (_fetchProductInfoQuer35 = _fetchProductInfoQuer35.data) === null || _fetchProductInfoQuer35 === void 0 || (_fetchProductInfoQuer35 = _fetchProductInfoQuer35.productinfo) === null || _fetchProductInfoQuer35 === void 0 || (_fetchProductInfoQuer35 = _fetchProductInfoQuer35.variants[variantindexcompleted]) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : _fetchProductInfoQuer35.variantprice) != undefined) {
|
|
7679
|
+
var _fetchProductInfoQuer36;
|
|
7680
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer36 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.productinfo) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.variants[variantindexcompleted]) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : _fetchProductInfoQuer36.variantprice;
|
|
7678
7681
|
}
|
|
7679
7682
|
}
|
|
7680
7683
|
}
|
|
@@ -7682,10 +7685,10 @@ var Productinfo = function Productinfo(props) {
|
|
|
7682
7685
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultsaleprice;
|
|
7683
7686
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
7684
7687
|
if (variantindexcompleted != undefined) {
|
|
7685
|
-
var
|
|
7686
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7687
|
-
var
|
|
7688
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7688
|
+
var _fetchProductInfoQuer37;
|
|
7689
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer37 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.productinfo) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.variants[variantindexcompleted]) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : _fetchProductInfoQuer37.variantsaleprice) != undefined) {
|
|
7690
|
+
var _fetchProductInfoQuer38;
|
|
7691
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer38 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer38 === void 0 || (_fetchProductInfoQuer38 = _fetchProductInfoQuer38.data) === null || _fetchProductInfoQuer38 === void 0 || (_fetchProductInfoQuer38 = _fetchProductInfoQuer38.productinfo) === null || _fetchProductInfoQuer38 === void 0 || (_fetchProductInfoQuer38 = _fetchProductInfoQuer38.variants[variantindexcompleted]) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : _fetchProductInfoQuer38.variantsaleprice;
|
|
7689
7692
|
}
|
|
7690
7693
|
}
|
|
7691
7694
|
}
|
|
@@ -7721,7 +7724,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
7721
7724
|
}
|
|
7722
7725
|
};
|
|
7723
7726
|
var getQuantityCondition = function getQuantityCondition() {
|
|
7724
|
-
var
|
|
7727
|
+
var _fetchProductInfoQuer39;
|
|
7725
7728
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7726
7729
|
"class": "col-lg-12 p-0",
|
|
7727
7730
|
style: {
|
|
@@ -7751,12 +7754,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
7751
7754
|
height: 1,
|
|
7752
7755
|
background: sectionproperties.pricelisttitlecolor
|
|
7753
7756
|
}
|
|
7754
|
-
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7755
|
-
var
|
|
7757
|
+
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer39 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.data) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.productinfo) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.productquantityoptions) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.map(function (item, index) {
|
|
7758
|
+
var _fetchProductInfoQuer40;
|
|
7756
7759
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7757
7760
|
className: "col-lg-12 p-0 w-100 d-flex align-items-center",
|
|
7758
7761
|
style: {
|
|
7759
|
-
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7762
|
+
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer40 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.data) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.productinfo) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.productquantityoptions) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : _fetchProductInfoQuer40.length) - 1 != index ? '1rem' : 0
|
|
7760
7763
|
}
|
|
7761
7764
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7762
7765
|
"class": "d-flex align-items-center",
|
|
@@ -7790,7 +7793,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
7790
7793
|
})));
|
|
7791
7794
|
};
|
|
7792
7795
|
var StoreInfo = function StoreInfo(position) {
|
|
7793
|
-
var
|
|
7796
|
+
var _fetchProductInfoQuer41, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i6;
|
|
7794
7797
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7795
7798
|
"class": "row m-0 w-100"
|
|
7796
7799
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -7837,7 +7840,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
7837
7840
|
style: {
|
|
7838
7841
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
7839
7842
|
}
|
|
7840
|
-
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7843
|
+
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer41 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer41 === void 0 || (_fetchProductInfoQuer41 = _fetchProductInfoQuer41.data) === null || _fetchProductInfoQuer41 === void 0 || (_fetchProductInfoQuer41 = _fetchProductInfoQuer41.productinfo) === null || _fetchProductInfoQuer41 === void 0 || (_fetchProductInfoQuer41 = _fetchProductInfoQuer41.productquantityoptions) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : _fetchProductInfoQuer41.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7841
7844
|
"class": "col-lg-12 p-0 mb-4"
|
|
7842
7845
|
}, getQuantityCondition()), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7843
7846
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
@@ -8025,7 +8028,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
8025
8028
|
style: {
|
|
8026
8029
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
8027
8030
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0,
|
|
8028
|
-
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8031
|
+
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer47 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer47 === void 0 || (_fetchProductInfoQuer47 = _fetchProductInfoQuer47.data) === null || _fetchProductInfoQuer47 === void 0 || (_fetchProductInfoQuer47 = _fetchProductInfoQuer47.productinfo) === null || _fetchProductInfoQuer47 === void 0 || (_fetchProductInfoQuer47 = _fetchProductInfoQuer47.product_videos) === null || _fetchProductInfoQuer47 === void 0 ? void 0 : _fetchProductInfoQuer47.length) != 0 ? 'flex' : (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer48 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer48 === void 0 || (_fetchProductInfoQuer48 = _fetchProductInfoQuer48.data) === null || _fetchProductInfoQuer48 === void 0 || (_fetchProductInfoQuer48 = _fetchProductInfoQuer48.productinfo) === null || _fetchProductInfoQuer48 === void 0 ? void 0 : _fetchProductInfoQuer48.productcanrate) == 1 ? 'flex' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' ? 'none' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && sectionproperties.descriptionposition != 'Bottom' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer49 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer49 === void 0 || (_fetchProductInfoQuer49 = _fetchProductInfoQuer49.data) === null || _fetchProductInfoQuer49 === void 0 || (_fetchProductInfoQuer49 = _fetchProductInfoQuer49.productinfo) === null || _fetchProductInfoQuer49 === void 0 || (_fetchProductInfoQuer49 = _fetchProductInfoQuer49.product_videos) === null || _fetchProductInfoQuer49 === void 0 ? void 0 : _fetchProductInfoQuer49.length) == 0 ? 'none' : 'flex'
|
|
8029
8032
|
}
|
|
8030
8033
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8031
8034
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
|
|
@@ -8087,12 +8090,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
8087
8090
|
onClick: function onClick() {
|
|
8088
8091
|
settabname('refundpolicytab');
|
|
8089
8092
|
}
|
|
8090
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8093
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer50 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer50 === void 0 || (_fetchProductInfoQuer50 = _fetchProductInfoQuer50.data) === null || _fetchProductInfoQuer50 === void 0 || (_fetchProductInfoQuer50 = _fetchProductInfoQuer50.productinfo) === null || _fetchProductInfoQuer50 === void 0 || (_fetchProductInfoQuer50 = _fetchProductInfoQuer50.product_videos) === null || _fetchProductInfoQuer50 === void 0 ? void 0 : _fetchProductInfoQuer50.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
8091
8094
|
label: langdetect == 'en' ? sectionproperties.videostitleen : sectionproperties.videostitlear,
|
|
8092
8095
|
onClick: function onClick() {
|
|
8093
8096
|
settabname('videostab');
|
|
8094
8097
|
}
|
|
8095
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8098
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer51 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer51 === void 0 || (_fetchProductInfoQuer51 = _fetchProductInfoQuer51.data) === null || _fetchProductInfoQuer51 === void 0 || (_fetchProductInfoQuer51 = _fetchProductInfoQuer51.productinfo) === null || _fetchProductInfoQuer51 === void 0 ? void 0 : _fetchProductInfoQuer51.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
8096
8099
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
8097
8100
|
onClick: function onClick() {
|
|
8098
8101
|
settabname('reviewstab');
|
|
@@ -8146,12 +8149,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
8146
8149
|
onClick: function onClick() {
|
|
8147
8150
|
settabname('refundpolicytab');
|
|
8148
8151
|
}
|
|
8149
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8152
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer52 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer52 === void 0 || (_fetchProductInfoQuer52 = _fetchProductInfoQuer52.data) === null || _fetchProductInfoQuer52 === void 0 || (_fetchProductInfoQuer52 = _fetchProductInfoQuer52.productinfo) === null || _fetchProductInfoQuer52 === void 0 || (_fetchProductInfoQuer52 = _fetchProductInfoQuer52.product_videos) === null || _fetchProductInfoQuer52 === void 0 ? void 0 : _fetchProductInfoQuer52.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
8150
8153
|
label: langdetect == 'en' ? 'Videos' : 'فيديوهات',
|
|
8151
8154
|
onClick: function onClick() {
|
|
8152
8155
|
settabname('videostab');
|
|
8153
8156
|
}
|
|
8154
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8157
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer53 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer53 === void 0 || (_fetchProductInfoQuer53 = _fetchProductInfoQuer53.data) === null || _fetchProductInfoQuer53 === void 0 || (_fetchProductInfoQuer53 = _fetchProductInfoQuer53.productinfo) === null || _fetchProductInfoQuer53 === void 0 ? void 0 : _fetchProductInfoQuer53.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
8155
8158
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
8156
8159
|
onClick: function onClick() {
|
|
8157
8160
|
settabname('reviewstab');
|
|
@@ -23866,11 +23869,11 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
23866
23869
|
searchbarcont_input: glamor.css({
|
|
23867
23870
|
width: '100%',
|
|
23868
23871
|
background: 'transparent',
|
|
23869
|
-
color:
|
|
23872
|
+
color: sectionproperties.searchbarcontinput_colorresp,
|
|
23870
23873
|
fontWeight: 500,
|
|
23871
23874
|
fontSize: '14px',
|
|
23872
23875
|
borderRadius: 0,
|
|
23873
|
-
borderBottom: '1px solid
|
|
23876
|
+
borderBottom: '1px solid ' + sectionproperties.searchbarcontinput_colorresp,
|
|
23874
23877
|
paddingLeft: '15px',
|
|
23875
23878
|
paddingRight: '15px',
|
|
23876
23879
|
outline: 'none',
|
|
@@ -24836,7 +24839,7 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
24836
24839
|
}, /*#__PURE__*/React__default["default"].createElement(IoClose.IoClose, {
|
|
24837
24840
|
style: {
|
|
24838
24841
|
fontSize: 20,
|
|
24839
|
-
color:
|
|
24842
|
+
color: sectionproperties.searchbarcontinput_colorresp
|
|
24840
24843
|
}
|
|
24841
24844
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
24842
24845
|
"class": header_cssstyles.searchbarcont
|
|
@@ -24860,7 +24863,8 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
24860
24863
|
scroll: true,
|
|
24861
24864
|
style: {
|
|
24862
24865
|
width: '90%',
|
|
24863
|
-
backgroundColor: 'white'
|
|
24866
|
+
// backgroundColor: 'white',
|
|
24867
|
+
background: sectionproperties.resposive_bgcolor
|
|
24864
24868
|
},
|
|
24865
24869
|
backdrop: true
|
|
24866
24870
|
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Header, null, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Title, null, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -24907,7 +24911,7 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
24907
24911
|
setactiveTab('menu');
|
|
24908
24912
|
},
|
|
24909
24913
|
style: {
|
|
24910
|
-
background: activeTab == 'menu' ? 'white' : '#eee'
|
|
24914
|
+
background: sectionproperties.responsiveheaderstyle == 'Style 2 With Merged Subheader' ? '' : activeTab == 'menu' ? 'white' : '#eee'
|
|
24911
24915
|
}
|
|
24912
24916
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
24913
24917
|
className: "m-0 p-0",
|
|
@@ -24924,7 +24928,7 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
24924
24928
|
setactiveTab('categories');
|
|
24925
24929
|
},
|
|
24926
24930
|
style: {
|
|
24927
|
-
background: activeTab == 'categories' ? 'white' : '#eee'
|
|
24931
|
+
background: sectionproperties.responsiveheaderstyle == 'Style 2 With Merged Subheader' ? '' : activeTab == 'categories' ? 'white' : '#eee'
|
|
24928
24932
|
}
|
|
24929
24933
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
24930
24934
|
className: "m-0 p-0",
|
|
@@ -25273,7 +25277,8 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
25273
25277
|
scroll: true,
|
|
25274
25278
|
style: {
|
|
25275
25279
|
width: '90%',
|
|
25276
|
-
backgroundColor: 'white'
|
|
25280
|
+
// backgroundColor: 'white',
|
|
25281
|
+
background: sectionproperties.resposive_bgcolor
|
|
25277
25282
|
},
|
|
25278
25283
|
backdrop: true
|
|
25279
25284
|
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Header, null, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Title, null, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -25319,7 +25324,7 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
25319
25324
|
setactiveTab('menu');
|
|
25320
25325
|
},
|
|
25321
25326
|
style: {
|
|
25322
|
-
background: activeTab == 'menu' ? 'white' : '#eee'
|
|
25327
|
+
background: sectionproperties.responsiveheaderstyle == 'Style 2 With Merged Subheader' ? '' : activeTab == 'menu' ? 'white' : '#eee'
|
|
25323
25328
|
}
|
|
25324
25329
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
25325
25330
|
className: "m-0 p-0",
|