tabexseriescomponents 0.2.767 → 0.2.768
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 +58 -52
- package/dist/index.esm.js +58 -52
- package/dist/index.umd.js +58 -52
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -6663,7 +6663,7 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
6663
6663
|
function ownKeys$2w(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; }
|
|
6664
6664
|
function _objectSpread$2w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2w(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6665
6665
|
var Productinfo = function Productinfo(props) {
|
|
6666
|
-
var _css, _ref, _ref2, _ref3,
|
|
6666
|
+
var _css, _ref, _ref2, _ref3, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer51, _fetchProductInfoQuer52, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
|
|
6667
6667
|
var _useState = React.useState({}),
|
|
6668
6668
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
6669
6669
|
ProductInfoObj = _useState2[0],
|
|
@@ -6970,8 +6970,14 @@ var Productinfo = function Productinfo(props) {
|
|
|
6970
6970
|
tempaddtocardpayloadobj.item_type = 'product';
|
|
6971
6971
|
}
|
|
6972
6972
|
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) != '') {
|
|
6973
|
-
var
|
|
6974
|
-
|
|
6973
|
+
var _authdetailsContext$i;
|
|
6974
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.contactinfo.instid) == '66d6de1a1e04a') {
|
|
6975
|
+
var _fetchProductInfoQuer20;
|
|
6976
|
+
quantitystepincrearse = parseFloat(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);
|
|
6977
|
+
} else {
|
|
6978
|
+
var _fetchProductInfoQuer21;
|
|
6979
|
+
quantitystepincrearse = parseInt(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.quantitystepincrearse);
|
|
6980
|
+
}
|
|
6975
6981
|
}
|
|
6976
6982
|
tempaddtocardpayloadobj.quantity = quantitystepincrearse;
|
|
6977
6983
|
setaddtocardpayloadobj(_objectSpread$2w({}, tempaddtocardpayloadobj));
|
|
@@ -7177,15 +7183,15 @@ var Productinfo = function Productinfo(props) {
|
|
|
7177
7183
|
var forcetocheckoutvalue = forcetocheckout;
|
|
7178
7184
|
// alert(addtocardpayloadobj.quantity + 'sad');
|
|
7179
7185
|
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
7180
|
-
var
|
|
7181
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7186
|
+
var _fetchProductInfoQuer22;
|
|
7187
|
+
if ((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.hasvariants) == 1) {
|
|
7182
7188
|
if (addtocardpayloadobj.variantid.length != 0) {
|
|
7183
7189
|
runfunc = true;
|
|
7184
7190
|
} else {
|
|
7185
|
-
var _authdetailsContext$
|
|
7191
|
+
var _authdetailsContext$i2;
|
|
7186
7192
|
// here
|
|
7187
7193
|
setvariantnotchosendisclaimer('This field is required');
|
|
7188
|
-
NotificationManager.warning('', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7194
|
+
NotificationManager.warning('', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.contactinfo.instid) == '674f0617c7811' ? 'Please Choose Size & Color' : 'Please Choose Product Options');
|
|
7189
7195
|
}
|
|
7190
7196
|
} else {
|
|
7191
7197
|
runfunc = true;
|
|
@@ -7194,16 +7200,16 @@ var Productinfo = function Productinfo(props) {
|
|
|
7194
7200
|
NotificationManager.warning('', 'Please Choose Quantity');
|
|
7195
7201
|
}
|
|
7196
7202
|
if (runfunc == true) {
|
|
7197
|
-
var
|
|
7203
|
+
var _fetchProductInfoQuer23, _fetchProductInfoQuer24;
|
|
7198
7204
|
var tempaddtocardpayloadobj = _objectSpread$2w({}, addtocardpayloadobj);
|
|
7199
|
-
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7200
|
-
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7205
|
+
tempaddtocardpayloadobj.isproductforcedtocheckout = 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.isproductforcedtocheckout;
|
|
7206
|
+
tempaddtocardpayloadobj.vendorid = 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.vendorproviderid;
|
|
7201
7207
|
if (forcetocheckoutvalue != undefined) {
|
|
7202
7208
|
tempaddtocardpayloadobj.forcetocheckoutvalue = forcetocheckoutvalue;
|
|
7203
7209
|
}
|
|
7204
7210
|
var Extrafieldvalidationresponse = validateextrafields();
|
|
7205
7211
|
if (Extrafieldvalidationresponse.status) {
|
|
7206
|
-
var
|
|
7212
|
+
var _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30;
|
|
7207
7213
|
// Pixel_EventsContext('AddToCart', {
|
|
7208
7214
|
// content_ids: [fetchProductInfoQueryContext?.data?.data?.productinfo?.productid],
|
|
7209
7215
|
// content_name: fetchProductInfoQueryContext?.data?.data?.productinfo?.name_en + ' - ' + fetchProductInfoQueryContext?.data?.data?.productinfo?.name_ar,
|
|
@@ -7214,17 +7220,17 @@ var Productinfo = function Productinfo(props) {
|
|
|
7214
7220
|
// quantity: addtocardpayloadobj.quantity,
|
|
7215
7221
|
// });
|
|
7216
7222
|
var finalprice = 0;
|
|
7217
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7223
|
+
if ((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.hassale) == 1) {
|
|
7218
7224
|
finalprice = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
|
|
7219
7225
|
} else {
|
|
7220
7226
|
finalprice = getprice_discountpriceprops('defaultprice', 0, variantindexcompleted);
|
|
7221
7227
|
}
|
|
7222
7228
|
Pixel_EventsContext('AddToCart', {
|
|
7223
|
-
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7224
|
-
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7225
|
-
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7229
|
+
content_ids: [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.productid],
|
|
7230
|
+
content_name: (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_en) + ' - ' + (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.name_ar),
|
|
7231
|
+
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer29 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer29 === void 0 || (_fetchProductInfoQuer29 = _fetchProductInfoQuer29.data) === null || _fetchProductInfoQuer29 === void 0 || (_fetchProductInfoQuer29 = _fetchProductInfoQuer29.productinfo) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : _fetchProductInfoQuer29.sku,
|
|
7226
7232
|
content_type: 'product',
|
|
7227
|
-
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7233
|
+
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer30 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer30 === void 0 || (_fetchProductInfoQuer30 = _fetchProductInfoQuer30.data) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : _fetchProductInfoQuer30.currencyname_en,
|
|
7228
7234
|
value: finalprice,
|
|
7229
7235
|
quantity: addtocardpayloadobj.quantity
|
|
7230
7236
|
});
|
|
@@ -7233,12 +7239,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
7233
7239
|
}
|
|
7234
7240
|
};
|
|
7235
7241
|
var validateextrafields = function validateextrafields() {
|
|
7236
|
-
var
|
|
7242
|
+
var _fetchProductInfoQuer31;
|
|
7237
7243
|
var tempaddtocardpayloadobj = _objectSpread$2w({}, addtocardpayloadobj);
|
|
7238
7244
|
var status = false;
|
|
7239
7245
|
var reason = '';
|
|
7240
7246
|
var missingitemsfound = [];
|
|
7241
|
-
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7247
|
+
var extrafields = 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.productextrafields;
|
|
7242
7248
|
if ((extrafields === null || extrafields === void 0 ? void 0 : extrafields.length) == 0) {
|
|
7243
7249
|
status = true;
|
|
7244
7250
|
} else {
|
|
@@ -7278,9 +7284,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
7278
7284
|
};
|
|
7279
7285
|
};
|
|
7280
7286
|
var returnpolicyobj = function returnpolicyobj(policytype) {
|
|
7281
|
-
var _authdetailsContext$
|
|
7287
|
+
var _authdetailsContext$i3;
|
|
7282
7288
|
var policyobj = {};
|
|
7283
|
-
authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7289
|
+
authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 || (_authdetailsContext$i3 = _authdetailsContext$i3.instpolicies) === null || _authdetailsContext$i3 === void 0 || _authdetailsContext$i3.forEach(function (item, index) {
|
|
7284
7290
|
if (item.policytype == policytype) {
|
|
7285
7291
|
policyobj = item;
|
|
7286
7292
|
}
|
|
@@ -7854,23 +7860,23 @@ var Productinfo = function Productinfo(props) {
|
|
|
7854
7860
|
}
|
|
7855
7861
|
}));
|
|
7856
7862
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
7857
|
-
var
|
|
7863
|
+
var _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35;
|
|
7858
7864
|
var price = 0;
|
|
7859
7865
|
var quantity = 0;
|
|
7860
7866
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
7861
7867
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
7862
7868
|
}
|
|
7863
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7869
|
+
if ((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) != undefined && (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) != null && Array.isArray(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 ? void 0 : _fetchProductInfoQuer34.productquantityoptions) && (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.productquantityoptions) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : _fetchProductInfoQuer35.length) != 0) {
|
|
7864
7870
|
fetchProductInfoQueryContext.data.data.productinfo.productquantityoptions;
|
|
7865
7871
|
}
|
|
7866
7872
|
if (type == 'defaultprice') {
|
|
7867
7873
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultprice;
|
|
7868
7874
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
7869
7875
|
if (variantindexcompleted != undefined) {
|
|
7870
|
-
var
|
|
7871
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7872
|
-
var
|
|
7873
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7876
|
+
var _fetchProductInfoQuer36;
|
|
7877
|
+
if ((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) != undefined) {
|
|
7878
|
+
var _fetchProductInfoQuer37;
|
|
7879
|
+
price = 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.variantprice;
|
|
7874
7880
|
}
|
|
7875
7881
|
}
|
|
7876
7882
|
}
|
|
@@ -7878,10 +7884,10 @@ var Productinfo = function Productinfo(props) {
|
|
|
7878
7884
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultsaleprice;
|
|
7879
7885
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
7880
7886
|
if (variantindexcompleted != undefined) {
|
|
7881
|
-
var
|
|
7882
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7883
|
-
var
|
|
7884
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7887
|
+
var _fetchProductInfoQuer38;
|
|
7888
|
+
if ((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) != undefined) {
|
|
7889
|
+
var _fetchProductInfoQuer39;
|
|
7890
|
+
price = 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.variants[variantindexcompleted]) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.variantsaleprice;
|
|
7885
7891
|
}
|
|
7886
7892
|
}
|
|
7887
7893
|
}
|
|
@@ -7916,7 +7922,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
7916
7922
|
}
|
|
7917
7923
|
};
|
|
7918
7924
|
var getQuantityCondition = function getQuantityCondition() {
|
|
7919
|
-
var
|
|
7925
|
+
var _fetchProductInfoQuer40;
|
|
7920
7926
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7921
7927
|
"class": "col-lg-12 p-0",
|
|
7922
7928
|
style: {
|
|
@@ -7946,12 +7952,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
7946
7952
|
height: 1,
|
|
7947
7953
|
background: sectionproperties.pricelisttitlecolor
|
|
7948
7954
|
}
|
|
7949
|
-
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7950
|
-
var
|
|
7955
|
+
})), 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.map(function (item, index) {
|
|
7956
|
+
var _fetchProductInfoQuer41;
|
|
7951
7957
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7952
7958
|
className: "col-lg-12 p-0 w-100 d-flex align-items-center",
|
|
7953
7959
|
style: {
|
|
7954
|
-
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7960
|
+
marginBottom: (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) - 1 != index ? '1rem' : 0
|
|
7955
7961
|
}
|
|
7956
7962
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7957
7963
|
"class": "d-flex align-items-center",
|
|
@@ -7985,7 +7991,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
7985
7991
|
})));
|
|
7986
7992
|
};
|
|
7987
7993
|
var StoreInfo = function StoreInfo(position) {
|
|
7988
|
-
var
|
|
7994
|
+
var _fetchProductInfoQuer42, _authdetailsContext$i5, _authdetailsContext$i6, _authdetailsContext$i8;
|
|
7989
7995
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7990
7996
|
"class": "row m-0 w-100"
|
|
7991
7997
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -8032,7 +8038,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
8032
8038
|
style: {
|
|
8033
8039
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
8034
8040
|
}
|
|
8035
|
-
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8041
|
+
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer42 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.data) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.productinfo) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.productquantityoptions) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : _fetchProductInfoQuer42.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8036
8042
|
"class": "col-lg-12 p-0 mb-4"
|
|
8037
8043
|
}, getQuantityCondition()), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8038
8044
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
@@ -8060,8 +8066,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
8060
8066
|
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber))), sectionproperties.showfooteremail == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8061
8067
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
8062
8068
|
onClick: function onClick() {
|
|
8063
|
-
var _authdetailsContext$
|
|
8064
|
-
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
8069
|
+
var _authdetailsContext$i4;
|
|
8070
|
+
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 || (_authdetailsContext$i4 = _authdetailsContext$i4.contactinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.email), '_self');
|
|
8065
8071
|
}
|
|
8066
8072
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8067
8073
|
"class": productinfo_cssstyles.iconContainer + ' iconContainer '
|
|
@@ -8081,7 +8087,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
8081
8087
|
style: {
|
|
8082
8088
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
8083
8089
|
}
|
|
8084
|
-
}, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
8090
|
+
}, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 || (_authdetailsContext$i5 = _authdetailsContext$i5.contactinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.email)))), sectionproperties.storeinfostyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8085
8091
|
"class": "row m-0 w-100"
|
|
8086
8092
|
}, sectionproperties.showfooterphonenumber == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8087
8093
|
"class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
|
|
@@ -8092,25 +8098,25 @@ var Productinfo = function Productinfo(props) {
|
|
|
8092
8098
|
}
|
|
8093
8099
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8094
8100
|
"class": "m-0 p-0"
|
|
8095
|
-
}, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
8101
|
+
}, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 || (_authdetailsContext$i6 = _authdetailsContext$i6.contactinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.email) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8096
8102
|
"class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
|
|
8097
8103
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
8098
8104
|
"class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
|
|
8099
8105
|
onClick: function onClick() {
|
|
8100
|
-
var _authdetailsContext$
|
|
8101
|
-
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
8106
|
+
var _authdetailsContext$i7;
|
|
8107
|
+
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 || (_authdetailsContext$i7 = _authdetailsContext$i7.contactinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.email), '_self');
|
|
8102
8108
|
}
|
|
8103
8109
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8104
8110
|
"class": "m-0 p-0"
|
|
8105
|
-
}, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
8111
|
+
}, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.whatsappnumber) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8106
8112
|
"class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
|
|
8107
8113
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
8108
8114
|
"class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
|
|
8109
8115
|
onClick: function onClick() {
|
|
8110
|
-
var _authdetailsContext$
|
|
8111
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
8112
|
-
var _authdetailsContext$
|
|
8113
|
-
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
8116
|
+
var _authdetailsContext$i9;
|
|
8117
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.whatsappnumber) != null) {
|
|
8118
|
+
var _authdetailsContext$i10;
|
|
8119
|
+
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.whatsappnumber), '_blank');
|
|
8114
8120
|
}
|
|
8115
8121
|
}
|
|
8116
8122
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
@@ -8220,7 +8226,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
8220
8226
|
style: {
|
|
8221
8227
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
8222
8228
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0,
|
|
8223
|
-
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8229
|
+
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (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 || (_fetchProductInfoQuer48 = _fetchProductInfoQuer48.product_videos) === null || _fetchProductInfoQuer48 === void 0 ? void 0 : _fetchProductInfoQuer48.length) != 0 ? 'flex' : (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 ? void 0 : _fetchProductInfoQuer49.productcanrate) == 1 ? 'flex' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' ? 'none' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && sectionproperties.descriptionposition != 'Bottom' && (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 ? 'none' : 'flex'
|
|
8224
8230
|
}
|
|
8225
8231
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8226
8232
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
|
|
@@ -8282,12 +8288,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
8282
8288
|
onClick: function onClick() {
|
|
8283
8289
|
settabname('refundpolicytab');
|
|
8284
8290
|
}
|
|
8285
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8291
|
+
}), (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 || (_fetchProductInfoQuer51 = _fetchProductInfoQuer51.product_videos) === null || _fetchProductInfoQuer51 === void 0 ? void 0 : _fetchProductInfoQuer51.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
8286
8292
|
label: langdetect == 'en' ? sectionproperties.videostitleen : sectionproperties.videostitlear,
|
|
8287
8293
|
onClick: function onClick() {
|
|
8288
8294
|
settabname('videostab');
|
|
8289
8295
|
}
|
|
8290
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8296
|
+
}), (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 ? void 0 : _fetchProductInfoQuer52.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
8291
8297
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
8292
8298
|
onClick: function onClick() {
|
|
8293
8299
|
settabname('reviewstab');
|
|
@@ -8341,12 +8347,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
8341
8347
|
onClick: function onClick() {
|
|
8342
8348
|
settabname('refundpolicytab');
|
|
8343
8349
|
}
|
|
8344
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8350
|
+
}), (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 || (_fetchProductInfoQuer53 = _fetchProductInfoQuer53.product_videos) === null || _fetchProductInfoQuer53 === void 0 ? void 0 : _fetchProductInfoQuer53.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
8345
8351
|
label: langdetect == 'en' ? 'Videos' : 'فيديوهات',
|
|
8346
8352
|
onClick: function onClick() {
|
|
8347
8353
|
settabname('videostab');
|
|
8348
8354
|
}
|
|
8349
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8355
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer54 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer54 === void 0 || (_fetchProductInfoQuer54 = _fetchProductInfoQuer54.data) === null || _fetchProductInfoQuer54 === void 0 || (_fetchProductInfoQuer54 = _fetchProductInfoQuer54.productinfo) === null || _fetchProductInfoQuer54 === void 0 ? void 0 : _fetchProductInfoQuer54.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
8350
8356
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
8351
8357
|
onClick: function onClick() {
|
|
8352
8358
|
settabname('reviewstab');
|
package/dist/index.esm.js
CHANGED
|
@@ -6614,7 +6614,7 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
6614
6614
|
function ownKeys$2w(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; }
|
|
6615
6615
|
function _objectSpread$2w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2w(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6616
6616
|
var Productinfo = function Productinfo(props) {
|
|
6617
|
-
var _css, _ref, _ref2, _ref3,
|
|
6617
|
+
var _css, _ref, _ref2, _ref3, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer51, _fetchProductInfoQuer52, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
|
|
6618
6618
|
var _useState = useState({}),
|
|
6619
6619
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6620
6620
|
ProductInfoObj = _useState2[0],
|
|
@@ -6921,8 +6921,14 @@ var Productinfo = function Productinfo(props) {
|
|
|
6921
6921
|
tempaddtocardpayloadobj.item_type = 'product';
|
|
6922
6922
|
}
|
|
6923
6923
|
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) != '') {
|
|
6924
|
-
var
|
|
6925
|
-
|
|
6924
|
+
var _authdetailsContext$i;
|
|
6925
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.contactinfo.instid) == '66d6de1a1e04a') {
|
|
6926
|
+
var _fetchProductInfoQuer20;
|
|
6927
|
+
quantitystepincrearse = parseFloat(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);
|
|
6928
|
+
} else {
|
|
6929
|
+
var _fetchProductInfoQuer21;
|
|
6930
|
+
quantitystepincrearse = parseInt(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.quantitystepincrearse);
|
|
6931
|
+
}
|
|
6926
6932
|
}
|
|
6927
6933
|
tempaddtocardpayloadobj.quantity = quantitystepincrearse;
|
|
6928
6934
|
setaddtocardpayloadobj(_objectSpread$2w({}, tempaddtocardpayloadobj));
|
|
@@ -7128,15 +7134,15 @@ var Productinfo = function Productinfo(props) {
|
|
|
7128
7134
|
var forcetocheckoutvalue = forcetocheckout;
|
|
7129
7135
|
// alert(addtocardpayloadobj.quantity + 'sad');
|
|
7130
7136
|
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
7131
|
-
var
|
|
7132
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7137
|
+
var _fetchProductInfoQuer22;
|
|
7138
|
+
if ((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.hasvariants) == 1) {
|
|
7133
7139
|
if (addtocardpayloadobj.variantid.length != 0) {
|
|
7134
7140
|
runfunc = true;
|
|
7135
7141
|
} else {
|
|
7136
|
-
var _authdetailsContext$
|
|
7142
|
+
var _authdetailsContext$i2;
|
|
7137
7143
|
// here
|
|
7138
7144
|
setvariantnotchosendisclaimer('This field is required');
|
|
7139
|
-
NotificationManager.warning('', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7145
|
+
NotificationManager.warning('', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.contactinfo.instid) == '674f0617c7811' ? 'Please Choose Size & Color' : 'Please Choose Product Options');
|
|
7140
7146
|
}
|
|
7141
7147
|
} else {
|
|
7142
7148
|
runfunc = true;
|
|
@@ -7145,16 +7151,16 @@ var Productinfo = function Productinfo(props) {
|
|
|
7145
7151
|
NotificationManager.warning('', 'Please Choose Quantity');
|
|
7146
7152
|
}
|
|
7147
7153
|
if (runfunc == true) {
|
|
7148
|
-
var
|
|
7154
|
+
var _fetchProductInfoQuer23, _fetchProductInfoQuer24;
|
|
7149
7155
|
var tempaddtocardpayloadobj = _objectSpread$2w({}, addtocardpayloadobj);
|
|
7150
|
-
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7151
|
-
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7156
|
+
tempaddtocardpayloadobj.isproductforcedtocheckout = 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.isproductforcedtocheckout;
|
|
7157
|
+
tempaddtocardpayloadobj.vendorid = 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.vendorproviderid;
|
|
7152
7158
|
if (forcetocheckoutvalue != undefined) {
|
|
7153
7159
|
tempaddtocardpayloadobj.forcetocheckoutvalue = forcetocheckoutvalue;
|
|
7154
7160
|
}
|
|
7155
7161
|
var Extrafieldvalidationresponse = validateextrafields();
|
|
7156
7162
|
if (Extrafieldvalidationresponse.status) {
|
|
7157
|
-
var
|
|
7163
|
+
var _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30;
|
|
7158
7164
|
// Pixel_EventsContext('AddToCart', {
|
|
7159
7165
|
// content_ids: [fetchProductInfoQueryContext?.data?.data?.productinfo?.productid],
|
|
7160
7166
|
// content_name: fetchProductInfoQueryContext?.data?.data?.productinfo?.name_en + ' - ' + fetchProductInfoQueryContext?.data?.data?.productinfo?.name_ar,
|
|
@@ -7165,17 +7171,17 @@ var Productinfo = function Productinfo(props) {
|
|
|
7165
7171
|
// quantity: addtocardpayloadobj.quantity,
|
|
7166
7172
|
// });
|
|
7167
7173
|
var finalprice = 0;
|
|
7168
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7174
|
+
if ((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.hassale) == 1) {
|
|
7169
7175
|
finalprice = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
|
|
7170
7176
|
} else {
|
|
7171
7177
|
finalprice = getprice_discountpriceprops('defaultprice', 0, variantindexcompleted);
|
|
7172
7178
|
}
|
|
7173
7179
|
Pixel_EventsContext('AddToCart', {
|
|
7174
|
-
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7175
|
-
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7176
|
-
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7180
|
+
content_ids: [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.productid],
|
|
7181
|
+
content_name: (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_en) + ' - ' + (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.name_ar),
|
|
7182
|
+
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer29 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer29 === void 0 || (_fetchProductInfoQuer29 = _fetchProductInfoQuer29.data) === null || _fetchProductInfoQuer29 === void 0 || (_fetchProductInfoQuer29 = _fetchProductInfoQuer29.productinfo) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : _fetchProductInfoQuer29.sku,
|
|
7177
7183
|
content_type: 'product',
|
|
7178
|
-
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7184
|
+
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer30 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer30 === void 0 || (_fetchProductInfoQuer30 = _fetchProductInfoQuer30.data) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : _fetchProductInfoQuer30.currencyname_en,
|
|
7179
7185
|
value: finalprice,
|
|
7180
7186
|
quantity: addtocardpayloadobj.quantity
|
|
7181
7187
|
});
|
|
@@ -7184,12 +7190,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
7184
7190
|
}
|
|
7185
7191
|
};
|
|
7186
7192
|
var validateextrafields = function validateextrafields() {
|
|
7187
|
-
var
|
|
7193
|
+
var _fetchProductInfoQuer31;
|
|
7188
7194
|
var tempaddtocardpayloadobj = _objectSpread$2w({}, addtocardpayloadobj);
|
|
7189
7195
|
var status = false;
|
|
7190
7196
|
var reason = '';
|
|
7191
7197
|
var missingitemsfound = [];
|
|
7192
|
-
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7198
|
+
var extrafields = 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.productextrafields;
|
|
7193
7199
|
if ((extrafields === null || extrafields === void 0 ? void 0 : extrafields.length) == 0) {
|
|
7194
7200
|
status = true;
|
|
7195
7201
|
} else {
|
|
@@ -7229,9 +7235,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
7229
7235
|
};
|
|
7230
7236
|
};
|
|
7231
7237
|
var returnpolicyobj = function returnpolicyobj(policytype) {
|
|
7232
|
-
var _authdetailsContext$
|
|
7238
|
+
var _authdetailsContext$i3;
|
|
7233
7239
|
var policyobj = {};
|
|
7234
|
-
authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7240
|
+
authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 || (_authdetailsContext$i3 = _authdetailsContext$i3.instpolicies) === null || _authdetailsContext$i3 === void 0 || _authdetailsContext$i3.forEach(function (item, index) {
|
|
7235
7241
|
if (item.policytype == policytype) {
|
|
7236
7242
|
policyobj = item;
|
|
7237
7243
|
}
|
|
@@ -7805,23 +7811,23 @@ var Productinfo = function Productinfo(props) {
|
|
|
7805
7811
|
}
|
|
7806
7812
|
}));
|
|
7807
7813
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
7808
|
-
var
|
|
7814
|
+
var _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35;
|
|
7809
7815
|
var price = 0;
|
|
7810
7816
|
var quantity = 0;
|
|
7811
7817
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
7812
7818
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
7813
7819
|
}
|
|
7814
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7820
|
+
if ((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) != undefined && (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) != null && Array.isArray(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 ? void 0 : _fetchProductInfoQuer34.productquantityoptions) && (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.productquantityoptions) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : _fetchProductInfoQuer35.length) != 0) {
|
|
7815
7821
|
fetchProductInfoQueryContext.data.data.productinfo.productquantityoptions;
|
|
7816
7822
|
}
|
|
7817
7823
|
if (type == 'defaultprice') {
|
|
7818
7824
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultprice;
|
|
7819
7825
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
7820
7826
|
if (variantindexcompleted != undefined) {
|
|
7821
|
-
var
|
|
7822
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7823
|
-
var
|
|
7824
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7827
|
+
var _fetchProductInfoQuer36;
|
|
7828
|
+
if ((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) != undefined) {
|
|
7829
|
+
var _fetchProductInfoQuer37;
|
|
7830
|
+
price = 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.variantprice;
|
|
7825
7831
|
}
|
|
7826
7832
|
}
|
|
7827
7833
|
}
|
|
@@ -7829,10 +7835,10 @@ var Productinfo = function Productinfo(props) {
|
|
|
7829
7835
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultsaleprice;
|
|
7830
7836
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
7831
7837
|
if (variantindexcompleted != undefined) {
|
|
7832
|
-
var
|
|
7833
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7834
|
-
var
|
|
7835
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7838
|
+
var _fetchProductInfoQuer38;
|
|
7839
|
+
if ((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) != undefined) {
|
|
7840
|
+
var _fetchProductInfoQuer39;
|
|
7841
|
+
price = 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.variants[variantindexcompleted]) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.variantsaleprice;
|
|
7836
7842
|
}
|
|
7837
7843
|
}
|
|
7838
7844
|
}
|
|
@@ -7867,7 +7873,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
7867
7873
|
}
|
|
7868
7874
|
};
|
|
7869
7875
|
var getQuantityCondition = function getQuantityCondition() {
|
|
7870
|
-
var
|
|
7876
|
+
var _fetchProductInfoQuer40;
|
|
7871
7877
|
return /*#__PURE__*/React.createElement("div", {
|
|
7872
7878
|
"class": "col-lg-12 p-0",
|
|
7873
7879
|
style: {
|
|
@@ -7897,12 +7903,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
7897
7903
|
height: 1,
|
|
7898
7904
|
background: sectionproperties.pricelisttitlecolor
|
|
7899
7905
|
}
|
|
7900
|
-
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7901
|
-
var
|
|
7906
|
+
})), 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.map(function (item, index) {
|
|
7907
|
+
var _fetchProductInfoQuer41;
|
|
7902
7908
|
return /*#__PURE__*/React.createElement("div", {
|
|
7903
7909
|
className: "col-lg-12 p-0 w-100 d-flex align-items-center",
|
|
7904
7910
|
style: {
|
|
7905
|
-
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7911
|
+
marginBottom: (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) - 1 != index ? '1rem' : 0
|
|
7906
7912
|
}
|
|
7907
7913
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7908
7914
|
"class": "d-flex align-items-center",
|
|
@@ -7936,7 +7942,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
7936
7942
|
})));
|
|
7937
7943
|
};
|
|
7938
7944
|
var StoreInfo = function StoreInfo(position) {
|
|
7939
|
-
var
|
|
7945
|
+
var _fetchProductInfoQuer42, _authdetailsContext$i5, _authdetailsContext$i6, _authdetailsContext$i8;
|
|
7940
7946
|
return /*#__PURE__*/React.createElement("div", {
|
|
7941
7947
|
"class": "row m-0 w-100"
|
|
7942
7948
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -7983,7 +7989,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
7983
7989
|
style: {
|
|
7984
7990
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
7985
7991
|
}
|
|
7986
|
-
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7992
|
+
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer42 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.data) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.productinfo) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.productquantityoptions) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : _fetchProductInfoQuer42.length) != 0 && /*#__PURE__*/React.createElement("div", {
|
|
7987
7993
|
"class": "col-lg-12 p-0 mb-4"
|
|
7988
7994
|
}, getQuantityCondition()), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
7989
7995
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
@@ -8011,8 +8017,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
8011
8017
|
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber))), sectionproperties.showfooteremail == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
8012
8018
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
8013
8019
|
onClick: function onClick() {
|
|
8014
|
-
var _authdetailsContext$
|
|
8015
|
-
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
8020
|
+
var _authdetailsContext$i4;
|
|
8021
|
+
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 || (_authdetailsContext$i4 = _authdetailsContext$i4.contactinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.email), '_self');
|
|
8016
8022
|
}
|
|
8017
8023
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8018
8024
|
"class": productinfo_cssstyles.iconContainer + ' iconContainer '
|
|
@@ -8032,7 +8038,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
8032
8038
|
style: {
|
|
8033
8039
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
8034
8040
|
}
|
|
8035
|
-
}, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
8041
|
+
}, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 || (_authdetailsContext$i5 = _authdetailsContext$i5.contactinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.email)))), sectionproperties.storeinfostyle == 'Style 2' && /*#__PURE__*/React.createElement("div", {
|
|
8036
8042
|
"class": "row m-0 w-100"
|
|
8037
8043
|
}, sectionproperties.showfooterphonenumber == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber) != null && /*#__PURE__*/React.createElement("div", {
|
|
8038
8044
|
"class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
|
|
@@ -8043,25 +8049,25 @@ var Productinfo = function Productinfo(props) {
|
|
|
8043
8049
|
}
|
|
8044
8050
|
}, /*#__PURE__*/React.createElement("p", {
|
|
8045
8051
|
"class": "m-0 p-0"
|
|
8046
|
-
}, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
8052
|
+
}, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 || (_authdetailsContext$i6 = _authdetailsContext$i6.contactinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.email) != null && /*#__PURE__*/React.createElement("div", {
|
|
8047
8053
|
"class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
|
|
8048
8054
|
}, /*#__PURE__*/React.createElement("button", {
|
|
8049
8055
|
"class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
|
|
8050
8056
|
onClick: function onClick() {
|
|
8051
|
-
var _authdetailsContext$
|
|
8052
|
-
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
8057
|
+
var _authdetailsContext$i7;
|
|
8058
|
+
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 || (_authdetailsContext$i7 = _authdetailsContext$i7.contactinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.email), '_self');
|
|
8053
8059
|
}
|
|
8054
8060
|
}, /*#__PURE__*/React.createElement("p", {
|
|
8055
8061
|
"class": "m-0 p-0"
|
|
8056
|
-
}, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
8062
|
+
}, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.whatsappnumber) != null && /*#__PURE__*/React.createElement("div", {
|
|
8057
8063
|
"class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
|
|
8058
8064
|
}, /*#__PURE__*/React.createElement("button", {
|
|
8059
8065
|
"class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
|
|
8060
8066
|
onClick: function onClick() {
|
|
8061
|
-
var _authdetailsContext$
|
|
8062
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
8063
|
-
var _authdetailsContext$
|
|
8064
|
-
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
8067
|
+
var _authdetailsContext$i9;
|
|
8068
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.whatsappnumber) != null) {
|
|
8069
|
+
var _authdetailsContext$i10;
|
|
8070
|
+
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.whatsappnumber), '_blank');
|
|
8065
8071
|
}
|
|
8066
8072
|
}
|
|
8067
8073
|
}, /*#__PURE__*/React.createElement("p", {
|
|
@@ -8171,7 +8177,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
8171
8177
|
style: {
|
|
8172
8178
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
8173
8179
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0,
|
|
8174
|
-
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8180
|
+
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (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 || (_fetchProductInfoQuer48 = _fetchProductInfoQuer48.product_videos) === null || _fetchProductInfoQuer48 === void 0 ? void 0 : _fetchProductInfoQuer48.length) != 0 ? 'flex' : (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 ? void 0 : _fetchProductInfoQuer49.productcanrate) == 1 ? 'flex' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' ? 'none' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && sectionproperties.descriptionposition != 'Bottom' && (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 ? 'none' : 'flex'
|
|
8175
8181
|
}
|
|
8176
8182
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8177
8183
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
|
|
@@ -8233,12 +8239,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
8233
8239
|
onClick: function onClick() {
|
|
8234
8240
|
settabname('refundpolicytab');
|
|
8235
8241
|
}
|
|
8236
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8242
|
+
}), (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 || (_fetchProductInfoQuer51 = _fetchProductInfoQuer51.product_videos) === null || _fetchProductInfoQuer51 === void 0 ? void 0 : _fetchProductInfoQuer51.length) != 0 && /*#__PURE__*/React.createElement(Tab, {
|
|
8237
8243
|
label: langdetect == 'en' ? sectionproperties.videostitleen : sectionproperties.videostitlear,
|
|
8238
8244
|
onClick: function onClick() {
|
|
8239
8245
|
settabname('videostab');
|
|
8240
8246
|
}
|
|
8241
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8247
|
+
}), (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 ? void 0 : _fetchProductInfoQuer52.productcanrate) == 1 && /*#__PURE__*/React.createElement(Tab, {
|
|
8242
8248
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
8243
8249
|
onClick: function onClick() {
|
|
8244
8250
|
settabname('reviewstab');
|
|
@@ -8292,12 +8298,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
8292
8298
|
onClick: function onClick() {
|
|
8293
8299
|
settabname('refundpolicytab');
|
|
8294
8300
|
}
|
|
8295
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8301
|
+
}), (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 || (_fetchProductInfoQuer53 = _fetchProductInfoQuer53.product_videos) === null || _fetchProductInfoQuer53 === void 0 ? void 0 : _fetchProductInfoQuer53.length) != 0 && /*#__PURE__*/React.createElement(Tab, {
|
|
8296
8302
|
label: langdetect == 'en' ? 'Videos' : 'فيديوهات',
|
|
8297
8303
|
onClick: function onClick() {
|
|
8298
8304
|
settabname('videostab');
|
|
8299
8305
|
}
|
|
8300
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8306
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer54 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer54 === void 0 || (_fetchProductInfoQuer54 = _fetchProductInfoQuer54.data) === null || _fetchProductInfoQuer54 === void 0 || (_fetchProductInfoQuer54 = _fetchProductInfoQuer54.productinfo) === null || _fetchProductInfoQuer54 === void 0 ? void 0 : _fetchProductInfoQuer54.productcanrate) == 1 && /*#__PURE__*/React.createElement(Tab, {
|
|
8301
8307
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
8302
8308
|
onClick: function onClick() {
|
|
8303
8309
|
settabname('reviewstab');
|
package/dist/index.umd.js
CHANGED
|
@@ -6477,7 +6477,7 @@
|
|
|
6477
6477
|
function ownKeys$2w(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; }
|
|
6478
6478
|
function _objectSpread$2w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2w(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6479
6479
|
var Productinfo = function Productinfo(props) {
|
|
6480
|
-
var _css, _ref, _ref2, _ref3,
|
|
6480
|
+
var _css, _ref, _ref2, _ref3, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer51, _fetchProductInfoQuer52, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
|
|
6481
6481
|
var _useState = React.useState({}),
|
|
6482
6482
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
6483
6483
|
ProductInfoObj = _useState2[0],
|
|
@@ -6784,8 +6784,14 @@
|
|
|
6784
6784
|
tempaddtocardpayloadobj.item_type = 'product';
|
|
6785
6785
|
}
|
|
6786
6786
|
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) != '') {
|
|
6787
|
-
var
|
|
6788
|
-
|
|
6787
|
+
var _authdetailsContext$i;
|
|
6788
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.contactinfo.instid) == '66d6de1a1e04a') {
|
|
6789
|
+
var _fetchProductInfoQuer20;
|
|
6790
|
+
quantitystepincrearse = parseFloat(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);
|
|
6791
|
+
} else {
|
|
6792
|
+
var _fetchProductInfoQuer21;
|
|
6793
|
+
quantitystepincrearse = parseInt(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.quantitystepincrearse);
|
|
6794
|
+
}
|
|
6789
6795
|
}
|
|
6790
6796
|
tempaddtocardpayloadobj.quantity = quantitystepincrearse;
|
|
6791
6797
|
setaddtocardpayloadobj(_objectSpread$2w({}, tempaddtocardpayloadobj));
|
|
@@ -6991,15 +6997,15 @@
|
|
|
6991
6997
|
var forcetocheckoutvalue = forcetocheckout;
|
|
6992
6998
|
// alert(addtocardpayloadobj.quantity + 'sad');
|
|
6993
6999
|
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
6994
|
-
var
|
|
6995
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7000
|
+
var _fetchProductInfoQuer22;
|
|
7001
|
+
if ((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.hasvariants) == 1) {
|
|
6996
7002
|
if (addtocardpayloadobj.variantid.length != 0) {
|
|
6997
7003
|
runfunc = true;
|
|
6998
7004
|
} else {
|
|
6999
|
-
var _authdetailsContext$
|
|
7005
|
+
var _authdetailsContext$i2;
|
|
7000
7006
|
// here
|
|
7001
7007
|
setvariantnotchosendisclaimer('This field is required');
|
|
7002
|
-
NotificationManager.warning('', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7008
|
+
NotificationManager.warning('', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.contactinfo.instid) == '674f0617c7811' ? 'Please Choose Size & Color' : 'Please Choose Product Options');
|
|
7003
7009
|
}
|
|
7004
7010
|
} else {
|
|
7005
7011
|
runfunc = true;
|
|
@@ -7008,16 +7014,16 @@
|
|
|
7008
7014
|
NotificationManager.warning('', 'Please Choose Quantity');
|
|
7009
7015
|
}
|
|
7010
7016
|
if (runfunc == true) {
|
|
7011
|
-
var
|
|
7017
|
+
var _fetchProductInfoQuer23, _fetchProductInfoQuer24;
|
|
7012
7018
|
var tempaddtocardpayloadobj = _objectSpread$2w({}, addtocardpayloadobj);
|
|
7013
|
-
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7014
|
-
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7019
|
+
tempaddtocardpayloadobj.isproductforcedtocheckout = 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.isproductforcedtocheckout;
|
|
7020
|
+
tempaddtocardpayloadobj.vendorid = 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.vendorproviderid;
|
|
7015
7021
|
if (forcetocheckoutvalue != undefined) {
|
|
7016
7022
|
tempaddtocardpayloadobj.forcetocheckoutvalue = forcetocheckoutvalue;
|
|
7017
7023
|
}
|
|
7018
7024
|
var Extrafieldvalidationresponse = validateextrafields();
|
|
7019
7025
|
if (Extrafieldvalidationresponse.status) {
|
|
7020
|
-
var
|
|
7026
|
+
var _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30;
|
|
7021
7027
|
// Pixel_EventsContext('AddToCart', {
|
|
7022
7028
|
// content_ids: [fetchProductInfoQueryContext?.data?.data?.productinfo?.productid],
|
|
7023
7029
|
// content_name: fetchProductInfoQueryContext?.data?.data?.productinfo?.name_en + ' - ' + fetchProductInfoQueryContext?.data?.data?.productinfo?.name_ar,
|
|
@@ -7028,17 +7034,17 @@
|
|
|
7028
7034
|
// quantity: addtocardpayloadobj.quantity,
|
|
7029
7035
|
// });
|
|
7030
7036
|
var finalprice = 0;
|
|
7031
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7037
|
+
if ((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.hassale) == 1) {
|
|
7032
7038
|
finalprice = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
|
|
7033
7039
|
} else {
|
|
7034
7040
|
finalprice = getprice_discountpriceprops('defaultprice', 0, variantindexcompleted);
|
|
7035
7041
|
}
|
|
7036
7042
|
Pixel_EventsContext('AddToCart', {
|
|
7037
|
-
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7038
|
-
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7039
|
-
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7043
|
+
content_ids: [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.productid],
|
|
7044
|
+
content_name: (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_en) + ' - ' + (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.name_ar),
|
|
7045
|
+
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer29 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer29 === void 0 || (_fetchProductInfoQuer29 = _fetchProductInfoQuer29.data) === null || _fetchProductInfoQuer29 === void 0 || (_fetchProductInfoQuer29 = _fetchProductInfoQuer29.productinfo) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : _fetchProductInfoQuer29.sku,
|
|
7040
7046
|
content_type: 'product',
|
|
7041
|
-
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7047
|
+
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer30 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer30 === void 0 || (_fetchProductInfoQuer30 = _fetchProductInfoQuer30.data) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : _fetchProductInfoQuer30.currencyname_en,
|
|
7042
7048
|
value: finalprice,
|
|
7043
7049
|
quantity: addtocardpayloadobj.quantity
|
|
7044
7050
|
});
|
|
@@ -7047,12 +7053,12 @@
|
|
|
7047
7053
|
}
|
|
7048
7054
|
};
|
|
7049
7055
|
var validateextrafields = function validateextrafields() {
|
|
7050
|
-
var
|
|
7056
|
+
var _fetchProductInfoQuer31;
|
|
7051
7057
|
var tempaddtocardpayloadobj = _objectSpread$2w({}, addtocardpayloadobj);
|
|
7052
7058
|
var status = false;
|
|
7053
7059
|
var reason = '';
|
|
7054
7060
|
var missingitemsfound = [];
|
|
7055
|
-
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7061
|
+
var extrafields = 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.productextrafields;
|
|
7056
7062
|
if ((extrafields === null || extrafields === void 0 ? void 0 : extrafields.length) == 0) {
|
|
7057
7063
|
status = true;
|
|
7058
7064
|
} else {
|
|
@@ -7092,9 +7098,9 @@
|
|
|
7092
7098
|
};
|
|
7093
7099
|
};
|
|
7094
7100
|
var returnpolicyobj = function returnpolicyobj(policytype) {
|
|
7095
|
-
var _authdetailsContext$
|
|
7101
|
+
var _authdetailsContext$i3;
|
|
7096
7102
|
var policyobj = {};
|
|
7097
|
-
authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7103
|
+
authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 || (_authdetailsContext$i3 = _authdetailsContext$i3.instpolicies) === null || _authdetailsContext$i3 === void 0 || _authdetailsContext$i3.forEach(function (item, index) {
|
|
7098
7104
|
if (item.policytype == policytype) {
|
|
7099
7105
|
policyobj = item;
|
|
7100
7106
|
}
|
|
@@ -7668,23 +7674,23 @@
|
|
|
7668
7674
|
}
|
|
7669
7675
|
}));
|
|
7670
7676
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
7671
|
-
var
|
|
7677
|
+
var _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35;
|
|
7672
7678
|
var price = 0;
|
|
7673
7679
|
var quantity = 0;
|
|
7674
7680
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
7675
7681
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
7676
7682
|
}
|
|
7677
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7683
|
+
if ((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) != undefined && (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) != null && Array.isArray(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 ? void 0 : _fetchProductInfoQuer34.productquantityoptions) && (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.productquantityoptions) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : _fetchProductInfoQuer35.length) != 0) {
|
|
7678
7684
|
fetchProductInfoQueryContext.data.data.productinfo.productquantityoptions;
|
|
7679
7685
|
}
|
|
7680
7686
|
if (type == 'defaultprice') {
|
|
7681
7687
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultprice;
|
|
7682
7688
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
7683
7689
|
if (variantindexcompleted != undefined) {
|
|
7684
|
-
var
|
|
7685
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7686
|
-
var
|
|
7687
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7690
|
+
var _fetchProductInfoQuer36;
|
|
7691
|
+
if ((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) != undefined) {
|
|
7692
|
+
var _fetchProductInfoQuer37;
|
|
7693
|
+
price = 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.variantprice;
|
|
7688
7694
|
}
|
|
7689
7695
|
}
|
|
7690
7696
|
}
|
|
@@ -7692,10 +7698,10 @@
|
|
|
7692
7698
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultsaleprice;
|
|
7693
7699
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
7694
7700
|
if (variantindexcompleted != undefined) {
|
|
7695
|
-
var
|
|
7696
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7697
|
-
var
|
|
7698
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7701
|
+
var _fetchProductInfoQuer38;
|
|
7702
|
+
if ((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) != undefined) {
|
|
7703
|
+
var _fetchProductInfoQuer39;
|
|
7704
|
+
price = 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.variants[variantindexcompleted]) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.variantsaleprice;
|
|
7699
7705
|
}
|
|
7700
7706
|
}
|
|
7701
7707
|
}
|
|
@@ -7730,7 +7736,7 @@
|
|
|
7730
7736
|
}
|
|
7731
7737
|
};
|
|
7732
7738
|
var getQuantityCondition = function getQuantityCondition() {
|
|
7733
|
-
var
|
|
7739
|
+
var _fetchProductInfoQuer40;
|
|
7734
7740
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7735
7741
|
"class": "col-lg-12 p-0",
|
|
7736
7742
|
style: {
|
|
@@ -7760,12 +7766,12 @@
|
|
|
7760
7766
|
height: 1,
|
|
7761
7767
|
background: sectionproperties.pricelisttitlecolor
|
|
7762
7768
|
}
|
|
7763
|
-
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7764
|
-
var
|
|
7769
|
+
})), 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.map(function (item, index) {
|
|
7770
|
+
var _fetchProductInfoQuer41;
|
|
7765
7771
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7766
7772
|
className: "col-lg-12 p-0 w-100 d-flex align-items-center",
|
|
7767
7773
|
style: {
|
|
7768
|
-
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7774
|
+
marginBottom: (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) - 1 != index ? '1rem' : 0
|
|
7769
7775
|
}
|
|
7770
7776
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7771
7777
|
"class": "d-flex align-items-center",
|
|
@@ -7799,7 +7805,7 @@
|
|
|
7799
7805
|
})));
|
|
7800
7806
|
};
|
|
7801
7807
|
var StoreInfo = function StoreInfo(position) {
|
|
7802
|
-
var
|
|
7808
|
+
var _fetchProductInfoQuer42, _authdetailsContext$i5, _authdetailsContext$i6, _authdetailsContext$i8;
|
|
7803
7809
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7804
7810
|
"class": "row m-0 w-100"
|
|
7805
7811
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -7846,7 +7852,7 @@
|
|
|
7846
7852
|
style: {
|
|
7847
7853
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
7848
7854
|
}
|
|
7849
|
-
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7855
|
+
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer42 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.data) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.productinfo) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.productquantityoptions) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : _fetchProductInfoQuer42.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7850
7856
|
"class": "col-lg-12 p-0 mb-4"
|
|
7851
7857
|
}, getQuantityCondition()), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7852
7858
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
@@ -7874,8 +7880,8 @@
|
|
|
7874
7880
|
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber))), sectionproperties.showfooteremail == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7875
7881
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
7876
7882
|
onClick: function onClick() {
|
|
7877
|
-
var _authdetailsContext$
|
|
7878
|
-
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7883
|
+
var _authdetailsContext$i4;
|
|
7884
|
+
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 || (_authdetailsContext$i4 = _authdetailsContext$i4.contactinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.email), '_self');
|
|
7879
7885
|
}
|
|
7880
7886
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7881
7887
|
"class": productinfo_cssstyles.iconContainer + ' iconContainer '
|
|
@@ -7895,7 +7901,7 @@
|
|
|
7895
7901
|
style: {
|
|
7896
7902
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
7897
7903
|
}
|
|
7898
|
-
}, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7904
|
+
}, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 || (_authdetailsContext$i5 = _authdetailsContext$i5.contactinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.email)))), sectionproperties.storeinfostyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7899
7905
|
"class": "row m-0 w-100"
|
|
7900
7906
|
}, sectionproperties.showfooterphonenumber == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7901
7907
|
"class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
|
|
@@ -7906,25 +7912,25 @@
|
|
|
7906
7912
|
}
|
|
7907
7913
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7908
7914
|
"class": "m-0 p-0"
|
|
7909
|
-
}, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7915
|
+
}, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 || (_authdetailsContext$i6 = _authdetailsContext$i6.contactinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.email) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7910
7916
|
"class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
|
|
7911
7917
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7912
7918
|
"class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
|
|
7913
7919
|
onClick: function onClick() {
|
|
7914
|
-
var _authdetailsContext$
|
|
7915
|
-
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7920
|
+
var _authdetailsContext$i7;
|
|
7921
|
+
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 || (_authdetailsContext$i7 = _authdetailsContext$i7.contactinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.email), '_self');
|
|
7916
7922
|
}
|
|
7917
7923
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7918
7924
|
"class": "m-0 p-0"
|
|
7919
|
-
}, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7925
|
+
}, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.whatsappnumber) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7920
7926
|
"class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
|
|
7921
7927
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7922
7928
|
"class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
|
|
7923
7929
|
onClick: function onClick() {
|
|
7924
|
-
var _authdetailsContext$
|
|
7925
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7926
|
-
var _authdetailsContext$
|
|
7927
|
-
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7930
|
+
var _authdetailsContext$i9;
|
|
7931
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.whatsappnumber) != null) {
|
|
7932
|
+
var _authdetailsContext$i10;
|
|
7933
|
+
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.whatsappnumber), '_blank');
|
|
7928
7934
|
}
|
|
7929
7935
|
}
|
|
7930
7936
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
@@ -8034,7 +8040,7 @@
|
|
|
8034
8040
|
style: {
|
|
8035
8041
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
8036
8042
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0,
|
|
8037
|
-
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8043
|
+
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (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 || (_fetchProductInfoQuer48 = _fetchProductInfoQuer48.product_videos) === null || _fetchProductInfoQuer48 === void 0 ? void 0 : _fetchProductInfoQuer48.length) != 0 ? 'flex' : (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 ? void 0 : _fetchProductInfoQuer49.productcanrate) == 1 ? 'flex' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' ? 'none' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && sectionproperties.descriptionposition != 'Bottom' && (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 ? 'none' : 'flex'
|
|
8038
8044
|
}
|
|
8039
8045
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8040
8046
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
|
|
@@ -8096,12 +8102,12 @@
|
|
|
8096
8102
|
onClick: function onClick() {
|
|
8097
8103
|
settabname('refundpolicytab');
|
|
8098
8104
|
}
|
|
8099
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8105
|
+
}), (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 || (_fetchProductInfoQuer51 = _fetchProductInfoQuer51.product_videos) === null || _fetchProductInfoQuer51 === void 0 ? void 0 : _fetchProductInfoQuer51.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
8100
8106
|
label: langdetect == 'en' ? sectionproperties.videostitleen : sectionproperties.videostitlear,
|
|
8101
8107
|
onClick: function onClick() {
|
|
8102
8108
|
settabname('videostab');
|
|
8103
8109
|
}
|
|
8104
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8110
|
+
}), (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 ? void 0 : _fetchProductInfoQuer52.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
8105
8111
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
8106
8112
|
onClick: function onClick() {
|
|
8107
8113
|
settabname('reviewstab');
|
|
@@ -8155,12 +8161,12 @@
|
|
|
8155
8161
|
onClick: function onClick() {
|
|
8156
8162
|
settabname('refundpolicytab');
|
|
8157
8163
|
}
|
|
8158
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8164
|
+
}), (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 || (_fetchProductInfoQuer53 = _fetchProductInfoQuer53.product_videos) === null || _fetchProductInfoQuer53 === void 0 ? void 0 : _fetchProductInfoQuer53.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
8159
8165
|
label: langdetect == 'en' ? 'Videos' : 'فيديوهات',
|
|
8160
8166
|
onClick: function onClick() {
|
|
8161
8167
|
settabname('videostab');
|
|
8162
8168
|
}
|
|
8163
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8169
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer54 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer54 === void 0 || (_fetchProductInfoQuer54 = _fetchProductInfoQuer54.data) === null || _fetchProductInfoQuer54 === void 0 || (_fetchProductInfoQuer54 = _fetchProductInfoQuer54.productinfo) === null || _fetchProductInfoQuer54 === void 0 ? void 0 : _fetchProductInfoQuer54.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
8164
8170
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
8165
8171
|
onClick: function onClick() {
|
|
8166
8172
|
settabname('reviewstab');
|