tabexseriescomponents 0.60.1 → 0.60.3
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 +1529 -472
- package/dist/index.esm.js +1538 -481
- package/dist/index.umd.js +1530 -473
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -75,7 +75,7 @@ var HiUser = require('@react-icons/all-files/hi/HiUser');
|
|
|
75
75
|
var GrMail = require('@react-icons/all-files/gr/GrMail');
|
|
76
76
|
var FiCheckCircle = require('@react-icons/all-files/fi/FiCheckCircle');
|
|
77
77
|
var BiPhone = require('@react-icons/all-files/bi/BiPhone');
|
|
78
|
-
var Select$
|
|
78
|
+
var Select$5 = require('react-select');
|
|
79
79
|
var PhoneInput = require('react-phone-input-2');
|
|
80
80
|
require('@mui/system');
|
|
81
81
|
var BsChevronLeft = require('@react-icons/all-files/bs/BsChevronLeft');
|
|
@@ -219,7 +219,7 @@ var ReactPlayer__default = /*#__PURE__*/_interopDefaultLegacy(ReactPlayer);
|
|
|
219
219
|
var Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(Dropdown);
|
|
220
220
|
var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
|
|
221
221
|
var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
|
|
222
|
-
var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select$
|
|
222
|
+
var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select$5);
|
|
223
223
|
var PhoneInput__default = /*#__PURE__*/_interopDefaultLegacy(PhoneInput);
|
|
224
224
|
var ReactPaginate__default = /*#__PURE__*/_interopDefaultLegacy(ReactPaginate);
|
|
225
225
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
@@ -779,8 +779,8 @@ var Imagekitimagecomp = function Imagekitimagecomp(props) {
|
|
|
779
779
|
})));
|
|
780
780
|
};
|
|
781
781
|
|
|
782
|
-
function ownKeys$
|
|
783
|
-
function _objectSpread$
|
|
782
|
+
function ownKeys$2I(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; }
|
|
783
|
+
function _objectSpread$2I(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2I(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2I(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
784
784
|
var Login = function Login(props) {
|
|
785
785
|
var _css;
|
|
786
786
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -856,7 +856,7 @@ var Login = function Login(props) {
|
|
|
856
856
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
857
857
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
858
858
|
});
|
|
859
|
-
setsectionproperties(_objectSpread$
|
|
859
|
+
setsectionproperties(_objectSpread$2I({}, secpropobj));
|
|
860
860
|
}
|
|
861
861
|
}, [StatePagePropertiesContext]);
|
|
862
862
|
React.useEffect(function () {
|
|
@@ -1024,9 +1024,9 @@ var Login = function Login(props) {
|
|
|
1024
1024
|
className: "".concat(loginstyles2.form_control),
|
|
1025
1025
|
value: payloadobj.email,
|
|
1026
1026
|
onChange: function onChange(event) {
|
|
1027
|
-
var temppayloadobj = _objectSpread$
|
|
1027
|
+
var temppayloadobj = _objectSpread$2I({}, payloadobj);
|
|
1028
1028
|
temppayloadobj.email = event.target.value;
|
|
1029
|
-
setpayloadobj(_objectSpread$
|
|
1029
|
+
setpayloadobj(_objectSpread$2I({}, temppayloadobj));
|
|
1030
1030
|
},
|
|
1031
1031
|
style: {
|
|
1032
1032
|
background: sectionproperties.input_bgcolor
|
|
@@ -1048,9 +1048,9 @@ var Login = function Login(props) {
|
|
|
1048
1048
|
textplaceholder: "",
|
|
1049
1049
|
value: payloadobj.password,
|
|
1050
1050
|
onChange: function onChange(event) {
|
|
1051
|
-
var temppayloadobj = _objectSpread$
|
|
1051
|
+
var temppayloadobj = _objectSpread$2I({}, payloadobj);
|
|
1052
1052
|
temppayloadobj.password = event.target.value;
|
|
1053
|
-
setpayloadobj(_objectSpread$
|
|
1053
|
+
setpayloadobj(_objectSpread$2I({}, temppayloadobj));
|
|
1054
1054
|
},
|
|
1055
1055
|
style: {
|
|
1056
1056
|
background: sectionproperties.input_bgcolor
|
|
@@ -1227,9 +1227,9 @@ var Login = function Login(props) {
|
|
|
1227
1227
|
className: "".concat(loginstyles2.form_control),
|
|
1228
1228
|
value: forgotpasswordpayload.email,
|
|
1229
1229
|
onChange: function onChange(event) {
|
|
1230
|
-
var temppayloadobj = _objectSpread$
|
|
1230
|
+
var temppayloadobj = _objectSpread$2I({}, forgotpasswordpayload);
|
|
1231
1231
|
temppayloadobj.email = event.target.value;
|
|
1232
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1232
|
+
setforgotpasswordpayload(_objectSpread$2I({}, temppayloadobj));
|
|
1233
1233
|
},
|
|
1234
1234
|
disabled: forgetpasswordstage == 'verify' ? true : false,
|
|
1235
1235
|
style: {
|
|
@@ -1244,9 +1244,9 @@ var Login = function Login(props) {
|
|
|
1244
1244
|
className: "".concat(loginstyles2.form_control),
|
|
1245
1245
|
value: forgotpasswordpayload.code,
|
|
1246
1246
|
onChange: function onChange(event) {
|
|
1247
|
-
var temppayloadobj = _objectSpread$
|
|
1247
|
+
var temppayloadobj = _objectSpread$2I({}, forgotpasswordpayload);
|
|
1248
1248
|
temppayloadobj.code = event.target.value;
|
|
1249
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1249
|
+
setforgotpasswordpayload(_objectSpread$2I({}, temppayloadobj));
|
|
1250
1250
|
},
|
|
1251
1251
|
style: {
|
|
1252
1252
|
background: sectionproperties.input_bgcolor
|
|
@@ -1260,9 +1260,9 @@ var Login = function Login(props) {
|
|
|
1260
1260
|
className: "".concat(loginstyles2.form_control),
|
|
1261
1261
|
value: forgotpasswordpayload.newpassword,
|
|
1262
1262
|
onChange: function onChange(event) {
|
|
1263
|
-
var temppayloadobj = _objectSpread$
|
|
1263
|
+
var temppayloadobj = _objectSpread$2I({}, forgotpasswordpayload);
|
|
1264
1264
|
temppayloadobj.newpassword = event.target.value;
|
|
1265
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1265
|
+
setforgotpasswordpayload(_objectSpread$2I({}, temppayloadobj));
|
|
1266
1266
|
},
|
|
1267
1267
|
style: {
|
|
1268
1268
|
background: sectionproperties.input_bgcolor
|
|
@@ -1276,9 +1276,9 @@ var Login = function Login(props) {
|
|
|
1276
1276
|
className: "".concat(loginstyles2.form_control),
|
|
1277
1277
|
value: forgotpasswordpayload.confirmnewpassword,
|
|
1278
1278
|
onChange: function onChange(event) {
|
|
1279
|
-
var temppayloadobj = _objectSpread$
|
|
1279
|
+
var temppayloadobj = _objectSpread$2I({}, forgotpasswordpayload);
|
|
1280
1280
|
temppayloadobj.confirmnewpassword = event.target.value;
|
|
1281
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1281
|
+
setforgotpasswordpayload(_objectSpread$2I({}, temppayloadobj));
|
|
1282
1282
|
},
|
|
1283
1283
|
style: {
|
|
1284
1284
|
background: sectionproperties.input_bgcolor
|
|
@@ -1290,7 +1290,7 @@ var Login = function Login(props) {
|
|
|
1290
1290
|
onClick: function onClick() {
|
|
1291
1291
|
if (forgotpasswordpayload.email.length != 0) {
|
|
1292
1292
|
var runfunc = false;
|
|
1293
|
-
var tempforgotpasswordpayload = _objectSpread$
|
|
1293
|
+
var tempforgotpasswordpayload = _objectSpread$2I({}, forgotpasswordpayload);
|
|
1294
1294
|
tempforgotpasswordpayload.functype = forgetpasswordstage;
|
|
1295
1295
|
if (forgetpasswordstage == 'verify') {
|
|
1296
1296
|
if (tempforgotpasswordpayload.newpassword.length != 0 && tempforgotpasswordpayload.code.length != 0) {
|
|
@@ -1341,11 +1341,11 @@ var css_248z$J = "@media screen and (max-width: 800px) {\r\n .signup-module_r
|
|
|
1341
1341
|
var loginstyles = {"rightContainer":"signup-module_rightContainer__yEcoL","rightContainerTrans":"signup-module_rightContainerTrans__fkdBH","rightContainerText":"signup-module_rightContainerText__-pvN-","form_control":"signup-module_form_control__7s76W","anim-shadow":"signup-module_anim-shadow__CsxhG","login_input_icon":"signup-module_login_input_icon__RDTS0","form_control_border_none":"signup-module_form_control_border_none__HjUMS","disabled":"signup-module_disabled__h55ao","leftcontainer":"signup-module_leftcontainer__bqfnN","form_controltextarea":"signup-module_form_controltextarea__-LGz6","checkbox":"signup-module_checkbox__8ejBx","checkbox_label":"signup-module_checkbox_label__d84Q2","checkbox_sub":"signup-module_checkbox_sub__WQLUX","checkboxtranslated":"signup-module_checkboxtranslated__4xHR-","showpassword_input_icon":"signup-module_showpassword_input_icon__cVHRS","showpassword_input_icontrans":"signup-module_showpassword_input_icontrans__vmV5q"};
|
|
1342
1342
|
styleInject(css_248z$J);
|
|
1343
1343
|
|
|
1344
|
-
function ownKeys$
|
|
1345
|
-
function _objectSpread$
|
|
1344
|
+
function ownKeys$2H(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; }
|
|
1345
|
+
function _objectSpread$2H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2H(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1346
1346
|
var selectcustomStyles = {
|
|
1347
1347
|
option: function option(provided, state) {
|
|
1348
|
-
return _objectSpread$
|
|
1348
|
+
return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
|
|
1349
1349
|
borderBottom: '1px solid #e6e6e6',
|
|
1350
1350
|
backgroundColor: state.isSelected ? '' : '',
|
|
1351
1351
|
padding: 5,
|
|
@@ -1374,7 +1374,7 @@ var selectcustomStyles = {
|
|
|
1374
1374
|
};
|
|
1375
1375
|
var selectcustomStylesTranslated = {
|
|
1376
1376
|
option: function option(provided, state) {
|
|
1377
|
-
return _objectSpread$
|
|
1377
|
+
return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
|
|
1378
1378
|
borderBottom: '1px solid #e6e6e6',
|
|
1379
1379
|
backgroundColor: state.isSelected ? '' : '',
|
|
1380
1380
|
padding: 5,
|
|
@@ -1403,14 +1403,14 @@ var selectcustomStylesTranslated = {
|
|
|
1403
1403
|
};
|
|
1404
1404
|
},
|
|
1405
1405
|
placeholder: function placeholder(provided, state) {
|
|
1406
|
-
return _objectSpread$
|
|
1406
|
+
return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
|
|
1407
1407
|
textAlign: 'right'
|
|
1408
1408
|
});
|
|
1409
1409
|
}
|
|
1410
1410
|
};
|
|
1411
1411
|
var defaultstyles = {
|
|
1412
1412
|
option: function option(provided, state) {
|
|
1413
|
-
return _objectSpread$
|
|
1413
|
+
return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
|
|
1414
1414
|
borderBottom: '1px solid #e6e6e6',
|
|
1415
1415
|
backgroundColor: state.isSelected ? '' : '',
|
|
1416
1416
|
padding: 5,
|
|
@@ -1437,21 +1437,21 @@ var defaultstyles = {
|
|
|
1437
1437
|
});
|
|
1438
1438
|
},
|
|
1439
1439
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1440
|
-
return _objectSpread$
|
|
1440
|
+
return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
|
|
1441
1441
|
'&:hover': {
|
|
1442
1442
|
// color: '#eac435',
|
|
1443
1443
|
}
|
|
1444
1444
|
});
|
|
1445
1445
|
},
|
|
1446
1446
|
placeholder: function placeholder(provided, state) {
|
|
1447
|
-
return _objectSpread$
|
|
1447
|
+
return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
|
|
1448
1448
|
color: '#000000'
|
|
1449
1449
|
});
|
|
1450
1450
|
}
|
|
1451
1451
|
};
|
|
1452
1452
|
var defaultstylestranslated = {
|
|
1453
1453
|
option: function option(provided, state) {
|
|
1454
|
-
return _objectSpread$
|
|
1454
|
+
return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
|
|
1455
1455
|
borderBottom: '1px solid #e6e6e6',
|
|
1456
1456
|
backgroundColor: state.isSelected ? '' : '',
|
|
1457
1457
|
padding: 5,
|
|
@@ -1482,14 +1482,14 @@ var defaultstylestranslated = {
|
|
|
1482
1482
|
};
|
|
1483
1483
|
},
|
|
1484
1484
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1485
|
-
return _objectSpread$
|
|
1485
|
+
return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
|
|
1486
1486
|
'&:hover': {
|
|
1487
1487
|
// color: '#eac435',
|
|
1488
1488
|
}
|
|
1489
1489
|
});
|
|
1490
1490
|
},
|
|
1491
1491
|
placeholder: function placeholder(provided, state) {
|
|
1492
|
-
return _objectSpread$
|
|
1492
|
+
return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
|
|
1493
1493
|
textAlign: 'right',
|
|
1494
1494
|
color: '#000000'
|
|
1495
1495
|
});
|
|
@@ -1497,7 +1497,7 @@ var defaultstylestranslated = {
|
|
|
1497
1497
|
};
|
|
1498
1498
|
var defaultstylesnone = {
|
|
1499
1499
|
option: function option(provided, state) {
|
|
1500
|
-
return _objectSpread$
|
|
1500
|
+
return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
|
|
1501
1501
|
borderBottom: '1px solid #e6e6e6',
|
|
1502
1502
|
backgroundColor: state.isSelected ? '' : '',
|
|
1503
1503
|
padding: 5,
|
|
@@ -1525,7 +1525,7 @@ var defaultstylesnone = {
|
|
|
1525
1525
|
};
|
|
1526
1526
|
},
|
|
1527
1527
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1528
|
-
return _objectSpread$
|
|
1528
|
+
return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
|
|
1529
1529
|
'&:hover': {
|
|
1530
1530
|
// color: '#eac435',
|
|
1531
1531
|
}
|
|
@@ -1533,7 +1533,7 @@ var defaultstylesnone = {
|
|
|
1533
1533
|
}
|
|
1534
1534
|
};
|
|
1535
1535
|
|
|
1536
|
-
var Select$
|
|
1536
|
+
var Select$4 = /*#__PURE__*/React__default["default"].lazy(function () {
|
|
1537
1537
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
|
|
1538
1538
|
});
|
|
1539
1539
|
var Variantoptions = function Variantoptions(props) {
|
|
@@ -1988,7 +1988,7 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
1988
1988
|
width: '100%'
|
|
1989
1989
|
},
|
|
1990
1990
|
className: "".concat(loginstyles.form_control, " ").concat(formstyles.form_control) + ' variantselectbox '
|
|
1991
|
-
}, /*#__PURE__*/React__default["default"].createElement(Select$
|
|
1991
|
+
}, /*#__PURE__*/React__default["default"].createElement(Select$4, {
|
|
1992
1992
|
options: orgselectoptions,
|
|
1993
1993
|
getOptionLabel: function getOptionLabel(option) {
|
|
1994
1994
|
var crname = '';
|
|
@@ -2066,7 +2066,7 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
2066
2066
|
};
|
|
2067
2067
|
|
|
2068
2068
|
var ProductExtras = function ProductExtras(props) {
|
|
2069
|
-
var _fetchProductInfoQuer
|
|
2069
|
+
var _fetchProductInfoQuer;
|
|
2070
2070
|
props.actions.lang;
|
|
2071
2071
|
var langdetect = props.actions.langdetect;
|
|
2072
2072
|
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
@@ -2076,8 +2076,10 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
2076
2076
|
props.actions.addtocardpayloadobj;
|
|
2077
2077
|
props.actions.setaddtocardpayloadobj;
|
|
2078
2078
|
props.actions;
|
|
2079
|
-
fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.productid;
|
|
2079
|
+
var productid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.productid;
|
|
2080
2080
|
// const templatepropcontext = props.actions.templatepropcontext;
|
|
2081
|
+
|
|
2082
|
+
var addtocartfunc = props.addtocartfunc;
|
|
2081
2083
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
2082
2084
|
props.actions.productinfo_cssstyles;
|
|
2083
2085
|
var _useState = React.useState([]),
|
|
@@ -2100,9 +2102,20 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
2100
2102
|
_useState0 = _slicedToArray__default["default"](_useState9, 2);
|
|
2101
2103
|
_useState0[0];
|
|
2102
2104
|
_useState0[1];
|
|
2105
|
+
var _useState1 = React.useState([]),
|
|
2106
|
+
_useState10 = _slicedToArray__default["default"](_useState1, 2),
|
|
2107
|
+
product_prod_extras_array = _useState10[0],
|
|
2108
|
+
setproduct_prod_extras_array = _useState10[1];
|
|
2103
2109
|
React.useEffect(function () {
|
|
2104
2110
|
if (fetchProductInfoQueryContext.isSuccess) ;
|
|
2105
2111
|
}, [filterproductreviews]);
|
|
2112
|
+
React.useEffect(function () {
|
|
2113
|
+
if (fetchProductInfoQueryContext.isSuccess) {
|
|
2114
|
+
var _fetchProductInfoQuer2;
|
|
2115
|
+
var tempprodextraarr = _toConsumableArray__default["default"](fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.product_extras);
|
|
2116
|
+
setproduct_prod_extras_array(_toConsumableArray__default["default"](tempprodextraarr));
|
|
2117
|
+
}
|
|
2118
|
+
}, [fetchProductInfoQueryContext.isSuccess, fetchProductInfoQueryContext.data]);
|
|
2106
2119
|
var formstyles = {
|
|
2107
2120
|
input_label_name: glamor.css({
|
|
2108
2121
|
color: sectionproperties.form_labelcolor,
|
|
@@ -2119,7 +2132,7 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
2119
2132
|
};
|
|
2120
2133
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2121
2134
|
className: 'row w-100 ml-0 mr-0 mt-3'
|
|
2122
|
-
},
|
|
2135
|
+
}, product_prod_extras_array === null || product_prod_extras_array === void 0 ? void 0 : product_prod_extras_array.map(function (item, index) {
|
|
2123
2136
|
var _item$productinfo, _item$productinfo2, _item$productinfo3, _item$productinfo4;
|
|
2124
2137
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2125
2138
|
"class": props.srcfromprops == 'servicestyle2' ? 'col-lg-12 col-sm-12 p-0 mb-3' : 'col-lg-6 col-sm-12 p-0 mb-3'
|
|
@@ -2163,7 +2176,32 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
2163
2176
|
style: {
|
|
2164
2177
|
flex: 1
|
|
2165
2178
|
},
|
|
2166
|
-
"class": "text-black cursor-pointer "
|
|
2179
|
+
"class": "text-black cursor-pointer ",
|
|
2180
|
+
onClick: function onClick() {
|
|
2181
|
+
var _item$productinfo5;
|
|
2182
|
+
var quantity = 0;
|
|
2183
|
+
var tempproduct_prod_extras_array = _toConsumableArray__default["default"](product_prod_extras_array);
|
|
2184
|
+
if (parseFloat(tempproduct_prod_extras_array[index].quantity) <= 0) {
|
|
2185
|
+
quantity = 0;
|
|
2186
|
+
} else {
|
|
2187
|
+
quantity = parseFloat(tempproduct_prod_extras_array[index].quantity);
|
|
2188
|
+
}
|
|
2189
|
+
quantity = quantity - 1;
|
|
2190
|
+
tempproduct_prod_extras_array[index].quantity = quantity;
|
|
2191
|
+
addtocartfunc(false, {
|
|
2192
|
+
functype: 'add',
|
|
2193
|
+
item_type: 'Extras',
|
|
2194
|
+
productid: item === null || item === void 0 || (_item$productinfo5 = item.productinfo) === null || _item$productinfo5 === void 0 ? void 0 : _item$productinfo5.productid,
|
|
2195
|
+
main_ref_productid: productid,
|
|
2196
|
+
variantid: '',
|
|
2197
|
+
quantity: quantity,
|
|
2198
|
+
date: '',
|
|
2199
|
+
time: '',
|
|
2200
|
+
from: '',
|
|
2201
|
+
to: '',
|
|
2202
|
+
extrafields: []
|
|
2203
|
+
});
|
|
2204
|
+
}
|
|
2167
2205
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2168
2206
|
className: 'h-100 allcentered'
|
|
2169
2207
|
}, /*#__PURE__*/React__default["default"].createElement(FiMinus.FiMinus, {
|
|
@@ -2174,11 +2212,34 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
2174
2212
|
flex: 1,
|
|
2175
2213
|
fontSize: 18
|
|
2176
2214
|
}
|
|
2177
|
-
},
|
|
2215
|
+
}, item === null || item === void 0 ? void 0 : item.quantity), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2178
2216
|
style: {
|
|
2179
2217
|
flex: 1
|
|
2180
2218
|
},
|
|
2181
|
-
"class": "text-black cursor-pointer "
|
|
2219
|
+
"class": "text-black cursor-pointer ",
|
|
2220
|
+
onClick: function onClick() {
|
|
2221
|
+
var _item$productinfo6;
|
|
2222
|
+
var quantity = 0;
|
|
2223
|
+
var tempproduct_prod_extras_array = _toConsumableArray__default["default"](product_prod_extras_array);
|
|
2224
|
+
if (tempproduct_prod_extras_array[index].quantity != undefined && tempproduct_prod_extras_array[index].quantity != null && tempproduct_prod_extras_array[index].quantity != 0) {
|
|
2225
|
+
quantity = parseFloat(tempproduct_prod_extras_array[index].quantity);
|
|
2226
|
+
}
|
|
2227
|
+
quantity = quantity + 1;
|
|
2228
|
+
tempproduct_prod_extras_array[index].quantity = quantity;
|
|
2229
|
+
addtocartfunc(false, {
|
|
2230
|
+
functype: 'add',
|
|
2231
|
+
item_type: 'Extras',
|
|
2232
|
+
productid: item === null || item === void 0 || (_item$productinfo6 = item.productinfo) === null || _item$productinfo6 === void 0 ? void 0 : _item$productinfo6.productid,
|
|
2233
|
+
main_ref_productid: productid,
|
|
2234
|
+
variantid: '',
|
|
2235
|
+
quantity: quantity,
|
|
2236
|
+
date: '',
|
|
2237
|
+
time: '',
|
|
2238
|
+
from: '',
|
|
2239
|
+
to: '',
|
|
2240
|
+
extrafields: []
|
|
2241
|
+
});
|
|
2242
|
+
}
|
|
2182
2243
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2183
2244
|
className: 'h-100 allcentered'
|
|
2184
2245
|
}, /*#__PURE__*/React__default["default"].createElement(FiPlus.FiPlus, {
|
|
@@ -2372,8 +2433,8 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
2372
2433
|
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(Math.round(parseInt(fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 ? parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2) : parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2)) * (fetchProductInfoQueryContext.data.data.productinfo.prodaffpercentprofit / 100))).toFixed(0), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))));
|
|
2373
2434
|
};
|
|
2374
2435
|
|
|
2375
|
-
function ownKeys$
|
|
2376
|
-
function _objectSpread$
|
|
2436
|
+
function ownKeys$2G(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; }
|
|
2437
|
+
function _objectSpread$2G(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2G(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2G(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2377
2438
|
var ProductExtraFields = function ProductExtraFields(props) {
|
|
2378
2439
|
var _fetchProductInfoQuer, _css, _fetchProductInfoQuer2;
|
|
2379
2440
|
props.actions.lang;
|
|
@@ -2428,9 +2489,9 @@ var ProductExtraFields = function ProductExtraFields(props) {
|
|
|
2428
2489
|
});
|
|
2429
2490
|
}
|
|
2430
2491
|
setproductextravaluesarray(_toConsumableArray__default["default"](tempproductextravaluesarray));
|
|
2431
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2492
|
+
var tempaddtocardpayloadobj = _objectSpread$2G({}, addtocardpayloadobj);
|
|
2432
2493
|
tempaddtocardpayloadobj.extrafields = tempproductextravaluesarray;
|
|
2433
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2494
|
+
setaddtocardpayloadobj(_objectSpread$2G({}, tempaddtocardpayloadobj));
|
|
2434
2495
|
};
|
|
2435
2496
|
var formstyles = {
|
|
2436
2497
|
input_label_name: glamor.css({
|
|
@@ -2663,8 +2724,8 @@ var DescriptionContent = function DescriptionContent(props) {
|
|
|
2663
2724
|
})))));
|
|
2664
2725
|
};
|
|
2665
2726
|
|
|
2666
|
-
function ownKeys$
|
|
2667
|
-
function _objectSpread$
|
|
2727
|
+
function ownKeys$2F(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; }
|
|
2728
|
+
function _objectSpread$2F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2F(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2668
2729
|
var AddReview = function AddReview(props) {
|
|
2669
2730
|
var _css;
|
|
2670
2731
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -2716,7 +2777,7 @@ var AddReview = function AddReview(props) {
|
|
|
2716
2777
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
2717
2778
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
2718
2779
|
});
|
|
2719
|
-
setsectionproperties(_objectSpread$
|
|
2780
|
+
setsectionproperties(_objectSpread$2F({}, secpropobj));
|
|
2720
2781
|
}
|
|
2721
2782
|
}, [StatePagePropertiesContext]);
|
|
2722
2783
|
React.useEffect(function () {
|
|
@@ -2725,7 +2786,7 @@ var AddReview = function AddReview(props) {
|
|
|
2725
2786
|
templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop[pageindexcontext]) === null || _templatepropcontext$ === void 0 || (_templatepropcontext$ = _templatepropcontext$.pageproperties) === null || _templatepropcontext$ === void 0 || _templatepropcontext$.forEach(function (arrayItem, arrayindex) {
|
|
2726
2787
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
2727
2788
|
});
|
|
2728
|
-
setsectionproperties(_objectSpread$
|
|
2789
|
+
setsectionproperties(_objectSpread$2F({}, secpropobj));
|
|
2729
2790
|
}, [pageindexcontext]);
|
|
2730
2791
|
var reviewstyles = {
|
|
2731
2792
|
submitreviewbtn: glamor.css({
|
|
@@ -2851,9 +2912,9 @@ var AddReview = function AddReview(props) {
|
|
|
2851
2912
|
}),
|
|
2852
2913
|
activeColor: "#ffd700",
|
|
2853
2914
|
onChange: function onChange(event) {
|
|
2854
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
2915
|
+
var tempreviewpayloadobj = _objectSpread$2F({}, reviewpayloadobj);
|
|
2855
2916
|
tempreviewpayloadobj.reviewrate = event;
|
|
2856
|
-
setreviewpayloadobj(_objectSpread$
|
|
2917
|
+
setreviewpayloadobj(_objectSpread$2F({}, tempreviewpayloadobj));
|
|
2857
2918
|
}
|
|
2858
2919
|
})))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2859
2920
|
"class": "col-lg-12"
|
|
@@ -2867,9 +2928,9 @@ var AddReview = function AddReview(props) {
|
|
|
2867
2928
|
"class": reviewstyles.form_control,
|
|
2868
2929
|
value: reviewpayloadobj.reviewname,
|
|
2869
2930
|
onChange: function onChange(event) {
|
|
2870
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
2931
|
+
var tempreviewpayloadobj = _objectSpread$2F({}, reviewpayloadobj);
|
|
2871
2932
|
tempreviewpayloadobj.reviewname = event.target.value;
|
|
2872
|
-
setreviewpayloadobj(_objectSpread$
|
|
2933
|
+
setreviewpayloadobj(_objectSpread$2F({}, tempreviewpayloadobj));
|
|
2873
2934
|
}
|
|
2874
2935
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2875
2936
|
"class": "col-lg-12 mb-4"
|
|
@@ -2879,9 +2940,9 @@ var AddReview = function AddReview(props) {
|
|
|
2879
2940
|
"class": reviewstyles.form_control,
|
|
2880
2941
|
value: reviewpayloadobj.reviewtitle,
|
|
2881
2942
|
onChange: function onChange(event) {
|
|
2882
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
2943
|
+
var tempreviewpayloadobj = _objectSpread$2F({}, reviewpayloadobj);
|
|
2883
2944
|
tempreviewpayloadobj.reviewtitle = event.target.value;
|
|
2884
|
-
setreviewpayloadobj(_objectSpread$
|
|
2945
|
+
setreviewpayloadobj(_objectSpread$2F({}, tempreviewpayloadobj));
|
|
2885
2946
|
}
|
|
2886
2947
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2887
2948
|
"class": "col-lg-12 mb-4"
|
|
@@ -2892,9 +2953,9 @@ var AddReview = function AddReview(props) {
|
|
|
2892
2953
|
"class": reviewstyles.form_control + ' form_control ',
|
|
2893
2954
|
value: reviewpayloadobj.reviewbody,
|
|
2894
2955
|
onChange: function onChange(event) {
|
|
2895
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
2956
|
+
var tempreviewpayloadobj = _objectSpread$2F({}, reviewpayloadobj);
|
|
2896
2957
|
tempreviewpayloadobj.reviewbody = event.target.value;
|
|
2897
|
-
setreviewpayloadobj(_objectSpread$
|
|
2958
|
+
setreviewpayloadobj(_objectSpread$2F({}, tempreviewpayloadobj));
|
|
2898
2959
|
},
|
|
2899
2960
|
style: {
|
|
2900
2961
|
resize: 'none',
|
|
@@ -2929,8 +2990,8 @@ var AddReview = function AddReview(props) {
|
|
|
2929
2990
|
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)));
|
|
2930
2991
|
};
|
|
2931
2992
|
|
|
2932
|
-
function ownKeys$
|
|
2933
|
-
function _objectSpread$
|
|
2993
|
+
function ownKeys$2E(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; }
|
|
2994
|
+
function _objectSpread$2E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2E(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2934
2995
|
var ProductReviews = function ProductReviews(props) {
|
|
2935
2996
|
var _fetchProductInfoQuer, _fetchProductInfoQuer3, _fetchProductInfoQuer4;
|
|
2936
2997
|
props.actions.lang;
|
|
@@ -3178,7 +3239,7 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
3178
3239
|
size: "md",
|
|
3179
3240
|
"class": "reviewmodal"
|
|
3180
3241
|
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement(AddReview, {
|
|
3181
|
-
actions: _objectSpread$
|
|
3242
|
+
actions: _objectSpread$2E(_objectSpread$2E({}, actions), {}, {
|
|
3182
3243
|
productid: productid,
|
|
3183
3244
|
canuserreview: canuserreview,
|
|
3184
3245
|
addreviewcallback: addreviewcallback
|
|
@@ -3186,10 +3247,1009 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
3186
3247
|
}))));
|
|
3187
3248
|
};
|
|
3188
3249
|
|
|
3250
|
+
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; }
|
|
3251
|
+
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__default["default"](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; }
|
|
3252
|
+
var Select$3 = /*#__PURE__*/React__default["default"].lazy(function () {
|
|
3253
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
|
|
3254
|
+
});
|
|
3255
|
+
var Variantoptions_f_quantity_cond = function Variantoptions_f_quantity_cond(props) {
|
|
3256
|
+
var _css, _ProductInfoObj$data5, _ProductInfoObj$data6, _ProductInfoObj$data7, _ProductInfoObj$data8, _ProductInfoObj$data9, _ProductInfoObj$data0, _ProductInfoObj$data1, _ProductInfoObj$data10, _ProductInfoObj$data11, _ProductInfoObj$data12, _sizeguideimage$;
|
|
3257
|
+
var productinfo_cssstyles = props.actions.productinfo_cssstyles;
|
|
3258
|
+
var lang = props.actions.lang;
|
|
3259
|
+
var langdetect = props.actions.langdetect;
|
|
3260
|
+
var _useState = React.useState([]),
|
|
3261
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
3262
|
+
variantvalueidentifier = _useState2[0],
|
|
3263
|
+
setvariantvalueidentifier = _useState2[1];
|
|
3264
|
+
|
|
3265
|
+
// const variantvalueidentifier = props.actions.variantvalueidentifier;
|
|
3266
|
+
// const selectproductoptionvalue = props.actions.selectproductoptionvalue;
|
|
3267
|
+
// const clearchoosenvaluesbutkeepcurrentvalue = props.actions.clearchoosenvaluesbutkeepcurrentvalue;
|
|
3268
|
+
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
3269
|
+
// const variant_id_return = props.variant_id_return;
|
|
3270
|
+
var sectionproperties = props.actions.sectionproperties;
|
|
3271
|
+
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
3272
|
+
// const ProductInfoObj = props.actions.ProductInfoObj;
|
|
3273
|
+
var _useState3 = React.useState({}),
|
|
3274
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
3275
|
+
ProductInfoObj = _useState4[0],
|
|
3276
|
+
setProductInfoObj = _useState4[1];
|
|
3277
|
+
var _useState5 = React.useState(false),
|
|
3278
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2);
|
|
3279
|
+
_useState6[0];
|
|
3280
|
+
var setisloaded = _useState6[1];
|
|
3281
|
+
var _useState7 = React.useState(false),
|
|
3282
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2);
|
|
3283
|
+
_useState8[0];
|
|
3284
|
+
var setisoutofstock = _useState8[1];
|
|
3285
|
+
var _useState9 = React.useState(''),
|
|
3286
|
+
_useState0 = _slicedToArray__default["default"](_useState9, 2);
|
|
3287
|
+
_useState0[0];
|
|
3288
|
+
_useState0[1];
|
|
3289
|
+
var _useState1 = React.useState([]),
|
|
3290
|
+
_useState10 = _slicedToArray__default["default"](_useState1, 2),
|
|
3291
|
+
productimagesarray = _useState10[0];
|
|
3292
|
+
_useState10[1];
|
|
3293
|
+
var _useState11 = React.useState(false),
|
|
3294
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
3295
|
+
opensizeguidemodal = _useState12[0],
|
|
3296
|
+
setopensizeguidemodal = _useState12[1];
|
|
3297
|
+
var _useState13 = React.useState(''),
|
|
3298
|
+
_useState14 = _slicedToArray__default["default"](_useState13, 2);
|
|
3299
|
+
_useState14[0];
|
|
3300
|
+
var setvariantindex = _useState14[1];
|
|
3301
|
+
var _useState15 = React.useState(''),
|
|
3302
|
+
_useState16 = _slicedToArray__default["default"](_useState15, 2),
|
|
3303
|
+
addtocardpayloadobj = _useState16[0],
|
|
3304
|
+
setaddtocardpayloadobj = _useState16[1];
|
|
3305
|
+
var _useState17 = React.useState(''),
|
|
3306
|
+
_useState18 = _slicedToArray__default["default"](_useState17, 2),
|
|
3307
|
+
variantindexcompleted = _useState18[0],
|
|
3308
|
+
setvariantindexcompleted = _useState18[1];
|
|
3309
|
+
var initializedRef = React__default["default"].useRef(false);
|
|
3310
|
+
|
|
3311
|
+
// const variantindexcompleted = props.actions.variantindexcompleted;
|
|
3312
|
+
var sizeguideimage = props.actions.sizeguideimage;
|
|
3313
|
+
React.useEffect(function () {
|
|
3314
|
+
if (!initializedRef.current && fetchProductInfoQueryContext.isSuccess) {
|
|
3315
|
+
setProductInfoObj(_objectSpread$2D({}, fetchProductInfoQueryContext.data)); // shallow clone
|
|
3316
|
+
initializedRef.current = true; // mark as initialized
|
|
3317
|
+
}
|
|
3318
|
+
}, [fetchProductInfoQueryContext.isSuccess]);
|
|
3319
|
+
var clearchoosenvaluesbutkeepcurrentvalue = function clearchoosenvaluesbutkeepcurrentvalue(optionindex, optionvaluesitem, optionvaluesindex) {
|
|
3320
|
+
var _productarr$data;
|
|
3321
|
+
var productarr = ProductInfoObj;
|
|
3322
|
+
productarr === null || productarr === void 0 || (_productarr$data = productarr.data) === null || _productarr$data === void 0 || (_productarr$data = _productarr$data.productinfo) === null || _productarr$data === void 0 || (_productarr$data = _productarr$data.productoptions) === null || _productarr$data === void 0 || _productarr$data.forEach(function (item, index) {
|
|
3323
|
+
var _item$optionvalues;
|
|
3324
|
+
item.isselected = 0;
|
|
3325
|
+
item === null || item === void 0 || (_item$optionvalues = item.optionvalues) === null || _item$optionvalues === void 0 || _item$optionvalues.forEach(function (valueitem, valueindex) {
|
|
3326
|
+
valueitem.isselected = 0;
|
|
3327
|
+
});
|
|
3328
|
+
});
|
|
3329
|
+
selectproductoptionvalue(optionindex, optionvaluesitem, optionvaluesindex, productarr);
|
|
3330
|
+
};
|
|
3331
|
+
var variantchecker = function variantchecker() {
|
|
3332
|
+
var productarr = ProductInfoObj;
|
|
3333
|
+
if (Object.keys(productarr).length != 0) {
|
|
3334
|
+
var _productarr$data2;
|
|
3335
|
+
if ((productarr === null || productarr === void 0 || (_productarr$data2 = productarr.data) === null || _productarr$data2 === void 0 || (_productarr$data2 = _productarr$data2.productinfo) === null || _productarr$data2 === void 0 ? void 0 : _productarr$data2.hasvariants) == 1) {
|
|
3336
|
+
var selectedoptionsvalues = [];
|
|
3337
|
+
var variantsaccessible = [];
|
|
3338
|
+
productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
|
|
3339
|
+
productoptionsitem.optionvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
|
|
3340
|
+
if (ProductOptionValuesitem.isselected == 1) {
|
|
3341
|
+
selectedoptionsvalues.push(ProductOptionValuesitem);
|
|
3342
|
+
}
|
|
3343
|
+
});
|
|
3344
|
+
});
|
|
3345
|
+
if (selectedoptionsvalues.length == 0) {
|
|
3346
|
+
productarr.data.productinfo.variants.forEach(function (ProductVariantItem, ProductVariantIndex) {
|
|
3347
|
+
ProductVariantItem.variantoptions.forEach(function (varinatoptionitem, variantoptionindex) {
|
|
3348
|
+
productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
|
|
3349
|
+
productoptionsitem.optionvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
|
|
3350
|
+
if (ProductOptionValuesitem.valueid == varinatoptionitem.valueid) {
|
|
3351
|
+
ProductOptionValuesitem.isenabled = 1;
|
|
3352
|
+
}
|
|
3353
|
+
});
|
|
3354
|
+
});
|
|
3355
|
+
});
|
|
3356
|
+
});
|
|
3357
|
+
} else {
|
|
3358
|
+
productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
|
|
3359
|
+
productoptionsitem.optionvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
|
|
3360
|
+
ProductOptionValuesitem.isenabled = 0;
|
|
3361
|
+
});
|
|
3362
|
+
});
|
|
3363
|
+
productarr.data.productinfo.variants.forEach(function (ProductVariantItem, ProductVariantIndex) {
|
|
3364
|
+
var variantcommonvalues = [];
|
|
3365
|
+
ProductVariantItem.variantoptions.forEach(function (varinatoptionitem, variantoptionindex) {
|
|
3366
|
+
selectedoptionsvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
|
|
3367
|
+
if (ProductOptionValuesitem.optionid == varinatoptionitem.optionid) {
|
|
3368
|
+
variantcommonvalues.push(varinatoptionitem);
|
|
3369
|
+
}
|
|
3370
|
+
});
|
|
3371
|
+
});
|
|
3372
|
+
var addvariantcount = [];
|
|
3373
|
+
var addvariant = false;
|
|
3374
|
+
selectedoptionsvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
|
|
3375
|
+
addvariant = false;
|
|
3376
|
+
variantcommonvalues.forEach(function (varinatoptionitem, variantoptionindex) {
|
|
3377
|
+
if (ProductOptionValuesitem.optionid == varinatoptionitem.optionid) {
|
|
3378
|
+
if (ProductOptionValuesitem.valueid == varinatoptionitem.valueid) {
|
|
3379
|
+
addvariant = true;
|
|
3380
|
+
} else {
|
|
3381
|
+
addvariantcount.push(varinatoptionitem);
|
|
3382
|
+
}
|
|
3383
|
+
}
|
|
3384
|
+
});
|
|
3385
|
+
});
|
|
3386
|
+
if (addvariant && addvariantcount.length == 0) {
|
|
3387
|
+
variantsaccessible.push(ProductVariantItem);
|
|
3388
|
+
}
|
|
3389
|
+
});
|
|
3390
|
+
variantsaccessible.forEach(function (ProductVariantItem, ProductVariantIndex) {
|
|
3391
|
+
ProductVariantItem.variantoptions.forEach(function (varinatoptionitem, variantoptionindex) {
|
|
3392
|
+
productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
|
|
3393
|
+
productoptionsitem.optionvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
|
|
3394
|
+
if (ProductOptionValuesitem.valueid == varinatoptionitem.valueid) {
|
|
3395
|
+
ProductOptionValuesitem.isenabled = 1;
|
|
3396
|
+
}
|
|
3397
|
+
});
|
|
3398
|
+
});
|
|
3399
|
+
});
|
|
3400
|
+
});
|
|
3401
|
+
}
|
|
3402
|
+
// queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
|
|
3403
|
+
setProductInfoObj(_objectSpread$2D({}, productarr));
|
|
3404
|
+
setisloaded(true);
|
|
3405
|
+
}
|
|
3406
|
+
}
|
|
3407
|
+
};
|
|
3408
|
+
var variantcompleting = function variantcompleting() {
|
|
3409
|
+
props.variant_id_return('');
|
|
3410
|
+
setvariantindexcompleted('');
|
|
3411
|
+
var tempaddtocardpayloadobj = _objectSpread$2D({}, addtocardpayloadobj);
|
|
3412
|
+
tempaddtocardpayloadobj.variantid = '';
|
|
3413
|
+
setaddtocardpayloadobj(_objectSpread$2D({}, tempaddtocardpayloadobj));
|
|
3414
|
+
var productarr = ProductInfoObj;
|
|
3415
|
+
var selectedoptionsvalues = [];
|
|
3416
|
+
productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
|
|
3417
|
+
productoptionsitem.optionvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
|
|
3418
|
+
if (ProductOptionValuesitem.isselected == 1) {
|
|
3419
|
+
selectedoptionsvalues.push(ProductOptionValuesitem);
|
|
3420
|
+
}
|
|
3421
|
+
});
|
|
3422
|
+
});
|
|
3423
|
+
productarr.data.productinfo.variants.forEach(function (ProductVariantItem, ProductVariantIndex) {
|
|
3424
|
+
var isvariant = false;
|
|
3425
|
+
var variantnotmatch = [];
|
|
3426
|
+
if (selectedoptionsvalues.length == ProductVariantItem.variantoptions.length) {
|
|
3427
|
+
isvariant = true;
|
|
3428
|
+
ProductVariantItem.variantoptions.forEach(function (varinatoptionitem, variantoptionindex) {
|
|
3429
|
+
selectedoptionsvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
|
|
3430
|
+
if (ProductOptionValuesitem.optionid == varinatoptionitem.optionid) {
|
|
3431
|
+
if (ProductOptionValuesitem.valueid == varinatoptionitem.valueid) ; else {
|
|
3432
|
+
variantnotmatch.push('s');
|
|
3433
|
+
}
|
|
3434
|
+
}
|
|
3435
|
+
});
|
|
3436
|
+
});
|
|
3437
|
+
}
|
|
3438
|
+
if (variantnotmatch.length == 0 && isvariant == true) {
|
|
3439
|
+
var _ProductInfoObj$data;
|
|
3440
|
+
var variantobj = ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data = ProductInfoObj.data) === null || _ProductInfoObj$data === void 0 || (_ProductInfoObj$data = _ProductInfoObj$data.productinfo) === null || _ProductInfoObj$data === void 0 ? void 0 : _ProductInfoObj$data.variants[ProductVariantIndex];
|
|
3441
|
+
var variantid = '';
|
|
3442
|
+
if (variantobj == undefined) {
|
|
3443
|
+
setisoutofstock(false);
|
|
3444
|
+
NotificationManager.warning('', 'Variant Not Found');
|
|
3445
|
+
} else {
|
|
3446
|
+
variantid = variantobj.variantid;
|
|
3447
|
+
var tempaddtocardpayloadobj = _objectSpread$2D({}, addtocardpayloadobj);
|
|
3448
|
+
tempaddtocardpayloadobj.variantid = variantid;
|
|
3449
|
+
productimagesarray === null || productimagesarray === void 0 || productimagesarray.forEach(function (tempimageitem, tempimageindex) {
|
|
3450
|
+
if (tempimageitem.galleryid == (variantobj === null || variantobj === void 0 ? void 0 : variantobj.variantgalleryid)) ;
|
|
3451
|
+
});
|
|
3452
|
+
if (variantobj.current_quantity <= 0) {
|
|
3453
|
+
setisoutofstock(true);
|
|
3454
|
+
} else {
|
|
3455
|
+
setisoutofstock(false);
|
|
3456
|
+
}
|
|
3457
|
+
props.variant_id_return(variantid);
|
|
3458
|
+
// setvariantsku(variantobj?.sku);
|
|
3459
|
+
// setcurrentshowingimageindex(variantimageindex);
|
|
3460
|
+
setaddtocardpayloadobj(_objectSpread$2D({}, tempaddtocardpayloadobj));
|
|
3461
|
+
setvariantindexcompleted(ProductVariantIndex);
|
|
3462
|
+
setvariantindex(ProductVariantIndex);
|
|
3463
|
+
}
|
|
3464
|
+
}
|
|
3465
|
+
});
|
|
3466
|
+
// queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
|
|
3467
|
+
setProductInfoObj(_objectSpread$2D({}, productarr));
|
|
3468
|
+
};
|
|
3469
|
+
var selectproductoptionvalue = function selectproductoptionvalue(optionindex, optionvaluesitem, optionvaluesindex, productarrtobepassed) {
|
|
3470
|
+
if (productarrtobepassed == undefined || productarrtobepassed == null) {
|
|
3471
|
+
var productarr = ProductInfoObj;
|
|
3472
|
+
} else {
|
|
3473
|
+
var productarr = productarrtobepassed;
|
|
3474
|
+
}
|
|
3475
|
+
var isselected = productarr.data.productinfo.productoptions[optionindex].optionvalues[optionvaluesindex].isselected;
|
|
3476
|
+
if (isselected == 1) {
|
|
3477
|
+
productarr.data.productinfo.productoptions[optionindex].optionvalues[optionvaluesindex].isselected = 0;
|
|
3478
|
+
} else {
|
|
3479
|
+
productarr.data.productinfo.productoptions[optionindex].optionvalues[optionvaluesindex].isselected = 1;
|
|
3480
|
+
}
|
|
3481
|
+
if (productarr.data.productinfo.productoptions[optionindex].optionname == 'color' || productarr.data.productinfo.productoptions[optionindex].optionname == 'Color' || productarr.data.productinfo.productoptions[optionindex].optionname == 'Colour') {
|
|
3482
|
+
var _productarr$data$prod;
|
|
3483
|
+
setvariantvalueidentifier((_productarr$data$prod = productarr.data.productinfo.productoptions[optionindex].optionvalues[optionvaluesindex]) === null || _productarr$data$prod === void 0 ? void 0 : _productarr$data$prod.value_identifier);
|
|
3484
|
+
var variantImageMatching = null;
|
|
3485
|
+
productarr.data.productinfo.variants.forEach(function (ProductVariantItem, ProductVariantIndex) {
|
|
3486
|
+
ProductVariantItem.variantoptions.forEach(function (varinatoptionitem, variantoptionindex) {
|
|
3487
|
+
if (optionvaluesitem.valueid == varinatoptionitem.valueid) {
|
|
3488
|
+
variantImageMatching = ProductVariantItem;
|
|
3489
|
+
}
|
|
3490
|
+
});
|
|
3491
|
+
});
|
|
3492
|
+
if (variantImageMatching != null) {
|
|
3493
|
+
productimagesarray === null || productimagesarray === void 0 || productimagesarray.forEach(function (tempimageitem, tempimageindex) {
|
|
3494
|
+
var _variantImageMatching;
|
|
3495
|
+
if (tempimageitem.galleryid == ((_variantImageMatching = variantImageMatching) === null || _variantImageMatching === void 0 ? void 0 : _variantImageMatching.variantgalleryid)) ;
|
|
3496
|
+
});
|
|
3497
|
+
|
|
3498
|
+
// setcurrentshowingimageindex(variantimageindex);
|
|
3499
|
+
}
|
|
3500
|
+
}
|
|
3501
|
+
productarr.data.productinfo.productoptions[optionindex].optionvalues.forEach(function (arrayItem, arrayindex) {
|
|
3502
|
+
if (optionvaluesindex != arrayindex) {
|
|
3503
|
+
arrayItem.isselected = 0;
|
|
3504
|
+
}
|
|
3505
|
+
});
|
|
3506
|
+
variantchecker();
|
|
3507
|
+
variantcompleting();
|
|
3508
|
+
setProductInfoObj(_objectSpread$2D({}, productarr));
|
|
3509
|
+
};
|
|
3510
|
+
// productimagesarray
|
|
3511
|
+
var formstyles = {
|
|
3512
|
+
input_label_name: glamor.css({
|
|
3513
|
+
color: sectionproperties.form_labelcolor,
|
|
3514
|
+
textTransform: sectionproperties.form_labeltexttransform,
|
|
3515
|
+
fontWeight: sectionproperties.form_labelfontweight,
|
|
3516
|
+
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
3517
|
+
marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0
|
|
3518
|
+
}),
|
|
3519
|
+
form_control: glamor.css((_css = {
|
|
3520
|
+
background: 'transparent',
|
|
3521
|
+
color: sectionproperties.inputfieldcolor,
|
|
3522
|
+
fontSize: sectionproperties.inputfieldfontsize + 'px',
|
|
3523
|
+
position: 'relative',
|
|
3524
|
+
display: 'flex',
|
|
3525
|
+
alignItems: 'center'
|
|
3526
|
+
}, _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_css, "display", 'block'), "width", '100%'), "padding", '0 10px'), "transition", '.3s'), "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), "borderRadius", sectionproperties.inputfieldborderradius + 'px'), "height", sectionproperties.inputfieldheight + 'px'), "background", sectionproperties.input_bgcolor), "color", sectionproperties.inputfieldcolor), _defineProperty__default["default"](_defineProperty__default["default"](_css, ':focus', {
|
|
3527
|
+
borderColor: sectionproperties.inputfeildbordercoloronfocus
|
|
3528
|
+
}), ':focus .login_input_icon', {
|
|
3529
|
+
color: sectionproperties.inputfeildbordercoloronfocus
|
|
3530
|
+
}))),
|
|
3531
|
+
sizeguidebtn: glamor.css({
|
|
3532
|
+
color: sectionproperties.sizeguidebtncolor,
|
|
3533
|
+
fontSize: sectionproperties.sizeguidebtnfontsize + 'px',
|
|
3534
|
+
transition: '.3s',
|
|
3535
|
+
textDecoration: 'underline',
|
|
3536
|
+
':hover': {
|
|
3537
|
+
color: sectionproperties.sizeguidebtncoloronhover,
|
|
3538
|
+
fontWeight: sectionproperties.sizeguidebtnfontweight
|
|
3539
|
+
}
|
|
3540
|
+
}),
|
|
3541
|
+
closemodalbtn: glamor.css({
|
|
3542
|
+
color: sectionproperties.sizeguidebtncolor,
|
|
3543
|
+
transition: '.3s',
|
|
3544
|
+
':hover': {
|
|
3545
|
+
color: sectionproperties.sizeguidebtncoloronhover
|
|
3546
|
+
}
|
|
3547
|
+
})
|
|
3548
|
+
};
|
|
3549
|
+
var issingleoptionoutofstock = function issingleoptionoutofstock(valueitem) {
|
|
3550
|
+
var _ProductInfoObj$data2;
|
|
3551
|
+
var current_quantity = 0;
|
|
3552
|
+
var isoutofstock = false;
|
|
3553
|
+
if ((ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data2 = ProductInfoObj.data) === null || _ProductInfoObj$data2 === void 0 || (_ProductInfoObj$data2 = _ProductInfoObj$data2.productinfo) === null || _ProductInfoObj$data2 === void 0 || (_ProductInfoObj$data2 = _ProductInfoObj$data2.productoptions) === null || _ProductInfoObj$data2 === void 0 ? void 0 : _ProductInfoObj$data2.length) == 1) {
|
|
3554
|
+
var _ProductInfoObj$data3;
|
|
3555
|
+
ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data3 = ProductInfoObj.data) === null || _ProductInfoObj$data3 === void 0 || (_ProductInfoObj$data3 = _ProductInfoObj$data3.productinfo) === null || _ProductInfoObj$data3 === void 0 || (_ProductInfoObj$data3 = _ProductInfoObj$data3.variants) === null || _ProductInfoObj$data3 === void 0 || _ProductInfoObj$data3.forEach(function (varitem) {
|
|
3556
|
+
var _varitem$variantoptio;
|
|
3557
|
+
varitem === null || varitem === void 0 || (_varitem$variantoptio = varitem.variantoptions) === null || _varitem$variantoptio === void 0 || _varitem$variantoptio.forEach(function (varoptionitem) {
|
|
3558
|
+
if (varoptionitem.valueid == valueitem.valueid) {
|
|
3559
|
+
current_quantity = varitem.current_quantity;
|
|
3560
|
+
if (varitem.current_quantity <= 0) {
|
|
3561
|
+
var _ProductInfoObj$data4;
|
|
3562
|
+
if ((ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data4 = ProductInfoObj.data) === null || _ProductInfoObj$data4 === void 0 || (_ProductInfoObj$data4 = _ProductInfoObj$data4.productinfo) === null || _ProductInfoObj$data4 === void 0 ? void 0 : _ProductInfoObj$data4.quantavailtype) == 'limit') {
|
|
3563
|
+
isoutofstock = true;
|
|
3564
|
+
}
|
|
3565
|
+
}
|
|
3566
|
+
}
|
|
3567
|
+
});
|
|
3568
|
+
});
|
|
3569
|
+
}
|
|
3570
|
+
return {
|
|
3571
|
+
isoutofstock: isoutofstock,
|
|
3572
|
+
current_quantity: current_quantity
|
|
3573
|
+
};
|
|
3574
|
+
};
|
|
3575
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, (ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data5 = ProductInfoObj.data) === null || _ProductInfoObj$data5 === void 0 || (_ProductInfoObj$data5 = _ProductInfoObj$data5.productinfo) === null || _ProductInfoObj$data5 === void 0 ? void 0 : _ProductInfoObj$data5.hasvariants) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3576
|
+
className: props.srcprops == 'reservation' ? 'row mx-0 mt-3 w-100 d-flex align-items-start' : 'row m-0 w-100 d-flex align-items-start'
|
|
3577
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3578
|
+
"class": "row m-0 w-100"
|
|
3579
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3580
|
+
"class": sectionproperties.showsizeguidebtn == 'Show' ? 'col-9 p-0' : 'col-lg-12 p-0'
|
|
3581
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3582
|
+
"class": "row m-0 w-100"
|
|
3583
|
+
}, sectionproperties.variantstyle == 'Slider' && (ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data6 = ProductInfoObj.data) === null || _ProductInfoObj$data6 === void 0 || (_ProductInfoObj$data6 = _ProductInfoObj$data6.productinfo) === null || _ProductInfoObj$data6 === void 0 || (_ProductInfoObj$data6 = _ProductInfoObj$data6.productoptions) === null || _ProductInfoObj$data6 === void 0 ? void 0 : _ProductInfoObj$data6.map(function (item, index) {
|
|
3584
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3585
|
+
className: 'col-lg-12 p-0 mb-3 d-flex justify-content-start'
|
|
3586
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3587
|
+
className: "row m-0 w-100 d-flex align-items-start"
|
|
3588
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3589
|
+
className: "col-lg-12 col-md-12 p-0 d-flex"
|
|
3590
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3591
|
+
className: ' m-0 p-0 wordbreak',
|
|
3592
|
+
style: {
|
|
3593
|
+
color: sectionproperties.varianttitle_color,
|
|
3594
|
+
fontWeight: sectionproperties.varianttitle_fontweight,
|
|
3595
|
+
textTransform: sectionproperties.varianttitle_texttransform,
|
|
3596
|
+
fontSize: sectionproperties.varianttitle_fontSize + 'px'
|
|
3597
|
+
}
|
|
3598
|
+
}, sectionproperties.showselect == 'Show' && /*#__PURE__*/React__default["default"].createElement("span", null, lang.select), " ", '', " ", langdetect == 'en' ? item.optionname : item.optionname_ar, ":", ' ', item.optionname == 'color' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3599
|
+
style: {
|
|
3600
|
+
color: '#62554a'
|
|
3601
|
+
}
|
|
3602
|
+
}, variantvalueidentifier))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3603
|
+
className: "col-lg-12 col-md-12 d-flex pb-md-3 justify-content-start align-items-start scrollhorixontalcontainer pt-1",
|
|
3604
|
+
style: {
|
|
3605
|
+
paddingTop: sectionproperties.showRemovebutton == 'Show' ? '1rem' : 0
|
|
3606
|
+
}
|
|
3607
|
+
}, item.optionvalues.map(function (optionvaluesitem, optionvaluesindex) {
|
|
3608
|
+
var isoptionvalueselected = 0;
|
|
3609
|
+
if (optionvaluesitem.isselected == 1) {
|
|
3610
|
+
isoptionvalueselected = 1;
|
|
3611
|
+
} else {
|
|
3612
|
+
isoptionvalueselected = 0;
|
|
3613
|
+
}
|
|
3614
|
+
var isoptionvaluedenabled = 0;
|
|
3615
|
+
if (optionvaluesitem.isenabled == 1) {
|
|
3616
|
+
isoptionvaluedenabled = 1;
|
|
3617
|
+
} else {
|
|
3618
|
+
isoptionvaluedenabled = 0;
|
|
3619
|
+
}
|
|
3620
|
+
if (item.optionname == 'color' || item.optionname == 'Color') {
|
|
3621
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3622
|
+
className: issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show' ? productinfostyles.color_container + ' mr-2 variabttcontainer showcrossiconcolor ' + "".concat(productinfostyles.color_container_active) : productinfostyles.color_container + ' mr-2 variabttcontainer ' + "".concat(productinfostyles.color_container_active)
|
|
3623
|
+
// `${isoptionvalueselected == 1 ? productinfostyles.color_container_active : ''}`
|
|
3624
|
+
,
|
|
3625
|
+
onClick: function onClick() {
|
|
3626
|
+
// here
|
|
3627
|
+
if (optionvaluesitem.isenabled == 1) {
|
|
3628
|
+
selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
|
|
3629
|
+
} else {
|
|
3630
|
+
clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
|
|
3631
|
+
}
|
|
3632
|
+
},
|
|
3633
|
+
style: {
|
|
3634
|
+
background: optionvaluesitem.valuename,
|
|
3635
|
+
border: isoptionvalueselected == 1 ? '2px solid ' + sectionproperties.activeproductcolor : '1px solid #ccc'
|
|
3636
|
+
|
|
3637
|
+
// borderWidth: isoptionvalueselected == 1 ? '2px' : 0,
|
|
3638
|
+
// opacity: isoptionvaluedenabled == 1 ? 1 : 0.2,
|
|
3639
|
+
// cursor: isoptionvaluedenabled == 1 ? 'pointer' : 'not-allowed',
|
|
3640
|
+
}
|
|
3641
|
+
}));
|
|
3642
|
+
} else if (item.optionname == 'size' || item.optionname == 'Size') {
|
|
3643
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3644
|
+
className: issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show' ? "".concat(productinfostyles.variant_container, " ").concat(productinfostyles.size_variant_container) + ' mr-2 variabttcontainer allcentered showcrossicon ' + "".concat(isoptionvalueselected == 1 ? productinfostyles.variant_container_active : '') : "".concat(productinfostyles.variant_container, " ").concat(productinfostyles.size_variant_container) + ' mr-2 variabttcontainer allcentered ' + "".concat(isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''),
|
|
3645
|
+
onClick: function onClick() {
|
|
3646
|
+
if (issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show') ; else {
|
|
3647
|
+
if (optionvaluesitem.isenabled == 1) {
|
|
3648
|
+
selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
|
|
3649
|
+
} else {
|
|
3650
|
+
clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
|
|
3651
|
+
}
|
|
3652
|
+
}
|
|
3653
|
+
},
|
|
3654
|
+
style: {
|
|
3655
|
+
// activeproductcolor
|
|
3656
|
+
// cursor:
|
|
3657
|
+
// issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true &&
|
|
3658
|
+
// sectionproperties.showoutofstockwithoutselection == 'Show'
|
|
3659
|
+
// ? 'not-allowed'
|
|
3660
|
+
// : isoptionvaluedenabled == 1
|
|
3661
|
+
// ? 'pointer'
|
|
3662
|
+
// : 'not-allowed',
|
|
3663
|
+
cursor: issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show' ? 'not-allowed' : 'pointer',
|
|
3664
|
+
backgroundColor: sectionproperties.variantcontainerbordercolor != undefined && sectionproperties.variantcontainerbordercolor != null ? sectionproperties.variantcontainer_bgcolor : isoptionvalueselected == 1 ? 'green' : isoptionvaluedenabled == 1 ? sectionproperties.variantcontainer_bgcolor : 'grey',
|
|
3665
|
+
minWidth: sectionproperties.variantcontainer_minwidth + 'px',
|
|
3666
|
+
height: sectionproperties.variantcontainer_height + 'px',
|
|
3667
|
+
borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
|
|
3668
|
+
position: 'relative',
|
|
3669
|
+
border: isoptionvalueselected == 1 ? '2px solid ' + sectionproperties.activeproductcolor : isoptionvaluedenabled == 1 ? '1px solid ' + sectionproperties.variantcontainerbordercolor : '1px solid ' + ' grey '
|
|
3670
|
+
}
|
|
3671
|
+
}, isoptionvalueselected == 1 && sectionproperties.showRemovebutton == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3672
|
+
"class": "m-0 p-0 bg-danger bgdanger-hover",
|
|
3673
|
+
style: {
|
|
3674
|
+
position: 'absolute',
|
|
3675
|
+
top: '-15px',
|
|
3676
|
+
right: '-5px',
|
|
3677
|
+
width: '3vh',
|
|
3678
|
+
height: '3vh',
|
|
3679
|
+
borderRadius: 100
|
|
3680
|
+
}
|
|
3681
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3682
|
+
"class": "h-100 allcentered"
|
|
3683
|
+
}, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, null))), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3684
|
+
className: 'wordbreak m-0 p-0 d-flex align-items-center justify-content-center',
|
|
3685
|
+
style: {
|
|
3686
|
+
color: sectionproperties.variantcontainerbordercolor != undefined && sectionproperties.variantcontainerbordercolor != null && isoptionvalueselected == 1 ? sectionproperties.activeproductcolor : sectionproperties.variantcontainer_color,
|
|
3687
|
+
fontSize: sectionproperties.variantcontainer_fontSize + 'px',
|
|
3688
|
+
fontWeight: 500
|
|
3689
|
+
}
|
|
3690
|
+
}, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar));
|
|
3691
|
+
} else {
|
|
3692
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3693
|
+
className: productinfostyles.variant_container + ' mr-2 variabttcontainer allcentered pl-2 pr-2 ' + "".concat(isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''),
|
|
3694
|
+
onClick: function onClick() {
|
|
3695
|
+
if (optionvaluesitem.isenabled == 1) {
|
|
3696
|
+
selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
|
|
3697
|
+
} else {
|
|
3698
|
+
clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
|
|
3699
|
+
}
|
|
3700
|
+
},
|
|
3701
|
+
style: {
|
|
3702
|
+
backgroundColor: sectionproperties.variantcontainerbordercolor != undefined && sectionproperties.variantcontainerbordercolor != null ? sectionproperties.variantcontainer_bgcolor : isoptionvalueselected == 1 ? 'green' : isoptionvaluedenabled == 1 ? sectionproperties.variantcontainer_bgcolor : 'grey',
|
|
3703
|
+
width: 'auto',
|
|
3704
|
+
height: sectionproperties.variantcontainer_height + 'px',
|
|
3705
|
+
borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
|
|
3706
|
+
position: 'relative',
|
|
3707
|
+
// border:
|
|
3708
|
+
// isoptionvalueselected == 1
|
|
3709
|
+
// ? '2px solid green'
|
|
3710
|
+
// : isoptionvaluedenabled == 1
|
|
3711
|
+
// ? '1px solid ' + sectionproperties.variantcontainerbordercolor
|
|
3712
|
+
// : '1px solid ' + ' grey ',
|
|
3713
|
+
border: isoptionvalueselected == 1 ? '2px solid ' + sectionproperties.activeproductcolor : '1px solid #ccc'
|
|
3714
|
+
}
|
|
3715
|
+
}, isoptionvalueselected == 1 && sectionproperties.showRemovebutton == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3716
|
+
"class": "m-0 p-0 bg-danger bgdanger-hover",
|
|
3717
|
+
style: {
|
|
3718
|
+
position: 'absolute',
|
|
3719
|
+
top: '-15px',
|
|
3720
|
+
right: '-5px',
|
|
3721
|
+
width: '3vh',
|
|
3722
|
+
height: '3vh',
|
|
3723
|
+
borderRadius: 100
|
|
3724
|
+
}
|
|
3725
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3726
|
+
"class": "h-100 allcentered"
|
|
3727
|
+
}, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, null))), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3728
|
+
className: 'm-0 p-0 allcentered',
|
|
3729
|
+
style: {
|
|
3730
|
+
fontWeight: 500,
|
|
3731
|
+
// color: sectionproperties.variantcontainer_color,
|
|
3732
|
+
fontSize: sectionproperties.variantcontainer_fontSize + 'px',
|
|
3733
|
+
color: sectionproperties.variantcontainerbordercolor != undefined && sectionproperties.variantcontainerbordercolor != null && isoptionvalueselected == 1 ? sectionproperties.activeproductcolor : sectionproperties.variantcontainer_color
|
|
3734
|
+
}
|
|
3735
|
+
}, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar));
|
|
3736
|
+
}
|
|
3737
|
+
}))));
|
|
3738
|
+
})))), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && sectionproperties.sizeguideposition == 'Besides Variants' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3739
|
+
"class": "col-3 text-end"
|
|
3740
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3741
|
+
"class": formstyles.sizeguidebtn + ' m-0 p-0 cursor-pointer mb-auto ',
|
|
3742
|
+
onClick: function onClick() {
|
|
3743
|
+
setopensizeguidemodal(true);
|
|
3744
|
+
}
|
|
3745
|
+
}, langdetect == 'en' ? sectionproperties.sizeguidecontentenglish : sectionproperties.sizeguidecontentarabic))), langdetect == 'en' && (ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data7 = ProductInfoObj.data) === null || _ProductInfoObj$data7 === void 0 || (_ProductInfoObj$data7 = _ProductInfoObj$data7.productinfo) === null || _ProductInfoObj$data7 === void 0 || (_ProductInfoObj$data7 = _ProductInfoObj$data7.variants[variantindexcompleted]) === null || _ProductInfoObj$data7 === void 0 ? void 0 : _ProductInfoObj$data7.variantdescription_en) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3746
|
+
"class": "my-3 col-lg-12 p-0"
|
|
3747
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3748
|
+
className: 'm-0 p-0 wordbreak',
|
|
3749
|
+
style: {
|
|
3750
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
3751
|
+
color: '#000000'
|
|
3752
|
+
},
|
|
3753
|
+
dangerouslySetInnerHTML: {
|
|
3754
|
+
__html: langdetect == 'en' ? ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data8 = ProductInfoObj.data) === null || _ProductInfoObj$data8 === void 0 || (_ProductInfoObj$data8 = _ProductInfoObj$data8.productinfo) === null || _ProductInfoObj$data8 === void 0 || (_ProductInfoObj$data8 = _ProductInfoObj$data8.variants[variantindexcompleted]) === null || _ProductInfoObj$data8 === void 0 ? void 0 : _ProductInfoObj$data8.variantdescription_en : ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data9 = ProductInfoObj.data) === null || _ProductInfoObj$data9 === void 0 || (_ProductInfoObj$data9 = _ProductInfoObj$data9.productinfo) === null || _ProductInfoObj$data9 === void 0 || (_ProductInfoObj$data9 = _ProductInfoObj$data9.variants[variantindexcompleted]) === null || _ProductInfoObj$data9 === void 0 ? void 0 : _ProductInfoObj$data9.variantdescription_ar
|
|
3755
|
+
}
|
|
3756
|
+
})), langdetect == 'ar' && (ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data0 = ProductInfoObj.data) === null || _ProductInfoObj$data0 === void 0 || (_ProductInfoObj$data0 = _ProductInfoObj$data0.productinfo) === null || _ProductInfoObj$data0 === void 0 || (_ProductInfoObj$data0 = _ProductInfoObj$data0.variants[variantindexcompleted]) === null || _ProductInfoObj$data0 === void 0 ? void 0 : _ProductInfoObj$data0.variantdescription_ar) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3757
|
+
"class": "my-3 col-lg-12 p-0"
|
|
3758
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3759
|
+
className: 'm-0 p-0 wordbreak',
|
|
3760
|
+
style: {
|
|
3761
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
3762
|
+
color: '#000000'
|
|
3763
|
+
},
|
|
3764
|
+
dangerouslySetInnerHTML: {
|
|
3765
|
+
__html: langdetect == 'en' ? ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data1 = ProductInfoObj.data) === null || _ProductInfoObj$data1 === void 0 || (_ProductInfoObj$data1 = _ProductInfoObj$data1.productinfo) === null || _ProductInfoObj$data1 === void 0 || (_ProductInfoObj$data1 = _ProductInfoObj$data1.variants[variantindexcompleted]) === null || _ProductInfoObj$data1 === void 0 ? void 0 : _ProductInfoObj$data1.variantdescription_en : ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data10 = ProductInfoObj.data) === null || _ProductInfoObj$data10 === void 0 || (_ProductInfoObj$data10 = _ProductInfoObj$data10.productinfo) === null || _ProductInfoObj$data10 === void 0 || (_ProductInfoObj$data10 = _ProductInfoObj$data10.variants[variantindexcompleted]) === null || _ProductInfoObj$data10 === void 0 ? void 0 : _ProductInfoObj$data10.variantdescription_ar
|
|
3766
|
+
}
|
|
3767
|
+
})), sectionproperties.variantstyle == 'Vertical' && (ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data11 = ProductInfoObj.data) === null || _ProductInfoObj$data11 === void 0 || (_ProductInfoObj$data11 = _ProductInfoObj$data11.productinfo) === null || _ProductInfoObj$data11 === void 0 || (_ProductInfoObj$data11 = _ProductInfoObj$data11.productoptions) === null || _ProductInfoObj$data11 === void 0 ? void 0 : _ProductInfoObj$data11.map(function (item, index) {
|
|
3768
|
+
return /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
3769
|
+
"class": "thwvsf-wrapper-ul"
|
|
3770
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3771
|
+
className: "row m-0 w-100 d-flex align-items-start mb-2"
|
|
3772
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3773
|
+
className: "col-lg-12 col-md-12 p-0 d-flex"
|
|
3774
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3775
|
+
className: ' m-0 p-0 wordbreak',
|
|
3776
|
+
style: {
|
|
3777
|
+
color: sectionproperties.varianttitle_color,
|
|
3778
|
+
fontWeight: sectionproperties.varianttitle_fontweight,
|
|
3779
|
+
textTransform: sectionproperties.varianttitle_texttransform,
|
|
3780
|
+
fontSize: sectionproperties.varianttitle_fontSize + 'px'
|
|
3781
|
+
}
|
|
3782
|
+
}, sectionproperties.showselect == 'Show' && /*#__PURE__*/React__default["default"].createElement("span", null, lang.select), " ", '', " ", langdetect == 'en' ? item.optionname : item.optionname_ar, ":"))), item.optionvalues.map(function (optionvaluesitem, optionvaluesindex) {
|
|
3783
|
+
var isoptionvalueselected = 0;
|
|
3784
|
+
if (optionvaluesitem.isselected == 1) {
|
|
3785
|
+
isoptionvalueselected = 1;
|
|
3786
|
+
} else {
|
|
3787
|
+
isoptionvalueselected = 0;
|
|
3788
|
+
}
|
|
3789
|
+
var isoptionvaluedenabled = 0;
|
|
3790
|
+
if (optionvaluesitem.isenabled == 1) {
|
|
3791
|
+
isoptionvaluedenabled = 1;
|
|
3792
|
+
} else {
|
|
3793
|
+
isoptionvaluedenabled = 0;
|
|
3794
|
+
}
|
|
3795
|
+
if (item.optionname == 'color' || item.optionname == 'Color') {
|
|
3796
|
+
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
3797
|
+
style: {
|
|
3798
|
+
width: 'auto'
|
|
3799
|
+
}
|
|
3800
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3801
|
+
className: productinfostyles.color_container + ' mx-1 mb-2 variabttcontainer ' + "".concat(isoptionvalueselected == 1 ? productinfostyles.color_container_active : ''),
|
|
3802
|
+
onClick: function onClick() {
|
|
3803
|
+
if (optionvaluesitem.isenabled == 1) {
|
|
3804
|
+
selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
|
|
3805
|
+
} else {
|
|
3806
|
+
clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
|
|
3807
|
+
}
|
|
3808
|
+
},
|
|
3809
|
+
style: {
|
|
3810
|
+
background: optionvaluesitem.valuename,
|
|
3811
|
+
opacity: isoptionvaluedenabled == 1 ? 1 : 0.2
|
|
3812
|
+
// cursor: isoptionvaluedenabled == 1 ? 'pointer' : 'not-allowed',
|
|
3813
|
+
}
|
|
3814
|
+
}));
|
|
3815
|
+
} else {
|
|
3816
|
+
// else if (item.optionname == 'size' || item.optionname == 'Size') {
|
|
3817
|
+
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
3818
|
+
style: {
|
|
3819
|
+
width: 'auto'
|
|
3820
|
+
}
|
|
3821
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3822
|
+
className: "".concat(productinfo_cssstyles.variant_container) + ' mx-1 mb-2 variabttcontainer allcentered px-2 ' + "".concat(isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''),
|
|
3823
|
+
onClick: function onClick() {
|
|
3824
|
+
if (optionvaluesitem.isenabled == 1) {
|
|
3825
|
+
selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
|
|
3826
|
+
} else {
|
|
3827
|
+
clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
|
|
3828
|
+
}
|
|
3829
|
+
},
|
|
3830
|
+
style: {
|
|
3831
|
+
// cursor: isoptionvaluedenabled == 1 ? 'pointer' : 'not-allowed',
|
|
3832
|
+
backgroundColor: isoptionvalueselected == 1 ? 'green' : isoptionvaluedenabled == 1 ? sectionproperties.variantcontainer_bgcolor : 'grey',
|
|
3833
|
+
minWidth: sectionproperties.variantcontainer_minwidth + 'px',
|
|
3834
|
+
height: sectionproperties.variantcontainer_height + 'px',
|
|
3835
|
+
borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
|
|
3836
|
+
position: 'relative',
|
|
3837
|
+
border: isoptionvalueselected == 1 ? '1px solid green' : isoptionvaluedenabled == 1 ? '1px solid ' + sectionproperties.variantcontainerbordercolor : '1px solid ' + ' grey '
|
|
3838
|
+
}
|
|
3839
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3840
|
+
className: 'wordbreak m-0 p-0 d-flex align-items-center justify-content-center',
|
|
3841
|
+
style: {}
|
|
3842
|
+
}, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar)));
|
|
3843
|
+
}
|
|
3844
|
+
// else {
|
|
3845
|
+
// return (
|
|
3846
|
+
// <li
|
|
3847
|
+
// style={{
|
|
3848
|
+
// width: 'auto',
|
|
3849
|
+
// }}
|
|
3850
|
+
// >
|
|
3851
|
+
// <div
|
|
3852
|
+
// className={
|
|
3853
|
+
// productinfostyles.variant_container +
|
|
3854
|
+
// ' mx-2 mb-2 variabttcontainer allcentered pl-2 pr-2 ' +
|
|
3855
|
+
// `${isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''}`
|
|
3856
|
+
// }
|
|
3857
|
+
// onClick={() => {
|
|
3858
|
+
// if (optionvaluesitem.isenabled == 1) {
|
|
3859
|
+
// selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
|
|
3860
|
+
// } else {
|
|
3861
|
+
// clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
|
|
3862
|
+
// }
|
|
3863
|
+
// }}
|
|
3864
|
+
// style={{
|
|
3865
|
+
// backgroundColor: isoptionvalueselected == 1 ? 'green' : isoptionvaluedenabled == 1 ? sectionproperties.variantcontainer_bgcolor : 'grey',
|
|
3866
|
+
// width: 'auto',
|
|
3867
|
+
// height: sectionproperties.variantcontainer_height + 'px',
|
|
3868
|
+
// borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
|
|
3869
|
+
// position: 'relative',
|
|
3870
|
+
// }}
|
|
3871
|
+
// >
|
|
3872
|
+
// {isoptionvalueselected == 1 && sectionproperties.showRemovebutton == 'Show' && (
|
|
3873
|
+
// <p
|
|
3874
|
+
// class="m-0 p-0 bg-danger bgdanger-hover"
|
|
3875
|
+
// style={{
|
|
3876
|
+
// position: 'absolute',
|
|
3877
|
+
// top: '-15px',
|
|
3878
|
+
// right: '-5px',
|
|
3879
|
+
// width: '3vh',
|
|
3880
|
+
// height: '3vh',
|
|
3881
|
+
// borderRadius: 100,
|
|
3882
|
+
// }}
|
|
3883
|
+
// >
|
|
3884
|
+
// <i class="h-100 allcentered">
|
|
3885
|
+
// <IoMdClose />
|
|
3886
|
+
// </i>
|
|
3887
|
+
// </p>
|
|
3888
|
+
// )}
|
|
3889
|
+
// <p
|
|
3890
|
+
// className={'m-0 p-0 allcentered'}
|
|
3891
|
+
// style={{
|
|
3892
|
+
// color: sectionproperties.variantcontainer_color,
|
|
3893
|
+
// fontSize: sectionproperties.variantcontainer_fontSize + 'px',
|
|
3894
|
+
// }}
|
|
3895
|
+
// >
|
|
3896
|
+
// {langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar}
|
|
3897
|
+
// </p>
|
|
3898
|
+
// </div>
|
|
3899
|
+
// </li>
|
|
3900
|
+
// );
|
|
3901
|
+
// }
|
|
3902
|
+
}));
|
|
3903
|
+
})), sectionproperties.variantstyle == 'Select Box' && (ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data12 = ProductInfoObj.data) === null || _ProductInfoObj$data12 === void 0 || (_ProductInfoObj$data12 = _ProductInfoObj$data12.productinfo) === null || _ProductInfoObj$data12 === void 0 || (_ProductInfoObj$data12 = _ProductInfoObj$data12.productoptions) === null || _ProductInfoObj$data12 === void 0 ? void 0 : _ProductInfoObj$data12.map(function (item, index) {
|
|
3904
|
+
var orgselectoptions = [];
|
|
3905
|
+
var selecteditemid = null;
|
|
3906
|
+
var placeholdervalue = '';
|
|
3907
|
+
placeholdervalue = 'Choose' + ' ' + (langdetect == 'en' ? item.optionname : item.optionname_ar);
|
|
3908
|
+
if (item.optionvalues != undefined && Array.isArray(item.optionvalues)) {
|
|
3909
|
+
orgselectoptions = item.optionvalues;
|
|
3910
|
+
// optionvaluesitem.isselected
|
|
3911
|
+
}
|
|
3912
|
+
orgselectoptions.forEach(function (getselcitem, getselindex) {
|
|
3913
|
+
// if (getselcitem.isselected == 1 && issingleoptionoutofstock(getselcitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show') {
|
|
3914
|
+
// selecteditemid = getselcitem.valueid + langdetect == 'en' ? '(Unavailable)' : 'غير متاح';
|
|
3915
|
+
// } else if (getselcitem.isselected == 1 && sectionproperties.showoutofstockwithoutselection == 'Hide') {
|
|
3916
|
+
// selecteditemid = getselcitem.valueid;
|
|
3917
|
+
// } else {
|
|
3918
|
+
// selecteditemid = getselcitem.valueid;
|
|
3919
|
+
// }
|
|
3920
|
+
if (getselcitem.isselected == 1) {
|
|
3921
|
+
selecteditemid = getselcitem.valueid;
|
|
3922
|
+
}
|
|
3923
|
+
});
|
|
3924
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3925
|
+
"class": sectionproperties.numberofcolsperrow == '2' ? 'col-lg-2 col-md-3 col-sm-12 mb-3 p-sm-0' : sectionproperties.numberofcolsperrow == '3' ? ' col-lg-3 col-md-3 col-sm-12 mb-3 p-sm-0' : sectionproperties.numberofcolsperrow == '4' ? 'col-lg-4 col-md-4 col-sm-12 mb-3 p-sm-0' : sectionproperties.numberofcolsperrow == '6' ? 'col-lg-6 col-md-6 col-sm-12 mb-3 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0'
|
|
3926
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
3927
|
+
className: ' d-flex align-items-start mb-2 ',
|
|
3928
|
+
style: {
|
|
3929
|
+
color: sectionproperties.varianttitle_color,
|
|
3930
|
+
fontWeight: sectionproperties.varianttitle_fontweight,
|
|
3931
|
+
textTransform: sectionproperties.varianttitle_texttransform,
|
|
3932
|
+
fontSize: sectionproperties.varianttitle_fontSize + 'px'
|
|
3933
|
+
}
|
|
3934
|
+
}, langdetect == 'en' ? item.optionname : item.optionname_ar), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3935
|
+
style: {
|
|
3936
|
+
width: '100%'
|
|
3937
|
+
},
|
|
3938
|
+
className: "".concat(loginstyles.form_control, " ").concat(formstyles.form_control) + ' variantselectbox '
|
|
3939
|
+
}, /*#__PURE__*/React__default["default"].createElement(Select$3, {
|
|
3940
|
+
options: orgselectoptions,
|
|
3941
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
3942
|
+
var crname = '';
|
|
3943
|
+
if (langdetect == 'en') {
|
|
3944
|
+
crname = option.valuename;
|
|
3945
|
+
} else if (langdetect == 'ar') {
|
|
3946
|
+
crname = option.valuename_ar;
|
|
3947
|
+
}
|
|
3948
|
+
return crname;
|
|
3949
|
+
},
|
|
3950
|
+
getOptionValue: function getOptionValue(option) {
|
|
3951
|
+
return option.valueid;
|
|
3952
|
+
},
|
|
3953
|
+
value: orgselectoptions.filter(function (option) {
|
|
3954
|
+
return option.valueid == selecteditemid;
|
|
3955
|
+
}),
|
|
3956
|
+
onChange: function onChange(optionvaluesitem) {
|
|
3957
|
+
var _orgselectoptions;
|
|
3958
|
+
var optionvaluesindex = null;
|
|
3959
|
+
(_orgselectoptions = orgselectoptions) === null || _orgselectoptions === void 0 || _orgselectoptions.forEach(function (tempitm, tempind) {
|
|
3960
|
+
if (tempitm.valueid == optionvaluesitem.valueid) {
|
|
3961
|
+
optionvaluesindex = tempind;
|
|
3962
|
+
}
|
|
3963
|
+
});
|
|
3964
|
+
if (optionvaluesindex != null) {
|
|
3965
|
+
if (optionvaluesitem.isenabled == 1) {
|
|
3966
|
+
selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
|
|
3967
|
+
} else {
|
|
3968
|
+
clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
|
|
3969
|
+
}
|
|
3970
|
+
}
|
|
3971
|
+
},
|
|
3972
|
+
styles: defaultstylesnone,
|
|
3973
|
+
placeholder: placeholdervalue,
|
|
3974
|
+
isSearchable: true
|
|
3975
|
+
})));
|
|
3976
|
+
}))), sizeguideimage.length != 0 && /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal, {
|
|
3977
|
+
show: opensizeguidemodal,
|
|
3978
|
+
onHide: function onHide() {
|
|
3979
|
+
setopensizeguidemodal(false);
|
|
3980
|
+
},
|
|
3981
|
+
centered: true,
|
|
3982
|
+
size: 'lg'
|
|
3983
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3984
|
+
className: "allcentered cursor-pointer",
|
|
3985
|
+
onClick: function onClick() {
|
|
3986
|
+
setopensizeguidemodal(false);
|
|
3987
|
+
},
|
|
3988
|
+
style: {
|
|
3989
|
+
position: 'absolute',
|
|
3990
|
+
top: 10,
|
|
3991
|
+
width: 35,
|
|
3992
|
+
height: 35,
|
|
3993
|
+
right: 10
|
|
3994
|
+
}
|
|
3995
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3996
|
+
"class": ' h-100 allcentered text-black '
|
|
3997
|
+
}, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, {
|
|
3998
|
+
size: 25,
|
|
3999
|
+
"class": formstyles.closemodalbtn
|
|
4000
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4001
|
+
"class": ' w-100 h-100 px-4 py-5 ',
|
|
4002
|
+
style: {}
|
|
4003
|
+
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
4004
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
4005
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
4006
|
+
path: (_sizeguideimage$ = sizeguideimage[0]) === null || _sizeguideimage$ === void 0 ? void 0 : _sizeguideimage$.original,
|
|
4007
|
+
style: {
|
|
4008
|
+
width: '100%',
|
|
4009
|
+
height: '100%',
|
|
4010
|
+
objectFit: 'contain'
|
|
4011
|
+
},
|
|
4012
|
+
loading: "lazy"
|
|
4013
|
+
}))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
|
|
4014
|
+
};
|
|
4015
|
+
|
|
4016
|
+
function ownKeys$2C(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; }
|
|
4017
|
+
function _objectSpread$2C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2C(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4018
|
+
var ProductQuantityConditions_W_Variants = function ProductQuantityConditions_W_Variants(props) {
|
|
4019
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer0, _fetchProductInfoQuer1;
|
|
4020
|
+
props.actions.lang;
|
|
4021
|
+
var langdetect = props.actions.langdetect;
|
|
4022
|
+
var authdetailsContext = props.actions.authdetailsContext;
|
|
4023
|
+
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
4024
|
+
props.actions.GeneralAPIMutationContext;
|
|
4025
|
+
var NotificationManager = props.actions.NotificationManager;
|
|
4026
|
+
props.actions.sectionproperties;
|
|
4027
|
+
props.actions.setaddtocardpayloadobj;
|
|
4028
|
+
props.actions;
|
|
4029
|
+
fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.productid;
|
|
4030
|
+
// const templatepropcontext = props.actions.templatepropcontext;
|
|
4031
|
+
var AddtoCartContext = props.actions.AddtoCartContext;
|
|
4032
|
+
var productinfo_cssstyles = props.actions.productinfo_cssstyles;
|
|
4033
|
+
var _useState = React.useState([]),
|
|
4034
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2);
|
|
4035
|
+
_useState2[0];
|
|
4036
|
+
_useState2[1];
|
|
4037
|
+
var _useState3 = React.useState(false),
|
|
4038
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2);
|
|
4039
|
+
_useState4[0];
|
|
4040
|
+
_useState4[1];
|
|
4041
|
+
var _useState5 = React.useState(false),
|
|
4042
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2);
|
|
4043
|
+
_useState6[0];
|
|
4044
|
+
_useState6[1];
|
|
4045
|
+
var _useState7 = React.useState('all'),
|
|
4046
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2);
|
|
4047
|
+
_useState8[0];
|
|
4048
|
+
_useState8[1];
|
|
4049
|
+
var _useState9 = React.useState([]),
|
|
4050
|
+
_useState0 = _slicedToArray__default["default"](_useState9, 2);
|
|
4051
|
+
_useState0[0];
|
|
4052
|
+
_useState0[1];
|
|
4053
|
+
var _useState1 = React.useState([]),
|
|
4054
|
+
_useState10 = _slicedToArray__default["default"](_useState1, 2);
|
|
4055
|
+
_useState10[0];
|
|
4056
|
+
_useState10[1];
|
|
4057
|
+
var _useState11 = React.useState([]),
|
|
4058
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
4059
|
+
quantityconditions = _useState12[0],
|
|
4060
|
+
setquantityconditions = _useState12[1];
|
|
4061
|
+
var choosen_variant_ids_Ref = React.useRef([]);
|
|
4062
|
+
var _useState13 = React.useState(null),
|
|
4063
|
+
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
4064
|
+
expandedItem = _useState14[0],
|
|
4065
|
+
setExpandedItem = _useState14[1];
|
|
4066
|
+
var handleChange = function handleChange(uuid) {
|
|
4067
|
+
setExpandedItem(function (prev) {
|
|
4068
|
+
return prev === uuid ? null : uuid;
|
|
4069
|
+
}); // toggle
|
|
4070
|
+
};
|
|
4071
|
+
var handleVariantId = function handleVariantId(index, variantid) {
|
|
4072
|
+
var temp = _toConsumableArray__default["default"](choosen_variant_ids_Ref.current);
|
|
4073
|
+
if (variantid && variantid.trim() !== '') {
|
|
4074
|
+
temp[index] = variantid;
|
|
4075
|
+
} else {
|
|
4076
|
+
temp[index] = null;
|
|
4077
|
+
}
|
|
4078
|
+
choosen_variant_ids_Ref.current = temp;
|
|
4079
|
+
console.log('Current IDs:', choosen_variant_ids_Ref.current);
|
|
4080
|
+
};
|
|
4081
|
+
React.useEffect(function () {
|
|
4082
|
+
if (fetchProductInfoQueryContext.isSuccess) {
|
|
4083
|
+
var _fetchProductInfoQuer2;
|
|
4084
|
+
setquantityconditions((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.productquantityoptions) || []);
|
|
4085
|
+
}
|
|
4086
|
+
}, [fetchProductInfoQueryContext.isSuccess]);
|
|
4087
|
+
var addtocartfunc = function addtocartfunc(forcetocheckout, variantid, quantity) {
|
|
4088
|
+
var _fetchProductInfoQuer3;
|
|
4089
|
+
var addtocardpayloadobj = {
|
|
4090
|
+
functype: 'add',
|
|
4091
|
+
item_type: 'product',
|
|
4092
|
+
productid: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.productid,
|
|
4093
|
+
variantid: variantid,
|
|
4094
|
+
quantity: quantity,
|
|
4095
|
+
date: '',
|
|
4096
|
+
time: '',
|
|
4097
|
+
from: '',
|
|
4098
|
+
to: '',
|
|
4099
|
+
extrafields: []
|
|
4100
|
+
};
|
|
4101
|
+
var runfunc = false;
|
|
4102
|
+
var forcetocheckoutvalue = forcetocheckout;
|
|
4103
|
+
// alert(addtocardpayloadobj.quantity + 'sad');
|
|
4104
|
+
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
4105
|
+
var _fetchProductInfoQuer4;
|
|
4106
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.hasvariants) == 1) {
|
|
4107
|
+
if (variantid.length != 0) {
|
|
4108
|
+
runfunc = true;
|
|
4109
|
+
} else {
|
|
4110
|
+
var _authdetailsContext$i;
|
|
4111
|
+
// here
|
|
4112
|
+
setvariantnotchosendisclaimer('This field is required');
|
|
4113
|
+
NotificationManager.warning('', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.contactinfo.instid) == '674f0617c7811' ? 'Please Choose Size & Color' : 'Please Choose Product Options');
|
|
4114
|
+
}
|
|
4115
|
+
} else {
|
|
4116
|
+
runfunc = true;
|
|
4117
|
+
}
|
|
4118
|
+
} else {
|
|
4119
|
+
NotificationManager.warning('', 'Please Choose Quantity');
|
|
4120
|
+
}
|
|
4121
|
+
if (runfunc == true) {
|
|
4122
|
+
var _fetchProductInfoQuer5, _fetchProductInfoQuer6;
|
|
4123
|
+
var tempaddtocardpayloadobj = _objectSpread$2C({}, addtocardpayloadobj);
|
|
4124
|
+
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.isproductforcedtocheckout;
|
|
4125
|
+
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.vendorproviderid;
|
|
4126
|
+
if (forcetocheckoutvalue != undefined) {
|
|
4127
|
+
tempaddtocardpayloadobj.forcetocheckoutvalue = forcetocheckoutvalue;
|
|
4128
|
+
}
|
|
4129
|
+
|
|
4130
|
+
// var finalprice = 0;
|
|
4131
|
+
// if (fetchProductInfoQueryContext?.data?.data?.productinfo?.hassale == 1) {
|
|
4132
|
+
// finalprice = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
|
|
4133
|
+
// } else {
|
|
4134
|
+
// finalprice = getprice_discountpriceprops('defaultprice', 0, variantindexcompleted);
|
|
4135
|
+
// }
|
|
4136
|
+
// Pixel_EventsContext('AddToCart', {
|
|
4137
|
+
// content_ids: [fetchProductInfoQueryContext?.data?.data?.productinfo?.productid],
|
|
4138
|
+
// content_name: fetchProductInfoQueryContext?.data?.data?.productinfo?.name_en + ' - ' + fetchProductInfoQueryContext?.data?.data?.productinfo?.name_ar,
|
|
4139
|
+
// content_sku: fetchProductInfoQueryContext?.data?.data?.productinfo?.sku,
|
|
4140
|
+
// content_type: 'product',
|
|
4141
|
+
// currency: fetchProductInfoQueryContext?.data?.data?.currencyname_en,
|
|
4142
|
+
// value: finalprice,
|
|
4143
|
+
// quantity: addtocardpayloadobj.quantity,
|
|
4144
|
+
// });
|
|
4145
|
+
AddtoCartContext(tempaddtocardpayloadobj);
|
|
4146
|
+
}
|
|
4147
|
+
};
|
|
4148
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4149
|
+
className: 'row w-100 ml-0 mr-0'
|
|
4150
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4151
|
+
"class": "col-lg-12 p-0"
|
|
4152
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4153
|
+
className: 'row w-100 ml-0 mr-0'
|
|
4154
|
+
}, quantityconditions === null || quantityconditions === void 0 ? void 0 : quantityconditions.map(function (item, index) {
|
|
4155
|
+
var _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9;
|
|
4156
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4157
|
+
"class": "col-lg-12 p-3 mb-3",
|
|
4158
|
+
style: {
|
|
4159
|
+
border: '3px solid #5f848e',
|
|
4160
|
+
borderRadius: 20
|
|
4161
|
+
}
|
|
4162
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
4163
|
+
allowMultipleExpanded: false,
|
|
4164
|
+
allowZeroExpanded: true,
|
|
4165
|
+
preExpanded: expandedItem ? [expandedItem] : []
|
|
4166
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, {
|
|
4167
|
+
uuid: 0
|
|
4168
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, {
|
|
4169
|
+
onClick: function onClick() {
|
|
4170
|
+
return handleChange(index);
|
|
4171
|
+
}
|
|
4172
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4173
|
+
// class="mb-3"
|
|
4174
|
+
style: {
|
|
4175
|
+
color: '#000',
|
|
4176
|
+
fontSize: 25,
|
|
4177
|
+
fontWeight: 700,
|
|
4178
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
4179
|
+
}
|
|
4180
|
+
}, "\u0627\u0634\u062A\u0631\u064A ", item.toq, " \u0642\u0637\u0639\u0629 \u0628\u0633\u0639\u0631", ' ', /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4181
|
+
style: {
|
|
4182
|
+
color: '#5f848e'
|
|
4183
|
+
}
|
|
4184
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.defaultsaleprice, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), ' ', "\u0628\u062F\u0644\u0627 \u0645\u0646", ' ', /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4185
|
+
style: {
|
|
4186
|
+
color: '#5f848e'
|
|
4187
|
+
}
|
|
4188
|
+
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.defaultsaleprice) - (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.defaultsaleprice) * item.value / 100, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
4189
|
+
className: "p-0"
|
|
4190
|
+
}, _toConsumableArray__default["default"](Array(item.toq)).map(function (_, index) {
|
|
4191
|
+
return /*#__PURE__*/React__default["default"].createElement(Variantoptions_f_quantity_cond, {
|
|
4192
|
+
key: index,
|
|
4193
|
+
actions: props.actions,
|
|
4194
|
+
variant_id_return: function variant_id_return(id) {
|
|
4195
|
+
return handleVariantId(index, id);
|
|
4196
|
+
}
|
|
4197
|
+
});
|
|
4198
|
+
})))))
|
|
4199
|
+
// <div
|
|
4200
|
+
// class="col-lg-12 p-3 mb-3"
|
|
4201
|
+
// style={{
|
|
4202
|
+
// border: '3px solid #5f848e',
|
|
4203
|
+
// borderRadius: 20,
|
|
4204
|
+
// }}
|
|
4205
|
+
// >
|
|
4206
|
+
// <p
|
|
4207
|
+
// class="mb-3"
|
|
4208
|
+
// style={{
|
|
4209
|
+
// color: '#000',
|
|
4210
|
+
// fontSize: 25,
|
|
4211
|
+
// fontWeight: 700,
|
|
4212
|
+
// }}
|
|
4213
|
+
// >
|
|
4214
|
+
// اشتري 1 {item.toq} بسعر كذا بدلا من كذا
|
|
4215
|
+
// {/* اشتري طقم بسعر1600جنيه بدل من 1900جنية */}
|
|
4216
|
+
// {/* buy {item.toq} get {item.value}% free */}
|
|
4217
|
+
// </p>
|
|
4218
|
+
// {[...Array(item.toq)].map((_, index) => (
|
|
4219
|
+
// <Variantoptions_f_quantity_cond key={index} actions={props.actions} variant_id_return={(id) => handleVariantId(index, id)} />
|
|
4220
|
+
// ))}
|
|
4221
|
+
// </div>
|
|
4222
|
+
;
|
|
4223
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4224
|
+
"class": "col-12 allcentered cursor-pointer mt-3",
|
|
4225
|
+
onClick: function onClick() {
|
|
4226
|
+
var variantIds = choosen_variant_ids_Ref.current || [];
|
|
4227
|
+
var counts = {};
|
|
4228
|
+
|
|
4229
|
+
// Count occurrences of each ID
|
|
4230
|
+
variantIds.forEach(function (id) {
|
|
4231
|
+
if (id != null && id !== '') {
|
|
4232
|
+
counts[id] = (counts[id] || 0) + 1;
|
|
4233
|
+
}
|
|
4234
|
+
});
|
|
4235
|
+
|
|
4236
|
+
// Call addtocartfunc with quantity for each unique ID
|
|
4237
|
+
Object.entries(counts).forEach(function (_ref) {
|
|
4238
|
+
var _ref2 = _slicedToArray__default["default"](_ref, 2),
|
|
4239
|
+
id = _ref2[0],
|
|
4240
|
+
quantity = _ref2[1];
|
|
4241
|
+
addtocartfunc(false, id, quantity);
|
|
4242
|
+
});
|
|
4243
|
+
}
|
|
4244
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4245
|
+
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' w-100 m-0 p-0 d-flex align-items-center justify-content-center mb-sm-2 '
|
|
4246
|
+
}, langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer0 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer0 === void 0 || (_fetchProductInfoQuer0 = _fetchProductInfoQuer0.data) === null || _fetchProductInfoQuer0 === void 0 || (_fetchProductInfoQuer0 = _fetchProductInfoQuer0.productinfo) === null || _fetchProductInfoQuer0 === void 0 ? void 0 : _fetchProductInfoQuer0.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer1 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer1 === void 0 || (_fetchProductInfoQuer1 = _fetchProductInfoQuer1.data) === null || _fetchProductInfoQuer1 === void 0 || (_fetchProductInfoQuer1 = _fetchProductInfoQuer1.productinfo) === null || _fetchProductInfoQuer1 === void 0 ? void 0 : _fetchProductInfoQuer1.productactionbuttontext_ar)))));
|
|
4247
|
+
};
|
|
4248
|
+
|
|
3189
4249
|
function ownKeys$2B(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; }
|
|
3190
4250
|
function _objectSpread$2B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2B(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3191
4251
|
var Product_itemtype = function Product_itemtype(props) {
|
|
3192
|
-
var _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer32, _authdetailsContext$i7, _authdetailsContext$i8, _authdetailsContext$i9, _authdetailsContext$i0, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42, _fetchProductInfoQuer43, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _fetchProductInfoQuer52, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _fetchProductInfoQuer55, _fetchProductInfoQuer56, _fetchProductInfoQuer57, _fetchProductInfoQuer58, _fetchProductInfoQuer59, _fetchProductInfoQuer60, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer61, _fetchProductInfoQuer62, _fetchProductInfoQuer63, _authdetailsContext$
|
|
4252
|
+
var _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer32, _authdetailsContext$i7, _authdetailsContext$i8, _authdetailsContext$i9, _authdetailsContext$i0, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _authdetailsContext$i1, _fetchProductInfoQuer42, _fetchProductInfoQuer43, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _fetchProductInfoQuer52, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _fetchProductInfoQuer55, _fetchProductInfoQuer56, _fetchProductInfoQuer57, _fetchProductInfoQuer58, _fetchProductInfoQuer59, _fetchProductInfoQuer60, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer61, _fetchProductInfoQuer62, _fetchProductInfoQuer63, _authdetailsContext$i10, _fetchProductInfoQuer64, _fetchProductInfoQuer65, _fetchProductInfoQuer66, _fetchProductInfoQuer67, _fetchProductInfoQuer68, _fetchProductInfoQuer69, _fetchProductInfoQuer70, _fetchProductInfoQuer71, _fetchProductInfoQuer72, _fetchProductInfoQuer73, _fetchProductInfoQuer74, _fetchProductInfoQuer75, _fetchProductInfoQuer76, _fetchProductInfoQuer77, _fetchProductInfoQuer79, _fetchProductInfoQuer80, _fetchProductInfoQuer81, _fetchProductInfoQuer82, _fetchProductInfoQuer83, _fetchProductInfoQuer84, _fetchProductInfoQuer85, _fetchProductInfoQuer86, _fetchProductInfoQuer87, _fetchProductInfoQuer88, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _fetchProductInfoQuer91, _fetchProductInfoQuer93, _fetchProductInfoQuer94, _fetchProductInfoQuer95, _fetchProductInfoQuer97, _fetchProductInfoQuer98, _fetchProductInfoQuer99, _fetchProductInfoQuer100, _fetchProductInfoQuer101, _fetchProductInfoQuer102, _fetchProductInfoQuer103, _fetchProductInfoQuer104, _fetchProductInfoQuer105, _returnpolicyobj9, _returnpolicyobj0, _returnpolicyobj1, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12, _returnpolicyobj13, _returnpolicyobj14, _fetchProductInfoQuer106, _fetchProductInfoQuer107, _fetchProductInfoQuer108, _fetchProductInfoQuer109, _fetchProductInfoQuer110, _fetchProductInfoQuer111, _authdetailsContext$i11, _authdetailsContext$i12, _fetchProductInfoQuer112, _fetchProductInfoQuer113, _fetchProductInfoQuer114, _fetchProductInfoQuer115, _fetchProductInfoQuer116, _fetchProductInfoQuer117, _fetchProductInfoQuer118, _fetchProductInfoQuer119, _authdetailsContext$i13, _fetchProductInfoQuer120, _fetchProductInfoQuer121, _fetchProductInfoQuer122, _fetchProductInfoQuer123, _fetchProductInfoQuer124, _fetchProductInfoQuer127, _fetchProductInfoQuer128, _authdetailsContext$i14, _fetchProductInfoQuer129, _fetchProductInfoQuer130, _fetchProductInfoQuer131, _fetchProductInfoQuer132, _fetchProductInfoQuer133, _fetchProductInfoQuer134, _fetchProductInfoQuer135, _fetchProductInfoQuer138, _fetchProductInfoQuer139, _sizeguideimage$, _authdetailsContext$i15, _fetchProductInfoQuer141, _fetchProductInfoQuer142;
|
|
3193
4253
|
var lang = props.actions.lang;
|
|
3194
4254
|
var actions = props.actions;
|
|
3195
4255
|
var langdetect = props.actions.langdetect;
|
|
@@ -3226,6 +4286,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3226
4286
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
3227
4287
|
opensizeguidemodal = _useState2[0],
|
|
3228
4288
|
setopensizeguidemodal = _useState2[1];
|
|
4289
|
+
props.actions.AddtoCartContext;
|
|
3229
4290
|
var whatsappUrl = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.whatsappnumber, "?text=").concat(sectionproperties.directwabtnmessageen + ' ' + 'https://' + authdetailsContext.instinfo.instcred.instexternaldomain + '/productinform/' + fetchProductInfoQueryContext.data.data.productinfo.productid);
|
|
3230
4291
|
var whatsappUrl_ar = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.whatsappnumber, "?text=").concat(sectionproperties.directwabtnmessagear + ' ' + 'https://' + authdetailsContext.instinfo.instcred.instexternaldomain + '/productinform/' + fetchProductInfoQueryContext.data.data.productinfo.productid);
|
|
3231
4292
|
var _useState3 = React.useState(currentshowingimageindex_pro),
|
|
@@ -4180,9 +5241,12 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4180
5241
|
}, /*#__PURE__*/React__default["default"].createElement(DescriptionContent, {
|
|
4181
5242
|
actions: props.actions,
|
|
4182
5243
|
srcfromprops: 'undername'
|
|
4183
|
-
})))), /*#__PURE__*/React__default["default"].createElement(
|
|
5244
|
+
})))), /*#__PURE__*/React__default["default"].createElement(ProductQuantityConditions_W_Variants, {
|
|
5245
|
+
actions: props.actions
|
|
5246
|
+
}), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.contactinfo.instid) != '685d6e2b7e2e8' && /*#__PURE__*/React__default["default"].createElement(Variantoptions, {
|
|
4184
5247
|
actions: props.actions
|
|
4185
5248
|
}), /*#__PURE__*/React__default["default"].createElement(ProductExtras, {
|
|
5249
|
+
addtocartfunc: addtocartfunc,
|
|
4186
5250
|
actions: props.actions
|
|
4187
5251
|
}), sectionproperties.showextrafield == 'Show' && /*#__PURE__*/React__default["default"].createElement(ProductExtraFields, {
|
|
4188
5252
|
actions: props.actions
|
|
@@ -4788,7 +5852,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4788
5852
|
"class": "my-3"
|
|
4789
5853
|
})), sectionproperties.showShareButton == 'Show' && sectionproperties.sharebtnstyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4790
5854
|
"class": "col-lg-12 p-0 allcentered mt-2"
|
|
4791
|
-
}, ShareButtonsContainer())))))), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
5855
|
+
}, ShareButtonsContainer())))))), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.contactinfo.instid) == '684fdf3f9e856' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4792
5856
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-2 pr-md-2 px-1025-1 ',
|
|
4793
5857
|
style: {
|
|
4794
5858
|
minHeight: sectionproperties.height + 'vh'
|
|
@@ -5892,7 +6956,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5892
6956
|
"class": "my-3"
|
|
5893
6957
|
})), sectionproperties.showShareButton == 'Show' && sectionproperties.sharebtnstyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5894
6958
|
"class": "col-lg-12 p-0 allcentered mt-2"
|
|
5895
|
-
}, ShareButtonsContainer())))))), Object.keys(sectionproperties).length != 0 && sectionproperties.productInformationType == 'Portfolio' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
6959
|
+
}, ShareButtonsContainer())))))), Object.keys(sectionproperties).length != 0 && sectionproperties.productInformationType == 'Portfolio' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.contactinfo.instid) != '678d1831ef638' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.contactinfo.instid) != '680a0b8a31930' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5896
6960
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 ',
|
|
5897
6961
|
style: {
|
|
5898
6962
|
minHeight: sectionproperties.height + 'vh',
|
|
@@ -6019,7 +7083,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6019
7083
|
dangerouslySetInnerHTML: {
|
|
6020
7084
|
__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
|
|
6021
7085
|
}
|
|
6022
|
-
}))))), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7086
|
+
}))))), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.contactinfo.instid) == '680a0b8a31930' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6023
7087
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-2 pr-md-2 px-0 ',
|
|
6024
7088
|
style: {
|
|
6025
7089
|
minHeight: '100vh'
|
|
@@ -6286,7 +7350,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6286
7350
|
width: "20px",
|
|
6287
7351
|
height: "20px",
|
|
6288
7352
|
duration: "1s"
|
|
6289
|
-
}))))))))), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7353
|
+
}))))))))), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.contactinfo.instid) == '678d1831ef638' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6290
7354
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-2 pr-md-2 px-0 ',
|
|
6291
7355
|
style: {
|
|
6292
7356
|
minHeight: '100vh'
|
|
@@ -6665,7 +7729,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6665
7729
|
objectFit: 'contain'
|
|
6666
7730
|
},
|
|
6667
7731
|
loading: "lazy"
|
|
6668
|
-
}))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
7732
|
+
}))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.contactinfo.instid) == '68319d088f13e' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6669
7733
|
"class": "col-12 p-0",
|
|
6670
7734
|
style: {
|
|
6671
7735
|
position: 'fixed',
|
|
@@ -8442,6 +9506,7 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
8442
9506
|
}, langdetect == 'en' ? sectionproperties.sizeguidecontentenglish : sectionproperties.sizeguidecontentarabic))), /*#__PURE__*/React__default["default"].createElement(Variantoptions, {
|
|
8443
9507
|
actions: props.actions
|
|
8444
9508
|
}), /*#__PURE__*/React__default["default"].createElement(ProductExtras, {
|
|
9509
|
+
addtocartfunc: addtocartfunc,
|
|
8445
9510
|
actions: props.actions
|
|
8446
9511
|
}), /*#__PURE__*/React__default["default"].createElement(Serviceinfotabs, {
|
|
8447
9512
|
actions: {
|
|
@@ -8490,6 +9555,7 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
8490
9555
|
actions: props.actions,
|
|
8491
9556
|
srcprops: 'reservation'
|
|
8492
9557
|
}), /*#__PURE__*/React__default["default"].createElement(ProductExtras, {
|
|
9558
|
+
addtocartfunc: addtocartfunc,
|
|
8493
9559
|
actions: props.actions
|
|
8494
9560
|
}), /*#__PURE__*/React__default["default"].createElement(Serviceinfotabs, {
|
|
8495
9561
|
actions: {
|
|
@@ -8674,7 +9740,8 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
8674
9740
|
"class": "col-12 p-0"
|
|
8675
9741
|
}, /*#__PURE__*/React__default["default"].createElement("hr", null)), /*#__PURE__*/React__default["default"].createElement(ProductExtras, {
|
|
8676
9742
|
actions: props.actions,
|
|
8677
|
-
srcfromprops: 'servicestyle2'
|
|
9743
|
+
srcfromprops: 'servicestyle2',
|
|
9744
|
+
addtocartfunc: addtocartfunc
|
|
8678
9745
|
}), /*#__PURE__*/React__default["default"].createElement(Serviceinfotabs, {
|
|
8679
9746
|
actions: {
|
|
8680
9747
|
fetchProductInfoQueryContext: fetchProductInfoQueryContext,
|
|
@@ -8918,7 +9985,7 @@ var Article_itemtype = function Article_itemtype(props) {
|
|
|
8918
9985
|
function ownKeys$2z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8919
9986
|
function _objectSpread$2z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2z(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8920
9987
|
var Productinfo = function Productinfo(props) {
|
|
8921
|
-
var _css,
|
|
9988
|
+
var _css, _fetchProductInfoQuer86, _ref, _fetchProductInfoQuer87, _ref2, _fetchProductInfoQuer88, _ref3, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _fetchProductInfoQuer91, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer92, _fetchProductInfoQuer93, _returnpolicyobj9, _returnpolicyobj0, _returnpolicyobj1, _returnpolicyobj10, _fetchProductInfoQuer94, _fetchProductInfoQuer95, _returnpolicyobj11, _returnpolicyobj12, _returnpolicyobj13, _returnpolicyobj14;
|
|
8922
9989
|
var _useState = React.useState({}),
|
|
8923
9990
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
8924
9991
|
ProductInfoObj = _useState2[0],
|
|
@@ -9538,13 +10605,20 @@ var Productinfo = function Productinfo(props) {
|
|
|
9538
10605
|
setProductInfoObj(_objectSpread$2z({}, productarr));
|
|
9539
10606
|
};
|
|
9540
10607
|
var addtocartfunc = function addtocartfunc(forcetocheckout) {
|
|
10608
|
+
var addtocartobj_param = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
10609
|
+
var addtocartobj_to_be_used = null;
|
|
10610
|
+
if (addtocartobj_param != null) {
|
|
10611
|
+
addtocartobj_to_be_used = addtocartobj_param;
|
|
10612
|
+
} else {
|
|
10613
|
+
addtocartobj_to_be_used = addtocardpayloadobj;
|
|
10614
|
+
}
|
|
9541
10615
|
var runfunc = false;
|
|
9542
10616
|
var forcetocheckoutvalue = forcetocheckout;
|
|
9543
10617
|
// alert(addtocardpayloadobj.quantity + 'sad');
|
|
9544
|
-
if (
|
|
10618
|
+
if (addtocartobj_to_be_used.productid.length != 0 && addtocartobj_to_be_used.quantity > 0) {
|
|
9545
10619
|
var _fetchProductInfoQuer32;
|
|
9546
10620
|
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer32 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer32 === void 0 || (_fetchProductInfoQuer32 = _fetchProductInfoQuer32.data) === null || _fetchProductInfoQuer32 === void 0 || (_fetchProductInfoQuer32 = _fetchProductInfoQuer32.productinfo) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : _fetchProductInfoQuer32.hasvariants) == 1) {
|
|
9547
|
-
if (
|
|
10621
|
+
if (addtocartobj_to_be_used.variantid.length != 0) {
|
|
9548
10622
|
runfunc = true;
|
|
9549
10623
|
} else {
|
|
9550
10624
|
var _authdetailsContext$i2;
|
|
@@ -9560,7 +10634,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
9560
10634
|
}
|
|
9561
10635
|
if (runfunc == true) {
|
|
9562
10636
|
var _fetchProductInfoQuer33, _fetchProductInfoQuer34;
|
|
9563
|
-
var tempaddtocardpayloadobj = _objectSpread$2z({},
|
|
10637
|
+
var tempaddtocardpayloadobj = _objectSpread$2z({}, addtocartobj_to_be_used);
|
|
9564
10638
|
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer33 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer33 === void 0 || (_fetchProductInfoQuer33 = _fetchProductInfoQuer33.data) === null || _fetchProductInfoQuer33 === void 0 || (_fetchProductInfoQuer33 = _fetchProductInfoQuer33.productinfo) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : _fetchProductInfoQuer33.isproductforcedtocheckout;
|
|
9565
10639
|
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer34 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer34 === void 0 || (_fetchProductInfoQuer34 = _fetchProductInfoQuer34.data) === null || _fetchProductInfoQuer34 === void 0 || (_fetchProductInfoQuer34 = _fetchProductInfoQuer34.productinfo) === null || _fetchProductInfoQuer34 === void 0 ? void 0 : _fetchProductInfoQuer34.vendorproviderid;
|
|
9566
10640
|
if (forcetocheckoutvalue != undefined) {
|
|
@@ -9582,19 +10656,19 @@ var Productinfo = function Productinfo(props) {
|
|
|
9582
10656
|
content_type: 'product',
|
|
9583
10657
|
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer40 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.data) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : _fetchProductInfoQuer40.currencyname_en,
|
|
9584
10658
|
value: finalprice,
|
|
9585
|
-
quantity:
|
|
10659
|
+
quantity: addtocartobj_to_be_used.quantity
|
|
9586
10660
|
});
|
|
9587
10661
|
AddtoCartContext(tempaddtocardpayloadobj);
|
|
9588
10662
|
}
|
|
9589
10663
|
}
|
|
9590
10664
|
};
|
|
9591
10665
|
var validateextrafields = function validateextrafields() {
|
|
9592
|
-
var
|
|
10666
|
+
var _fetchProductInfoQuer50;
|
|
9593
10667
|
var tempaddtocardpayloadobj = _objectSpread$2z({}, addtocardpayloadobj);
|
|
9594
10668
|
var status = false;
|
|
9595
10669
|
var reason = '';
|
|
9596
10670
|
var missingitemsfound = [];
|
|
9597
|
-
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10671
|
+
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer50 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer50 === void 0 || (_fetchProductInfoQuer50 = _fetchProductInfoQuer50.data) === null || _fetchProductInfoQuer50 === void 0 || (_fetchProductInfoQuer50 = _fetchProductInfoQuer50.productinfo) === null || _fetchProductInfoQuer50 === void 0 ? void 0 : _fetchProductInfoQuer50.productextrafields;
|
|
9598
10672
|
if ((extrafields === null || extrafields === void 0 ? void 0 : extrafields.length) == 0) {
|
|
9599
10673
|
status = true;
|
|
9600
10674
|
} else {
|
|
@@ -9634,9 +10708,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
9634
10708
|
};
|
|
9635
10709
|
};
|
|
9636
10710
|
var returnpolicyobj = function returnpolicyobj(policytype) {
|
|
9637
|
-
var _authdetailsContext$
|
|
10711
|
+
var _authdetailsContext$i4;
|
|
9638
10712
|
var policyobj = {};
|
|
9639
|
-
authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10713
|
+
authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 || (_authdetailsContext$i4 = _authdetailsContext$i4.instpolicies) === null || _authdetailsContext$i4 === void 0 || _authdetailsContext$i4.forEach(function (item, index) {
|
|
9640
10714
|
if (item.policytype == policytype) {
|
|
9641
10715
|
policyobj = item;
|
|
9642
10716
|
}
|
|
@@ -9645,7 +10719,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
9645
10719
|
};
|
|
9646
10720
|
var relatedproducts = function relatedproducts() {
|
|
9647
10721
|
if (Relatedproducts.length != 0) {
|
|
9648
|
-
var _authdetailsContext$
|
|
10722
|
+
var _authdetailsContext$i5;
|
|
9649
10723
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9650
10724
|
className: "w-100 row ml-0 mr-0 d-flex justify-content-start pl-md-3 pr-md-3 pl-sm-2 pr-sm-2",
|
|
9651
10725
|
style: {
|
|
@@ -9687,12 +10761,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
9687
10761
|
}, /*#__PURE__*/React__default["default"].createElement(reactHorizontalScrollingMenu.ScrollMenu, {
|
|
9688
10762
|
transitionBehavior: 'auto',
|
|
9689
10763
|
wrapperClassName: '',
|
|
9690
|
-
itemClassName: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10764
|
+
itemClassName: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.contactinfo.instid) == '67dc756de56bd' ? 'scrollmenuclassnameitemrelatedproductkingtut' : 'scrollmenuclassnameitemrelatedproduct',
|
|
9691
10765
|
scrollContainerClassName: 'scrollmenuclasssubscrollbarrelatedproducts'
|
|
9692
10766
|
}, Relatedproducts.map(function (item, index) {
|
|
9693
10767
|
if (item.productinfo != null) {
|
|
9694
|
-
var
|
|
9695
|
-
if (item.productid != (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10768
|
+
var _fetchProductInfoQuer51;
|
|
10769
|
+
if (item.productid != (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer51 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer51 === void 0 || (_fetchProductInfoQuer51 = _fetchProductInfoQuer51.data) === null || _fetchProductInfoQuer51 === void 0 || (_fetchProductInfoQuer51 = _fetchProductInfoQuer51.productinfo) === null || _fetchProductInfoQuer51 === void 0 ? void 0 : _fetchProductInfoQuer51.productid)) {
|
|
9696
10770
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9697
10771
|
className: "col-lg-12 mb-3 px-1",
|
|
9698
10772
|
onClick: function onClick() {
|
|
@@ -10267,37 +11341,37 @@ var Productinfo = function Productinfo(props) {
|
|
|
10267
11341
|
}
|
|
10268
11342
|
}));
|
|
10269
11343
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
10270
|
-
var
|
|
11344
|
+
var _fetchProductInfoQuer52, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _fetchProductInfoQuer55;
|
|
10271
11345
|
var price = 0;
|
|
10272
11346
|
var quantity = 0;
|
|
10273
11347
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
10274
11348
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
10275
11349
|
}
|
|
10276
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10277
|
-
var
|
|
10278
|
-
fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11350
|
+
if ((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.productquantityoptions) != undefined && (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.productquantityoptions) != null && Array.isArray(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.productquantityoptions) && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer55 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer55 === void 0 || (_fetchProductInfoQuer55 = _fetchProductInfoQuer55.data) === null || _fetchProductInfoQuer55 === void 0 || (_fetchProductInfoQuer55 = _fetchProductInfoQuer55.productinfo) === null || _fetchProductInfoQuer55 === void 0 || (_fetchProductInfoQuer55 = _fetchProductInfoQuer55.productquantityoptions) === null || _fetchProductInfoQuer55 === void 0 ? void 0 : _fetchProductInfoQuer55.length) != 0) {
|
|
11351
|
+
var _fetchProductInfoQuer56;
|
|
11352
|
+
fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer56 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer56 === void 0 || (_fetchProductInfoQuer56 = _fetchProductInfoQuer56.data) === null || _fetchProductInfoQuer56 === void 0 || (_fetchProductInfoQuer56 = _fetchProductInfoQuer56.productinfo) === null || _fetchProductInfoQuer56 === void 0 ? void 0 : _fetchProductInfoQuer56.productquantityoptions;
|
|
10279
11353
|
}
|
|
10280
11354
|
if (type == 'defaultprice') {
|
|
10281
|
-
var
|
|
10282
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10283
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11355
|
+
var _fetchProductInfoQuer57, _fetchProductInfoQuer58;
|
|
11356
|
+
price = 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.defaultprice;
|
|
11357
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer58 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer58 === void 0 || (_fetchProductInfoQuer58 = _fetchProductInfoQuer58.data) === null || _fetchProductInfoQuer58 === void 0 || (_fetchProductInfoQuer58 = _fetchProductInfoQuer58.productinfo) === null || _fetchProductInfoQuer58 === void 0 ? void 0 : _fetchProductInfoQuer58.hasvariants) == 1) {
|
|
10284
11358
|
if (variantindexcompleted != undefined) {
|
|
10285
|
-
var
|
|
10286
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10287
|
-
var
|
|
10288
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11359
|
+
var _fetchProductInfoQuer59;
|
|
11360
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer59 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer59 === void 0 || (_fetchProductInfoQuer59 = _fetchProductInfoQuer59.data) === null || _fetchProductInfoQuer59 === void 0 || (_fetchProductInfoQuer59 = _fetchProductInfoQuer59.productinfo) === null || _fetchProductInfoQuer59 === void 0 || (_fetchProductInfoQuer59 = _fetchProductInfoQuer59.variants[variantindexcompleted]) === null || _fetchProductInfoQuer59 === void 0 ? void 0 : _fetchProductInfoQuer59.variantprice) != undefined) {
|
|
11361
|
+
var _fetchProductInfoQuer60;
|
|
11362
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer60 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer60 === void 0 || (_fetchProductInfoQuer60 = _fetchProductInfoQuer60.data) === null || _fetchProductInfoQuer60 === void 0 || (_fetchProductInfoQuer60 = _fetchProductInfoQuer60.productinfo) === null || _fetchProductInfoQuer60 === void 0 || (_fetchProductInfoQuer60 = _fetchProductInfoQuer60.variants[variantindexcompleted]) === null || _fetchProductInfoQuer60 === void 0 ? void 0 : _fetchProductInfoQuer60.variantprice;
|
|
10289
11363
|
}
|
|
10290
11364
|
}
|
|
10291
11365
|
}
|
|
10292
11366
|
} else if (type == 'defaultsaleprice') {
|
|
10293
|
-
var
|
|
10294
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10295
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11367
|
+
var _fetchProductInfoQuer61, _fetchProductInfoQuer62;
|
|
11368
|
+
price = 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.defaultsaleprice;
|
|
11369
|
+
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.hasvariants) == 1) {
|
|
10296
11370
|
if (variantindexcompleted != undefined) {
|
|
10297
|
-
var
|
|
10298
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10299
|
-
var
|
|
10300
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11371
|
+
var _fetchProductInfoQuer63;
|
|
11372
|
+
if ((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 || (_fetchProductInfoQuer63 = _fetchProductInfoQuer63.variants[variantindexcompleted]) === null || _fetchProductInfoQuer63 === void 0 ? void 0 : _fetchProductInfoQuer63.variantsaleprice) != undefined) {
|
|
11373
|
+
var _fetchProductInfoQuer64;
|
|
11374
|
+
price = 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 || (_fetchProductInfoQuer64 = _fetchProductInfoQuer64.variants[variantindexcompleted]) === null || _fetchProductInfoQuer64 === void 0 ? void 0 : _fetchProductInfoQuer64.variantsaleprice;
|
|
10301
11375
|
}
|
|
10302
11376
|
}
|
|
10303
11377
|
}
|
|
@@ -10334,37 +11408,37 @@ var Productinfo = function Productinfo(props) {
|
|
|
10334
11408
|
}
|
|
10335
11409
|
};
|
|
10336
11410
|
var getprice_discountpricepropsnormalonly = function getprice_discountpricepropsnormalonly(type, withtotal, variantindexcompleted) {
|
|
10337
|
-
var
|
|
11411
|
+
var _fetchProductInfoQuer65, _fetchProductInfoQuer66, _fetchProductInfoQuer67, _fetchProductInfoQuer68;
|
|
10338
11412
|
var price = 0;
|
|
10339
11413
|
var quantity = 0;
|
|
10340
11414
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
10341
11415
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
10342
11416
|
}
|
|
10343
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10344
|
-
var
|
|
10345
|
-
fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11417
|
+
if ((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.productquantityoptions) != undefined && (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.productquantityoptions) != null && Array.isArray(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer67 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer67 === void 0 || (_fetchProductInfoQuer67 = _fetchProductInfoQuer67.data) === null || _fetchProductInfoQuer67 === void 0 || (_fetchProductInfoQuer67 = _fetchProductInfoQuer67.productinfo) === null || _fetchProductInfoQuer67 === void 0 ? void 0 : _fetchProductInfoQuer67.productquantityoptions) && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer68 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer68 === void 0 || (_fetchProductInfoQuer68 = _fetchProductInfoQuer68.data) === null || _fetchProductInfoQuer68 === void 0 || (_fetchProductInfoQuer68 = _fetchProductInfoQuer68.productinfo) === null || _fetchProductInfoQuer68 === void 0 || (_fetchProductInfoQuer68 = _fetchProductInfoQuer68.productquantityoptions) === null || _fetchProductInfoQuer68 === void 0 ? void 0 : _fetchProductInfoQuer68.length) != 0) {
|
|
11418
|
+
var _fetchProductInfoQuer69;
|
|
11419
|
+
fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer69 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer69 === void 0 || (_fetchProductInfoQuer69 = _fetchProductInfoQuer69.data) === null || _fetchProductInfoQuer69 === void 0 || (_fetchProductInfoQuer69 = _fetchProductInfoQuer69.productinfo) === null || _fetchProductInfoQuer69 === void 0 ? void 0 : _fetchProductInfoQuer69.productquantityoptions;
|
|
10346
11420
|
}
|
|
10347
11421
|
if (type == 'defaultprice') {
|
|
10348
|
-
var
|
|
10349
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10350
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11422
|
+
var _fetchProductInfoQuer70, _fetchProductInfoQuer71;
|
|
11423
|
+
price = 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.defaultprice;
|
|
11424
|
+
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.hasvariants) == 1) {
|
|
10351
11425
|
if (variantindexcompleted != undefined) {
|
|
10352
|
-
var
|
|
10353
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10354
|
-
var
|
|
10355
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11426
|
+
var _fetchProductInfoQuer72;
|
|
11427
|
+
if ((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 || (_fetchProductInfoQuer72 = _fetchProductInfoQuer72.variants[variantindexcompleted]) === null || _fetchProductInfoQuer72 === void 0 ? void 0 : _fetchProductInfoQuer72.variantprice) != undefined) {
|
|
11428
|
+
var _fetchProductInfoQuer73;
|
|
11429
|
+
price = 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 || (_fetchProductInfoQuer73 = _fetchProductInfoQuer73.variants[variantindexcompleted]) === null || _fetchProductInfoQuer73 === void 0 ? void 0 : _fetchProductInfoQuer73.variantprice;
|
|
10356
11430
|
}
|
|
10357
11431
|
}
|
|
10358
11432
|
}
|
|
10359
11433
|
} else if (type == 'defaultsaleprice') {
|
|
10360
|
-
var
|
|
10361
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10362
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11434
|
+
var _fetchProductInfoQuer74, _fetchProductInfoQuer75;
|
|
11435
|
+
price = 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 ? void 0 : _fetchProductInfoQuer74.defaultsaleprice;
|
|
11436
|
+
if ((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.hasvariants) == 1) {
|
|
10363
11437
|
if (variantindexcompleted != undefined) {
|
|
10364
|
-
var
|
|
10365
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10366
|
-
var
|
|
10367
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11438
|
+
var _fetchProductInfoQuer76;
|
|
11439
|
+
if ((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 || (_fetchProductInfoQuer76 = _fetchProductInfoQuer76.variants[variantindexcompleted]) === null || _fetchProductInfoQuer76 === void 0 ? void 0 : _fetchProductInfoQuer76.variantsaleprice) != undefined) {
|
|
11440
|
+
var _fetchProductInfoQuer77;
|
|
11441
|
+
price = 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 || (_fetchProductInfoQuer77 = _fetchProductInfoQuer77.variants[variantindexcompleted]) === null || _fetchProductInfoQuer77 === void 0 ? void 0 : _fetchProductInfoQuer77.variantsaleprice;
|
|
10368
11442
|
}
|
|
10369
11443
|
}
|
|
10370
11444
|
}
|
|
@@ -10395,7 +11469,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10395
11469
|
}
|
|
10396
11470
|
};
|
|
10397
11471
|
var getQuantityCondition = function getQuantityCondition() {
|
|
10398
|
-
var
|
|
11472
|
+
var _fetchProductInfoQuer78;
|
|
10399
11473
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10400
11474
|
"class": "col-lg-12 p-0",
|
|
10401
11475
|
style: {
|
|
@@ -10425,12 +11499,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
10425
11499
|
height: 1,
|
|
10426
11500
|
background: sectionproperties.pricelisttitlecolor
|
|
10427
11501
|
}
|
|
10428
|
-
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10429
|
-
var
|
|
11502
|
+
})), 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.productquantityoptions) === null || _fetchProductInfoQuer78 === void 0 ? void 0 : _fetchProductInfoQuer78.map(function (item, index) {
|
|
11503
|
+
var _fetchProductInfoQuer79;
|
|
10430
11504
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10431
11505
|
className: "col-lg-12 p-0 w-100 d-flex align-items-center",
|
|
10432
11506
|
style: {
|
|
10433
|
-
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11507
|
+
marginBottom: (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.productquantityoptions) === null || _fetchProductInfoQuer79 === void 0 ? void 0 : _fetchProductInfoQuer79.length) - 1 != index ? '1rem' : 0
|
|
10434
11508
|
}
|
|
10435
11509
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10436
11510
|
"class": "d-flex align-items-center",
|
|
@@ -10464,7 +11538,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10464
11538
|
})));
|
|
10465
11539
|
};
|
|
10466
11540
|
var StoreInfo = function StoreInfo(position) {
|
|
10467
|
-
var
|
|
11541
|
+
var _fetchProductInfoQuer80, _authdetailsContext$i7, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _authdetailsContext$i8, _authdetailsContext$i0;
|
|
10468
11542
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10469
11543
|
"class": sectionproperties.storeinformationcontainerborderwidth != 0 ? 'row m-0 w-100 p-3' : 'row m-0 w-100',
|
|
10470
11544
|
style: {
|
|
@@ -10515,7 +11589,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10515
11589
|
style: {
|
|
10516
11590
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
10517
11591
|
}
|
|
10518
|
-
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11592
|
+
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.showpricinglist == 'Show' && (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 || (_fetchProductInfoQuer80 = _fetchProductInfoQuer80.productquantityoptions) === null || _fetchProductInfoQuer80 === void 0 ? void 0 : _fetchProductInfoQuer80.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10519
11593
|
"class": "col-lg-12 p-0 mb-4"
|
|
10520
11594
|
}, getQuantityCondition()), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10521
11595
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mt-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
@@ -10543,8 +11617,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
10543
11617
|
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber))), sectionproperties.showfooteremail == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10544
11618
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-t col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
10545
11619
|
onClick: function onClick() {
|
|
10546
|
-
var _authdetailsContext$
|
|
10547
|
-
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
11620
|
+
var _authdetailsContext$i6;
|
|
11621
|
+
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 || (_authdetailsContext$i6 = _authdetailsContext$i6.contactinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.email), '_self');
|
|
10548
11622
|
}
|
|
10549
11623
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10550
11624
|
"class": productinfo_cssstyles.iconContainer + ' iconContainer '
|
|
@@ -10564,7 +11638,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10564
11638
|
style: {
|
|
10565
11639
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
10566
11640
|
}
|
|
10567
|
-
}, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
11641
|
+
}, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 || (_authdetailsContext$i7 = _authdetailsContext$i7.contactinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.email))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10568
11642
|
"class": "col-lg-12 my-2",
|
|
10569
11643
|
style: {
|
|
10570
11644
|
display: sectionproperties.showfirstpolicy_storeinfo == 'Hide' && sectionproperties.showsecondpolicy_storeinfo == 'Hide' ? 'none' : 'block'
|
|
@@ -10616,25 +11690,25 @@ var Productinfo = function Productinfo(props) {
|
|
|
10616
11690
|
}
|
|
10617
11691
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10618
11692
|
"class": "m-0 p-0"
|
|
10619
|
-
}, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
11693
|
+
}, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 || (_authdetailsContext$i8 = _authdetailsContext$i8.contactinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.email) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10620
11694
|
"class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
|
|
10621
11695
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
10622
11696
|
"class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
|
|
10623
11697
|
onClick: function onClick() {
|
|
10624
|
-
var _authdetailsContext$
|
|
10625
|
-
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
11698
|
+
var _authdetailsContext$i9;
|
|
11699
|
+
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 || (_authdetailsContext$i9 = _authdetailsContext$i9.contactinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.email), '_self');
|
|
10626
11700
|
}
|
|
10627
11701
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10628
11702
|
"class": "m-0 p-0"
|
|
10629
|
-
}, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
11703
|
+
}, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.whatsappnumber) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10630
11704
|
"class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
|
|
10631
11705
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
10632
11706
|
"class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
|
|
10633
11707
|
onClick: function onClick() {
|
|
10634
|
-
var _authdetailsContext$
|
|
10635
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10636
|
-
var _authdetailsContext$
|
|
10637
|
-
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
11708
|
+
var _authdetailsContext$i1;
|
|
11709
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.whatsappnumber) != null) {
|
|
11710
|
+
var _authdetailsContext$i10;
|
|
11711
|
+
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.whatsappnumber), '_blank');
|
|
10638
11712
|
}
|
|
10639
11713
|
}
|
|
10640
11714
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
@@ -10708,8 +11782,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
10708
11782
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
10709
11783
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0
|
|
10710
11784
|
}
|
|
10711
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11785
|
+
}, (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 ? void 0 : _fetchProductInfoQuer86.item_type) == 'product' && /*#__PURE__*/React__default["default"].createElement(Product_itemtype, {
|
|
10712
11786
|
actions: (_ref = {
|
|
11787
|
+
AddtoCartContext: AddtoCartContext,
|
|
10713
11788
|
variantnotchosendisclaimer: variantnotchosendisclaimer,
|
|
10714
11789
|
setisoutofstock: setisoutofstock,
|
|
10715
11790
|
isoutofstock: isoutofstock,
|
|
@@ -10718,7 +11793,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10718
11793
|
lang: lang,
|
|
10719
11794
|
srcfromprops: props.srcfromprops
|
|
10720
11795
|
}, _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref, "returnpolicyobj", returnpolicyobj), "productinfo_cssstyles", productinfo_cssstyles), "addtocartfunc", addtocartfunc), "selectproductoptionvalue", selectproductoptionvalue), "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), "productimagesarray", productimagesarray), "fetchProductInfoQueryContext", fetchProductInfoQueryContext), "ProductInfoObj", ProductInfoObj), "sectionproperties", sectionproperties), "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref, "setaddtocardpayloadobj", setaddtocardpayloadobj), "routingcountext", routingcountext), "AddtoCartMutationContext", AddtoCartMutationContext), "authdetailsContext", authdetailsContext), "addtofavoritescontext", addtofavoritescontext), "variantindexcompleted", variantindexcompleted), "StaticPagesLinksContext", StaticPagesLinksContext), "NotificationManager", NotificationManager), "GeneralAPIMutationContext", GeneralAPIMutationContext), "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref, "relatedproducts", relatedproducts), "getprice_discountpriceprops", getprice_discountpriceprops), "getprice_discountpricepropsnormalonly", getprice_discountpricepropsnormalonly), "StoreInfoprops", StoreInfo), "currentshowingimageindex", currentshowingimageindex), "setcurrentshowingimageindex", setcurrentshowingimageindex), "templatepropcontext", templatepropcontext), "ikimagecredcontext", ikimagecredcontext), "variantindex", variantindex), "setvariantindex", setvariantindex), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref, "variantsku", variantsku), "variantvalueidentifier", variantvalueidentifier), "sizeguideimage", sizeguideimage), "setopensizeguidemodal", setopensizeguidemodal))
|
|
10721
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11796
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer87 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer87 === void 0 || (_fetchProductInfoQuer87 = _fetchProductInfoQuer87.data) === null || _fetchProductInfoQuer87 === void 0 || (_fetchProductInfoQuer87 = _fetchProductInfoQuer87.productinfo) === null || _fetchProductInfoQuer87 === void 0 ? void 0 : _fetchProductInfoQuer87.item_type) == 'Article' && /*#__PURE__*/React__default["default"].createElement(Article_itemtype, {
|
|
10722
11797
|
actions: (_ref2 = {
|
|
10723
11798
|
variantnotchosendisclaimer: variantnotchosendisclaimer,
|
|
10724
11799
|
setisoutofstock: setisoutofstock,
|
|
@@ -10728,7 +11803,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10728
11803
|
lang: lang,
|
|
10729
11804
|
srcfromprops: props.srcfromprops
|
|
10730
11805
|
}, _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref2, "returnpolicyobj", returnpolicyobj), "productinfo_cssstyles", productinfo_cssstyles), "addtocartfunc", addtocartfunc), "selectproductoptionvalue", selectproductoptionvalue), "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), "productimagesarray", productimagesarray), "fetchProductInfoQueryContext", fetchProductInfoQueryContext), "ProductInfoObj", ProductInfoObj), "sectionproperties", sectionproperties), "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref2, "setaddtocardpayloadobj", setaddtocardpayloadobj), "routingcountext", routingcountext), "AddtoCartMutationContext", AddtoCartMutationContext), "authdetailsContext", authdetailsContext), "addtofavoritescontext", addtofavoritescontext), "variantindexcompleted", variantindexcompleted), "StaticPagesLinksContext", StaticPagesLinksContext), "NotificationManager", NotificationManager), "GeneralAPIMutationContext", GeneralAPIMutationContext), "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref2, "relatedproducts", relatedproducts), "getprice_discountpriceprops", getprice_discountpriceprops), "StoreInfoprops", StoreInfo), "currentshowingimageindex", currentshowingimageindex), "setcurrentshowingimageindex", setcurrentshowingimageindex), "templatepropcontext", templatepropcontext), "ikimagecredcontext", ikimagecredcontext), "variantindex", variantindex), "setvariantindex", setvariantindex), "variantsku", variantsku), _defineProperty__default["default"](_ref2, "variantvalueidentifier", variantvalueidentifier))
|
|
10731
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11806
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer88 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer88 === void 0 || (_fetchProductInfoQuer88 = _fetchProductInfoQuer88.data) === null || _fetchProductInfoQuer88 === void 0 || (_fetchProductInfoQuer88 = _fetchProductInfoQuer88.productinfo) === null || _fetchProductInfoQuer88 === void 0 ? void 0 : _fetchProductInfoQuer88.item_type) == 'service' && /*#__PURE__*/React__default["default"].createElement(Service_itemtype, {
|
|
10732
11807
|
actions: (_ref3 = {
|
|
10733
11808
|
variantnotchosendisclaimer: variantnotchosendisclaimer,
|
|
10734
11809
|
variantsku: variantsku,
|
|
@@ -10744,7 +11819,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10744
11819
|
style: {
|
|
10745
11820
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
10746
11821
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0,
|
|
10747
|
-
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11822
|
+
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer89 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer89 === void 0 || (_fetchProductInfoQuer89 = _fetchProductInfoQuer89.data) === null || _fetchProductInfoQuer89 === void 0 || (_fetchProductInfoQuer89 = _fetchProductInfoQuer89.productinfo) === null || _fetchProductInfoQuer89 === void 0 || (_fetchProductInfoQuer89 = _fetchProductInfoQuer89.product_videos) === null || _fetchProductInfoQuer89 === void 0 ? void 0 : _fetchProductInfoQuer89.length) != 0 ? 'flex' : (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer90 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer90 === void 0 || (_fetchProductInfoQuer90 = _fetchProductInfoQuer90.data) === null || _fetchProductInfoQuer90 === void 0 || (_fetchProductInfoQuer90 = _fetchProductInfoQuer90.productinfo) === null || _fetchProductInfoQuer90 === void 0 ? void 0 : _fetchProductInfoQuer90.productcanrate) == 1 ? 'flex' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' ? 'none' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && sectionproperties.descriptionposition != 'Bottom' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer91 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer91 === void 0 || (_fetchProductInfoQuer91 = _fetchProductInfoQuer91.data) === null || _fetchProductInfoQuer91 === void 0 || (_fetchProductInfoQuer91 = _fetchProductInfoQuer91.productinfo) === null || _fetchProductInfoQuer91 === void 0 || (_fetchProductInfoQuer91 = _fetchProductInfoQuer91.product_videos) === null || _fetchProductInfoQuer91 === void 0 ? void 0 : _fetchProductInfoQuer91.length) == 0 ? 'none' : 'flex'
|
|
10748
11823
|
}
|
|
10749
11824
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10750
11825
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
|
|
@@ -10806,12 +11881,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
10806
11881
|
onClick: function onClick() {
|
|
10807
11882
|
settabname('refundpolicytab');
|
|
10808
11883
|
}
|
|
10809
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11884
|
+
}), (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 || (_fetchProductInfoQuer92 = _fetchProductInfoQuer92.product_videos) === null || _fetchProductInfoQuer92 === void 0 ? void 0 : _fetchProductInfoQuer92.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
10810
11885
|
label: langdetect == 'en' ? sectionproperties.videostitleen : sectionproperties.videostitlear,
|
|
10811
11886
|
onClick: function onClick() {
|
|
10812
11887
|
settabname('videostab');
|
|
10813
11888
|
}
|
|
10814
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11889
|
+
}), (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.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
10815
11890
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
10816
11891
|
onClick: function onClick() {
|
|
10817
11892
|
settabname('reviewstab');
|
|
@@ -10865,12 +11940,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
10865
11940
|
onClick: function onClick() {
|
|
10866
11941
|
settabname('refundpolicytab');
|
|
10867
11942
|
}
|
|
10868
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11943
|
+
}), (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 || (_fetchProductInfoQuer94 = _fetchProductInfoQuer94.product_videos) === null || _fetchProductInfoQuer94 === void 0 ? void 0 : _fetchProductInfoQuer94.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
10869
11944
|
label: langdetect == 'en' ? 'Videos' : 'فيديوهات',
|
|
10870
11945
|
onClick: function onClick() {
|
|
10871
11946
|
settabname('videostab');
|
|
10872
11947
|
}
|
|
10873
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11948
|
+
}), (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.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
10874
11949
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
10875
11950
|
onClick: function onClick() {
|
|
10876
11951
|
settabname('reviewstab');
|
|
@@ -11146,13 +12221,10 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
|
11146
12221
|
}))))));
|
|
11147
12222
|
};
|
|
11148
12223
|
|
|
11149
|
-
var serverbaselink$1 = 'https://tabex-co.com';
|
|
11150
|
-
var image_serverbaselink = 'https://tabexseriesmedia.s3.eu-north-1.amazonaws.com';
|
|
11151
|
-
|
|
11152
12224
|
function ownKeys$2x(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; }
|
|
11153
12225
|
function _objectSpread$2x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2x(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11154
12226
|
var Ordershistory = function Ordershistory(props) {
|
|
11155
|
-
var _props$actions2, _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8,
|
|
12227
|
+
var _props$actions2, _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchorderhistoryQue2, _fetchorderhistoryQue3, _authdetailsContext$i5, _fetchorderhistoryQue4, _fetchorderhistoryQue5, _authdetailsContext$i6;
|
|
11156
12228
|
var lang = props.actions.lang;
|
|
11157
12229
|
var langdetect = props.actions.langdetect;
|
|
11158
12230
|
var routingcountext = props.actions.routingcountext;
|
|
@@ -11416,24 +12488,6 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
11416
12488
|
}
|
|
11417
12489
|
return showbutton;
|
|
11418
12490
|
};
|
|
11419
|
-
var printOrder = function printOrder() {
|
|
11420
|
-
if (orderindex != undefined && orderindex != null) {
|
|
11421
|
-
var _fetchorderhistoryQue2;
|
|
11422
|
-
var orderinfo = fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (_fetchorderhistoryQue2 = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue2 === void 0 || (_fetchorderhistoryQue2 = _fetchorderhistoryQue2.data) === null || _fetchorderhistoryQue2 === void 0 ? void 0 : _fetchorderhistoryQue2.ordershistory[orderindex];
|
|
11423
|
-
if (orderinfo != undefined && orderinfo != null && orderinfo != '') {
|
|
11424
|
-
var _orderinfo$orderitems;
|
|
11425
|
-
var orderids = orderinfo === null || orderinfo === void 0 || (_orderinfo$orderitems = orderinfo.orderitems) === null || _orderinfo$orderitems === void 0 ? void 0 : _orderinfo$orderitems.map(function (item) {
|
|
11426
|
-
return item.orderitemid;
|
|
11427
|
-
});
|
|
11428
|
-
var itemsJSON = encodeURIComponent(JSON.stringify(orderids));
|
|
11429
|
-
var url = "https://tabapv.site/printorder/guest/".concat(orderinfo.instid, "/").concat(orderinfo.orderid, "/").concat(orderinfo.customerid, "/").concat(itemsJSON, "?lang=").concat(langdetect);
|
|
11430
|
-
window.open(url, '_blank');
|
|
11431
|
-
// Linking.openURL(url).catch((err) => {
|
|
11432
|
-
// console.error('Failed to open URL:', err);
|
|
11433
|
-
// });
|
|
11434
|
-
}
|
|
11435
|
-
}
|
|
11436
|
-
};
|
|
11437
12491
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11438
12492
|
className: orderhistory_cssstyles.containerstyles + ' row ml-0 mr-0 w-100 '
|
|
11439
12493
|
}, sectionproperties.showbgimage == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -11835,19 +12889,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
11835
12889
|
color: sectionproperties.sectiontitlesecondarycolor,
|
|
11836
12890
|
direction: 'ltr'
|
|
11837
12891
|
}
|
|
11838
|
-
}, fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].timestamp))),
|
|
11839
|
-
"class": "col-12 allcentered mb-3"
|
|
11840
|
-
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
11841
|
-
style: {
|
|
11842
|
-
backgroundColor: 'green',
|
|
11843
|
-
borderRadius: 10,
|
|
11844
|
-
width: 100,
|
|
11845
|
-
height: 40
|
|
11846
|
-
},
|
|
11847
|
-
onClick: function onClick() {
|
|
11848
|
-
printOrder();
|
|
11849
|
-
}
|
|
11850
|
-
}, langdetect == 'en' ? 'Print' : 'عرض الفاتورة')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12892
|
+
}, fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].timestamp))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11851
12893
|
className: sectionproperties.shownotes == 'Hide' && sectionproperties.showtotalsection == 'Hide' && sectionproperties.showpayemntsection == 'Hide' && sectionproperties.hidecountrystatecity == 'Hide' && sectionproperties.hideshipping == 'Hide' && sectionproperties.hideaddress == 'Hide' ? 'col-lg-12 p-0' : langdetect == 'en' ? 'col-lg-9 pl-0 p-md-0 mb-md-3' : 'col-lg-9 pr-0 p-md-0 mb-md-3'
|
|
11852
12894
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11853
12895
|
className: "row m-0 w-100"
|
|
@@ -11889,7 +12931,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
11889
12931
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11890
12932
|
className: "row m-0 w-100"
|
|
11891
12933
|
}, fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderitems.map(function (item, index) {
|
|
11892
|
-
var _authdetailsContext$
|
|
12934
|
+
var _authdetailsContext$i3, _authdetailsContext$i4;
|
|
11893
12935
|
var variantoptions = [];
|
|
11894
12936
|
if (item.isvariant == 1) {
|
|
11895
12937
|
var decodevariantoptions = JSON.parse(item.variantoptions);
|
|
@@ -11976,8 +13018,8 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
11976
13018
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
11977
13019
|
},
|
|
11978
13020
|
onClick: function onClick() {
|
|
11979
|
-
var _authdetailsContext$
|
|
11980
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
13021
|
+
var _authdetailsContext$i2;
|
|
13022
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.instid) == '68248846ec6bc') ; else {
|
|
11981
13023
|
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
11982
13024
|
}
|
|
11983
13025
|
}
|
|
@@ -12007,7 +13049,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
12007
13049
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
12008
13050
|
className: ' m-0 p-0 font-13 fontfamilymedium wordbreak allcentered '
|
|
12009
13051
|
}, variantoptionitem.optionname, ": ", variantoptionitem.optionvalue));
|
|
12010
|
-
}))), item.product_extrafields != null && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
13052
|
+
}))), item.product_extrafields != null && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.instid) != '68248846ec6bc' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12011
13053
|
"class": "col-lg-12 p-0 d-flex align-items-center"
|
|
12012
13054
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12013
13055
|
"class": "row m-0 w-100"
|
|
@@ -12028,7 +13070,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
12028
13070
|
fontWeight: sectionproperties.varianttext_fontweight
|
|
12029
13071
|
}
|
|
12030
13072
|
}, extrafielditem.value)));
|
|
12031
|
-
}))), item.product_extrafields != null && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
13073
|
+
}))), item.product_extrafields != null && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.instid) == '68248846ec6bc' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12032
13074
|
"class": "col-lg-12 p-0 d-flex align-items-center"
|
|
12033
13075
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12034
13076
|
"class": "row m-0 w-100"
|
|
@@ -12166,7 +13208,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
12166
13208
|
style: {
|
|
12167
13209
|
color: sectionproperties.userinfotextsecondarycolor
|
|
12168
13210
|
}
|
|
12169
|
-
}, fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].address))))), sectionproperties.shownotes == 'Show' && (fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (
|
|
13211
|
+
}, fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].address))))), sectionproperties.shownotes == 'Show' && (fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (_fetchorderhistoryQue2 = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue2 === void 0 || (_fetchorderhistoryQue2 = _fetchorderhistoryQue2.data) === null || _fetchorderhistoryQue2 === void 0 ? void 0 : _fetchorderhistoryQue2.ordershistory[orderindex].notes) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12170
13212
|
className: "row m-0 w-100 mb-3",
|
|
12171
13213
|
style: {
|
|
12172
13214
|
background: sectionproperties.userinfo_sectionbgcolor,
|
|
@@ -12198,7 +13240,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
12198
13240
|
fontWeight: sectionproperties.userinfo_fontweight,
|
|
12199
13241
|
fontSize: sectionproperties.userinfo_fontsize + 'px'
|
|
12200
13242
|
}
|
|
12201
|
-
}, fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (
|
|
13243
|
+
}, fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (_fetchorderhistoryQue3 = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue3 === void 0 || (_fetchorderhistoryQue3 = _fetchorderhistoryQue3.data) === null || _fetchorderhistoryQue3 === void 0 || (_fetchorderhistoryQue3 = _fetchorderhistoryQue3.ordershistory[orderindex]) === null || _fetchorderhistoryQue3 === void 0 ? void 0 : _fetchorderhistoryQue3.notes))))), sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12202
13244
|
className: "row m-0 w-100 mb-3",
|
|
12203
13245
|
style: {
|
|
12204
13246
|
background: sectionproperties.summary_sectionbgcolor,
|
|
@@ -12224,11 +13266,11 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
12224
13266
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex p-0"
|
|
12225
13267
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
12226
13268
|
className: "".concat(orderhistory_cssstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center '
|
|
12227
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
13269
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.contactinfo.instid) == '6808c6295b598' ? langdetect == 'en' ? 'Sub Total' : 'تكلفة المنتجات' : lang.subtotal)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12228
13270
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
12229
13271
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
12230
13272
|
className: "".concat(orderhistory_cssstyles.summarysectionstyles) + ' m-0 p-0 text-capitalize '
|
|
12231
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderitemstotalprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), (fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (
|
|
13273
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderitemstotalprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), (fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (_fetchorderhistoryQue4 = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue4 === void 0 || (_fetchorderhistoryQue4 = _fetchorderhistoryQue4.data) === null || _fetchorderhistoryQue4 === void 0 || (_fetchorderhistoryQue4 = _fetchorderhistoryQue4.ordershistory[orderindex]) === null || _fetchorderhistoryQue4 === void 0 ? void 0 : _fetchorderhistoryQue4.usewalletpoints) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12232
13274
|
className: "row m-0 w-100 mb-2"
|
|
12233
13275
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12234
13276
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex p-0"
|
|
@@ -12241,7 +13283,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
12241
13283
|
style: {
|
|
12242
13284
|
color: 'red'
|
|
12243
13285
|
}
|
|
12244
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (
|
|
13286
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (_fetchorderhistoryQue5 = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue5 === void 0 || (_fetchorderhistoryQue5 = _fetchorderhistoryQue5.data) === null || _fetchorderhistoryQue5 === void 0 || (_fetchorderhistoryQue5 = _fetchorderhistoryQue5.ordershistory[orderindex]) === null || _fetchorderhistoryQue5 === void 0 ? void 0 : _fetchorderhistoryQue5.walletpointsused, langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].haspromocode == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12245
13287
|
className: "row m-0 w-100 mb-2"
|
|
12246
13288
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12247
13289
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex p-0"
|
|
@@ -12277,7 +13319,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
12277
13319
|
textTransform: sectionproperties.total_texttransform,
|
|
12278
13320
|
color: sectionproperties.total_color
|
|
12279
13321
|
}
|
|
12280
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
13322
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.contactinfo.instid) == '6808c6295b598' ? langdetect == 'en' ? 'Total' : 'المبلغ الإجمالي' : lang.total)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12281
13323
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
12282
13324
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
12283
13325
|
className: "m-0 p-0",
|
|
@@ -17944,7 +18986,7 @@ styleInject(css_248z$E);
|
|
|
17944
18986
|
function ownKeys$2n(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; }
|
|
17945
18987
|
function _objectSpread$2n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2n(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17946
18988
|
var CartSlider = function CartSlider(props) {
|
|
17947
|
-
var _authdetailsContext$i, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8,
|
|
18989
|
+
var _authdetailsContext$i, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue1, _fetchcustomercartQue10, _authdetailsContext$i2, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14;
|
|
17948
18990
|
var lang = props.actions.lang;
|
|
17949
18991
|
var langdetect = props.actions.langdetect;
|
|
17950
18992
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
@@ -18372,277 +19414,294 @@ var CartSlider = function CartSlider(props) {
|
|
|
18372
19414
|
animationDuration: '.7s'
|
|
18373
19415
|
}
|
|
18374
19416
|
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue8 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue8 === void 0 || (_fetchcustomercartQue8 = _fetchcustomercartQue8.data) === null || _fetchcustomercartQue8 === void 0 || (_fetchcustomercartQue8 = _fetchcustomercartQue8.customercart) === null || _fetchcustomercartQue8 === void 0 || (_fetchcustomercartQue8 = _fetchcustomercartQue8.cartitems) === null || _fetchcustomercartQue8 === void 0 ? void 0 : _fetchcustomercartQue8.map(function (item, index) {
|
|
18375
|
-
var _item$productinfo, _item$variantoptions, _fetchcustomercartQue9;
|
|
18376
19417
|
if (item.product_extrafields != null) {
|
|
18377
19418
|
var product_extrafields = JSON.parse(item.product_extrafields);
|
|
18378
19419
|
// var product_extrafields_parsed = JSON.stringify(product_extrafields);
|
|
18379
19420
|
// alert(product_extrafields_parsed);
|
|
18380
19421
|
}
|
|
18381
|
-
|
|
18382
|
-
|
|
18383
|
-
|
|
18384
|
-
|
|
18385
|
-
}
|
|
18386
|
-
|
|
18387
|
-
|
|
18388
|
-
|
|
18389
|
-
|
|
18390
|
-
|
|
18391
|
-
|
|
18392
|
-
|
|
18393
|
-
|
|
18394
|
-
|
|
18395
|
-
|
|
18396
|
-
width: '90%',
|
|
18397
|
-
objectFit: 'contain',
|
|
18398
|
-
borderRadius: sectionproperties.imageborderradius + 'px'
|
|
18399
|
-
}
|
|
18400
|
-
}), item.productinfo.hasvariants == 0 && item.productinfo.productmainimage == '' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18401
|
-
style: {
|
|
18402
|
-
width: '100%',
|
|
18403
|
-
height: '100%',
|
|
18404
|
-
background: '#eee',
|
|
18405
|
-
borderRadius: 10
|
|
18406
|
-
}
|
|
18407
|
-
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
18408
|
-
"class": "h-100 allcentered text-light"
|
|
18409
|
-
}, /*#__PURE__*/React__default["default"].createElement(FiLayers.FiLayers, {
|
|
18410
|
-
size: 26
|
|
18411
|
-
}))), item.productinfo.hasvariants == 1 && item.productinfo.variantinfo.variantimageurl == '' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18412
|
-
style: {
|
|
18413
|
-
width: '100%',
|
|
18414
|
-
height: '100%',
|
|
18415
|
-
background: '#eee',
|
|
18416
|
-
borderRadius: 10
|
|
18417
|
-
}
|
|
18418
|
-
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
18419
|
-
"class": "h-100 allcentered text-light"
|
|
18420
|
-
}, /*#__PURE__*/React__default["default"].createElement(FiLayers.FiLayers, {
|
|
18421
|
-
size: 26
|
|
18422
|
-
}))), item.productinfo.hasvariants == 1 && item.productinfo.variantinfo.variantimageurl != '' && /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
18423
|
-
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
18424
|
-
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
18425
|
-
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.productinfo.variantinfo.variantimageurl,
|
|
18426
|
-
loading: "lazy",
|
|
18427
|
-
style: {
|
|
18428
|
-
height: '90%',
|
|
18429
|
-
width: '90%',
|
|
18430
|
-
objectFit: 'contain',
|
|
18431
|
-
borderRadius: sectionproperties.imageborderradius + 'px'
|
|
18432
|
-
}
|
|
18433
|
-
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18434
|
-
className: "col-lg-8 col-md-8 col-sm-8 pl-2"
|
|
18435
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18436
|
-
className: "row m-0 w-100"
|
|
18437
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18438
|
-
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
|
|
18439
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
18440
|
-
className: "".concat(cart_cssstyles.productNameStyles) + ' m-0 p-0 wordbreak wordbreak3 d-flex align-items-start ',
|
|
18441
|
-
style: {
|
|
18442
|
-
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
18443
|
-
},
|
|
18444
|
-
onClick: function onClick() {
|
|
18445
|
-
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
18446
|
-
setOpenCloseCartSlider(false);
|
|
18447
|
-
setsidecartnavshowWorkplaceDesigncontext(false);
|
|
18448
|
-
setsidecartnavshowcontext(false);
|
|
18449
|
-
}
|
|
18450
|
-
}, langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar)), sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18451
|
-
className: "".concat(cart_cssstyles.productPricestyles) + ' col-lg-12 col-md-12 col-sm-12 p-0 d-flex mt-1 '
|
|
18452
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.finalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.finalprice).toLocaleString() : parseFloat(item.finalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.productinfo.hasvariants == 1 && item.variantoptions.map(function (variantitem, variantindex) {
|
|
19422
|
+
var product_extras_array = [];
|
|
19423
|
+
var is_extra_product = false;
|
|
19424
|
+
if (item.item_type == 'Extras') {
|
|
19425
|
+
is_extra_product = true;
|
|
19426
|
+
}
|
|
19427
|
+
if (item.item_type != 'Extras') {
|
|
19428
|
+
var _fetchcustomercartQue9;
|
|
19429
|
+
fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.customercart) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.cartitems) === null || _fetchcustomercartQue9 === void 0 || _fetchcustomercartQue9.forEach(function (cartitem) {
|
|
19430
|
+
if (cartitem.item_type == 'Extras' && cartitem.main_ref_productid == item.productid) {
|
|
19431
|
+
product_extras_array.push(cartitem);
|
|
19432
|
+
}
|
|
19433
|
+
});
|
|
19434
|
+
}
|
|
19435
|
+
if (is_extra_product == false) {
|
|
19436
|
+
var _item$productinfo, _item$variantoptions, _fetchcustomercartQue0;
|
|
18453
19437
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18454
|
-
className: "col-lg-12
|
|
19438
|
+
className: "col-lg-12 mb-3 p-0"
|
|
18455
19439
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18456
|
-
|
|
19440
|
+
className: "row w-100 m-0"
|
|
19441
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19442
|
+
className: 'col-lg-4 col-md-4 col-sm-4 p-0'
|
|
19443
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19444
|
+
className: cart_cssstyles.imagecont + ' mb-auto '
|
|
19445
|
+
}, item.productinfo.hasvariants == 0 && item.productinfo.productmainimage != '' && /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
19446
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
19447
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
19448
|
+
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.productinfo.productmainimage,
|
|
19449
|
+
loading: "lazy",
|
|
18457
19450
|
style: {
|
|
18458
|
-
|
|
19451
|
+
height: '90%',
|
|
19452
|
+
width: '90%',
|
|
19453
|
+
objectFit: 'contain',
|
|
19454
|
+
borderRadius: sectionproperties.imageborderradius + 'px'
|
|
19455
|
+
}
|
|
19456
|
+
}), item.productinfo.hasvariants == 0 && item.productinfo.productmainimage == '' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19457
|
+
style: {
|
|
19458
|
+
width: '100%',
|
|
19459
|
+
height: '100%',
|
|
19460
|
+
background: '#eee',
|
|
19461
|
+
borderRadius: 10
|
|
18459
19462
|
}
|
|
19463
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
19464
|
+
"class": "h-100 allcentered text-light"
|
|
19465
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiLayers.FiLayers, {
|
|
19466
|
+
size: 26
|
|
19467
|
+
}))), item.productinfo.hasvariants == 1 && item.productinfo.variantinfo.variantimageurl == '' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19468
|
+
style: {
|
|
19469
|
+
width: '100%',
|
|
19470
|
+
height: '100%',
|
|
19471
|
+
background: '#eee',
|
|
19472
|
+
borderRadius: 10
|
|
19473
|
+
}
|
|
19474
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
19475
|
+
"class": "h-100 allcentered text-light"
|
|
19476
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiLayers.FiLayers, {
|
|
19477
|
+
size: 26
|
|
19478
|
+
}))), item.productinfo.hasvariants == 1 && item.productinfo.variantinfo.variantimageurl != '' && /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
19479
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
19480
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
19481
|
+
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.productinfo.variantinfo.variantimageurl,
|
|
19482
|
+
loading: "lazy",
|
|
19483
|
+
style: {
|
|
19484
|
+
height: '90%',
|
|
19485
|
+
width: '90%',
|
|
19486
|
+
objectFit: 'contain',
|
|
19487
|
+
borderRadius: sectionproperties.imageborderradius + 'px'
|
|
19488
|
+
}
|
|
19489
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19490
|
+
className: "col-lg-8 col-md-8 col-sm-8 pl-2"
|
|
19491
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19492
|
+
className: "row m-0 w-100"
|
|
18460
19493
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18461
19494
|
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
|
|
18462
19495
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
18463
|
-
className: '
|
|
18464
|
-
}, variantitem.optionname, ":"), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
18465
|
-
className: ' font-weight-400 m-0 p-0 font-13 ml-1 mr-1 '
|
|
18466
|
-
}, (variantitem === null || variantitem === void 0 ? void 0 : variantitem.value_identifier) != null ? variantitem === null || variantitem === void 0 ? void 0 : variantitem.value_identifier : variantitem === null || variantitem === void 0 ? void 0 : variantitem.optionvalue))));
|
|
18467
|
-
}), item.product_extrafields != null && product_extrafields.map(function (extrafielditem, extrafieldindex) {
|
|
18468
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18469
|
-
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
|
|
18470
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18471
|
-
"class": "row m-0 w-100",
|
|
19496
|
+
className: "".concat(cart_cssstyles.productNameStyles) + ' m-0 p-0 wordbreak wordbreak3 d-flex align-items-start ',
|
|
18472
19497
|
style: {
|
|
18473
|
-
|
|
19498
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
19499
|
+
},
|
|
19500
|
+
onClick: function onClick() {
|
|
19501
|
+
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
19502
|
+
setOpenCloseCartSlider(false);
|
|
19503
|
+
setsidecartnavshowWorkplaceDesigncontext(false);
|
|
19504
|
+
setsidecartnavshowcontext(false);
|
|
18474
19505
|
}
|
|
19506
|
+
}, langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar)), sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19507
|
+
className: "".concat(cart_cssstyles.productPricestyles) + ' col-lg-12 col-md-12 col-sm-12 p-0 d-flex mt-1 '
|
|
19508
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.finalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.finalprice).toLocaleString() : parseFloat(item.finalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.productinfo.hasvariants == 1 && item.variantoptions.map(function (variantitem, variantindex) {
|
|
19509
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19510
|
+
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
|
|
19511
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19512
|
+
"class": "row m-0 w-100",
|
|
19513
|
+
style: {
|
|
19514
|
+
color: sectionproperties.prodNameColor
|
|
19515
|
+
}
|
|
19516
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19517
|
+
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
|
|
19518
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
19519
|
+
className: 'text-capitalize m-0 p-0 font-weight-500 font-13 m-0 p-0 '
|
|
19520
|
+
}, variantitem.optionname, ":"), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
19521
|
+
className: ' font-weight-400 m-0 p-0 font-13 ml-1 mr-1 '
|
|
19522
|
+
}, (variantitem === null || variantitem === void 0 ? void 0 : variantitem.value_identifier) != null ? variantitem === null || variantitem === void 0 ? void 0 : variantitem.value_identifier : variantitem === null || variantitem === void 0 ? void 0 : variantitem.optionvalue))));
|
|
19523
|
+
}), item.product_extrafields != null && product_extrafields.map(function (extrafielditem, extrafieldindex) {
|
|
19524
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19525
|
+
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
|
|
19526
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19527
|
+
"class": "row m-0 w-100",
|
|
19528
|
+
style: {
|
|
19529
|
+
color: sectionproperties.prodNameColor
|
|
19530
|
+
}
|
|
19531
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19532
|
+
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
|
|
19533
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
19534
|
+
className: 'text-capitalize m-0 p-0 font-weight-500 font-13 m-0 p-0 '
|
|
19535
|
+
}, langdetect == 'en' ? extrafielditem.title_en : extrafielditem.title_ar, ":"), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
19536
|
+
className: ' font-weight-400 m-0 p-0 font-13 ml-1 mr-1 '
|
|
19537
|
+
}, extrafielditem.value))));
|
|
19538
|
+
}), product_extras_array === null || product_extras_array === void 0 ? void 0 : product_extras_array.map(function (extraitem, extraiindex) {
|
|
19539
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("p", null, " ", langdetect == 'en' ? extraitem.productinfo.name_en : extraitem.productinfo.name_ar), /*#__PURE__*/React__default["default"].createElement("p", null, " quantity: ", extraitem.quantity, " "));
|
|
19540
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19541
|
+
"class": (item === null || item === void 0 || (_item$productinfo = item.productinfo) === null || _item$productinfo === void 0 ? void 0 : _item$productinfo.hasvariants) == 1 && (item === null || item === void 0 || (_item$variantoptions = item.variantoptions) === null || _item$variantoptions === void 0 ? void 0 : _item$variantoptions.length) != 0 ? 'col-lg-12 p-0 mt-1' : 'col-lg-12 p-0 mt-4'
|
|
18475
19542
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18476
|
-
|
|
18477
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
18478
|
-
|
|
18479
|
-
},
|
|
18480
|
-
className: '
|
|
18481
|
-
},
|
|
18482
|
-
|
|
18483
|
-
|
|
18484
|
-
|
|
18485
|
-
|
|
18486
|
-
|
|
18487
|
-
|
|
18488
|
-
|
|
18489
|
-
|
|
18490
|
-
|
|
18491
|
-
|
|
18492
|
-
|
|
18493
|
-
|
|
18494
|
-
|
|
18495
|
-
|
|
18496
|
-
|
|
19543
|
+
"class": "row m-0 w-100"
|
|
19544
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19545
|
+
"class": "col-9 p-0 d-flex justify-content-start align-items-center"
|
|
19546
|
+
}, item.productinfo.item_type == 'product' && item.productinfo.isproducthasquantitychange == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
19547
|
+
className: " ".concat(cart_cssstyles.quantitybtn) + ' px-2 d-flex align-items-center justify-content-center '
|
|
19548
|
+
}, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
19549
|
+
className: "".concat(cart_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
19550
|
+
onClick: function onClick() {
|
|
19551
|
+
var _item$productinfo2, _item$productinfo3, _item$productinfo4, _item$productinfo5;
|
|
19552
|
+
var quantitystepincrearse = 1;
|
|
19553
|
+
var quantity = parseFloat(item.quantity);
|
|
19554
|
+
if ((item === null || item === void 0 || (_item$productinfo2 = item.productinfo) === null || _item$productinfo2 === void 0 ? void 0 : _item$productinfo2.quantitystepincrearse) != undefined && (item === null || item === void 0 || (_item$productinfo3 = item.productinfo) === null || _item$productinfo3 === void 0 ? void 0 : _item$productinfo3.quantitystepincrearse) != null && (item === null || item === void 0 || (_item$productinfo4 = item.productinfo) === null || _item$productinfo4 === void 0 ? void 0 : _item$productinfo4.quantitystepincrearse) != 1 && (item === null || item === void 0 || (_item$productinfo5 = item.productinfo) === null || _item$productinfo5 === void 0 ? void 0 : _item$productinfo5.quantitystepincrearse) != '') {
|
|
19555
|
+
if (sectionproperties.quantityacceptfloat != 'Accepts decimals') {
|
|
19556
|
+
var _item$productinfo6;
|
|
19557
|
+
quantitystepincrearse = parseInt(item === null || item === void 0 || (_item$productinfo6 = item.productinfo) === null || _item$productinfo6 === void 0 ? void 0 : _item$productinfo6.quantitystepincrearse);
|
|
19558
|
+
} else {
|
|
19559
|
+
var _item$productinfo7;
|
|
19560
|
+
quantitystepincrearse = parseFloat(item === null || item === void 0 || (_item$productinfo7 = item.productinfo) === null || _item$productinfo7 === void 0 ? void 0 : _item$productinfo7.quantitystepincrearse);
|
|
19561
|
+
}
|
|
19562
|
+
}
|
|
19563
|
+
quantity = quantity - quantitystepincrearse;
|
|
18497
19564
|
if (sectionproperties.quantityacceptfloat != 'Accepts decimals') {
|
|
18498
|
-
|
|
18499
|
-
quantitystepincrearse = parseInt(item === null || item === void 0 || (_item$productinfo6 = item.productinfo) === null || _item$productinfo6 === void 0 ? void 0 : _item$productinfo6.quantitystepincrearse);
|
|
19565
|
+
ChangeCartItemQuantityContext(item, parseInt(quantity));
|
|
18500
19566
|
} else {
|
|
18501
|
-
|
|
18502
|
-
quantitystepincrearse = parseFloat(item === null || item === void 0 || (_item$productinfo7 = item.productinfo) === null || _item$productinfo7 === void 0 ? void 0 : _item$productinfo7.quantitystepincrearse);
|
|
19567
|
+
ChangeCartItemQuantityContext(item, parseFloat(quantity).toFixed(3));
|
|
18503
19568
|
}
|
|
18504
19569
|
}
|
|
18505
|
-
|
|
18506
|
-
|
|
18507
|
-
|
|
18508
|
-
|
|
18509
|
-
|
|
18510
|
-
|
|
18511
|
-
|
|
18512
|
-
|
|
18513
|
-
|
|
18514
|
-
|
|
18515
|
-
|
|
18516
|
-
|
|
18517
|
-
|
|
18518
|
-
|
|
18519
|
-
|
|
18520
|
-
|
|
19570
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiMinus.FiMinus, {
|
|
19571
|
+
size: sectionproperties.remove_quantitybtn_textfontsize
|
|
19572
|
+
})), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
19573
|
+
className: "".concat(cart_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
19574
|
+
onClick: function onClick() {
|
|
19575
|
+
var _item$productinfo8, _item$productinfo9, _item$productinfo0, _item$productinfo1;
|
|
19576
|
+
var quantitystepincrearse = 1;
|
|
19577
|
+
var quantity = parseFloat(item.quantity);
|
|
19578
|
+
if ((item === null || item === void 0 || (_item$productinfo8 = item.productinfo) === null || _item$productinfo8 === void 0 ? void 0 : _item$productinfo8.quantitystepincrearse) != undefined && (item === null || item === void 0 || (_item$productinfo9 = item.productinfo) === null || _item$productinfo9 === void 0 ? void 0 : _item$productinfo9.quantitystepincrearse) != null && (item === null || item === void 0 || (_item$productinfo0 = item.productinfo) === null || _item$productinfo0 === void 0 ? void 0 : _item$productinfo0.quantitystepincrearse) != 1 && (item === null || item === void 0 || (_item$productinfo1 = item.productinfo) === null || _item$productinfo1 === void 0 ? void 0 : _item$productinfo1.quantitystepincrearse) != '') {
|
|
19579
|
+
if (sectionproperties.quantityacceptfloat != 'Accepts decimals') {
|
|
19580
|
+
var _item$productinfo10;
|
|
19581
|
+
quantitystepincrearse = parseInt(item === null || item === void 0 || (_item$productinfo10 = item.productinfo) === null || _item$productinfo10 === void 0 ? void 0 : _item$productinfo10.quantitystepincrearse);
|
|
19582
|
+
} else {
|
|
19583
|
+
var _item$productinfo11;
|
|
19584
|
+
quantitystepincrearse = parseFloat(item === null || item === void 0 || (_item$productinfo11 = item.productinfo) === null || _item$productinfo11 === void 0 ? void 0 : _item$productinfo11.quantitystepincrearse);
|
|
19585
|
+
}
|
|
19586
|
+
}
|
|
19587
|
+
quantity = quantity + quantitystepincrearse;
|
|
18521
19588
|
if (sectionproperties.quantityacceptfloat != 'Accepts decimals') {
|
|
18522
|
-
|
|
18523
|
-
quantitystepincrearse = parseInt(item === null || item === void 0 || (_item$productinfo10 = item.productinfo) === null || _item$productinfo10 === void 0 ? void 0 : _item$productinfo10.quantitystepincrearse);
|
|
19589
|
+
ChangeCartItemQuantityContext(item, parseInt(quantity));
|
|
18524
19590
|
} else {
|
|
18525
|
-
|
|
18526
|
-
quantitystepincrearse = parseFloat(item === null || item === void 0 || (_item$productinfo11 = item.productinfo) === null || _item$productinfo11 === void 0 ? void 0 : _item$productinfo11.quantitystepincrearse);
|
|
19591
|
+
ChangeCartItemQuantityContext(item, parseFloat(quantity).toFixed(3));
|
|
18527
19592
|
}
|
|
18528
19593
|
}
|
|
18529
|
-
|
|
18530
|
-
|
|
18531
|
-
|
|
18532
|
-
|
|
18533
|
-
|
|
19594
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiPlus.FiPlus, {
|
|
19595
|
+
size: sectionproperties.add_quantitybtn_textfontsize
|
|
19596
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
19597
|
+
className: "".concat(cart_cssstyles.quantitybtn_text) + ' d-flex align-items-center justify-content-center ',
|
|
19598
|
+
style: {
|
|
19599
|
+
background: 'transparent'
|
|
18534
19600
|
}
|
|
18535
|
-
}
|
|
18536
|
-
|
|
18537
|
-
|
|
18538
|
-
|
|
18539
|
-
|
|
18540
|
-
|
|
18541
|
-
|
|
18542
|
-
|
|
18543
|
-
|
|
18544
|
-
|
|
18545
|
-
|
|
18546
|
-
|
|
18547
|
-
|
|
18548
|
-
|
|
18549
|
-
|
|
19601
|
+
}, item.quantity), langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
19602
|
+
className: "".concat(cart_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
19603
|
+
onClick: function onClick() {
|
|
19604
|
+
var _item$productinfo12, _item$productinfo13, _item$productinfo14, _item$productinfo15;
|
|
19605
|
+
var quantitystepincrearse = 1;
|
|
19606
|
+
var quantity = parseFloat(item.quantity);
|
|
19607
|
+
if ((item === null || item === void 0 || (_item$productinfo12 = item.productinfo) === null || _item$productinfo12 === void 0 ? void 0 : _item$productinfo12.quantitystepincrearse) != undefined && (item === null || item === void 0 || (_item$productinfo13 = item.productinfo) === null || _item$productinfo13 === void 0 ? void 0 : _item$productinfo13.quantitystepincrearse) != null && (item === null || item === void 0 || (_item$productinfo14 = item.productinfo) === null || _item$productinfo14 === void 0 ? void 0 : _item$productinfo14.quantitystepincrearse) != 1 && (item === null || item === void 0 || (_item$productinfo15 = item.productinfo) === null || _item$productinfo15 === void 0 ? void 0 : _item$productinfo15.quantitystepincrearse) != '') {
|
|
19608
|
+
if (sectionproperties.quantityacceptfloat != 'Accepts decimals') {
|
|
19609
|
+
var _item$productinfo16;
|
|
19610
|
+
quantitystepincrearse = parseInt(item === null || item === void 0 || (_item$productinfo16 = item.productinfo) === null || _item$productinfo16 === void 0 ? void 0 : _item$productinfo16.quantitystepincrearse);
|
|
19611
|
+
} else {
|
|
19612
|
+
var _item$productinfo17;
|
|
19613
|
+
quantitystepincrearse = parseFloat(item === null || item === void 0 || (_item$productinfo17 = item.productinfo) === null || _item$productinfo17 === void 0 ? void 0 : _item$productinfo17.quantitystepincrearse);
|
|
19614
|
+
}
|
|
19615
|
+
}
|
|
19616
|
+
quantity = quantity + quantitystepincrearse;
|
|
18550
19617
|
if (sectionproperties.quantityacceptfloat != 'Accepts decimals') {
|
|
18551
|
-
|
|
18552
|
-
quantitystepincrearse = parseInt(item === null || item === void 0 || (_item$productinfo16 = item.productinfo) === null || _item$productinfo16 === void 0 ? void 0 : _item$productinfo16.quantitystepincrearse);
|
|
19618
|
+
ChangeCartItemQuantityContext(item, parseInt(quantity));
|
|
18553
19619
|
} else {
|
|
18554
|
-
|
|
18555
|
-
quantitystepincrearse = parseFloat(item === null || item === void 0 || (_item$productinfo17 = item.productinfo) === null || _item$productinfo17 === void 0 ? void 0 : _item$productinfo17.quantitystepincrearse);
|
|
19620
|
+
ChangeCartItemQuantityContext(item, parseFloat(quantity).toFixed(3));
|
|
18556
19621
|
}
|
|
18557
19622
|
}
|
|
18558
|
-
|
|
18559
|
-
|
|
18560
|
-
|
|
18561
|
-
|
|
18562
|
-
|
|
18563
|
-
|
|
18564
|
-
|
|
18565
|
-
|
|
18566
|
-
|
|
18567
|
-
|
|
18568
|
-
|
|
18569
|
-
|
|
18570
|
-
|
|
18571
|
-
|
|
18572
|
-
|
|
18573
|
-
|
|
19623
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiPlus.FiPlus, {
|
|
19624
|
+
size: sectionproperties.add_quantitybtn_textfontsize
|
|
19625
|
+
})), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
19626
|
+
className: "".concat(cart_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
19627
|
+
onClick: function onClick() {
|
|
19628
|
+
var _item$productinfo18, _item$productinfo19, _item$productinfo20, _item$productinfo21;
|
|
19629
|
+
var quantitystepincrearse = 1;
|
|
19630
|
+
var quantity = parseFloat(item.quantity);
|
|
19631
|
+
if ((item === null || item === void 0 || (_item$productinfo18 = item.productinfo) === null || _item$productinfo18 === void 0 ? void 0 : _item$productinfo18.quantitystepincrearse) != undefined && (item === null || item === void 0 || (_item$productinfo19 = item.productinfo) === null || _item$productinfo19 === void 0 ? void 0 : _item$productinfo19.quantitystepincrearse) != null && (item === null || item === void 0 || (_item$productinfo20 = item.productinfo) === null || _item$productinfo20 === void 0 ? void 0 : _item$productinfo20.quantitystepincrearse) != 1 && (item === null || item === void 0 || (_item$productinfo21 = item.productinfo) === null || _item$productinfo21 === void 0 ? void 0 : _item$productinfo21.quantitystepincrearse) != '') {
|
|
19632
|
+
if (sectionproperties.quantityacceptfloat != 'Accepts decimals') {
|
|
19633
|
+
var _item$productinfo22;
|
|
19634
|
+
quantitystepincrearse = parseInt(item === null || item === void 0 || (_item$productinfo22 = item.productinfo) === null || _item$productinfo22 === void 0 ? void 0 : _item$productinfo22.quantitystepincrearse);
|
|
19635
|
+
} else {
|
|
19636
|
+
var _item$productinfo23;
|
|
19637
|
+
quantitystepincrearse = parseFloat(item === null || item === void 0 || (_item$productinfo23 = item.productinfo) === null || _item$productinfo23 === void 0 ? void 0 : _item$productinfo23.quantitystepincrearse);
|
|
19638
|
+
}
|
|
19639
|
+
}
|
|
19640
|
+
quantity = quantity - quantitystepincrearse;
|
|
18574
19641
|
if (sectionproperties.quantityacceptfloat != 'Accepts decimals') {
|
|
18575
|
-
|
|
18576
|
-
quantitystepincrearse = parseInt(item === null || item === void 0 || (_item$productinfo22 = item.productinfo) === null || _item$productinfo22 === void 0 ? void 0 : _item$productinfo22.quantitystepincrearse);
|
|
19642
|
+
ChangeCartItemQuantityContext(item, parseInt(quantity));
|
|
18577
19643
|
} else {
|
|
18578
|
-
|
|
18579
|
-
quantitystepincrearse = parseFloat(item === null || item === void 0 || (_item$productinfo23 = item.productinfo) === null || _item$productinfo23 === void 0 ? void 0 : _item$productinfo23.quantitystepincrearse);
|
|
19644
|
+
ChangeCartItemQuantityContext(item, parseFloat(quantity).toFixed(3));
|
|
18580
19645
|
}
|
|
18581
19646
|
}
|
|
18582
|
-
|
|
18583
|
-
|
|
18584
|
-
|
|
18585
|
-
|
|
18586
|
-
|
|
19647
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiMinus.FiMinus, {
|
|
19648
|
+
size: sectionproperties.remove_quantitybtn_textfontsize
|
|
19649
|
+
}))), item.productinfo.item_type == 'service' && item.reserv_fixeddate != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19650
|
+
"class": "col-lg-12 p-0 text-start"
|
|
19651
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19652
|
+
className: "row m-0 w-100 d-flex align-items-center justify-content-start",
|
|
19653
|
+
style: {
|
|
19654
|
+
color: sectionproperties.quantitybtn_textcolor
|
|
18587
19655
|
}
|
|
18588
|
-
}
|
|
18589
|
-
|
|
18590
|
-
|
|
18591
|
-
|
|
18592
|
-
|
|
18593
|
-
|
|
18594
|
-
|
|
18595
|
-
|
|
18596
|
-
|
|
18597
|
-
}
|
|
18598
|
-
|
|
18599
|
-
|
|
18600
|
-
|
|
18601
|
-
|
|
18602
|
-
|
|
18603
|
-
|
|
18604
|
-
}
|
|
18605
|
-
|
|
18606
|
-
|
|
18607
|
-
|
|
18608
|
-
|
|
18609
|
-
|
|
18610
|
-
|
|
18611
|
-
}
|
|
18612
|
-
|
|
18613
|
-
|
|
18614
|
-
|
|
18615
|
-
|
|
18616
|
-
|
|
18617
|
-
|
|
18618
|
-
}
|
|
18619
|
-
|
|
18620
|
-
|
|
18621
|
-
|
|
18622
|
-
|
|
18623
|
-
|
|
18624
|
-
|
|
18625
|
-
}
|
|
18626
|
-
|
|
18627
|
-
|
|
18628
|
-
|
|
18629
|
-
|
|
18630
|
-
|
|
18631
|
-
|
|
18632
|
-
}
|
|
18633
|
-
|
|
18634
|
-
|
|
18635
|
-
}
|
|
18636
|
-
|
|
18637
|
-
onClick: function onClick() {
|
|
18638
|
-
deletecartitemContext(item);
|
|
18639
|
-
}
|
|
18640
|
-
}, lang.remove))))))), index != (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.customercart) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.cartitems) === null || _fetchcustomercartQue9 === void 0 ? void 0 : _fetchcustomercartQue9.length) - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18641
|
-
className: "col-lg-12 mt-3 p-0"
|
|
18642
|
-
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
18643
|
-
className: "m-0"
|
|
18644
|
-
})));
|
|
18645
|
-
}))))), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue0 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue0 === void 0 || (_fetchcustomercartQue0 = _fetchcustomercartQue0.data) === null || _fetchcustomercartQue0 === void 0 ? void 0 : _fetchcustomercartQue0.customercart) != null && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue1 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue1 === void 0 || (_fetchcustomercartQue1 = _fetchcustomercartQue1.data) === null || _fetchcustomercartQue1 === void 0 || (_fetchcustomercartQue1 = _fetchcustomercartQue1.customercart) === null || _fetchcustomercartQue1 === void 0 || (_fetchcustomercartQue1 = _fetchcustomercartQue1.cartitems) === null || _fetchcustomercartQue1 === void 0 ? void 0 : _fetchcustomercartQue1.length) != 0 && sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19656
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19657
|
+
"class": "col-lg-12 p-0 text-start flex-row"
|
|
19658
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
19659
|
+
"class": "m-0 p-0",
|
|
19660
|
+
style: {
|
|
19661
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
19662
|
+
}
|
|
19663
|
+
}, item.reserv_fixeddate)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19664
|
+
"class": "col-lg-12 p-0 text-start flex-row"
|
|
19665
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
19666
|
+
"class": "m-0 p-0",
|
|
19667
|
+
style: {
|
|
19668
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
19669
|
+
}
|
|
19670
|
+
}, item.reserv_time)))), item.productinfo.item_type == 'service' && item.reserv_fixeddate == null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19671
|
+
"class": "col-lg-12 p-0 text-start"
|
|
19672
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19673
|
+
className: "row m-0 w-100 d-flex align-items-center justify-content-start",
|
|
19674
|
+
style: {
|
|
19675
|
+
color: sectionproperties.quantitybtn_textcolor
|
|
19676
|
+
}
|
|
19677
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19678
|
+
"class": "col-lg-12 p-0 text-start flex-row"
|
|
19679
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
19680
|
+
"class": "m-0 p-0",
|
|
19681
|
+
style: {
|
|
19682
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
19683
|
+
}
|
|
19684
|
+
}, langdetect == 'en' ? 'From' : 'من', ": ", item.reserv_fromdate)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19685
|
+
"class": "col-lg-12 p-0 text-start flex-row"
|
|
19686
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
19687
|
+
"class": "m-0 p-0",
|
|
19688
|
+
style: {
|
|
19689
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
19690
|
+
}
|
|
19691
|
+
}, langdetect == 'en' ? 'To' : 'إلى', ": ", item.reserv_todate))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19692
|
+
"class": "col-3 p-0 d-flex justify-content-end align-items-center"
|
|
19693
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
19694
|
+
"class": "".concat(cart_cssstyles.trash_btn) + ' cursor-pointer m-0 p-0 ',
|
|
19695
|
+
onClick: function onClick() {
|
|
19696
|
+
deletecartitemContext(item);
|
|
19697
|
+
}
|
|
19698
|
+
}, lang.remove))))))), index != (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue0 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue0 === void 0 || (_fetchcustomercartQue0 = _fetchcustomercartQue0.data) === null || _fetchcustomercartQue0 === void 0 || (_fetchcustomercartQue0 = _fetchcustomercartQue0.customercart) === null || _fetchcustomercartQue0 === void 0 || (_fetchcustomercartQue0 = _fetchcustomercartQue0.cartitems) === null || _fetchcustomercartQue0 === void 0 ? void 0 : _fetchcustomercartQue0.length) - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19699
|
+
className: "col-lg-12 mt-3 p-0"
|
|
19700
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
19701
|
+
className: "m-0"
|
|
19702
|
+
})));
|
|
19703
|
+
}
|
|
19704
|
+
}))))), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue1 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue1 === void 0 || (_fetchcustomercartQue1 = _fetchcustomercartQue1.data) === null || _fetchcustomercartQue1 === void 0 ? void 0 : _fetchcustomercartQue1.customercart) != null && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue10 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue10 === void 0 || (_fetchcustomercartQue10 = _fetchcustomercartQue10.data) === null || _fetchcustomercartQue10 === void 0 || (_fetchcustomercartQue10 = _fetchcustomercartQue10.customercart) === null || _fetchcustomercartQue10 === void 0 || (_fetchcustomercartQue10 = _fetchcustomercartQue10.cartitems) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.length) != 0 && sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18646
19705
|
className: "col-lg-12 mb-1 p-0 mt-auto anim mb-md-4",
|
|
18647
19706
|
style: {
|
|
18648
19707
|
animationDuration: '.8s'
|
|
@@ -18677,7 +19736,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
18677
19736
|
textTransform: sectionproperties.total_texttransform,
|
|
18678
19737
|
color: sectionproperties.total_color
|
|
18679
19738
|
}
|
|
18680
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
19739
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue11 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.data) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.customercart) === null || _fetchcustomercartQue11 === void 0 ? void 0 : _fetchcustomercartQue11.totalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue12 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue12 === void 0 || (_fetchcustomercartQue12 = _fetchcustomercartQue12.data) === null || _fetchcustomercartQue12 === void 0 || (_fetchcustomercartQue12 = _fetchcustomercartQue12.customercart) === null || _fetchcustomercartQue12 === void 0 ? void 0 : _fetchcustomercartQue12.totalprice).toLocaleString() : parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue13 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue13 === void 0 || (_fetchcustomercartQue13 = _fetchcustomercartQue13.data) === null || _fetchcustomercartQue13 === void 0 || (_fetchcustomercartQue13 = _fetchcustomercartQue13.customercart) === null || _fetchcustomercartQue13 === void 0 ? void 0 : _fetchcustomercartQue13.totalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18681
19740
|
"class": "col-lg-12 mt-1 d-flex align-items-center justify-content-start p-0"
|
|
18682
19741
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
18683
19742
|
"class": "m-0 p-0",
|
|
@@ -18686,7 +19745,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
18686
19745
|
fontSize: '13px',
|
|
18687
19746
|
fontWeight: 500
|
|
18688
19747
|
}
|
|
18689
|
-
}, langdetect == 'en' ? sectionproperties.general_text_content : sectionproperties.general_text_content_ar)), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
19748
|
+
}, langdetect == 'en' ? sectionproperties.general_text_content : sectionproperties.general_text_content_ar)), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue14 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue14 === void 0 || (_fetchcustomercartQue14 = _fetchcustomercartQue14.data) === null || _fetchcustomercartQue14 === void 0 || (_fetchcustomercartQue14 = _fetchcustomercartQue14.customercart) === null || _fetchcustomercartQue14 === void 0 || (_fetchcustomercartQue14 = _fetchcustomercartQue14.cartitems) === null || _fetchcustomercartQue14 === void 0 ? void 0 : _fetchcustomercartQue14.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18690
19749
|
className: "col-lg-12 p-0 mt-4 d-flex flex-column align-items-center justify-content-center"
|
|
18691
19750
|
}, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
18692
19751
|
className: " ".concat(cart_cssstyles.cart_btn) + ' mb-2 d-flex align-items-center justify-content-center ',
|
|
@@ -22332,6 +23391,9 @@ var CollectionsFilterHorizontal = function CollectionsFilterHorizontal(props) {
|
|
|
22332
23391
|
}, CollectionsFilter()));
|
|
22333
23392
|
};
|
|
22334
23393
|
|
|
23394
|
+
var serverbaselink$1 = 'https://tabex-co.com';
|
|
23395
|
+
var image_serverbaselink = 'https://tabexseriesmedia.s3.eu-north-1.amazonaws.com';
|
|
23396
|
+
|
|
22335
23397
|
function ownKeys$2i(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; }
|
|
22336
23398
|
function _objectSpread$2i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2i(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22337
23399
|
var CardsSection = function CardsSection(props) {
|
|
@@ -22729,7 +23791,6 @@ var CardsSection = function CardsSection(props) {
|
|
|
22729
23791
|
var _arrayItem$features2;
|
|
22730
23792
|
cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
|
|
22731
23793
|
}
|
|
22732
|
-
cardobj.productfeaturesarray = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.features_a;
|
|
22733
23794
|
cardobj.variants_w_options = variants_w_options;
|
|
22734
23795
|
cardobj.feature_image_url = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 || (_arrayItem$features3 = _arrayItem$features3.featureinfo) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.feature_image_url;
|
|
22735
23796
|
cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
|
|
@@ -38495,7 +39556,7 @@ var Simpleheader = function Simpleheader(props) {
|
|
|
38495
39556
|
function ownKeys$1Y(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; }
|
|
38496
39557
|
function _objectSpread$1Y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1Y(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1Y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
38497
39558
|
var Header8 = function Header8(props) {
|
|
38498
|
-
var _authdetailsContext$i2, _authdetailsContext$i3, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i4, _authdetailsContext$i6, _authdetailsContext$i8, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$c3, _authdetailsContext$c4, _authdetailsContext$
|
|
39559
|
+
var _authdetailsContext$i2, _authdetailsContext$i3, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i4, _authdetailsContext$i6, _authdetailsContext$i8, _authdetailsContext$i9, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$c3, _authdetailsContext$c4, _authdetailsContext$i0, _authdetailsContext$i1, _fetchcustomercartQue2, _fetchcustomercartQue3, _authdetailsContext$i10, _authdetailsContext$i12, _authdetailsContext$i14, _authdetailsContext$i15, _authdetailsContext$i16, _fetchcustomercartQue4, _fetchcustomercartQue5;
|
|
38499
39560
|
var actions = props.actions;
|
|
38500
39561
|
props.actions.history;
|
|
38501
39562
|
var lang = props.actions.lang;
|
|
@@ -39190,7 +40251,7 @@ var Header8 = function Header8(props) {
|
|
|
39190
40251
|
}, langdetect == 'en' ? sectionproperties.footerinfotext_en : sectionproperties.footerinfotext_ar)))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39191
40252
|
"class": sectionproperties.showfooterphonenumber == 'Show' ? sectionproperties.btninsearch == 'Show' ? 'col-xl-3 col-lg-3 d-flex align-items-center p-0 pr-0' : langdetect == 'en' ? 'col-xl-3 col-lg-4 d-flex align-items-center p-0 pl-0' : 'col-xl-3 col-lg-4 d-flex align-items-center p-0 pr-0' : 'col-lg-4 d-flex align-items-center'
|
|
39192
40253
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39193
|
-
"class": 'row w-100 m-0 align-items-center justify-content-end plr-1025-0',
|
|
40254
|
+
"class": sectionproperties.favBtnShow == 'Hide' && sectionproperties.cartBtnShow == 'Hide' ? 'row w-100 m-0 align-items-center justify-content-end plr-1025-0' : (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.contactinfo.instid) == '687d262638f85' ? 'row w-100 m-0 align-items-center justify-content-end plr-1025-0' : 'row w-100 m-0 align-items-center justify-content-between plr-1025-0',
|
|
39194
40255
|
style: {
|
|
39195
40256
|
paddingLeft: langdetect == 'en' ? sectionproperties.showfooterphonenumber == 'Show' ? authdetailsContext.loggedin == true ? '.3rem' : '3rem' : authdetailsContext.loggedin == true ? '4rem' : '6rem' : 0,
|
|
39196
40257
|
paddingRight: langdetect == 'en' ? 0 : sectionproperties.showfooterphonenumber == 'Show' ? authdetailsContext.loggedin == true ? '1rem' : '3rem' : authdetailsContext.loggedin == true ? '4rem' : '6rem'
|
|
@@ -39304,9 +40365,9 @@ var Header8 = function Header8(props) {
|
|
|
39304
40365
|
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' m-0 p-0 d-flex align-items-center '
|
|
39305
40366
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
39306
40367
|
"class": "".concat(header_cssstyles.dropdownitem) + ' dropdownitem d-flex align-items-center m-0 p-0 '
|
|
39307
|
-
}, sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, null), sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiFillStar$1.AiFillStar, null), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
40368
|
+
}, sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, null), sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiFillStar$1.AiFillStar, null), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.contactinfo.instid) == '6808c6295b598' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
39308
40369
|
"class": "ml-2 mr-2"
|
|
39309
|
-
}, " ", langdetect == 'en' ? lang.wishlist : 'المفضلة'), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
40370
|
+
}, " ", langdetect == 'en' ? lang.wishlist : 'المفضلة'), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.contactinfo.instid) != '6808c6295b598' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
39310
40371
|
"class": "ml-2 mr-2"
|
|
39311
40372
|
}, lang.wishlist)))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Divider, {
|
|
39312
40373
|
style: {
|
|
@@ -39450,9 +40511,9 @@ var Header8 = function Header8(props) {
|
|
|
39450
40511
|
"class": langdetect == 'en' ? ' m-0 p-0 ml-2' : ' m-0 p-0 mr-2 '
|
|
39451
40512
|
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar)), /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
39452
40513
|
"class": "w-100 mt-2"
|
|
39453
|
-
}, sectionproperties.fetchparenttype == 'Categories' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
39454
|
-
var _authdetailsContext$
|
|
39455
|
-
var fetchedarray = authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
40514
|
+
}, sectionproperties.fetchparenttype == 'Categories' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 || (_authdetailsContext$i10 = _authdetailsContext$i10.instcategories) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.map(function (item, index) {
|
|
40515
|
+
var _authdetailsContext$i11;
|
|
40516
|
+
var fetchedarray = authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.instcategories;
|
|
39456
40517
|
if (item.isshowntocustomers == 1) {
|
|
39457
40518
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39458
40519
|
"class": "w-100"
|
|
@@ -39465,16 +40526,16 @@ var Header8 = function Header8(props) {
|
|
|
39465
40526
|
"class": "w-100"
|
|
39466
40527
|
}, ButtonDropdown(item, index, fetchedarray));
|
|
39467
40528
|
}
|
|
39468
|
-
})), sectionproperties.fetchparenttype == 'Collections' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
39469
|
-
var _authdetailsContext$
|
|
39470
|
-
var fetchedarray = authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
40529
|
+
})), sectionproperties.fetchparenttype == 'Collections' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 || (_authdetailsContext$i12 = _authdetailsContext$i12.instcollections) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.map(function (item, index) {
|
|
40530
|
+
var _authdetailsContext$i13;
|
|
40531
|
+
var fetchedarray = authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.instcollections;
|
|
39471
40532
|
if (item.isshowntocustomers == 1) {
|
|
39472
40533
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39473
40534
|
"class": "w-100"
|
|
39474
40535
|
}, ButtonDropdown(item, index, fetchedarray));
|
|
39475
40536
|
}
|
|
39476
40537
|
}))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39477
|
-
"class": (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
40538
|
+
"class": (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 || (_authdetailsContext$i14 = _authdetailsContext$i14.instcurrencies) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.length) > 1 ? 'col-lg-8' : sectionproperties.btninsearch != 'Show' && sectionproperties.generalbtn_show == 'Show' ? 'col-xl-10 col-lg-9 flex-row d-flex align-items-center justify-content-start' : 'col-xl-12 col-lg-9 flex-row d-flex align-items-center justify-content-start'
|
|
39478
40539
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39479
40540
|
"class": ' w-100 align-items-center ',
|
|
39480
40541
|
style: {
|
|
@@ -39509,7 +40570,7 @@ var Header8 = function Header8(props) {
|
|
|
39509
40570
|
paddingLeftprops: '25px',
|
|
39510
40571
|
paddingRightprops: '25px'
|
|
39511
40572
|
}
|
|
39512
|
-
})), authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
40573
|
+
})), authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 || (_authdetailsContext$i15 = _authdetailsContext$i15.instcurrencies) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.length) > 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39513
40574
|
"class": 'col-lg-2 d-flex align-items-center justify-content-end '
|
|
39514
40575
|
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, /*#__PURE__*/React__default["default"].createElement("li", {
|
|
39515
40576
|
"class": ' d-flex align-items-center justify-content-center '
|
|
@@ -39521,8 +40582,8 @@ var Header8 = function Header8(props) {
|
|
|
39521
40582
|
"class": ' row m-0 w-100 d-flex align-items-center '
|
|
39522
40583
|
}, /*#__PURE__*/React__default["default"].createElement(FaMoneyBillWave.FaMoneyBillWave, null), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
39523
40584
|
"class": "m-0 p-0 ml-2 mr-2"
|
|
39524
|
-
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), /*#__PURE__*/React__default["default"].createElement(MdKeyboardArrowDown.MdKeyboardArrowDown, null)))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Menu, null, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
39525
|
-
var _authdetailsContext$
|
|
40585
|
+
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), /*#__PURE__*/React__default["default"].createElement(MdKeyboardArrowDown.MdKeyboardArrowDown, null)))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Menu, null, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 || (_authdetailsContext$i16 = _authdetailsContext$i16.instcurrencies) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.map(function (item, index) {
|
|
40586
|
+
var _authdetailsContext$i17;
|
|
39526
40587
|
return /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
39527
40588
|
onClick: function onClick() {
|
|
39528
40589
|
setcurrencyfunccontext(item);
|
|
@@ -39542,7 +40603,7 @@ var Header8 = function Header8(props) {
|
|
|
39542
40603
|
}
|
|
39543
40604
|
}, /*#__PURE__*/React__default["default"].createElement(FaMoneyBillWave.FaMoneyBillWave, null), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
39544
40605
|
"class": 'ml-2 mr-2'
|
|
39545
|
-
}, langdetect == 'en' ? item.currencyname_en : item.currencyname_ar)))), index != (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
40606
|
+
}, langdetect == 'en' ? item.currencyname_en : item.currencyname_ar)))), index != (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 || (_authdetailsContext$i17 = _authdetailsContext$i17.instcurrencies) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.length) - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39546
40607
|
"class": "col-lg-12 p-0"
|
|
39547
40608
|
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
39548
40609
|
"class": "m-0"
|
|
@@ -52498,7 +53559,7 @@ var Allinonefooter = function Allinonefooter(props) {
|
|
|
52498
53559
|
style: {
|
|
52499
53560
|
position: 'fixed',
|
|
52500
53561
|
bottom: 0,
|
|
52501
|
-
background:
|
|
53562
|
+
background: 'white',
|
|
52502
53563
|
borderTop: '1px solid #ccc',
|
|
52503
53564
|
padding: '15px 0',
|
|
52504
53565
|
zIndex: 9999
|
|
@@ -66522,8 +67583,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
66522
67583
|
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar)))), sectionproperties.sectionstyletype == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
66523
67584
|
"class": "row m-0 w-100 allcentered",
|
|
66524
67585
|
style: {
|
|
66525
|
-
zIndex: 2
|
|
66526
|
-
background: sectionproperties.outerbgcolor
|
|
67586
|
+
zIndex: 2
|
|
66527
67587
|
}
|
|
66528
67588
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
66529
67589
|
"class": "row m-0 w-100 allcentered"
|
|
@@ -71898,7 +72958,7 @@ var Freetextsection = function Freetextsection(props) {
|
|
|
71898
72958
|
fontWeight: sectionproperties.prodCatFontWeight,
|
|
71899
72959
|
color: sectionproperties.prodCatColor
|
|
71900
72960
|
}
|
|
71901
|
-
},
|
|
72961
|
+
}, "A breakthrough in dental care: the first in Egypt to offer medical and cosmetic dental coverage in one cost-efficient, high-quality packages. Panacea makes the dental experince personal, seamless, and accessible for everyone.")))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.contactinfo.instid) == '682c6a888d70e' && window.location.pathname == '/home' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71902
72962
|
"class": "col-lg-12 p-0 allcentered d-flex flex-column pt-5 pb-5 px-sm-3",
|
|
71903
72963
|
style: {
|
|
71904
72964
|
// background: 'white',
|
|
@@ -75447,7 +76507,7 @@ var ServicesectionCenteredcards = function ServicesectionCenteredcards(props) {
|
|
|
75447
76507
|
style: {
|
|
75448
76508
|
textDecoration: 'underline'
|
|
75449
76509
|
}
|
|
75450
|
-
},
|
|
76510
|
+
}, 'More Details'))));
|
|
75451
76511
|
})))));
|
|
75452
76512
|
};
|
|
75453
76513
|
|
|
@@ -87208,30 +88268,27 @@ var ServiceCard = function ServiceCard(props) {
|
|
|
87208
88268
|
style: {
|
|
87209
88269
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
87210
88270
|
}
|
|
87211
|
-
}, plainString(langdetect == 'en' ? item.shortdescription : item.shortdescription))), sectionproperties.showfeatures == 'Show' &&
|
|
87212
|
-
|
|
87213
|
-
|
|
87214
|
-
|
|
87215
|
-
|
|
87216
|
-
|
|
87217
|
-
|
|
87218
|
-
|
|
87219
|
-
|
|
87220
|
-
|
|
87221
|
-
|
|
87222
|
-
|
|
87223
|
-
|
|
87224
|
-
|
|
87225
|
-
|
|
87226
|
-
|
|
87227
|
-
|
|
87228
|
-
|
|
87229
|
-
|
|
87230
|
-
|
|
87231
|
-
|
|
87232
|
-
}
|
|
87233
|
-
}, langdetect == 'en' ? fitem === null || fitem === void 0 ? void 0 : fitem.value_en : fitem === null || fitem === void 0 ? void 0 : fitem.value_ar));
|
|
87234
|
-
})))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
88271
|
+
}, plainString(langdetect == 'en' ? item.shortdescription : item.shortdescription))), sectionproperties.showfeatures == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
88272
|
+
"class": "text-start col-lg-12 p-0",
|
|
88273
|
+
style: {
|
|
88274
|
+
height: 40
|
|
88275
|
+
}
|
|
88276
|
+
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
88277
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
88278
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
88279
|
+
path: item === null || item === void 0 ? void 0 : item.feature_image_url,
|
|
88280
|
+
loading: "lazy",
|
|
88281
|
+
style: {
|
|
88282
|
+
maxWidth: '50%',
|
|
88283
|
+
maxHeight: '50%'
|
|
88284
|
+
}
|
|
88285
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
88286
|
+
"class": "text-capitalize mx-2",
|
|
88287
|
+
style: {
|
|
88288
|
+
color: sectionproperties.featurecolor,
|
|
88289
|
+
fontSize: sectionproperties.featurefontsize
|
|
88290
|
+
}
|
|
88291
|
+
}, (item === null || item === void 0 ? void 0 : item.productfeature) != undefined && (item === null || item === void 0 ? void 0 : item.productfeature) != null ? item === null || item === void 0 ? void 0 : item.productfeature : '')))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
87235
88292
|
"class": "col-lg-12 p-0"
|
|
87236
88293
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
87237
88294
|
"class": "row w-100 m-0 d-flex"
|