tabexseriescomponents 0.60.2 → 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 +1185 -182
- package/dist/index.esm.js +1071 -68
- package/dist/index.umd.js +1186 -183
- 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 = '';
|
|
@@ -2433,8 +2433,8 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
2433
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))))));
|
|
2434
2434
|
};
|
|
2435
2435
|
|
|
2436
|
-
function ownKeys$
|
|
2437
|
-
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; }
|
|
2438
2438
|
var ProductExtraFields = function ProductExtraFields(props) {
|
|
2439
2439
|
var _fetchProductInfoQuer, _css, _fetchProductInfoQuer2;
|
|
2440
2440
|
props.actions.lang;
|
|
@@ -2489,9 +2489,9 @@ var ProductExtraFields = function ProductExtraFields(props) {
|
|
|
2489
2489
|
});
|
|
2490
2490
|
}
|
|
2491
2491
|
setproductextravaluesarray(_toConsumableArray__default["default"](tempproductextravaluesarray));
|
|
2492
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2492
|
+
var tempaddtocardpayloadobj = _objectSpread$2G({}, addtocardpayloadobj);
|
|
2493
2493
|
tempaddtocardpayloadobj.extrafields = tempproductextravaluesarray;
|
|
2494
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2494
|
+
setaddtocardpayloadobj(_objectSpread$2G({}, tempaddtocardpayloadobj));
|
|
2495
2495
|
};
|
|
2496
2496
|
var formstyles = {
|
|
2497
2497
|
input_label_name: glamor.css({
|
|
@@ -2724,8 +2724,8 @@ var DescriptionContent = function DescriptionContent(props) {
|
|
|
2724
2724
|
})))));
|
|
2725
2725
|
};
|
|
2726
2726
|
|
|
2727
|
-
function ownKeys$
|
|
2728
|
-
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; }
|
|
2729
2729
|
var AddReview = function AddReview(props) {
|
|
2730
2730
|
var _css;
|
|
2731
2731
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -2777,7 +2777,7 @@ var AddReview = function AddReview(props) {
|
|
|
2777
2777
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
2778
2778
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
2779
2779
|
});
|
|
2780
|
-
setsectionproperties(_objectSpread$
|
|
2780
|
+
setsectionproperties(_objectSpread$2F({}, secpropobj));
|
|
2781
2781
|
}
|
|
2782
2782
|
}, [StatePagePropertiesContext]);
|
|
2783
2783
|
React.useEffect(function () {
|
|
@@ -2786,7 +2786,7 @@ var AddReview = function AddReview(props) {
|
|
|
2786
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) {
|
|
2787
2787
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
2788
2788
|
});
|
|
2789
|
-
setsectionproperties(_objectSpread$
|
|
2789
|
+
setsectionproperties(_objectSpread$2F({}, secpropobj));
|
|
2790
2790
|
}, [pageindexcontext]);
|
|
2791
2791
|
var reviewstyles = {
|
|
2792
2792
|
submitreviewbtn: glamor.css({
|
|
@@ -2912,9 +2912,9 @@ var AddReview = function AddReview(props) {
|
|
|
2912
2912
|
}),
|
|
2913
2913
|
activeColor: "#ffd700",
|
|
2914
2914
|
onChange: function onChange(event) {
|
|
2915
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
2915
|
+
var tempreviewpayloadobj = _objectSpread$2F({}, reviewpayloadobj);
|
|
2916
2916
|
tempreviewpayloadobj.reviewrate = event;
|
|
2917
|
-
setreviewpayloadobj(_objectSpread$
|
|
2917
|
+
setreviewpayloadobj(_objectSpread$2F({}, tempreviewpayloadobj));
|
|
2918
2918
|
}
|
|
2919
2919
|
})))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2920
2920
|
"class": "col-lg-12"
|
|
@@ -2928,9 +2928,9 @@ var AddReview = function AddReview(props) {
|
|
|
2928
2928
|
"class": reviewstyles.form_control,
|
|
2929
2929
|
value: reviewpayloadobj.reviewname,
|
|
2930
2930
|
onChange: function onChange(event) {
|
|
2931
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
2931
|
+
var tempreviewpayloadobj = _objectSpread$2F({}, reviewpayloadobj);
|
|
2932
2932
|
tempreviewpayloadobj.reviewname = event.target.value;
|
|
2933
|
-
setreviewpayloadobj(_objectSpread$
|
|
2933
|
+
setreviewpayloadobj(_objectSpread$2F({}, tempreviewpayloadobj));
|
|
2934
2934
|
}
|
|
2935
2935
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2936
2936
|
"class": "col-lg-12 mb-4"
|
|
@@ -2940,9 +2940,9 @@ var AddReview = function AddReview(props) {
|
|
|
2940
2940
|
"class": reviewstyles.form_control,
|
|
2941
2941
|
value: reviewpayloadobj.reviewtitle,
|
|
2942
2942
|
onChange: function onChange(event) {
|
|
2943
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
2943
|
+
var tempreviewpayloadobj = _objectSpread$2F({}, reviewpayloadobj);
|
|
2944
2944
|
tempreviewpayloadobj.reviewtitle = event.target.value;
|
|
2945
|
-
setreviewpayloadobj(_objectSpread$
|
|
2945
|
+
setreviewpayloadobj(_objectSpread$2F({}, tempreviewpayloadobj));
|
|
2946
2946
|
}
|
|
2947
2947
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2948
2948
|
"class": "col-lg-12 mb-4"
|
|
@@ -2953,9 +2953,9 @@ var AddReview = function AddReview(props) {
|
|
|
2953
2953
|
"class": reviewstyles.form_control + ' form_control ',
|
|
2954
2954
|
value: reviewpayloadobj.reviewbody,
|
|
2955
2955
|
onChange: function onChange(event) {
|
|
2956
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
2956
|
+
var tempreviewpayloadobj = _objectSpread$2F({}, reviewpayloadobj);
|
|
2957
2957
|
tempreviewpayloadobj.reviewbody = event.target.value;
|
|
2958
|
-
setreviewpayloadobj(_objectSpread$
|
|
2958
|
+
setreviewpayloadobj(_objectSpread$2F({}, tempreviewpayloadobj));
|
|
2959
2959
|
},
|
|
2960
2960
|
style: {
|
|
2961
2961
|
resize: 'none',
|
|
@@ -2990,8 +2990,8 @@ var AddReview = function AddReview(props) {
|
|
|
2990
2990
|
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)));
|
|
2991
2991
|
};
|
|
2992
2992
|
|
|
2993
|
-
function ownKeys$
|
|
2994
|
-
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; }
|
|
2995
2995
|
var ProductReviews = function ProductReviews(props) {
|
|
2996
2996
|
var _fetchProductInfoQuer, _fetchProductInfoQuer3, _fetchProductInfoQuer4;
|
|
2997
2997
|
props.actions.lang;
|
|
@@ -3239,7 +3239,7 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
3239
3239
|
size: "md",
|
|
3240
3240
|
"class": "reviewmodal"
|
|
3241
3241
|
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement(AddReview, {
|
|
3242
|
-
actions: _objectSpread$
|
|
3242
|
+
actions: _objectSpread$2E(_objectSpread$2E({}, actions), {}, {
|
|
3243
3243
|
productid: productid,
|
|
3244
3244
|
canuserreview: canuserreview,
|
|
3245
3245
|
addreviewcallback: addreviewcallback
|
|
@@ -3247,143 +3247,1143 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
3247
3247
|
}))));
|
|
3248
3248
|
};
|
|
3249
3249
|
|
|
3250
|
-
function ownKeys$
|
|
3251
|
-
function _objectSpread$
|
|
3252
|
-
var
|
|
3253
|
-
|
|
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;
|
|
3254
3258
|
var lang = props.actions.lang;
|
|
3255
|
-
var actions = props.actions;
|
|
3256
3259
|
var langdetect = props.actions.langdetect;
|
|
3257
|
-
var
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
props.actions.
|
|
3263
|
-
|
|
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;
|
|
3264
3268
|
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
3269
|
+
// const variant_id_return = props.variant_id_return;
|
|
3265
3270
|
var sectionproperties = props.actions.sectionproperties;
|
|
3266
|
-
var addtocardpayloadobj = props.actions.addtocardpayloadobj;
|
|
3267
|
-
var setaddtocardpayloadobj = props.actions.setaddtocardpayloadobj;
|
|
3268
|
-
var routingcountext = props.actions.routingcountext;
|
|
3269
|
-
var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
|
|
3270
|
-
var authdetailsContext = props.actions.authdetailsContext;
|
|
3271
|
-
var variantsku = props.actions.variantsku;
|
|
3272
|
-
var addtofavoritescontext = props.actions.addtofavoritescontext;
|
|
3273
|
-
var variantindexcompleted = props.actions.variantindexcompleted;
|
|
3274
|
-
props.actions.ProductInfoObj;
|
|
3275
|
-
var NotificationManager = props.actions.NotificationManager;
|
|
3276
|
-
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
3277
|
-
var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
|
|
3278
|
-
props.actions.getprice_discountpricepropsnormalonly;
|
|
3279
3271
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
3280
|
-
|
|
3281
|
-
var
|
|
3282
|
-
props.actions.productimagesarray;
|
|
3283
|
-
var sizeguideimage = props.actions.sizeguideimage;
|
|
3284
|
-
// const setopensizeguidemodal = props.actions.setopensizeguidemodal;
|
|
3285
|
-
// const opensizeguidemodal = props.actions.opensizeguidemodal;
|
|
3286
|
-
var _useState = React.useState(false),
|
|
3287
|
-
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
3288
|
-
opensizeguidemodal = _useState2[0],
|
|
3289
|
-
setopensizeguidemodal = _useState2[1];
|
|
3290
|
-
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);
|
|
3291
|
-
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);
|
|
3292
|
-
var _useState3 = React.useState(currentshowingimageindex_pro),
|
|
3272
|
+
// const ProductInfoObj = props.actions.ProductInfoObj;
|
|
3273
|
+
var _useState3 = React.useState({}),
|
|
3293
3274
|
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
_useState6
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
_useState8
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
var _useState9 = React.useState(fetchProductInfoQueryContext.data.data.productinfo),
|
|
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(''),
|
|
3306
3286
|
_useState0 = _slicedToArray__default["default"](_useState9, 2);
|
|
3307
3287
|
_useState0[0];
|
|
3308
|
-
|
|
3309
|
-
var _useState1 = React.useState(
|
|
3310
|
-
_useState10 = _slicedToArray__default["default"](_useState1, 2)
|
|
3311
|
-
_useState10[0];
|
|
3312
|
-
|
|
3313
|
-
var _useState11 = React.useState(
|
|
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),
|
|
3314
3294
|
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
var
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
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;
|
|
3328
3313
|
React.useEffect(function () {
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
} else {
|
|
3333
|
-
itemobj.titlelang = 'ar';
|
|
3334
|
-
}
|
|
3335
|
-
if (stringIsEnglish(fetchProductInfoQueryContext.data.data.productinfo.description_en)) {
|
|
3336
|
-
itemobj.decriptionlang = 'en';
|
|
3337
|
-
} else {
|
|
3338
|
-
itemobj.decriptionlang = 'ar';
|
|
3339
|
-
}
|
|
3340
|
-
setitem(itemobj);
|
|
3341
|
-
settitle(fetchProductInfoQueryContext.data.data.productinfo.name_en);
|
|
3342
|
-
setshareUrl('https://' + authdetailsContext.instinfo.instcred.instexternaldomain + '/productinform/' + fetchProductInfoQueryContext.data.data.productinfo.productid);
|
|
3343
|
-
}, [props.itemprops]);
|
|
3344
|
-
function stringIsEnglish(str) {
|
|
3345
|
-
var titlelang = 'English';
|
|
3346
|
-
var arabic = /[\u0600-\u06FF]/;
|
|
3347
|
-
if (!arabic.test(str)) {
|
|
3348
|
-
titlelang = true;
|
|
3349
|
-
} else {
|
|
3350
|
-
titlelang = false;
|
|
3314
|
+
if (!initializedRef.current && fetchProductInfoQueryContext.isSuccess) {
|
|
3315
|
+
setProductInfoObj(_objectSpread$2D({}, fetchProductInfoQueryContext.data)); // shallow clone
|
|
3316
|
+
initializedRef.current = true; // mark as initialized
|
|
3351
3317
|
}
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
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);
|
|
3361
3330
|
};
|
|
3362
|
-
var
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
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);
|
|
3373
3405
|
}
|
|
3374
|
-
}
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
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
|
+
|
|
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; }
|
|
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; }
|
|
4251
|
+
var Product_itemtype = function Product_itemtype(props) {
|
|
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;
|
|
4253
|
+
var lang = props.actions.lang;
|
|
4254
|
+
var actions = props.actions;
|
|
4255
|
+
var langdetect = props.actions.langdetect;
|
|
4256
|
+
var srcfromprops = props.actions.srcfromprops;
|
|
4257
|
+
var returnpolicyobj = props.actions.returnpolicyobj;
|
|
4258
|
+
var productinfo_cssstyles = props.actions.productinfo_cssstyles;
|
|
4259
|
+
var addtocartfunc = props.actions.addtocartfunc;
|
|
4260
|
+
props.actions.selectproductoptionvalue;
|
|
4261
|
+
props.actions.clearchoosenvaluesbutkeepcurrentvalue;
|
|
4262
|
+
var productimagesarray = props.actions.productimagesarray;
|
|
4263
|
+
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
4264
|
+
var sectionproperties = props.actions.sectionproperties;
|
|
4265
|
+
var addtocardpayloadobj = props.actions.addtocardpayloadobj;
|
|
4266
|
+
var setaddtocardpayloadobj = props.actions.setaddtocardpayloadobj;
|
|
4267
|
+
var routingcountext = props.actions.routingcountext;
|
|
4268
|
+
var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
|
|
4269
|
+
var authdetailsContext = props.actions.authdetailsContext;
|
|
4270
|
+
var variantsku = props.actions.variantsku;
|
|
4271
|
+
var addtofavoritescontext = props.actions.addtofavoritescontext;
|
|
4272
|
+
var variantindexcompleted = props.actions.variantindexcompleted;
|
|
4273
|
+
props.actions.ProductInfoObj;
|
|
4274
|
+
var NotificationManager = props.actions.NotificationManager;
|
|
4275
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
4276
|
+
var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
|
|
4277
|
+
props.actions.getprice_discountpricepropsnormalonly;
|
|
4278
|
+
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
4279
|
+
var currentshowingimageindex_pro = props.actions.currentshowingimageindex;
|
|
4280
|
+
var StoreInfoprops = props.actions.StoreInfoprops;
|
|
4281
|
+
props.actions.productimagesarray;
|
|
4282
|
+
var sizeguideimage = props.actions.sizeguideimage;
|
|
4283
|
+
// const setopensizeguidemodal = props.actions.setopensizeguidemodal;
|
|
4284
|
+
// const opensizeguidemodal = props.actions.opensizeguidemodal;
|
|
4285
|
+
var _useState = React.useState(false),
|
|
4286
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
4287
|
+
opensizeguidemodal = _useState2[0],
|
|
4288
|
+
setopensizeguidemodal = _useState2[1];
|
|
4289
|
+
props.actions.AddtoCartContext;
|
|
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);
|
|
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);
|
|
4292
|
+
var _useState3 = React.useState(currentshowingimageindex_pro),
|
|
4293
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
4294
|
+
currentshowingimageindex = _useState4[0],
|
|
4295
|
+
setcurrentshowingimageindex = _useState4[1];
|
|
4296
|
+
// const DescriptionContent = props.actions.DescriptionContent;
|
|
4297
|
+
var _useState5 = React.useState(''),
|
|
4298
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
4299
|
+
shareUrl = _useState6[0],
|
|
4300
|
+
setshareUrl = _useState6[1];
|
|
4301
|
+
var _useState7 = React.useState(''),
|
|
4302
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
4303
|
+
title = _useState8[0],
|
|
4304
|
+
settitle = _useState8[1];
|
|
4305
|
+
var _useState9 = React.useState(fetchProductInfoQueryContext.data.data.productinfo),
|
|
4306
|
+
_useState0 = _slicedToArray__default["default"](_useState9, 2);
|
|
4307
|
+
_useState0[0];
|
|
4308
|
+
var setitem = _useState0[1];
|
|
4309
|
+
var _useState1 = React.useState(''),
|
|
4310
|
+
_useState10 = _slicedToArray__default["default"](_useState1, 2);
|
|
4311
|
+
_useState10[0];
|
|
4312
|
+
var settotalprice = _useState10[1];
|
|
4313
|
+
var _useState11 = React.useState(null),
|
|
4314
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
4315
|
+
gallery = _useState12[0],
|
|
4316
|
+
setGallery = _useState12[1]; // Store reference to the gallery
|
|
4317
|
+
var Slideshowsettings = {
|
|
4318
|
+
indicators: true,
|
|
4319
|
+
arrows: true,
|
|
4320
|
+
pauseOnHover: false,
|
|
4321
|
+
scale: 2
|
|
4322
|
+
};
|
|
4323
|
+
var toggleFullScreen = function toggleFullScreen() {
|
|
4324
|
+
if (gallery) {
|
|
4325
|
+
gallery.toggleFullScreen();
|
|
4326
|
+
}
|
|
4327
|
+
};
|
|
4328
|
+
React.useEffect(function () {
|
|
4329
|
+
var itemobj = fetchProductInfoQueryContext.data.data.productinfo;
|
|
4330
|
+
if (stringIsEnglish(fetchProductInfoQueryContext.data.data.productinfo.name_en)) {
|
|
4331
|
+
itemobj.titlelang = 'en';
|
|
4332
|
+
} else {
|
|
4333
|
+
itemobj.titlelang = 'ar';
|
|
4334
|
+
}
|
|
4335
|
+
if (stringIsEnglish(fetchProductInfoQueryContext.data.data.productinfo.description_en)) {
|
|
4336
|
+
itemobj.decriptionlang = 'en';
|
|
4337
|
+
} else {
|
|
4338
|
+
itemobj.decriptionlang = 'ar';
|
|
4339
|
+
}
|
|
4340
|
+
setitem(itemobj);
|
|
4341
|
+
settitle(fetchProductInfoQueryContext.data.data.productinfo.name_en);
|
|
4342
|
+
setshareUrl('https://' + authdetailsContext.instinfo.instcred.instexternaldomain + '/productinform/' + fetchProductInfoQueryContext.data.data.productinfo.productid);
|
|
4343
|
+
}, [props.itemprops]);
|
|
4344
|
+
function stringIsEnglish(str) {
|
|
4345
|
+
var titlelang = 'English';
|
|
4346
|
+
var arabic = /[\u0600-\u06FF]/;
|
|
4347
|
+
if (!arabic.test(str)) {
|
|
4348
|
+
titlelang = true;
|
|
4349
|
+
} else {
|
|
4350
|
+
titlelang = false;
|
|
4351
|
+
}
|
|
4352
|
+
return titlelang;
|
|
4353
|
+
}
|
|
4354
|
+
var Ar_redirector = function Ar_redirector() {
|
|
4355
|
+
// var instapikey = authdetailsContext?.instinfo?.instcred?.webapp_apikey;
|
|
4356
|
+
// var productid = fetchProductInfoQueryContext?.data?.data?.productinfo?.productid;
|
|
4357
|
+
|
|
4358
|
+
// const url = https://3d-tryon.vercel.app/?i=${instapikey}&p=${productid};
|
|
4359
|
+
var url = 'https://3d-tryon.vercel.app/?i=68319d088f13f&p=6832fc16af9d7';
|
|
4360
|
+
window.open(url, '_blank');
|
|
4361
|
+
};
|
|
4362
|
+
var ShareButtonsContainer = function ShareButtonsContainer() {
|
|
4363
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4364
|
+
"class": "row m-0 w-100"
|
|
4365
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4366
|
+
"class": "col-lg-12 d-flex justify-content-center flex-column align-items-center p-0"
|
|
4367
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4368
|
+
"class": "m-0 p-0",
|
|
4369
|
+
style: {
|
|
4370
|
+
fontWeight: sectionproperties.sharebtn_FontWeight,
|
|
4371
|
+
color: sectionproperties.sharebtn_color,
|
|
4372
|
+
fontSize: sectionproperties.sharebtn_fontSize + 'px'
|
|
4373
|
+
}
|
|
4374
|
+
}, langdetect == 'en' ? sectionproperties.sharebtn_contentEn : sectionproperties.sharebtn_contentAr), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4375
|
+
className: "Demo__container w-100 m-0 allcentered mt-3"
|
|
4376
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4377
|
+
className: "Demo__some-network ml-2 mr-2"
|
|
4378
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactShare.FacebookShareButton, {
|
|
4379
|
+
url: shareUrl,
|
|
4380
|
+
quote: title,
|
|
4381
|
+
className: "Demo__some-network__share-button"
|
|
4382
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactShare.FacebookIcon, {
|
|
4383
|
+
size: 40,
|
|
4384
|
+
round: true
|
|
4385
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4386
|
+
className: "Demo__some-network ml-2 mr-2"
|
|
3387
4387
|
}, /*#__PURE__*/React__default["default"].createElement(reactShare.EmailShareButton, {
|
|
3388
4388
|
url: shareUrl,
|
|
3389
4389
|
quote: title,
|
|
@@ -4241,7 +5241,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4241
5241
|
}, /*#__PURE__*/React__default["default"].createElement(DescriptionContent, {
|
|
4242
5242
|
actions: props.actions,
|
|
4243
5243
|
srcfromprops: 'undername'
|
|
4244
|
-
})))), /*#__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, {
|
|
4245
5247
|
actions: props.actions
|
|
4246
5248
|
}), /*#__PURE__*/React__default["default"].createElement(ProductExtras, {
|
|
4247
5249
|
addtocartfunc: addtocartfunc,
|
|
@@ -4850,7 +5852,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4850
5852
|
"class": "my-3"
|
|
4851
5853
|
})), sectionproperties.showShareButton == 'Show' && sectionproperties.sharebtnstyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4852
5854
|
"class": "col-lg-12 p-0 allcentered mt-2"
|
|
4853
|
-
}, 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", {
|
|
4854
5856
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-2 pr-md-2 px-1025-1 ',
|
|
4855
5857
|
style: {
|
|
4856
5858
|
minHeight: sectionproperties.height + 'vh'
|
|
@@ -5954,7 +6956,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5954
6956
|
"class": "my-3"
|
|
5955
6957
|
})), sectionproperties.showShareButton == 'Show' && sectionproperties.sharebtnstyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5956
6958
|
"class": "col-lg-12 p-0 allcentered mt-2"
|
|
5957
|
-
}, 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", {
|
|
5958
6960
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 ',
|
|
5959
6961
|
style: {
|
|
5960
6962
|
minHeight: sectionproperties.height + 'vh',
|
|
@@ -6081,7 +7083,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6081
7083
|
dangerouslySetInnerHTML: {
|
|
6082
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
|
|
6083
7085
|
}
|
|
6084
|
-
}))))), 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", {
|
|
6085
7087
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-2 pr-md-2 px-0 ',
|
|
6086
7088
|
style: {
|
|
6087
7089
|
minHeight: '100vh'
|
|
@@ -6348,7 +7350,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6348
7350
|
width: "20px",
|
|
6349
7351
|
height: "20px",
|
|
6350
7352
|
duration: "1s"
|
|
6351
|
-
}))))))))), 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", {
|
|
6352
7354
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-2 pr-md-2 px-0 ',
|
|
6353
7355
|
style: {
|
|
6354
7356
|
minHeight: '100vh'
|
|
@@ -6727,7 +7729,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6727
7729
|
objectFit: 'contain'
|
|
6728
7730
|
},
|
|
6729
7731
|
loading: "lazy"
|
|
6730
|
-
}))), /*#__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", {
|
|
6731
7733
|
"class": "col-12 p-0",
|
|
6732
7734
|
style: {
|
|
6733
7735
|
position: 'fixed',
|
|
@@ -10782,6 +11784,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10782
11784
|
}
|
|
10783
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, {
|
|
10784
11786
|
actions: (_ref = {
|
|
11787
|
+
AddtoCartContext: AddtoCartContext,
|
|
10785
11788
|
variantnotchosendisclaimer: variantnotchosendisclaimer,
|
|
10786
11789
|
setisoutofstock: setisoutofstock,
|
|
10787
11790
|
isoutofstock: isoutofstock,
|