tabexseriescomponents 0.0.469 → 0.0.471
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 +43 -44
- package/dist/index.esm.js +43 -44
- package/dist/index.umd.js +43 -44
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -5175,7 +5175,7 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
5175
5175
|
function ownKeys$2p(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; }
|
|
5176
5176
|
function _objectSpread$2p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2p(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5177
5177
|
var Productinfo = function Productinfo(props) {
|
|
5178
|
-
var _css, _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4,
|
|
5178
|
+
var _css, _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
|
|
5179
5179
|
var _useState = React.useState({}),
|
|
5180
5180
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
5181
5181
|
ProductInfoObj = _useState2[0],
|
|
@@ -5388,7 +5388,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5388
5388
|
React.useEffect(function () {
|
|
5389
5389
|
if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && ikimagecredcontext != undefined) {
|
|
5390
5390
|
if (fetchProductInfoQueryContext.data.data.productinfo != null) {
|
|
5391
|
-
var _fetchProductInfoQuer4, _fetchProductInfoQuer5;
|
|
5391
|
+
var _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6;
|
|
5392
5392
|
var tempproductimagesarray = [];
|
|
5393
5393
|
if (Array.isArray(fetchProductInfoQueryContext.data.data.productinfo.productimages)) {
|
|
5394
5394
|
fetchProductInfoQueryContext.data.data.productinfo.productimages.forEach(function (arrayItem, arrayindex) {
|
|
@@ -5422,7 +5422,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5422
5422
|
variantchecker();
|
|
5423
5423
|
var tempaddtocardpayloadobj = _objectSpread$2p({}, addtocardpayloadobj);
|
|
5424
5424
|
tempaddtocardpayloadobj.productid = fetchProductInfoQueryContext.data.data.productinfo.productid;
|
|
5425
|
-
setaddtocardpayloadobj(
|
|
5425
|
+
// setaddtocardpayloadobj({ ...tempaddtocardpayloadobj });
|
|
5426
5426
|
setRelatedProductsTagid(fetchProductInfoQueryContext.data.data.productinfo.maintagid);
|
|
5427
5427
|
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.maintagid) != null && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.maintagid) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.length) != 0) {
|
|
5428
5428
|
GeneralAPIMutationContext.mutate({
|
|
@@ -5435,6 +5435,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
5435
5435
|
}
|
|
5436
5436
|
});
|
|
5437
5437
|
}
|
|
5438
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.item_type) == 'package list') {
|
|
5439
|
+
tempaddtocardpayloadobj.item_type = 'package list';
|
|
5440
|
+
} else {
|
|
5441
|
+
tempaddtocardpayloadobj.item_type = 'product';
|
|
5442
|
+
}
|
|
5443
|
+
setaddtocardpayloadobj(_objectSpread$2p({}, tempaddtocardpayloadobj));
|
|
5438
5444
|
}
|
|
5439
5445
|
}
|
|
5440
5446
|
}, [fetchProductInfoQueryContext.isSuccess, fetchProductInfoQueryContext.data, ikimagecredcontext]);
|
|
@@ -5617,8 +5623,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
5617
5623
|
var runfunc = false;
|
|
5618
5624
|
var forcetocheckoutvalue = forcetocheckout;
|
|
5619
5625
|
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
5620
|
-
var
|
|
5621
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5626
|
+
var _fetchProductInfoQuer7;
|
|
5627
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.hasvariants) == 1) {
|
|
5622
5628
|
if (addtocardpayloadobj.variantid.length != 0) {
|
|
5623
5629
|
runfunc = true;
|
|
5624
5630
|
}
|
|
@@ -5629,23 +5635,23 @@ var Productinfo = function Productinfo(props) {
|
|
|
5629
5635
|
NotificationManager.warning('', 'Please Choose Quantity');
|
|
5630
5636
|
}
|
|
5631
5637
|
if (runfunc == true) {
|
|
5632
|
-
var
|
|
5638
|
+
var _fetchProductInfoQuer8, _fetchProductInfoQuer9;
|
|
5633
5639
|
var tempaddtocardpayloadobj = _objectSpread$2p({}, addtocardpayloadobj);
|
|
5634
|
-
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5635
|
-
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5640
|
+
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.isproductforcedtocheckout;
|
|
5641
|
+
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.vendorproviderid;
|
|
5636
5642
|
if (forcetocheckoutvalue != undefined) {
|
|
5637
5643
|
tempaddtocardpayloadobj.forcetocheckoutvalue = forcetocheckoutvalue;
|
|
5638
5644
|
}
|
|
5639
5645
|
var Extrafieldvalidationresponse = validateextrafields();
|
|
5640
5646
|
if (Extrafieldvalidationresponse.status) {
|
|
5641
|
-
var
|
|
5647
|
+
var _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15;
|
|
5642
5648
|
Pixel_EventsContext('AddToCart', {
|
|
5643
|
-
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5644
|
-
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5645
|
-
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5649
|
+
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.productid],
|
|
5650
|
+
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : _fetchProductInfoQuer11.name_en) + ' - ' + (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer12 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.productinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.name_ar),
|
|
5651
|
+
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.productinfo) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : _fetchProductInfoQuer13.sku,
|
|
5646
5652
|
content_type: 'product',
|
|
5647
|
-
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5648
|
-
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5653
|
+
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : _fetchProductInfoQuer14.currencyname_en,
|
|
5654
|
+
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer15 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.productinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : _fetchProductInfoQuer15.defaultprice,
|
|
5649
5655
|
quantity: addtocardpayloadobj.quantity
|
|
5650
5656
|
});
|
|
5651
5657
|
AddtoCartContext(tempaddtocardpayloadobj);
|
|
@@ -5653,12 +5659,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
5653
5659
|
}
|
|
5654
5660
|
};
|
|
5655
5661
|
var validateextrafields = function validateextrafields() {
|
|
5656
|
-
var
|
|
5662
|
+
var _fetchProductInfoQuer16;
|
|
5657
5663
|
var tempaddtocardpayloadobj = _objectSpread$2p({}, addtocardpayloadobj);
|
|
5658
5664
|
var status = false;
|
|
5659
5665
|
var reason = '';
|
|
5660
5666
|
var missingitemsfound = [];
|
|
5661
|
-
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5667
|
+
var extrafields = 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.productextrafields;
|
|
5662
5668
|
if ((extrafields === null || extrafields === void 0 ? void 0 : extrafields.length) == 0) {
|
|
5663
5669
|
status = true;
|
|
5664
5670
|
} else {
|
|
@@ -6254,24 +6260,24 @@ var Productinfo = function Productinfo(props) {
|
|
|
6254
6260
|
}
|
|
6255
6261
|
}));
|
|
6256
6262
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
6257
|
-
var
|
|
6263
|
+
var _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20;
|
|
6258
6264
|
var price = 0;
|
|
6259
6265
|
var quantityconditions = [];
|
|
6260
6266
|
var quantity = 0;
|
|
6261
6267
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
6262
6268
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
6263
6269
|
}
|
|
6264
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6270
|
+
if ((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.productquantityoptions) != undefined && (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.productquantityoptions) != null && Array.isArray(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.productquantityoptions) && (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 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.productquantityoptions) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : _fetchProductInfoQuer20.length) != 0) {
|
|
6265
6271
|
quantityconditions = fetchProductInfoQueryContext.data.data.productinfo.productquantityoptions;
|
|
6266
6272
|
}
|
|
6267
6273
|
if (type == 'defaultprice') {
|
|
6268
6274
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultprice;
|
|
6269
6275
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
6270
6276
|
if (variantindexcompleted != undefined) {
|
|
6271
|
-
var
|
|
6272
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6273
|
-
var
|
|
6274
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6277
|
+
var _fetchProductInfoQuer21;
|
|
6278
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer21 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.productinfo) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.variants[variantindexcompleted]) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : _fetchProductInfoQuer21.variantprice) != undefined) {
|
|
6279
|
+
var _fetchProductInfoQuer22;
|
|
6280
|
+
price = 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 || (_fetchProductInfoQuer22 = _fetchProductInfoQuer22.variants[variantindexcompleted]) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : _fetchProductInfoQuer22.variantprice;
|
|
6275
6281
|
}
|
|
6276
6282
|
}
|
|
6277
6283
|
}
|
|
@@ -6279,10 +6285,10 @@ var Productinfo = function Productinfo(props) {
|
|
|
6279
6285
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultsaleprice;
|
|
6280
6286
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
6281
6287
|
if (variantindexcompleted != undefined) {
|
|
6282
|
-
var
|
|
6283
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6284
|
-
var
|
|
6285
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6288
|
+
var _fetchProductInfoQuer23;
|
|
6289
|
+
if ((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 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.variants[variantindexcompleted]) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : _fetchProductInfoQuer23.variantsaleprice) != undefined) {
|
|
6290
|
+
var _fetchProductInfoQuer24;
|
|
6291
|
+
price = 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 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.variants[variantindexcompleted]) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : _fetchProductInfoQuer24.variantsaleprice;
|
|
6286
6292
|
}
|
|
6287
6293
|
}
|
|
6288
6294
|
}
|
|
@@ -6312,7 +6318,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6312
6318
|
}
|
|
6313
6319
|
};
|
|
6314
6320
|
var getQuantityCondition = function getQuantityCondition() {
|
|
6315
|
-
var
|
|
6321
|
+
var _fetchProductInfoQuer25;
|
|
6316
6322
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6317
6323
|
"class": "col-lg-12 p-0",
|
|
6318
6324
|
style: {
|
|
@@ -6342,12 +6348,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
6342
6348
|
height: 1,
|
|
6343
6349
|
background: sectionproperties.pricelisttitlecolor
|
|
6344
6350
|
}
|
|
6345
|
-
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6346
|
-
var
|
|
6351
|
+
})), 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 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.productquantityoptions) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : _fetchProductInfoQuer25.map(function (item, index) {
|
|
6352
|
+
var _fetchProductInfoQuer26;
|
|
6347
6353
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6348
6354
|
className: "col-lg-12 p-0 w-100 d-flex align-items-center",
|
|
6349
6355
|
style: {
|
|
6350
|
-
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6356
|
+
marginBottom: (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 || (_fetchProductInfoQuer26 = _fetchProductInfoQuer26.productquantityoptions) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : _fetchProductInfoQuer26.length) - 1 != index ? '1rem' : 0
|
|
6351
6357
|
}
|
|
6352
6358
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6353
6359
|
"class": "d-flex align-items-center",
|
|
@@ -6381,7 +6387,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6381
6387
|
})));
|
|
6382
6388
|
};
|
|
6383
6389
|
var StoreInfo = function StoreInfo() {
|
|
6384
|
-
var
|
|
6390
|
+
var _fetchProductInfoQuer27, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i6;
|
|
6385
6391
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6386
6392
|
"class": "row m-0 w-100"
|
|
6387
6393
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -6428,7 +6434,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6428
6434
|
style: {
|
|
6429
6435
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
6430
6436
|
}
|
|
6431
|
-
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6437
|
+
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showpricinglist == 'Show' && (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 || (_fetchProductInfoQuer27 = _fetchProductInfoQuer27.productquantityoptions) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : _fetchProductInfoQuer27.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6432
6438
|
"class": "col-lg-12 p-0 mb-4"
|
|
6433
6439
|
}, getQuantityCondition()), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6434
6440
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
@@ -6533,7 +6539,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6533
6539
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
6534
6540
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0
|
|
6535
6541
|
}
|
|
6536
|
-
}, fetchProductInfoQueryContext.data.data.productinfo.item_type
|
|
6542
|
+
}, fetchProductInfoQueryContext.data.data.productinfo.item_type != 'service' && /*#__PURE__*/React__default["default"].createElement(Product_itemtype, {
|
|
6537
6543
|
actions: (_ref = {
|
|
6538
6544
|
setisoutofstock: setisoutofstock,
|
|
6539
6545
|
isoutofstock: isoutofstock,
|
|
@@ -6620,12 +6626,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
6620
6626
|
onClick: function onClick() {
|
|
6621
6627
|
settabname('refundpolicytab');
|
|
6622
6628
|
}
|
|
6623
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6629
|
+
}), (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 || (_fetchProductInfoQuer33 = _fetchProductInfoQuer33.product_videos) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : _fetchProductInfoQuer33.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
6624
6630
|
label: langdetect == 'en' ? sectionproperties.videostitleen : sectionproperties.videostitlear,
|
|
6625
6631
|
onClick: function onClick() {
|
|
6626
6632
|
settabname('videostab');
|
|
6627
6633
|
}
|
|
6628
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6634
|
+
}), (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.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
6629
6635
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
6630
6636
|
onClick: function onClick() {
|
|
6631
6637
|
settabname('reviewstab');
|
|
@@ -6680,12 +6686,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
6680
6686
|
onClick: function onClick() {
|
|
6681
6687
|
settabname('refundpolicytab');
|
|
6682
6688
|
}
|
|
6683
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6689
|
+
}), (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.product_videos) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : _fetchProductInfoQuer35.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
6684
6690
|
label: langdetect == 'en' ? 'Videos' : 'فيديوهات',
|
|
6685
6691
|
onClick: function onClick() {
|
|
6686
6692
|
settabname('videostab');
|
|
6687
6693
|
}
|
|
6688
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6694
|
+
}), (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 ? void 0 : _fetchProductInfoQuer36.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
6689
6695
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
6690
6696
|
onClick: function onClick() {
|
|
6691
6697
|
settabname('reviewstab');
|
|
@@ -27888,13 +27894,6 @@ var Simpleheader = function Simpleheader(props) {
|
|
|
27888
27894
|
}
|
|
27889
27895
|
}
|
|
27890
27896
|
}, [templateproperties_context]);
|
|
27891
|
-
// useEffect(() => {
|
|
27892
|
-
// if (window.location.pathname == 'home') {
|
|
27893
|
-
// alert('asdasd');
|
|
27894
|
-
// }
|
|
27895
|
-
// alert(window.location.pathname);
|
|
27896
|
-
// }, []);
|
|
27897
|
-
|
|
27898
27897
|
var header_cssstyles = (_header_cssstyles = {
|
|
27899
27898
|
headercontainer: glamor.css({
|
|
27900
27899
|
position: sectionproperties.headerstyles_position,
|
package/dist/index.esm.js
CHANGED
|
@@ -5126,7 +5126,7 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
5126
5126
|
function ownKeys$2p(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; }
|
|
5127
5127
|
function _objectSpread$2p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2p(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5128
5128
|
var Productinfo = function Productinfo(props) {
|
|
5129
|
-
var _css, _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4,
|
|
5129
|
+
var _css, _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
|
|
5130
5130
|
var _useState = useState({}),
|
|
5131
5131
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5132
5132
|
ProductInfoObj = _useState2[0],
|
|
@@ -5339,7 +5339,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5339
5339
|
useEffect(function () {
|
|
5340
5340
|
if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && ikimagecredcontext != undefined) {
|
|
5341
5341
|
if (fetchProductInfoQueryContext.data.data.productinfo != null) {
|
|
5342
|
-
var _fetchProductInfoQuer4, _fetchProductInfoQuer5;
|
|
5342
|
+
var _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6;
|
|
5343
5343
|
var tempproductimagesarray = [];
|
|
5344
5344
|
if (Array.isArray(fetchProductInfoQueryContext.data.data.productinfo.productimages)) {
|
|
5345
5345
|
fetchProductInfoQueryContext.data.data.productinfo.productimages.forEach(function (arrayItem, arrayindex) {
|
|
@@ -5373,7 +5373,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5373
5373
|
variantchecker();
|
|
5374
5374
|
var tempaddtocardpayloadobj = _objectSpread$2p({}, addtocardpayloadobj);
|
|
5375
5375
|
tempaddtocardpayloadobj.productid = fetchProductInfoQueryContext.data.data.productinfo.productid;
|
|
5376
|
-
setaddtocardpayloadobj(
|
|
5376
|
+
// setaddtocardpayloadobj({ ...tempaddtocardpayloadobj });
|
|
5377
5377
|
setRelatedProductsTagid(fetchProductInfoQueryContext.data.data.productinfo.maintagid);
|
|
5378
5378
|
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.maintagid) != null && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.maintagid) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.length) != 0) {
|
|
5379
5379
|
GeneralAPIMutationContext.mutate({
|
|
@@ -5386,6 +5386,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
5386
5386
|
}
|
|
5387
5387
|
});
|
|
5388
5388
|
}
|
|
5389
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.item_type) == 'package list') {
|
|
5390
|
+
tempaddtocardpayloadobj.item_type = 'package list';
|
|
5391
|
+
} else {
|
|
5392
|
+
tempaddtocardpayloadobj.item_type = 'product';
|
|
5393
|
+
}
|
|
5394
|
+
setaddtocardpayloadobj(_objectSpread$2p({}, tempaddtocardpayloadobj));
|
|
5389
5395
|
}
|
|
5390
5396
|
}
|
|
5391
5397
|
}, [fetchProductInfoQueryContext.isSuccess, fetchProductInfoQueryContext.data, ikimagecredcontext]);
|
|
@@ -5568,8 +5574,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
5568
5574
|
var runfunc = false;
|
|
5569
5575
|
var forcetocheckoutvalue = forcetocheckout;
|
|
5570
5576
|
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
5571
|
-
var
|
|
5572
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5577
|
+
var _fetchProductInfoQuer7;
|
|
5578
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.hasvariants) == 1) {
|
|
5573
5579
|
if (addtocardpayloadobj.variantid.length != 0) {
|
|
5574
5580
|
runfunc = true;
|
|
5575
5581
|
}
|
|
@@ -5580,23 +5586,23 @@ var Productinfo = function Productinfo(props) {
|
|
|
5580
5586
|
NotificationManager.warning('', 'Please Choose Quantity');
|
|
5581
5587
|
}
|
|
5582
5588
|
if (runfunc == true) {
|
|
5583
|
-
var
|
|
5589
|
+
var _fetchProductInfoQuer8, _fetchProductInfoQuer9;
|
|
5584
5590
|
var tempaddtocardpayloadobj = _objectSpread$2p({}, addtocardpayloadobj);
|
|
5585
|
-
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5586
|
-
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5591
|
+
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.isproductforcedtocheckout;
|
|
5592
|
+
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.vendorproviderid;
|
|
5587
5593
|
if (forcetocheckoutvalue != undefined) {
|
|
5588
5594
|
tempaddtocardpayloadobj.forcetocheckoutvalue = forcetocheckoutvalue;
|
|
5589
5595
|
}
|
|
5590
5596
|
var Extrafieldvalidationresponse = validateextrafields();
|
|
5591
5597
|
if (Extrafieldvalidationresponse.status) {
|
|
5592
|
-
var
|
|
5598
|
+
var _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15;
|
|
5593
5599
|
Pixel_EventsContext('AddToCart', {
|
|
5594
|
-
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5595
|
-
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5596
|
-
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5600
|
+
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.productid],
|
|
5601
|
+
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : _fetchProductInfoQuer11.name_en) + ' - ' + (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer12 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.productinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.name_ar),
|
|
5602
|
+
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.productinfo) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : _fetchProductInfoQuer13.sku,
|
|
5597
5603
|
content_type: 'product',
|
|
5598
|
-
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5599
|
-
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5604
|
+
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : _fetchProductInfoQuer14.currencyname_en,
|
|
5605
|
+
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer15 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.productinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : _fetchProductInfoQuer15.defaultprice,
|
|
5600
5606
|
quantity: addtocardpayloadobj.quantity
|
|
5601
5607
|
});
|
|
5602
5608
|
AddtoCartContext(tempaddtocardpayloadobj);
|
|
@@ -5604,12 +5610,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
5604
5610
|
}
|
|
5605
5611
|
};
|
|
5606
5612
|
var validateextrafields = function validateextrafields() {
|
|
5607
|
-
var
|
|
5613
|
+
var _fetchProductInfoQuer16;
|
|
5608
5614
|
var tempaddtocardpayloadobj = _objectSpread$2p({}, addtocardpayloadobj);
|
|
5609
5615
|
var status = false;
|
|
5610
5616
|
var reason = '';
|
|
5611
5617
|
var missingitemsfound = [];
|
|
5612
|
-
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5618
|
+
var extrafields = 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.productextrafields;
|
|
5613
5619
|
if ((extrafields === null || extrafields === void 0 ? void 0 : extrafields.length) == 0) {
|
|
5614
5620
|
status = true;
|
|
5615
5621
|
} else {
|
|
@@ -6205,24 +6211,24 @@ var Productinfo = function Productinfo(props) {
|
|
|
6205
6211
|
}
|
|
6206
6212
|
}));
|
|
6207
6213
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
6208
|
-
var
|
|
6214
|
+
var _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20;
|
|
6209
6215
|
var price = 0;
|
|
6210
6216
|
var quantityconditions = [];
|
|
6211
6217
|
var quantity = 0;
|
|
6212
6218
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
6213
6219
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
6214
6220
|
}
|
|
6215
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6221
|
+
if ((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.productquantityoptions) != undefined && (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.productquantityoptions) != null && Array.isArray(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.productquantityoptions) && (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 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.productquantityoptions) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : _fetchProductInfoQuer20.length) != 0) {
|
|
6216
6222
|
quantityconditions = fetchProductInfoQueryContext.data.data.productinfo.productquantityoptions;
|
|
6217
6223
|
}
|
|
6218
6224
|
if (type == 'defaultprice') {
|
|
6219
6225
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultprice;
|
|
6220
6226
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
6221
6227
|
if (variantindexcompleted != undefined) {
|
|
6222
|
-
var
|
|
6223
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6224
|
-
var
|
|
6225
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6228
|
+
var _fetchProductInfoQuer21;
|
|
6229
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer21 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.productinfo) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.variants[variantindexcompleted]) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : _fetchProductInfoQuer21.variantprice) != undefined) {
|
|
6230
|
+
var _fetchProductInfoQuer22;
|
|
6231
|
+
price = 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 || (_fetchProductInfoQuer22 = _fetchProductInfoQuer22.variants[variantindexcompleted]) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : _fetchProductInfoQuer22.variantprice;
|
|
6226
6232
|
}
|
|
6227
6233
|
}
|
|
6228
6234
|
}
|
|
@@ -6230,10 +6236,10 @@ var Productinfo = function Productinfo(props) {
|
|
|
6230
6236
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultsaleprice;
|
|
6231
6237
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
6232
6238
|
if (variantindexcompleted != undefined) {
|
|
6233
|
-
var
|
|
6234
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6235
|
-
var
|
|
6236
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6239
|
+
var _fetchProductInfoQuer23;
|
|
6240
|
+
if ((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 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.variants[variantindexcompleted]) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : _fetchProductInfoQuer23.variantsaleprice) != undefined) {
|
|
6241
|
+
var _fetchProductInfoQuer24;
|
|
6242
|
+
price = 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 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.variants[variantindexcompleted]) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : _fetchProductInfoQuer24.variantsaleprice;
|
|
6237
6243
|
}
|
|
6238
6244
|
}
|
|
6239
6245
|
}
|
|
@@ -6263,7 +6269,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6263
6269
|
}
|
|
6264
6270
|
};
|
|
6265
6271
|
var getQuantityCondition = function getQuantityCondition() {
|
|
6266
|
-
var
|
|
6272
|
+
var _fetchProductInfoQuer25;
|
|
6267
6273
|
return /*#__PURE__*/React.createElement("div", {
|
|
6268
6274
|
"class": "col-lg-12 p-0",
|
|
6269
6275
|
style: {
|
|
@@ -6293,12 +6299,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
6293
6299
|
height: 1,
|
|
6294
6300
|
background: sectionproperties.pricelisttitlecolor
|
|
6295
6301
|
}
|
|
6296
|
-
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6297
|
-
var
|
|
6302
|
+
})), 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 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.productquantityoptions) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : _fetchProductInfoQuer25.map(function (item, index) {
|
|
6303
|
+
var _fetchProductInfoQuer26;
|
|
6298
6304
|
return /*#__PURE__*/React.createElement("div", {
|
|
6299
6305
|
className: "col-lg-12 p-0 w-100 d-flex align-items-center",
|
|
6300
6306
|
style: {
|
|
6301
|
-
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6307
|
+
marginBottom: (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 || (_fetchProductInfoQuer26 = _fetchProductInfoQuer26.productquantityoptions) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : _fetchProductInfoQuer26.length) - 1 != index ? '1rem' : 0
|
|
6302
6308
|
}
|
|
6303
6309
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6304
6310
|
"class": "d-flex align-items-center",
|
|
@@ -6332,7 +6338,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6332
6338
|
})));
|
|
6333
6339
|
};
|
|
6334
6340
|
var StoreInfo = function StoreInfo() {
|
|
6335
|
-
var
|
|
6341
|
+
var _fetchProductInfoQuer27, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i6;
|
|
6336
6342
|
return /*#__PURE__*/React.createElement("div", {
|
|
6337
6343
|
"class": "row m-0 w-100"
|
|
6338
6344
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -6379,7 +6385,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6379
6385
|
style: {
|
|
6380
6386
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
6381
6387
|
}
|
|
6382
|
-
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6388
|
+
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showpricinglist == 'Show' && (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 || (_fetchProductInfoQuer27 = _fetchProductInfoQuer27.productquantityoptions) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : _fetchProductInfoQuer27.length) != 0 && /*#__PURE__*/React.createElement("div", {
|
|
6383
6389
|
"class": "col-lg-12 p-0 mb-4"
|
|
6384
6390
|
}, getQuantityCondition()), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
6385
6391
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
@@ -6484,7 +6490,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6484
6490
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
6485
6491
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0
|
|
6486
6492
|
}
|
|
6487
|
-
}, fetchProductInfoQueryContext.data.data.productinfo.item_type
|
|
6493
|
+
}, fetchProductInfoQueryContext.data.data.productinfo.item_type != 'service' && /*#__PURE__*/React.createElement(Product_itemtype, {
|
|
6488
6494
|
actions: (_ref = {
|
|
6489
6495
|
setisoutofstock: setisoutofstock,
|
|
6490
6496
|
isoutofstock: isoutofstock,
|
|
@@ -6571,12 +6577,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
6571
6577
|
onClick: function onClick() {
|
|
6572
6578
|
settabname('refundpolicytab');
|
|
6573
6579
|
}
|
|
6574
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6580
|
+
}), (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 || (_fetchProductInfoQuer33 = _fetchProductInfoQuer33.product_videos) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : _fetchProductInfoQuer33.length) != 0 && /*#__PURE__*/React.createElement(Tab, {
|
|
6575
6581
|
label: langdetect == 'en' ? sectionproperties.videostitleen : sectionproperties.videostitlear,
|
|
6576
6582
|
onClick: function onClick() {
|
|
6577
6583
|
settabname('videostab');
|
|
6578
6584
|
}
|
|
6579
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6585
|
+
}), (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.productcanrate) == 1 && /*#__PURE__*/React.createElement(Tab, {
|
|
6580
6586
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
6581
6587
|
onClick: function onClick() {
|
|
6582
6588
|
settabname('reviewstab');
|
|
@@ -6631,12 +6637,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
6631
6637
|
onClick: function onClick() {
|
|
6632
6638
|
settabname('refundpolicytab');
|
|
6633
6639
|
}
|
|
6634
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6640
|
+
}), (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.product_videos) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : _fetchProductInfoQuer35.length) != 0 && /*#__PURE__*/React.createElement(Tab, {
|
|
6635
6641
|
label: langdetect == 'en' ? 'Videos' : 'فيديوهات',
|
|
6636
6642
|
onClick: function onClick() {
|
|
6637
6643
|
settabname('videostab');
|
|
6638
6644
|
}
|
|
6639
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6645
|
+
}), (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 ? void 0 : _fetchProductInfoQuer36.productcanrate) == 1 && /*#__PURE__*/React.createElement(Tab, {
|
|
6640
6646
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
6641
6647
|
onClick: function onClick() {
|
|
6642
6648
|
settabname('reviewstab');
|
|
@@ -27839,13 +27845,6 @@ var Simpleheader = function Simpleheader(props) {
|
|
|
27839
27845
|
}
|
|
27840
27846
|
}
|
|
27841
27847
|
}, [templateproperties_context]);
|
|
27842
|
-
// useEffect(() => {
|
|
27843
|
-
// if (window.location.pathname == 'home') {
|
|
27844
|
-
// alert('asdasd');
|
|
27845
|
-
// }
|
|
27846
|
-
// alert(window.location.pathname);
|
|
27847
|
-
// }, []);
|
|
27848
|
-
|
|
27849
27848
|
var header_cssstyles = (_header_cssstyles = {
|
|
27850
27849
|
headercontainer: css({
|
|
27851
27850
|
position: sectionproperties.headerstyles_position,
|
package/dist/index.umd.js
CHANGED
|
@@ -5001,7 +5001,7 @@
|
|
|
5001
5001
|
function ownKeys$2p(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; }
|
|
5002
5002
|
function _objectSpread$2p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2p(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5003
5003
|
var Productinfo = function Productinfo(props) {
|
|
5004
|
-
var _css, _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4,
|
|
5004
|
+
var _css, _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
|
|
5005
5005
|
var _useState = React.useState({}),
|
|
5006
5006
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
5007
5007
|
ProductInfoObj = _useState2[0],
|
|
@@ -5214,7 +5214,7 @@
|
|
|
5214
5214
|
React.useEffect(function () {
|
|
5215
5215
|
if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && ikimagecredcontext != undefined) {
|
|
5216
5216
|
if (fetchProductInfoQueryContext.data.data.productinfo != null) {
|
|
5217
|
-
var _fetchProductInfoQuer4, _fetchProductInfoQuer5;
|
|
5217
|
+
var _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6;
|
|
5218
5218
|
var tempproductimagesarray = [];
|
|
5219
5219
|
if (Array.isArray(fetchProductInfoQueryContext.data.data.productinfo.productimages)) {
|
|
5220
5220
|
fetchProductInfoQueryContext.data.data.productinfo.productimages.forEach(function (arrayItem, arrayindex) {
|
|
@@ -5248,7 +5248,7 @@
|
|
|
5248
5248
|
variantchecker();
|
|
5249
5249
|
var tempaddtocardpayloadobj = _objectSpread$2p({}, addtocardpayloadobj);
|
|
5250
5250
|
tempaddtocardpayloadobj.productid = fetchProductInfoQueryContext.data.data.productinfo.productid;
|
|
5251
|
-
setaddtocardpayloadobj(
|
|
5251
|
+
// setaddtocardpayloadobj({ ...tempaddtocardpayloadobj });
|
|
5252
5252
|
setRelatedProductsTagid(fetchProductInfoQueryContext.data.data.productinfo.maintagid);
|
|
5253
5253
|
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.maintagid) != null && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.maintagid) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.length) != 0) {
|
|
5254
5254
|
GeneralAPIMutationContext.mutate({
|
|
@@ -5261,6 +5261,12 @@
|
|
|
5261
5261
|
}
|
|
5262
5262
|
});
|
|
5263
5263
|
}
|
|
5264
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.item_type) == 'package list') {
|
|
5265
|
+
tempaddtocardpayloadobj.item_type = 'package list';
|
|
5266
|
+
} else {
|
|
5267
|
+
tempaddtocardpayloadobj.item_type = 'product';
|
|
5268
|
+
}
|
|
5269
|
+
setaddtocardpayloadobj(_objectSpread$2p({}, tempaddtocardpayloadobj));
|
|
5264
5270
|
}
|
|
5265
5271
|
}
|
|
5266
5272
|
}, [fetchProductInfoQueryContext.isSuccess, fetchProductInfoQueryContext.data, ikimagecredcontext]);
|
|
@@ -5443,8 +5449,8 @@
|
|
|
5443
5449
|
var runfunc = false;
|
|
5444
5450
|
var forcetocheckoutvalue = forcetocheckout;
|
|
5445
5451
|
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
5446
|
-
var
|
|
5447
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5452
|
+
var _fetchProductInfoQuer7;
|
|
5453
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.hasvariants) == 1) {
|
|
5448
5454
|
if (addtocardpayloadobj.variantid.length != 0) {
|
|
5449
5455
|
runfunc = true;
|
|
5450
5456
|
}
|
|
@@ -5455,23 +5461,23 @@
|
|
|
5455
5461
|
NotificationManager.warning('', 'Please Choose Quantity');
|
|
5456
5462
|
}
|
|
5457
5463
|
if (runfunc == true) {
|
|
5458
|
-
var
|
|
5464
|
+
var _fetchProductInfoQuer8, _fetchProductInfoQuer9;
|
|
5459
5465
|
var tempaddtocardpayloadobj = _objectSpread$2p({}, addtocardpayloadobj);
|
|
5460
|
-
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5461
|
-
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5466
|
+
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.isproductforcedtocheckout;
|
|
5467
|
+
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.vendorproviderid;
|
|
5462
5468
|
if (forcetocheckoutvalue != undefined) {
|
|
5463
5469
|
tempaddtocardpayloadobj.forcetocheckoutvalue = forcetocheckoutvalue;
|
|
5464
5470
|
}
|
|
5465
5471
|
var Extrafieldvalidationresponse = validateextrafields();
|
|
5466
5472
|
if (Extrafieldvalidationresponse.status) {
|
|
5467
|
-
var
|
|
5473
|
+
var _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15;
|
|
5468
5474
|
Pixel_EventsContext('AddToCart', {
|
|
5469
|
-
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5470
|
-
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5471
|
-
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5475
|
+
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.productid],
|
|
5476
|
+
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : _fetchProductInfoQuer11.name_en) + ' - ' + (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer12 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.productinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.name_ar),
|
|
5477
|
+
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.productinfo) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : _fetchProductInfoQuer13.sku,
|
|
5472
5478
|
content_type: 'product',
|
|
5473
|
-
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5474
|
-
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5479
|
+
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : _fetchProductInfoQuer14.currencyname_en,
|
|
5480
|
+
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer15 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.productinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : _fetchProductInfoQuer15.defaultprice,
|
|
5475
5481
|
quantity: addtocardpayloadobj.quantity
|
|
5476
5482
|
});
|
|
5477
5483
|
AddtoCartContext(tempaddtocardpayloadobj);
|
|
@@ -5479,12 +5485,12 @@
|
|
|
5479
5485
|
}
|
|
5480
5486
|
};
|
|
5481
5487
|
var validateextrafields = function validateextrafields() {
|
|
5482
|
-
var
|
|
5488
|
+
var _fetchProductInfoQuer16;
|
|
5483
5489
|
var tempaddtocardpayloadobj = _objectSpread$2p({}, addtocardpayloadobj);
|
|
5484
5490
|
var status = false;
|
|
5485
5491
|
var reason = '';
|
|
5486
5492
|
var missingitemsfound = [];
|
|
5487
|
-
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5493
|
+
var extrafields = 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.productextrafields;
|
|
5488
5494
|
if ((extrafields === null || extrafields === void 0 ? void 0 : extrafields.length) == 0) {
|
|
5489
5495
|
status = true;
|
|
5490
5496
|
} else {
|
|
@@ -6080,24 +6086,24 @@
|
|
|
6080
6086
|
}
|
|
6081
6087
|
}));
|
|
6082
6088
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
6083
|
-
var
|
|
6089
|
+
var _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20;
|
|
6084
6090
|
var price = 0;
|
|
6085
6091
|
var quantityconditions = [];
|
|
6086
6092
|
var quantity = 0;
|
|
6087
6093
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
6088
6094
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
6089
6095
|
}
|
|
6090
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6096
|
+
if ((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.productquantityoptions) != undefined && (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.productquantityoptions) != null && Array.isArray(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.productquantityoptions) && (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 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.productquantityoptions) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : _fetchProductInfoQuer20.length) != 0) {
|
|
6091
6097
|
quantityconditions = fetchProductInfoQueryContext.data.data.productinfo.productquantityoptions;
|
|
6092
6098
|
}
|
|
6093
6099
|
if (type == 'defaultprice') {
|
|
6094
6100
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultprice;
|
|
6095
6101
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
6096
6102
|
if (variantindexcompleted != undefined) {
|
|
6097
|
-
var
|
|
6098
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6099
|
-
var
|
|
6100
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6103
|
+
var _fetchProductInfoQuer21;
|
|
6104
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer21 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.productinfo) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.variants[variantindexcompleted]) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : _fetchProductInfoQuer21.variantprice) != undefined) {
|
|
6105
|
+
var _fetchProductInfoQuer22;
|
|
6106
|
+
price = 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 || (_fetchProductInfoQuer22 = _fetchProductInfoQuer22.variants[variantindexcompleted]) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : _fetchProductInfoQuer22.variantprice;
|
|
6101
6107
|
}
|
|
6102
6108
|
}
|
|
6103
6109
|
}
|
|
@@ -6105,10 +6111,10 @@
|
|
|
6105
6111
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultsaleprice;
|
|
6106
6112
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
6107
6113
|
if (variantindexcompleted != undefined) {
|
|
6108
|
-
var
|
|
6109
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6110
|
-
var
|
|
6111
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6114
|
+
var _fetchProductInfoQuer23;
|
|
6115
|
+
if ((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 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.variants[variantindexcompleted]) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : _fetchProductInfoQuer23.variantsaleprice) != undefined) {
|
|
6116
|
+
var _fetchProductInfoQuer24;
|
|
6117
|
+
price = 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 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.variants[variantindexcompleted]) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : _fetchProductInfoQuer24.variantsaleprice;
|
|
6112
6118
|
}
|
|
6113
6119
|
}
|
|
6114
6120
|
}
|
|
@@ -6138,7 +6144,7 @@
|
|
|
6138
6144
|
}
|
|
6139
6145
|
};
|
|
6140
6146
|
var getQuantityCondition = function getQuantityCondition() {
|
|
6141
|
-
var
|
|
6147
|
+
var _fetchProductInfoQuer25;
|
|
6142
6148
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6143
6149
|
"class": "col-lg-12 p-0",
|
|
6144
6150
|
style: {
|
|
@@ -6168,12 +6174,12 @@
|
|
|
6168
6174
|
height: 1,
|
|
6169
6175
|
background: sectionproperties.pricelisttitlecolor
|
|
6170
6176
|
}
|
|
6171
|
-
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6172
|
-
var
|
|
6177
|
+
})), 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 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.productquantityoptions) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : _fetchProductInfoQuer25.map(function (item, index) {
|
|
6178
|
+
var _fetchProductInfoQuer26;
|
|
6173
6179
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6174
6180
|
className: "col-lg-12 p-0 w-100 d-flex align-items-center",
|
|
6175
6181
|
style: {
|
|
6176
|
-
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6182
|
+
marginBottom: (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 || (_fetchProductInfoQuer26 = _fetchProductInfoQuer26.productquantityoptions) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : _fetchProductInfoQuer26.length) - 1 != index ? '1rem' : 0
|
|
6177
6183
|
}
|
|
6178
6184
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6179
6185
|
"class": "d-flex align-items-center",
|
|
@@ -6207,7 +6213,7 @@
|
|
|
6207
6213
|
})));
|
|
6208
6214
|
};
|
|
6209
6215
|
var StoreInfo = function StoreInfo() {
|
|
6210
|
-
var
|
|
6216
|
+
var _fetchProductInfoQuer27, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i6;
|
|
6211
6217
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6212
6218
|
"class": "row m-0 w-100"
|
|
6213
6219
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -6254,7 +6260,7 @@
|
|
|
6254
6260
|
style: {
|
|
6255
6261
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
6256
6262
|
}
|
|
6257
|
-
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6263
|
+
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showpricinglist == 'Show' && (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 || (_fetchProductInfoQuer27 = _fetchProductInfoQuer27.productquantityoptions) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : _fetchProductInfoQuer27.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6258
6264
|
"class": "col-lg-12 p-0 mb-4"
|
|
6259
6265
|
}, getQuantityCondition()), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6260
6266
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
@@ -6359,7 +6365,7 @@
|
|
|
6359
6365
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
6360
6366
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0
|
|
6361
6367
|
}
|
|
6362
|
-
}, fetchProductInfoQueryContext.data.data.productinfo.item_type
|
|
6368
|
+
}, fetchProductInfoQueryContext.data.data.productinfo.item_type != 'service' && /*#__PURE__*/React__default["default"].createElement(Product_itemtype, {
|
|
6363
6369
|
actions: (_ref = {
|
|
6364
6370
|
setisoutofstock: setisoutofstock,
|
|
6365
6371
|
isoutofstock: isoutofstock,
|
|
@@ -6446,12 +6452,12 @@
|
|
|
6446
6452
|
onClick: function onClick() {
|
|
6447
6453
|
settabname('refundpolicytab');
|
|
6448
6454
|
}
|
|
6449
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6455
|
+
}), (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 || (_fetchProductInfoQuer33 = _fetchProductInfoQuer33.product_videos) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : _fetchProductInfoQuer33.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
6450
6456
|
label: langdetect == 'en' ? sectionproperties.videostitleen : sectionproperties.videostitlear,
|
|
6451
6457
|
onClick: function onClick() {
|
|
6452
6458
|
settabname('videostab');
|
|
6453
6459
|
}
|
|
6454
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6460
|
+
}), (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.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
6455
6461
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
6456
6462
|
onClick: function onClick() {
|
|
6457
6463
|
settabname('reviewstab');
|
|
@@ -6506,12 +6512,12 @@
|
|
|
6506
6512
|
onClick: function onClick() {
|
|
6507
6513
|
settabname('refundpolicytab');
|
|
6508
6514
|
}
|
|
6509
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6515
|
+
}), (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.product_videos) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : _fetchProductInfoQuer35.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
6510
6516
|
label: langdetect == 'en' ? 'Videos' : 'فيديوهات',
|
|
6511
6517
|
onClick: function onClick() {
|
|
6512
6518
|
settabname('videostab');
|
|
6513
6519
|
}
|
|
6514
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6520
|
+
}), (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 ? void 0 : _fetchProductInfoQuer36.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
6515
6521
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
6516
6522
|
onClick: function onClick() {
|
|
6517
6523
|
settabname('reviewstab');
|
|
@@ -27714,13 +27720,6 @@
|
|
|
27714
27720
|
}
|
|
27715
27721
|
}
|
|
27716
27722
|
}, [templateproperties_context]);
|
|
27717
|
-
// useEffect(() => {
|
|
27718
|
-
// if (window.location.pathname == 'home') {
|
|
27719
|
-
// alert('asdasd');
|
|
27720
|
-
// }
|
|
27721
|
-
// alert(window.location.pathname);
|
|
27722
|
-
// }, []);
|
|
27723
|
-
|
|
27724
27723
|
var header_cssstyles = (_header_cssstyles = {
|
|
27725
27724
|
headercontainer: glamor.css({
|
|
27726
27725
|
position: sectionproperties.headerstyles_position,
|