tabexseriescomponents 0.0.298 → 0.0.300
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 +780 -155
- package/dist/index.esm.js +780 -155
- package/dist/index.umd.js +780 -155
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -43,7 +43,7 @@ var AiOutlineClockCircle = require('@react-icons/all-files/ai/AiOutlineClockCirc
|
|
|
43
43
|
var AiOutlinePlus = require('@react-icons/all-files/ai/AiOutlinePlus');
|
|
44
44
|
var AiOutlineCheck = require('@react-icons/all-files/ai/AiOutlineCheck');
|
|
45
45
|
var reactHorizontalScrollingMenu = require('react-horizontal-scrolling-menu');
|
|
46
|
-
require('@mui/material');
|
|
46
|
+
var material = require('@mui/material');
|
|
47
47
|
var HiOutlinePhone = require('@react-icons/all-files/hi/HiOutlinePhone');
|
|
48
48
|
var AiOutlineMail = require('@react-icons/all-files/ai/AiOutlineMail');
|
|
49
49
|
var FaShippingFast = require('@react-icons/all-files/fa/FaShippingFast');
|
|
@@ -605,8 +605,8 @@ var FacebookLoginButton = function FacebookLoginButton(props) {
|
|
|
605
605
|
}));
|
|
606
606
|
};
|
|
607
607
|
|
|
608
|
-
function ownKeys$
|
|
609
|
-
function _objectSpread$
|
|
608
|
+
function ownKeys$2b(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
609
|
+
function _objectSpread$2b(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2b(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2b(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
610
610
|
var Login = function Login(props) {
|
|
611
611
|
var _css;
|
|
612
612
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -679,7 +679,7 @@ var Login = function Login(props) {
|
|
|
679
679
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 ? void 0 : (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 ? void 0 : (_StatePagePropertiesC2 = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC2 === void 0 ? void 0 : _StatePagePropertiesC2.forEach(function (arrayItem, arrayindex) {
|
|
680
680
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
681
681
|
});
|
|
682
|
-
setsectionproperties(_objectSpread$
|
|
682
|
+
setsectionproperties(_objectSpread$2b({}, secpropobj));
|
|
683
683
|
}
|
|
684
684
|
}, [StatePagePropertiesContext]);
|
|
685
685
|
React.useEffect(function () {
|
|
@@ -838,9 +838,9 @@ var Login = function Login(props) {
|
|
|
838
838
|
className: "".concat(loginstyles2.form_control),
|
|
839
839
|
value: payloadobj.email,
|
|
840
840
|
onChange: function onChange(event) {
|
|
841
|
-
var temppayloadobj = _objectSpread$
|
|
841
|
+
var temppayloadobj = _objectSpread$2b({}, payloadobj);
|
|
842
842
|
temppayloadobj.email = event.target.value;
|
|
843
|
-
setpayloadobj(_objectSpread$
|
|
843
|
+
setpayloadobj(_objectSpread$2b({}, temppayloadobj));
|
|
844
844
|
},
|
|
845
845
|
style: {
|
|
846
846
|
background: 'transparent'
|
|
@@ -862,9 +862,9 @@ var Login = function Login(props) {
|
|
|
862
862
|
textplaceholder: "",
|
|
863
863
|
value: payloadobj.password,
|
|
864
864
|
onChange: function onChange(event) {
|
|
865
|
-
var temppayloadobj = _objectSpread$
|
|
865
|
+
var temppayloadobj = _objectSpread$2b({}, payloadobj);
|
|
866
866
|
temppayloadobj.password = event.target.value;
|
|
867
|
-
setpayloadobj(_objectSpread$
|
|
867
|
+
setpayloadobj(_objectSpread$2b({}, temppayloadobj));
|
|
868
868
|
},
|
|
869
869
|
style: {
|
|
870
870
|
background: 'transparent'
|
|
@@ -996,9 +996,9 @@ var Login = function Login(props) {
|
|
|
996
996
|
className: "".concat(loginstyles2.form_control),
|
|
997
997
|
value: forgotpasswordpayload.email,
|
|
998
998
|
onChange: function onChange(event) {
|
|
999
|
-
var temppayloadobj = _objectSpread$
|
|
999
|
+
var temppayloadobj = _objectSpread$2b({}, forgotpasswordpayload);
|
|
1000
1000
|
temppayloadobj.email = event.target.value;
|
|
1001
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1001
|
+
setforgotpasswordpayload(_objectSpread$2b({}, temppayloadobj));
|
|
1002
1002
|
},
|
|
1003
1003
|
disabled: forgetpasswordstage == 'verify' ? true : false,
|
|
1004
1004
|
style: {
|
|
@@ -1013,9 +1013,9 @@ var Login = function Login(props) {
|
|
|
1013
1013
|
className: "".concat(loginstyles2.form_control),
|
|
1014
1014
|
value: forgotpasswordpayload.code,
|
|
1015
1015
|
onChange: function onChange(event) {
|
|
1016
|
-
var temppayloadobj = _objectSpread$
|
|
1016
|
+
var temppayloadobj = _objectSpread$2b({}, forgotpasswordpayload);
|
|
1017
1017
|
temppayloadobj.code = event.target.value;
|
|
1018
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1018
|
+
setforgotpasswordpayload(_objectSpread$2b({}, temppayloadobj));
|
|
1019
1019
|
},
|
|
1020
1020
|
style: {
|
|
1021
1021
|
background: 'transparent'
|
|
@@ -1029,9 +1029,9 @@ var Login = function Login(props) {
|
|
|
1029
1029
|
className: "".concat(loginstyles2.form_control),
|
|
1030
1030
|
value: forgotpasswordpayload.newpassword,
|
|
1031
1031
|
onChange: function onChange(event) {
|
|
1032
|
-
var temppayloadobj = _objectSpread$
|
|
1032
|
+
var temppayloadobj = _objectSpread$2b({}, forgotpasswordpayload);
|
|
1033
1033
|
temppayloadobj.newpassword = event.target.value;
|
|
1034
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1034
|
+
setforgotpasswordpayload(_objectSpread$2b({}, temppayloadobj));
|
|
1035
1035
|
},
|
|
1036
1036
|
style: {
|
|
1037
1037
|
background: 'transparent'
|
|
@@ -1045,9 +1045,9 @@ var Login = function Login(props) {
|
|
|
1045
1045
|
className: "".concat(loginstyles2.form_control),
|
|
1046
1046
|
value: forgotpasswordpayload.confirmnewpassword,
|
|
1047
1047
|
onChange: function onChange(event) {
|
|
1048
|
-
var temppayloadobj = _objectSpread$
|
|
1048
|
+
var temppayloadobj = _objectSpread$2b({}, forgotpasswordpayload);
|
|
1049
1049
|
temppayloadobj.confirmnewpassword = event.target.value;
|
|
1050
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1050
|
+
setforgotpasswordpayload(_objectSpread$2b({}, temppayloadobj));
|
|
1051
1051
|
},
|
|
1052
1052
|
style: {
|
|
1053
1053
|
background: 'transparent'
|
|
@@ -1059,7 +1059,7 @@ var Login = function Login(props) {
|
|
|
1059
1059
|
onClick: function onClick() {
|
|
1060
1060
|
if (forgotpasswordpayload.email.length != 0) {
|
|
1061
1061
|
var runfunc = false;
|
|
1062
|
-
var tempforgotpasswordpayload = _objectSpread$
|
|
1062
|
+
var tempforgotpasswordpayload = _objectSpread$2b({}, forgotpasswordpayload);
|
|
1063
1063
|
tempforgotpasswordpayload.functype = forgetpasswordstage;
|
|
1064
1064
|
if (forgetpasswordstage == 'verify') {
|
|
1065
1065
|
if (tempforgotpasswordpayload.newpassword.length != 0 && tempforgotpasswordpayload.code.length != 0) {
|
|
@@ -1126,11 +1126,11 @@ var css_248z$J = "@media screen and (max-width: 800px) {\n .signup-module_rig
|
|
|
1126
1126
|
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-"};
|
|
1127
1127
|
styleInject(css_248z$J);
|
|
1128
1128
|
|
|
1129
|
-
function ownKeys$
|
|
1130
|
-
function _objectSpread$
|
|
1129
|
+
function ownKeys$2a(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1130
|
+
function _objectSpread$2a(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2a(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1131
1131
|
var defaultstyles = {
|
|
1132
1132
|
option: function option(provided, state) {
|
|
1133
|
-
return _objectSpread$
|
|
1133
|
+
return _objectSpread$2a(_objectSpread$2a({}, provided), {}, {
|
|
1134
1134
|
borderBottom: '1px solid #e6e6e6',
|
|
1135
1135
|
backgroundColor: state.isSelected ? '' : '',
|
|
1136
1136
|
padding: 5,
|
|
@@ -1158,7 +1158,7 @@ var defaultstyles = {
|
|
|
1158
1158
|
};
|
|
1159
1159
|
},
|
|
1160
1160
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1161
|
-
return _objectSpread$
|
|
1161
|
+
return _objectSpread$2a(_objectSpread$2a({}, provided), {}, {
|
|
1162
1162
|
'&:hover': {
|
|
1163
1163
|
// color: '#eac435',
|
|
1164
1164
|
}
|
|
@@ -1167,7 +1167,7 @@ var defaultstyles = {
|
|
|
1167
1167
|
};
|
|
1168
1168
|
var defaultstylestranslated = {
|
|
1169
1169
|
option: function option(provided, state) {
|
|
1170
|
-
return _objectSpread$
|
|
1170
|
+
return _objectSpread$2a(_objectSpread$2a({}, provided), {}, {
|
|
1171
1171
|
borderBottom: '1px solid #e6e6e6',
|
|
1172
1172
|
backgroundColor: state.isSelected ? '' : '',
|
|
1173
1173
|
padding: 5,
|
|
@@ -1198,21 +1198,21 @@ var defaultstylestranslated = {
|
|
|
1198
1198
|
};
|
|
1199
1199
|
},
|
|
1200
1200
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1201
|
-
return _objectSpread$
|
|
1201
|
+
return _objectSpread$2a(_objectSpread$2a({}, provided), {}, {
|
|
1202
1202
|
'&:hover': {
|
|
1203
1203
|
// color: '#eac435',
|
|
1204
1204
|
}
|
|
1205
1205
|
});
|
|
1206
1206
|
},
|
|
1207
1207
|
placeholder: function placeholder(provided, state) {
|
|
1208
|
-
return _objectSpread$
|
|
1208
|
+
return _objectSpread$2a(_objectSpread$2a({}, provided), {}, {
|
|
1209
1209
|
textAlign: 'right'
|
|
1210
1210
|
});
|
|
1211
1211
|
}
|
|
1212
1212
|
};
|
|
1213
1213
|
var defaultstylesnone = {
|
|
1214
1214
|
option: function option(provided, state) {
|
|
1215
|
-
return _objectSpread$
|
|
1215
|
+
return _objectSpread$2a(_objectSpread$2a({}, provided), {}, {
|
|
1216
1216
|
borderBottom: '1px solid #e6e6e6',
|
|
1217
1217
|
backgroundColor: state.isSelected ? '' : '',
|
|
1218
1218
|
padding: 5,
|
|
@@ -1240,7 +1240,7 @@ var defaultstylesnone = {
|
|
|
1240
1240
|
};
|
|
1241
1241
|
},
|
|
1242
1242
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1243
|
-
return _objectSpread$
|
|
1243
|
+
return _objectSpread$2a(_objectSpread$2a({}, provided), {}, {
|
|
1244
1244
|
'&:hover': {
|
|
1245
1245
|
// color: '#eac435',
|
|
1246
1246
|
}
|
|
@@ -1480,6 +1480,7 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
1480
1480
|
|
|
1481
1481
|
//productidprops
|
|
1482
1482
|
var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
1483
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6;
|
|
1483
1484
|
props.actions.lang;
|
|
1484
1485
|
var langdetect = props.actions.langdetect;
|
|
1485
1486
|
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
@@ -1488,19 +1489,7 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
1488
1489
|
var variantindexcompleted = props.actions.variantindexcompleted;
|
|
1489
1490
|
var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
|
|
1490
1491
|
var quantityconditionfoundobjprops = props.actions.quantityconditionfoundobjprops;
|
|
1491
|
-
var productinfo_cssstyles =
|
|
1492
|
-
profitcontainer: glamor.css({
|
|
1493
|
-
width: sectionproperties.profitcontainerwidth + '%',
|
|
1494
|
-
height: sectionproperties.profitcontainerheight + 'px',
|
|
1495
|
-
background: sectionproperties.profitcontainerbgcolor,
|
|
1496
|
-
border: sectionproperties.profitcontainerborderwidth + 'px solid' + sectionproperties.profitcontainerbordercolor,
|
|
1497
|
-
borderRadius: sectionproperties.profitcontainerborderradius + 'px',
|
|
1498
|
-
color: sectionproperties.profitcontainercolor,
|
|
1499
|
-
'@media (max-width: 800px)': {
|
|
1500
|
-
width: '90%'
|
|
1501
|
-
}
|
|
1502
|
-
})
|
|
1503
|
-
};
|
|
1492
|
+
var productinfo_cssstyles = props.actions.productinfo_cssstyles;
|
|
1504
1493
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1505
1494
|
"class": "col-lg-12 p-0"
|
|
1506
1495
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -1582,7 +1571,21 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
1582
1571
|
fontSize: '13px',
|
|
1583
1572
|
lineHeight: '25px'
|
|
1584
1573
|
}
|
|
1585
|
-
}, '-' + parseFloat(Math.round(10.0 * ((parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted)) - parseFloat(getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted))) / parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted))) * 100) / 10.0).toFixed(0) + '%'))))), sectionproperties.
|
|
1574
|
+
}, '-' + parseFloat(Math.round(10.0 * ((parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted)) - parseFloat(getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted))) / parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted))) * 100) / 10.0).toFixed(0) + '%'))))), sectionproperties.showcashbackcontainer == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 ? void 0 : (_fetchProductInfoQuer2 = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : (_fetchProductInfoQuer3 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.productcashbackvalue) > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1575
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mt-1 mb-2"
|
|
1576
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1577
|
+
"class": "".concat(productinfo_cssstyles.cashbackoutercontainer) + ' d-flex flex-row allcentered px-2 '
|
|
1578
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1579
|
+
"class": "m-0 p-0",
|
|
1580
|
+
style: {
|
|
1581
|
+
fontWeight: 500
|
|
1582
|
+
}
|
|
1583
|
+
}, langdetect == 'en' ? sectionproperties.cashbackcontainercontenten : sectionproperties.cashbackcontainercontentar), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1584
|
+
"class": "m-0 p-0 mx-1",
|
|
1585
|
+
style: {
|
|
1586
|
+
fontWeight: 600
|
|
1587
|
+
}
|
|
1588
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : (_fetchProductInfoQuer5 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : (_fetchProductInfoQuer6 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.productcashbackvalue, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), sectionproperties.showprofitcontainer == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1586
1589
|
"class": "col-lg-12 p-0 mb-2"
|
|
1587
1590
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1588
1591
|
"class": productinfo_cssstyles.profitcontainer + ' allcentered '
|
|
@@ -1600,8 +1603,8 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
1600
1603
|
}, 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))))));
|
|
1601
1604
|
};
|
|
1602
1605
|
|
|
1603
|
-
function ownKeys$
|
|
1604
|
-
function _objectSpread$
|
|
1606
|
+
function ownKeys$29(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1607
|
+
function _objectSpread$29(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$29(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$29(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1605
1608
|
var ProductExtraFields = function ProductExtraFields(props) {
|
|
1606
1609
|
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _css, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7;
|
|
1607
1610
|
props.actions.lang;
|
|
@@ -1656,9 +1659,9 @@ var ProductExtraFields = function ProductExtraFields(props) {
|
|
|
1656
1659
|
});
|
|
1657
1660
|
}
|
|
1658
1661
|
setproductextravaluesarray(_toConsumableArray__default["default"](tempproductextravaluesarray));
|
|
1659
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
1662
|
+
var tempaddtocardpayloadobj = _objectSpread$29({}, addtocardpayloadobj);
|
|
1660
1663
|
tempaddtocardpayloadobj.extrafields = tempproductextravaluesarray;
|
|
1661
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1664
|
+
setaddtocardpayloadobj(_objectSpread$29({}, tempaddtocardpayloadobj));
|
|
1662
1665
|
};
|
|
1663
1666
|
var formstyles = {
|
|
1664
1667
|
input_label_name: glamor.css({
|
|
@@ -1763,10 +1766,10 @@ var ProductExtraFields = function ProductExtraFields(props) {
|
|
|
1763
1766
|
}))));
|
|
1764
1767
|
};
|
|
1765
1768
|
|
|
1766
|
-
function ownKeys$
|
|
1767
|
-
function _objectSpread$
|
|
1769
|
+
function ownKeys$28(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1770
|
+
function _objectSpread$28(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$28(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$28(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1768
1771
|
var Product_itemtype = function Product_itemtype(props) {
|
|
1769
|
-
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34,
|
|
1772
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42, _fetchProductInfoQuer43, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer47, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _fetchProductInfoQuer51, _fetchProductInfoQuer52, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _fetchProductInfoQuer55, _fetchProductInfoQuer56, _fetchProductInfoQuer57, _fetchProductInfoQuer58, _fetchProductInfoQuer59, _fetchProductInfoQuer60, _fetchProductInfoQuer61, _fetchProductInfoQuer62, _fetchProductInfoQuer63, _fetchProductInfoQuer64, _fetchProductInfoQuer65, _fetchProductInfoQuer66, _fetchProductInfoQuer67;
|
|
1770
1773
|
var lang = props.actions.lang;
|
|
1771
1774
|
var langdetect = props.actions.langdetect;
|
|
1772
1775
|
var srcfromprops = props.actions.srcfromprops;
|
|
@@ -1862,7 +1865,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1862
1865
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1863
1866
|
className: "col-xl-5 col-lg-4 col-md-12 col-sm-12 mb-md-3 pb-md-4 pl-1 pr-1"
|
|
1864
1867
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1865
|
-
className: sectionproperties.maximizegalleryfullscreen == 'Yes' ? 'col-lg-12 p-0 maximize' : 'col-lg-12 p-0',
|
|
1868
|
+
className: sectionproperties.maximizegalleryfullscreen == 'Yes' ? ' col-lg-12 p-0 maximize ' : 'col-lg-12 p-0',
|
|
1866
1869
|
style: {
|
|
1867
1870
|
width: '100%',
|
|
1868
1871
|
height: 'auto'
|
|
@@ -2001,7 +2004,13 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2001
2004
|
fontSize: sectionproperties.skuFontSize + 'px',
|
|
2002
2005
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
2003
2006
|
}
|
|
2004
|
-
}, fetchProductInfoQueryContext.data.data.productinfo.sku))), sectionproperties.
|
|
2007
|
+
}, fetchProductInfoQueryContext.data.data.productinfo.sku))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer23 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : (_fetchProductInfoQuer24 = _fetchProductInfoQuer23.data) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : (_fetchProductInfoQuer25 = _fetchProductInfoQuer24.productinfo) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : _fetchProductInfoQuer25.currentquantity) < 1 && sectionproperties.showoutofstock == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer26 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : (_fetchProductInfoQuer27 = _fetchProductInfoQuer26.data) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : (_fetchProductInfoQuer28 = _fetchProductInfoQuer27.productinfo) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : _fetchProductInfoQuer28.quantavailtype) == 'limit' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer29 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : (_fetchProductInfoQuer30 = _fetchProductInfoQuer29.data) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : (_fetchProductInfoQuer31 = _fetchProductInfoQuer30.productinfo) === null || _fetchProductInfoQuer31 === void 0 ? void 0 : _fetchProductInfoQuer31.hasvariants) == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2008
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mb-2"
|
|
2009
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2010
|
+
"class": "".concat(productinfo_cssstyles.outstockbadge) + ' allcentered '
|
|
2011
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2012
|
+
"class": "m-0 p-0"
|
|
2013
|
+
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer32 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : (_fetchProductInfoQuer33 = _fetchProductInfoQuer32.data) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : (_fetchProductInfoQuer34 = _fetchProductInfoQuer33.productinfo) === null || _fetchProductInfoQuer34 === void 0 ? void 0 : _fetchProductInfoQuer34.deliverydatetext) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2005
2014
|
"class": "mb-4 col-lg-12",
|
|
2006
2015
|
style: {
|
|
2007
2016
|
width: '100%',
|
|
@@ -2021,9 +2030,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2021
2030
|
style: {
|
|
2022
2031
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
2023
2032
|
}
|
|
2024
|
-
}, langdetect == 'en' ? 'Delivery Time' : 'مدة الشحن', ": ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2033
|
+
}, langdetect == 'en' ? 'Delivery Time' : 'مدة الشحن', ": ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer35 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : (_fetchProductInfoQuer36 = _fetchProductInfoQuer35.data) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : (_fetchProductInfoQuer37 = _fetchProductInfoQuer36.productinfo) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : _fetchProductInfoQuer37.deliverydatetext)), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer38 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : (_fetchProductInfoQuer39 = _fetchProductInfoQuer38.data) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : (_fetchProductInfoQuer40 = _fetchProductInfoQuer39.productinfo) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : _fetchProductInfoQuer40.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing, {
|
|
2025
2034
|
actions: props.actions
|
|
2026
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2035
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer41 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : (_fetchProductInfoQuer42 = _fetchProductInfoQuer41.data) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : (_fetchProductInfoQuer43 = _fetchProductInfoQuer42.productinfo) === null || _fetchProductInfoQuer43 === void 0 ? void 0 : _fetchProductInfoQuer43.hasvariants) == 1 && sectionproperties.productInformationType == 'Profile' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2027
2036
|
className: "row m-0 w-100 d-flex align-items-start"
|
|
2028
2037
|
}, ProductInfoObj === null || ProductInfoObj === void 0 ? void 0 : (_ProductInfoObj$data = ProductInfoObj.data) === null || _ProductInfoObj$data === void 0 ? void 0 : (_ProductInfoObj$data$ = _ProductInfoObj$data.productinfo) === null || _ProductInfoObj$data$ === void 0 ? void 0 : (_ProductInfoObj$data$2 = _ProductInfoObj$data$.productoptions) === null || _ProductInfoObj$data$2 === void 0 ? void 0 : _ProductInfoObj$data$2.map(function (item, index) {
|
|
2029
2038
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -2098,7 +2107,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2098
2107
|
}
|
|
2099
2108
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2100
2109
|
className: "row m-0 w-100 d-flex align-items-center"
|
|
2101
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2110
|
+
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer44 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer44 === void 0 ? void 0 : (_fetchProductInfoQuer45 = _fetchProductInfoQuer44.data) === null || _fetchProductInfoQuer45 === void 0 ? void 0 : (_fetchProductInfoQuer46 = _fetchProductInfoQuer45.productinfo) === null || _fetchProductInfoQuer46 === void 0 ? void 0 : _fetchProductInfoQuer46.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer47 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer47 === void 0 ? void 0 : (_fetchProductInfoQuer48 = _fetchProductInfoQuer47.data) === null || _fetchProductInfoQuer48 === void 0 ? void 0 : (_fetchProductInfoQuer49 = _fetchProductInfoQuer48.productinfo) === null || _fetchProductInfoQuer49 === void 0 ? void 0 : _fetchProductInfoQuer49.isproducthasquantitychange) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2102
2111
|
className: "col-lg-12 p-0 mb-2 d-flex justofy-content-start"
|
|
2103
2112
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2104
2113
|
className: "m-0 p-0",
|
|
@@ -2115,7 +2124,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2115
2124
|
style: {
|
|
2116
2125
|
justifyContent: sectionproperties.cartbtncentered == 'Centered' ? 'center' : 'start'
|
|
2117
2126
|
}
|
|
2118
|
-
}, sectionproperties.quantitybtn_show == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2127
|
+
}, sectionproperties.quantitybtn_show == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer50 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer50 === void 0 ? void 0 : (_fetchProductInfoQuer51 = _fetchProductInfoQuer50.data) === null || _fetchProductInfoQuer51 === void 0 ? void 0 : (_fetchProductInfoQuer52 = _fetchProductInfoQuer51.productinfo) === null || _fetchProductInfoQuer52 === void 0 ? void 0 : _fetchProductInfoQuer52.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer53 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer53 === void 0 ? void 0 : (_fetchProductInfoQuer54 = _fetchProductInfoQuer53.data) === null || _fetchProductInfoQuer54 === void 0 ? void 0 : (_fetchProductInfoQuer55 = _fetchProductInfoQuer54.productinfo) === null || _fetchProductInfoQuer55 === void 0 ? void 0 : _fetchProductInfoQuer55.isproducthasquantitychange) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
2119
2128
|
className: " ".concat(productinfo_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
2120
2129
|
style: {
|
|
2121
2130
|
height: sectionproperties.quantitybtn_height + 'px',
|
|
@@ -2126,11 +2135,11 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2126
2135
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2127
2136
|
className: "".concat(productinfo_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
2128
2137
|
onClick: function onClick() {
|
|
2129
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2138
|
+
var tempaddtocardpayloadobj = _objectSpread$28({}, addtocardpayloadobj);
|
|
2130
2139
|
if (tempaddtocardpayloadobj.quantity > 0) {
|
|
2131
2140
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity - 1;
|
|
2132
2141
|
}
|
|
2133
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2142
|
+
setaddtocardpayloadobj(_objectSpread$28({}, tempaddtocardpayloadobj));
|
|
2134
2143
|
}
|
|
2135
2144
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2136
2145
|
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-down' : 'h-100 allcentered',
|
|
@@ -2144,9 +2153,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2144
2153
|
}, addtocardpayloadobj.quantity), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2145
2154
|
className: "".concat(productinfo_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
2146
2155
|
onClick: function onClick() {
|
|
2147
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2156
|
+
var tempaddtocardpayloadobj = _objectSpread$28({}, addtocardpayloadobj);
|
|
2148
2157
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + 1;
|
|
2149
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2158
|
+
setaddtocardpayloadobj(_objectSpread$28({}, tempaddtocardpayloadobj));
|
|
2150
2159
|
}
|
|
2151
2160
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2152
2161
|
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-up' : 'h-100 allcentered'
|
|
@@ -2157,7 +2166,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2157
2166
|
}
|
|
2158
2167
|
}, sectionproperties.quantityiconstyle == 'Plus/Minus' && /*#__PURE__*/React__default["default"].createElement(FiPlus.FiPlus, {
|
|
2159
2168
|
size: sectionproperties.add_quantitybtn_textfontsize
|
|
2160
|
-
})))), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2169
|
+
})))), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer56 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer56 === void 0 ? void 0 : (_fetchProductInfoQuer57 = _fetchProductInfoQuer56.data) === null || _fetchProductInfoQuer57 === void 0 ? void 0 : (_fetchProductInfoQuer58 = _fetchProductInfoQuer57.productinfo) === null || _fetchProductInfoQuer58 === void 0 ? void 0 : _fetchProductInfoQuer58.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
2161
2170
|
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
2162
2171
|
onClick: function onClick() {
|
|
2163
2172
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
@@ -2223,7 +2232,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2223
2232
|
size: sectionproperties.favBtnIconfontsize
|
|
2224
2233
|
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
|
|
2225
2234
|
size: sectionproperties.favBtnIconfontsize
|
|
2226
|
-
}))))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2235
|
+
}))))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer59 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer59 === void 0 ? void 0 : (_fetchProductInfoQuer60 = _fetchProductInfoQuer59.data) === null || _fetchProductInfoQuer60 === void 0 ? void 0 : (_fetchProductInfoQuer61 = _fetchProductInfoQuer60.productinfo) === null || _fetchProductInfoQuer61 === void 0 ? void 0 : _fetchProductInfoQuer61.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2227
2236
|
"class": "row m-0 w-100 mt-3",
|
|
2228
2237
|
style: {
|
|
2229
2238
|
overflow: 'hidden'
|
|
@@ -2297,7 +2306,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2297
2306
|
size: sectionproperties.favBtnIconfontsize
|
|
2298
2307
|
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
|
|
2299
2308
|
size: sectionproperties.favBtnIconfontsize
|
|
2300
|
-
})))))))), sectionproperties.productInformationType == 'Product/Service Information' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2309
|
+
})))))))), sectionproperties.productInformationType == 'Product/Service Information' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer62 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer62 === void 0 ? void 0 : (_fetchProductInfoQuer63 = _fetchProductInfoQuer62.data) === null || _fetchProductInfoQuer63 === void 0 ? void 0 : (_fetchProductInfoQuer64 = _fetchProductInfoQuer63.productinfo) === null || _fetchProductInfoQuer64 === void 0 ? void 0 : _fetchProductInfoQuer64.isproducttobesold) == 1 && sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2301
2310
|
className: "col-lg-12 p-0 mb-3"
|
|
2302
2311
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2303
2312
|
className: "row m-0 w-100 d-flex flex-row"
|
|
@@ -2334,7 +2343,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2334
2343
|
style: {
|
|
2335
2344
|
textDecoration: 'none'
|
|
2336
2345
|
}
|
|
2337
|
-
}, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))), sectionproperties.availabilitybtnposition == 'Bottom' && sectionproperties.show_availability == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2346
|
+
}, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))), sectionproperties.availabilitybtnposition == 'Bottom' && sectionproperties.show_availability == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer65 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer65 === void 0 ? void 0 : (_fetchProductInfoQuer66 = _fetchProductInfoQuer65.data) === null || _fetchProductInfoQuer66 === void 0 ? void 0 : (_fetchProductInfoQuer67 = _fetchProductInfoQuer66.productinfo) === null || _fetchProductInfoQuer67 === void 0 ? void 0 : _fetchProductInfoQuer67.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2338
2347
|
className: "col-lg-12 p-0 mb-3 mt-2"
|
|
2339
2348
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2340
2349
|
style: {
|
|
@@ -2426,8 +2435,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2426
2435
|
}, StoreInfoprops())))));
|
|
2427
2436
|
};
|
|
2428
2437
|
|
|
2429
|
-
function ownKeys$
|
|
2430
|
-
function _objectSpread$
|
|
2438
|
+
function ownKeys$27(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2439
|
+
function _objectSpread$27(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$27(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$27(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2431
2440
|
var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
2432
2441
|
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24;
|
|
2433
2442
|
var langdetect = props.actions.langdetect;
|
|
@@ -2468,7 +2477,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2468
2477
|
slots = _useState6[0],
|
|
2469
2478
|
setslots = _useState6[1];
|
|
2470
2479
|
React.useEffect(function () {
|
|
2471
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2480
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2472
2481
|
item_type: 'service'
|
|
2473
2482
|
}));
|
|
2474
2483
|
}, [tabsarray]);
|
|
@@ -2480,16 +2489,16 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2480
2489
|
if (diffDays.toString() != 'NaN') {
|
|
2481
2490
|
if (date2 <= date1) {
|
|
2482
2491
|
NotificationManager.warning('', 'Please choose another date.');
|
|
2483
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2492
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2484
2493
|
quantity: 0
|
|
2485
2494
|
}));
|
|
2486
2495
|
} else {
|
|
2487
2496
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= diffDays && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= diffDays) {
|
|
2488
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2497
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2489
2498
|
quantity: diffDays
|
|
2490
2499
|
}));
|
|
2491
2500
|
} else {
|
|
2492
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2501
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2493
2502
|
quantity: 0
|
|
2494
2503
|
}));
|
|
2495
2504
|
NotificationManager.warning('', 'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
|
|
@@ -2625,7 +2634,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2625
2634
|
min: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : (_fetchProductInfoQuer10 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : (_fetchProductInfoQuer11 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : (_fetchProductInfoQuer12 = _fetchProductInfoQuer11.serviceinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.reservationstarts,
|
|
2626
2635
|
max: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : (_fetchProductInfoQuer14 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : (_fetchProductInfoQuer15 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : (_fetchProductInfoQuer16 = _fetchProductInfoQuer15.serviceinfo) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.reservationends,
|
|
2627
2636
|
onChange: function onChange(event) {
|
|
2628
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2637
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2629
2638
|
from: event.target.value
|
|
2630
2639
|
}));
|
|
2631
2640
|
}
|
|
@@ -2645,7 +2654,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2645
2654
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
2646
2655
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
2647
2656
|
onChange: function onChange(event) {
|
|
2648
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2657
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2649
2658
|
to: event.target.value
|
|
2650
2659
|
}));
|
|
2651
2660
|
}
|
|
@@ -2665,7 +2674,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2665
2674
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
2666
2675
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
2667
2676
|
onChange: function onChange(event) {
|
|
2668
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2677
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2669
2678
|
date: event.target.value
|
|
2670
2679
|
}));
|
|
2671
2680
|
setcurrentmutatestate('/fetchserviceslots');
|
|
@@ -2716,7 +2725,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2716
2725
|
color: ischoosed ? sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? sectionproperties.generalbtn_textColoronhover : sectionproperties.generalbtn_textColor : ''
|
|
2717
2726
|
},
|
|
2718
2727
|
onClick: function onClick() {
|
|
2719
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2728
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2720
2729
|
time: item.slot
|
|
2721
2730
|
}));
|
|
2722
2731
|
}
|
|
@@ -2725,7 +2734,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2725
2734
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
2726
2735
|
"class": TabsStyles.booknow_btn_resp + ' allcentered ',
|
|
2727
2736
|
onClick: function onClick() {
|
|
2728
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2737
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2729
2738
|
time: item.slot
|
|
2730
2739
|
}));
|
|
2731
2740
|
}
|
|
@@ -2767,7 +2776,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2767
2776
|
"class": ischoosed == true ? TabsStyles.timeSlotContainer_active + ' allcentered cursor-pointer px-1 ' : TabsStyles.timeSlotContainer + ' allcentered cursor-pointer px-1 ',
|
|
2768
2777
|
style: {},
|
|
2769
2778
|
onClick: function onClick() {
|
|
2770
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2779
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2771
2780
|
time: item.slot
|
|
2772
2781
|
}));
|
|
2773
2782
|
}
|
|
@@ -3420,8 +3429,8 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
3420
3429
|
}, StoreInfoprops()))));
|
|
3421
3430
|
};
|
|
3422
3431
|
|
|
3423
|
-
function ownKeys$
|
|
3424
|
-
function _objectSpread$
|
|
3432
|
+
function ownKeys$26(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3433
|
+
function _objectSpread$26(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$26(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$26(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3425
3434
|
var AddReview = function AddReview(props) {
|
|
3426
3435
|
var _css;
|
|
3427
3436
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -3475,7 +3484,7 @@ var AddReview = function AddReview(props) {
|
|
|
3475
3484
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
3476
3485
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
3477
3486
|
});
|
|
3478
|
-
setsectionproperties(_objectSpread$
|
|
3487
|
+
setsectionproperties(_objectSpread$26({}, secpropobj));
|
|
3479
3488
|
}
|
|
3480
3489
|
}, [StatePagePropertiesContext]);
|
|
3481
3490
|
React.useEffect(function () {
|
|
@@ -3484,7 +3493,7 @@ var AddReview = function AddReview(props) {
|
|
|
3484
3493
|
templatepropcontext === null || templatepropcontext === void 0 ? void 0 : (_templatepropcontext$ = templatepropcontext.pagesnprop[pageindexcontext]) === null || _templatepropcontext$ === void 0 ? void 0 : (_templatepropcontext$2 = _templatepropcontext$.pageproperties) === null || _templatepropcontext$2 === void 0 ? void 0 : _templatepropcontext$2.forEach(function (arrayItem, arrayindex) {
|
|
3485
3494
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
3486
3495
|
});
|
|
3487
|
-
setsectionproperties(_objectSpread$
|
|
3496
|
+
setsectionproperties(_objectSpread$26({}, secpropobj));
|
|
3488
3497
|
}, [pageindexcontext]);
|
|
3489
3498
|
var reviewstyles = {
|
|
3490
3499
|
submitreviewbtn: glamor.css({
|
|
@@ -3610,9 +3619,9 @@ var AddReview = function AddReview(props) {
|
|
|
3610
3619
|
}),
|
|
3611
3620
|
activeColor: "#ffd700",
|
|
3612
3621
|
onChange: function onChange(event) {
|
|
3613
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
3622
|
+
var tempreviewpayloadobj = _objectSpread$26({}, reviewpayloadobj);
|
|
3614
3623
|
tempreviewpayloadobj.reviewrate = event;
|
|
3615
|
-
setreviewpayloadobj(_objectSpread$
|
|
3624
|
+
setreviewpayloadobj(_objectSpread$26({}, tempreviewpayloadobj));
|
|
3616
3625
|
}
|
|
3617
3626
|
})))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3618
3627
|
"class": "col-lg-12"
|
|
@@ -3626,9 +3635,9 @@ var AddReview = function AddReview(props) {
|
|
|
3626
3635
|
"class": reviewstyles.form_control,
|
|
3627
3636
|
value: reviewpayloadobj.reviewname,
|
|
3628
3637
|
onChange: function onChange(event) {
|
|
3629
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
3638
|
+
var tempreviewpayloadobj = _objectSpread$26({}, reviewpayloadobj);
|
|
3630
3639
|
tempreviewpayloadobj.reviewname = event.target.value;
|
|
3631
|
-
setreviewpayloadobj(_objectSpread$
|
|
3640
|
+
setreviewpayloadobj(_objectSpread$26({}, tempreviewpayloadobj));
|
|
3632
3641
|
}
|
|
3633
3642
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3634
3643
|
"class": "col-lg-12 mb-4"
|
|
@@ -3638,9 +3647,9 @@ var AddReview = function AddReview(props) {
|
|
|
3638
3647
|
"class": reviewstyles.form_control,
|
|
3639
3648
|
value: reviewpayloadobj.reviewtitle,
|
|
3640
3649
|
onChange: function onChange(event) {
|
|
3641
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
3650
|
+
var tempreviewpayloadobj = _objectSpread$26({}, reviewpayloadobj);
|
|
3642
3651
|
tempreviewpayloadobj.reviewtitle = event.target.value;
|
|
3643
|
-
setreviewpayloadobj(_objectSpread$
|
|
3652
|
+
setreviewpayloadobj(_objectSpread$26({}, tempreviewpayloadobj));
|
|
3644
3653
|
}
|
|
3645
3654
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3646
3655
|
"class": "col-lg-12 mb-4"
|
|
@@ -3651,9 +3660,9 @@ var AddReview = function AddReview(props) {
|
|
|
3651
3660
|
"class": reviewstyles.form_control + ' form_control ',
|
|
3652
3661
|
value: reviewpayloadobj.reviewbody,
|
|
3653
3662
|
onChange: function onChange(event) {
|
|
3654
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
3663
|
+
var tempreviewpayloadobj = _objectSpread$26({}, reviewpayloadobj);
|
|
3655
3664
|
tempreviewpayloadobj.reviewbody = event.target.value;
|
|
3656
|
-
setreviewpayloadobj(_objectSpread$
|
|
3665
|
+
setreviewpayloadobj(_objectSpread$26({}, tempreviewpayloadobj));
|
|
3657
3666
|
},
|
|
3658
3667
|
style: {
|
|
3659
3668
|
resize: 'none',
|
|
@@ -3688,10 +3697,253 @@ var AddReview = function AddReview(props) {
|
|
|
3688
3697
|
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)));
|
|
3689
3698
|
};
|
|
3690
3699
|
|
|
3700
|
+
function ownKeys$25(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3701
|
+
function _objectSpread$25(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$25(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$25(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3702
|
+
var ProductReviews = function ProductReviews(props) {
|
|
3703
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12;
|
|
3704
|
+
props.actions.lang;
|
|
3705
|
+
var langdetect = props.actions.langdetect;
|
|
3706
|
+
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
3707
|
+
var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
3708
|
+
props.actions.NotificationManager;
|
|
3709
|
+
var sectionproperties = props.actions.sectionproperties;
|
|
3710
|
+
var actions = props.actions;
|
|
3711
|
+
var productid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 ? void 0 : (_fetchProductInfoQuer2 = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : (_fetchProductInfoQuer3 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.productid;
|
|
3712
|
+
var productinfo_cssstyles = props.actions.productinfo_cssstyles;
|
|
3713
|
+
var _useState = React.useState(false),
|
|
3714
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
3715
|
+
canuserreview = _useState2[0],
|
|
3716
|
+
setcanuserreview = _useState2[1];
|
|
3717
|
+
var _useState3 = React.useState(false),
|
|
3718
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
3719
|
+
openreviewmodal = _useState4[0],
|
|
3720
|
+
setopenreviewmodal = _useState4[1];
|
|
3721
|
+
var _useState5 = React.useState('all'),
|
|
3722
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
3723
|
+
filterproductreviews = _useState6[0],
|
|
3724
|
+
setfilterproductreviews = _useState6[1];
|
|
3725
|
+
var _useState7 = React.useState([]),
|
|
3726
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
3727
|
+
productreviews = _useState8[0],
|
|
3728
|
+
setproductreviews = _useState8[1];
|
|
3729
|
+
React.useEffect(function () {
|
|
3730
|
+
if (fetchProductInfoQueryContext.isSuccess) {
|
|
3731
|
+
getreviewsassignermutationfunc();
|
|
3732
|
+
}
|
|
3733
|
+
}, [filterproductreviews]);
|
|
3734
|
+
var getreviewsassignermutationfunc = function getreviewsassignermutationfunc() {
|
|
3735
|
+
var _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6;
|
|
3736
|
+
GeneralAPIMutationContext.mutate({
|
|
3737
|
+
endpointurl: '/fetchproductreviews',
|
|
3738
|
+
productid: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : (_fetchProductInfoQuer5 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : (_fetchProductInfoQuer6 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.productid,
|
|
3739
|
+
filterproductreviews: filterproductreviews,
|
|
3740
|
+
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
3741
|
+
if (data.data.status) {
|
|
3742
|
+
setproductreviews(data.data.productreviews);
|
|
3743
|
+
setcanuserreview(data.data.canuserAddReview);
|
|
3744
|
+
}
|
|
3745
|
+
}
|
|
3746
|
+
});
|
|
3747
|
+
};
|
|
3748
|
+
var addreviewcallback = function addreviewcallback() {
|
|
3749
|
+
setopenreviewmodal(false);
|
|
3750
|
+
getreviewsassignermutationfunc();
|
|
3751
|
+
fetchProductInfoQueryContext.refetch();
|
|
3752
|
+
};
|
|
3753
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3754
|
+
className: 'row w-100 ml-0 mr-0',
|
|
3755
|
+
style: {
|
|
3756
|
+
marginTop: sectionproperties.marginTop + 'px'
|
|
3757
|
+
}
|
|
3758
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3759
|
+
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0 plr-1025-0"
|
|
3760
|
+
}, GeneralAPIMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3761
|
+
"class": "col-lg-12 allcentered",
|
|
3762
|
+
style: {
|
|
3763
|
+
height: '20vh'
|
|
3764
|
+
}
|
|
3765
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.Messaging, {
|
|
3766
|
+
color: "#ccc",
|
|
3767
|
+
width: "10px",
|
|
3768
|
+
height: "10px",
|
|
3769
|
+
duration: "1s"
|
|
3770
|
+
})), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3771
|
+
"class": "row m-0 w-100"
|
|
3772
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3773
|
+
"class": "col-lg-3"
|
|
3774
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3775
|
+
"class": "row m-0 w-100 allcentered"
|
|
3776
|
+
}, canuserreview && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3777
|
+
"class": "col-lg-12 allcentered mb-3 p-0"
|
|
3778
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3779
|
+
"class": "".concat(productinfo_cssstyles.reviewbutton) + ' ',
|
|
3780
|
+
onClick: function onClick() {
|
|
3781
|
+
setopenreviewmodal(true);
|
|
3782
|
+
}
|
|
3783
|
+
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3784
|
+
"class": "col-lg-12 p-0 mb-3"
|
|
3785
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3786
|
+
"class": "row m-0 w-100 py-3 px-2",
|
|
3787
|
+
style: {
|
|
3788
|
+
borderRadius: 10,
|
|
3789
|
+
background: '#eee'
|
|
3790
|
+
}
|
|
3791
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3792
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
3793
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3794
|
+
"class": "m-0 font-weight-600 text-uppercase",
|
|
3795
|
+
style: {
|
|
3796
|
+
fontSize: '17px'
|
|
3797
|
+
}
|
|
3798
|
+
}, langdetect == 'en' ? 'Overall Ratings' : 'جميع التقييمات')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3799
|
+
"class": "col-lg-12 pl-3 pr-3"
|
|
3800
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3801
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
3802
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3803
|
+
"class": "m-0 p-0 font-weight-600",
|
|
3804
|
+
style: {
|
|
3805
|
+
fontSize: '20px'
|
|
3806
|
+
}
|
|
3807
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : (_fetchProductInfoQuer8 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : (_fetchProductInfoQuer9 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.productoverallrate, "/5")), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3808
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
3809
|
+
}, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
|
|
3810
|
+
count: 5,
|
|
3811
|
+
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : (_fetchProductInfoQuer11 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : (_fetchProductInfoQuer12 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.productoverallrate,
|
|
3812
|
+
edit: false,
|
|
3813
|
+
size: 18,
|
|
3814
|
+
emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3815
|
+
className: "far fa-star",
|
|
3816
|
+
style: {
|
|
3817
|
+
color: '#bfbfbf'
|
|
3818
|
+
}
|
|
3819
|
+
}),
|
|
3820
|
+
halfIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3821
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
3822
|
+
}),
|
|
3823
|
+
filledIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3824
|
+
className: "fa fa-star",
|
|
3825
|
+
style: {
|
|
3826
|
+
color: '#FAB400'
|
|
3827
|
+
}
|
|
3828
|
+
}),
|
|
3829
|
+
activeColor: "#ffd700"
|
|
3830
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3831
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mb-3"
|
|
3832
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3833
|
+
"class": "row m-0 w-100 py-3 px-2",
|
|
3834
|
+
style: {
|
|
3835
|
+
borderRadius: 10,
|
|
3836
|
+
background: '#eee'
|
|
3837
|
+
}
|
|
3838
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3839
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
3840
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3841
|
+
"class": "m-0 font-weight-600 text-uppercase",
|
|
3842
|
+
style: {
|
|
3843
|
+
fontSize: '17px'
|
|
3844
|
+
}
|
|
3845
|
+
}, langdetect == 'en' ? 'Filter' : 'فلترة')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3846
|
+
"class": "col-lg-12 pl-3 pr-3"
|
|
3847
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3848
|
+
"class": "col-lg-12 d-flex justify-content-center"
|
|
3849
|
+
}, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
|
|
3850
|
+
count: 5,
|
|
3851
|
+
value: filterproductreviews
|
|
3852
|
+
// edit={false}
|
|
3853
|
+
,
|
|
3854
|
+
size: 18,
|
|
3855
|
+
emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3856
|
+
className: "far fa-star",
|
|
3857
|
+
style: {
|
|
3858
|
+
color: '#bfbfbf'
|
|
3859
|
+
}
|
|
3860
|
+
}),
|
|
3861
|
+
halfIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3862
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
3863
|
+
}),
|
|
3864
|
+
filledIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3865
|
+
className: "fa fa-star",
|
|
3866
|
+
style: {
|
|
3867
|
+
color: '#FAB400'
|
|
3868
|
+
}
|
|
3869
|
+
}),
|
|
3870
|
+
activeColor: "#ffd700",
|
|
3871
|
+
onChange: function onChange(event) {
|
|
3872
|
+
setfilterproductreviews(event);
|
|
3873
|
+
}
|
|
3874
|
+
})))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3875
|
+
"class": "col-lg-9"
|
|
3876
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3877
|
+
"class": "row m-0 w-100"
|
|
3878
|
+
}, productreviews === null || productreviews === void 0 ? void 0 : productreviews.map(function (reviewitem, reviewindex) {
|
|
3879
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3880
|
+
"class": "col-lg-12 flex-column"
|
|
3881
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3882
|
+
"class": "row m-0 w-100"
|
|
3883
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3884
|
+
"class": "col-lg-12 d-flex justify-content-start p-0 mb-2"
|
|
3885
|
+
}, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
|
|
3886
|
+
count: 5,
|
|
3887
|
+
value: reviewitem.review_rating,
|
|
3888
|
+
edit: false,
|
|
3889
|
+
size: 18,
|
|
3890
|
+
emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3891
|
+
className: "far fa-star",
|
|
3892
|
+
style: {
|
|
3893
|
+
color: '#bfbfbf'
|
|
3894
|
+
}
|
|
3895
|
+
}),
|
|
3896
|
+
halfIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3897
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
3898
|
+
}),
|
|
3899
|
+
filledIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3900
|
+
className: "fa fa-star",
|
|
3901
|
+
style: {
|
|
3902
|
+
color: '#FAB400'
|
|
3903
|
+
}
|
|
3904
|
+
}),
|
|
3905
|
+
activeColor: "#ffd700"
|
|
3906
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3907
|
+
"class": "col-lg-12 p-0 mb-2 d-flex justify-content-start "
|
|
3908
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3909
|
+
"class": "m-0 p-0 font-weight-600",
|
|
3910
|
+
style: {
|
|
3911
|
+
fontSize: '17px'
|
|
3912
|
+
}
|
|
3913
|
+
}, reviewitem.reviewtitle)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3914
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mb-2"
|
|
3915
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3916
|
+
"class": "m-0 p-0 font-weight-500"
|
|
3917
|
+
}, reviewitem.reviewbody)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3918
|
+
"class": "col-lg-6 d-flex align-items-center justify-content-start p-0"
|
|
3919
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3920
|
+
"class": "m-0 p-0 font-weight-600"
|
|
3921
|
+
}, langdetect == 'en' ? 'By' : 'عن طريق', ": ", reviewitem.review_name)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3922
|
+
"class": "col-lg-6 d-flex align-items-center justify-content-end justify-content-md-start p-0 font-weight-500 text-light"
|
|
3923
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3924
|
+
"class": "fa fa-clock text-light ml-2 mr-2"
|
|
3925
|
+
}), " ", reviewitem.timestamp)), /*#__PURE__*/React__default["default"].createElement("hr", null));
|
|
3926
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal, {
|
|
3927
|
+
show: openreviewmodal,
|
|
3928
|
+
onHide: function onHide() {
|
|
3929
|
+
return setopenreviewmodal(false);
|
|
3930
|
+
},
|
|
3931
|
+
centered: true,
|
|
3932
|
+
size: "md",
|
|
3933
|
+
"class": "reviewmodal"
|
|
3934
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement(AddReview, {
|
|
3935
|
+
actions: _objectSpread$25(_objectSpread$25({}, actions), {}, {
|
|
3936
|
+
productid: productid,
|
|
3937
|
+
canuserreview: canuserreview,
|
|
3938
|
+
addreviewcallback: addreviewcallback
|
|
3939
|
+
})
|
|
3940
|
+
}))));
|
|
3941
|
+
};
|
|
3942
|
+
|
|
3691
3943
|
function ownKeys$24(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3692
3944
|
function _objectSpread$24(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$24(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$24(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3693
3945
|
var Productinfo = function Productinfo(props) {
|
|
3694
|
-
var _css, _ref, _ref2;
|
|
3946
|
+
var _css, _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer58, _fetchProductInfoQuer59, _fetchProductInfoQuer60, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer61, _fetchProductInfoQuer62, _fetchProductInfoQuer63, _fetchProductInfoQuer64, _fetchProductInfoQuer65, _fetchProductInfoQuer66, _fetchProductInfoQuer67, _fetchProductInfoQuer68, _fetchProductInfoQuer69, _fetchProductInfoQuer70, _fetchProductInfoQuer71, _fetchProductInfoQuer72, _fetchProductInfoQuer73, _fetchProductInfoQuer74, _fetchProductInfoQuer75, _fetchProductInfoQuer76, _fetchProductInfoQuer77, _fetchProductInfoQuer78, _fetchProductInfoQuer79, _fetchProductInfoQuer80, _fetchProductInfoQuer81, _fetchProductInfoQuer82, _fetchProductInfoQuer83, _fetchProductInfoQuer84, _fetchProductInfoQuer85, _fetchProductInfoQuer86, _fetchProductInfoQuer87, _fetchProductInfoQuer88, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _fetchProductInfoQuer91, _fetchProductInfoQuer92, _fetchProductInfoQuer93, _fetchProductInfoQuer94, _fetchProductInfoQuer95, _fetchProductInfoQuer96, _fetchProductInfoQuer97, _fetchProductInfoQuer98, _fetchProductInfoQuer99, _fetchProductInfoQuer100, _fetchProductInfoQuer101, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
|
|
3695
3947
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
3696
3948
|
var lang = props.actions.lang;
|
|
3697
3949
|
var langdetect = props.actions.langdetect;
|
|
@@ -3713,7 +3965,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3713
3965
|
var setpageindexcontext = props.actions.setpageindexcontext;
|
|
3714
3966
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
3715
3967
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
3716
|
-
props.actions;
|
|
3968
|
+
var actions = props.actions;
|
|
3717
3969
|
var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
3718
3970
|
var setCurrentPageIdContext = props.actions.setCurrentPageIdContext;
|
|
3719
3971
|
var NotificationManager = props.actions.NotificationManager;
|
|
@@ -3778,21 +4030,24 @@ var Productinfo = function Productinfo(props) {
|
|
|
3778
4030
|
isloaded = _useState24[0],
|
|
3779
4031
|
setisloaded = _useState24[1];
|
|
3780
4032
|
var _useState25 = React.useState(false),
|
|
3781
|
-
_useState26 = _slicedToArray__default["default"](_useState25, 2)
|
|
3782
|
-
_useState26[0]
|
|
3783
|
-
_useState26[1];
|
|
4033
|
+
_useState26 = _slicedToArray__default["default"](_useState25, 2),
|
|
4034
|
+
showMore = _useState26[0],
|
|
4035
|
+
setShowMore = _useState26[1];
|
|
3784
4036
|
var _useState27 = React.useState(0),
|
|
3785
4037
|
_useState28 = _slicedToArray__default["default"](_useState27, 2),
|
|
3786
4038
|
currentshowingimageindex = _useState28[0],
|
|
3787
4039
|
setcurrentshowingimageindex = _useState28[1];
|
|
3788
4040
|
var _useState29 = React.useState(0),
|
|
3789
|
-
_useState30 = _slicedToArray__default["default"](_useState29, 2)
|
|
3790
|
-
_useState30[0]
|
|
3791
|
-
_useState30[1];
|
|
4041
|
+
_useState30 = _slicedToArray__default["default"](_useState29, 2),
|
|
4042
|
+
tabIndex = _useState30[0],
|
|
4043
|
+
setTabIndex = _useState30[1];
|
|
3792
4044
|
var _useState31 = React.useState('descriptiontab'),
|
|
3793
|
-
_useState32 = _slicedToArray__default["default"](_useState31, 2)
|
|
3794
|
-
_useState32[0]
|
|
3795
|
-
_useState32[1];
|
|
4045
|
+
_useState32 = _slicedToArray__default["default"](_useState31, 2),
|
|
4046
|
+
tabname = _useState32[0],
|
|
4047
|
+
settabname = _useState32[1];
|
|
4048
|
+
var handleTabChange = function handleTabChange(event, newTabIndex) {
|
|
4049
|
+
setTabIndex(newTabIndex);
|
|
4050
|
+
};
|
|
3796
4051
|
React.useEffect(function () {
|
|
3797
4052
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
3798
4053
|
var secpropobj = {};
|
|
@@ -4487,6 +4742,40 @@ var Productinfo = function Productinfo(props) {
|
|
|
4487
4742
|
backgroundColor: sectionproperties.checkoutBtnbgColoronhover,
|
|
4488
4743
|
color: sectionproperties.checkoutBtncoloronhover
|
|
4489
4744
|
}
|
|
4745
|
+
}),
|
|
4746
|
+
outstockbadge: glamor.css({
|
|
4747
|
+
minWidth: sectionproperties.outstock_width + 'px',
|
|
4748
|
+
height: sectionproperties.outstock_height + 'px',
|
|
4749
|
+
background: sectionproperties.outstock_bg,
|
|
4750
|
+
color: sectionproperties.outstock_color,
|
|
4751
|
+
fontSize: sectionproperties.outstock_fontSize + 'px',
|
|
4752
|
+
borderRadius: sectionproperties.outstock_borderradius + 'px'
|
|
4753
|
+
}),
|
|
4754
|
+
cashbackoutercontainer: glamor.css({
|
|
4755
|
+
// minWidth: 'fit-content',
|
|
4756
|
+
width: sectionproperties.cashbackcontainerwidth + '%',
|
|
4757
|
+
height: sectionproperties.cashbackcontainerheight + 'px',
|
|
4758
|
+
background: sectionproperties.cashbackcontainerbgcolor,
|
|
4759
|
+
color: sectionproperties.cashbackcontainercolor,
|
|
4760
|
+
fontSize: sectionproperties.cashbackcontainerfontsize + 'px',
|
|
4761
|
+
border: sectionproperties.cashbackcontainerborderwidth + 'px ' + sectionproperties.cashbackcontainerborderstyle + sectionproperties.cashbackcontainerbordercolor,
|
|
4762
|
+
borderRadius: sectionproperties.cashbackcontainerborderradius + 'px'
|
|
4763
|
+
}),
|
|
4764
|
+
profitcontainer: glamor.css({
|
|
4765
|
+
width: sectionproperties.profitcontainerwidth + '%',
|
|
4766
|
+
height: sectionproperties.profitcontainerheight + 'px',
|
|
4767
|
+
background: sectionproperties.profitcontainerbgcolor,
|
|
4768
|
+
border: sectionproperties.profitcontainerborderwidth + 'px solid' + sectionproperties.profitcontainerbordercolor,
|
|
4769
|
+
borderRadius: sectionproperties.profitcontainerborderradius + 'px',
|
|
4770
|
+
color: sectionproperties.profitcontainercolor,
|
|
4771
|
+
'@media (max-width: 800px)': {
|
|
4772
|
+
width: '90%'
|
|
4773
|
+
}
|
|
4774
|
+
}),
|
|
4775
|
+
imagegallery: glamor.css({
|
|
4776
|
+
'.image-gallery-thumbnail.active': {
|
|
4777
|
+
border: '2px solid red '
|
|
4778
|
+
}
|
|
4490
4779
|
})
|
|
4491
4780
|
};
|
|
4492
4781
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
@@ -4541,7 +4830,11 @@ var Productinfo = function Productinfo(props) {
|
|
|
4541
4830
|
if (withtotal == true) {
|
|
4542
4831
|
price = price * quantity;
|
|
4543
4832
|
}
|
|
4544
|
-
|
|
4833
|
+
if (price != undefined) {
|
|
4834
|
+
return price;
|
|
4835
|
+
} else {
|
|
4836
|
+
return 0;
|
|
4837
|
+
}
|
|
4545
4838
|
};
|
|
4546
4839
|
var getQuantityCondition = function getQuantityCondition() {
|
|
4547
4840
|
var _fetchProductInfoQuer46, _fetchProductInfoQuer47, _fetchProductInfoQuer48, _fetchProductInfoQuer49;
|
|
@@ -4750,7 +5043,234 @@ var Productinfo = function Productinfo(props) {
|
|
|
4750
5043
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
4751
5044
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0
|
|
4752
5045
|
}
|
|
4753
|
-
}
|
|
5046
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5047
|
+
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
|
|
5048
|
+
style: {
|
|
5049
|
+
paddingLeft: sectionproperties.tabspaddinghorizontal + 'px',
|
|
5050
|
+
paddingRight: sectionproperties.tabspaddinghorizontal + 'px',
|
|
5051
|
+
marginBottom: sectionproperties.tabsmb + 'px',
|
|
5052
|
+
paddingTop: sectionproperties.tabsPt + 'px',
|
|
5053
|
+
paddingBottom: sectionproperties.tabsPb + 'px'
|
|
5054
|
+
}
|
|
5055
|
+
}, sectionproperties.tabsfullwidth == 'Full Width' && /*#__PURE__*/React__default["default"].createElement(material.Box, null, /*#__PURE__*/React__default["default"].createElement(material.Tabs, {
|
|
5056
|
+
value: tabIndex,
|
|
5057
|
+
onChange: handleTabChange,
|
|
5058
|
+
scrollButtons: "auto",
|
|
5059
|
+
TabIndicatorProps: {
|
|
5060
|
+
style: {
|
|
5061
|
+
background: sectionproperties.activetabbordercolor
|
|
5062
|
+
// right: sectionproperties.showfirstpolicy == 'Hide' ? 0 : sectionproperties.showsecondpolicy == 'Hide' ? 0 : '',
|
|
5063
|
+
// margin: sectionproperties.showfirstpolicy == 'Hide' ? 'auto' : sectionproperties.showsecondpolicy == 'Hide' ? 'auto' : '',
|
|
5064
|
+
}
|
|
5065
|
+
},
|
|
5066
|
+
|
|
5067
|
+
sx: {
|
|
5068
|
+
'& button': {
|
|
5069
|
+
color: sectionproperties.tabtextcolor,
|
|
5070
|
+
fontWeight: sectionproperties.tabtextfontweight,
|
|
5071
|
+
background: sectionproperties.tabcontainerbgcolor,
|
|
5072
|
+
textTransform: sectionproperties.tabtexttexttransform,
|
|
5073
|
+
borderRadius: sectionproperties.tabcontainerborderradius + 'px',
|
|
5074
|
+
fontFamily: 'Poppins',
|
|
5075
|
+
transition: '.3s',
|
|
5076
|
+
fontSize: sectionproperties.tabtextfontsize + 'px'
|
|
5077
|
+
},
|
|
5078
|
+
'& button:hover': {
|
|
5079
|
+
color: sectionproperties.tabscoloronhover,
|
|
5080
|
+
fontFamily: 'Poppins',
|
|
5081
|
+
transition: '.3s'
|
|
5082
|
+
},
|
|
5083
|
+
'& button.Mui-selected': {
|
|
5084
|
+
color: sectionproperties.tabtextactivecolor,
|
|
5085
|
+
background: sectionproperties.activetabbgcolor,
|
|
5086
|
+
fontFamily: 'Poppins',
|
|
5087
|
+
transition: '.3s'
|
|
5088
|
+
}
|
|
5089
|
+
},
|
|
5090
|
+
variant: 'fullWidth'
|
|
5091
|
+
// tabsfullwidth
|
|
5092
|
+
}, sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
5093
|
+
label: langdetect == 'en' ? sectionproperties.tabsdescEn : sectionproperties.tabsdescAr,
|
|
5094
|
+
onClick: function onClick() {
|
|
5095
|
+
settabname('descriptiontab');
|
|
5096
|
+
}
|
|
5097
|
+
}), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showfirstpolicy == 'Show' && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
5098
|
+
label: langdetect == 'en' ? (_returnpolicyobj = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj === void 0 ? void 0 : _returnpolicyobj.policypagename_en : (_returnpolicyobj2 = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj2 === void 0 ? void 0 : _returnpolicyobj2.policypagename_ar,
|
|
5099
|
+
onClick: function onClick() {
|
|
5100
|
+
settabname('shippingpolicytab');
|
|
5101
|
+
}
|
|
5102
|
+
}), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showsecondpolicy == 'Show' && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
5103
|
+
label: langdetect == 'en' ? (_returnpolicyobj3 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj3 === void 0 ? void 0 : _returnpolicyobj3.policypagename_en : (_returnpolicyobj4 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj4 === void 0 ? void 0 : _returnpolicyobj4.policypagename_ar,
|
|
5104
|
+
onClick: function onClick() {
|
|
5105
|
+
settabname('refundpolicytab');
|
|
5106
|
+
}
|
|
5107
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer58 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer58 === void 0 ? void 0 : (_fetchProductInfoQuer59 = _fetchProductInfoQuer58.data) === null || _fetchProductInfoQuer59 === void 0 ? void 0 : (_fetchProductInfoQuer60 = _fetchProductInfoQuer59.productinfo) === null || _fetchProductInfoQuer60 === void 0 ? void 0 : _fetchProductInfoQuer60.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
5108
|
+
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
5109
|
+
onClick: function onClick() {
|
|
5110
|
+
settabname('reviewstab');
|
|
5111
|
+
}
|
|
5112
|
+
}))), sectionproperties.tabsfullwidth != 'Full Width' && /*#__PURE__*/React__default["default"].createElement(material.Box, null, /*#__PURE__*/React__default["default"].createElement(material.Tabs, {
|
|
5113
|
+
value: tabIndex,
|
|
5114
|
+
onChange: handleTabChange,
|
|
5115
|
+
scrollButtons: "auto",
|
|
5116
|
+
TabIndicatorProps: {
|
|
5117
|
+
style: {
|
|
5118
|
+
background: sectionproperties.activetabbordercolor
|
|
5119
|
+
// right: sectionproperties.showfirstpolicy == 'Hide' ? 0 : sectionproperties.showsecondpolicy == 'Hide' ? 0 : '',
|
|
5120
|
+
// margin: sectionproperties.showfirstpolicy == 'Hide' ? 'auto' : sectionproperties.showsecondpolicy == 'Hide' ? 'auto' : '',
|
|
5121
|
+
}
|
|
5122
|
+
},
|
|
5123
|
+
|
|
5124
|
+
sx: {
|
|
5125
|
+
'& button': {
|
|
5126
|
+
color: sectionproperties.tabtextcolor,
|
|
5127
|
+
fontWeight: sectionproperties.tabtextfontweight,
|
|
5128
|
+
background: sectionproperties.tabcontainerbgcolor,
|
|
5129
|
+
textTransform: sectionproperties.tabtexttexttransform,
|
|
5130
|
+
borderRadius: sectionproperties.tabcontainerborderradius + 'px',
|
|
5131
|
+
fontFamily: 'Poppins',
|
|
5132
|
+
transition: '.3s',
|
|
5133
|
+
fontSize: sectionproperties.tabtextfontsize + 'px'
|
|
5134
|
+
},
|
|
5135
|
+
'& button:hover': {
|
|
5136
|
+
color: sectionproperties.tabscoloronhover,
|
|
5137
|
+
fontFamily: 'Poppins',
|
|
5138
|
+
transition: '.3s'
|
|
5139
|
+
},
|
|
5140
|
+
'& button.Mui-selected': {
|
|
5141
|
+
color: sectionproperties.tabtextactivecolor,
|
|
5142
|
+
background: sectionproperties.activetabbgcolor,
|
|
5143
|
+
fontFamily: 'Poppins',
|
|
5144
|
+
transition: '.3s'
|
|
5145
|
+
}
|
|
5146
|
+
}
|
|
5147
|
+
}, sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
5148
|
+
label: langdetect == 'en' ? sectionproperties.tabsdescEn : sectionproperties.tabsdescAr,
|
|
5149
|
+
onClick: function onClick() {
|
|
5150
|
+
settabname('descriptiontab');
|
|
5151
|
+
}
|
|
5152
|
+
}), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showfirstpolicy == 'Show' && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
5153
|
+
label: langdetect == 'en' ? (_returnpolicyobj5 = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj5 === void 0 ? void 0 : _returnpolicyobj5.policypagename_en : (_returnpolicyobj6 = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj6 === void 0 ? void 0 : _returnpolicyobj6.policypagename_ar,
|
|
5154
|
+
onClick: function onClick() {
|
|
5155
|
+
settabname('shippingpolicytab');
|
|
5156
|
+
}
|
|
5157
|
+
}), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showsecondpolicy == 'Show' && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
5158
|
+
label: langdetect == 'en' ? (_returnpolicyobj7 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj7 === void 0 ? void 0 : _returnpolicyobj7.policypagename_en : (_returnpolicyobj8 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj8 === void 0 ? void 0 : _returnpolicyobj8.policypagename_ar,
|
|
5159
|
+
onClick: function onClick() {
|
|
5160
|
+
settabname('refundpolicytab');
|
|
5161
|
+
}
|
|
5162
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer61 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer61 === void 0 ? void 0 : (_fetchProductInfoQuer62 = _fetchProductInfoQuer61.data) === null || _fetchProductInfoQuer62 === void 0 ? void 0 : (_fetchProductInfoQuer63 = _fetchProductInfoQuer62.productinfo) === null || _fetchProductInfoQuer63 === void 0 ? void 0 : _fetchProductInfoQuer63.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
5163
|
+
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
5164
|
+
onClick: function onClick() {
|
|
5165
|
+
settabname('reviewstab');
|
|
5166
|
+
}
|
|
5167
|
+
}))), /*#__PURE__*/React__default["default"].createElement(material.Box, {
|
|
5168
|
+
"class": "w-100 mt-5 mb-4"
|
|
5169
|
+
}, tabname == 'descriptiontab' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5170
|
+
"class": "col-lg-12 pl-5 pr-5 p-md-0 w-100"
|
|
5171
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5172
|
+
"class": "row m-0 w-100"
|
|
5173
|
+
}, langdetect == 'en' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer64 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer64 === void 0 ? void 0 : (_fetchProductInfoQuer65 = _fetchProductInfoQuer64.data) === null || _fetchProductInfoQuer65 === void 0 ? void 0 : (_fetchProductInfoQuer66 = _fetchProductInfoQuer65.productinfo) === null || _fetchProductInfoQuer66 === void 0 ? void 0 : _fetchProductInfoQuer66.description_en) != '' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer67 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer67 === void 0 ? void 0 : (_fetchProductInfoQuer68 = _fetchProductInfoQuer67.data) === null || _fetchProductInfoQuer68 === void 0 ? void 0 : (_fetchProductInfoQuer69 = _fetchProductInfoQuer68.productinfo) === null || _fetchProductInfoQuer69 === void 0 ? void 0 : _fetchProductInfoQuer69.description_en) != null && sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5174
|
+
className: "col-lg-12 p-0 mb-4 d-flex justify-content-center"
|
|
5175
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5176
|
+
className: "row m-0 w-100 d-flex"
|
|
5177
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5178
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start"
|
|
5179
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5180
|
+
className: 'text-black text-capitalize m-0 p-0 wordbreak',
|
|
5181
|
+
style: {
|
|
5182
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
5183
|
+
},
|
|
5184
|
+
dangerouslySetInnerHTML: {
|
|
5185
|
+
__html: showMore == true ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer70 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer70 === void 0 ? void 0 : (_fetchProductInfoQuer71 = _fetchProductInfoQuer70.data) === null || _fetchProductInfoQuer71 === void 0 ? void 0 : (_fetchProductInfoQuer72 = _fetchProductInfoQuer71.productinfo) === null || _fetchProductInfoQuer72 === void 0 ? void 0 : _fetchProductInfoQuer72.description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer73 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer73 === void 0 ? void 0 : (_fetchProductInfoQuer74 = _fetchProductInfoQuer73.data) === null || _fetchProductInfoQuer74 === void 0 ? void 0 : (_fetchProductInfoQuer75 = _fetchProductInfoQuer74.productinfo) === null || _fetchProductInfoQuer75 === void 0 ? void 0 : _fetchProductInfoQuer75.description_en.slice(0, 1000)
|
|
5186
|
+
}
|
|
5187
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5188
|
+
"class": "col-lg-12 allcentered"
|
|
5189
|
+
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer76 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer76 === void 0 ? void 0 : (_fetchProductInfoQuer77 = _fetchProductInfoQuer76.data) === null || _fetchProductInfoQuer77 === void 0 ? void 0 : (_fetchProductInfoQuer78 = _fetchProductInfoQuer77.productinfo) === null || _fetchProductInfoQuer78 === void 0 ? void 0 : _fetchProductInfoQuer78.description_en.length) > 1000 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5190
|
+
"class": "m-0 p-0 cursor-pointer text-grey font-weight-600",
|
|
5191
|
+
onClick: function onClick() {
|
|
5192
|
+
return setShowMore(!showMore);
|
|
5193
|
+
}
|
|
5194
|
+
}, showMore ? lang.showless : lang.showmore)))), langdetect == 'ar' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer79 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer79 === void 0 ? void 0 : (_fetchProductInfoQuer80 = _fetchProductInfoQuer79.data) === null || _fetchProductInfoQuer80 === void 0 ? void 0 : (_fetchProductInfoQuer81 = _fetchProductInfoQuer80.productinfo) === null || _fetchProductInfoQuer81 === void 0 ? void 0 : _fetchProductInfoQuer81.description_ar) != '' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer82 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer82 === void 0 ? void 0 : (_fetchProductInfoQuer83 = _fetchProductInfoQuer82.data) === null || _fetchProductInfoQuer83 === void 0 ? void 0 : (_fetchProductInfoQuer84 = _fetchProductInfoQuer83.productinfo) === null || _fetchProductInfoQuer84 === void 0 ? void 0 : _fetchProductInfoQuer84.description_ar) != null && sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5195
|
+
className: "col-lg-12 p-0 mb-4 d-flex justify-content-center"
|
|
5196
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5197
|
+
className: "row m-0 w-100 d-flex"
|
|
5198
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5199
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start flex-column"
|
|
5200
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5201
|
+
className: 'text-black text-capitalize m-0 p-0 wordbreak',
|
|
5202
|
+
style: {
|
|
5203
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
5204
|
+
},
|
|
5205
|
+
dangerouslySetInnerHTML: {
|
|
5206
|
+
__html: showMore == true ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer85 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer85 === void 0 ? void 0 : (_fetchProductInfoQuer86 = _fetchProductInfoQuer85.data) === null || _fetchProductInfoQuer86 === void 0 ? void 0 : (_fetchProductInfoQuer87 = _fetchProductInfoQuer86.productinfo) === null || _fetchProductInfoQuer87 === void 0 ? void 0 : _fetchProductInfoQuer87.description_ar : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer88 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer88 === void 0 ? void 0 : (_fetchProductInfoQuer89 = _fetchProductInfoQuer88.data) === null || _fetchProductInfoQuer89 === void 0 ? void 0 : (_fetchProductInfoQuer90 = _fetchProductInfoQuer89.productinfo) === null || _fetchProductInfoQuer90 === void 0 ? void 0 : _fetchProductInfoQuer90.description_ar.slice(0, 1000)
|
|
5207
|
+
}
|
|
5208
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5209
|
+
"class": "col-lg-12 allcentered"
|
|
5210
|
+
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer91 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer91 === void 0 ? void 0 : (_fetchProductInfoQuer92 = _fetchProductInfoQuer91.data) === null || _fetchProductInfoQuer92 === void 0 ? void 0 : (_fetchProductInfoQuer93 = _fetchProductInfoQuer92.productinfo) === null || _fetchProductInfoQuer93 === void 0 ? void 0 : _fetchProductInfoQuer93.description_ar.length) > 1000 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5211
|
+
"class": "m-0 p-0 cursor-pointer text-grey font-weight-600 text-right",
|
|
5212
|
+
onClick: function onClick() {
|
|
5213
|
+
return setShowMore(!showMore);
|
|
5214
|
+
}
|
|
5215
|
+
}, showMore ? lang.showless : lang.showmore)))), sectionproperties.showGallery == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer94 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer94 === void 0 ? void 0 : (_fetchProductInfoQuer95 = _fetchProductInfoQuer94.data) === null || _fetchProductInfoQuer95 === void 0 ? void 0 : (_fetchProductInfoQuer96 = _fetchProductInfoQuer95.productinfo) === null || _fetchProductInfoQuer96 === void 0 ? void 0 : (_fetchProductInfoQuer97 = _fetchProductInfoQuer96.productimages) === null || _fetchProductInfoQuer97 === void 0 ? void 0 : _fetchProductInfoQuer97.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5216
|
+
"class": "col-lg-12 p-0"
|
|
5217
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5218
|
+
"class": "row m-0 w-100 allcentered pl-md-3 pr-md-3",
|
|
5219
|
+
style: {
|
|
5220
|
+
paddingLeft: sectionproperties.galleryPaddingHorizontal + 'px',
|
|
5221
|
+
paddingRight: sectionproperties.galleryPaddingHorizontal + 'px'
|
|
5222
|
+
}
|
|
5223
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer98 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer98 === void 0 ? void 0 : (_fetchProductInfoQuer99 = _fetchProductInfoQuer98.data) === null || _fetchProductInfoQuer99 === void 0 ? void 0 : (_fetchProductInfoQuer100 = _fetchProductInfoQuer99.productinfo) === null || _fetchProductInfoQuer100 === void 0 ? void 0 : (_fetchProductInfoQuer101 = _fetchProductInfoQuer100.productimages) === null || _fetchProductInfoQuer101 === void 0 ? void 0 : _fetchProductInfoQuer101.map(function (item, index) {
|
|
5224
|
+
if (index <= 6) {
|
|
5225
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5226
|
+
"class": ' col-md-4 col-sm-12 mb-3 col-lg-' + sectionproperties.galleryNoOfCols,
|
|
5227
|
+
style: {
|
|
5228
|
+
height: sectionproperties.galleryHeight + 'px'
|
|
5229
|
+
}
|
|
5230
|
+
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
5231
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
5232
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
5233
|
+
path: '/tr:w-' + sectionproperties.galleryWidthDimension + ',h-' + sectionproperties.galleryHeightDimension + '/' + item.path,
|
|
5234
|
+
style: {
|
|
5235
|
+
width: '100%',
|
|
5236
|
+
height: '100%',
|
|
5237
|
+
objectFit: 'contain'
|
|
5238
|
+
},
|
|
5239
|
+
loading: "lazy"
|
|
5240
|
+
}));
|
|
5241
|
+
}
|
|
5242
|
+
}))))), tabname == 'shippingpolicytab' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5243
|
+
"class": "col-lg-12 pl-5 pr-5 p-md-0 w-100"
|
|
5244
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5245
|
+
className: ' m-0 p-0 wordbreak ',
|
|
5246
|
+
style: {
|
|
5247
|
+
lineClamp: 10,
|
|
5248
|
+
WebkitLineClamp: 10,
|
|
5249
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
5250
|
+
},
|
|
5251
|
+
dangerouslySetInnerHTML: {
|
|
5252
|
+
__html: langdetect == 'en' ? (_returnpolicyobj9 = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj9 === void 0 ? void 0 : _returnpolicyobj9.policycontent_en : (_returnpolicyobj10 = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj10 === void 0 ? void 0 : _returnpolicyobj10.policycontent_ar
|
|
5253
|
+
}
|
|
5254
|
+
})), tabname == 'refundpolicytab' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5255
|
+
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0"
|
|
5256
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5257
|
+
className: ' m-0 p-0 wordbreak ',
|
|
5258
|
+
style: {
|
|
5259
|
+
lineClamp: 10,
|
|
5260
|
+
WebkitLineClamp: 10,
|
|
5261
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
5262
|
+
},
|
|
5263
|
+
dangerouslySetInnerHTML: {
|
|
5264
|
+
__html: langdetect == 'en' ? (_returnpolicyobj11 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj11 === void 0 ? void 0 : _returnpolicyobj11.policycontent_en : (_returnpolicyobj12 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj12 === void 0 ? void 0 : _returnpolicyobj12.policycontent_ar
|
|
5265
|
+
}
|
|
5266
|
+
})), tabname == 'reviewstab' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5267
|
+
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0"
|
|
5268
|
+
}, /*#__PURE__*/React__default["default"].createElement(ProductReviews, {
|
|
5269
|
+
actions: _objectSpread$24(_objectSpread$24({}, actions), {}, {
|
|
5270
|
+
productinfo_cssstyles: productinfo_cssstyles,
|
|
5271
|
+
sectionproperties: sectionproperties
|
|
5272
|
+
})
|
|
5273
|
+
}))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4754
5274
|
className: sectionproperties.card_marginLeft != 0 ? ' col-lg-12 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 pl-sm-1 pr-sm-1 ' : ' col-lg-12 p-sm-0 ',
|
|
4755
5275
|
style: {
|
|
4756
5276
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
@@ -7099,7 +7619,7 @@ var Checkout = function Checkout(props) {
|
|
|
7099
7619
|
endpointurl: '/usewalletpoints',
|
|
7100
7620
|
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
7101
7621
|
if (data.data.status) {
|
|
7102
|
-
NotificationManager.success('', '
|
|
7622
|
+
NotificationManager.success('', langdetect == 'en' ? 'Done' : 'تم');
|
|
7103
7623
|
fetchcustomercartQueryContext.refetch();
|
|
7104
7624
|
} else {
|
|
7105
7625
|
NotificationManager.warning('', data.data.reason);
|
|
@@ -7327,13 +7847,19 @@ var Checkout = function Checkout(props) {
|
|
|
7327
7847
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7328
7848
|
className: "row m-0 w-100"
|
|
7329
7849
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7330
|
-
className: "col-lg-12 col-md-12 col-sm-12 p-0"
|
|
7850
|
+
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start"
|
|
7331
7851
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7332
|
-
className: "".concat(checkoutstyles.productNameStyles) + ' m-0 p-0
|
|
7852
|
+
className: "".concat(checkoutstyles.productNameStyles) + ' m-0 p-0 w-100 ',
|
|
7853
|
+
style: {
|
|
7854
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
7855
|
+
}
|
|
7333
7856
|
}, langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar)), sectionproperties.producttype == 'Product' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7334
|
-
className: "col-lg-12 p-0"
|
|
7857
|
+
className: "col-lg-12 p-0 d-flex justify-content-start"
|
|
7335
7858
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7336
|
-
className: "m-0 p-0 font-weight-500 text-light
|
|
7859
|
+
className: "m-0 p-0 font-weight-500 text-light w-100",
|
|
7860
|
+
style: {
|
|
7861
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
7862
|
+
}
|
|
7337
7863
|
}, lang.qty, ": ", item.quantity)))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7338
7864
|
className: "col-lg-3 col-md-3 col-sm-2 p-0"
|
|
7339
7865
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -7491,7 +8017,7 @@ var Checkout = function Checkout(props) {
|
|
|
7491
8017
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
7492
8018
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7493
8019
|
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center wordbreak '
|
|
7494
|
-
},
|
|
8020
|
+
}, langdetect == 'en' ? 'Wallet points used' : 'النقاط المستخدمة')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7495
8021
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
7496
8022
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7497
8023
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left ',
|
|
@@ -12376,12 +12902,15 @@ var CardsSection = function CardsSection(props) {
|
|
|
12376
12902
|
cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
|
|
12377
12903
|
cardobj.productimages = arrayItem.productinfo.productimages;
|
|
12378
12904
|
cardobj.quantity = itemquantity;
|
|
12905
|
+
// cardobj.currentquantity = currentquantity;
|
|
12379
12906
|
cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
12380
12907
|
cardobj.productquantity = arrayItem.productinfo.productquantity;
|
|
12908
|
+
cardobj.currentquantity = arrayItem.productinfo.currentquantity;
|
|
12381
12909
|
cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
|
|
12382
12910
|
cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
|
|
12383
12911
|
cardobj.measurmentunit = arrayItem.productinfo.measurmentunit;
|
|
12384
12912
|
cardobj.prodaffpercentprofit = arrayItem.productinfo.prodaffpercentprofit;
|
|
12913
|
+
cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
|
|
12385
12914
|
if (langdetect == 'en') {
|
|
12386
12915
|
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
|
|
12387
12916
|
} else {
|
|
@@ -13822,7 +14351,7 @@ var Subheader = function Subheader(props) {
|
|
|
13822
14351
|
function ownKeys$1N(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
13823
14352
|
function _objectSpread$1N(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1N(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1N(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13824
14353
|
var Headerresponsive = function Headerresponsive(props) {
|
|
13825
|
-
var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6;
|
|
14354
|
+
var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6;
|
|
13826
14355
|
var actions = props.actions;
|
|
13827
14356
|
var LogoutMutationContext = props.actions.LogoutMutationContext;
|
|
13828
14357
|
var setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
|
|
@@ -14237,6 +14766,10 @@ var Headerresponsive = function Headerresponsive(props) {
|
|
|
14237
14766
|
}
|
|
14238
14767
|
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
14239
14768
|
className: "".concat(header_cssstyles.dropdownitem) + ' d-flex align-items-center justify-content-center '
|
|
14769
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14770
|
+
"class": "row m-0 w-100"
|
|
14771
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14772
|
+
"class": 'flex-row w-100 d-flex justify-content-start'
|
|
14240
14773
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
14241
14774
|
style: {
|
|
14242
14775
|
color: '#8fa0bd',
|
|
@@ -14251,7 +14784,23 @@ var Headerresponsive = function Headerresponsive(props) {
|
|
|
14251
14784
|
color: sectionproperties.dropdownusernamecolor,
|
|
14252
14785
|
fontSize: sectionproperties.dropdownusernamefontsize + 'px'
|
|
14253
14786
|
}
|
|
14254
|
-
}, authdetailsContext.customerinfo.name)), /*#__PURE__*/React__default["default"].createElement(
|
|
14787
|
+
}, authdetailsContext.customerinfo.name)), (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c = authdetailsContext.customerinfo) === null || _authdetailsContext$c === void 0 ? void 0 : _authdetailsContext$c.cancustomerviewwallet) == 1 && templateproperties_context.showwallet == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14788
|
+
"class": ' m-0 p-0 flex-row mt-1 w-100 justify-content-start'
|
|
14789
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14790
|
+
"class": "m-0 p-0",
|
|
14791
|
+
style: {
|
|
14792
|
+
color: templateproperties_context.walletcontainercolorresponsive,
|
|
14793
|
+
fontSize: templateproperties_context.walletfontize + 'px',
|
|
14794
|
+
fontWeight: 500
|
|
14795
|
+
}
|
|
14796
|
+
}, langdetect == 'en' ? templateproperties_context.walletcontent_en : templateproperties_context.walletcontent_ar), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14797
|
+
"class": "m-0 p-0 mx-1",
|
|
14798
|
+
style: {
|
|
14799
|
+
color: templateproperties_context.walletcontainersecondarycolorresponsive,
|
|
14800
|
+
fontSize: '15px',
|
|
14801
|
+
fontWeight: 600
|
|
14802
|
+
}
|
|
14803
|
+
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c2 = authdetailsContext.customerinfo) === null || _authdetailsContext$c2 === void 0 ? void 0 : _authdetailsContext$c2.walletpoints, ' ')))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Divider, {
|
|
14255
14804
|
style: {
|
|
14256
14805
|
marginBottom: 0,
|
|
14257
14806
|
marginTop: 0
|
|
@@ -16533,7 +17082,10 @@ var ClassicHeader = function ClassicHeader(props) {
|
|
|
16533
17082
|
style: {
|
|
16534
17083
|
width: sectionproperties.header_width + 'vw'
|
|
16535
17084
|
}
|
|
16536
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
17085
|
+
}, sectionproperties.showtextslider == 'Show' && /*#__PURE__*/React__default["default"].createElement(MarqueeHeader, {
|
|
17086
|
+
sectionpropertiesprops: sectionproperties,
|
|
17087
|
+
actions: actions
|
|
17088
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16537
17089
|
"class": "".concat(headerstyles$d.headercontainer) + ' col-lg-12 pl-0 pr-0 d-md-none ',
|
|
16538
17090
|
style: {
|
|
16539
17091
|
position: sectionproperties.headerstyles_position,
|
|
@@ -29145,7 +29697,7 @@ var HeaderWithSearchOnCenter = function HeaderWithSearchOnCenter(props) {
|
|
|
29145
29697
|
function ownKeys$1u(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
29146
29698
|
function _objectSpread$1u(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1u(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1u(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29147
29699
|
var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
29148
|
-
var _css, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i, _authdetailsContext$i2, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _authdetailsContext$c, _authdetailsContext$c2, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12;
|
|
29700
|
+
var _css, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i, _authdetailsContext$i2, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$c3, _authdetailsContext$c4, _authdetailsContext$c5, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12;
|
|
29149
29701
|
var lang = props.actions.lang;
|
|
29150
29702
|
var langdetect = props.actions.langdetect;
|
|
29151
29703
|
var setlang = props.actions.setlang;
|
|
@@ -29171,6 +29723,10 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
|
29171
29723
|
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
29172
29724
|
dropdownselect = _useState4[0],
|
|
29173
29725
|
setdropdownselect = _useState4[1];
|
|
29726
|
+
var _useState5 = React.useState([]),
|
|
29727
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
29728
|
+
logoarrayofobjects = _useState6[0],
|
|
29729
|
+
setlogoarrayofobjects = _useState6[1];
|
|
29174
29730
|
React.useEffect(function () {
|
|
29175
29731
|
var secpropobj = {};
|
|
29176
29732
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
@@ -29189,10 +29745,6 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
|
29189
29745
|
}
|
|
29190
29746
|
setsectionproperties(_objectSpread$1u({}, secpropobj));
|
|
29191
29747
|
}, [StatePagePropertiesContext]);
|
|
29192
|
-
var _useState5 = React.useState([]),
|
|
29193
|
-
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
29194
|
-
logoarrayofobjects = _useState6[0],
|
|
29195
|
-
setlogoarrayofobjects = _useState6[1];
|
|
29196
29748
|
React.useEffect(function () {
|
|
29197
29749
|
if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
|
|
29198
29750
|
var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
|
|
@@ -29465,6 +30017,12 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
|
29465
30017
|
marginBottom: sectionproperties.header_marginBottom + 'px',
|
|
29466
30018
|
width: sectionproperties.header_width + 'vw',
|
|
29467
30019
|
maxWidth: '100vw'
|
|
30020
|
+
}),
|
|
30021
|
+
walletoutercontainer: glamor.css({
|
|
30022
|
+
height: templateproperties_context.walletcontainerheight + 'px',
|
|
30023
|
+
width: 'fit-content',
|
|
30024
|
+
border: '2px dashed white',
|
|
30025
|
+
borderRadius: 5
|
|
29468
30026
|
})
|
|
29469
30027
|
};
|
|
29470
30028
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -29666,8 +30224,8 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
|
29666
30224
|
"class": langdetect == 'en' ? 'headerdropdownml dropdown-toggle_w100' : 'headerdropdownmr dropdown-toggle_w100',
|
|
29667
30225
|
style: {
|
|
29668
30226
|
width: authdetailsContext.loggedin == true ? 'auto' : langdetect == 'en' ? '105px' : '120px',
|
|
29669
|
-
marginRight: langdetect == 'en' ? sectionproperties.btnsposition == 'Bottom' ? '13px' : '.1rem' : 0,
|
|
29670
|
-
marginLeft: langdetect == 'ar' ? sectionproperties.btnsposition == 'Bottom' ? '13px' : '.1rem' : 0
|
|
30227
|
+
marginRight: langdetect == 'en' ? sectionproperties.showfooterphonenumber == 'Hide' && sectionproperties.lang_position == 'Top' && authdetailsContext.loggedin == true ? '3.5rem' : sectionproperties.btnsposition == 'Bottom' ? '13px' : '.1rem' : 0,
|
|
30228
|
+
marginLeft: langdetect == 'ar' ? sectionproperties.showfooterphonenumber == 'Hide' && sectionproperties.lang_position == 'Top' && authdetailsContext.loggedin == true ? '3.5rem' : sectionproperties.btnsposition == 'Bottom' ? '13px' : '.1rem' : 0
|
|
29671
30229
|
}
|
|
29672
30230
|
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, !authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29673
30231
|
"class": ' d-flex justify-content-center align-items-center '
|
|
@@ -29711,7 +30269,7 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
|
29711
30269
|
style: {
|
|
29712
30270
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
29713
30271
|
}
|
|
29714
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
30272
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c = authdetailsContext.customerinfo) === null || _authdetailsContext$c === void 0 ? void 0 : _authdetailsContext$c.cancustomerviewwallet) != 1 && templateproperties_context.showwallet == 'Hide' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
29715
30273
|
"class": "m-0 p-0",
|
|
29716
30274
|
style: {
|
|
29717
30275
|
color: sectionproperties.greetingtextcolor,
|
|
@@ -29724,7 +30282,24 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
|
29724
30282
|
style: {
|
|
29725
30283
|
maxWidth: sectionproperties.showfooterphonenumber == 'Show' ? '65px' : '140px'
|
|
29726
30284
|
}
|
|
29727
|
-
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
30285
|
+
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c2 = authdetailsContext.customerinfo) === null || _authdetailsContext$c2 === void 0 ? void 0 : _authdetailsContext$c2.name), (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c3 = authdetailsContext.customerinfo) === null || _authdetailsContext$c3 === void 0 ? void 0 : _authdetailsContext$c3.cancustomerviewwallet) == 1 && templateproperties_context.showwallet == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
30286
|
+
"class": ' m-0 p-0 allcentered flex-row ',
|
|
30287
|
+
style: {}
|
|
30288
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
30289
|
+
"class": "m-0 p-0",
|
|
30290
|
+
style: {
|
|
30291
|
+
color: templateproperties_context.walletcolor,
|
|
30292
|
+
fontSize: templateproperties_context.walletfontize + 'px',
|
|
30293
|
+
fontWeight: 500
|
|
30294
|
+
}
|
|
30295
|
+
}, langdetect == 'en' ? templateproperties_context.walletcontent_en : templateproperties_context.walletcontent_ar), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
30296
|
+
"class": "m-0 p-0 mx-1",
|
|
30297
|
+
style: {
|
|
30298
|
+
color: templateproperties_context.walletsecondarycolor,
|
|
30299
|
+
fontSize: '15px',
|
|
30300
|
+
fontWeight: 600
|
|
30301
|
+
}
|
|
30302
|
+
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c4 = authdetailsContext.customerinfo) === null || _authdetailsContext$c4 === void 0 ? void 0 : _authdetailsContext$c4.walletpoints, ' '))))), !authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Menu, null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
29728
30303
|
onClick: function onClick() {
|
|
29729
30304
|
routingcountext(StaticPagesLinksContext.Login);
|
|
29730
30305
|
}
|
|
@@ -29759,7 +30334,7 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
|
29759
30334
|
onClick: function onClick() {
|
|
29760
30335
|
routingcountext(StaticPagesLinksContext.accountinfo);
|
|
29761
30336
|
}
|
|
29762
|
-
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
30337
|
+
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c5 = authdetailsContext.customerinfo) === null || _authdetailsContext$c5 === void 0 ? void 0 : _authdetailsContext$c5.name))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Divider, null), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
29763
30338
|
onClick: function onClick() {
|
|
29764
30339
|
routingcountext(StaticPagesLinksContext.Ordershistory);
|
|
29765
30340
|
}
|
|
@@ -48618,7 +49193,7 @@ var CircleCardWithVariants = function CircleCardWithVariants(props) {
|
|
|
48618
49193
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
48619
49194
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
48620
49195
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
48621
|
-
opacity: item.
|
|
49196
|
+
opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? 0.4 : 1
|
|
48622
49197
|
|
|
48623
49198
|
// border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor,
|
|
48624
49199
|
},
|
|
@@ -48651,7 +49226,7 @@ var CircleCardWithVariants = function CircleCardWithVariants(props) {
|
|
|
48651
49226
|
fontSize: sectionproperties.pillfontSize + 'px',
|
|
48652
49227
|
direction: 'ltr'
|
|
48653
49228
|
}
|
|
48654
|
-
}, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), item.
|
|
49229
|
+
}, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
48655
49230
|
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
48656
49231
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
48657
49232
|
"class": "m-0 p-0"
|
|
@@ -48702,7 +49277,7 @@ var CircleCardWithVariants = function CircleCardWithVariants(props) {
|
|
|
48702
49277
|
}))), sectionproperties.cartBtnShow == 'Show' && showquantity == false && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
48703
49278
|
"class": "".concat(card_cssstyles.cart_btn) + ' ml-2 mr-2 ml-sm-1 mr-sm-1 w-md-130px w-sm-100px font-sm-12 ',
|
|
48704
49279
|
onClick: function onClick() {
|
|
48705
|
-
if (item.
|
|
49280
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
|
|
48706
49281
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
48707
49282
|
} else if (sectionproperties.quantitybtn_show == 'Show') {
|
|
48708
49283
|
setshowquantity(true);
|
|
@@ -50574,6 +51149,7 @@ var Card23 = function Card23(props) {
|
|
|
50574
51149
|
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
50575
51150
|
secondimage = _useState6[0],
|
|
50576
51151
|
setsecondimage = _useState6[1];
|
|
51152
|
+
props.actions.NotificationManager;
|
|
50577
51153
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
50578
51154
|
props.actions.lang;
|
|
50579
51155
|
var langdetect = props.actions.langdetect;
|
|
@@ -50742,6 +51318,31 @@ var Card23 = function Card23(props) {
|
|
|
50742
51318
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
50743
51319
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
50744
51320
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px'
|
|
51321
|
+
}),
|
|
51322
|
+
outstockbadge: glamor.css({
|
|
51323
|
+
width: sectionproperties.outstock_width + 'px',
|
|
51324
|
+
height: sectionproperties.outstock_height + 'px',
|
|
51325
|
+
background: sectionproperties.outstock_bg,
|
|
51326
|
+
color: sectionproperties.outstock_color,
|
|
51327
|
+
fontSize: sectionproperties.outstock_fontSize + 'px',
|
|
51328
|
+
borderRadius: sectionproperties.outstock_borderradius + 'px',
|
|
51329
|
+
position: 'absolute',
|
|
51330
|
+
zIndex: 2,
|
|
51331
|
+
top: 0,
|
|
51332
|
+
bottom: 0,
|
|
51333
|
+
left: 0,
|
|
51334
|
+
right: 0,
|
|
51335
|
+
margin: 'auto'
|
|
51336
|
+
}),
|
|
51337
|
+
cashbackoutercontainer: glamor.css({
|
|
51338
|
+
minWidth: 'fit-content',
|
|
51339
|
+
maxWidth: sectionproperties.cashbackcontainerwidth + '%',
|
|
51340
|
+
height: sectionproperties.cashbackcontainerheight + 'px',
|
|
51341
|
+
background: sectionproperties.cashbackcontainerbgcolor,
|
|
51342
|
+
color: sectionproperties.cashbackcontainercolor,
|
|
51343
|
+
fontSize: sectionproperties.cashbackcontainerfontsize + 'px',
|
|
51344
|
+
border: sectionproperties.cashbackcontainerborderwidth + 'px ' + sectionproperties.cashbackcontainerborderstyle + sectionproperties.cashbackcontainerbordercolor,
|
|
51345
|
+
borderRadius: sectionproperties.cashbackcontainerborderradius + 'px'
|
|
50745
51346
|
})
|
|
50746
51347
|
};
|
|
50747
51348
|
var plainString = function plainString(html) {
|
|
@@ -50755,13 +51356,17 @@ var Card23 = function Card23(props) {
|
|
|
50755
51356
|
transition = true;
|
|
50756
51357
|
}
|
|
50757
51358
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
50758
|
-
"class": "w-100 cursor-pointer"
|
|
51359
|
+
"class": "w-100 cursor-pointer",
|
|
51360
|
+
style: {
|
|
51361
|
+
position: 'relative'
|
|
51362
|
+
}
|
|
50759
51363
|
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
50760
51364
|
"class": transition ? cardstyles$7.intialimage : '',
|
|
50761
51365
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
50762
51366
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
50763
51367
|
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
|
|
50764
51368
|
style: {
|
|
51369
|
+
opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? sectionproperties.outofstockimageopcity : 1,
|
|
50765
51370
|
width: sectionproperties.imageInnerWidth_Height + '%',
|
|
50766
51371
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
50767
51372
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
|
|
@@ -50798,8 +51403,8 @@ var Card23 = function Card23(props) {
|
|
|
50798
51403
|
"class": "row m-0 align-items-center justify-content-center",
|
|
50799
51404
|
style: {
|
|
50800
51405
|
position: 'absolute',
|
|
50801
|
-
top:
|
|
50802
|
-
left:
|
|
51406
|
+
top: sectionproperties.badge_top + 'px',
|
|
51407
|
+
left: sectionproperties.badge_right + 'px',
|
|
50803
51408
|
height: sectionproperties.badge_height + 'px',
|
|
50804
51409
|
width: sectionproperties.badge_width + 'px',
|
|
50805
51410
|
backgroundColor: sectionproperties.badge_bgcolor,
|
|
@@ -50830,7 +51435,11 @@ var Card23 = function Card23(props) {
|
|
|
50830
51435
|
fontSize: sectionproperties.pillfontSize + 'px',
|
|
50831
51436
|
direction: 'ltr'
|
|
50832
51437
|
}
|
|
50833
|
-
}, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%'))
|
|
51438
|
+
}, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
51439
|
+
"class": "".concat(cardsstyles2.outstockbadge) + ' allcentered '
|
|
51440
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
51441
|
+
"class": "m-0 p-0"
|
|
51442
|
+
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar)));
|
|
50834
51443
|
};
|
|
50835
51444
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
50836
51445
|
"class": langdetect == 'en' ? sectionproperties.card_marginLeft != 0 ? 'row m-0 w-100 pl-sm-2' : sectionproperties.card_marginRight != 0 ? 'row m-0 w-100 pr-sm-2' : 'row m-0 w-100' : langdetect == 'en' ? sectionproperties.card_marginRight != 0 ? 'row m-0 w-100 pr-sm-2' : sectionproperties.card_marginLeft != 0 ? 'row m-0 w-100 pl-sm-2' : 'row m-0 w-100' : 'row m-0 w-100',
|
|
@@ -50940,7 +51549,21 @@ var Card23 = function Card23(props) {
|
|
|
50940
51549
|
paddingTop: '10px',
|
|
50941
51550
|
paddingBottom: '10px'
|
|
50942
51551
|
}
|
|
51552
|
+
}, sectionproperties.showcashbackcontainer == 'Show' && item.productcashbackvalue > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
51553
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start my-1"
|
|
50943
51554
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
51555
|
+
"class": "".concat(cardsstyles2.cashbackoutercontainer) + ' d-flex flex-row allcentered px-2 '
|
|
51556
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
51557
|
+
"class": "m-0 p-0",
|
|
51558
|
+
style: {
|
|
51559
|
+
fontWeight: 500
|
|
51560
|
+
}
|
|
51561
|
+
}, langdetect == 'en' ? sectionproperties.cashbackcontainercontenten : sectionproperties.cashbackcontainercontentar), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
51562
|
+
"class": "m-0 p-0 mx-1",
|
|
51563
|
+
style: {
|
|
51564
|
+
fontWeight: 600
|
|
51565
|
+
}
|
|
51566
|
+
}, langdetect == 'en' ? item.currencyname : '', " ", item.productcashbackvalue, " ", langdetect == 'en' ? '' : item.currencyname))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
50944
51567
|
"class": "col-lg-12 p-0"
|
|
50945
51568
|
}, sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
50946
51569
|
"class": "".concat(cardsstyles2.productDescStyles) + ' col-lg-12 wordbreak wordbreak1 p-0 m-0 ',
|
|
@@ -50964,14 +51587,20 @@ var Card23 = function Card23(props) {
|
|
|
50964
51587
|
"class": "row m-0 w-100 align-items-center mt-1 mb-1"
|
|
50965
51588
|
}, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
50966
51589
|
"class": langdetect == 'en' ? "".concat(cardsstyles2.productPricestyles) + ' m-0 wordbreak d-flex align-items-center text-right text-sm-left ' : "".concat(cardsstyles2.productPricestyles) + ' m-0 wordbreak d-flex align-items-center text-left text-sm-right '
|
|
50967
|
-
}, langdetect == 'en' ?
|
|
51590
|
+
}, langdetect == 'en' ? item.currencyname : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
50968
51591
|
"class": "".concat(cardsstyles2.productSalePricestyles)
|
|
50969
51592
|
}, "/"), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
50970
51593
|
"class": langdetect == 'en' ? "".concat(cardsstyles2.productSalePricestyles) + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-right text-sm-left ' : "".concat(cardsstyles2.productSalePricestyles) + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-left text-sm-right '
|
|
50971
|
-
}, langdetect == 'en' ?
|
|
51594
|
+
}, langdetect == 'en' ? item.currencyname : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
50972
51595
|
"class": "d-flex align-items-center m-0"
|
|
50973
51596
|
}, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
50974
|
-
"class": "".concat(cardsstyles2.cart_btn) + ' allcentered '
|
|
51597
|
+
"class": "".concat(cardsstyles2.cart_btn) + ' allcentered '
|
|
51598
|
+
// onClick={() => {
|
|
51599
|
+
// setShowProductInfoModalContext(true);
|
|
51600
|
+
// setProductIdProdutInfoModalContext(item.productid);
|
|
51601
|
+
|
|
51602
|
+
// }}
|
|
51603
|
+
,
|
|
50975
51604
|
onClick: function onClick() {
|
|
50976
51605
|
setShowProductInfoModalContext(true);
|
|
50977
51606
|
setProductIdProdutInfoModalContext(item.productid);
|
|
@@ -51438,7 +52067,7 @@ var Card23 = function Card23(props) {
|
|
|
51438
52067
|
// : `${cardsstyles2.productPricestyles}` + ' m-0 wordbreak d-flex align-items-center text-left text-sm-right '
|
|
51439
52068
|
// }
|
|
51440
52069
|
// >
|
|
51441
|
-
//
|
|
52070
|
+
// {langdetect == 'en' ? item.currencyname : ''} {item.hassale == 1 ? item.defaultsaleprice : item.defaultprice} {langdetect == 'en' ? '' : item.currencyname}
|
|
51442
52071
|
// </p>
|
|
51443
52072
|
// )}
|
|
51444
52073
|
// {sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && <span class={`${cardsstyles2.productSalePricestyles}`}>/</span>}
|
|
@@ -51450,7 +52079,7 @@ var Card23 = function Card23(props) {
|
|
|
51450
52079
|
// : `${cardsstyles2.productSalePricestyles}` + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-left text-sm-right '
|
|
51451
52080
|
// }
|
|
51452
52081
|
// >
|
|
51453
|
-
//
|
|
52082
|
+
// {langdetect == 'en' ? item.currencyname : ''} {item.defaultprice} {langdetect == 'en' ? '' : item.currencyname}
|
|
51454
52083
|
// </p>
|
|
51455
52084
|
// )}
|
|
51456
52085
|
// </div>
|
|
@@ -51697,7 +52326,7 @@ var Card23 = function Card23(props) {
|
|
|
51697
52326
|
// : `${cardsstyles2.productPricestyles}` + ' m-0 wordbreak d-flex align-items-center text-left text-sm-right '
|
|
51698
52327
|
// }
|
|
51699
52328
|
// >
|
|
51700
|
-
//
|
|
52329
|
+
// {langdetect == 'en' ? item.currencyname : ''} {item.hassale == 1 ? item.defaultsaleprice : item.defaultprice} {langdetect == 'en' ? '' : item.currencyname}
|
|
51701
52330
|
// </p>
|
|
51702
52331
|
// )}
|
|
51703
52332
|
// {sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && <span class={`${cardsstyles2.productSalePricestyles}`}>/</span>}
|
|
@@ -51709,7 +52338,7 @@ var Card23 = function Card23(props) {
|
|
|
51709
52338
|
// : `${cardsstyles2.productSalePricestyles}` + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-left text-sm-right '
|
|
51710
52339
|
// }
|
|
51711
52340
|
// >
|
|
51712
|
-
//
|
|
52341
|
+
// {langdetect == 'en' ? item.currencyname : ''} {item.defaultprice} {langdetect == 'en' ? '' : item.currencyname}
|
|
51713
52342
|
// </p>
|
|
51714
52343
|
// )}
|
|
51715
52344
|
// </div>
|
|
@@ -52268,7 +52897,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
52268
52897
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
52269
52898
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
52270
52899
|
background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
|
|
52271
|
-
opacity: item.
|
|
52900
|
+
opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' ? 0.4 : 1
|
|
52272
52901
|
}),
|
|
52273
52902
|
quantitybtn: glamor.css({
|
|
52274
52903
|
flex: 1,
|
|
@@ -52490,7 +53119,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
52490
53119
|
color: sectionproperties.badge_color,
|
|
52491
53120
|
fontSize: sectionproperties.badge_fontsize + 'px'
|
|
52492
53121
|
}
|
|
52493
|
-
}, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), item.
|
|
53122
|
+
}, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52494
53123
|
"class": "".concat(cardsstyles2.outstockbadge) + ' allcentered '
|
|
52495
53124
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
52496
53125
|
"class": "m-0 p-0"
|
|
@@ -52530,7 +53159,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
52530
53159
|
transform: ' rotate(-180deg)'
|
|
52531
53160
|
},
|
|
52532
53161
|
onClick: function onClick() {
|
|
52533
|
-
if (item.
|
|
53162
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
52534
53163
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
52535
53164
|
} else if (item.hasvariants == 0) {
|
|
52536
53165
|
updatequantity('remove');
|
|
@@ -52544,7 +53173,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
52544
53173
|
})), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
52545
53174
|
"class": "".concat(cardsstyles2.add_quantitybtn_icon_container) + ' m-1 ',
|
|
52546
53175
|
onClick: function onClick() {
|
|
52547
|
-
if (item.
|
|
53176
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
52548
53177
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
52549
53178
|
} else if (item.hasvariants == 0) {
|
|
52550
53179
|
updatequantity('add');
|
|
@@ -52563,7 +53192,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
52563
53192
|
transform: ' rotate(-180deg)'
|
|
52564
53193
|
},
|
|
52565
53194
|
onClick: function onClick() {
|
|
52566
|
-
if (item.
|
|
53195
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
52567
53196
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
52568
53197
|
} else if (item.hasvariants == 0) {
|
|
52569
53198
|
updatequantity('remove');
|
|
@@ -52577,7 +53206,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
52577
53206
|
})), langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
52578
53207
|
"class": "".concat(cardsstyles2.add_quantitybtn_icon_container) + ' m-1 ',
|
|
52579
53208
|
onClick: function onClick() {
|
|
52580
|
-
if (item.
|
|
53209
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
52581
53210
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
52582
53211
|
} else if (item.hasvariants == 0) {
|
|
52583
53212
|
updatequantity('add');
|
|
@@ -56800,7 +57429,7 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
|
|
|
56800
57429
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
56801
57430
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
56802
57431
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
56803
|
-
opacity: item.
|
|
57432
|
+
opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? 0.4 : 1
|
|
56804
57433
|
}
|
|
56805
57434
|
}), sectionproperties.showbadge == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
56806
57435
|
"class": "allcentered",
|
|
@@ -56838,7 +57467,7 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
|
|
|
56838
57467
|
fontSize: sectionproperties.pillfontSize + 'px',
|
|
56839
57468
|
direction: 'ltr'
|
|
56840
57469
|
}
|
|
56841
|
-
}, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), item.
|
|
57470
|
+
}, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
56842
57471
|
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
56843
57472
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
56844
57473
|
"class": "m-0 p-0"
|
|
@@ -56864,7 +57493,7 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
|
|
|
56864
57493
|
}, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
56865
57494
|
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center cursor-pointer ',
|
|
56866
57495
|
onClick: function onClick() {
|
|
56867
|
-
if (item.
|
|
57496
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
|
|
56868
57497
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
56869
57498
|
} else {
|
|
56870
57499
|
setShowProductInfoModalContext(true);
|
|
@@ -58584,7 +59213,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
58584
59213
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
58585
59214
|
var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
|
|
58586
59215
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
58587
|
-
|
|
59216
|
+
props.actions.NotificationManager;
|
|
58588
59217
|
var plainString = function plainString(html) {
|
|
58589
59218
|
var divContainer = document.createElement('div');
|
|
58590
59219
|
divContainer.innerHTML = html;
|
|
@@ -58622,7 +59251,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
58622
59251
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
58623
59252
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
58624
59253
|
transition: '.3s',
|
|
58625
|
-
opacity: item.
|
|
59254
|
+
opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? 0.4 : 1,
|
|
58626
59255
|
'@media (max-width: 800px)': {
|
|
58627
59256
|
height: sectionproperties.height_responsive != null ? sectionproperties.height_responsive + 'px' : sectionproperties.image_height + 'px'
|
|
58628
59257
|
}
|
|
@@ -58838,7 +59467,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
58838
59467
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
58839
59468
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
58840
59469
|
}
|
|
58841
|
-
})), item.
|
|
59470
|
+
})), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
58842
59471
|
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
58843
59472
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
58844
59473
|
"class": "m-0 p-0"
|
|
@@ -58922,12 +59551,8 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
58922
59551
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
58923
59552
|
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
|
|
58924
59553
|
onClick: function onClick() {
|
|
58925
|
-
|
|
58926
|
-
|
|
58927
|
-
} else {
|
|
58928
|
-
setShowProductInfoModalContext(true);
|
|
58929
|
-
setProductIdProdutInfoModalContext(item.productid);
|
|
58930
|
-
}
|
|
59554
|
+
setShowProductInfoModalContext(true);
|
|
59555
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
58931
59556
|
}
|
|
58932
59557
|
}, sectionproperties.cartBtn_iconFontSize != 0 && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
58933
59558
|
"class": langdetect == 'en' ? 'h-100 mr-2 d-flex align-items-center justify-content-center' : 'h-100 ml-2 d-flex align-items-center justify-content-center'
|
|
@@ -60048,7 +60673,7 @@ var QuantityButtonBasedProductCard = function QuantityButtonBasedProductCard(pro
|
|
|
60048
60673
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
60049
60674
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
60050
60675
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
60051
|
-
opacity: item.
|
|
60676
|
+
opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? sectionproperties.outofstockimageopcity : 1,
|
|
60052
60677
|
transition: '.3s'
|
|
60053
60678
|
}),
|
|
60054
60679
|
productNameStyles: glamor.css({
|
|
@@ -60280,7 +60905,7 @@ var QuantityButtonBasedProductCard = function QuantityButtonBasedProductCard(pro
|
|
|
60280
60905
|
height: sectionproperties.badge_height + 'px',
|
|
60281
60906
|
background: sectionproperties.badge_bgcolor,
|
|
60282
60907
|
borderRadius: sectionproperties.badge_borderradius + 'px',
|
|
60283
|
-
display: item.
|
|
60908
|
+
display: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && sectionproperties.outofstock_replacebadges == 'Replace' ? 'none' : 'flex'
|
|
60284
60909
|
}
|
|
60285
60910
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
60286
60911
|
"class": "m-0 p-0",
|
|
@@ -60300,7 +60925,7 @@ var QuantityButtonBasedProductCard = function QuantityButtonBasedProductCard(pro
|
|
|
60300
60925
|
height: sectionproperties.pillheight + 'px',
|
|
60301
60926
|
background: sectionproperties.pillbgcolor,
|
|
60302
60927
|
borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px',
|
|
60303
|
-
display: item.
|
|
60928
|
+
display: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && sectionproperties.outofstock_replacebadges == 'Replace' ? 'none' : 'flex'
|
|
60304
60929
|
}
|
|
60305
60930
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
60306
60931
|
"class": "m-0 p-0 text-uppercase",
|
|
@@ -60358,11 +60983,11 @@ var QuantityButtonBasedProductCard = function QuantityButtonBasedProductCard(pro
|
|
|
60358
60983
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
60359
60984
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
60360
60985
|
}
|
|
60361
|
-
})), item.
|
|
60986
|
+
})), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && sectionproperties.outofstock_centered == 'Not centered' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
60362
60987
|
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
60363
60988
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
60364
60989
|
"class": "m-0 p-0"
|
|
60365
|
-
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar)), item.
|
|
60990
|
+
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar)), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && sectionproperties.outofstock_centered == 'Centered' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
60366
60991
|
"class": "".concat(card_cssstyles.outstockbadgecentered) + ' allcentered '
|
|
60367
60992
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
60368
60993
|
"class": "m-0 p-0"
|
|
@@ -60372,7 +60997,7 @@ var QuantityButtonBasedProductCard = function QuantityButtonBasedProductCard(pro
|
|
|
60372
60997
|
if (sectionproperties.quantitybtn_show == 'Show' && showquantity == false) {
|
|
60373
60998
|
setshowquantity(true);
|
|
60374
60999
|
} else {
|
|
60375
|
-
if (item.
|
|
61000
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
|
|
60376
61001
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
60377
61002
|
} else {
|
|
60378
61003
|
setShowProductInfoModalContext(true);
|