tabexseriescomponents 0.2.739 → 0.2.741
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 +74 -70
- package/dist/index.esm.js +74 -70
- package/dist/index.umd.js +74 -70
- package/package.json +1 -1
- package/src.zip +0 -0
package/dist/index.cjs.js
CHANGED
|
@@ -2513,7 +2513,7 @@ var DescriptionContent = function DescriptionContent(props) {
|
|
|
2513
2513
|
function ownKeys$2z(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; }
|
|
2514
2514
|
function _objectSpread$2z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2z(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2515
2515
|
var Product_itemtype = function Product_itemtype(props) {
|
|
2516
|
-
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,
|
|
2516
|
+
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$;
|
|
2517
2517
|
var lang = props.actions.lang;
|
|
2518
2518
|
var langdetect = props.actions.langdetect;
|
|
2519
2519
|
var srcfromprops = props.actions.srcfromprops;
|
|
@@ -2869,7 +2869,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2869
2869
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2870
2870
|
"class": "col-lg-12 p-0"
|
|
2871
2871
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2872
|
-
"class": sectionproperties.infomarionsectionpaddinghorizontal == 0 ? 'row mx-0 w-100' : 'row mx-0 w-100
|
|
2872
|
+
"class": sectionproperties.infomarionsectionpaddinghorizontal == 0 ? 'row mx-0 w-100' : 'row mx-0 w-100'
|
|
2873
|
+
// class={sectionproperties.infomarionsectionpaddinghorizontal == 0 ? 'row mx-0 w-100' : 'row mx-0 w-100 px-md-3'}
|
|
2874
|
+
,
|
|
2873
2875
|
style: {
|
|
2874
2876
|
marginTop: sectionproperties.gallerystyle == 'Style 2' ? '3rem' : 0,
|
|
2875
2877
|
paddingLeft: sectionproperties.infomarionsectionpaddinghorizontal + 'px',
|
|
@@ -2887,9 +2889,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2887
2889
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2888
2890
|
className: sectionproperties.maximizegalleryfullscreen == 'Yes' ? ' col-lg-12 p-0 maximize ' : 'col-lg-12 p-0',
|
|
2889
2891
|
style: {
|
|
2890
|
-
width: '100%'
|
|
2892
|
+
width: '100%'
|
|
2891
2893
|
// height: 'auto',
|
|
2892
|
-
height: sectionproperties.evencols == 'Yes' ? '550px' : 'auto'
|
|
2894
|
+
// height: sectionproperties.evencols == 'Yes' ? '550px' : 'auto',
|
|
2893
2895
|
}
|
|
2894
2896
|
}, productimagesarray.length == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2895
2897
|
style: {
|
|
@@ -2906,7 +2908,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2906
2908
|
"class": "w-100 d-block d-md-none",
|
|
2907
2909
|
style: {
|
|
2908
2910
|
// height: '500px',
|
|
2909
|
-
height: sectionproperties.evencols == 'Yes' ? '550px' : ''
|
|
2911
|
+
// height: sectionproperties.evencols == 'Yes' ? '550px' : '',
|
|
2910
2912
|
}
|
|
2911
2913
|
}, /*#__PURE__*/React__default["default"].createElement(ImageGallery__default["default"], {
|
|
2912
2914
|
items: productimagesarray,
|
|
@@ -2935,7 +2937,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2935
2937
|
setcurrentshowingimageindex(d);
|
|
2936
2938
|
}
|
|
2937
2939
|
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2938
|
-
className: sectionproperties.gallerystyle == 'Style 1' ? sectionproperties.evencols == 'Yes' ? langdetect == 'en' ? 'col-xl-6 col-lg-6 col-md-12 col-sm-12 pl-4 pr-0 pl-md-0 pr-md-0
|
|
2940
|
+
className: sectionproperties.gallerystyle == 'Style 1' ? sectionproperties.evencols == 'Yes' ? langdetect == 'en' ? 'col-xl-6 col-lg-6 col-md-12 col-sm-12 pl-4 pr-0 pl-md-0 pr-md-0' : 'col-xl-6 col-lg-6 col-md-12 col-sm-12 pl-0 pr-4 pl-md-0 pr-md-0' : langdetect == 'en' ? 'col-xl-7 col-lg-7 col-md-12 col-sm-12 pl-4 pr-0 p-md-0' : 'col-xl-7 col-lg-7 col-md-12 col-sm-12 pl-0 pr-4 p-md-0' : 'col-xl-12 col-lg-12 col-md-12 col-sm-12 px-3 px-md-2'
|
|
2939
2941
|
// className={
|
|
2940
2942
|
// sectionproperties.gallerystyle == 'Style 1'
|
|
2941
2943
|
// ? langdetect == 'en'
|
|
@@ -2944,7 +2946,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2944
2946
|
// : 'col-xl-12 col-lg-12 col-md-12 col-sm-12 px-3 px-md-2'
|
|
2945
2947
|
// }
|
|
2946
2948
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2947
|
-
className: sectionproperties.evencols == 'Yes' ? 'row m-0 w-100
|
|
2949
|
+
className: sectionproperties.evencols == 'Yes' ? 'row m-0 w-100' : 'row m-0 w-100'
|
|
2948
2950
|
}, sectionproperties.showmeasurementunit == 'Show' && sectionproperties.measurementunitposition == 'Above Name' && MeasurementUnitSection(), sectionproperties.quantityshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2949
2951
|
"class": "col-lg-12 p-0 text-start"
|
|
2950
2952
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
@@ -3130,9 +3132,11 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3130
3132
|
fontSize: sectionproperties.featurevaluefontsize
|
|
3131
3133
|
}
|
|
3132
3134
|
}, langdetect == 'en' ? fitem === null || fitem === void 0 ? void 0 : fitem.value_en : fitem === null || fitem === void 0 ? void 0 : fitem.value_ar));
|
|
3133
|
-
}))))), sectionproperties.
|
|
3135
|
+
}))))), sectionproperties.defaultpricingposition == 'Under Name' && (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.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing, {
|
|
3136
|
+
actions: props.actions
|
|
3137
|
+
}), sectionproperties.featuresposition == 'Under Pricing' && sectionproperties.featurestyle == 'Table' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3134
3138
|
"class": "col-lg-12 text-start p-0"
|
|
3135
|
-
}, ProductFeaturesTable()), langdetect == 'en' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3139
|
+
}, ProductFeaturesTable()), langdetect == 'en' && (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.short_description_en) != null && sectionproperties.descriptionstyle == 'Style 1' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3136
3140
|
"class": "col-lg-12 p-0"
|
|
3137
3141
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3138
3142
|
"class": "col-lg-12 p-0 d-flex justify-content-start"
|
|
@@ -3142,9 +3146,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3142
3146
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
3143
3147
|
},
|
|
3144
3148
|
dangerouslySetInnerHTML: {
|
|
3145
|
-
__html: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3149
|
+
__html: 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.short_description_en
|
|
3146
3150
|
}
|
|
3147
|
-
}))), langdetect == 'ar' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3151
|
+
}))), langdetect == 'ar' && (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.short_description_ar) != null && sectionproperties.descriptionstyle == 'Style 1' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3148
3152
|
"class": "col-lg-12 p-0"
|
|
3149
3153
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3150
3154
|
"class": "col-lg-12 p-0 d-flex justify-content-start"
|
|
@@ -3154,9 +3158,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3154
3158
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
3155
3159
|
},
|
|
3156
3160
|
dangerouslySetInnerHTML: {
|
|
3157
|
-
__html: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3161
|
+
__html: 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.short_description_ar
|
|
3158
3162
|
}
|
|
3159
|
-
}))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3163
|
+
}))), (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.vendorinfo) != null && sectionproperties.showvendor == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3160
3164
|
"class": "col-lg-12 p-0 d-flex justify-content-start mt-2 mb-2"
|
|
3161
3165
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3162
3166
|
"class": "m-0 p-0",
|
|
@@ -3167,15 +3171,15 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3167
3171
|
style: {
|
|
3168
3172
|
fontWeight: 600
|
|
3169
3173
|
}
|
|
3170
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3171
|
-
"class": sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3172
|
-
}, ProductsSKUContainer()), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3174
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer21 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.productinfo) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.vendorinfo) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : _fetchProductInfoQuer21.vendorname))), sectionproperties.showSKU == 'Show' && sectionproperties.skuposition == 'Bottom' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3175
|
+
"class": sectionproperties.deliverytimeshow == 'Show' && (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.deliverydatetext) != null ? 'col-lg-12 p-0 mb-2 d-flex justify-content-start' : 'col-lg-12 p-0 mb-3 d-flex justify-content-start'
|
|
3176
|
+
}, ProductsSKUContainer()), (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.currentquantity) < 1 && sectionproperties.showoutofstock == 'Show' && (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.quantavailtype) == 'limit' && (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.hasvariants) == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3173
3177
|
"class": "col-lg-12 p-0 d-flex justify-content-start mb-2"
|
|
3174
3178
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3175
3179
|
"class": "".concat(productinfo_cssstyles.outstockbadge) + ' allcentered '
|
|
3176
3180
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3177
3181
|
"class": "m-0 p-0"
|
|
3178
|
-
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3182
|
+
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), sectionproperties.deliverytimeshow == 'Show' && (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.deliverydatetext) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3179
3183
|
"class": "mb-4 col-lg-12 allcentered",
|
|
3180
3184
|
style: {
|
|
3181
3185
|
width: '100%',
|
|
@@ -3196,7 +3200,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3196
3200
|
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
3197
3201
|
color: sectionproperties.deliverytimecontainercolor
|
|
3198
3202
|
}
|
|
3199
|
-
}, sectionproperties.showdeliverytitle == 'Show' && /*#__PURE__*/React__default["default"].createElement("span", null, langdetect == 'en' ? sectionproperties.deliverycontent_en : sectionproperties.deliverycontent_ar, ": "), ' ', fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3203
|
+
}, sectionproperties.showdeliverytitle == 'Show' && /*#__PURE__*/React__default["default"].createElement("span", null, langdetect == 'en' ? sectionproperties.deliverycontent_en : sectionproperties.deliverycontent_ar, ": "), ' ', 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.deliverydatetext)), sectionproperties.defaultpricingposition != 'Under Name' && (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.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing, {
|
|
3204
|
+
actions: props.actions
|
|
3205
|
+
}), sectionproperties.descriptionposition != 'Under Name' && sectionproperties.descriptionposition == 'Top' && sectionproperties.descriptionstyle == 'Style 1' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3200
3206
|
"class": "col-lg-12 p-0"
|
|
3201
3207
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3202
3208
|
"class": "row m-0 w-100"
|
|
@@ -3235,7 +3241,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3235
3241
|
marginTop: sectionproperties.ctabuttnnsmarginvertical + 'px',
|
|
3236
3242
|
marginBottom: sectionproperties.ctabuttnnsmarginvertical + 'px'
|
|
3237
3243
|
}
|
|
3238
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3244
|
+
}, (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.isproducttobesold) == 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.isproducthasquantitychange) == 1 && sectionproperties.quantitybtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3239
3245
|
className: "col-lg-12 p-0 mb-2 d-flex justofy-content-start"
|
|
3240
3246
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3241
3247
|
className: "m-0 p-0",
|
|
@@ -3252,7 +3258,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3252
3258
|
style: {
|
|
3253
3259
|
justifyContent: sectionproperties.cartbtncentered == 'Centered' ? 'center' : 'start'
|
|
3254
3260
|
}
|
|
3255
|
-
}, sectionproperties.quantitybtn_show == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3261
|
+
}, sectionproperties.quantitybtn_show == 'Show' && (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.isproducttobesold) == 1 && (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.isproducthasquantitychange) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3256
3262
|
className: " ".concat(productinfo_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
3257
3263
|
style: {
|
|
3258
3264
|
height: sectionproperties.quantitybtn_height + 'px',
|
|
@@ -3263,13 +3269,13 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3263
3269
|
}, sectionproperties.quantitybtneditable == 'No' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3264
3270
|
className: "".concat(productinfo_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
3265
3271
|
onClick: function onClick() {
|
|
3266
|
-
var
|
|
3272
|
+
var _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36;
|
|
3267
3273
|
var quantitystepincrearse = 1;
|
|
3268
3274
|
// var finalquantity = 0;
|
|
3269
3275
|
var tempaddtocardpayloadobj = _objectSpread$2z({}, addtocardpayloadobj);
|
|
3270
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3271
|
-
var
|
|
3272
|
-
quantitystepincrearse = parseInt(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3276
|
+
if ((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) != undefined && (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) != null && (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) != 1 && (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) != '') {
|
|
3277
|
+
var _fetchProductInfoQuer37;
|
|
3278
|
+
quantitystepincrearse = parseInt(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.quantitystepincrearse);
|
|
3273
3279
|
}
|
|
3274
3280
|
var finalquantity = tempaddtocardpayloadobj.quantity - quantitystepincrearse;
|
|
3275
3281
|
if (finalquantity >= 0) {
|
|
@@ -3310,12 +3316,12 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3310
3316
|
}, addtocardpayloadobj.quantity), sectionproperties.quantitybtneditable == 'No' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3311
3317
|
className: "".concat(productinfo_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
3312
3318
|
onClick: function onClick() {
|
|
3313
|
-
var
|
|
3319
|
+
var _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41;
|
|
3314
3320
|
var quantitystepincrearse = 1;
|
|
3315
3321
|
var tempaddtocardpayloadobj = _objectSpread$2z({}, addtocardpayloadobj);
|
|
3316
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3317
|
-
var
|
|
3318
|
-
quantitystepincrearse = parseInt(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3322
|
+
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 ? void 0 : _fetchProductInfoQuer38.quantitystepincrearse) != undefined && (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.quantitystepincrearse) != null && (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.quantitystepincrearse) != 1 && (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.quantitystepincrearse) != '') {
|
|
3323
|
+
var _fetchProductInfoQuer42;
|
|
3324
|
+
quantitystepincrearse = parseInt(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 ? void 0 : _fetchProductInfoQuer42.quantitystepincrearse);
|
|
3319
3325
|
}
|
|
3320
3326
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + quantitystepincrearse;
|
|
3321
3327
|
|
|
@@ -3360,7 +3366,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3360
3366
|
"class": "col-lg-12 text-start p-md-0"
|
|
3361
3367
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3362
3368
|
className: "row m-0 w-100"
|
|
3363
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3369
|
+
}, 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 || (_fetchProductInfoQuer43 = _fetchProductInfoQuer43.productfeatures) === null || _fetchProductInfoQuer43 === void 0 ? void 0 : _fetchProductInfoQuer43.map(function (fitem, findex) {
|
|
3364
3370
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3365
3371
|
"class": ' col-md-12 p-0 mb-3 mt-2 col-lg-' + sectionproperties.featuresnumcols
|
|
3366
3372
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -3398,12 +3404,12 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3398
3404
|
fontSize: sectionproperties.featurevaluefontsize
|
|
3399
3405
|
}
|
|
3400
3406
|
}, langdetect == 'en' ? fitem === null || fitem === void 0 ? void 0 : fitem.value_en : fitem === null || fitem === void 0 ? void 0 : fitem.value_ar))));
|
|
3401
|
-
}))), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3407
|
+
}))), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (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.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3402
3408
|
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
3403
3409
|
onClick: function onClick() {
|
|
3404
3410
|
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
3405
|
-
var
|
|
3406
|
-
window.open('tel:' + ((
|
|
3411
|
+
var _fetchProductInfoQuer45;
|
|
3412
|
+
window.open('tel:' + ((_fetchProductInfoQuer45 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer45 === void 0 ? void 0 : _fetchProductInfoQuer45.product_phonenumber), '_blank');
|
|
3407
3413
|
} else {
|
|
3408
3414
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
3409
3415
|
addtocartfunc();
|
|
@@ -3434,7 +3440,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3434
3440
|
size: sectionproperties.cartBtn_iconFontSize
|
|
3435
3441
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
3436
3442
|
size: sectionproperties.cartBtn_iconFontSize
|
|
3437
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3443
|
+
})), langdetect == 'en' ? 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 ? void 0 : _fetchProductInfoQuer46.productactionbuttontext_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.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3438
3444
|
className: ' d-flex align-items-center justify-content-center '
|
|
3439
3445
|
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
3440
3446
|
color: sectionproperties.cartBtnTextcolor,
|
|
@@ -3479,7 +3485,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3479
3485
|
style: {
|
|
3480
3486
|
fontSize: sectionproperties.favBtnTextfontsize + 'px'
|
|
3481
3487
|
}
|
|
3482
|
-
}, langdetect == 'en' ? sectionproperties.favbtnaddedcontent_en : sectionproperties.favbtnaddedcontent_ar))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3488
|
+
}, langdetect == 'en' ? sectionproperties.favbtnaddedcontent_en : sectionproperties.favbtnaddedcontent_ar))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && (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.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3483
3489
|
"class": "row m-0 w-100 mt-3",
|
|
3484
3490
|
style: {
|
|
3485
3491
|
overflow: 'hidden'
|
|
@@ -3491,8 +3497,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3491
3497
|
},
|
|
3492
3498
|
onClick: function onClick() {
|
|
3493
3499
|
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
3494
|
-
var
|
|
3495
|
-
window.open('tel:' + ((
|
|
3500
|
+
var _fetchProductInfoQuer49;
|
|
3501
|
+
window.open('tel:' + ((_fetchProductInfoQuer49 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer49 === void 0 ? void 0 : _fetchProductInfoQuer49.product_phonenumber), '_blank');
|
|
3496
3502
|
} else {
|
|
3497
3503
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
3498
3504
|
addtocartfunc();
|
|
@@ -3523,7 +3529,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3523
3529
|
size: sectionproperties.cartBtn_iconFontSize
|
|
3524
3530
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
3525
3531
|
size: sectionproperties.cartBtn_iconFontSize
|
|
3526
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3532
|
+
})), langdetect == 'en' ? 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 ? void 0 : _fetchProductInfoQuer50.productactionbuttontext_en : 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 ? void 0 : _fetchProductInfoQuer51.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3527
3533
|
className: ' d-flex align-items-center justify-content-center '
|
|
3528
3534
|
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
3529
3535
|
color: sectionproperties.cartBtnTextcolor,
|
|
@@ -3575,7 +3581,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3575
3581
|
style: {
|
|
3576
3582
|
width: sectionproperties.cartBtnWidth + '%'
|
|
3577
3583
|
}
|
|
3578
|
-
}, langdetect == 'en' ? sectionproperties.directwabtntitleen : sectionproperties.directwabtntitlear))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.showbuynowbtn == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3584
|
+
}, langdetect == 'en' ? sectionproperties.directwabtntitleen : sectionproperties.directwabtntitlear))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.showbuynowbtn == 'Show' && (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.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3579
3585
|
"class": "row m-0 w-100 mt-3",
|
|
3580
3586
|
style: {
|
|
3581
3587
|
overflow: 'hidden'
|
|
@@ -3611,7 +3617,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3611
3617
|
"class": "col-lg-12 text-start p-md-0"
|
|
3612
3618
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3613
3619
|
className: "row m-0 w-100"
|
|
3614
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3620
|
+
}, 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.productfeatures) === null || _fetchProductInfoQuer53 === void 0 ? void 0 : _fetchProductInfoQuer53.map(function (fitem, findex) {
|
|
3615
3621
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3616
3622
|
"class": ' col-md-12 p-0 mb-3 mt-2 col-lg-' + sectionproperties.featuresnumcols
|
|
3617
3623
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -3649,19 +3655,19 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3649
3655
|
fontSize: sectionproperties.featurevaluefontsize
|
|
3650
3656
|
}
|
|
3651
3657
|
}, langdetect == 'en' ? fitem === null || fitem === void 0 ? void 0 : fitem.value_en : fitem === null || fitem === void 0 ? void 0 : fitem.value_ar))));
|
|
3652
|
-
}))), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3658
|
+
}))), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (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.hasvariants) == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3653
3659
|
"class": "col-12 text-start mt-3"
|
|
3654
3660
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3655
3661
|
"class": productinfo_cssstyles.sizeguidebtn + ' m-0 p-0 cursor-pointer mb-auto ',
|
|
3656
3662
|
onClick: function onClick() {
|
|
3657
3663
|
setopensizeguidemodal(true);
|
|
3658
3664
|
}
|
|
3659
|
-
}, langdetect == 'en' ? sectionproperties.sizeguidecontentenglish : sectionproperties.sizeguidecontentarabic)), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3665
|
+
}, langdetect == 'en' ? sectionproperties.sizeguidecontentenglish : sectionproperties.sizeguidecontentarabic)), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer55 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer55 === void 0 || (_fetchProductInfoQuer55 = _fetchProductInfoQuer55.data) === null || _fetchProductInfoQuer55 === void 0 || (_fetchProductInfoQuer55 = _fetchProductInfoQuer55.productinfo) === null || _fetchProductInfoQuer55 === void 0 ? void 0 : _fetchProductInfoQuer55.hasvariants) == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3660
3666
|
"class": "col-lg-12 col-md-12 my-3 p-md-0"
|
|
3661
3667
|
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
3662
3668
|
"class": "m-0"
|
|
3663
3669
|
})), sectionproperties.descriptionstyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3664
|
-
"class": sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3670
|
+
"class": sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer56 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer56 === void 0 || (_fetchProductInfoQuer56 = _fetchProductInfoQuer56.data) === null || _fetchProductInfoQuer56 === void 0 || (_fetchProductInfoQuer56 = _fetchProductInfoQuer56.productinfo) === null || _fetchProductInfoQuer56 === void 0 ? void 0 : _fetchProductInfoQuer56.hasvariants) == 0 ? 'col-lg-12 col-md-12 p-md-0' : 'col-lg-12 col-md-12 p-md-0 mt-3'
|
|
3665
3671
|
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
3666
3672
|
allowMultipleExpanded: true,
|
|
3667
3673
|
allowZeroExpanded: true
|
|
@@ -3740,7 +3746,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3740
3746
|
color: sectionproperties.prodCatColor
|
|
3741
3747
|
},
|
|
3742
3748
|
dangerouslySetInnerHTML: {
|
|
3743
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3749
|
+
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer57 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer57 === void 0 || (_fetchProductInfoQuer57 = _fetchProductInfoQuer57.data) === null || _fetchProductInfoQuer57 === void 0 || (_fetchProductInfoQuer57 = _fetchProductInfoQuer57.productinfo) === null || _fetchProductInfoQuer57 === void 0 ? void 0 : _fetchProductInfoQuer57.short_description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer58 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer58 === void 0 || (_fetchProductInfoQuer58 = _fetchProductInfoQuer58.data) === null || _fetchProductInfoQuer58 === void 0 || (_fetchProductInfoQuer58 = _fetchProductInfoQuer58.productinfo) === null || _fetchProductInfoQuer58 === void 0 ? void 0 : _fetchProductInfoQuer58.short_description_ar
|
|
3744
3750
|
}
|
|
3745
3751
|
})))))), sectionproperties.descriptionstyle == 'Style 2' && sectionproperties.showshortdescription == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3746
3752
|
"class": "col-lg-12 col-md-12 my-3 p-md-0"
|
|
@@ -3865,7 +3871,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3865
3871
|
onClick: function onClick() {
|
|
3866
3872
|
routingcountext(StaticPagesLinksContext.RefundPolicy);
|
|
3867
3873
|
}
|
|
3868
|
-
}, "SEE MORE")))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3874
|
+
}, "SEE MORE")))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer59 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer59 === void 0 || (_fetchProductInfoQuer59 = _fetchProductInfoQuer59.data) === null || _fetchProductInfoQuer59 === void 0 || (_fetchProductInfoQuer59 = _fetchProductInfoQuer59.productinfo) === null || _fetchProductInfoQuer59 === void 0 ? void 0 : _fetchProductInfoQuer59.isproducttobesold) == 1 && sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3869
3875
|
className: "col-lg-12 p-0 mb-3"
|
|
3870
3876
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3871
3877
|
className: "row m-0 w-100 d-flex flex-row"
|
|
@@ -3888,7 +3894,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3888
3894
|
}
|
|
3889
3895
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3890
3896
|
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 '
|
|
3891
|
-
}, 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 || (
|
|
3897
|
+
}, 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 || (_fetchProductInfoQuer60 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer60 === void 0 || (_fetchProductInfoQuer60 = _fetchProductInfoQuer60.data) === null || _fetchProductInfoQuer60 === void 0 || (_fetchProductInfoQuer60 = _fetchProductInfoQuer60.productinfo) === null || _fetchProductInfoQuer60 === void 0 || (_fetchProductInfoQuer60 = _fetchProductInfoQuer60.variants[variantindexcompleted]) === null || _fetchProductInfoQuer60 === void 0 ? void 0 : _fetchProductInfoQuer60.hassale) == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer61 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer61 === void 0 || (_fetchProductInfoQuer61 = _fetchProductInfoQuer61.data) === null || _fetchProductInfoQuer61 === void 0 || (_fetchProductInfoQuer61 = _fetchProductInfoQuer61.productinfo) === null || _fetchProductInfoQuer61 === void 0 || (_fetchProductInfoQuer61 = _fetchProductInfoQuer61.variants[variantindexcompleted]) === null || _fetchProductInfoQuer61 === void 0 ? void 0 : _fetchProductInfoQuer61.hassale) == 0 && parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2), langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3892
3898
|
className: 'm-0 p-0 linethrough wordbreak',
|
|
3893
3899
|
style: {
|
|
3894
3900
|
color: sectionproperties.prodsalePriceColor,
|
|
@@ -3902,14 +3908,14 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3902
3908
|
style: {
|
|
3903
3909
|
textDecoration: 'none'
|
|
3904
3910
|
}
|
|
3905
|
-
}, "-"), 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 || (
|
|
3911
|
+
}, "-"), 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 || (_fetchProductInfoQuer62 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer62 === void 0 || (_fetchProductInfoQuer62 = _fetchProductInfoQuer62.data) === null || _fetchProductInfoQuer62 === void 0 || (_fetchProductInfoQuer62 = _fetchProductInfoQuer62.productinfo) === null || _fetchProductInfoQuer62 === void 0 || (_fetchProductInfoQuer62 = _fetchProductInfoQuer62.variants[variantindexcompleted]) === null || _fetchProductInfoQuer62 === void 0 ? void 0 : _fetchProductInfoQuer62.hassale) == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3906
3912
|
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 '
|
|
3907
3913
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3908
3914
|
className: "ml-2 mr-2",
|
|
3909
3915
|
style: {
|
|
3910
3916
|
textDecoration: 'none'
|
|
3911
3917
|
}
|
|
3912
|
-
}, "-"), 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 || (
|
|
3918
|
+
}, "-"), 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 || (_fetchProductInfoQuer63 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer63 === void 0 || (_fetchProductInfoQuer63 = _fetchProductInfoQuer63.data) === null || _fetchProductInfoQuer63 === void 0 || (_fetchProductInfoQuer63 = _fetchProductInfoQuer63.productinfo) === null || _fetchProductInfoQuer63 === void 0 ? void 0 : _fetchProductInfoQuer63.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3913
3919
|
className: "col-lg-12 p-0 mb-3 mt-2"
|
|
3914
3920
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3915
3921
|
style: {
|
|
@@ -3957,7 +3963,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3957
3963
|
paddingLeft: langdetect == 'en' ? '.5em' : 0,
|
|
3958
3964
|
paddingRight: langdetect == 'ar' ? '.5rem' : 0
|
|
3959
3965
|
}
|
|
3960
|
-
}, StoreInfoprops(), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3966
|
+
}, StoreInfoprops(), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer64 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer64 === void 0 || (_fetchProductInfoQuer64 = _fetchProductInfoQuer64.data) === null || _fetchProductInfoQuer64 === void 0 || (_fetchProductInfoQuer64 = _fetchProductInfoQuer64.productinfo) === null || _fetchProductInfoQuer64 === void 0 ? void 0 : _fetchProductInfoQuer64.hasvariants) == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3961
3967
|
"class": "col-lg-12 allcentered mb-2 p-sm-0 mt-2"
|
|
3962
3968
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3963
3969
|
"class": productinfo_cssstyles.sizeguidebtn,
|
|
@@ -3996,7 +4002,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3996
4002
|
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
3997
4003
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
3998
4004
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
3999
|
-
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4005
|
+
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer65 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer65 === void 0 || (_fetchProductInfoQuer65 = _fetchProductInfoQuer65.data) === null || _fetchProductInfoQuer65 === void 0 || (_fetchProductInfoQuer65 = _fetchProductInfoQuer65.productinfo) === null || _fetchProductInfoQuer65 === void 0 ? void 0 : _fetchProductInfoQuer65.productmainimage),
|
|
4000
4006
|
style: {
|
|
4001
4007
|
width: '100%',
|
|
4002
4008
|
height: '100%',
|
|
@@ -4029,13 +4035,13 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4029
4035
|
color: sectionproperties.prodCatColor
|
|
4030
4036
|
},
|
|
4031
4037
|
dangerouslySetInnerHTML: {
|
|
4032
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4038
|
+
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer66 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer66 === void 0 || (_fetchProductInfoQuer66 = _fetchProductInfoQuer66.data) === null || _fetchProductInfoQuer66 === void 0 || (_fetchProductInfoQuer66 = _fetchProductInfoQuer66.productinfo) === null || _fetchProductInfoQuer66 === void 0 ? void 0 : _fetchProductInfoQuer66.short_description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer67 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer67 === void 0 || (_fetchProductInfoQuer67 = _fetchProductInfoQuer67.data) === null || _fetchProductInfoQuer67 === void 0 || (_fetchProductInfoQuer67 = _fetchProductInfoQuer67.productinfo) === null || _fetchProductInfoQuer67 === void 0 ? void 0 : _fetchProductInfoQuer67.short_description_ar
|
|
4033
4039
|
}
|
|
4034
4040
|
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4035
4041
|
"class": "col-lg-12 text-start p-md-0"
|
|
4036
4042
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4037
4043
|
className: "row m-0 w-100"
|
|
4038
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4044
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer68 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer68 === void 0 || (_fetchProductInfoQuer68 = _fetchProductInfoQuer68.data) === null || _fetchProductInfoQuer68 === void 0 || (_fetchProductInfoQuer68 = _fetchProductInfoQuer68.productinfo) === null || _fetchProductInfoQuer68 === void 0 || (_fetchProductInfoQuer68 = _fetchProductInfoQuer68.productfeatures) === null || _fetchProductInfoQuer68 === void 0 ? void 0 : _fetchProductInfoQuer68.map(function (fitem, findex) {
|
|
4039
4045
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4040
4046
|
"class": ' col-md-6 p-0 mb-3 mt-2 col-lg-' + sectionproperties.featuresnumcols
|
|
4041
4047
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -4077,7 +4083,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4077
4083
|
"class": "col-lg-12 p-0 my-4"
|
|
4078
4084
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4079
4085
|
"class": "row m-0 w-100"
|
|
4080
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4086
|
+
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer69 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer69 === void 0 || (_fetchProductInfoQuer69 = _fetchProductInfoQuer69.data) === null || _fetchProductInfoQuer69 === void 0 || (_fetchProductInfoQuer69 = _fetchProductInfoQuer69.productinfo) === null || _fetchProductInfoQuer69 === void 0 || (_fetchProductInfoQuer69 = _fetchProductInfoQuer69.productimages) === null || _fetchProductInfoQuer69 === void 0 ? void 0 : _fetchProductInfoQuer69.length) != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer70 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer70 === void 0 || (_fetchProductInfoQuer70 = _fetchProductInfoQuer70.data) === null || _fetchProductInfoQuer70 === void 0 || (_fetchProductInfoQuer70 = _fetchProductInfoQuer70.productinfo) === null || _fetchProductInfoQuer70 === void 0 ? void 0 : _fetchProductInfoQuer70.productimages.map(function (item, index) {
|
|
4081
4087
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4082
4088
|
"class": "col-lg-4 col-sm-12 mb-md-2 p-md-0"
|
|
4083
4089
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -4104,7 +4110,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4104
4110
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
4105
4111
|
},
|
|
4106
4112
|
dangerouslySetInnerHTML: {
|
|
4107
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4113
|
+
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer71 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer71 === void 0 || (_fetchProductInfoQuer71 = _fetchProductInfoQuer71.data) === null || _fetchProductInfoQuer71 === void 0 || (_fetchProductInfoQuer71 = _fetchProductInfoQuer71.productinfo) === null || _fetchProductInfoQuer71 === void 0 ? void 0 : _fetchProductInfoQuer71.description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer72 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer72 === void 0 || (_fetchProductInfoQuer72 = _fetchProductInfoQuer72.data) === null || _fetchProductInfoQuer72 === void 0 || (_fetchProductInfoQuer72 = _fetchProductInfoQuer72.productinfo) === null || _fetchProductInfoQuer72 === void 0 ? void 0 : _fetchProductInfoQuer72.description_ar
|
|
4108
4114
|
}
|
|
4109
4115
|
})))))), sizeguideimage.length != 0 && /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal, {
|
|
4110
4116
|
show: opensizeguidemodal,
|
|
@@ -6639,8 +6645,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
6639
6645
|
setproductimagesarray = _useState24[1];
|
|
6640
6646
|
var _useState25 = React.useState(null),
|
|
6641
6647
|
_useState26 = _slicedToArray__default["default"](_useState25, 2),
|
|
6642
|
-
quantityconditionfoundobj = _useState26[0]
|
|
6643
|
-
|
|
6648
|
+
quantityconditionfoundobj = _useState26[0];
|
|
6649
|
+
_useState26[1];
|
|
6644
6650
|
var _useState27 = React.useState({
|
|
6645
6651
|
functype: 'add',
|
|
6646
6652
|
item_type: 'product',
|
|
@@ -7747,13 +7753,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
7747
7753
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
7748
7754
|
var _fetchProductInfoQuer31, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34;
|
|
7749
7755
|
var price = 0;
|
|
7750
|
-
var quantityconditions = [];
|
|
7751
7756
|
var quantity = 0;
|
|
7752
7757
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
7753
7758
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
7754
7759
|
}
|
|
7755
7760
|
if ((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.productquantityoptions) != undefined && (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) != null && Array.isArray(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) && (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) {
|
|
7756
|
-
|
|
7761
|
+
fetchProductInfoQueryContext.data.data.productinfo.productquantityoptions;
|
|
7757
7762
|
}
|
|
7758
7763
|
if (type == 'defaultprice') {
|
|
7759
7764
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultprice;
|
|
@@ -7778,21 +7783,20 @@ var Productinfo = function Productinfo(props) {
|
|
|
7778
7783
|
}
|
|
7779
7784
|
}
|
|
7780
7785
|
}
|
|
7781
|
-
var localquantityconditionobj = null;
|
|
7782
7786
|
var temppriceinseidconditions = price;
|
|
7783
|
-
quantityconditions.forEach(function (item, index) {
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
});
|
|
7787
|
+
// quantityconditions.forEach(function (item, index) {
|
|
7788
|
+
// if (item.fromq <= quantity && item.toq >= quantity) {
|
|
7789
|
+
// var discountprice = (item.value / 100) * price;
|
|
7790
|
+
// if (item.type == 'add') {
|
|
7791
|
+
// temppriceinseidconditions = price + discountprice;
|
|
7792
|
+
// } else if (item.type == 'subtract') {
|
|
7793
|
+
// temppriceinseidconditions = price - discountprice;
|
|
7794
|
+
// }
|
|
7795
|
+
// localquantityconditionobj = item;
|
|
7796
|
+
// }
|
|
7797
|
+
// });
|
|
7794
7798
|
price = temppriceinseidconditions;
|
|
7795
|
-
setquantityconditionfoundobj(localquantityconditionobj);
|
|
7799
|
+
// setquantityconditionfoundobj(localquantityconditionobj);
|
|
7796
7800
|
if (withtotal == true) {
|
|
7797
7801
|
price = price * quantity;
|
|
7798
7802
|
}
|