tabexseriescomponents 0.0.500 → 0.0.502
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 +57 -46
- package/dist/index.esm.js +57 -46
- package/dist/index.umd.js +57 -46
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -5181,7 +5181,7 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
5181
5181
|
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; }
|
|
5182
5182
|
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; }
|
|
5183
5183
|
var Productinfo = function Productinfo(props) {
|
|
5184
|
-
var _css, _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4,
|
|
5184
|
+
var _css, _ref, _ref2, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
|
|
5185
5185
|
var _useState = React.useState({}),
|
|
5186
5186
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
5187
5187
|
ProductInfoObj = _useState2[0],
|
|
@@ -5320,6 +5320,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5320
5320
|
};
|
|
5321
5321
|
React.useEffect(function () {
|
|
5322
5322
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
5323
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2;
|
|
5323
5324
|
var secpropobj = {};
|
|
5324
5325
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
5325
5326
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
@@ -5327,18 +5328,20 @@ var Productinfo = function Productinfo(props) {
|
|
|
5327
5328
|
setsectionproperties(_objectSpread$2p({}, secpropobj));
|
|
5328
5329
|
setTabIndex(0);
|
|
5329
5330
|
settabname('descriptiontab');
|
|
5330
|
-
if (sectionproperties.prodCatShow == 'Hide' || sectionproperties.descriptionposition != 'Bottom') {
|
|
5331
|
+
if (sectionproperties.prodCatShow == 'Hide' || sectionproperties.descriptionposition != 'Bottom' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.product_videos) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.length) == 0) {
|
|
5331
5332
|
settabname('shippingpolicytab');
|
|
5333
|
+
} else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.product_videos) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.length) != 0 && sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide') {
|
|
5334
|
+
settabname('videostab');
|
|
5332
5335
|
}
|
|
5333
5336
|
}
|
|
5334
5337
|
}, [StatePagePropertiesContext]);
|
|
5335
5338
|
React.useEffect(function () {
|
|
5336
|
-
var
|
|
5337
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5338
|
-
var
|
|
5339
|
-
if (Array.isArray(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5340
|
-
var
|
|
5341
|
-
var temparr = _toConsumableArray__default["default"](fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5339
|
+
var _fetchProductInfoQuer3;
|
|
5340
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.product_videos) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.length) != 0) {
|
|
5341
|
+
var _fetchProductInfoQuer4;
|
|
5342
|
+
if (Array.isArray(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.product_videos)) {
|
|
5343
|
+
var _fetchProductInfoQuer5;
|
|
5344
|
+
var temparr = _toConsumableArray__default["default"](fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.product_videos);
|
|
5342
5345
|
temparr.forEach(function (item) {
|
|
5343
5346
|
item.linkclicked = false;
|
|
5344
5347
|
});
|
|
@@ -5394,7 +5397,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5394
5397
|
React.useEffect(function () {
|
|
5395
5398
|
if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && ikimagecredcontext != undefined) {
|
|
5396
5399
|
if (fetchProductInfoQueryContext.data.data.productinfo != null) {
|
|
5397
|
-
var
|
|
5400
|
+
var _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8;
|
|
5398
5401
|
var tempproductimagesarray = [];
|
|
5399
5402
|
if (Array.isArray(fetchProductInfoQueryContext.data.data.productinfo.productimages)) {
|
|
5400
5403
|
fetchProductInfoQueryContext.data.data.productinfo.productimages.forEach(function (arrayItem, arrayindex) {
|
|
@@ -5430,7 +5433,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5430
5433
|
tempaddtocardpayloadobj.productid = fetchProductInfoQueryContext.data.data.productinfo.productid;
|
|
5431
5434
|
// setaddtocardpayloadobj({ ...tempaddtocardpayloadobj });
|
|
5432
5435
|
setRelatedProductsTagid(fetchProductInfoQueryContext.data.data.productinfo.maintagid);
|
|
5433
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5436
|
+
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.maintagid) != null && (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 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.maintagid) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.length) != 0) {
|
|
5434
5437
|
GeneralAPIMutationContext.mutate({
|
|
5435
5438
|
endpointurl: '/FetchRelatedProducts',
|
|
5436
5439
|
tagid: fetchProductInfoQueryContext.data.data.productinfo.maintagid,
|
|
@@ -5441,7 +5444,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5441
5444
|
}
|
|
5442
5445
|
});
|
|
5443
5446
|
}
|
|
5444
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5447
|
+
if ((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.item_type) == 'package list') {
|
|
5445
5448
|
tempaddtocardpayloadobj.item_type = 'package list';
|
|
5446
5449
|
} else {
|
|
5447
5450
|
tempaddtocardpayloadobj.item_type = 'product';
|
|
@@ -5629,8 +5632,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
5629
5632
|
var runfunc = false;
|
|
5630
5633
|
var forcetocheckoutvalue = forcetocheckout;
|
|
5631
5634
|
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
5632
|
-
var
|
|
5633
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5635
|
+
var _fetchProductInfoQuer9;
|
|
5636
|
+
if ((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.hasvariants) == 1) {
|
|
5634
5637
|
if (addtocardpayloadobj.variantid.length != 0) {
|
|
5635
5638
|
runfunc = true;
|
|
5636
5639
|
}
|
|
@@ -5641,23 +5644,23 @@ var Productinfo = function Productinfo(props) {
|
|
|
5641
5644
|
NotificationManager.warning('', 'Please Choose Quantity');
|
|
5642
5645
|
}
|
|
5643
5646
|
if (runfunc == true) {
|
|
5644
|
-
var
|
|
5647
|
+
var _fetchProductInfoQuer10, _fetchProductInfoQuer11;
|
|
5645
5648
|
var tempaddtocardpayloadobj = _objectSpread$2p({}, addtocardpayloadobj);
|
|
5646
|
-
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5647
|
-
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5649
|
+
tempaddtocardpayloadobj.isproductforcedtocheckout = 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.isproductforcedtocheckout;
|
|
5650
|
+
tempaddtocardpayloadobj.vendorid = 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.vendorproviderid;
|
|
5648
5651
|
if (forcetocheckoutvalue != undefined) {
|
|
5649
5652
|
tempaddtocardpayloadobj.forcetocheckoutvalue = forcetocheckoutvalue;
|
|
5650
5653
|
}
|
|
5651
5654
|
var Extrafieldvalidationresponse = validateextrafields();
|
|
5652
5655
|
if (Extrafieldvalidationresponse.status) {
|
|
5653
|
-
var
|
|
5656
|
+
var _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17;
|
|
5654
5657
|
Pixel_EventsContext('AddToCart', {
|
|
5655
|
-
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5656
|
-
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5657
|
-
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5658
|
+
content_ids: [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.productid],
|
|
5659
|
+
content_name: (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.name_en) + ' - ' + (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : _fetchProductInfoQuer14.name_ar),
|
|
5660
|
+
content_sku: 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.sku,
|
|
5658
5661
|
content_type: 'product',
|
|
5659
|
-
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5660
|
-
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5662
|
+
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.currencyname_en,
|
|
5663
|
+
value: 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.defaultprice,
|
|
5661
5664
|
quantity: addtocardpayloadobj.quantity
|
|
5662
5665
|
});
|
|
5663
5666
|
AddtoCartContext(tempaddtocardpayloadobj);
|
|
@@ -5665,12 +5668,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
5665
5668
|
}
|
|
5666
5669
|
};
|
|
5667
5670
|
var validateextrafields = function validateextrafields() {
|
|
5668
|
-
var
|
|
5671
|
+
var _fetchProductInfoQuer18;
|
|
5669
5672
|
var tempaddtocardpayloadobj = _objectSpread$2p({}, addtocardpayloadobj);
|
|
5670
5673
|
var status = false;
|
|
5671
5674
|
var reason = '';
|
|
5672
5675
|
var missingitemsfound = [];
|
|
5673
|
-
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5676
|
+
var extrafields = 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.productextrafields;
|
|
5674
5677
|
if ((extrafields === null || extrafields === void 0 ? void 0 : extrafields.length) == 0) {
|
|
5675
5678
|
status = true;
|
|
5676
5679
|
} else {
|
|
@@ -6266,24 +6269,24 @@ var Productinfo = function Productinfo(props) {
|
|
|
6266
6269
|
}
|
|
6267
6270
|
}));
|
|
6268
6271
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
6269
|
-
var
|
|
6272
|
+
var _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22;
|
|
6270
6273
|
var price = 0;
|
|
6271
6274
|
var quantityconditions = [];
|
|
6272
6275
|
var quantity = 0;
|
|
6273
6276
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
6274
6277
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
6275
6278
|
}
|
|
6276
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6279
|
+
if ((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) != undefined && (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.productquantityoptions) != null && Array.isArray(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.productquantityoptions) && (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.productquantityoptions) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : _fetchProductInfoQuer22.length) != 0) {
|
|
6277
6280
|
quantityconditions = fetchProductInfoQueryContext.data.data.productinfo.productquantityoptions;
|
|
6278
6281
|
}
|
|
6279
6282
|
if (type == 'defaultprice') {
|
|
6280
6283
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultprice;
|
|
6281
6284
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
6282
6285
|
if (variantindexcompleted != undefined) {
|
|
6283
|
-
var
|
|
6284
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6285
|
-
var
|
|
6286
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6286
|
+
var _fetchProductInfoQuer23;
|
|
6287
|
+
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.variantprice) != undefined) {
|
|
6288
|
+
var _fetchProductInfoQuer24;
|
|
6289
|
+
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.variantprice;
|
|
6287
6290
|
}
|
|
6288
6291
|
}
|
|
6289
6292
|
}
|
|
@@ -6291,10 +6294,10 @@ var Productinfo = function Productinfo(props) {
|
|
|
6291
6294
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultsaleprice;
|
|
6292
6295
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
6293
6296
|
if (variantindexcompleted != undefined) {
|
|
6294
|
-
var
|
|
6295
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6296
|
-
var
|
|
6297
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6297
|
+
var _fetchProductInfoQuer25;
|
|
6298
|
+
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 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.variants[variantindexcompleted]) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : _fetchProductInfoQuer25.variantsaleprice) != undefined) {
|
|
6299
|
+
var _fetchProductInfoQuer26;
|
|
6300
|
+
price = 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.variants[variantindexcompleted]) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : _fetchProductInfoQuer26.variantsaleprice;
|
|
6298
6301
|
}
|
|
6299
6302
|
}
|
|
6300
6303
|
}
|
|
@@ -6324,7 +6327,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6324
6327
|
}
|
|
6325
6328
|
};
|
|
6326
6329
|
var getQuantityCondition = function getQuantityCondition() {
|
|
6327
|
-
var
|
|
6330
|
+
var _fetchProductInfoQuer27;
|
|
6328
6331
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6329
6332
|
"class": "col-lg-12 p-0",
|
|
6330
6333
|
style: {
|
|
@@ -6354,12 +6357,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
6354
6357
|
height: 1,
|
|
6355
6358
|
background: sectionproperties.pricelisttitlecolor
|
|
6356
6359
|
}
|
|
6357
|
-
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6358
|
-
var
|
|
6360
|
+
})), 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.map(function (item, index) {
|
|
6361
|
+
var _fetchProductInfoQuer28;
|
|
6359
6362
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6360
6363
|
className: "col-lg-12 p-0 w-100 d-flex align-items-center",
|
|
6361
6364
|
style: {
|
|
6362
|
-
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6365
|
+
marginBottom: (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 || (_fetchProductInfoQuer28 = _fetchProductInfoQuer28.productquantityoptions) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : _fetchProductInfoQuer28.length) - 1 != index ? '1rem' : 0
|
|
6363
6366
|
}
|
|
6364
6367
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6365
6368
|
"class": "d-flex align-items-center",
|
|
@@ -6393,7 +6396,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6393
6396
|
})));
|
|
6394
6397
|
};
|
|
6395
6398
|
var StoreInfo = function StoreInfo() {
|
|
6396
|
-
var
|
|
6399
|
+
var _fetchProductInfoQuer29, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i6;
|
|
6397
6400
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6398
6401
|
"class": "row m-0 w-100"
|
|
6399
6402
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -6440,7 +6443,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6440
6443
|
style: {
|
|
6441
6444
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
6442
6445
|
}
|
|
6443
|
-
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6446
|
+
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showpricinglist == 'Show' && (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 || (_fetchProductInfoQuer29 = _fetchProductInfoQuer29.productquantityoptions) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : _fetchProductInfoQuer29.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6444
6447
|
"class": "col-lg-12 p-0 mb-4"
|
|
6445
6448
|
}, getQuantityCondition()), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6446
6449
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
@@ -6616,7 +6619,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6616
6619
|
style: {
|
|
6617
6620
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
6618
6621
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0,
|
|
6619
|
-
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && sectionproperties.
|
|
6622
|
+
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (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 ? 'flex' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' ? 'none' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && sectionproperties.descriptionposition != 'Bottom' && (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.product_videos) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : _fetchProductInfoQuer36.length) == 0 ? 'none' : 'flex'
|
|
6620
6623
|
}
|
|
6621
6624
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6622
6625
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
|
|
@@ -6679,12 +6682,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
6679
6682
|
onClick: function onClick() {
|
|
6680
6683
|
settabname('refundpolicytab');
|
|
6681
6684
|
}
|
|
6682
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6685
|
+
}), (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.product_videos) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : _fetchProductInfoQuer37.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
6683
6686
|
label: langdetect == 'en' ? sectionproperties.videostitleen : sectionproperties.videostitlear,
|
|
6684
6687
|
onClick: function onClick() {
|
|
6685
6688
|
settabname('videostab');
|
|
6686
6689
|
}
|
|
6687
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6690
|
+
}), (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 ? void 0 : _fetchProductInfoQuer38.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
6688
6691
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
6689
6692
|
onClick: function onClick() {
|
|
6690
6693
|
settabname('reviewstab');
|
|
@@ -6739,12 +6742,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
6739
6742
|
onClick: function onClick() {
|
|
6740
6743
|
settabname('refundpolicytab');
|
|
6741
6744
|
}
|
|
6742
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6745
|
+
}), (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.product_videos) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
6743
6746
|
label: langdetect == 'en' ? 'Videos' : 'فيديوهات',
|
|
6744
6747
|
onClick: function onClick() {
|
|
6745
6748
|
settabname('videostab');
|
|
6746
6749
|
}
|
|
6747
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6750
|
+
}), (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 ? void 0 : _fetchProductInfoQuer40.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
6748
6751
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
6749
6752
|
onClick: function onClick() {
|
|
6750
6753
|
settabname('reviewstab');
|
|
@@ -58132,7 +58135,15 @@ var ServicesectionCenteredcards = function ServicesectionCenteredcards(props) {
|
|
|
58132
58135
|
boxShadow: ' 0 0 10px ' + sectionproperties.innerSectionShadowColor
|
|
58133
58136
|
},
|
|
58134
58137
|
onClick: function onClick() {
|
|
58135
|
-
if (cardinfoitem.iscardclickable == 'Yes') {
|
|
58138
|
+
// if (cardinfoitem.iscardclickable == 'Yes') {
|
|
58139
|
+
// window.open(cardinfoitem.btnlink, '_blank');
|
|
58140
|
+
// }
|
|
58141
|
+
if (cardinfoitem.btntype == 'Web Product Link') {
|
|
58142
|
+
routingcountext(cardinfoitem.btnlink, false, '');
|
|
58143
|
+
} else if (cardinfoitem.iscardclickable == 'Yes' && cardinfoitem.clickabletabtype == 'Same Tab' && cardinfoitem.btntype != 'Web Product Link') {
|
|
58144
|
+
// window.open(cardinfoitem.btnlink, '_target');
|
|
58145
|
+
routingcountext(cardinfoitem.btnlink, false, '');
|
|
58146
|
+
} else if (cardinfoitem.iscardclickable == 'Yes' && cardinfoitem.clickabletabtype == 'New Tab' && cardinfoitem.btntype != 'Web Product Link') {
|
|
58136
58147
|
window.open(cardinfoitem.btnlink, '_blank');
|
|
58137
58148
|
}
|
|
58138
58149
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -5132,7 +5132,7 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
5132
5132
|
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; }
|
|
5133
5133
|
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; }
|
|
5134
5134
|
var Productinfo = function Productinfo(props) {
|
|
5135
|
-
var _css, _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4,
|
|
5135
|
+
var _css, _ref, _ref2, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
|
|
5136
5136
|
var _useState = useState({}),
|
|
5137
5137
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5138
5138
|
ProductInfoObj = _useState2[0],
|
|
@@ -5271,6 +5271,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5271
5271
|
};
|
|
5272
5272
|
useEffect(function () {
|
|
5273
5273
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
5274
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2;
|
|
5274
5275
|
var secpropobj = {};
|
|
5275
5276
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
5276
5277
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
@@ -5278,18 +5279,20 @@ var Productinfo = function Productinfo(props) {
|
|
|
5278
5279
|
setsectionproperties(_objectSpread$2p({}, secpropobj));
|
|
5279
5280
|
setTabIndex(0);
|
|
5280
5281
|
settabname('descriptiontab');
|
|
5281
|
-
if (sectionproperties.prodCatShow == 'Hide' || sectionproperties.descriptionposition != 'Bottom') {
|
|
5282
|
+
if (sectionproperties.prodCatShow == 'Hide' || sectionproperties.descriptionposition != 'Bottom' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.product_videos) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.length) == 0) {
|
|
5282
5283
|
settabname('shippingpolicytab');
|
|
5284
|
+
} else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.product_videos) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.length) != 0 && sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide') {
|
|
5285
|
+
settabname('videostab');
|
|
5283
5286
|
}
|
|
5284
5287
|
}
|
|
5285
5288
|
}, [StatePagePropertiesContext]);
|
|
5286
5289
|
useEffect(function () {
|
|
5287
|
-
var
|
|
5288
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5289
|
-
var
|
|
5290
|
-
if (Array.isArray(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5291
|
-
var
|
|
5292
|
-
var temparr = _toConsumableArray(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5290
|
+
var _fetchProductInfoQuer3;
|
|
5291
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.product_videos) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.length) != 0) {
|
|
5292
|
+
var _fetchProductInfoQuer4;
|
|
5293
|
+
if (Array.isArray(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.product_videos)) {
|
|
5294
|
+
var _fetchProductInfoQuer5;
|
|
5295
|
+
var temparr = _toConsumableArray(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.product_videos);
|
|
5293
5296
|
temparr.forEach(function (item) {
|
|
5294
5297
|
item.linkclicked = false;
|
|
5295
5298
|
});
|
|
@@ -5345,7 +5348,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5345
5348
|
useEffect(function () {
|
|
5346
5349
|
if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && ikimagecredcontext != undefined) {
|
|
5347
5350
|
if (fetchProductInfoQueryContext.data.data.productinfo != null) {
|
|
5348
|
-
var
|
|
5351
|
+
var _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8;
|
|
5349
5352
|
var tempproductimagesarray = [];
|
|
5350
5353
|
if (Array.isArray(fetchProductInfoQueryContext.data.data.productinfo.productimages)) {
|
|
5351
5354
|
fetchProductInfoQueryContext.data.data.productinfo.productimages.forEach(function (arrayItem, arrayindex) {
|
|
@@ -5381,7 +5384,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5381
5384
|
tempaddtocardpayloadobj.productid = fetchProductInfoQueryContext.data.data.productinfo.productid;
|
|
5382
5385
|
// setaddtocardpayloadobj({ ...tempaddtocardpayloadobj });
|
|
5383
5386
|
setRelatedProductsTagid(fetchProductInfoQueryContext.data.data.productinfo.maintagid);
|
|
5384
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5387
|
+
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.maintagid) != null && (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 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.maintagid) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.length) != 0) {
|
|
5385
5388
|
GeneralAPIMutationContext.mutate({
|
|
5386
5389
|
endpointurl: '/FetchRelatedProducts',
|
|
5387
5390
|
tagid: fetchProductInfoQueryContext.data.data.productinfo.maintagid,
|
|
@@ -5392,7 +5395,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5392
5395
|
}
|
|
5393
5396
|
});
|
|
5394
5397
|
}
|
|
5395
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5398
|
+
if ((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.item_type) == 'package list') {
|
|
5396
5399
|
tempaddtocardpayloadobj.item_type = 'package list';
|
|
5397
5400
|
} else {
|
|
5398
5401
|
tempaddtocardpayloadobj.item_type = 'product';
|
|
@@ -5580,8 +5583,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
5580
5583
|
var runfunc = false;
|
|
5581
5584
|
var forcetocheckoutvalue = forcetocheckout;
|
|
5582
5585
|
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
5583
|
-
var
|
|
5584
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5586
|
+
var _fetchProductInfoQuer9;
|
|
5587
|
+
if ((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.hasvariants) == 1) {
|
|
5585
5588
|
if (addtocardpayloadobj.variantid.length != 0) {
|
|
5586
5589
|
runfunc = true;
|
|
5587
5590
|
}
|
|
@@ -5592,23 +5595,23 @@ var Productinfo = function Productinfo(props) {
|
|
|
5592
5595
|
NotificationManager.warning('', 'Please Choose Quantity');
|
|
5593
5596
|
}
|
|
5594
5597
|
if (runfunc == true) {
|
|
5595
|
-
var
|
|
5598
|
+
var _fetchProductInfoQuer10, _fetchProductInfoQuer11;
|
|
5596
5599
|
var tempaddtocardpayloadobj = _objectSpread$2p({}, addtocardpayloadobj);
|
|
5597
|
-
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5598
|
-
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5600
|
+
tempaddtocardpayloadobj.isproductforcedtocheckout = 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.isproductforcedtocheckout;
|
|
5601
|
+
tempaddtocardpayloadobj.vendorid = 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.vendorproviderid;
|
|
5599
5602
|
if (forcetocheckoutvalue != undefined) {
|
|
5600
5603
|
tempaddtocardpayloadobj.forcetocheckoutvalue = forcetocheckoutvalue;
|
|
5601
5604
|
}
|
|
5602
5605
|
var Extrafieldvalidationresponse = validateextrafields();
|
|
5603
5606
|
if (Extrafieldvalidationresponse.status) {
|
|
5604
|
-
var
|
|
5607
|
+
var _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17;
|
|
5605
5608
|
Pixel_EventsContext('AddToCart', {
|
|
5606
|
-
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5607
|
-
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5608
|
-
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5609
|
+
content_ids: [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.productid],
|
|
5610
|
+
content_name: (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.name_en) + ' - ' + (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : _fetchProductInfoQuer14.name_ar),
|
|
5611
|
+
content_sku: 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.sku,
|
|
5609
5612
|
content_type: 'product',
|
|
5610
|
-
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5611
|
-
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5613
|
+
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.currencyname_en,
|
|
5614
|
+
value: 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.defaultprice,
|
|
5612
5615
|
quantity: addtocardpayloadobj.quantity
|
|
5613
5616
|
});
|
|
5614
5617
|
AddtoCartContext(tempaddtocardpayloadobj);
|
|
@@ -5616,12 +5619,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
5616
5619
|
}
|
|
5617
5620
|
};
|
|
5618
5621
|
var validateextrafields = function validateextrafields() {
|
|
5619
|
-
var
|
|
5622
|
+
var _fetchProductInfoQuer18;
|
|
5620
5623
|
var tempaddtocardpayloadobj = _objectSpread$2p({}, addtocardpayloadobj);
|
|
5621
5624
|
var status = false;
|
|
5622
5625
|
var reason = '';
|
|
5623
5626
|
var missingitemsfound = [];
|
|
5624
|
-
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5627
|
+
var extrafields = 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.productextrafields;
|
|
5625
5628
|
if ((extrafields === null || extrafields === void 0 ? void 0 : extrafields.length) == 0) {
|
|
5626
5629
|
status = true;
|
|
5627
5630
|
} else {
|
|
@@ -6217,24 +6220,24 @@ var Productinfo = function Productinfo(props) {
|
|
|
6217
6220
|
}
|
|
6218
6221
|
}));
|
|
6219
6222
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
6220
|
-
var
|
|
6223
|
+
var _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22;
|
|
6221
6224
|
var price = 0;
|
|
6222
6225
|
var quantityconditions = [];
|
|
6223
6226
|
var quantity = 0;
|
|
6224
6227
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
6225
6228
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
6226
6229
|
}
|
|
6227
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6230
|
+
if ((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) != undefined && (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.productquantityoptions) != null && Array.isArray(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.productquantityoptions) && (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.productquantityoptions) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : _fetchProductInfoQuer22.length) != 0) {
|
|
6228
6231
|
quantityconditions = fetchProductInfoQueryContext.data.data.productinfo.productquantityoptions;
|
|
6229
6232
|
}
|
|
6230
6233
|
if (type == 'defaultprice') {
|
|
6231
6234
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultprice;
|
|
6232
6235
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
6233
6236
|
if (variantindexcompleted != undefined) {
|
|
6234
|
-
var
|
|
6235
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6236
|
-
var
|
|
6237
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6237
|
+
var _fetchProductInfoQuer23;
|
|
6238
|
+
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.variantprice) != undefined) {
|
|
6239
|
+
var _fetchProductInfoQuer24;
|
|
6240
|
+
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.variantprice;
|
|
6238
6241
|
}
|
|
6239
6242
|
}
|
|
6240
6243
|
}
|
|
@@ -6242,10 +6245,10 @@ var Productinfo = function Productinfo(props) {
|
|
|
6242
6245
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultsaleprice;
|
|
6243
6246
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
6244
6247
|
if (variantindexcompleted != undefined) {
|
|
6245
|
-
var
|
|
6246
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6247
|
-
var
|
|
6248
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6248
|
+
var _fetchProductInfoQuer25;
|
|
6249
|
+
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 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.variants[variantindexcompleted]) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : _fetchProductInfoQuer25.variantsaleprice) != undefined) {
|
|
6250
|
+
var _fetchProductInfoQuer26;
|
|
6251
|
+
price = 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.variants[variantindexcompleted]) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : _fetchProductInfoQuer26.variantsaleprice;
|
|
6249
6252
|
}
|
|
6250
6253
|
}
|
|
6251
6254
|
}
|
|
@@ -6275,7 +6278,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6275
6278
|
}
|
|
6276
6279
|
};
|
|
6277
6280
|
var getQuantityCondition = function getQuantityCondition() {
|
|
6278
|
-
var
|
|
6281
|
+
var _fetchProductInfoQuer27;
|
|
6279
6282
|
return /*#__PURE__*/React.createElement("div", {
|
|
6280
6283
|
"class": "col-lg-12 p-0",
|
|
6281
6284
|
style: {
|
|
@@ -6305,12 +6308,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
6305
6308
|
height: 1,
|
|
6306
6309
|
background: sectionproperties.pricelisttitlecolor
|
|
6307
6310
|
}
|
|
6308
|
-
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6309
|
-
var
|
|
6311
|
+
})), 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.map(function (item, index) {
|
|
6312
|
+
var _fetchProductInfoQuer28;
|
|
6310
6313
|
return /*#__PURE__*/React.createElement("div", {
|
|
6311
6314
|
className: "col-lg-12 p-0 w-100 d-flex align-items-center",
|
|
6312
6315
|
style: {
|
|
6313
|
-
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6316
|
+
marginBottom: (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 || (_fetchProductInfoQuer28 = _fetchProductInfoQuer28.productquantityoptions) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : _fetchProductInfoQuer28.length) - 1 != index ? '1rem' : 0
|
|
6314
6317
|
}
|
|
6315
6318
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6316
6319
|
"class": "d-flex align-items-center",
|
|
@@ -6344,7 +6347,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6344
6347
|
})));
|
|
6345
6348
|
};
|
|
6346
6349
|
var StoreInfo = function StoreInfo() {
|
|
6347
|
-
var
|
|
6350
|
+
var _fetchProductInfoQuer29, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i6;
|
|
6348
6351
|
return /*#__PURE__*/React.createElement("div", {
|
|
6349
6352
|
"class": "row m-0 w-100"
|
|
6350
6353
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -6391,7 +6394,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6391
6394
|
style: {
|
|
6392
6395
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
6393
6396
|
}
|
|
6394
|
-
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6397
|
+
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showpricinglist == 'Show' && (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 || (_fetchProductInfoQuer29 = _fetchProductInfoQuer29.productquantityoptions) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : _fetchProductInfoQuer29.length) != 0 && /*#__PURE__*/React.createElement("div", {
|
|
6395
6398
|
"class": "col-lg-12 p-0 mb-4"
|
|
6396
6399
|
}, getQuantityCondition()), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
6397
6400
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
@@ -6567,7 +6570,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6567
6570
|
style: {
|
|
6568
6571
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
6569
6572
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0,
|
|
6570
|
-
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && sectionproperties.
|
|
6573
|
+
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (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 ? 'flex' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' ? 'none' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && sectionproperties.descriptionposition != 'Bottom' && (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.product_videos) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : _fetchProductInfoQuer36.length) == 0 ? 'none' : 'flex'
|
|
6571
6574
|
}
|
|
6572
6575
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6573
6576
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
|
|
@@ -6630,12 +6633,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
6630
6633
|
onClick: function onClick() {
|
|
6631
6634
|
settabname('refundpolicytab');
|
|
6632
6635
|
}
|
|
6633
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6636
|
+
}), (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.product_videos) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : _fetchProductInfoQuer37.length) != 0 && /*#__PURE__*/React.createElement(Tab, {
|
|
6634
6637
|
label: langdetect == 'en' ? sectionproperties.videostitleen : sectionproperties.videostitlear,
|
|
6635
6638
|
onClick: function onClick() {
|
|
6636
6639
|
settabname('videostab');
|
|
6637
6640
|
}
|
|
6638
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6641
|
+
}), (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 ? void 0 : _fetchProductInfoQuer38.productcanrate) == 1 && /*#__PURE__*/React.createElement(Tab, {
|
|
6639
6642
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
6640
6643
|
onClick: function onClick() {
|
|
6641
6644
|
settabname('reviewstab');
|
|
@@ -6690,12 +6693,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
6690
6693
|
onClick: function onClick() {
|
|
6691
6694
|
settabname('refundpolicytab');
|
|
6692
6695
|
}
|
|
6693
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6696
|
+
}), (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.product_videos) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.length) != 0 && /*#__PURE__*/React.createElement(Tab, {
|
|
6694
6697
|
label: langdetect == 'en' ? 'Videos' : 'فيديوهات',
|
|
6695
6698
|
onClick: function onClick() {
|
|
6696
6699
|
settabname('videostab');
|
|
6697
6700
|
}
|
|
6698
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6701
|
+
}), (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 ? void 0 : _fetchProductInfoQuer40.productcanrate) == 1 && /*#__PURE__*/React.createElement(Tab, {
|
|
6699
6702
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
6700
6703
|
onClick: function onClick() {
|
|
6701
6704
|
settabname('reviewstab');
|
|
@@ -58083,7 +58086,15 @@ var ServicesectionCenteredcards = function ServicesectionCenteredcards(props) {
|
|
|
58083
58086
|
boxShadow: ' 0 0 10px ' + sectionproperties.innerSectionShadowColor
|
|
58084
58087
|
},
|
|
58085
58088
|
onClick: function onClick() {
|
|
58086
|
-
if (cardinfoitem.iscardclickable == 'Yes') {
|
|
58089
|
+
// if (cardinfoitem.iscardclickable == 'Yes') {
|
|
58090
|
+
// window.open(cardinfoitem.btnlink, '_blank');
|
|
58091
|
+
// }
|
|
58092
|
+
if (cardinfoitem.btntype == 'Web Product Link') {
|
|
58093
|
+
routingcountext(cardinfoitem.btnlink, false, '');
|
|
58094
|
+
} else if (cardinfoitem.iscardclickable == 'Yes' && cardinfoitem.clickabletabtype == 'Same Tab' && cardinfoitem.btntype != 'Web Product Link') {
|
|
58095
|
+
// window.open(cardinfoitem.btnlink, '_target');
|
|
58096
|
+
routingcountext(cardinfoitem.btnlink, false, '');
|
|
58097
|
+
} else if (cardinfoitem.iscardclickable == 'Yes' && cardinfoitem.clickabletabtype == 'New Tab' && cardinfoitem.btntype != 'Web Product Link') {
|
|
58087
58098
|
window.open(cardinfoitem.btnlink, '_blank');
|
|
58088
58099
|
}
|
|
58089
58100
|
}
|
package/dist/index.umd.js
CHANGED
|
@@ -5007,7 +5007,7 @@
|
|
|
5007
5007
|
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; }
|
|
5008
5008
|
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; }
|
|
5009
5009
|
var Productinfo = function Productinfo(props) {
|
|
5010
|
-
var _css, _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4,
|
|
5010
|
+
var _css, _ref, _ref2, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
|
|
5011
5011
|
var _useState = React.useState({}),
|
|
5012
5012
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
5013
5013
|
ProductInfoObj = _useState2[0],
|
|
@@ -5146,6 +5146,7 @@
|
|
|
5146
5146
|
};
|
|
5147
5147
|
React.useEffect(function () {
|
|
5148
5148
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
5149
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2;
|
|
5149
5150
|
var secpropobj = {};
|
|
5150
5151
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
5151
5152
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
@@ -5153,18 +5154,20 @@
|
|
|
5153
5154
|
setsectionproperties(_objectSpread$2p({}, secpropobj));
|
|
5154
5155
|
setTabIndex(0);
|
|
5155
5156
|
settabname('descriptiontab');
|
|
5156
|
-
if (sectionproperties.prodCatShow == 'Hide' || sectionproperties.descriptionposition != 'Bottom') {
|
|
5157
|
+
if (sectionproperties.prodCatShow == 'Hide' || sectionproperties.descriptionposition != 'Bottom' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.product_videos) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.length) == 0) {
|
|
5157
5158
|
settabname('shippingpolicytab');
|
|
5159
|
+
} else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.product_videos) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.length) != 0 && sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide') {
|
|
5160
|
+
settabname('videostab');
|
|
5158
5161
|
}
|
|
5159
5162
|
}
|
|
5160
5163
|
}, [StatePagePropertiesContext]);
|
|
5161
5164
|
React.useEffect(function () {
|
|
5162
|
-
var
|
|
5163
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5164
|
-
var
|
|
5165
|
-
if (Array.isArray(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5166
|
-
var
|
|
5167
|
-
var temparr = _toConsumableArray__default["default"](fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5165
|
+
var _fetchProductInfoQuer3;
|
|
5166
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.product_videos) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.length) != 0) {
|
|
5167
|
+
var _fetchProductInfoQuer4;
|
|
5168
|
+
if (Array.isArray(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.product_videos)) {
|
|
5169
|
+
var _fetchProductInfoQuer5;
|
|
5170
|
+
var temparr = _toConsumableArray__default["default"](fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.product_videos);
|
|
5168
5171
|
temparr.forEach(function (item) {
|
|
5169
5172
|
item.linkclicked = false;
|
|
5170
5173
|
});
|
|
@@ -5220,7 +5223,7 @@
|
|
|
5220
5223
|
React.useEffect(function () {
|
|
5221
5224
|
if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && ikimagecredcontext != undefined) {
|
|
5222
5225
|
if (fetchProductInfoQueryContext.data.data.productinfo != null) {
|
|
5223
|
-
var
|
|
5226
|
+
var _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8;
|
|
5224
5227
|
var tempproductimagesarray = [];
|
|
5225
5228
|
if (Array.isArray(fetchProductInfoQueryContext.data.data.productinfo.productimages)) {
|
|
5226
5229
|
fetchProductInfoQueryContext.data.data.productinfo.productimages.forEach(function (arrayItem, arrayindex) {
|
|
@@ -5256,7 +5259,7 @@
|
|
|
5256
5259
|
tempaddtocardpayloadobj.productid = fetchProductInfoQueryContext.data.data.productinfo.productid;
|
|
5257
5260
|
// setaddtocardpayloadobj({ ...tempaddtocardpayloadobj });
|
|
5258
5261
|
setRelatedProductsTagid(fetchProductInfoQueryContext.data.data.productinfo.maintagid);
|
|
5259
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5262
|
+
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.maintagid) != null && (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 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.maintagid) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.length) != 0) {
|
|
5260
5263
|
GeneralAPIMutationContext.mutate({
|
|
5261
5264
|
endpointurl: '/FetchRelatedProducts',
|
|
5262
5265
|
tagid: fetchProductInfoQueryContext.data.data.productinfo.maintagid,
|
|
@@ -5267,7 +5270,7 @@
|
|
|
5267
5270
|
}
|
|
5268
5271
|
});
|
|
5269
5272
|
}
|
|
5270
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5273
|
+
if ((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.item_type) == 'package list') {
|
|
5271
5274
|
tempaddtocardpayloadobj.item_type = 'package list';
|
|
5272
5275
|
} else {
|
|
5273
5276
|
tempaddtocardpayloadobj.item_type = 'product';
|
|
@@ -5455,8 +5458,8 @@
|
|
|
5455
5458
|
var runfunc = false;
|
|
5456
5459
|
var forcetocheckoutvalue = forcetocheckout;
|
|
5457
5460
|
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
5458
|
-
var
|
|
5459
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5461
|
+
var _fetchProductInfoQuer9;
|
|
5462
|
+
if ((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.hasvariants) == 1) {
|
|
5460
5463
|
if (addtocardpayloadobj.variantid.length != 0) {
|
|
5461
5464
|
runfunc = true;
|
|
5462
5465
|
}
|
|
@@ -5467,23 +5470,23 @@
|
|
|
5467
5470
|
NotificationManager.warning('', 'Please Choose Quantity');
|
|
5468
5471
|
}
|
|
5469
5472
|
if (runfunc == true) {
|
|
5470
|
-
var
|
|
5473
|
+
var _fetchProductInfoQuer10, _fetchProductInfoQuer11;
|
|
5471
5474
|
var tempaddtocardpayloadobj = _objectSpread$2p({}, addtocardpayloadobj);
|
|
5472
|
-
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5473
|
-
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5475
|
+
tempaddtocardpayloadobj.isproductforcedtocheckout = 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.isproductforcedtocheckout;
|
|
5476
|
+
tempaddtocardpayloadobj.vendorid = 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.vendorproviderid;
|
|
5474
5477
|
if (forcetocheckoutvalue != undefined) {
|
|
5475
5478
|
tempaddtocardpayloadobj.forcetocheckoutvalue = forcetocheckoutvalue;
|
|
5476
5479
|
}
|
|
5477
5480
|
var Extrafieldvalidationresponse = validateextrafields();
|
|
5478
5481
|
if (Extrafieldvalidationresponse.status) {
|
|
5479
|
-
var
|
|
5482
|
+
var _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17;
|
|
5480
5483
|
Pixel_EventsContext('AddToCart', {
|
|
5481
|
-
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5482
|
-
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5483
|
-
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5484
|
+
content_ids: [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.productid],
|
|
5485
|
+
content_name: (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.name_en) + ' - ' + (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : _fetchProductInfoQuer14.name_ar),
|
|
5486
|
+
content_sku: 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.sku,
|
|
5484
5487
|
content_type: 'product',
|
|
5485
|
-
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5486
|
-
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5488
|
+
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.currencyname_en,
|
|
5489
|
+
value: 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.defaultprice,
|
|
5487
5490
|
quantity: addtocardpayloadobj.quantity
|
|
5488
5491
|
});
|
|
5489
5492
|
AddtoCartContext(tempaddtocardpayloadobj);
|
|
@@ -5491,12 +5494,12 @@
|
|
|
5491
5494
|
}
|
|
5492
5495
|
};
|
|
5493
5496
|
var validateextrafields = function validateextrafields() {
|
|
5494
|
-
var
|
|
5497
|
+
var _fetchProductInfoQuer18;
|
|
5495
5498
|
var tempaddtocardpayloadobj = _objectSpread$2p({}, addtocardpayloadobj);
|
|
5496
5499
|
var status = false;
|
|
5497
5500
|
var reason = '';
|
|
5498
5501
|
var missingitemsfound = [];
|
|
5499
|
-
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5502
|
+
var extrafields = 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.productextrafields;
|
|
5500
5503
|
if ((extrafields === null || extrafields === void 0 ? void 0 : extrafields.length) == 0) {
|
|
5501
5504
|
status = true;
|
|
5502
5505
|
} else {
|
|
@@ -6092,24 +6095,24 @@
|
|
|
6092
6095
|
}
|
|
6093
6096
|
}));
|
|
6094
6097
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
6095
|
-
var
|
|
6098
|
+
var _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22;
|
|
6096
6099
|
var price = 0;
|
|
6097
6100
|
var quantityconditions = [];
|
|
6098
6101
|
var quantity = 0;
|
|
6099
6102
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
6100
6103
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
6101
6104
|
}
|
|
6102
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6105
|
+
if ((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) != undefined && (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.productquantityoptions) != null && Array.isArray(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.productquantityoptions) && (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.productquantityoptions) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : _fetchProductInfoQuer22.length) != 0) {
|
|
6103
6106
|
quantityconditions = fetchProductInfoQueryContext.data.data.productinfo.productquantityoptions;
|
|
6104
6107
|
}
|
|
6105
6108
|
if (type == 'defaultprice') {
|
|
6106
6109
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultprice;
|
|
6107
6110
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
6108
6111
|
if (variantindexcompleted != undefined) {
|
|
6109
|
-
var
|
|
6110
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6111
|
-
var
|
|
6112
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6112
|
+
var _fetchProductInfoQuer23;
|
|
6113
|
+
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.variantprice) != undefined) {
|
|
6114
|
+
var _fetchProductInfoQuer24;
|
|
6115
|
+
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.variantprice;
|
|
6113
6116
|
}
|
|
6114
6117
|
}
|
|
6115
6118
|
}
|
|
@@ -6117,10 +6120,10 @@
|
|
|
6117
6120
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultsaleprice;
|
|
6118
6121
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
6119
6122
|
if (variantindexcompleted != undefined) {
|
|
6120
|
-
var
|
|
6121
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6122
|
-
var
|
|
6123
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6123
|
+
var _fetchProductInfoQuer25;
|
|
6124
|
+
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 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.variants[variantindexcompleted]) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : _fetchProductInfoQuer25.variantsaleprice) != undefined) {
|
|
6125
|
+
var _fetchProductInfoQuer26;
|
|
6126
|
+
price = 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.variants[variantindexcompleted]) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : _fetchProductInfoQuer26.variantsaleprice;
|
|
6124
6127
|
}
|
|
6125
6128
|
}
|
|
6126
6129
|
}
|
|
@@ -6150,7 +6153,7 @@
|
|
|
6150
6153
|
}
|
|
6151
6154
|
};
|
|
6152
6155
|
var getQuantityCondition = function getQuantityCondition() {
|
|
6153
|
-
var
|
|
6156
|
+
var _fetchProductInfoQuer27;
|
|
6154
6157
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6155
6158
|
"class": "col-lg-12 p-0",
|
|
6156
6159
|
style: {
|
|
@@ -6180,12 +6183,12 @@
|
|
|
6180
6183
|
height: 1,
|
|
6181
6184
|
background: sectionproperties.pricelisttitlecolor
|
|
6182
6185
|
}
|
|
6183
|
-
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6184
|
-
var
|
|
6186
|
+
})), 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.map(function (item, index) {
|
|
6187
|
+
var _fetchProductInfoQuer28;
|
|
6185
6188
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6186
6189
|
className: "col-lg-12 p-0 w-100 d-flex align-items-center",
|
|
6187
6190
|
style: {
|
|
6188
|
-
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6191
|
+
marginBottom: (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 || (_fetchProductInfoQuer28 = _fetchProductInfoQuer28.productquantityoptions) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : _fetchProductInfoQuer28.length) - 1 != index ? '1rem' : 0
|
|
6189
6192
|
}
|
|
6190
6193
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6191
6194
|
"class": "d-flex align-items-center",
|
|
@@ -6219,7 +6222,7 @@
|
|
|
6219
6222
|
})));
|
|
6220
6223
|
};
|
|
6221
6224
|
var StoreInfo = function StoreInfo() {
|
|
6222
|
-
var
|
|
6225
|
+
var _fetchProductInfoQuer29, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i6;
|
|
6223
6226
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6224
6227
|
"class": "row m-0 w-100"
|
|
6225
6228
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -6266,7 +6269,7 @@
|
|
|
6266
6269
|
style: {
|
|
6267
6270
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
6268
6271
|
}
|
|
6269
|
-
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6272
|
+
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showpricinglist == 'Show' && (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 || (_fetchProductInfoQuer29 = _fetchProductInfoQuer29.productquantityoptions) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : _fetchProductInfoQuer29.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6270
6273
|
"class": "col-lg-12 p-0 mb-4"
|
|
6271
6274
|
}, getQuantityCondition()), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6272
6275
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
@@ -6442,7 +6445,7 @@
|
|
|
6442
6445
|
style: {
|
|
6443
6446
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
6444
6447
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0,
|
|
6445
|
-
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && sectionproperties.
|
|
6448
|
+
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (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 ? 'flex' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' ? 'none' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && sectionproperties.descriptionposition != 'Bottom' && (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.product_videos) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : _fetchProductInfoQuer36.length) == 0 ? 'none' : 'flex'
|
|
6446
6449
|
}
|
|
6447
6450
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6448
6451
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
|
|
@@ -6505,12 +6508,12 @@
|
|
|
6505
6508
|
onClick: function onClick() {
|
|
6506
6509
|
settabname('refundpolicytab');
|
|
6507
6510
|
}
|
|
6508
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6511
|
+
}), (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.product_videos) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : _fetchProductInfoQuer37.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
6509
6512
|
label: langdetect == 'en' ? sectionproperties.videostitleen : sectionproperties.videostitlear,
|
|
6510
6513
|
onClick: function onClick() {
|
|
6511
6514
|
settabname('videostab');
|
|
6512
6515
|
}
|
|
6513
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6516
|
+
}), (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 ? void 0 : _fetchProductInfoQuer38.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
6514
6517
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
6515
6518
|
onClick: function onClick() {
|
|
6516
6519
|
settabname('reviewstab');
|
|
@@ -6565,12 +6568,12 @@
|
|
|
6565
6568
|
onClick: function onClick() {
|
|
6566
6569
|
settabname('refundpolicytab');
|
|
6567
6570
|
}
|
|
6568
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6571
|
+
}), (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.product_videos) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
6569
6572
|
label: langdetect == 'en' ? 'Videos' : 'فيديوهات',
|
|
6570
6573
|
onClick: function onClick() {
|
|
6571
6574
|
settabname('videostab');
|
|
6572
6575
|
}
|
|
6573
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6576
|
+
}), (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 ? void 0 : _fetchProductInfoQuer40.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
6574
6577
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
6575
6578
|
onClick: function onClick() {
|
|
6576
6579
|
settabname('reviewstab');
|
|
@@ -57958,7 +57961,15 @@
|
|
|
57958
57961
|
boxShadow: ' 0 0 10px ' + sectionproperties.innerSectionShadowColor
|
|
57959
57962
|
},
|
|
57960
57963
|
onClick: function onClick() {
|
|
57961
|
-
if (cardinfoitem.iscardclickable == 'Yes') {
|
|
57964
|
+
// if (cardinfoitem.iscardclickable == 'Yes') {
|
|
57965
|
+
// window.open(cardinfoitem.btnlink, '_blank');
|
|
57966
|
+
// }
|
|
57967
|
+
if (cardinfoitem.btntype == 'Web Product Link') {
|
|
57968
|
+
routingcountext(cardinfoitem.btnlink, false, '');
|
|
57969
|
+
} else if (cardinfoitem.iscardclickable == 'Yes' && cardinfoitem.clickabletabtype == 'Same Tab' && cardinfoitem.btntype != 'Web Product Link') {
|
|
57970
|
+
// window.open(cardinfoitem.btnlink, '_target');
|
|
57971
|
+
routingcountext(cardinfoitem.btnlink, false, '');
|
|
57972
|
+
} else if (cardinfoitem.iscardclickable == 'Yes' && cardinfoitem.clickabletabtype == 'New Tab' && cardinfoitem.btntype != 'Web Product Link') {
|
|
57962
57973
|
window.open(cardinfoitem.btnlink, '_blank');
|
|
57963
57974
|
}
|
|
57964
57975
|
}
|