tabexseriescomponents 0.0.583 → 0.0.585
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 +108 -57
- package/dist/index.esm.js +108 -57
- package/dist/index.umd.js +108 -57
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2032,9 +2032,14 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
2032
2032
|
fontWeight: sectionproperties.defaultSalePriceFontWeight,
|
|
2033
2033
|
color: sectionproperties.defaultSalePriceColor
|
|
2034
2034
|
}
|
|
2035
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", getprice_discountpriceprops('defaultprice', 0, variantindexcompleted), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && sectionproperties.showpill == 'Show' &&
|
|
2035
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", getprice_discountpriceprops('defaultprice', 0, variantindexcompleted), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && sectionproperties.showpill == 'Show' && variantindexcompleted.length == 0 && /*#__PURE__*/React.createElement("div", {
|
|
2036
2036
|
"class": "col-lg-12 p-0 d-flex align-items-center justift-content-start"
|
|
2037
|
-
}, SaleCounterPill()), fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1 && variantindexcompleted != undefined && (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.variants[variantindexcompleted]) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.hassale) == 1 &&
|
|
2037
|
+
}, SaleCounterPill()), fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1 && variantindexcompleted != undefined && (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.variants[variantindexcompleted]) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.hassale) == 1 &&
|
|
2038
|
+
/*#__PURE__*/
|
|
2039
|
+
// fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1 &&
|
|
2040
|
+
// variantindexcompleted != undefined &&
|
|
2041
|
+
// fetchProductInfoQueryContext?.data?.data?.productinfo?.variants[variantindexcompleted]?.hassale == 1 &&
|
|
2042
|
+
React.createElement("div", {
|
|
2038
2043
|
"class": "col-lg-12 p-0 d-flex align-items-center justift-content-start"
|
|
2039
2044
|
}, SaleCounterPill()))), sectionproperties.showcashbackcontainer == 'Show' && (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.productcashbackvalue) > 0 && /*#__PURE__*/React.createElement("div", {
|
|
2040
2045
|
"class": "col-lg-12 p-0 d-flex justify-content-start mt-1 mb-2"
|
|
@@ -2362,7 +2367,7 @@ var DescriptionContent = function DescriptionContent(props) {
|
|
|
2362
2367
|
function ownKeys$2u(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2363
2368
|
function _objectSpread$2u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2364
2369
|
var Product_itemtype = function Product_itemtype(props) {
|
|
2365
|
-
var _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26,
|
|
2370
|
+
var _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer37, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer43, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer47, _fetchProductInfoQuer48, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _fetchProductInfoQuer51, _fetchProductInfoQuer52, _fetchProductInfoQuer53;
|
|
2366
2371
|
var lang = props.actions.lang;
|
|
2367
2372
|
var langdetect = props.actions.langdetect;
|
|
2368
2373
|
var srcfromprops = props.actions.srcfromprops;
|
|
@@ -2935,11 +2940,40 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2935
2940
|
}, sectionproperties.quantitybtneditable == 'No' && /*#__PURE__*/React.createElement("span", {
|
|
2936
2941
|
className: "".concat(productinfo_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
2937
2942
|
onClick: function onClick() {
|
|
2943
|
+
var _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30;
|
|
2944
|
+
var quantitystepincrearse = 1;
|
|
2945
|
+
// var finalquantity = 0;
|
|
2938
2946
|
var tempaddtocardpayloadobj = _objectSpread$2u({}, addtocardpayloadobj);
|
|
2939
|
-
if (
|
|
2940
|
-
|
|
2947
|
+
if ((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.quantitystepincrearse) != undefined && (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.quantitystepincrearse) != null && (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.quantitystepincrearse) != 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer30 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer30 === void 0 || (_fetchProductInfoQuer30 = _fetchProductInfoQuer30.data) === null || _fetchProductInfoQuer30 === void 0 || (_fetchProductInfoQuer30 = _fetchProductInfoQuer30.productinfo) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : _fetchProductInfoQuer30.quantitystepincrearse) != '') {
|
|
2948
|
+
var _fetchProductInfoQuer31;
|
|
2949
|
+
quantitystepincrearse = parseInt(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.quantitystepincrearse);
|
|
2950
|
+
}
|
|
2951
|
+
var finalquantity = tempaddtocardpayloadobj.quantity - quantitystepincrearse;
|
|
2952
|
+
if (finalquantity >= 0) {
|
|
2953
|
+
tempaddtocardpayloadobj.quantity = finalquantity;
|
|
2941
2954
|
}
|
|
2942
2955
|
setaddtocardpayloadobj(_objectSpread$2u({}, tempaddtocardpayloadobj));
|
|
2956
|
+
// var tempaddtocardpayloadobj = {
|
|
2957
|
+
// ...addtocardpayloadobj,
|
|
2958
|
+
// };
|
|
2959
|
+
// if (tempaddtocardpayloadobj.quantity > 0) {
|
|
2960
|
+
// if (
|
|
2961
|
+
// fetchProductInfoQueryContext?.data?.data?.productinfo?.quantitystepincrearse != undefined &&
|
|
2962
|
+
// fetchProductInfoQueryContext?.data?.data?.productinfo?.quantitystepincrearse != null &&
|
|
2963
|
+
// fetchProductInfoQueryContext?.data?.data?.productinfo?.quantitystepincrearse != 1 &&
|
|
2964
|
+
// fetchProductInfoQueryContext?.data?.data?.productinfo?.quantitystepincrearse != ''
|
|
2965
|
+
// ) {
|
|
2966
|
+
// tempaddtocardpayloadobj.quantity =
|
|
2967
|
+
// tempaddtocardpayloadobj.quantity -
|
|
2968
|
+
// parseInt(fetchProductInfoQueryContext?.data?.data?.productinfo?.quantitystepincrearse);
|
|
2969
|
+
// } else {
|
|
2970
|
+
// tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity - 1;
|
|
2971
|
+
// }
|
|
2972
|
+
// // tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity - 1;
|
|
2973
|
+
// }
|
|
2974
|
+
// setaddtocardpayloadobj({
|
|
2975
|
+
// ...tempaddtocardpayloadobj,
|
|
2976
|
+
// });
|
|
2943
2977
|
}
|
|
2944
2978
|
}, /*#__PURE__*/React.createElement("i", {
|
|
2945
2979
|
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-down' : 'h-100 allcentered',
|
|
@@ -2953,8 +2987,18 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2953
2987
|
}, addtocardpayloadobj.quantity), sectionproperties.quantitybtneditable == 'No' && /*#__PURE__*/React.createElement("span", {
|
|
2954
2988
|
className: "".concat(productinfo_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
2955
2989
|
onClick: function onClick() {
|
|
2990
|
+
var _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35;
|
|
2991
|
+
var quantitystepincrearse = 1;
|
|
2956
2992
|
var tempaddtocardpayloadobj = _objectSpread$2u({}, addtocardpayloadobj);
|
|
2957
|
-
|
|
2993
|
+
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.quantitystepincrearse) != 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.quantitystepincrearse) != null && (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.quantitystepincrearse) != 1 && (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 ? void 0 : _fetchProductInfoQuer35.quantitystepincrearse) != '') {
|
|
2994
|
+
var _fetchProductInfoQuer36;
|
|
2995
|
+
quantitystepincrearse = parseInt(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer36 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.productinfo) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : _fetchProductInfoQuer36.quantitystepincrearse);
|
|
2996
|
+
}
|
|
2997
|
+
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + quantitystepincrearse;
|
|
2998
|
+
|
|
2999
|
+
// else {
|
|
3000
|
+
// tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + 1;
|
|
3001
|
+
// }
|
|
2958
3002
|
setaddtocardpayloadobj(_objectSpread$2u({}, tempaddtocardpayloadobj));
|
|
2959
3003
|
}
|
|
2960
3004
|
}, /*#__PURE__*/React.createElement("i", {
|
|
@@ -2989,12 +3033,12 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2989
3033
|
setaddtocardpayloadobj(_objectSpread$2u({}, tempaddtocardpayloadobj));
|
|
2990
3034
|
}
|
|
2991
3035
|
}
|
|
2992
|
-
})), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3036
|
+
})), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (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 ? void 0 : _fetchProductInfoQuer37.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("button", {
|
|
2993
3037
|
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
2994
3038
|
onClick: function onClick() {
|
|
2995
3039
|
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
2996
|
-
var
|
|
2997
|
-
window.open('tel:' + ((
|
|
3040
|
+
var _fetchProductInfoQuer38;
|
|
3041
|
+
window.open('tel:' + ((_fetchProductInfoQuer38 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : _fetchProductInfoQuer38.product_phonenumber), '_blank');
|
|
2998
3042
|
} else {
|
|
2999
3043
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
3000
3044
|
addtocartfunc();
|
|
@@ -3025,7 +3069,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3025
3069
|
size: sectionproperties.cartBtn_iconFontSize
|
|
3026
3070
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
|
|
3027
3071
|
size: sectionproperties.cartBtn_iconFontSize
|
|
3028
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3072
|
+
})), langdetect == 'en' ? 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 ? void 0 : _fetchProductInfoQuer39.productactionbuttontext_en : 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.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
|
|
3029
3073
|
className: ' d-flex align-items-center justify-content-center '
|
|
3030
3074
|
}, /*#__PURE__*/React.createElement(CircularProgress, {
|
|
3031
3075
|
color: sectionproperties.cartBtnTextcolor,
|
|
@@ -3070,7 +3114,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3070
3114
|
style: {
|
|
3071
3115
|
fontSize: sectionproperties.favBtnTextfontsize + 'px'
|
|
3072
3116
|
}
|
|
3073
|
-
}, langdetect == 'en' ? sectionproperties.favbtnaddedcontent_en : sectionproperties.favbtnaddedcontent_ar))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3117
|
+
}, langdetect == 'en' ? sectionproperties.favbtnaddedcontent_en : sectionproperties.favbtnaddedcontent_ar))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer41 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer41 === void 0 || (_fetchProductInfoQuer41 = _fetchProductInfoQuer41.data) === null || _fetchProductInfoQuer41 === void 0 || (_fetchProductInfoQuer41 = _fetchProductInfoQuer41.productinfo) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : _fetchProductInfoQuer41.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("div", {
|
|
3074
3118
|
"class": "row m-0 w-100 mt-3",
|
|
3075
3119
|
style: {
|
|
3076
3120
|
overflow: 'hidden'
|
|
@@ -3082,8 +3126,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3082
3126
|
},
|
|
3083
3127
|
onClick: function onClick() {
|
|
3084
3128
|
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
3085
|
-
var
|
|
3086
|
-
window.open('tel:' + ((
|
|
3129
|
+
var _fetchProductInfoQuer42;
|
|
3130
|
+
window.open('tel:' + ((_fetchProductInfoQuer42 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : _fetchProductInfoQuer42.product_phonenumber), '_blank');
|
|
3087
3131
|
} else {
|
|
3088
3132
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
3089
3133
|
addtocartfunc();
|
|
@@ -3114,7 +3158,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3114
3158
|
size: sectionproperties.cartBtn_iconFontSize
|
|
3115
3159
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
|
|
3116
3160
|
size: sectionproperties.cartBtn_iconFontSize
|
|
3117
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3161
|
+
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer43 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer43 === void 0 || (_fetchProductInfoQuer43 = _fetchProductInfoQuer43.data) === null || _fetchProductInfoQuer43 === void 0 || (_fetchProductInfoQuer43 = _fetchProductInfoQuer43.productinfo) === null || _fetchProductInfoQuer43 === void 0 ? void 0 : _fetchProductInfoQuer43.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer44 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer44 === void 0 || (_fetchProductInfoQuer44 = _fetchProductInfoQuer44.data) === null || _fetchProductInfoQuer44 === void 0 || (_fetchProductInfoQuer44 = _fetchProductInfoQuer44.productinfo) === null || _fetchProductInfoQuer44 === void 0 ? void 0 : _fetchProductInfoQuer44.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
|
|
3118
3162
|
className: ' d-flex align-items-center justify-content-center '
|
|
3119
3163
|
}, /*#__PURE__*/React.createElement(CircularProgress, {
|
|
3120
3164
|
color: sectionproperties.cartBtnTextcolor,
|
|
@@ -3149,7 +3193,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3149
3193
|
size: sectionproperties.favBtnIconfontsize
|
|
3150
3194
|
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React.createElement(FaRegHeart, {
|
|
3151
3195
|
size: sectionproperties.favBtnIconfontsize
|
|
3152
|
-
}))))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.showbuynowbtn == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3196
|
+
}))))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.showbuynowbtn == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer45 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer45 === void 0 || (_fetchProductInfoQuer45 = _fetchProductInfoQuer45.data) === null || _fetchProductInfoQuer45 === void 0 || (_fetchProductInfoQuer45 = _fetchProductInfoQuer45.productinfo) === null || _fetchProductInfoQuer45 === void 0 ? void 0 : _fetchProductInfoQuer45.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("div", {
|
|
3153
3197
|
"class": "row m-0 w-100 mt-3",
|
|
3154
3198
|
style: {
|
|
3155
3199
|
overflow: 'hidden'
|
|
@@ -3180,7 +3224,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3180
3224
|
"class": "col-lg-12 text-start p-md-0"
|
|
3181
3225
|
}, /*#__PURE__*/React.createElement("div", {
|
|
3182
3226
|
className: "row m-0 w-100"
|
|
3183
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3227
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer46 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer46 === void 0 || (_fetchProductInfoQuer46 = _fetchProductInfoQuer46.data) === null || _fetchProductInfoQuer46 === void 0 || (_fetchProductInfoQuer46 = _fetchProductInfoQuer46.productinfo) === null || _fetchProductInfoQuer46 === void 0 || (_fetchProductInfoQuer46 = _fetchProductInfoQuer46.productfeatures) === null || _fetchProductInfoQuer46 === void 0 ? void 0 : _fetchProductInfoQuer46.map(function (fitem, findex) {
|
|
3184
3228
|
return /*#__PURE__*/React.createElement("div", {
|
|
3185
3229
|
"class": ' col-md-12 p-0 mb-3 mt-2 col-lg-' + sectionproperties.featuresnumcols
|
|
3186
3230
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -3306,7 +3350,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3306
3350
|
color: sectionproperties.prodCatColor
|
|
3307
3351
|
},
|
|
3308
3352
|
dangerouslySetInnerHTML: {
|
|
3309
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3353
|
+
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer47 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer47 === void 0 || (_fetchProductInfoQuer47 = _fetchProductInfoQuer47.data) === null || _fetchProductInfoQuer47 === void 0 || (_fetchProductInfoQuer47 = _fetchProductInfoQuer47.productinfo) === null || _fetchProductInfoQuer47 === void 0 ? void 0 : _fetchProductInfoQuer47.short_description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer48 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer48 === void 0 || (_fetchProductInfoQuer48 = _fetchProductInfoQuer48.data) === null || _fetchProductInfoQuer48 === void 0 || (_fetchProductInfoQuer48 = _fetchProductInfoQuer48.productinfo) === null || _fetchProductInfoQuer48 === void 0 ? void 0 : _fetchProductInfoQuer48.short_description_ar
|
|
3310
3354
|
}
|
|
3311
3355
|
})))))), sectionproperties.descriptionstyle == 'Style 2' && /*#__PURE__*/React.createElement("div", {
|
|
3312
3356
|
"class": "col-lg-12 col-md-12 my-3 p-md-0"
|
|
@@ -3431,7 +3475,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3431
3475
|
onClick: function onClick() {
|
|
3432
3476
|
routingcountext(StaticPagesLinksContext.RefundPolicy);
|
|
3433
3477
|
}
|
|
3434
|
-
}, "SEE MORE")))))), sectionproperties.productInformationType == 'Product/Service Information' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3478
|
+
}, "SEE MORE")))))), sectionproperties.productInformationType == 'Product/Service Information' && (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.isproducttobesold) == 1 && sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
3435
3479
|
className: "col-lg-12 p-0 mb-3"
|
|
3436
3480
|
}, /*#__PURE__*/React.createElement("div", {
|
|
3437
3481
|
className: "row m-0 w-100 d-flex flex-row"
|
|
@@ -3454,7 +3498,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3454
3498
|
}
|
|
3455
3499
|
}, /*#__PURE__*/React.createElement("span", {
|
|
3456
3500
|
className: langdetect == 'en' ? ' d-flex align-items-center justify-content-end wordbreak text-right ' : ' d-flex align-items-center justify-content-end wordbreak text-left '
|
|
3457
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 && parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3501
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 && parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (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.variants[variantindexcompleted]) === null || _fetchProductInfoQuer50 === void 0 ? void 0 : _fetchProductInfoQuer50.hassale) == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (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.variants[variantindexcompleted]) === null || _fetchProductInfoQuer51 === void 0 ? void 0 : _fetchProductInfoQuer51.hassale) == 0 && parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2), langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React.createElement("p", {
|
|
3458
3502
|
className: 'm-0 p-0 linethrough wordbreak',
|
|
3459
3503
|
style: {
|
|
3460
3504
|
color: sectionproperties.prodsalePriceColor,
|
|
@@ -3468,14 +3512,14 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3468
3512
|
style: {
|
|
3469
3513
|
textDecoration: 'none'
|
|
3470
3514
|
}
|
|
3471
|
-
}, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3515
|
+
}, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer52 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer52 === void 0 || (_fetchProductInfoQuer52 = _fetchProductInfoQuer52.data) === null || _fetchProductInfoQuer52 === void 0 || (_fetchProductInfoQuer52 = _fetchProductInfoQuer52.productinfo) === null || _fetchProductInfoQuer52 === void 0 || (_fetchProductInfoQuer52 = _fetchProductInfoQuer52.variants[variantindexcompleted]) === null || _fetchProductInfoQuer52 === void 0 ? void 0 : _fetchProductInfoQuer52.hassale) == 1 && /*#__PURE__*/React.createElement("span", {
|
|
3472
3516
|
className: langdetect == 'en' ? ' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ' : ' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '
|
|
3473
3517
|
}, /*#__PURE__*/React.createElement("span", {
|
|
3474
3518
|
className: "ml-2 mr-2",
|
|
3475
3519
|
style: {
|
|
3476
3520
|
textDecoration: 'none'
|
|
3477
3521
|
}
|
|
3478
|
-
}, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))), sectionproperties.availabilitybtnposition == 'Bottom' && sectionproperties.show_availability == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3522
|
+
}, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))), sectionproperties.availabilitybtnposition == 'Bottom' && sectionproperties.show_availability == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer53 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer53 === void 0 || (_fetchProductInfoQuer53 = _fetchProductInfoQuer53.data) === null || _fetchProductInfoQuer53 === void 0 || (_fetchProductInfoQuer53 = _fetchProductInfoQuer53.productinfo) === null || _fetchProductInfoQuer53 === void 0 ? void 0 : _fetchProductInfoQuer53.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("div", {
|
|
3479
3523
|
className: "col-lg-12 p-0 mb-3 mt-2"
|
|
3480
3524
|
}, /*#__PURE__*/React.createElement("div", {
|
|
3481
3525
|
style: {
|
|
@@ -5842,7 +5886,7 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
5842
5886
|
function ownKeys$2q(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; }
|
|
5843
5887
|
function _objectSpread$2q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5844
5888
|
var Productinfo = function Productinfo(props) {
|
|
5845
|
-
var _css, _ref, _ref2, _ref3,
|
|
5889
|
+
var _css, _ref, _ref2, _ref3, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer42, _fetchProductInfoQuer43, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
|
|
5846
5890
|
var _useState = useState({}),
|
|
5847
5891
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5848
5892
|
ProductInfoObj = _useState2[0],
|
|
@@ -6058,7 +6102,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6058
6102
|
useEffect(function () {
|
|
6059
6103
|
if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && ikimagecredcontext != undefined) {
|
|
6060
6104
|
if (fetchProductInfoQueryContext.data.data.productinfo != null) {
|
|
6061
|
-
var _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8;
|
|
6105
|
+
var _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12;
|
|
6062
6106
|
var tempproductimagesarray = [];
|
|
6063
6107
|
if (Array.isArray(fetchProductInfoQueryContext.data.data.productinfo.productimages)) {
|
|
6064
6108
|
fetchProductInfoQueryContext.data.data.productinfo.productimages.forEach(function (arrayItem, arrayindex) {
|
|
@@ -6090,6 +6134,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6090
6134
|
}
|
|
6091
6135
|
setproductimagesarray([].concat(tempproductimagesarray));
|
|
6092
6136
|
variantchecker();
|
|
6137
|
+
var quantitystepincrearse = 1;
|
|
6093
6138
|
var tempaddtocardpayloadobj = _objectSpread$2q({}, addtocardpayloadobj);
|
|
6094
6139
|
tempaddtocardpayloadobj.productid = fetchProductInfoQueryContext.data.data.productinfo.productid;
|
|
6095
6140
|
// setaddtocardpayloadobj({ ...tempaddtocardpayloadobj });
|
|
@@ -6110,6 +6155,11 @@ var Productinfo = function Productinfo(props) {
|
|
|
6110
6155
|
} else {
|
|
6111
6156
|
tempaddtocardpayloadobj.item_type = 'product';
|
|
6112
6157
|
}
|
|
6158
|
+
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.quantitystepincrearse) != undefined && (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.quantitystepincrearse) != null && (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.quantitystepincrearse) != 1 && (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.quantitystepincrearse) != '') {
|
|
6159
|
+
var _fetchProductInfoQuer13;
|
|
6160
|
+
quantitystepincrearse = parseInt(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.quantitystepincrearse);
|
|
6161
|
+
}
|
|
6162
|
+
tempaddtocardpayloadobj.quantity = quantitystepincrearse;
|
|
6113
6163
|
setaddtocardpayloadobj(_objectSpread$2q({}, tempaddtocardpayloadobj));
|
|
6114
6164
|
}
|
|
6115
6165
|
}
|
|
@@ -6292,9 +6342,10 @@ var Productinfo = function Productinfo(props) {
|
|
|
6292
6342
|
var addtocartfunc = function addtocartfunc(forcetocheckout) {
|
|
6293
6343
|
var runfunc = false;
|
|
6294
6344
|
var forcetocheckoutvalue = forcetocheckout;
|
|
6345
|
+
// alert(addtocardpayloadobj.quantity + 'sad');
|
|
6295
6346
|
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
6296
|
-
var
|
|
6297
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6347
|
+
var _fetchProductInfoQuer14;
|
|
6348
|
+
if ((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.hasvariants) == 1) {
|
|
6298
6349
|
if (addtocardpayloadobj.variantid.length != 0) {
|
|
6299
6350
|
runfunc = true;
|
|
6300
6351
|
} else {
|
|
@@ -6307,23 +6358,23 @@ var Productinfo = function Productinfo(props) {
|
|
|
6307
6358
|
NotificationManager.warning('', 'Please Choose Quantity');
|
|
6308
6359
|
}
|
|
6309
6360
|
if (runfunc == true) {
|
|
6310
|
-
var
|
|
6361
|
+
var _fetchProductInfoQuer15, _fetchProductInfoQuer16;
|
|
6311
6362
|
var tempaddtocardpayloadobj = _objectSpread$2q({}, addtocardpayloadobj);
|
|
6312
|
-
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6313
|
-
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6363
|
+
tempaddtocardpayloadobj.isproductforcedtocheckout = 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.isproductforcedtocheckout;
|
|
6364
|
+
tempaddtocardpayloadobj.vendorid = 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.vendorproviderid;
|
|
6314
6365
|
if (forcetocheckoutvalue != undefined) {
|
|
6315
6366
|
tempaddtocardpayloadobj.forcetocheckoutvalue = forcetocheckoutvalue;
|
|
6316
6367
|
}
|
|
6317
6368
|
var Extrafieldvalidationresponse = validateextrafields();
|
|
6318
6369
|
if (Extrafieldvalidationresponse.status) {
|
|
6319
|
-
var
|
|
6370
|
+
var _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22;
|
|
6320
6371
|
Pixel_EventsContext('AddToCart', {
|
|
6321
|
-
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6322
|
-
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6323
|
-
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6372
|
+
content_ids: [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.productid],
|
|
6373
|
+
content_name: (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.name_en) + ' - ' + (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.name_ar),
|
|
6374
|
+
content_sku: 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.sku,
|
|
6324
6375
|
content_type: 'product',
|
|
6325
|
-
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6326
|
-
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6376
|
+
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer21 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.data) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : _fetchProductInfoQuer21.currencyname_en,
|
|
6377
|
+
value: 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.defaultprice,
|
|
6327
6378
|
quantity: addtocardpayloadobj.quantity
|
|
6328
6379
|
});
|
|
6329
6380
|
AddtoCartContext(tempaddtocardpayloadobj);
|
|
@@ -6331,12 +6382,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
6331
6382
|
}
|
|
6332
6383
|
};
|
|
6333
6384
|
var validateextrafields = function validateextrafields() {
|
|
6334
|
-
var
|
|
6385
|
+
var _fetchProductInfoQuer23;
|
|
6335
6386
|
var tempaddtocardpayloadobj = _objectSpread$2q({}, addtocardpayloadobj);
|
|
6336
6387
|
var status = false;
|
|
6337
6388
|
var reason = '';
|
|
6338
6389
|
var missingitemsfound = [];
|
|
6339
|
-
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6390
|
+
var extrafields = 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.productextrafields;
|
|
6340
6391
|
if ((extrafields === null || extrafields === void 0 ? void 0 : extrafields.length) == 0) {
|
|
6341
6392
|
status = true;
|
|
6342
6393
|
} else {
|
|
@@ -6932,24 +6983,24 @@ var Productinfo = function Productinfo(props) {
|
|
|
6932
6983
|
}
|
|
6933
6984
|
}));
|
|
6934
6985
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
6935
|
-
var
|
|
6986
|
+
var _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27;
|
|
6936
6987
|
var price = 0;
|
|
6937
6988
|
var quantityconditions = [];
|
|
6938
6989
|
var quantity = 0;
|
|
6939
6990
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
6940
6991
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
6941
6992
|
}
|
|
6942
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6993
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer24 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.productinfo) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : _fetchProductInfoQuer24.productquantityoptions) != undefined && (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.productquantityoptions) != null && Array.isArray(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.productquantityoptions) && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer27 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer27 === void 0 || (_fetchProductInfoQuer27 = _fetchProductInfoQuer27.data) === null || _fetchProductInfoQuer27 === void 0 || (_fetchProductInfoQuer27 = _fetchProductInfoQuer27.productinfo) === null || _fetchProductInfoQuer27 === void 0 || (_fetchProductInfoQuer27 = _fetchProductInfoQuer27.productquantityoptions) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : _fetchProductInfoQuer27.length) != 0) {
|
|
6943
6994
|
quantityconditions = fetchProductInfoQueryContext.data.data.productinfo.productquantityoptions;
|
|
6944
6995
|
}
|
|
6945
6996
|
if (type == 'defaultprice') {
|
|
6946
6997
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultprice;
|
|
6947
6998
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
6948
6999
|
if (variantindexcompleted != undefined) {
|
|
6949
|
-
var
|
|
6950
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6951
|
-
var
|
|
6952
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7000
|
+
var _fetchProductInfoQuer28;
|
|
7001
|
+
if ((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.variants[variantindexcompleted]) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : _fetchProductInfoQuer28.variantprice) != undefined) {
|
|
7002
|
+
var _fetchProductInfoQuer29;
|
|
7003
|
+
price = 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.variants[variantindexcompleted]) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : _fetchProductInfoQuer29.variantprice;
|
|
6953
7004
|
}
|
|
6954
7005
|
}
|
|
6955
7006
|
}
|
|
@@ -6957,10 +7008,10 @@ var Productinfo = function Productinfo(props) {
|
|
|
6957
7008
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultsaleprice;
|
|
6958
7009
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
6959
7010
|
if (variantindexcompleted != undefined) {
|
|
6960
|
-
var
|
|
6961
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6962
|
-
var
|
|
6963
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7011
|
+
var _fetchProductInfoQuer30;
|
|
7012
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer30 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer30 === void 0 || (_fetchProductInfoQuer30 = _fetchProductInfoQuer30.data) === null || _fetchProductInfoQuer30 === void 0 || (_fetchProductInfoQuer30 = _fetchProductInfoQuer30.productinfo) === null || _fetchProductInfoQuer30 === void 0 || (_fetchProductInfoQuer30 = _fetchProductInfoQuer30.variants[variantindexcompleted]) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : _fetchProductInfoQuer30.variantsaleprice) != undefined) {
|
|
7013
|
+
var _fetchProductInfoQuer31;
|
|
7014
|
+
price = 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 || (_fetchProductInfoQuer31 = _fetchProductInfoQuer31.variants[variantindexcompleted]) === null || _fetchProductInfoQuer31 === void 0 ? void 0 : _fetchProductInfoQuer31.variantsaleprice;
|
|
6964
7015
|
}
|
|
6965
7016
|
}
|
|
6966
7017
|
}
|
|
@@ -6990,7 +7041,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6990
7041
|
}
|
|
6991
7042
|
};
|
|
6992
7043
|
var getQuantityCondition = function getQuantityCondition() {
|
|
6993
|
-
var
|
|
7044
|
+
var _fetchProductInfoQuer32;
|
|
6994
7045
|
return /*#__PURE__*/React.createElement("div", {
|
|
6995
7046
|
"class": "col-lg-12 p-0",
|
|
6996
7047
|
style: {
|
|
@@ -7020,12 +7071,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
7020
7071
|
height: 1,
|
|
7021
7072
|
background: sectionproperties.pricelisttitlecolor
|
|
7022
7073
|
}
|
|
7023
|
-
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7024
|
-
var
|
|
7074
|
+
})), 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 || (_fetchProductInfoQuer32 = _fetchProductInfoQuer32.productquantityoptions) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : _fetchProductInfoQuer32.map(function (item, index) {
|
|
7075
|
+
var _fetchProductInfoQuer33;
|
|
7025
7076
|
return /*#__PURE__*/React.createElement("div", {
|
|
7026
7077
|
className: "col-lg-12 p-0 w-100 d-flex align-items-center",
|
|
7027
7078
|
style: {
|
|
7028
|
-
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7079
|
+
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer33 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer33 === void 0 || (_fetchProductInfoQuer33 = _fetchProductInfoQuer33.data) === null || _fetchProductInfoQuer33 === void 0 || (_fetchProductInfoQuer33 = _fetchProductInfoQuer33.productinfo) === null || _fetchProductInfoQuer33 === void 0 || (_fetchProductInfoQuer33 = _fetchProductInfoQuer33.productquantityoptions) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : _fetchProductInfoQuer33.length) - 1 != index ? '1rem' : 0
|
|
7029
7080
|
}
|
|
7030
7081
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7031
7082
|
"class": "d-flex align-items-center",
|
|
@@ -7059,7 +7110,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
7059
7110
|
})));
|
|
7060
7111
|
};
|
|
7061
7112
|
var StoreInfo = function StoreInfo() {
|
|
7062
|
-
var
|
|
7113
|
+
var _fetchProductInfoQuer34, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i6;
|
|
7063
7114
|
return /*#__PURE__*/React.createElement("div", {
|
|
7064
7115
|
"class": "row m-0 w-100"
|
|
7065
7116
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -7106,7 +7157,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
7106
7157
|
style: {
|
|
7107
7158
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
7108
7159
|
}
|
|
7109
|
-
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7160
|
+
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer34 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer34 === void 0 || (_fetchProductInfoQuer34 = _fetchProductInfoQuer34.data) === null || _fetchProductInfoQuer34 === void 0 || (_fetchProductInfoQuer34 = _fetchProductInfoQuer34.productinfo) === null || _fetchProductInfoQuer34 === void 0 || (_fetchProductInfoQuer34 = _fetchProductInfoQuer34.productquantityoptions) === null || _fetchProductInfoQuer34 === void 0 ? void 0 : _fetchProductInfoQuer34.length) != 0 && /*#__PURE__*/React.createElement("div", {
|
|
7110
7161
|
"class": "col-lg-12 p-0 mb-4"
|
|
7111
7162
|
}, getQuantityCondition()), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
7112
7163
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
@@ -7291,7 +7342,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
7291
7342
|
style: {
|
|
7292
7343
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
7293
7344
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0,
|
|
7294
|
-
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7345
|
+
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (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.product_videos) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : _fetchProductInfoQuer40.length) != 0 ? 'flex' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' ? 'none' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && sectionproperties.descriptionposition != 'Bottom' && (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.product_videos) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : _fetchProductInfoQuer41.length) == 0 ? 'none' : 'flex'
|
|
7295
7346
|
}
|
|
7296
7347
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7297
7348
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
|
|
@@ -7354,12 +7405,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
7354
7405
|
onClick: function onClick() {
|
|
7355
7406
|
settabname('refundpolicytab');
|
|
7356
7407
|
}
|
|
7357
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7408
|
+
}), (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.product_videos) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : _fetchProductInfoQuer42.length) != 0 && /*#__PURE__*/React.createElement(Tab, {
|
|
7358
7409
|
label: langdetect == 'en' ? sectionproperties.videostitleen : sectionproperties.videostitlear,
|
|
7359
7410
|
onClick: function onClick() {
|
|
7360
7411
|
settabname('videostab');
|
|
7361
7412
|
}
|
|
7362
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7413
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer43 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer43 === void 0 || (_fetchProductInfoQuer43 = _fetchProductInfoQuer43.data) === null || _fetchProductInfoQuer43 === void 0 || (_fetchProductInfoQuer43 = _fetchProductInfoQuer43.productinfo) === null || _fetchProductInfoQuer43 === void 0 ? void 0 : _fetchProductInfoQuer43.productcanrate) == 1 && /*#__PURE__*/React.createElement(Tab, {
|
|
7363
7414
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
7364
7415
|
onClick: function onClick() {
|
|
7365
7416
|
settabname('reviewstab');
|
|
@@ -7414,12 +7465,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
7414
7465
|
onClick: function onClick() {
|
|
7415
7466
|
settabname('refundpolicytab');
|
|
7416
7467
|
}
|
|
7417
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7468
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer44 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer44 === void 0 || (_fetchProductInfoQuer44 = _fetchProductInfoQuer44.data) === null || _fetchProductInfoQuer44 === void 0 || (_fetchProductInfoQuer44 = _fetchProductInfoQuer44.productinfo) === null || _fetchProductInfoQuer44 === void 0 || (_fetchProductInfoQuer44 = _fetchProductInfoQuer44.product_videos) === null || _fetchProductInfoQuer44 === void 0 ? void 0 : _fetchProductInfoQuer44.length) != 0 && /*#__PURE__*/React.createElement(Tab, {
|
|
7418
7469
|
label: langdetect == 'en' ? 'Videos' : 'فيديوهات',
|
|
7419
7470
|
onClick: function onClick() {
|
|
7420
7471
|
settabname('videostab');
|
|
7421
7472
|
}
|
|
7422
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7473
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer45 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer45 === void 0 || (_fetchProductInfoQuer45 = _fetchProductInfoQuer45.data) === null || _fetchProductInfoQuer45 === void 0 || (_fetchProductInfoQuer45 = _fetchProductInfoQuer45.productinfo) === null || _fetchProductInfoQuer45 === void 0 ? void 0 : _fetchProductInfoQuer45.productcanrate) == 1 && /*#__PURE__*/React.createElement(Tab, {
|
|
7423
7474
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
7424
7475
|
onClick: function onClick() {
|
|
7425
7476
|
settabname('reviewstab');
|