tabexseriescomponents 0.2.1431 → 0.2.1432
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 +307 -174
- package/dist/index.esm.js +305 -172
- package/dist/index.umd.js +309 -176
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -15,8 +15,10 @@ import { FaFacebookF } from '@react-icons/all-files/fa/FaFacebookF';
|
|
|
15
15
|
import { AiOutlineUser } from '@react-icons/all-files/ai/AiOutlineUser';
|
|
16
16
|
import { IoMdClose } from '@react-icons/all-files/io/IoMdClose';
|
|
17
17
|
import { Modal, Offcanvas } from 'react-bootstrap';
|
|
18
|
+
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
18
19
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
19
20
|
import _typeof from '@babel/runtime/helpers/typeof';
|
|
21
|
+
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
20
22
|
import _extends from '@babel/runtime/helpers/extends';
|
|
21
23
|
import ImageGallery from 'react-image-gallery';
|
|
22
24
|
import { MdAddShoppingCart } from '@react-icons/all-files/md/MdAddShoppingCart';
|
|
@@ -52,8 +54,6 @@ import { FiCalendar } from '@react-icons/all-files/fi/FiCalendar';
|
|
|
52
54
|
import InputRange from 'react-input-range';
|
|
53
55
|
import ReactPlayer from 'react-player';
|
|
54
56
|
import axios from 'axios';
|
|
55
|
-
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
56
|
-
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
57
57
|
import { FiEye } from '@react-icons/all-files/fi/FiEye';
|
|
58
58
|
import { FaGripfire } from '@react-icons/all-files/fa/FaGripfire';
|
|
59
59
|
import { AiOutlineClockCircle } from '@react-icons/all-files/ai/AiOutlineClockCircle';
|
|
@@ -2542,7 +2542,7 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
2542
2542
|
var sectionproperties = props.actions.sectionproperties;
|
|
2543
2543
|
props.actions.addtocardpayloadobj;
|
|
2544
2544
|
props.actions.setaddtocardpayloadobj;
|
|
2545
|
-
|
|
2545
|
+
props.actions.addtocartfunc_extras;
|
|
2546
2546
|
var product_prod_extras_array = props.actions.product_prod_extras_array;
|
|
2547
2547
|
var setproduct_prod_extras_array = props.actions.setproduct_prod_extras_array;
|
|
2548
2548
|
var variantindexcompleted = props.actions.variantindexcompleted;
|
|
@@ -2601,7 +2601,7 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
2601
2601
|
return /*#__PURE__*/React.createElement("div", {
|
|
2602
2602
|
className: 'row w-100 ml-0 mr-0 mt-3'
|
|
2603
2603
|
}, product_prod_extras_array === null || product_prod_extras_array === void 0 ? void 0 : product_prod_extras_array.map(function (item, index) {
|
|
2604
|
-
var _item$productinfo, _item$productinfo2
|
|
2604
|
+
var _item$productinfo, _item$productinfo2;
|
|
2605
2605
|
return /*#__PURE__*/React.createElement("div", {
|
|
2606
2606
|
"class": props.srcfromprops == 'servicestyle2' ? 'col-lg-12 col-sm-12 p-0 mb-3' : 'col-lg-6 col-sm-12 p-0 mb-3'
|
|
2607
2607
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -2614,16 +2614,15 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
2614
2614
|
"class": "col-12 p-0 text-start"
|
|
2615
2615
|
}, /*#__PURE__*/React.createElement("p", {
|
|
2616
2616
|
className: "".concat(formstyles.input_label_name) + ' m-0 p-0 '
|
|
2617
|
-
}, item === null || item === void 0
|
|
2617
|
+
}, item === null || item === void 0 ? void 0 : item.productinfo["name_".concat(langdetect)])), /*#__PURE__*/React.createElement("div", {
|
|
2618
2618
|
"class": "col-12 p-0 text-start"
|
|
2619
2619
|
}, /*#__PURE__*/React.createElement("p", {
|
|
2620
2620
|
className: ' m-0 p-0 ',
|
|
2621
2621
|
style: {
|
|
2622
|
-
color: '#ccc',
|
|
2623
2622
|
fontSize: 15
|
|
2624
2623
|
},
|
|
2625
2624
|
dangerouslySetInnerHTML: {
|
|
2626
|
-
__html:
|
|
2625
|
+
__html: item === null || item === void 0 ? void 0 : item.productinfo["description_".concat(langdetect)]
|
|
2627
2626
|
}
|
|
2628
2627
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
2629
2628
|
className: ' col-6 p-sm-0 d-flex align-items-center justify-content-end cursor-pointer '
|
|
@@ -2632,7 +2631,7 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
2632
2631
|
style: {
|
|
2633
2632
|
fontSize: 12
|
|
2634
2633
|
}
|
|
2635
|
-
}, "(+", ' ', sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item === null || item === void 0 || (_item$
|
|
2634
|
+
}, "(+", ' ', sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item === null || item === void 0 || (_item$productinfo = item.productinfo) === null || _item$productinfo === void 0 ? void 0 : _item$productinfo.defaultprice).toLocaleString() : item === null || item === void 0 || (_item$productinfo2 = item.productinfo) === null || _item$productinfo2 === void 0 ? void 0 : _item$productinfo2.defaultprice, ' ', langdetect == 'ar' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en, ")"), /*#__PURE__*/React.createElement("div", {
|
|
2636
2635
|
"class": "d-flex flex-row",
|
|
2637
2636
|
style: {
|
|
2638
2637
|
width: '50%',
|
|
@@ -2667,7 +2666,6 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
2667
2666
|
}
|
|
2668
2667
|
quantity = quantity - 1;
|
|
2669
2668
|
if (quantity >= 0) {
|
|
2670
|
-
var _item$productinfo6;
|
|
2671
2669
|
tempproduct_prod_extras_array[index].quantity = quantity;
|
|
2672
2670
|
tempproduct_prod_extras_array[index].quantity = quantity;
|
|
2673
2671
|
var variantid = null;
|
|
@@ -2679,21 +2677,21 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
2679
2677
|
tempproduct_prod_extras_array[index].main_ref_productid = productid;
|
|
2680
2678
|
tempproduct_prod_extras_array[index].item_type = 'Extras';
|
|
2681
2679
|
tempproduct_prod_extras_array[index].productinfo = item === null || item === void 0 ? void 0 : item.productinfo;
|
|
2682
|
-
addtocartfunc_extras(false, {
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
});
|
|
2680
|
+
// addtocartfunc_extras(false, {
|
|
2681
|
+
// functype: 'add',
|
|
2682
|
+
// item_type: 'Extras',
|
|
2683
|
+
// productid: item?.productinfo?.productid,
|
|
2684
|
+
// main_ref_productid: productid,
|
|
2685
|
+
// main_ref_variantid: variantid,
|
|
2686
|
+
// variantid: '',
|
|
2687
|
+
// quantity: quantity,
|
|
2688
|
+
// hasvariants: 0,
|
|
2689
|
+
// date: '',
|
|
2690
|
+
// time: '',
|
|
2691
|
+
// from: '',
|
|
2692
|
+
// to: '',
|
|
2693
|
+
// extrafields: [],
|
|
2694
|
+
// });
|
|
2697
2695
|
setproduct_prod_extras_array(_toConsumableArray(tempproduct_prod_extras_array));
|
|
2698
2696
|
} else {
|
|
2699
2697
|
alert('Quantity cannot be less than 0');
|
|
@@ -2728,7 +2726,6 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
2728
2726
|
can_add_extras = true;
|
|
2729
2727
|
}
|
|
2730
2728
|
if (can_add_extras) {
|
|
2731
|
-
var _item$productinfo7;
|
|
2732
2729
|
var quantity = 0;
|
|
2733
2730
|
var tempproduct_prod_extras_array = _toConsumableArray(product_prod_extras_array);
|
|
2734
2731
|
if (tempproduct_prod_extras_array[index].quantity != undefined && tempproduct_prod_extras_array[index].quantity != null && tempproduct_prod_extras_array[index].quantity != 0) {
|
|
@@ -2745,21 +2742,22 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
2745
2742
|
tempproduct_prod_extras_array[index].main_ref_productid = productid;
|
|
2746
2743
|
tempproduct_prod_extras_array[index].item_type = 'Extras';
|
|
2747
2744
|
tempproduct_prod_extras_array[index].productinfo = item === null || item === void 0 ? void 0 : item.productinfo;
|
|
2748
|
-
addtocartfunc_extras(false, {
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2745
|
+
// addtocartfunc_extras(false, {
|
|
2746
|
+
// functype: 'add',
|
|
2747
|
+
// item_type: 'Extras',
|
|
2748
|
+
// productid: item?.productinfo?.productid,
|
|
2749
|
+
// main_ref_productid: productid,
|
|
2750
|
+
// main_ref_variantid: variantid,
|
|
2751
|
+
// variantid: '',
|
|
2752
|
+
// quantity: quantity,
|
|
2753
|
+
// hasvariants: 0,
|
|
2754
|
+
|
|
2755
|
+
// date: '',
|
|
2756
|
+
// time: '',
|
|
2757
|
+
// from: '',
|
|
2758
|
+
// to: '',
|
|
2759
|
+
// extrafields: [],
|
|
2760
|
+
// });
|
|
2763
2761
|
setproduct_prod_extras_array(_toConsumableArray(tempproduct_prod_extras_array));
|
|
2764
2762
|
}
|
|
2765
2763
|
}
|
|
@@ -4339,9 +4337,9 @@ var ProductFileUploader = function ProductFileUploader(props) {
|
|
|
4339
4337
|
}, langdetect == 'en' ? 'Upload File' : 'رفع الصورة')));
|
|
4340
4338
|
};
|
|
4341
4339
|
|
|
4342
|
-
function _createForOfIteratorHelper$
|
|
4343
|
-
function _unsupportedIterableToArray$
|
|
4344
|
-
function _arrayLikeToArray$
|
|
4340
|
+
function _createForOfIteratorHelper$2(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$2(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
4341
|
+
function _unsupportedIterableToArray$2(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$2(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) : void 0; } }
|
|
4342
|
+
function _arrayLikeToArray$2(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
4345
4343
|
var Product_freqbought_tog = function Product_freqbought_tog(props) {
|
|
4346
4344
|
var _fetchProductInfoQuer, _ProductInfoObj$data, _authdetailsContext$i;
|
|
4347
4345
|
props.actions.lang;
|
|
@@ -4468,7 +4466,7 @@ var Product_freqbought_tog = function Product_freqbought_tog(props) {
|
|
|
4468
4466
|
return setTimeout(resolve, ms);
|
|
4469
4467
|
});
|
|
4470
4468
|
};
|
|
4471
|
-
_iterator = _createForOfIteratorHelper$
|
|
4469
|
+
_iterator = _createForOfIteratorHelper$2(prod_extras_tobeadded || []);
|
|
4472
4470
|
_context.prev = 1;
|
|
4473
4471
|
_iterator.s();
|
|
4474
4472
|
case 2:
|
|
@@ -8284,10 +8282,13 @@ var TamaraWidget = function TamaraWidget(props) {
|
|
|
8284
8282
|
})));
|
|
8285
8283
|
};
|
|
8286
8284
|
|
|
8285
|
+
function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
8286
|
+
function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }
|
|
8287
|
+
function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
8287
8288
|
function ownKeys$2D(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; }
|
|
8288
8289
|
function _objectSpread$2D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8289
8290
|
var Productinfo = function Productinfo(props) {
|
|
8290
|
-
var _css,
|
|
8291
|
+
var _css, _fetchProductInfoQuer92, _ref2, _fetchProductInfoQuer93, _authdetailsContext$i46, _ref3, _fetchProductInfoQuer94, _authdetailsContext$i47, _ref4, _fetchProductInfoQuer95, _ref5, _authdetailsContext$i48, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _authdetailsContext$i49, _returnpolicyobj9, _returnpolicyobj0, _returnpolicyobj1, _returnpolicyobj10, _authdetailsContext$i50, _authdetailsContext$i51, _authdetailsContext$i52, _authdetailsContext$i53, _authdetailsContext$i54, _authdetailsContext$i55, _authdetailsContext$i56, _authdetailsContext$i57, _authdetailsContext$i58, _authdetailsContext$i59, _authdetailsContext$i60, _authdetailsContext$i61, _authdetailsContext$i62, _authdetailsContext$i63, _authdetailsContext$i64, _fetchProductInfoQuer96, _fetchProductInfoQuer97, _fetchProductInfoQuer98, _returnpolicyobj11, _returnpolicyobj12, _returnpolicyobj13, _returnpolicyobj14, _fetchProductInfoQuer99, _fetchProductInfoQuer100, _returnpolicyobj15, _returnpolicyobj16, _returnpolicyobj17, _returnpolicyobj18, _fetchProductInfoQuer101, _fetchProductInfoQuer102, _returnpolicyobj19, _returnpolicyobj20, _returnpolicyobj21, _returnpolicyobj22, _authdetailsContext$i65, _returnpolicyobj23, _returnpolicyobj24, _returnpolicyobj25, _returnpolicyobj26, _fetchProductInfoQuer103, _fetchProductInfoQuer104, _fetchProductInfoQuer105, _fetchProductInfoQuer106, _returnpolicyobj27, _returnpolicyobj28, _returnpolicyobj29, _returnpolicyobj30, _authdetailsContext$i66, _returnpolicyobj31, _returnpolicyobj32, _returnpolicyobj33, _returnpolicyobj34, _fetchProductInfoQuer107, _fetchProductInfoQuer108, _fetchProductInfoQuer109, _fetchProductInfoQuer110, _authdetailsContext$i67, _returnpolicyobj35, _returnpolicyobj36, _returnpolicyobj37, _returnpolicyobj38, _fetchProductInfoQuer111, _fetchProductInfoQuer112, _fetchProductInfoQuer113, _fetchProductInfoQuer114, _fetchProductInfoQuer115, _authdetailsContext$i68, _returnpolicyobj39, _returnpolicyobj40, _returnpolicyobj41, _returnpolicyobj42, _fetchProductInfoQuer116, _fetchProductInfoQuer117, _returnpolicyobj43, _returnpolicyobj44, _returnpolicyobj45, _returnpolicyobj46, _authdetailsContext$i69, _fetchProductInfoQuer118, _fetchProductInfoQuer119, _fetchProductInfoQuer120, _fetchProductInfoQuer121, _returnpolicyobj47, _returnpolicyobj48, _returnpolicyobj49, _returnpolicyobj50, _authdetailsContext$i70, _authdetailsContext$i71, _returnpolicyobj51, _returnpolicyobj52, _returnpolicyobj53, _returnpolicyobj54, _authdetailsContext$i72, _authdetailsContext$i73;
|
|
8291
8292
|
var _useState = useState({}),
|
|
8292
8293
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8293
8294
|
ProductInfoObj = _useState2[0],
|
|
@@ -10790,64 +10791,145 @@ var Productinfo = function Productinfo(props) {
|
|
|
10790
10791
|
// queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
|
|
10791
10792
|
setProductInfoObj(_objectSpread$2D({}, productarr));
|
|
10792
10793
|
};
|
|
10793
|
-
var addtocartfunc = function
|
|
10794
|
-
var
|
|
10795
|
-
|
|
10796
|
-
|
|
10797
|
-
|
|
10798
|
-
|
|
10799
|
-
|
|
10800
|
-
|
|
10801
|
-
|
|
10802
|
-
|
|
10803
|
-
|
|
10804
|
-
|
|
10805
|
-
|
|
10806
|
-
|
|
10807
|
-
|
|
10808
|
-
|
|
10809
|
-
|
|
10810
|
-
|
|
10811
|
-
|
|
10812
|
-
|
|
10813
|
-
|
|
10814
|
-
|
|
10815
|
-
|
|
10816
|
-
|
|
10817
|
-
|
|
10818
|
-
|
|
10819
|
-
|
|
10820
|
-
|
|
10821
|
-
|
|
10822
|
-
|
|
10823
|
-
|
|
10824
|
-
|
|
10825
|
-
|
|
10826
|
-
|
|
10827
|
-
|
|
10828
|
-
|
|
10829
|
-
|
|
10794
|
+
var addtocartfunc = /*#__PURE__*/function () {
|
|
10795
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(forcetocheckout) {
|
|
10796
|
+
var runfunc, forcetocheckoutvalue, _fetchProductInfoQuer42, _authdetailsContext$i28, _authdetailsContext$i29, _authdetailsContext$i30, _fetchProductInfoQuer43, _fetchProductInfoQuer44, tempaddtocardpayloadobj, Extrafieldvalidationresponse, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer47, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, finalprice, prod_extras_tobeadded, sleep, _iterator, _step, _item$productinfo, _fetchProductInfoQuer52, item, variantid, _fetchProductInfoQuer51, _t;
|
|
10797
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
10798
|
+
while (1) switch (_context.prev = _context.next) {
|
|
10799
|
+
case 0:
|
|
10800
|
+
runfunc = false;
|
|
10801
|
+
forcetocheckoutvalue = forcetocheckout; // alert(addtocardpayloadobj.quantity + 'sad');
|
|
10802
|
+
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
10803
|
+
if ((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.hasvariants) == 1) {
|
|
10804
|
+
if (addtocardpayloadobj.variantid.length != 0) {
|
|
10805
|
+
runfunc = true;
|
|
10806
|
+
} else {
|
|
10807
|
+
// here
|
|
10808
|
+
setvariantnotchosendisclaimer('This field is required');
|
|
10809
|
+
NotificationManager.warning('', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i28 = authdetailsContext.instinfo) === null || _authdetailsContext$i28 === void 0 ? void 0 : _authdetailsContext$i28.contactinfo.instid) == '674f0617c7811' ? langdetect == 'en' ? 'Please Choose Size & Color' : 'من فضلك اخنر اللون و المقاس' : (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i29 = authdetailsContext.instinfo) === null || _authdetailsContext$i29 === void 0 ? void 0 : _authdetailsContext$i29.contactinfo.instid) == '693fdc5a14f45' ? langdetect == 'en' ? 'Please Choose Size & Color' : 'من فضلك اخنر اللون و المقاس' : (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i30 = authdetailsContext.instinfo) === null || _authdetailsContext$i30 === void 0 ? void 0 : _authdetailsContext$i30.contactinfo.instid) == '67e448d2ef6e0' ? langdetect == 'en' ? 'Please Choose Color' : 'من فضلك اختر لون' : langdetect == 'en' ? 'Please Choose Product Options' : 'من فضلك اختر من المتغيرات');
|
|
10810
|
+
}
|
|
10811
|
+
} else {
|
|
10812
|
+
runfunc = true;
|
|
10813
|
+
}
|
|
10814
|
+
} else {
|
|
10815
|
+
NotificationManager.warning('', 'Please Choose Quantity');
|
|
10816
|
+
}
|
|
10817
|
+
if (!(runfunc == true)) {
|
|
10818
|
+
_context.next = 10;
|
|
10819
|
+
break;
|
|
10820
|
+
}
|
|
10821
|
+
tempaddtocardpayloadobj = _objectSpread$2D({}, addtocardpayloadobj);
|
|
10822
|
+
tempaddtocardpayloadobj.isproductforcedtocheckout = 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.isproductforcedtocheckout;
|
|
10823
|
+
tempaddtocardpayloadobj.vendorid = 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.vendorproviderid;
|
|
10824
|
+
if (forcetocheckoutvalue != undefined) {
|
|
10825
|
+
tempaddtocardpayloadobj.forcetocheckoutvalue = forcetocheckoutvalue;
|
|
10826
|
+
}
|
|
10827
|
+
Extrafieldvalidationresponse = validateextrafields();
|
|
10828
|
+
if (!Extrafieldvalidationresponse.status) {
|
|
10829
|
+
_context.next = 10;
|
|
10830
|
+
break;
|
|
10831
|
+
}
|
|
10832
|
+
finalprice = 0;
|
|
10833
|
+
if ((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.hassale) == 1) {
|
|
10834
|
+
finalprice = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
|
|
10835
|
+
} else {
|
|
10836
|
+
finalprice = getprice_discountpriceprops('defaultprice', 0, variantindexcompleted);
|
|
10837
|
+
}
|
|
10838
|
+
Pixel_EventsContext('AddToCart', {
|
|
10839
|
+
content_ids: [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.productid],
|
|
10840
|
+
content_name: (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.name_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.name_ar),
|
|
10841
|
+
content_sku: 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.sku,
|
|
10842
|
+
content_type: 'product',
|
|
10843
|
+
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer50 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer50 === void 0 || (_fetchProductInfoQuer50 = _fetchProductInfoQuer50.data) === null || _fetchProductInfoQuer50 === void 0 ? void 0 : _fetchProductInfoQuer50.currencyname_en,
|
|
10844
|
+
value: finalprice,
|
|
10845
|
+
quantity: addtocardpayloadobj.quantity
|
|
10846
|
+
});
|
|
10847
|
+
AddtoCartContext(tempaddtocardpayloadobj);
|
|
10848
|
+
// new
|
|
10849
|
+
prod_extras_tobeadded = [];
|
|
10850
|
+
product_prod_extras_array === null || product_prod_extras_array === void 0 || product_prod_extras_array.forEach(function (item, index) {
|
|
10851
|
+
if (item.main_ref_productid != undefined) {
|
|
10852
|
+
prod_extras_tobeadded.push(item);
|
|
10853
|
+
}
|
|
10854
|
+
});
|
|
10855
|
+
if (!(prod_extras_tobeadded.length != 0)) {
|
|
10856
|
+
_context.next = 9;
|
|
10857
|
+
break;
|
|
10858
|
+
}
|
|
10859
|
+
sleep = function sleep(ms) {
|
|
10860
|
+
return new Promise(function (resolve) {
|
|
10861
|
+
return setTimeout(resolve, ms);
|
|
10862
|
+
});
|
|
10863
|
+
};
|
|
10864
|
+
_context.next = 1;
|
|
10865
|
+
return sleep(3500);
|
|
10866
|
+
case 1:
|
|
10867
|
+
_iterator = _createForOfIteratorHelper$1(prod_extras_tobeadded || []);
|
|
10868
|
+
_context.prev = 2;
|
|
10869
|
+
_iterator.s();
|
|
10870
|
+
case 3:
|
|
10871
|
+
if ((_step = _iterator.n()).done) {
|
|
10872
|
+
_context.next = 6;
|
|
10873
|
+
break;
|
|
10874
|
+
}
|
|
10875
|
+
item = _step.value;
|
|
10876
|
+
variantid = '';
|
|
10877
|
+
if (variantindexcompleted != undefined && variantindexcompleted != null && (variantindexcompleted === null || variantindexcompleted === void 0 ? void 0 : variantindexcompleted.length) != 0) {
|
|
10878
|
+
variantid = 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.variantid;
|
|
10879
|
+
}
|
|
10880
|
+
_context.next = 4;
|
|
10881
|
+
return addtocartfunc_extras(false, {
|
|
10882
|
+
functype: 'add',
|
|
10883
|
+
item_type: 'Extras',
|
|
10884
|
+
productid: item === null || item === void 0 || (_item$productinfo = item.productinfo) === null || _item$productinfo === void 0 ? void 0 : _item$productinfo.productid,
|
|
10885
|
+
main_ref_productid: 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.productid,
|
|
10886
|
+
main_ref_variantid: variantid,
|
|
10887
|
+
variantid: '',
|
|
10888
|
+
quantity: item.quantity,
|
|
10889
|
+
hasvariants: 0,
|
|
10890
|
+
date: '',
|
|
10891
|
+
time: '',
|
|
10892
|
+
from: '',
|
|
10893
|
+
to: '',
|
|
10894
|
+
extrafields: []
|
|
10895
|
+
});
|
|
10896
|
+
case 4:
|
|
10897
|
+
_context.next = 5;
|
|
10898
|
+
return sleep(1000);
|
|
10899
|
+
case 5:
|
|
10900
|
+
_context.next = 3;
|
|
10901
|
+
break;
|
|
10902
|
+
case 6:
|
|
10903
|
+
_context.next = 8;
|
|
10904
|
+
break;
|
|
10905
|
+
case 7:
|
|
10906
|
+
_context.prev = 7;
|
|
10907
|
+
_t = _context["catch"](2);
|
|
10908
|
+
_iterator.e(_t);
|
|
10909
|
+
case 8:
|
|
10910
|
+
_context.prev = 8;
|
|
10911
|
+
_iterator.f();
|
|
10912
|
+
return _context.finish(8);
|
|
10913
|
+
case 9:
|
|
10914
|
+
_context.next = 10;
|
|
10915
|
+
break;
|
|
10916
|
+
case 10:
|
|
10917
|
+
case "end":
|
|
10918
|
+
return _context.stop();
|
|
10830
10919
|
}
|
|
10831
|
-
|
|
10832
|
-
|
|
10833
|
-
|
|
10834
|
-
|
|
10835
|
-
|
|
10836
|
-
|
|
10837
|
-
value: finalprice,
|
|
10838
|
-
quantity: addtocardpayloadobj.quantity
|
|
10839
|
-
});
|
|
10840
|
-
AddtoCartContext(tempaddtocardpayloadobj);
|
|
10841
|
-
}
|
|
10842
|
-
}
|
|
10843
|
-
};
|
|
10920
|
+
}, _callee, null, [[2, 7, 8, 9]]);
|
|
10921
|
+
}));
|
|
10922
|
+
return function addtocartfunc(_x) {
|
|
10923
|
+
return _ref.apply(this, arguments);
|
|
10924
|
+
};
|
|
10925
|
+
}();
|
|
10844
10926
|
var validateextrafields = function validateextrafields() {
|
|
10845
|
-
var
|
|
10927
|
+
var _fetchProductInfoQuer53;
|
|
10846
10928
|
var tempaddtocardpayloadobj = _objectSpread$2D({}, addtocardpayloadobj);
|
|
10847
10929
|
var status = false;
|
|
10848
10930
|
var reason = '';
|
|
10849
10931
|
var missingitemsfound = [];
|
|
10850
|
-
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10932
|
+
var extrafields = 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.productextrafields;
|
|
10851
10933
|
if ((extrafields === null || extrafields === void 0 ? void 0 : extrafields.length) == 0) {
|
|
10852
10934
|
status = true;
|
|
10853
10935
|
} else {
|
|
@@ -10969,9 +11051,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
10969
11051
|
scrollContainerClassName: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i36 = authdetailsContext.instinfo) === null || _authdetailsContext$i36 === void 0 ? void 0 : _authdetailsContext$i36.contactinfo.instid) == '68e7c7c93c5bd' ? '' : 'scrollmenuclasssubscrollbarrelatedproducts'
|
|
10970
11052
|
}, Relatedproducts.map(function (item, index) {
|
|
10971
11053
|
if (item.productinfo != null) {
|
|
10972
|
-
var
|
|
10973
|
-
if (item.productid != (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10974
|
-
var
|
|
11054
|
+
var _fetchProductInfoQuer54;
|
|
11055
|
+
if (item.productid != (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.productid)) {
|
|
11056
|
+
var _fetchProductInfoQuer55, _fetchProductInfoQuer56;
|
|
10975
11057
|
return /*#__PURE__*/React.createElement("div", {
|
|
10976
11058
|
className: "col-lg-12 mb-3 px-1",
|
|
10977
11059
|
onClick: function onClick() {
|
|
@@ -11022,7 +11104,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
11022
11104
|
"class": "col-lg-12 d-flex align-items-center justify-content-center p-0 "
|
|
11023
11105
|
}, /*#__PURE__*/React.createElement("p", {
|
|
11024
11106
|
"class": "".concat(productinfo_cssstyles.relatedproductPricestyles) + ' m-0 '
|
|
11025
|
-
}, item.productinfo.hassale == 1 ? item.productinfo.defaultsaleprice : item.productinfo.defaultprice, ' ', langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11107
|
+
}, item.productinfo.hassale == 1 ? item.productinfo.defaultsaleprice : item.productinfo.defaultprice, ' ', langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer55 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer55 === void 0 || (_fetchProductInfoQuer55 = _fetchProductInfoQuer55.data) === null || _fetchProductInfoQuer55 === void 0 ? void 0 : _fetchProductInfoQuer55.currencyname_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer56 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer56 === void 0 || (_fetchProductInfoQuer56 = _fetchProductInfoQuer56.data) === null || _fetchProductInfoQuer56 === void 0 ? void 0 : _fetchProductInfoQuer56.currencyname_ar, ' '))))));
|
|
11026
11108
|
}
|
|
11027
11109
|
}
|
|
11028
11110
|
}))), sectionproperties.relatedproductsectionstyle == 'Vertical' && /*#__PURE__*/React.createElement("div", {
|
|
@@ -11031,9 +11113,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
11031
11113
|
className: "row m-0 w-100"
|
|
11032
11114
|
}, Relatedproducts.map(function (item, index) {
|
|
11033
11115
|
if (item.productinfo != null) {
|
|
11034
|
-
var
|
|
11035
|
-
if (item.productid != (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11036
|
-
var
|
|
11116
|
+
var _fetchProductInfoQuer57;
|
|
11117
|
+
if (item.productid != (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.productid)) {
|
|
11118
|
+
var _fetchProductInfoQuer58, _fetchProductInfoQuer59;
|
|
11037
11119
|
return /*#__PURE__*/React.createElement("div", {
|
|
11038
11120
|
className: "col-lg-3 col-sm-6 mb-4 ",
|
|
11039
11121
|
onClick: function onClick() {
|
|
@@ -11075,12 +11157,63 @@ var Productinfo = function Productinfo(props) {
|
|
|
11075
11157
|
"class": "col-lg-12 d-flex align-items-center justify-content-center p-0 "
|
|
11076
11158
|
}, /*#__PURE__*/React.createElement("p", {
|
|
11077
11159
|
"class": "".concat(productinfo_cssstyles.relatedproductPricestyles) + ' m-0 '
|
|
11078
|
-
}, item.productinfo.hassale == 1 ? item.productinfo.defaultsaleprice : item.productinfo.defaultprice, ' ', langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11160
|
+
}, item.productinfo.hassale == 1 ? item.productinfo.defaultsaleprice : item.productinfo.defaultprice, ' ', langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer58 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer58 === void 0 || (_fetchProductInfoQuer58 = _fetchProductInfoQuer58.data) === null || _fetchProductInfoQuer58 === void 0 ? void 0 : _fetchProductInfoQuer58.currencyname_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer59 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer59 === void 0 || (_fetchProductInfoQuer59 = _fetchProductInfoQuer59.data) === null || _fetchProductInfoQuer59 === void 0 ? void 0 : _fetchProductInfoQuer59.currencyname_ar, ' '))))));
|
|
11079
11161
|
}
|
|
11080
11162
|
}
|
|
11081
11163
|
}))))));
|
|
11082
11164
|
}
|
|
11083
11165
|
};
|
|
11166
|
+
// const addtocartfunc_extras = (forcetocheckout, addtocartobjparam) => {
|
|
11167
|
+
// var runfunc = false;
|
|
11168
|
+
// var forcetocheckoutvalue = forcetocheckout;
|
|
11169
|
+
// // alert(addtocardpayloadobj.quantity + 'sad');
|
|
11170
|
+
// if (addtocartobjparam.productid.length != 0 && addtocartobjparam.quantity >= 0) {
|
|
11171
|
+
// if (addtocartobjparam?.hasvariants == 1) {
|
|
11172
|
+
// if (addtocartobjparam.variantid.length != 0) {
|
|
11173
|
+
// runfunc = true;
|
|
11174
|
+
// } else {
|
|
11175
|
+
// // here
|
|
11176
|
+
// setvariantnotchosendisclaimer('This field is required');
|
|
11177
|
+
// NotificationManager.warning('', authdetailsContext?.instinfo?.contactinfo.instid == '674f0617c7811' ? 'Please Choose Size & Color' : 'Please Choose Product Options');
|
|
11178
|
+
// }
|
|
11179
|
+
// } else {
|
|
11180
|
+
// runfunc = true;
|
|
11181
|
+
// }
|
|
11182
|
+
// } else {
|
|
11183
|
+
// NotificationManager.warning('', 'Please Choose Quantity');
|
|
11184
|
+
// }
|
|
11185
|
+
|
|
11186
|
+
// if (runfunc == true) {
|
|
11187
|
+
// // var tempaddtocardpayloadobj = { ...addtocardpayloadobj };
|
|
11188
|
+
// addtocartobjparam.isproductforcedtocheckout = fetchProductInfoQueryContext?.data?.data?.productinfo?.isproductforcedtocheckout;
|
|
11189
|
+
// addtocartobjparam.vendorid = fetchProductInfoQueryContext?.data?.data?.productinfo?.vendorproviderid;
|
|
11190
|
+
// if (forcetocheckoutvalue != undefined) {
|
|
11191
|
+
// addtocartobjparam.forcetocheckoutvalue = forcetocheckoutvalue;
|
|
11192
|
+
// }
|
|
11193
|
+
// var Extrafieldvalidationresponse = validateextrafields();
|
|
11194
|
+
// if (Extrafieldvalidationresponse.status) {
|
|
11195
|
+
// var finalprice = 0;
|
|
11196
|
+
// if (fetchProductInfoQueryContext?.data?.data?.productinfo?.hassale == 1) {
|
|
11197
|
+
// finalprice = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
|
|
11198
|
+
// } else {
|
|
11199
|
+
// finalprice = getprice_discountpriceprops('defaultprice', 0, variantindexcompleted);
|
|
11200
|
+
// }
|
|
11201
|
+
// Pixel_EventsContext('AddToCart', {
|
|
11202
|
+
// content_ids: [fetchProductInfoQueryContext?.data?.data?.productinfo?.productid],
|
|
11203
|
+
// content_name: fetchProductInfoQueryContext?.data?.data?.productinfo?.name_en + ' - ' + fetchProductInfoQueryContext?.data?.data?.productinfo?.name_ar,
|
|
11204
|
+
// content_sku: fetchProductInfoQueryContext?.data?.data?.productinfo?.sku,
|
|
11205
|
+
// content_type: 'product',
|
|
11206
|
+
// currency: fetchProductInfoQueryContext?.data?.data?.currencyname_en,
|
|
11207
|
+
// value: finalprice,
|
|
11208
|
+
// quantity: addtocardpayloadobj.quantity,
|
|
11209
|
+
// });
|
|
11210
|
+
// AddtoCartContext(addtocartobjparam);
|
|
11211
|
+
// } else {
|
|
11212
|
+
// // NotificationManager.warning('', Extrafieldvalidationresponse.reason);
|
|
11213
|
+
// }
|
|
11214
|
+
// }
|
|
11215
|
+
// };
|
|
11216
|
+
// new
|
|
11084
11217
|
var addtocartfunc_extras = function addtocartfunc_extras(forcetocheckout, addtocartobjparam) {
|
|
11085
11218
|
var runfunc = false;
|
|
11086
11219
|
var forcetocheckoutvalue = forcetocheckout;
|
|
@@ -11102,28 +11235,28 @@ var Productinfo = function Productinfo(props) {
|
|
|
11102
11235
|
NotificationManager.warning('', 'Please Choose Quantity');
|
|
11103
11236
|
}
|
|
11104
11237
|
if (runfunc == true) {
|
|
11105
|
-
var
|
|
11238
|
+
var _fetchProductInfoQuer60, _fetchProductInfoQuer61;
|
|
11106
11239
|
// var tempaddtocardpayloadobj = { ...addtocardpayloadobj };
|
|
11107
|
-
addtocartobjparam.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11108
|
-
addtocartobjparam.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11240
|
+
addtocartobjparam.isproductforcedtocheckout = 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 ? void 0 : _fetchProductInfoQuer60.isproductforcedtocheckout;
|
|
11241
|
+
addtocartobjparam.vendorid = 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 ? void 0 : _fetchProductInfoQuer61.vendorproviderid;
|
|
11109
11242
|
if (forcetocheckoutvalue != undefined) {
|
|
11110
11243
|
addtocartobjparam.forcetocheckoutvalue = forcetocheckoutvalue;
|
|
11111
11244
|
}
|
|
11112
11245
|
var Extrafieldvalidationresponse = validateextrafields();
|
|
11113
11246
|
if (Extrafieldvalidationresponse.status) {
|
|
11114
|
-
var
|
|
11247
|
+
var _fetchProductInfoQuer62, _fetchProductInfoQuer63, _fetchProductInfoQuer64, _fetchProductInfoQuer65, _fetchProductInfoQuer66, _fetchProductInfoQuer67;
|
|
11115
11248
|
var finalprice = 0;
|
|
11116
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11249
|
+
if ((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 ? void 0 : _fetchProductInfoQuer62.hassale) == 1) {
|
|
11117
11250
|
finalprice = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
|
|
11118
11251
|
} else {
|
|
11119
11252
|
finalprice = getprice_discountpriceprops('defaultprice', 0, variantindexcompleted);
|
|
11120
11253
|
}
|
|
11121
11254
|
Pixel_EventsContext('AddToCart', {
|
|
11122
|
-
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11123
|
-
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11124
|
-
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11255
|
+
content_ids: [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.productid],
|
|
11256
|
+
content_name: (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.name_en) + ' - ' + (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.name_ar),
|
|
11257
|
+
content_sku: 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.sku,
|
|
11125
11258
|
content_type: 'product',
|
|
11126
|
-
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11259
|
+
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer67 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer67 === void 0 || (_fetchProductInfoQuer67 = _fetchProductInfoQuer67.data) === null || _fetchProductInfoQuer67 === void 0 ? void 0 : _fetchProductInfoQuer67.currencyname_en,
|
|
11127
11260
|
value: finalprice,
|
|
11128
11261
|
quantity: addtocardpayloadobj.quantity
|
|
11129
11262
|
});
|
|
@@ -11803,16 +11936,16 @@ var Productinfo = function Productinfo(props) {
|
|
|
11803
11936
|
// }
|
|
11804
11937
|
// };
|
|
11805
11938
|
var get_product_extras_price = function get_product_extras_price() {
|
|
11806
|
-
var
|
|
11939
|
+
var _fetchProductInfoQuer68, _fetchProductInfoQuer69, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3;
|
|
11807
11940
|
var totalprice_extras_price = 0;
|
|
11808
|
-
if (fetchProductInfoQueryContext != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : fetchProductInfoQueryContext.data) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11941
|
+
if (fetchProductInfoQueryContext != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : fetchProductInfoQueryContext.data) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer68 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer68 === void 0 ? void 0 : _fetchProductInfoQuer68.data) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer69 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer69 === void 0 || (_fetchProductInfoQuer69 = _fetchProductInfoQuer69.data) === null || _fetchProductInfoQuer69 === void 0 ? void 0 : _fetchProductInfoQuer69.productinfo) != undefined && fetchcustomercartQueryContext != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : fetchcustomercartQueryContext.data) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 ? void 0 : _fetchcustomercartQue.data) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.customercart) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.customercart) === null || _fetchcustomercartQue3 === void 0 ? void 0 : _fetchcustomercartQue3.cartitems) != undefined) {
|
|
11809
11942
|
var _fetchcustomercartQue4;
|
|
11810
11943
|
var extras_for_product = [];
|
|
11811
11944
|
fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue4 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue4 === void 0 || (_fetchcustomercartQue4 = _fetchcustomercartQue4.data) === null || _fetchcustomercartQue4 === void 0 || (_fetchcustomercartQue4 = _fetchcustomercartQue4.customercart) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.cartitems;
|
|
11812
11945
|
product_prod_extras_array === null || product_prod_extras_array === void 0 || product_prod_extras_array.forEach(function (cartitem_in, cartindex_in) {
|
|
11813
11946
|
if ((cartitem_in === null || cartitem_in === void 0 ? void 0 : cartitem_in.item_type) == 'Extras') {
|
|
11814
|
-
var
|
|
11815
|
-
if ((cartitem_in === null || cartitem_in === void 0 ? void 0 : cartitem_in.main_ref_productid) == (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11947
|
+
var _fetchProductInfoQuer70;
|
|
11948
|
+
if ((cartitem_in === null || cartitem_in === void 0 ? void 0 : cartitem_in.main_ref_productid) == (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.productid)) {
|
|
11816
11949
|
extras_for_product.push(cartitem_in);
|
|
11817
11950
|
}
|
|
11818
11951
|
}
|
|
@@ -11825,37 +11958,37 @@ var Productinfo = function Productinfo(props) {
|
|
|
11825
11958
|
return parseFloat(totalprice_extras_price);
|
|
11826
11959
|
};
|
|
11827
11960
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
11828
|
-
var
|
|
11961
|
+
var _fetchProductInfoQuer71, _fetchProductInfoQuer72, _fetchProductInfoQuer73, _fetchProductInfoQuer74;
|
|
11829
11962
|
var price = 0;
|
|
11830
11963
|
var quantity = 0;
|
|
11831
11964
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
11832
11965
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
11833
11966
|
}
|
|
11834
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11835
|
-
var
|
|
11836
|
-
fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11967
|
+
if ((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.productquantityoptions) != undefined && (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.productquantityoptions) != null && Array.isArray(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer73 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer73 === void 0 || (_fetchProductInfoQuer73 = _fetchProductInfoQuer73.data) === null || _fetchProductInfoQuer73 === void 0 || (_fetchProductInfoQuer73 = _fetchProductInfoQuer73.productinfo) === null || _fetchProductInfoQuer73 === void 0 ? void 0 : _fetchProductInfoQuer73.productquantityoptions) && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer74 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer74 === void 0 || (_fetchProductInfoQuer74 = _fetchProductInfoQuer74.data) === null || _fetchProductInfoQuer74 === void 0 || (_fetchProductInfoQuer74 = _fetchProductInfoQuer74.productinfo) === null || _fetchProductInfoQuer74 === void 0 || (_fetchProductInfoQuer74 = _fetchProductInfoQuer74.productquantityoptions) === null || _fetchProductInfoQuer74 === void 0 ? void 0 : _fetchProductInfoQuer74.length) != 0) {
|
|
11968
|
+
var _fetchProductInfoQuer75;
|
|
11969
|
+
fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer75 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer75 === void 0 || (_fetchProductInfoQuer75 = _fetchProductInfoQuer75.data) === null || _fetchProductInfoQuer75 === void 0 || (_fetchProductInfoQuer75 = _fetchProductInfoQuer75.productinfo) === null || _fetchProductInfoQuer75 === void 0 ? void 0 : _fetchProductInfoQuer75.productquantityoptions;
|
|
11837
11970
|
}
|
|
11838
11971
|
if (type == 'defaultprice') {
|
|
11839
|
-
var
|
|
11840
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11841
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11972
|
+
var _fetchProductInfoQuer76, _fetchProductInfoQuer77;
|
|
11973
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer76 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer76 === void 0 || (_fetchProductInfoQuer76 = _fetchProductInfoQuer76.data) === null || _fetchProductInfoQuer76 === void 0 || (_fetchProductInfoQuer76 = _fetchProductInfoQuer76.productinfo) === null || _fetchProductInfoQuer76 === void 0 ? void 0 : _fetchProductInfoQuer76.defaultprice;
|
|
11974
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer77 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer77 === void 0 || (_fetchProductInfoQuer77 = _fetchProductInfoQuer77.data) === null || _fetchProductInfoQuer77 === void 0 || (_fetchProductInfoQuer77 = _fetchProductInfoQuer77.productinfo) === null || _fetchProductInfoQuer77 === void 0 ? void 0 : _fetchProductInfoQuer77.hasvariants) == 1) {
|
|
11842
11975
|
if (variantindexcompleted != undefined) {
|
|
11843
|
-
var
|
|
11844
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11845
|
-
var
|
|
11846
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11976
|
+
var _fetchProductInfoQuer78;
|
|
11977
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer78 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer78 === void 0 || (_fetchProductInfoQuer78 = _fetchProductInfoQuer78.data) === null || _fetchProductInfoQuer78 === void 0 || (_fetchProductInfoQuer78 = _fetchProductInfoQuer78.productinfo) === null || _fetchProductInfoQuer78 === void 0 || (_fetchProductInfoQuer78 = _fetchProductInfoQuer78.variants[variantindexcompleted]) === null || _fetchProductInfoQuer78 === void 0 ? void 0 : _fetchProductInfoQuer78.variantprice) != undefined) {
|
|
11978
|
+
var _fetchProductInfoQuer79;
|
|
11979
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer79 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer79 === void 0 || (_fetchProductInfoQuer79 = _fetchProductInfoQuer79.data) === null || _fetchProductInfoQuer79 === void 0 || (_fetchProductInfoQuer79 = _fetchProductInfoQuer79.productinfo) === null || _fetchProductInfoQuer79 === void 0 || (_fetchProductInfoQuer79 = _fetchProductInfoQuer79.variants[variantindexcompleted]) === null || _fetchProductInfoQuer79 === void 0 ? void 0 : _fetchProductInfoQuer79.variantprice;
|
|
11847
11980
|
}
|
|
11848
11981
|
}
|
|
11849
11982
|
}
|
|
11850
11983
|
} else if (type == 'defaultsaleprice') {
|
|
11851
|
-
var
|
|
11852
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11853
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11984
|
+
var _fetchProductInfoQuer80, _fetchProductInfoQuer81;
|
|
11985
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer80 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer80 === void 0 || (_fetchProductInfoQuer80 = _fetchProductInfoQuer80.data) === null || _fetchProductInfoQuer80 === void 0 || (_fetchProductInfoQuer80 = _fetchProductInfoQuer80.productinfo) === null || _fetchProductInfoQuer80 === void 0 ? void 0 : _fetchProductInfoQuer80.defaultsaleprice;
|
|
11986
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer81 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer81 === void 0 || (_fetchProductInfoQuer81 = _fetchProductInfoQuer81.data) === null || _fetchProductInfoQuer81 === void 0 || (_fetchProductInfoQuer81 = _fetchProductInfoQuer81.productinfo) === null || _fetchProductInfoQuer81 === void 0 ? void 0 : _fetchProductInfoQuer81.hasvariants) == 1) {
|
|
11854
11987
|
if (variantindexcompleted != undefined) {
|
|
11855
|
-
var
|
|
11856
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11857
|
-
var
|
|
11858
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11988
|
+
var _fetchProductInfoQuer82;
|
|
11989
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer82 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer82 === void 0 || (_fetchProductInfoQuer82 = _fetchProductInfoQuer82.data) === null || _fetchProductInfoQuer82 === void 0 || (_fetchProductInfoQuer82 = _fetchProductInfoQuer82.productinfo) === null || _fetchProductInfoQuer82 === void 0 || (_fetchProductInfoQuer82 = _fetchProductInfoQuer82.variants[variantindexcompleted]) === null || _fetchProductInfoQuer82 === void 0 ? void 0 : _fetchProductInfoQuer82.variantsaleprice) != undefined) {
|
|
11990
|
+
var _fetchProductInfoQuer83;
|
|
11991
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer83 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer83 === void 0 || (_fetchProductInfoQuer83 = _fetchProductInfoQuer83.data) === null || _fetchProductInfoQuer83 === void 0 || (_fetchProductInfoQuer83 = _fetchProductInfoQuer83.productinfo) === null || _fetchProductInfoQuer83 === void 0 || (_fetchProductInfoQuer83 = _fetchProductInfoQuer83.variants[variantindexcompleted]) === null || _fetchProductInfoQuer83 === void 0 ? void 0 : _fetchProductInfoQuer83.variantsaleprice;
|
|
11859
11992
|
}
|
|
11860
11993
|
}
|
|
11861
11994
|
}
|
|
@@ -11963,7 +12096,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
11963
12096
|
// }
|
|
11964
12097
|
// };
|
|
11965
12098
|
var getQuantityCondition = function getQuantityCondition() {
|
|
11966
|
-
var
|
|
12099
|
+
var _fetchProductInfoQuer84;
|
|
11967
12100
|
return /*#__PURE__*/React.createElement("div", {
|
|
11968
12101
|
"class": "col-lg-12 p-0",
|
|
11969
12102
|
style: {
|
|
@@ -11993,12 +12126,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
11993
12126
|
height: 1,
|
|
11994
12127
|
background: sectionproperties.pricelisttitlecolor
|
|
11995
12128
|
}
|
|
11996
|
-
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11997
|
-
var
|
|
12129
|
+
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer84 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer84 === void 0 || (_fetchProductInfoQuer84 = _fetchProductInfoQuer84.data) === null || _fetchProductInfoQuer84 === void 0 || (_fetchProductInfoQuer84 = _fetchProductInfoQuer84.productinfo) === null || _fetchProductInfoQuer84 === void 0 || (_fetchProductInfoQuer84 = _fetchProductInfoQuer84.productquantityoptions) === null || _fetchProductInfoQuer84 === void 0 ? void 0 : _fetchProductInfoQuer84.map(function (item, index) {
|
|
12130
|
+
var _fetchProductInfoQuer85;
|
|
11998
12131
|
return /*#__PURE__*/React.createElement("div", {
|
|
11999
12132
|
className: "col-lg-12 p-0 w-100 d-flex align-items-center",
|
|
12000
12133
|
style: {
|
|
12001
|
-
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
12134
|
+
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer85 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer85 === void 0 || (_fetchProductInfoQuer85 = _fetchProductInfoQuer85.data) === null || _fetchProductInfoQuer85 === void 0 || (_fetchProductInfoQuer85 = _fetchProductInfoQuer85.productinfo) === null || _fetchProductInfoQuer85 === void 0 || (_fetchProductInfoQuer85 = _fetchProductInfoQuer85.productquantityoptions) === null || _fetchProductInfoQuer85 === void 0 ? void 0 : _fetchProductInfoQuer85.length) - 1 != index ? '1rem' : 0
|
|
12002
12135
|
}
|
|
12003
12136
|
}, /*#__PURE__*/React.createElement("div", {
|
|
12004
12137
|
"class": "d-flex align-items-center",
|
|
@@ -12032,7 +12165,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
12032
12165
|
})));
|
|
12033
12166
|
};
|
|
12034
12167
|
var StoreInfo = function StoreInfo(position) {
|
|
12035
|
-
var
|
|
12168
|
+
var _fetchProductInfoQuer86, _authdetailsContext$i40, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _authdetailsContext$i41, _authdetailsContext$i43;
|
|
12036
12169
|
return /*#__PURE__*/React.createElement("div", {
|
|
12037
12170
|
"class": sectionproperties.storeinformationcontainerborderwidth != 0 ? 'row m-0 w-100 p-3' : 'row m-0 w-100',
|
|
12038
12171
|
style: {
|
|
@@ -12083,7 +12216,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
12083
12216
|
style: {
|
|
12084
12217
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
12085
12218
|
}
|
|
12086
|
-
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
12219
|
+
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer86 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer86 === void 0 || (_fetchProductInfoQuer86 = _fetchProductInfoQuer86.data) === null || _fetchProductInfoQuer86 === void 0 || (_fetchProductInfoQuer86 = _fetchProductInfoQuer86.productinfo) === null || _fetchProductInfoQuer86 === void 0 || (_fetchProductInfoQuer86 = _fetchProductInfoQuer86.productquantityoptions) === null || _fetchProductInfoQuer86 === void 0 ? void 0 : _fetchProductInfoQuer86.length) != 0 && /*#__PURE__*/React.createElement("div", {
|
|
12087
12220
|
"class": "col-lg-12 p-0 mb-4"
|
|
12088
12221
|
}, getQuantityCondition()), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
12089
12222
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mt-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
@@ -12284,8 +12417,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
12284
12417
|
lang: langdetect,
|
|
12285
12418
|
amount: getprice_discountpriceprops('defaultprice', 0, variantindexcompleted),
|
|
12286
12419
|
divid: 'prodinfo'
|
|
12287
|
-
})), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
12288
|
-
actions: (
|
|
12420
|
+
})), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer92 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer92 === void 0 || (_fetchProductInfoQuer92 = _fetchProductInfoQuer92.data) === null || _fetchProductInfoQuer92 === void 0 || (_fetchProductInfoQuer92 = _fetchProductInfoQuer92.productinfo) === null || _fetchProductInfoQuer92 === void 0 ? void 0 : _fetchProductInfoQuer92.item_type) == 'product' && /*#__PURE__*/React.createElement(Product_itemtype, {
|
|
12421
|
+
actions: (_ref2 = {
|
|
12289
12422
|
product_prod_extras_array: product_prod_extras_array,
|
|
12290
12423
|
setproduct_prod_extras_array: setproduct_prod_extras_array,
|
|
12291
12424
|
isOptionInStock: isOptionInStock,
|
|
@@ -12297,9 +12430,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
12297
12430
|
langdetect: langdetect,
|
|
12298
12431
|
lang: lang,
|
|
12299
12432
|
srcfromprops: props.srcfromprops
|
|
12300
|
-
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(
|
|
12301
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
12302
|
-
actions: (
|
|
12433
|
+
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref2, "returnpolicyobj", returnpolicyobj), "productinfo_cssstyles", productinfo_cssstyles), "addtocartfunc", addtocartfunc), "selectproductoptionvalue", selectproductoptionvalue), "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), "productimagesarray", productimagesarray), "fetchProductInfoQueryContext", fetchProductInfoQueryContext), "ProductInfoObj", ProductInfoObj), "sectionproperties", sectionproperties), "addtocardpayloadobj", addtocardpayloadobj), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref2, "setaddtocardpayloadobj", setaddtocardpayloadobj), "routingcountext", routingcountext), "AddtoCartMutationContext", AddtoCartMutationContext), "authdetailsContext", authdetailsContext), "addtofavoritescontext", addtofavoritescontext), "variantindexcompleted", variantindexcompleted), "StaticPagesLinksContext", StaticPagesLinksContext), "NotificationManager", NotificationManager), "GeneralAPIMutationContext", GeneralAPIMutationContext), "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref2, "relatedproducts", relatedproducts), "productVideos", productVideos), "getprice_discountpriceprops", getprice_discountpriceprops), "StoreInfoprops", StoreInfo), "currentshowingimageindex", currentshowingimageindex), "setcurrentshowingimageindex", setcurrentshowingimageindex), "templatepropcontext", templatepropcontext), "ikimagecredcontext", ikimagecredcontext), "variantindex", variantindex), "setvariantindex", setvariantindex), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref2, "variantsku", variantsku), "variantvalueidentifier", variantvalueidentifier), "sizeguideimage", sizeguideimage), "setopensizeguidemodal", setopensizeguidemodal), "addtocartfunc_extras", addtocartfunc_extras), "productpdfsarray", productpdfsarray))
|
|
12434
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer93 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer93 === void 0 || (_fetchProductInfoQuer93 = _fetchProductInfoQuer93.data) === null || _fetchProductInfoQuer93 === void 0 || (_fetchProductInfoQuer93 = _fetchProductInfoQuer93.productinfo) === null || _fetchProductInfoQuer93 === void 0 ? void 0 : _fetchProductInfoQuer93.item_type) == 'Article' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i46 = authdetailsContext.instinfo) === null || _authdetailsContext$i46 === void 0 ? void 0 : _authdetailsContext$i46.contactinfo.instid) != '6946c118427af' && /*#__PURE__*/React.createElement(Article_itemtype, {
|
|
12435
|
+
actions: (_ref3 = {
|
|
12303
12436
|
variantnotchosendisclaimer: variantnotchosendisclaimer,
|
|
12304
12437
|
setisoutofstock: setisoutofstock,
|
|
12305
12438
|
isoutofstock: isoutofstock,
|
|
@@ -12307,9 +12440,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
12307
12440
|
langdetect: langdetect,
|
|
12308
12441
|
lang: lang,
|
|
12309
12442
|
srcfromprops: props.srcfromprops
|
|
12310
|
-
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(
|
|
12311
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
12312
|
-
actions: (
|
|
12443
|
+
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, "returnpolicyobj", returnpolicyobj), "productinfo_cssstyles", productinfo_cssstyles), "addtocartfunc", addtocartfunc), "selectproductoptionvalue", selectproductoptionvalue), "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), "productimagesarray", productimagesarray), "fetchProductInfoQueryContext", fetchProductInfoQueryContext), "ProductInfoObj", ProductInfoObj), "sectionproperties", sectionproperties), "addtocardpayloadobj", addtocardpayloadobj), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, "setaddtocardpayloadobj", setaddtocardpayloadobj), "routingcountext", routingcountext), "AddtoCartMutationContext", AddtoCartMutationContext), "authdetailsContext", authdetailsContext), "addtofavoritescontext", addtofavoritescontext), "variantindexcompleted", variantindexcompleted), "StaticPagesLinksContext", StaticPagesLinksContext), "NotificationManager", NotificationManager), "GeneralAPIMutationContext", GeneralAPIMutationContext), "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, "relatedproducts", relatedproducts), "getprice_discountpriceprops", getprice_discountpriceprops), "StoreInfoprops", StoreInfo), "currentshowingimageindex", currentshowingimageindex), "setcurrentshowingimageindex", setcurrentshowingimageindex), "templatepropcontext", templatepropcontext), "ikimagecredcontext", ikimagecredcontext), "variantindex", variantindex), "setvariantindex", setvariantindex), "variantsku", variantsku), _defineProperty(_defineProperty(_ref3, "variantvalueidentifier", variantvalueidentifier), "productpdfsarray", productpdfsarray))
|
|
12444
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer94 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer94 === void 0 || (_fetchProductInfoQuer94 = _fetchProductInfoQuer94.data) === null || _fetchProductInfoQuer94 === void 0 || (_fetchProductInfoQuer94 = _fetchProductInfoQuer94.productinfo) === null || _fetchProductInfoQuer94 === void 0 ? void 0 : _fetchProductInfoQuer94.item_type) == 'Article' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i47 = authdetailsContext.instinfo) === null || _authdetailsContext$i47 === void 0 ? void 0 : _authdetailsContext$i47.contactinfo.instid) == '6946c118427af' && /*#__PURE__*/React.createElement(Product_itemtype_Article, {
|
|
12445
|
+
actions: (_ref4 = {
|
|
12313
12446
|
isOptionInStock: isOptionInStock,
|
|
12314
12447
|
variantnotchosendisclaimer: variantnotchosendisclaimer,
|
|
12315
12448
|
fetchAuthorizationQueryContext: fetchAuthorizationQueryContext,
|
|
@@ -12319,9 +12452,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
12319
12452
|
langdetect: langdetect,
|
|
12320
12453
|
lang: lang,
|
|
12321
12454
|
srcfromprops: props.srcfromprops
|
|
12322
|
-
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(
|
|
12323
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
12324
|
-
actions: (
|
|
12455
|
+
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref4, "returnpolicyobj", returnpolicyobj), "productinfo_cssstyles", productinfo_cssstyles), "addtocartfunc", addtocartfunc), "selectproductoptionvalue", selectproductoptionvalue), "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), "productimagesarray", productimagesarray), "fetchProductInfoQueryContext", fetchProductInfoQueryContext), "ProductInfoObj", ProductInfoObj), "sectionproperties", sectionproperties), "addtocardpayloadobj", addtocardpayloadobj), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref4, "setaddtocardpayloadobj", setaddtocardpayloadobj), "routingcountext", routingcountext), "AddtoCartMutationContext", AddtoCartMutationContext), "authdetailsContext", authdetailsContext), "addtofavoritescontext", addtofavoritescontext), "variantindexcompleted", variantindexcompleted), "StaticPagesLinksContext", StaticPagesLinksContext), "NotificationManager", NotificationManager), "GeneralAPIMutationContext", GeneralAPIMutationContext), "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref4, "relatedproducts", relatedproducts), "productVideos", productVideos), "getprice_discountpriceprops", getprice_discountpriceprops), "StoreInfoprops", StoreInfo), "currentshowingimageindex", currentshowingimageindex), "setcurrentshowingimageindex", setcurrentshowingimageindex), "templatepropcontext", templatepropcontext), "ikimagecredcontext", ikimagecredcontext), "variantindex", variantindex), "setvariantindex", setvariantindex), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref4, "variantsku", variantsku), "variantvalueidentifier", variantvalueidentifier), "sizeguideimage", sizeguideimage), "setopensizeguidemodal", setopensizeguidemodal), "addtocartfunc_extras", addtocartfunc_extras), "productpdfsarray", productpdfsarray))
|
|
12456
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer95 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer95 === void 0 || (_fetchProductInfoQuer95 = _fetchProductInfoQuer95.data) === null || _fetchProductInfoQuer95 === void 0 || (_fetchProductInfoQuer95 = _fetchProductInfoQuer95.productinfo) === null || _fetchProductInfoQuer95 === void 0 ? void 0 : _fetchProductInfoQuer95.item_type) == 'service' && /*#__PURE__*/React.createElement(Service_itemtype, {
|
|
12457
|
+
actions: (_ref5 = {
|
|
12325
12458
|
product_prod_extras_array: product_prod_extras_array,
|
|
12326
12459
|
setproduct_prod_extras_array: setproduct_prod_extras_array,
|
|
12327
12460
|
// getprice_discountpricepropsnormalonly: getprice_discountpricepropsnormalonly,
|
|
@@ -12333,7 +12466,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
12333
12466
|
langdetect: langdetect,
|
|
12334
12467
|
lang: lang,
|
|
12335
12468
|
srcfromprops: props.srcfromprops
|
|
12336
|
-
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(
|
|
12469
|
+
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref5, "returnpolicyobj", returnpolicyobj), "productinfo_cssstyles", productinfo_cssstyles), "addtocartfunc", addtocartfunc), "selectproductoptionvalue", selectproductoptionvalue), "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), "productimagesarray", productimagesarray), "fetchProductInfoQueryContext", fetchProductInfoQueryContext), "sectionproperties", sectionproperties), "addtocardpayloadobj", addtocardpayloadobj), "ProductInfoObj", ProductInfoObj), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref5, "currentshowingimageindex", currentshowingimageindex), "setcurrentshowingimageindex", setcurrentshowingimageindex), "setaddtocardpayloadobj", setaddtocardpayloadobj), "routingcountext", routingcountext), "AddtoCartMutationContext", AddtoCartMutationContext), "authdetailsContext", authdetailsContext), "addtofavoritescontext", addtofavoritescontext), "StaticPagesLinksContext", StaticPagesLinksContext), "variantindexcompleted", variantindexcompleted), "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref5, "NotificationManager", NotificationManager), "getprice_discountpriceprops", getprice_discountpriceprops), "quantityconditionfoundobjprops", quantityconditionfoundobj), "relatedproducts", relatedproducts), "getQuantityCondition", getQuantityCondition), "StoreInfoprops", StoreInfo), "templatepropcontext", templatepropcontext), "ikimagecredcontext", ikimagecredcontext), "sizeguideimage", sizeguideimage), "setopensizeguidemodal", setopensizeguidemodal), _defineProperty(_defineProperty(_defineProperty(_ref5, "isOptionInStock", isOptionInStock), "addtocartfunc_extras", addtocartfunc_extras), "productpdfsarray", productpdfsarray))
|
|
12337
12470
|
}), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i48 = authdetailsContext.instinfo) === null || _authdetailsContext$i48 === void 0 ? void 0 : _authdetailsContext$i48.contactinfo.instid) == '69a34ef02cc96' && /*#__PURE__*/React.createElement("div", {
|
|
12338
12471
|
"class": 'row m-0 w-100 px-md-2 pb-5',
|
|
12339
12472
|
style: {
|
|
@@ -12543,7 +12676,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
12543
12676
|
style: {
|
|
12544
12677
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
12545
12678
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0,
|
|
12546
|
-
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
12679
|
+
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer96 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer96 === void 0 || (_fetchProductInfoQuer96 = _fetchProductInfoQuer96.data) === null || _fetchProductInfoQuer96 === void 0 || (_fetchProductInfoQuer96 = _fetchProductInfoQuer96.productinfo) === null || _fetchProductInfoQuer96 === void 0 || (_fetchProductInfoQuer96 = _fetchProductInfoQuer96.product_videos) === null || _fetchProductInfoQuer96 === void 0 ? void 0 : _fetchProductInfoQuer96.length) != 0 ? 'flex' : (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer97 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer97 === void 0 || (_fetchProductInfoQuer97 = _fetchProductInfoQuer97.data) === null || _fetchProductInfoQuer97 === void 0 || (_fetchProductInfoQuer97 = _fetchProductInfoQuer97.productinfo) === null || _fetchProductInfoQuer97 === void 0 ? void 0 : _fetchProductInfoQuer97.productcanrate) == 1 ? 'flex' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' ? 'none' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && sectionproperties.descriptionposition != 'Bottom' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer98 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer98 === void 0 || (_fetchProductInfoQuer98 = _fetchProductInfoQuer98.data) === null || _fetchProductInfoQuer98 === void 0 || (_fetchProductInfoQuer98 = _fetchProductInfoQuer98.productinfo) === null || _fetchProductInfoQuer98 === void 0 || (_fetchProductInfoQuer98 = _fetchProductInfoQuer98.product_videos) === null || _fetchProductInfoQuer98 === void 0 ? void 0 : _fetchProductInfoQuer98.length) == 0 ? 'none' : 'flex'
|
|
12547
12680
|
}
|
|
12548
12681
|
}, /*#__PURE__*/React.createElement("div", {
|
|
12549
12682
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
|
|
@@ -12605,12 +12738,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
12605
12738
|
onClick: function onClick() {
|
|
12606
12739
|
settabname('refundpolicytab');
|
|
12607
12740
|
}
|
|
12608
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
12741
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer99 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer99 === void 0 || (_fetchProductInfoQuer99 = _fetchProductInfoQuer99.data) === null || _fetchProductInfoQuer99 === void 0 || (_fetchProductInfoQuer99 = _fetchProductInfoQuer99.productinfo) === null || _fetchProductInfoQuer99 === void 0 || (_fetchProductInfoQuer99 = _fetchProductInfoQuer99.product_videos) === null || _fetchProductInfoQuer99 === void 0 ? void 0 : _fetchProductInfoQuer99.length) != 0 && /*#__PURE__*/React.createElement(Tab, {
|
|
12609
12742
|
label: langdetect == 'en' ? sectionproperties.videostitleen : sectionproperties.videostitlear,
|
|
12610
12743
|
onClick: function onClick() {
|
|
12611
12744
|
settabname('videostab');
|
|
12612
12745
|
}
|
|
12613
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
12746
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer100 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer100 === void 0 || (_fetchProductInfoQuer100 = _fetchProductInfoQuer100.data) === null || _fetchProductInfoQuer100 === void 0 || (_fetchProductInfoQuer100 = _fetchProductInfoQuer100.productinfo) === null || _fetchProductInfoQuer100 === void 0 ? void 0 : _fetchProductInfoQuer100.productcanrate) == 1 && /*#__PURE__*/React.createElement(Tab, {
|
|
12614
12747
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
12615
12748
|
onClick: function onClick() {
|
|
12616
12749
|
settabname('reviewstab');
|
|
@@ -12664,12 +12797,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
12664
12797
|
onClick: function onClick() {
|
|
12665
12798
|
settabname('refundpolicytab');
|
|
12666
12799
|
}
|
|
12667
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
12800
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer101 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer101 === void 0 || (_fetchProductInfoQuer101 = _fetchProductInfoQuer101.data) === null || _fetchProductInfoQuer101 === void 0 || (_fetchProductInfoQuer101 = _fetchProductInfoQuer101.productinfo) === null || _fetchProductInfoQuer101 === void 0 || (_fetchProductInfoQuer101 = _fetchProductInfoQuer101.product_videos) === null || _fetchProductInfoQuer101 === void 0 ? void 0 : _fetchProductInfoQuer101.length) != 0 && /*#__PURE__*/React.createElement(Tab, {
|
|
12668
12801
|
label: langdetect == 'en' ? 'Videos' : 'فيديوهات',
|
|
12669
12802
|
onClick: function onClick() {
|
|
12670
12803
|
settabname('videostab');
|
|
12671
12804
|
}
|
|
12672
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
12805
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer102 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer102 === void 0 || (_fetchProductInfoQuer102 = _fetchProductInfoQuer102.data) === null || _fetchProductInfoQuer102 === void 0 || (_fetchProductInfoQuer102 = _fetchProductInfoQuer102.productinfo) === null || _fetchProductInfoQuer102 === void 0 ? void 0 : _fetchProductInfoQuer102.productcanrate) == 1 && /*#__PURE__*/React.createElement(Tab, {
|
|
12673
12806
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
12674
12807
|
onClick: function onClick() {
|
|
12675
12808
|
settabname('reviewstab');
|
|
@@ -12805,12 +12938,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
12805
12938
|
onClick: function onClick() {
|
|
12806
12939
|
settabname('refundpolicytab');
|
|
12807
12940
|
}
|
|
12808
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
12941
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer103 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer103 === void 0 || (_fetchProductInfoQuer103 = _fetchProductInfoQuer103.data) === null || _fetchProductInfoQuer103 === void 0 || (_fetchProductInfoQuer103 = _fetchProductInfoQuer103.productinfo) === null || _fetchProductInfoQuer103 === void 0 || (_fetchProductInfoQuer103 = _fetchProductInfoQuer103.product_videos) === null || _fetchProductInfoQuer103 === void 0 ? void 0 : _fetchProductInfoQuer103.length) != 0 && /*#__PURE__*/React.createElement(Tab, {
|
|
12809
12942
|
label: langdetect == 'en' ? 'Videos' : 'فيديوهات',
|
|
12810
12943
|
onClick: function onClick() {
|
|
12811
12944
|
settabname('videostab');
|
|
12812
12945
|
}
|
|
12813
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
12946
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer104 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer104 === void 0 || (_fetchProductInfoQuer104 = _fetchProductInfoQuer104.data) === null || _fetchProductInfoQuer104 === void 0 || (_fetchProductInfoQuer104 = _fetchProductInfoQuer104.productinfo) === null || _fetchProductInfoQuer104 === void 0 ? void 0 : _fetchProductInfoQuer104.productcanrate) == 1 && /*#__PURE__*/React.createElement(Tab, {
|
|
12814
12947
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
12815
12948
|
onClick: function onClick() {
|
|
12816
12949
|
settabname('reviewstab');
|
|
@@ -12831,7 +12964,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
12831
12964
|
color: sectionproperties.prodCatColor
|
|
12832
12965
|
},
|
|
12833
12966
|
dangerouslySetInnerHTML: {
|
|
12834
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
12967
|
+
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer105 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer105 === void 0 || (_fetchProductInfoQuer105 = _fetchProductInfoQuer105.data) === null || _fetchProductInfoQuer105 === void 0 || (_fetchProductInfoQuer105 = _fetchProductInfoQuer105.productinfo) === null || _fetchProductInfoQuer105 === void 0 ? void 0 : _fetchProductInfoQuer105.short_description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer106 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer106 === void 0 || (_fetchProductInfoQuer106 = _fetchProductInfoQuer106.data) === null || _fetchProductInfoQuer106 === void 0 || (_fetchProductInfoQuer106 = _fetchProductInfoQuer106.productinfo) === null || _fetchProductInfoQuer106 === void 0 ? void 0 : _fetchProductInfoQuer106.short_description_ar
|
|
12835
12968
|
}
|
|
12836
12969
|
})), tabname == 'shippingpolicytab' && /*#__PURE__*/React.createElement("div", {
|
|
12837
12970
|
"class": "col-lg-12 pl-5 pr-5 p-md-0 w-100"
|
|
@@ -12953,12 +13086,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
12953
13086
|
onClick: function onClick() {
|
|
12954
13087
|
settabname('refundpolicytab');
|
|
12955
13088
|
}
|
|
12956
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
13089
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer107 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer107 === void 0 || (_fetchProductInfoQuer107 = _fetchProductInfoQuer107.data) === null || _fetchProductInfoQuer107 === void 0 || (_fetchProductInfoQuer107 = _fetchProductInfoQuer107.productinfo) === null || _fetchProductInfoQuer107 === void 0 || (_fetchProductInfoQuer107 = _fetchProductInfoQuer107.product_videos) === null || _fetchProductInfoQuer107 === void 0 ? void 0 : _fetchProductInfoQuer107.length) != 0 && /*#__PURE__*/React.createElement(Tab, {
|
|
12957
13090
|
label: langdetect == 'en' ? sectionproperties.videostitleen : sectionproperties.videostitlear,
|
|
12958
13091
|
onClick: function onClick() {
|
|
12959
13092
|
settabname('videostab');
|
|
12960
13093
|
}
|
|
12961
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
13094
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer108 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer108 === void 0 || (_fetchProductInfoQuer108 = _fetchProductInfoQuer108.data) === null || _fetchProductInfoQuer108 === void 0 || (_fetchProductInfoQuer108 = _fetchProductInfoQuer108.productinfo) === null || _fetchProductInfoQuer108 === void 0 ? void 0 : _fetchProductInfoQuer108.productcanrate) == 1 && /*#__PURE__*/React.createElement(Tab, {
|
|
12962
13095
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
12963
13096
|
onClick: function onClick() {
|
|
12964
13097
|
settabname('reviewstab');
|
|
@@ -12979,7 +13112,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
12979
13112
|
color: sectionproperties.prodCatColor
|
|
12980
13113
|
},
|
|
12981
13114
|
dangerouslySetInnerHTML: {
|
|
12982
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
13115
|
+
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer109 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer109 === void 0 || (_fetchProductInfoQuer109 = _fetchProductInfoQuer109.data) === null || _fetchProductInfoQuer109 === void 0 || (_fetchProductInfoQuer109 = _fetchProductInfoQuer109.productinfo) === null || _fetchProductInfoQuer109 === void 0 ? void 0 : _fetchProductInfoQuer109.short_description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer110 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer110 === void 0 || (_fetchProductInfoQuer110 = _fetchProductInfoQuer110.data) === null || _fetchProductInfoQuer110 === void 0 || (_fetchProductInfoQuer110 = _fetchProductInfoQuer110.productinfo) === null || _fetchProductInfoQuer110 === void 0 ? void 0 : _fetchProductInfoQuer110.short_description_ar
|
|
12983
13116
|
}
|
|
12984
13117
|
})), tabname == 'videostab' && /*#__PURE__*/React.createElement("div", {
|
|
12985
13118
|
"class": "row m-0 w-100 w-100 pl-5 pr-5 p-md-0"
|
|
@@ -13082,12 +13215,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
13082
13215
|
onClick: function onClick() {
|
|
13083
13216
|
settabname('refundpolicytab');
|
|
13084
13217
|
}
|
|
13085
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
13218
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer111 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer111 === void 0 || (_fetchProductInfoQuer111 = _fetchProductInfoQuer111.data) === null || _fetchProductInfoQuer111 === void 0 || (_fetchProductInfoQuer111 = _fetchProductInfoQuer111.productinfo) === null || _fetchProductInfoQuer111 === void 0 || (_fetchProductInfoQuer111 = _fetchProductInfoQuer111.product_videos) === null || _fetchProductInfoQuer111 === void 0 ? void 0 : _fetchProductInfoQuer111.length) != 0 && /*#__PURE__*/React.createElement(Tab, {
|
|
13086
13219
|
label: langdetect == 'en' ? sectionproperties.videostitleen : sectionproperties.videostitlear,
|
|
13087
13220
|
onClick: function onClick() {
|
|
13088
13221
|
settabname('videostab');
|
|
13089
13222
|
}
|
|
13090
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
13223
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer112 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer112 === void 0 || (_fetchProductInfoQuer112 = _fetchProductInfoQuer112.data) === null || _fetchProductInfoQuer112 === void 0 || (_fetchProductInfoQuer112 = _fetchProductInfoQuer112.productinfo) === null || _fetchProductInfoQuer112 === void 0 ? void 0 : _fetchProductInfoQuer112.productcanrate) == 1 && /*#__PURE__*/React.createElement(Tab, {
|
|
13091
13224
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
13092
13225
|
onClick: function onClick() {
|
|
13093
13226
|
settabname('reviewstab');
|
|
@@ -13108,7 +13241,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
13108
13241
|
color: sectionproperties.prodCatColor
|
|
13109
13242
|
},
|
|
13110
13243
|
dangerouslySetInnerHTML: {
|
|
13111
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
13244
|
+
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer113 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer113 === void 0 || (_fetchProductInfoQuer113 = _fetchProductInfoQuer113.data) === null || _fetchProductInfoQuer113 === void 0 || (_fetchProductInfoQuer113 = _fetchProductInfoQuer113.productinfo) === null || _fetchProductInfoQuer113 === void 0 ? void 0 : _fetchProductInfoQuer113.short_description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer114 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer114 === void 0 || (_fetchProductInfoQuer114 = _fetchProductInfoQuer114.data) === null || _fetchProductInfoQuer114 === void 0 || (_fetchProductInfoQuer114 = _fetchProductInfoQuer114.productinfo) === null || _fetchProductInfoQuer114 === void 0 ? void 0 : _fetchProductInfoQuer114.short_description_ar
|
|
13112
13245
|
}
|
|
13113
13246
|
})), tabname == 'featurestab' && /*#__PURE__*/React.createElement("div", {
|
|
13114
13247
|
"class": "col-lg-12 px-5 px-md-0"
|
|
@@ -13118,7 +13251,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
13118
13251
|
className: "col-lg-12 m-0 w-100 p-0"
|
|
13119
13252
|
}, /*#__PURE__*/React.createElement("table", {
|
|
13120
13253
|
className: 'table tablevertical'
|
|
13121
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
13254
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer115 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer115 === void 0 || (_fetchProductInfoQuer115 = _fetchProductInfoQuer115.data) === null || _fetchProductInfoQuer115 === void 0 || (_fetchProductInfoQuer115 = _fetchProductInfoQuer115.productinfo) === null || _fetchProductInfoQuer115 === void 0 || (_fetchProductInfoQuer115 = _fetchProductInfoQuer115.productfeatures) === null || _fetchProductInfoQuer115 === void 0 ? void 0 : _fetchProductInfoQuer115.map(function (fitem, findex) {
|
|
13122
13255
|
return /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", {
|
|
13123
13256
|
style: {
|
|
13124
13257
|
textTransform: 'capitalize',
|
|
@@ -13269,7 +13402,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
13269
13402
|
color: sectionproperties.prodCatColor
|
|
13270
13403
|
},
|
|
13271
13404
|
dangerouslySetInnerHTML: {
|
|
13272
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
13405
|
+
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer116 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer116 === void 0 || (_fetchProductInfoQuer116 = _fetchProductInfoQuer116.data) === null || _fetchProductInfoQuer116 === void 0 || (_fetchProductInfoQuer116 = _fetchProductInfoQuer116.productinfo) === null || _fetchProductInfoQuer116 === void 0 ? void 0 : _fetchProductInfoQuer116.short_description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer117 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer117 === void 0 || (_fetchProductInfoQuer117 = _fetchProductInfoQuer117.data) === null || _fetchProductInfoQuer117 === void 0 || (_fetchProductInfoQuer117 = _fetchProductInfoQuer117.productinfo) === null || _fetchProductInfoQuer117 === void 0 ? void 0 : _fetchProductInfoQuer117.short_description_ar
|
|
13273
13406
|
}
|
|
13274
13407
|
})), tabname == 'shippingpolicytab' && /*#__PURE__*/React.createElement("div", {
|
|
13275
13408
|
"class": "col-lg-12 pl-5 pr-5 p-md-0 w-100"
|
|
@@ -13401,7 +13534,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
13401
13534
|
color: '#000000'
|
|
13402
13535
|
},
|
|
13403
13536
|
dangerouslySetInnerHTML: {
|
|
13404
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
13537
|
+
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer118 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer118 === void 0 || (_fetchProductInfoQuer118 = _fetchProductInfoQuer118.data) === null || _fetchProductInfoQuer118 === void 0 || (_fetchProductInfoQuer118 = _fetchProductInfoQuer118.productinfo) === null || _fetchProductInfoQuer118 === void 0 ? void 0 : _fetchProductInfoQuer118.description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer119 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer119 === void 0 || (_fetchProductInfoQuer119 = _fetchProductInfoQuer119.data) === null || _fetchProductInfoQuer119 === void 0 || (_fetchProductInfoQuer119 = _fetchProductInfoQuer119.productinfo) === null || _fetchProductInfoQuer119 === void 0 ? void 0 : _fetchProductInfoQuer119.description_ar
|
|
13405
13538
|
}
|
|
13406
13539
|
})), tabname == 'shortdescriptiontab' && /*#__PURE__*/React.createElement("div", {
|
|
13407
13540
|
"class": "col-lg-12 p-0"
|
|
@@ -13412,7 +13545,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
13412
13545
|
color: sectionproperties.prodCatColor
|
|
13413
13546
|
},
|
|
13414
13547
|
dangerouslySetInnerHTML: {
|
|
13415
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
13548
|
+
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer120 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer120 === void 0 || (_fetchProductInfoQuer120 = _fetchProductInfoQuer120.data) === null || _fetchProductInfoQuer120 === void 0 || (_fetchProductInfoQuer120 = _fetchProductInfoQuer120.productinfo) === null || _fetchProductInfoQuer120 === void 0 ? void 0 : _fetchProductInfoQuer120.short_description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer121 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer121 === void 0 || (_fetchProductInfoQuer121 = _fetchProductInfoQuer121.data) === null || _fetchProductInfoQuer121 === void 0 || (_fetchProductInfoQuer121 = _fetchProductInfoQuer121.productinfo) === null || _fetchProductInfoQuer121 === void 0 ? void 0 : _fetchProductInfoQuer121.short_description_ar
|
|
13416
13549
|
}
|
|
13417
13550
|
}))
|
|
13418
13551
|
// <DescriptionContent
|