tabexseriescomponents 0.2.767 → 0.2.769
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 +61 -54
- package/dist/index.esm.js +61 -54
- package/dist/index.umd.js +63 -56
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -2329,7 +2329,7 @@
|
|
|
2329
2329
|
function ownKeys$2A(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; }
|
|
2330
2330
|
function _objectSpread$2A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2A(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2331
2331
|
var Product_itemtype = function Product_itemtype(props) {
|
|
2332
|
-
var _authdetailsContext$i, _authdetailsContext$i2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer32, _fetchProductInfoQuer43, _fetchProductInfoQuer44, _fetchProductInfoQuer46, _fetchProductInfoQuer47, _fetchProductInfoQuer48, _fetchProductInfoQuer50, _fetchProductInfoQuer51, _fetchProductInfoQuer52, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _fetchProductInfoQuer55, _fetchProductInfoQuer56, _fetchProductInfoQuer57, _fetchProductInfoQuer58, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer59, _fetchProductInfoQuer60, _fetchProductInfoQuer61, _fetchProductInfoQuer62, _fetchProductInfoQuer63, _fetchProductInfoQuer64, _fetchProductInfoQuer65, _fetchProductInfoQuer66, _fetchProductInfoQuer67, _fetchProductInfoQuer68, _fetchProductInfoQuer69, _fetchProductInfoQuer70, _fetchProductInfoQuer71, _fetchProductInfoQuer72, _sizeguideimage$;
|
|
2332
|
+
var _authdetailsContext$i, _authdetailsContext$i2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer32, _authdetailsContext$i3, _fetchProductInfoQuer43, _fetchProductInfoQuer44, _fetchProductInfoQuer46, _fetchProductInfoQuer47, _fetchProductInfoQuer48, _fetchProductInfoQuer50, _fetchProductInfoQuer51, _fetchProductInfoQuer52, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _fetchProductInfoQuer55, _fetchProductInfoQuer56, _fetchProductInfoQuer57, _fetchProductInfoQuer58, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer59, _fetchProductInfoQuer60, _fetchProductInfoQuer61, _fetchProductInfoQuer62, _fetchProductInfoQuer63, _fetchProductInfoQuer64, _fetchProductInfoQuer65, _fetchProductInfoQuer66, _fetchProductInfoQuer67, _fetchProductInfoQuer68, _fetchProductInfoQuer69, _fetchProductInfoQuer70, _fetchProductInfoQuer71, _fetchProductInfoQuer72, _sizeguideimage$;
|
|
2333
2333
|
var lang = props.actions.lang;
|
|
2334
2334
|
var langdetect = props.actions.langdetect;
|
|
2335
2335
|
var srcfromprops = props.actions.srcfromprops;
|
|
@@ -3140,7 +3140,7 @@
|
|
|
3140
3140
|
size: sectionproperties.remove_quantitybtn_textfontsize
|
|
3141
3141
|
}))), sectionproperties.quantitybtneditable == 'No' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3142
3142
|
className: "".concat(productinfo_cssstyles.quantitybtn_text)
|
|
3143
|
-
}, parseFloat(addtocardpayloadobj.quantity).toFixed(2)), sectionproperties.quantitybtneditable == 'No' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3143
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.contactinfo.instid) == '66d6de1a1e04a' ? parseFloat(addtocardpayloadobj.quantity).toFixed(2) : parseInt(addtocardpayloadobj.quantity)), sectionproperties.quantitybtneditable == 'No' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3144
3144
|
className: "".concat(productinfo_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
3145
3145
|
onClick: function onClick() {
|
|
3146
3146
|
var _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41;
|
|
@@ -6477,7 +6477,7 @@
|
|
|
6477
6477
|
function ownKeys$2w(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6478
6478
|
function _objectSpread$2w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2w(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6479
6479
|
var Productinfo = function Productinfo(props) {
|
|
6480
|
-
var _css, _ref, _ref2, _ref3,
|
|
6480
|
+
var _css, _ref, _ref2, _ref3, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer51, _fetchProductInfoQuer52, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
|
|
6481
6481
|
var _useState = React.useState({}),
|
|
6482
6482
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
6483
6483
|
ProductInfoObj = _useState2[0],
|
|
@@ -6784,8 +6784,15 @@
|
|
|
6784
6784
|
tempaddtocardpayloadobj.item_type = 'product';
|
|
6785
6785
|
}
|
|
6786
6786
|
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.productinfo) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.quantitystepincrearse) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer17 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.data) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.productinfo) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : _fetchProductInfoQuer17.quantitystepincrearse) != null && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer18 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.productinfo) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : _fetchProductInfoQuer18.quantitystepincrearse) != 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer19 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.productinfo) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : _fetchProductInfoQuer19.quantitystepincrearse) != '') {
|
|
6787
|
-
var
|
|
6788
|
-
|
|
6787
|
+
var _authdetailsContext$i;
|
|
6788
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.contactinfo.instid) == '66d6de1a1e04a') {
|
|
6789
|
+
var _fetchProductInfoQuer20;
|
|
6790
|
+
quantitystepincrearse = parseFloat(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer20 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.productinfo) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : _fetchProductInfoQuer20.quantitystepincrearse);
|
|
6791
|
+
} else {
|
|
6792
|
+
var _fetchProductInfoQuer21;
|
|
6793
|
+
quantitystepincrearse = parseInt(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer21 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.productinfo) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : _fetchProductInfoQuer21.quantitystepincrearse);
|
|
6794
|
+
}
|
|
6795
|
+
// quantitystepincrearse = parseFloat(fetchProductInfoQueryContext?.data?.data?.productinfo?.quantitystepincrearse);
|
|
6789
6796
|
}
|
|
6790
6797
|
tempaddtocardpayloadobj.quantity = quantitystepincrearse;
|
|
6791
6798
|
setaddtocardpayloadobj(_objectSpread$2w({}, tempaddtocardpayloadobj));
|
|
@@ -6991,15 +6998,15 @@
|
|
|
6991
6998
|
var forcetocheckoutvalue = forcetocheckout;
|
|
6992
6999
|
// alert(addtocardpayloadobj.quantity + 'sad');
|
|
6993
7000
|
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
6994
|
-
var
|
|
6995
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7001
|
+
var _fetchProductInfoQuer22;
|
|
7002
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer22 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer22 === void 0 || (_fetchProductInfoQuer22 = _fetchProductInfoQuer22.data) === null || _fetchProductInfoQuer22 === void 0 || (_fetchProductInfoQuer22 = _fetchProductInfoQuer22.productinfo) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : _fetchProductInfoQuer22.hasvariants) == 1) {
|
|
6996
7003
|
if (addtocardpayloadobj.variantid.length != 0) {
|
|
6997
7004
|
runfunc = true;
|
|
6998
7005
|
} else {
|
|
6999
|
-
var _authdetailsContext$
|
|
7006
|
+
var _authdetailsContext$i2;
|
|
7000
7007
|
// here
|
|
7001
7008
|
setvariantnotchosendisclaimer('This field is required');
|
|
7002
|
-
NotificationManager.warning('', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7009
|
+
NotificationManager.warning('', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.contactinfo.instid) == '674f0617c7811' ? 'Please Choose Size & Color' : 'Please Choose Product Options');
|
|
7003
7010
|
}
|
|
7004
7011
|
} else {
|
|
7005
7012
|
runfunc = true;
|
|
@@ -7008,16 +7015,16 @@
|
|
|
7008
7015
|
NotificationManager.warning('', 'Please Choose Quantity');
|
|
7009
7016
|
}
|
|
7010
7017
|
if (runfunc == true) {
|
|
7011
|
-
var
|
|
7018
|
+
var _fetchProductInfoQuer23, _fetchProductInfoQuer24;
|
|
7012
7019
|
var tempaddtocardpayloadobj = _objectSpread$2w({}, addtocardpayloadobj);
|
|
7013
|
-
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7014
|
-
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7020
|
+
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer23 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer23 === void 0 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.data) === null || _fetchProductInfoQuer23 === void 0 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.productinfo) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : _fetchProductInfoQuer23.isproductforcedtocheckout;
|
|
7021
|
+
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer24 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.productinfo) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : _fetchProductInfoQuer24.vendorproviderid;
|
|
7015
7022
|
if (forcetocheckoutvalue != undefined) {
|
|
7016
7023
|
tempaddtocardpayloadobj.forcetocheckoutvalue = forcetocheckoutvalue;
|
|
7017
7024
|
}
|
|
7018
7025
|
var Extrafieldvalidationresponse = validateextrafields();
|
|
7019
7026
|
if (Extrafieldvalidationresponse.status) {
|
|
7020
|
-
var
|
|
7027
|
+
var _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30;
|
|
7021
7028
|
// Pixel_EventsContext('AddToCart', {
|
|
7022
7029
|
// content_ids: [fetchProductInfoQueryContext?.data?.data?.productinfo?.productid],
|
|
7023
7030
|
// content_name: fetchProductInfoQueryContext?.data?.data?.productinfo?.name_en + ' - ' + fetchProductInfoQueryContext?.data?.data?.productinfo?.name_ar,
|
|
@@ -7028,17 +7035,17 @@
|
|
|
7028
7035
|
// quantity: addtocardpayloadobj.quantity,
|
|
7029
7036
|
// });
|
|
7030
7037
|
var finalprice = 0;
|
|
7031
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7038
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer25 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer25 === void 0 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.data) === null || _fetchProductInfoQuer25 === void 0 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.productinfo) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : _fetchProductInfoQuer25.hassale) == 1) {
|
|
7032
7039
|
finalprice = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
|
|
7033
7040
|
} else {
|
|
7034
7041
|
finalprice = getprice_discountpriceprops('defaultprice', 0, variantindexcompleted);
|
|
7035
7042
|
}
|
|
7036
7043
|
Pixel_EventsContext('AddToCart', {
|
|
7037
|
-
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7038
|
-
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7039
|
-
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7044
|
+
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer26 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer26 === void 0 || (_fetchProductInfoQuer26 = _fetchProductInfoQuer26.data) === null || _fetchProductInfoQuer26 === void 0 || (_fetchProductInfoQuer26 = _fetchProductInfoQuer26.productinfo) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : _fetchProductInfoQuer26.productid],
|
|
7045
|
+
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer27 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer27 === void 0 || (_fetchProductInfoQuer27 = _fetchProductInfoQuer27.data) === null || _fetchProductInfoQuer27 === void 0 || (_fetchProductInfoQuer27 = _fetchProductInfoQuer27.productinfo) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : _fetchProductInfoQuer27.name_en) + ' - ' + (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer28 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer28 === void 0 || (_fetchProductInfoQuer28 = _fetchProductInfoQuer28.data) === null || _fetchProductInfoQuer28 === void 0 || (_fetchProductInfoQuer28 = _fetchProductInfoQuer28.productinfo) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : _fetchProductInfoQuer28.name_ar),
|
|
7046
|
+
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer29 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer29 === void 0 || (_fetchProductInfoQuer29 = _fetchProductInfoQuer29.data) === null || _fetchProductInfoQuer29 === void 0 || (_fetchProductInfoQuer29 = _fetchProductInfoQuer29.productinfo) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : _fetchProductInfoQuer29.sku,
|
|
7040
7047
|
content_type: 'product',
|
|
7041
|
-
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7048
|
+
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer30 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer30 === void 0 || (_fetchProductInfoQuer30 = _fetchProductInfoQuer30.data) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : _fetchProductInfoQuer30.currencyname_en,
|
|
7042
7049
|
value: finalprice,
|
|
7043
7050
|
quantity: addtocardpayloadobj.quantity
|
|
7044
7051
|
});
|
|
@@ -7047,12 +7054,12 @@
|
|
|
7047
7054
|
}
|
|
7048
7055
|
};
|
|
7049
7056
|
var validateextrafields = function validateextrafields() {
|
|
7050
|
-
var
|
|
7057
|
+
var _fetchProductInfoQuer31;
|
|
7051
7058
|
var tempaddtocardpayloadobj = _objectSpread$2w({}, addtocardpayloadobj);
|
|
7052
7059
|
var status = false;
|
|
7053
7060
|
var reason = '';
|
|
7054
7061
|
var missingitemsfound = [];
|
|
7055
|
-
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7062
|
+
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer31 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer31 === void 0 || (_fetchProductInfoQuer31 = _fetchProductInfoQuer31.data) === null || _fetchProductInfoQuer31 === void 0 || (_fetchProductInfoQuer31 = _fetchProductInfoQuer31.productinfo) === null || _fetchProductInfoQuer31 === void 0 ? void 0 : _fetchProductInfoQuer31.productextrafields;
|
|
7056
7063
|
if ((extrafields === null || extrafields === void 0 ? void 0 : extrafields.length) == 0) {
|
|
7057
7064
|
status = true;
|
|
7058
7065
|
} else {
|
|
@@ -7092,9 +7099,9 @@
|
|
|
7092
7099
|
};
|
|
7093
7100
|
};
|
|
7094
7101
|
var returnpolicyobj = function returnpolicyobj(policytype) {
|
|
7095
|
-
var _authdetailsContext$
|
|
7102
|
+
var _authdetailsContext$i3;
|
|
7096
7103
|
var policyobj = {};
|
|
7097
|
-
authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7104
|
+
authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 || (_authdetailsContext$i3 = _authdetailsContext$i3.instpolicies) === null || _authdetailsContext$i3 === void 0 || _authdetailsContext$i3.forEach(function (item, index) {
|
|
7098
7105
|
if (item.policytype == policytype) {
|
|
7099
7106
|
policyobj = item;
|
|
7100
7107
|
}
|
|
@@ -7668,23 +7675,23 @@
|
|
|
7668
7675
|
}
|
|
7669
7676
|
}));
|
|
7670
7677
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
7671
|
-
var
|
|
7678
|
+
var _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35;
|
|
7672
7679
|
var price = 0;
|
|
7673
7680
|
var quantity = 0;
|
|
7674
7681
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
7675
7682
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
7676
7683
|
}
|
|
7677
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7684
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer32 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer32 === void 0 || (_fetchProductInfoQuer32 = _fetchProductInfoQuer32.data) === null || _fetchProductInfoQuer32 === void 0 || (_fetchProductInfoQuer32 = _fetchProductInfoQuer32.productinfo) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : _fetchProductInfoQuer32.productquantityoptions) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer33 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer33 === void 0 || (_fetchProductInfoQuer33 = _fetchProductInfoQuer33.data) === null || _fetchProductInfoQuer33 === void 0 || (_fetchProductInfoQuer33 = _fetchProductInfoQuer33.productinfo) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : _fetchProductInfoQuer33.productquantityoptions) != null && Array.isArray(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer34 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer34 === void 0 || (_fetchProductInfoQuer34 = _fetchProductInfoQuer34.data) === null || _fetchProductInfoQuer34 === void 0 || (_fetchProductInfoQuer34 = _fetchProductInfoQuer34.productinfo) === null || _fetchProductInfoQuer34 === void 0 ? void 0 : _fetchProductInfoQuer34.productquantityoptions) && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer35 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer35 === void 0 || (_fetchProductInfoQuer35 = _fetchProductInfoQuer35.data) === null || _fetchProductInfoQuer35 === void 0 || (_fetchProductInfoQuer35 = _fetchProductInfoQuer35.productinfo) === null || _fetchProductInfoQuer35 === void 0 || (_fetchProductInfoQuer35 = _fetchProductInfoQuer35.productquantityoptions) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : _fetchProductInfoQuer35.length) != 0) {
|
|
7678
7685
|
fetchProductInfoQueryContext.data.data.productinfo.productquantityoptions;
|
|
7679
7686
|
}
|
|
7680
7687
|
if (type == 'defaultprice') {
|
|
7681
7688
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultprice;
|
|
7682
7689
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
7683
7690
|
if (variantindexcompleted != undefined) {
|
|
7684
|
-
var
|
|
7685
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7686
|
-
var
|
|
7687
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7691
|
+
var _fetchProductInfoQuer36;
|
|
7692
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer36 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.productinfo) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.variants[variantindexcompleted]) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : _fetchProductInfoQuer36.variantprice) != undefined) {
|
|
7693
|
+
var _fetchProductInfoQuer37;
|
|
7694
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer37 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.productinfo) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.variants[variantindexcompleted]) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : _fetchProductInfoQuer37.variantprice;
|
|
7688
7695
|
}
|
|
7689
7696
|
}
|
|
7690
7697
|
}
|
|
@@ -7692,10 +7699,10 @@
|
|
|
7692
7699
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultsaleprice;
|
|
7693
7700
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
7694
7701
|
if (variantindexcompleted != undefined) {
|
|
7695
|
-
var
|
|
7696
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7697
|
-
var
|
|
7698
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7702
|
+
var _fetchProductInfoQuer38;
|
|
7703
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer38 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer38 === void 0 || (_fetchProductInfoQuer38 = _fetchProductInfoQuer38.data) === null || _fetchProductInfoQuer38 === void 0 || (_fetchProductInfoQuer38 = _fetchProductInfoQuer38.productinfo) === null || _fetchProductInfoQuer38 === void 0 || (_fetchProductInfoQuer38 = _fetchProductInfoQuer38.variants[variantindexcompleted]) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : _fetchProductInfoQuer38.variantsaleprice) != undefined) {
|
|
7704
|
+
var _fetchProductInfoQuer39;
|
|
7705
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer39 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.data) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.productinfo) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.variants[variantindexcompleted]) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.variantsaleprice;
|
|
7699
7706
|
}
|
|
7700
7707
|
}
|
|
7701
7708
|
}
|
|
@@ -7730,7 +7737,7 @@
|
|
|
7730
7737
|
}
|
|
7731
7738
|
};
|
|
7732
7739
|
var getQuantityCondition = function getQuantityCondition() {
|
|
7733
|
-
var
|
|
7740
|
+
var _fetchProductInfoQuer40;
|
|
7734
7741
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7735
7742
|
"class": "col-lg-12 p-0",
|
|
7736
7743
|
style: {
|
|
@@ -7760,12 +7767,12 @@
|
|
|
7760
7767
|
height: 1,
|
|
7761
7768
|
background: sectionproperties.pricelisttitlecolor
|
|
7762
7769
|
}
|
|
7763
|
-
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7764
|
-
var
|
|
7770
|
+
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer40 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.data) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.productinfo) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.productquantityoptions) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : _fetchProductInfoQuer40.map(function (item, index) {
|
|
7771
|
+
var _fetchProductInfoQuer41;
|
|
7765
7772
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7766
7773
|
className: "col-lg-12 p-0 w-100 d-flex align-items-center",
|
|
7767
7774
|
style: {
|
|
7768
|
-
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7775
|
+
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer41 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer41 === void 0 || (_fetchProductInfoQuer41 = _fetchProductInfoQuer41.data) === null || _fetchProductInfoQuer41 === void 0 || (_fetchProductInfoQuer41 = _fetchProductInfoQuer41.productinfo) === null || _fetchProductInfoQuer41 === void 0 || (_fetchProductInfoQuer41 = _fetchProductInfoQuer41.productquantityoptions) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : _fetchProductInfoQuer41.length) - 1 != index ? '1rem' : 0
|
|
7769
7776
|
}
|
|
7770
7777
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7771
7778
|
"class": "d-flex align-items-center",
|
|
@@ -7799,7 +7806,7 @@
|
|
|
7799
7806
|
})));
|
|
7800
7807
|
};
|
|
7801
7808
|
var StoreInfo = function StoreInfo(position) {
|
|
7802
|
-
var
|
|
7809
|
+
var _fetchProductInfoQuer42, _authdetailsContext$i5, _authdetailsContext$i6, _authdetailsContext$i8;
|
|
7803
7810
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7804
7811
|
"class": "row m-0 w-100"
|
|
7805
7812
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -7846,7 +7853,7 @@
|
|
|
7846
7853
|
style: {
|
|
7847
7854
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
7848
7855
|
}
|
|
7849
|
-
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7856
|
+
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer42 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.data) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.productinfo) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.productquantityoptions) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : _fetchProductInfoQuer42.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7850
7857
|
"class": "col-lg-12 p-0 mb-4"
|
|
7851
7858
|
}, getQuantityCondition()), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7852
7859
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
@@ -7874,8 +7881,8 @@
|
|
|
7874
7881
|
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber))), sectionproperties.showfooteremail == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7875
7882
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
7876
7883
|
onClick: function onClick() {
|
|
7877
|
-
var _authdetailsContext$
|
|
7878
|
-
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7884
|
+
var _authdetailsContext$i4;
|
|
7885
|
+
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 || (_authdetailsContext$i4 = _authdetailsContext$i4.contactinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.email), '_self');
|
|
7879
7886
|
}
|
|
7880
7887
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7881
7888
|
"class": productinfo_cssstyles.iconContainer + ' iconContainer '
|
|
@@ -7895,7 +7902,7 @@
|
|
|
7895
7902
|
style: {
|
|
7896
7903
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
7897
7904
|
}
|
|
7898
|
-
}, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7905
|
+
}, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 || (_authdetailsContext$i5 = _authdetailsContext$i5.contactinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.email)))), sectionproperties.storeinfostyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7899
7906
|
"class": "row m-0 w-100"
|
|
7900
7907
|
}, sectionproperties.showfooterphonenumber == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7901
7908
|
"class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
|
|
@@ -7906,25 +7913,25 @@
|
|
|
7906
7913
|
}
|
|
7907
7914
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7908
7915
|
"class": "m-0 p-0"
|
|
7909
|
-
}, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7916
|
+
}, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 || (_authdetailsContext$i6 = _authdetailsContext$i6.contactinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.email) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7910
7917
|
"class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
|
|
7911
7918
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7912
7919
|
"class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
|
|
7913
7920
|
onClick: function onClick() {
|
|
7914
|
-
var _authdetailsContext$
|
|
7915
|
-
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7921
|
+
var _authdetailsContext$i7;
|
|
7922
|
+
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 || (_authdetailsContext$i7 = _authdetailsContext$i7.contactinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.email), '_self');
|
|
7916
7923
|
}
|
|
7917
7924
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7918
7925
|
"class": "m-0 p-0"
|
|
7919
|
-
}, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7926
|
+
}, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.whatsappnumber) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7920
7927
|
"class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
|
|
7921
7928
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7922
7929
|
"class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
|
|
7923
7930
|
onClick: function onClick() {
|
|
7924
|
-
var _authdetailsContext$
|
|
7925
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7926
|
-
var _authdetailsContext$
|
|
7927
|
-
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7931
|
+
var _authdetailsContext$i9;
|
|
7932
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.whatsappnumber) != null) {
|
|
7933
|
+
var _authdetailsContext$i10;
|
|
7934
|
+
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.whatsappnumber), '_blank');
|
|
7928
7935
|
}
|
|
7929
7936
|
}
|
|
7930
7937
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
@@ -8034,7 +8041,7 @@
|
|
|
8034
8041
|
style: {
|
|
8035
8042
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
8036
8043
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0,
|
|
8037
|
-
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8044
|
+
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer48 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer48 === void 0 || (_fetchProductInfoQuer48 = _fetchProductInfoQuer48.data) === null || _fetchProductInfoQuer48 === void 0 || (_fetchProductInfoQuer48 = _fetchProductInfoQuer48.productinfo) === null || _fetchProductInfoQuer48 === void 0 || (_fetchProductInfoQuer48 = _fetchProductInfoQuer48.product_videos) === null || _fetchProductInfoQuer48 === void 0 ? void 0 : _fetchProductInfoQuer48.length) != 0 ? 'flex' : (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer49 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer49 === void 0 || (_fetchProductInfoQuer49 = _fetchProductInfoQuer49.data) === null || _fetchProductInfoQuer49 === void 0 || (_fetchProductInfoQuer49 = _fetchProductInfoQuer49.productinfo) === null || _fetchProductInfoQuer49 === void 0 ? void 0 : _fetchProductInfoQuer49.productcanrate) == 1 ? 'flex' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' ? 'none' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && sectionproperties.descriptionposition != 'Bottom' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer50 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer50 === void 0 || (_fetchProductInfoQuer50 = _fetchProductInfoQuer50.data) === null || _fetchProductInfoQuer50 === void 0 || (_fetchProductInfoQuer50 = _fetchProductInfoQuer50.productinfo) === null || _fetchProductInfoQuer50 === void 0 || (_fetchProductInfoQuer50 = _fetchProductInfoQuer50.product_videos) === null || _fetchProductInfoQuer50 === void 0 ? void 0 : _fetchProductInfoQuer50.length) == 0 ? 'none' : 'flex'
|
|
8038
8045
|
}
|
|
8039
8046
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8040
8047
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
|
|
@@ -8096,12 +8103,12 @@
|
|
|
8096
8103
|
onClick: function onClick() {
|
|
8097
8104
|
settabname('refundpolicytab');
|
|
8098
8105
|
}
|
|
8099
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8106
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer51 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer51 === void 0 || (_fetchProductInfoQuer51 = _fetchProductInfoQuer51.data) === null || _fetchProductInfoQuer51 === void 0 || (_fetchProductInfoQuer51 = _fetchProductInfoQuer51.productinfo) === null || _fetchProductInfoQuer51 === void 0 || (_fetchProductInfoQuer51 = _fetchProductInfoQuer51.product_videos) === null || _fetchProductInfoQuer51 === void 0 ? void 0 : _fetchProductInfoQuer51.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
8100
8107
|
label: langdetect == 'en' ? sectionproperties.videostitleen : sectionproperties.videostitlear,
|
|
8101
8108
|
onClick: function onClick() {
|
|
8102
8109
|
settabname('videostab');
|
|
8103
8110
|
}
|
|
8104
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8111
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer52 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer52 === void 0 || (_fetchProductInfoQuer52 = _fetchProductInfoQuer52.data) === null || _fetchProductInfoQuer52 === void 0 || (_fetchProductInfoQuer52 = _fetchProductInfoQuer52.productinfo) === null || _fetchProductInfoQuer52 === void 0 ? void 0 : _fetchProductInfoQuer52.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
8105
8112
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
8106
8113
|
onClick: function onClick() {
|
|
8107
8114
|
settabname('reviewstab');
|
|
@@ -8155,12 +8162,12 @@
|
|
|
8155
8162
|
onClick: function onClick() {
|
|
8156
8163
|
settabname('refundpolicytab');
|
|
8157
8164
|
}
|
|
8158
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8165
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer53 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer53 === void 0 || (_fetchProductInfoQuer53 = _fetchProductInfoQuer53.data) === null || _fetchProductInfoQuer53 === void 0 || (_fetchProductInfoQuer53 = _fetchProductInfoQuer53.productinfo) === null || _fetchProductInfoQuer53 === void 0 || (_fetchProductInfoQuer53 = _fetchProductInfoQuer53.product_videos) === null || _fetchProductInfoQuer53 === void 0 ? void 0 : _fetchProductInfoQuer53.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
8159
8166
|
label: langdetect == 'en' ? 'Videos' : 'فيديوهات',
|
|
8160
8167
|
onClick: function onClick() {
|
|
8161
8168
|
settabname('videostab');
|
|
8162
8169
|
}
|
|
8163
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8170
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer54 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer54 === void 0 || (_fetchProductInfoQuer54 = _fetchProductInfoQuer54.data) === null || _fetchProductInfoQuer54 === void 0 || (_fetchProductInfoQuer54 = _fetchProductInfoQuer54.productinfo) === null || _fetchProductInfoQuer54 === void 0 ? void 0 : _fetchProductInfoQuer54.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
8164
8171
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
8165
8172
|
onClick: function onClick() {
|
|
8166
8173
|
settabname('reviewstab');
|
|
@@ -28843,13 +28850,13 @@
|
|
|
28843
28850
|
position: 'relative'
|
|
28844
28851
|
}
|
|
28845
28852
|
}, sectionproperties.showfloatingwaicon == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28846
|
-
"class": header_cssstyles.floatingwaicon + ' allcentered
|
|
28853
|
+
"class": header_cssstyles.floatingwaicon + ' allcentered cursor-pointer '
|
|
28847
28854
|
}, /*#__PURE__*/React__default["default"].createElement("a", {
|
|
28848
28855
|
href: langdetect == 'en' ? whatsappUrl : whatsappUrl_ar,
|
|
28849
28856
|
target: "_blank",
|
|
28850
28857
|
rel: "noopener noreferrer",
|
|
28851
28858
|
style: {},
|
|
28852
|
-
"class": header_cssstyles.waicon + ' allcentered
|
|
28859
|
+
"class": header_cssstyles.waicon + ' allcentered cursor-pointer '
|
|
28853
28860
|
}, /*#__PURE__*/React__default["default"].createElement(FaWhatsapp.FaWhatsapp, {
|
|
28854
28861
|
size: sectionproperties.floatingwhatsappiconiconfontsize
|
|
28855
28862
|
}), sectionproperties.floatingwhatsappiconfontsize != 0 && /*#__PURE__*/React__default["default"].createElement("span", {
|