tabexseriescomponents 0.0.298 → 0.0.299
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 +545 -72
- package/dist/index.esm.js +545 -72
- package/dist/index.umd.js +545 -72
- 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
|
}
|
|
@@ -1600,8 +1600,8 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
1600
1600
|
}, 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
1601
|
};
|
|
1602
1602
|
|
|
1603
|
-
function ownKeys$
|
|
1604
|
-
function _objectSpread$
|
|
1603
|
+
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; }
|
|
1604
|
+
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
1605
|
var ProductExtraFields = function ProductExtraFields(props) {
|
|
1606
1606
|
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _css, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7;
|
|
1607
1607
|
props.actions.lang;
|
|
@@ -1656,9 +1656,9 @@ var ProductExtraFields = function ProductExtraFields(props) {
|
|
|
1656
1656
|
});
|
|
1657
1657
|
}
|
|
1658
1658
|
setproductextravaluesarray(_toConsumableArray__default["default"](tempproductextravaluesarray));
|
|
1659
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
1659
|
+
var tempaddtocardpayloadobj = _objectSpread$29({}, addtocardpayloadobj);
|
|
1660
1660
|
tempaddtocardpayloadobj.extrafields = tempproductextravaluesarray;
|
|
1661
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1661
|
+
setaddtocardpayloadobj(_objectSpread$29({}, tempaddtocardpayloadobj));
|
|
1662
1662
|
};
|
|
1663
1663
|
var formstyles = {
|
|
1664
1664
|
input_label_name: glamor.css({
|
|
@@ -1763,8 +1763,8 @@ var ProductExtraFields = function ProductExtraFields(props) {
|
|
|
1763
1763
|
}))));
|
|
1764
1764
|
};
|
|
1765
1765
|
|
|
1766
|
-
function ownKeys$
|
|
1767
|
-
function _objectSpread$
|
|
1766
|
+
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; }
|
|
1767
|
+
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
1768
|
var Product_itemtype = function Product_itemtype(props) {
|
|
1769
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, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42, _fetchProductInfoQuer43, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer47, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _fetchProductInfoQuer51, _fetchProductInfoQuer52, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _fetchProductInfoQuer55, _fetchProductInfoQuer56, _fetchProductInfoQuer57, _fetchProductInfoQuer58;
|
|
1770
1770
|
var lang = props.actions.lang;
|
|
@@ -2126,11 +2126,11 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2126
2126
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2127
2127
|
className: "".concat(productinfo_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
2128
2128
|
onClick: function onClick() {
|
|
2129
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2129
|
+
var tempaddtocardpayloadobj = _objectSpread$28({}, addtocardpayloadobj);
|
|
2130
2130
|
if (tempaddtocardpayloadobj.quantity > 0) {
|
|
2131
2131
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity - 1;
|
|
2132
2132
|
}
|
|
2133
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2133
|
+
setaddtocardpayloadobj(_objectSpread$28({}, tempaddtocardpayloadobj));
|
|
2134
2134
|
}
|
|
2135
2135
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2136
2136
|
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-down' : 'h-100 allcentered',
|
|
@@ -2144,9 +2144,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2144
2144
|
}, addtocardpayloadobj.quantity), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2145
2145
|
className: "".concat(productinfo_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
2146
2146
|
onClick: function onClick() {
|
|
2147
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2147
|
+
var tempaddtocardpayloadobj = _objectSpread$28({}, addtocardpayloadobj);
|
|
2148
2148
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + 1;
|
|
2149
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2149
|
+
setaddtocardpayloadobj(_objectSpread$28({}, tempaddtocardpayloadobj));
|
|
2150
2150
|
}
|
|
2151
2151
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2152
2152
|
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-up' : 'h-100 allcentered'
|
|
@@ -2426,8 +2426,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2426
2426
|
}, StoreInfoprops())))));
|
|
2427
2427
|
};
|
|
2428
2428
|
|
|
2429
|
-
function ownKeys$
|
|
2430
|
-
function _objectSpread$
|
|
2429
|
+
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; }
|
|
2430
|
+
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
2431
|
var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
2432
2432
|
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
2433
|
var langdetect = props.actions.langdetect;
|
|
@@ -2468,7 +2468,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2468
2468
|
slots = _useState6[0],
|
|
2469
2469
|
setslots = _useState6[1];
|
|
2470
2470
|
React.useEffect(function () {
|
|
2471
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2471
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2472
2472
|
item_type: 'service'
|
|
2473
2473
|
}));
|
|
2474
2474
|
}, [tabsarray]);
|
|
@@ -2480,16 +2480,16 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2480
2480
|
if (diffDays.toString() != 'NaN') {
|
|
2481
2481
|
if (date2 <= date1) {
|
|
2482
2482
|
NotificationManager.warning('', 'Please choose another date.');
|
|
2483
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2483
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2484
2484
|
quantity: 0
|
|
2485
2485
|
}));
|
|
2486
2486
|
} else {
|
|
2487
2487
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= diffDays && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= diffDays) {
|
|
2488
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2488
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2489
2489
|
quantity: diffDays
|
|
2490
2490
|
}));
|
|
2491
2491
|
} else {
|
|
2492
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2492
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2493
2493
|
quantity: 0
|
|
2494
2494
|
}));
|
|
2495
2495
|
NotificationManager.warning('', 'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
|
|
@@ -2625,7 +2625,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2625
2625
|
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
2626
|
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
2627
|
onChange: function onChange(event) {
|
|
2628
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2628
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2629
2629
|
from: event.target.value
|
|
2630
2630
|
}));
|
|
2631
2631
|
}
|
|
@@ -2645,7 +2645,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2645
2645
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
2646
2646
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
2647
2647
|
onChange: function onChange(event) {
|
|
2648
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2648
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2649
2649
|
to: event.target.value
|
|
2650
2650
|
}));
|
|
2651
2651
|
}
|
|
@@ -2665,7 +2665,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2665
2665
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
2666
2666
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
2667
2667
|
onChange: function onChange(event) {
|
|
2668
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2668
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2669
2669
|
date: event.target.value
|
|
2670
2670
|
}));
|
|
2671
2671
|
setcurrentmutatestate('/fetchserviceslots');
|
|
@@ -2716,7 +2716,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2716
2716
|
color: ischoosed ? sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? sectionproperties.generalbtn_textColoronhover : sectionproperties.generalbtn_textColor : ''
|
|
2717
2717
|
},
|
|
2718
2718
|
onClick: function onClick() {
|
|
2719
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2719
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2720
2720
|
time: item.slot
|
|
2721
2721
|
}));
|
|
2722
2722
|
}
|
|
@@ -2725,7 +2725,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2725
2725
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
2726
2726
|
"class": TabsStyles.booknow_btn_resp + ' allcentered ',
|
|
2727
2727
|
onClick: function onClick() {
|
|
2728
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2728
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2729
2729
|
time: item.slot
|
|
2730
2730
|
}));
|
|
2731
2731
|
}
|
|
@@ -2767,7 +2767,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2767
2767
|
"class": ischoosed == true ? TabsStyles.timeSlotContainer_active + ' allcentered cursor-pointer px-1 ' : TabsStyles.timeSlotContainer + ' allcentered cursor-pointer px-1 ',
|
|
2768
2768
|
style: {},
|
|
2769
2769
|
onClick: function onClick() {
|
|
2770
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2770
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2771
2771
|
time: item.slot
|
|
2772
2772
|
}));
|
|
2773
2773
|
}
|
|
@@ -3420,8 +3420,8 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
3420
3420
|
}, StoreInfoprops()))));
|
|
3421
3421
|
};
|
|
3422
3422
|
|
|
3423
|
-
function ownKeys$
|
|
3424
|
-
function _objectSpread$
|
|
3423
|
+
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; }
|
|
3424
|
+
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
3425
|
var AddReview = function AddReview(props) {
|
|
3426
3426
|
var _css;
|
|
3427
3427
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -3475,7 +3475,7 @@ var AddReview = function AddReview(props) {
|
|
|
3475
3475
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
3476
3476
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
3477
3477
|
});
|
|
3478
|
-
setsectionproperties(_objectSpread$
|
|
3478
|
+
setsectionproperties(_objectSpread$26({}, secpropobj));
|
|
3479
3479
|
}
|
|
3480
3480
|
}, [StatePagePropertiesContext]);
|
|
3481
3481
|
React.useEffect(function () {
|
|
@@ -3484,7 +3484,7 @@ var AddReview = function AddReview(props) {
|
|
|
3484
3484
|
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
3485
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
3486
3486
|
});
|
|
3487
|
-
setsectionproperties(_objectSpread$
|
|
3487
|
+
setsectionproperties(_objectSpread$26({}, secpropobj));
|
|
3488
3488
|
}, [pageindexcontext]);
|
|
3489
3489
|
var reviewstyles = {
|
|
3490
3490
|
submitreviewbtn: glamor.css({
|
|
@@ -3610,9 +3610,9 @@ var AddReview = function AddReview(props) {
|
|
|
3610
3610
|
}),
|
|
3611
3611
|
activeColor: "#ffd700",
|
|
3612
3612
|
onChange: function onChange(event) {
|
|
3613
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
3613
|
+
var tempreviewpayloadobj = _objectSpread$26({}, reviewpayloadobj);
|
|
3614
3614
|
tempreviewpayloadobj.reviewrate = event;
|
|
3615
|
-
setreviewpayloadobj(_objectSpread$
|
|
3615
|
+
setreviewpayloadobj(_objectSpread$26({}, tempreviewpayloadobj));
|
|
3616
3616
|
}
|
|
3617
3617
|
})))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3618
3618
|
"class": "col-lg-12"
|
|
@@ -3626,9 +3626,9 @@ var AddReview = function AddReview(props) {
|
|
|
3626
3626
|
"class": reviewstyles.form_control,
|
|
3627
3627
|
value: reviewpayloadobj.reviewname,
|
|
3628
3628
|
onChange: function onChange(event) {
|
|
3629
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
3629
|
+
var tempreviewpayloadobj = _objectSpread$26({}, reviewpayloadobj);
|
|
3630
3630
|
tempreviewpayloadobj.reviewname = event.target.value;
|
|
3631
|
-
setreviewpayloadobj(_objectSpread$
|
|
3631
|
+
setreviewpayloadobj(_objectSpread$26({}, tempreviewpayloadobj));
|
|
3632
3632
|
}
|
|
3633
3633
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3634
3634
|
"class": "col-lg-12 mb-4"
|
|
@@ -3638,9 +3638,9 @@ var AddReview = function AddReview(props) {
|
|
|
3638
3638
|
"class": reviewstyles.form_control,
|
|
3639
3639
|
value: reviewpayloadobj.reviewtitle,
|
|
3640
3640
|
onChange: function onChange(event) {
|
|
3641
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
3641
|
+
var tempreviewpayloadobj = _objectSpread$26({}, reviewpayloadobj);
|
|
3642
3642
|
tempreviewpayloadobj.reviewtitle = event.target.value;
|
|
3643
|
-
setreviewpayloadobj(_objectSpread$
|
|
3643
|
+
setreviewpayloadobj(_objectSpread$26({}, tempreviewpayloadobj));
|
|
3644
3644
|
}
|
|
3645
3645
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3646
3646
|
"class": "col-lg-12 mb-4"
|
|
@@ -3651,9 +3651,9 @@ var AddReview = function AddReview(props) {
|
|
|
3651
3651
|
"class": reviewstyles.form_control + ' form_control ',
|
|
3652
3652
|
value: reviewpayloadobj.reviewbody,
|
|
3653
3653
|
onChange: function onChange(event) {
|
|
3654
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
3654
|
+
var tempreviewpayloadobj = _objectSpread$26({}, reviewpayloadobj);
|
|
3655
3655
|
tempreviewpayloadobj.reviewbody = event.target.value;
|
|
3656
|
-
setreviewpayloadobj(_objectSpread$
|
|
3656
|
+
setreviewpayloadobj(_objectSpread$26({}, tempreviewpayloadobj));
|
|
3657
3657
|
},
|
|
3658
3658
|
style: {
|
|
3659
3659
|
resize: 'none',
|
|
@@ -3688,10 +3688,253 @@ var AddReview = function AddReview(props) {
|
|
|
3688
3688
|
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)));
|
|
3689
3689
|
};
|
|
3690
3690
|
|
|
3691
|
+
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; }
|
|
3692
|
+
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; }
|
|
3693
|
+
var ProductReviews = function ProductReviews(props) {
|
|
3694
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12;
|
|
3695
|
+
props.actions.lang;
|
|
3696
|
+
var langdetect = props.actions.langdetect;
|
|
3697
|
+
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
3698
|
+
var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
3699
|
+
props.actions.NotificationManager;
|
|
3700
|
+
var sectionproperties = props.actions.sectionproperties;
|
|
3701
|
+
var actions = props.actions;
|
|
3702
|
+
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;
|
|
3703
|
+
var productinfo_cssstyles = props.actions.productinfo_cssstyles;
|
|
3704
|
+
var _useState = React.useState(false),
|
|
3705
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
3706
|
+
canuserreview = _useState2[0],
|
|
3707
|
+
setcanuserreview = _useState2[1];
|
|
3708
|
+
var _useState3 = React.useState(false),
|
|
3709
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
3710
|
+
openreviewmodal = _useState4[0],
|
|
3711
|
+
setopenreviewmodal = _useState4[1];
|
|
3712
|
+
var _useState5 = React.useState('all'),
|
|
3713
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
3714
|
+
filterproductreviews = _useState6[0],
|
|
3715
|
+
setfilterproductreviews = _useState6[1];
|
|
3716
|
+
var _useState7 = React.useState([]),
|
|
3717
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
3718
|
+
productreviews = _useState8[0],
|
|
3719
|
+
setproductreviews = _useState8[1];
|
|
3720
|
+
React.useEffect(function () {
|
|
3721
|
+
if (fetchProductInfoQueryContext.isSuccess) {
|
|
3722
|
+
getreviewsassignermutationfunc();
|
|
3723
|
+
}
|
|
3724
|
+
}, [filterproductreviews]);
|
|
3725
|
+
var getreviewsassignermutationfunc = function getreviewsassignermutationfunc() {
|
|
3726
|
+
var _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6;
|
|
3727
|
+
GeneralAPIMutationContext.mutate({
|
|
3728
|
+
endpointurl: '/fetchproductreviews',
|
|
3729
|
+
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,
|
|
3730
|
+
filterproductreviews: filterproductreviews,
|
|
3731
|
+
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
3732
|
+
if (data.data.status) {
|
|
3733
|
+
setproductreviews(data.data.productreviews);
|
|
3734
|
+
setcanuserreview(data.data.canuserAddReview);
|
|
3735
|
+
}
|
|
3736
|
+
}
|
|
3737
|
+
});
|
|
3738
|
+
};
|
|
3739
|
+
var addreviewcallback = function addreviewcallback() {
|
|
3740
|
+
setopenreviewmodal(false);
|
|
3741
|
+
getreviewsassignermutationfunc();
|
|
3742
|
+
fetchProductInfoQueryContext.refetch();
|
|
3743
|
+
};
|
|
3744
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3745
|
+
className: 'row w-100 ml-0 mr-0',
|
|
3746
|
+
style: {
|
|
3747
|
+
marginTop: sectionproperties.marginTop + 'px'
|
|
3748
|
+
}
|
|
3749
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3750
|
+
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0 plr-1025-0"
|
|
3751
|
+
}, GeneralAPIMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3752
|
+
"class": "col-lg-12 allcentered",
|
|
3753
|
+
style: {
|
|
3754
|
+
height: '20vh'
|
|
3755
|
+
}
|
|
3756
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.Messaging, {
|
|
3757
|
+
color: "#ccc",
|
|
3758
|
+
width: "10px",
|
|
3759
|
+
height: "10px",
|
|
3760
|
+
duration: "1s"
|
|
3761
|
+
})), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3762
|
+
"class": "row m-0 w-100"
|
|
3763
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3764
|
+
"class": "col-lg-3"
|
|
3765
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3766
|
+
"class": "row m-0 w-100 allcentered"
|
|
3767
|
+
}, canuserreview && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3768
|
+
"class": "col-lg-12 allcentered mb-3 p-0"
|
|
3769
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3770
|
+
"class": "".concat(productinfo_cssstyles.reviewbutton) + ' ',
|
|
3771
|
+
onClick: function onClick() {
|
|
3772
|
+
setopenreviewmodal(true);
|
|
3773
|
+
}
|
|
3774
|
+
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3775
|
+
"class": "col-lg-12 p-0 mb-3"
|
|
3776
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3777
|
+
"class": "row m-0 w-100 py-3 px-2",
|
|
3778
|
+
style: {
|
|
3779
|
+
borderRadius: 10,
|
|
3780
|
+
background: '#eee'
|
|
3781
|
+
}
|
|
3782
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3783
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
3784
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3785
|
+
"class": "m-0 font-weight-600 text-uppercase",
|
|
3786
|
+
style: {
|
|
3787
|
+
fontSize: '17px'
|
|
3788
|
+
}
|
|
3789
|
+
}, langdetect == 'en' ? 'Overall Ratings' : 'جميع التقييمات')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3790
|
+
"class": "col-lg-12 pl-3 pr-3"
|
|
3791
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", null)), /*#__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 p-0 font-weight-600",
|
|
3795
|
+
style: {
|
|
3796
|
+
fontSize: '20px'
|
|
3797
|
+
}
|
|
3798
|
+
}, 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", {
|
|
3799
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
3800
|
+
}, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
|
|
3801
|
+
count: 5,
|
|
3802
|
+
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,
|
|
3803
|
+
edit: false,
|
|
3804
|
+
size: 18,
|
|
3805
|
+
emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3806
|
+
className: "far fa-star",
|
|
3807
|
+
style: {
|
|
3808
|
+
color: '#bfbfbf'
|
|
3809
|
+
}
|
|
3810
|
+
}),
|
|
3811
|
+
halfIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3812
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
3813
|
+
}),
|
|
3814
|
+
filledIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3815
|
+
className: "fa fa-star",
|
|
3816
|
+
style: {
|
|
3817
|
+
color: '#FAB400'
|
|
3818
|
+
}
|
|
3819
|
+
}),
|
|
3820
|
+
activeColor: "#ffd700"
|
|
3821
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3822
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mb-3"
|
|
3823
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3824
|
+
"class": "row m-0 w-100 py-3 px-2",
|
|
3825
|
+
style: {
|
|
3826
|
+
borderRadius: 10,
|
|
3827
|
+
background: '#eee'
|
|
3828
|
+
}
|
|
3829
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3830
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
3831
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3832
|
+
"class": "m-0 font-weight-600 text-uppercase",
|
|
3833
|
+
style: {
|
|
3834
|
+
fontSize: '17px'
|
|
3835
|
+
}
|
|
3836
|
+
}, langdetect == 'en' ? 'Filter' : 'فلترة')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3837
|
+
"class": "col-lg-12 pl-3 pr-3"
|
|
3838
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3839
|
+
"class": "col-lg-12 d-flex justify-content-center"
|
|
3840
|
+
}, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
|
|
3841
|
+
count: 5,
|
|
3842
|
+
value: filterproductreviews
|
|
3843
|
+
// edit={false}
|
|
3844
|
+
,
|
|
3845
|
+
size: 18,
|
|
3846
|
+
emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3847
|
+
className: "far fa-star",
|
|
3848
|
+
style: {
|
|
3849
|
+
color: '#bfbfbf'
|
|
3850
|
+
}
|
|
3851
|
+
}),
|
|
3852
|
+
halfIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3853
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
3854
|
+
}),
|
|
3855
|
+
filledIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3856
|
+
className: "fa fa-star",
|
|
3857
|
+
style: {
|
|
3858
|
+
color: '#FAB400'
|
|
3859
|
+
}
|
|
3860
|
+
}),
|
|
3861
|
+
activeColor: "#ffd700",
|
|
3862
|
+
onChange: function onChange(event) {
|
|
3863
|
+
setfilterproductreviews(event);
|
|
3864
|
+
}
|
|
3865
|
+
})))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3866
|
+
"class": "col-lg-9"
|
|
3867
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3868
|
+
"class": "row m-0 w-100"
|
|
3869
|
+
}, productreviews === null || productreviews === void 0 ? void 0 : productreviews.map(function (reviewitem, reviewindex) {
|
|
3870
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3871
|
+
"class": "col-lg-12 flex-column"
|
|
3872
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3873
|
+
"class": "row m-0 w-100"
|
|
3874
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3875
|
+
"class": "col-lg-12 d-flex justify-content-start p-0 mb-2"
|
|
3876
|
+
}, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
|
|
3877
|
+
count: 5,
|
|
3878
|
+
value: reviewitem.review_rating,
|
|
3879
|
+
edit: false,
|
|
3880
|
+
size: 18,
|
|
3881
|
+
emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3882
|
+
className: "far fa-star",
|
|
3883
|
+
style: {
|
|
3884
|
+
color: '#bfbfbf'
|
|
3885
|
+
}
|
|
3886
|
+
}),
|
|
3887
|
+
halfIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3888
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
3889
|
+
}),
|
|
3890
|
+
filledIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3891
|
+
className: "fa fa-star",
|
|
3892
|
+
style: {
|
|
3893
|
+
color: '#FAB400'
|
|
3894
|
+
}
|
|
3895
|
+
}),
|
|
3896
|
+
activeColor: "#ffd700"
|
|
3897
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3898
|
+
"class": "col-lg-12 p-0 mb-2 d-flex justify-content-start "
|
|
3899
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3900
|
+
"class": "m-0 p-0 font-weight-600",
|
|
3901
|
+
style: {
|
|
3902
|
+
fontSize: '17px'
|
|
3903
|
+
}
|
|
3904
|
+
}, reviewitem.reviewtitle)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3905
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mb-2"
|
|
3906
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3907
|
+
"class": "m-0 p-0 font-weight-500"
|
|
3908
|
+
}, reviewitem.reviewbody)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3909
|
+
"class": "col-lg-6 d-flex align-items-center justify-content-start p-0"
|
|
3910
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3911
|
+
"class": "m-0 p-0 font-weight-600"
|
|
3912
|
+
}, langdetect == 'en' ? 'By' : 'عن طريق', ": ", reviewitem.review_name)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3913
|
+
"class": "col-lg-6 d-flex align-items-center justify-content-end justify-content-md-start p-0 font-weight-500 text-light"
|
|
3914
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3915
|
+
"class": "fa fa-clock text-light ml-2 mr-2"
|
|
3916
|
+
}), " ", reviewitem.timestamp)), /*#__PURE__*/React__default["default"].createElement("hr", null));
|
|
3917
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal, {
|
|
3918
|
+
show: openreviewmodal,
|
|
3919
|
+
onHide: function onHide() {
|
|
3920
|
+
return setopenreviewmodal(false);
|
|
3921
|
+
},
|
|
3922
|
+
centered: true,
|
|
3923
|
+
size: "md",
|
|
3924
|
+
"class": "reviewmodal"
|
|
3925
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement(AddReview, {
|
|
3926
|
+
actions: _objectSpread$25(_objectSpread$25({}, actions), {}, {
|
|
3927
|
+
productid: productid,
|
|
3928
|
+
canuserreview: canuserreview,
|
|
3929
|
+
addreviewcallback: addreviewcallback
|
|
3930
|
+
})
|
|
3931
|
+
}))));
|
|
3932
|
+
};
|
|
3933
|
+
|
|
3691
3934
|
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
3935
|
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
3936
|
var Productinfo = function Productinfo(props) {
|
|
3694
|
-
var _css, _ref, _ref2;
|
|
3937
|
+
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
3938
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
3696
3939
|
var lang = props.actions.lang;
|
|
3697
3940
|
var langdetect = props.actions.langdetect;
|
|
@@ -3713,7 +3956,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3713
3956
|
var setpageindexcontext = props.actions.setpageindexcontext;
|
|
3714
3957
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
3715
3958
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
3716
|
-
props.actions;
|
|
3959
|
+
var actions = props.actions;
|
|
3717
3960
|
var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
3718
3961
|
var setCurrentPageIdContext = props.actions.setCurrentPageIdContext;
|
|
3719
3962
|
var NotificationManager = props.actions.NotificationManager;
|
|
@@ -3778,21 +4021,24 @@ var Productinfo = function Productinfo(props) {
|
|
|
3778
4021
|
isloaded = _useState24[0],
|
|
3779
4022
|
setisloaded = _useState24[1];
|
|
3780
4023
|
var _useState25 = React.useState(false),
|
|
3781
|
-
_useState26 = _slicedToArray__default["default"](_useState25, 2)
|
|
3782
|
-
_useState26[0]
|
|
3783
|
-
_useState26[1];
|
|
4024
|
+
_useState26 = _slicedToArray__default["default"](_useState25, 2),
|
|
4025
|
+
showMore = _useState26[0],
|
|
4026
|
+
setShowMore = _useState26[1];
|
|
3784
4027
|
var _useState27 = React.useState(0),
|
|
3785
4028
|
_useState28 = _slicedToArray__default["default"](_useState27, 2),
|
|
3786
4029
|
currentshowingimageindex = _useState28[0],
|
|
3787
4030
|
setcurrentshowingimageindex = _useState28[1];
|
|
3788
4031
|
var _useState29 = React.useState(0),
|
|
3789
|
-
_useState30 = _slicedToArray__default["default"](_useState29, 2)
|
|
3790
|
-
_useState30[0]
|
|
3791
|
-
_useState30[1];
|
|
4032
|
+
_useState30 = _slicedToArray__default["default"](_useState29, 2),
|
|
4033
|
+
tabIndex = _useState30[0],
|
|
4034
|
+
setTabIndex = _useState30[1];
|
|
3792
4035
|
var _useState31 = React.useState('descriptiontab'),
|
|
3793
|
-
_useState32 = _slicedToArray__default["default"](_useState31, 2)
|
|
3794
|
-
_useState32[0]
|
|
3795
|
-
_useState32[1];
|
|
4036
|
+
_useState32 = _slicedToArray__default["default"](_useState31, 2),
|
|
4037
|
+
tabname = _useState32[0],
|
|
4038
|
+
settabname = _useState32[1];
|
|
4039
|
+
var handleTabChange = function handleTabChange(event, newTabIndex) {
|
|
4040
|
+
setTabIndex(newTabIndex);
|
|
4041
|
+
};
|
|
3796
4042
|
React.useEffect(function () {
|
|
3797
4043
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
3798
4044
|
var secpropobj = {};
|
|
@@ -4750,7 +4996,234 @@ var Productinfo = function Productinfo(props) {
|
|
|
4750
4996
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
4751
4997
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0
|
|
4752
4998
|
}
|
|
4753
|
-
}
|
|
4999
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5000
|
+
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
|
|
5001
|
+
style: {
|
|
5002
|
+
paddingLeft: sectionproperties.tabspaddinghorizontal + 'px',
|
|
5003
|
+
paddingRight: sectionproperties.tabspaddinghorizontal + 'px',
|
|
5004
|
+
marginBottom: sectionproperties.tabsmb + 'px',
|
|
5005
|
+
paddingTop: sectionproperties.tabsPt + 'px',
|
|
5006
|
+
paddingBottom: sectionproperties.tabsPb + 'px'
|
|
5007
|
+
}
|
|
5008
|
+
}, sectionproperties.tabsfullwidth == 'Full Width' && /*#__PURE__*/React__default["default"].createElement(material.Box, null, /*#__PURE__*/React__default["default"].createElement(material.Tabs, {
|
|
5009
|
+
value: tabIndex,
|
|
5010
|
+
onChange: handleTabChange,
|
|
5011
|
+
scrollButtons: "auto",
|
|
5012
|
+
TabIndicatorProps: {
|
|
5013
|
+
style: {
|
|
5014
|
+
background: sectionproperties.activetabbordercolor
|
|
5015
|
+
// right: sectionproperties.showfirstpolicy == 'Hide' ? 0 : sectionproperties.showsecondpolicy == 'Hide' ? 0 : '',
|
|
5016
|
+
// margin: sectionproperties.showfirstpolicy == 'Hide' ? 'auto' : sectionproperties.showsecondpolicy == 'Hide' ? 'auto' : '',
|
|
5017
|
+
}
|
|
5018
|
+
},
|
|
5019
|
+
|
|
5020
|
+
sx: {
|
|
5021
|
+
'& button': {
|
|
5022
|
+
color: sectionproperties.tabtextcolor,
|
|
5023
|
+
fontWeight: sectionproperties.tabtextfontweight,
|
|
5024
|
+
background: sectionproperties.tabcontainerbgcolor,
|
|
5025
|
+
textTransform: sectionproperties.tabtexttexttransform,
|
|
5026
|
+
borderRadius: sectionproperties.tabcontainerborderradius + 'px',
|
|
5027
|
+
fontFamily: 'Poppins',
|
|
5028
|
+
transition: '.3s',
|
|
5029
|
+
fontSize: sectionproperties.tabtextfontsize + 'px'
|
|
5030
|
+
},
|
|
5031
|
+
'& button:hover': {
|
|
5032
|
+
color: sectionproperties.tabscoloronhover,
|
|
5033
|
+
fontFamily: 'Poppins',
|
|
5034
|
+
transition: '.3s'
|
|
5035
|
+
},
|
|
5036
|
+
'& button.Mui-selected': {
|
|
5037
|
+
color: sectionproperties.tabtextactivecolor,
|
|
5038
|
+
background: sectionproperties.activetabbgcolor,
|
|
5039
|
+
fontFamily: 'Poppins',
|
|
5040
|
+
transition: '.3s'
|
|
5041
|
+
}
|
|
5042
|
+
},
|
|
5043
|
+
variant: 'fullWidth'
|
|
5044
|
+
// tabsfullwidth
|
|
5045
|
+
}, sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
5046
|
+
label: langdetect == 'en' ? sectionproperties.tabsdescEn : sectionproperties.tabsdescAr,
|
|
5047
|
+
onClick: function onClick() {
|
|
5048
|
+
settabname('descriptiontab');
|
|
5049
|
+
}
|
|
5050
|
+
}), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showfirstpolicy == 'Show' && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
5051
|
+
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,
|
|
5052
|
+
onClick: function onClick() {
|
|
5053
|
+
settabname('shippingpolicytab');
|
|
5054
|
+
}
|
|
5055
|
+
}), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showsecondpolicy == 'Show' && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
5056
|
+
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,
|
|
5057
|
+
onClick: function onClick() {
|
|
5058
|
+
settabname('refundpolicytab');
|
|
5059
|
+
}
|
|
5060
|
+
}), (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, {
|
|
5061
|
+
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
5062
|
+
onClick: function onClick() {
|
|
5063
|
+
settabname('reviewstab');
|
|
5064
|
+
}
|
|
5065
|
+
}))), sectionproperties.tabsfullwidth != 'Full Width' && /*#__PURE__*/React__default["default"].createElement(material.Box, null, /*#__PURE__*/React__default["default"].createElement(material.Tabs, {
|
|
5066
|
+
value: tabIndex,
|
|
5067
|
+
onChange: handleTabChange,
|
|
5068
|
+
scrollButtons: "auto",
|
|
5069
|
+
TabIndicatorProps: {
|
|
5070
|
+
style: {
|
|
5071
|
+
background: sectionproperties.activetabbordercolor
|
|
5072
|
+
// right: sectionproperties.showfirstpolicy == 'Hide' ? 0 : sectionproperties.showsecondpolicy == 'Hide' ? 0 : '',
|
|
5073
|
+
// margin: sectionproperties.showfirstpolicy == 'Hide' ? 'auto' : sectionproperties.showsecondpolicy == 'Hide' ? 'auto' : '',
|
|
5074
|
+
}
|
|
5075
|
+
},
|
|
5076
|
+
|
|
5077
|
+
sx: {
|
|
5078
|
+
'& button': {
|
|
5079
|
+
color: sectionproperties.tabtextcolor,
|
|
5080
|
+
fontWeight: sectionproperties.tabtextfontweight,
|
|
5081
|
+
background: sectionproperties.tabcontainerbgcolor,
|
|
5082
|
+
textTransform: sectionproperties.tabtexttexttransform,
|
|
5083
|
+
borderRadius: sectionproperties.tabcontainerborderradius + 'px',
|
|
5084
|
+
fontFamily: 'Poppins',
|
|
5085
|
+
transition: '.3s',
|
|
5086
|
+
fontSize: sectionproperties.tabtextfontsize + 'px'
|
|
5087
|
+
},
|
|
5088
|
+
'& button:hover': {
|
|
5089
|
+
color: sectionproperties.tabscoloronhover,
|
|
5090
|
+
fontFamily: 'Poppins',
|
|
5091
|
+
transition: '.3s'
|
|
5092
|
+
},
|
|
5093
|
+
'& button.Mui-selected': {
|
|
5094
|
+
color: sectionproperties.tabtextactivecolor,
|
|
5095
|
+
background: sectionproperties.activetabbgcolor,
|
|
5096
|
+
fontFamily: 'Poppins',
|
|
5097
|
+
transition: '.3s'
|
|
5098
|
+
}
|
|
5099
|
+
}
|
|
5100
|
+
}, sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
5101
|
+
label: langdetect == 'en' ? sectionproperties.tabsdescEn : sectionproperties.tabsdescAr,
|
|
5102
|
+
onClick: function onClick() {
|
|
5103
|
+
settabname('descriptiontab');
|
|
5104
|
+
}
|
|
5105
|
+
}), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showfirstpolicy == 'Show' && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
5106
|
+
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,
|
|
5107
|
+
onClick: function onClick() {
|
|
5108
|
+
settabname('shippingpolicytab');
|
|
5109
|
+
}
|
|
5110
|
+
}), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showsecondpolicy == 'Show' && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
5111
|
+
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,
|
|
5112
|
+
onClick: function onClick() {
|
|
5113
|
+
settabname('refundpolicytab');
|
|
5114
|
+
}
|
|
5115
|
+
}), (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, {
|
|
5116
|
+
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
5117
|
+
onClick: function onClick() {
|
|
5118
|
+
settabname('reviewstab');
|
|
5119
|
+
}
|
|
5120
|
+
}))), /*#__PURE__*/React__default["default"].createElement(material.Box, {
|
|
5121
|
+
"class": "w-100 mt-5 mb-4"
|
|
5122
|
+
}, tabname == 'descriptiontab' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5123
|
+
"class": "col-lg-12 pl-5 pr-5 p-md-0 w-100"
|
|
5124
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5125
|
+
"class": "row m-0 w-100"
|
|
5126
|
+
}, 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", {
|
|
5127
|
+
className: "col-lg-12 p-0 mb-4 d-flex justify-content-center"
|
|
5128
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5129
|
+
className: "row m-0 w-100 d-flex"
|
|
5130
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5131
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start"
|
|
5132
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5133
|
+
className: 'text-black text-capitalize m-0 p-0 wordbreak',
|
|
5134
|
+
style: {
|
|
5135
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
5136
|
+
},
|
|
5137
|
+
dangerouslySetInnerHTML: {
|
|
5138
|
+
__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)
|
|
5139
|
+
}
|
|
5140
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5141
|
+
"class": "col-lg-12 allcentered"
|
|
5142
|
+
}, (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", {
|
|
5143
|
+
"class": "m-0 p-0 cursor-pointer text-grey font-weight-600",
|
|
5144
|
+
onClick: function onClick() {
|
|
5145
|
+
return setShowMore(!showMore);
|
|
5146
|
+
}
|
|
5147
|
+
}, 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", {
|
|
5148
|
+
className: "col-lg-12 p-0 mb-4 d-flex justify-content-center"
|
|
5149
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5150
|
+
className: "row m-0 w-100 d-flex"
|
|
5151
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5152
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start flex-column"
|
|
5153
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5154
|
+
className: 'text-black text-capitalize m-0 p-0 wordbreak',
|
|
5155
|
+
style: {
|
|
5156
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
5157
|
+
},
|
|
5158
|
+
dangerouslySetInnerHTML: {
|
|
5159
|
+
__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)
|
|
5160
|
+
}
|
|
5161
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5162
|
+
"class": "col-lg-12 allcentered"
|
|
5163
|
+
}, (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", {
|
|
5164
|
+
"class": "m-0 p-0 cursor-pointer text-grey font-weight-600 text-right",
|
|
5165
|
+
onClick: function onClick() {
|
|
5166
|
+
return setShowMore(!showMore);
|
|
5167
|
+
}
|
|
5168
|
+
}, 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", {
|
|
5169
|
+
"class": "col-lg-12 p-0"
|
|
5170
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5171
|
+
"class": "row m-0 w-100 allcentered pl-md-3 pr-md-3",
|
|
5172
|
+
style: {
|
|
5173
|
+
paddingLeft: sectionproperties.galleryPaddingHorizontal + 'px',
|
|
5174
|
+
paddingRight: sectionproperties.galleryPaddingHorizontal + 'px'
|
|
5175
|
+
}
|
|
5176
|
+
}, 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) {
|
|
5177
|
+
if (index <= 6) {
|
|
5178
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5179
|
+
"class": ' col-md-4 col-sm-12 mb-3 col-lg-' + sectionproperties.galleryNoOfCols,
|
|
5180
|
+
style: {
|
|
5181
|
+
height: sectionproperties.galleryHeight + 'px'
|
|
5182
|
+
}
|
|
5183
|
+
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
5184
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
5185
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
5186
|
+
path: '/tr:w-' + sectionproperties.galleryWidthDimension + ',h-' + sectionproperties.galleryHeightDimension + '/' + item.path,
|
|
5187
|
+
style: {
|
|
5188
|
+
width: '100%',
|
|
5189
|
+
height: '100%',
|
|
5190
|
+
objectFit: 'contain'
|
|
5191
|
+
},
|
|
5192
|
+
loading: "lazy"
|
|
5193
|
+
}));
|
|
5194
|
+
}
|
|
5195
|
+
}))))), tabname == 'shippingpolicytab' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5196
|
+
"class": "col-lg-12 pl-5 pr-5 p-md-0 w-100"
|
|
5197
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5198
|
+
className: ' m-0 p-0 wordbreak ',
|
|
5199
|
+
style: {
|
|
5200
|
+
lineClamp: 10,
|
|
5201
|
+
WebkitLineClamp: 10,
|
|
5202
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
5203
|
+
},
|
|
5204
|
+
dangerouslySetInnerHTML: {
|
|
5205
|
+
__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
|
|
5206
|
+
}
|
|
5207
|
+
})), tabname == 'refundpolicytab' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5208
|
+
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0"
|
|
5209
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5210
|
+
className: ' m-0 p-0 wordbreak ',
|
|
5211
|
+
style: {
|
|
5212
|
+
lineClamp: 10,
|
|
5213
|
+
WebkitLineClamp: 10,
|
|
5214
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
5215
|
+
},
|
|
5216
|
+
dangerouslySetInnerHTML: {
|
|
5217
|
+
__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
|
|
5218
|
+
}
|
|
5219
|
+
})), tabname == 'reviewstab' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5220
|
+
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0"
|
|
5221
|
+
}, /*#__PURE__*/React__default["default"].createElement(ProductReviews, {
|
|
5222
|
+
actions: _objectSpread$24(_objectSpread$24({}, actions), {}, {
|
|
5223
|
+
productinfo_cssstyles: productinfo_cssstyles,
|
|
5224
|
+
sectionproperties: sectionproperties
|
|
5225
|
+
})
|
|
5226
|
+
}))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4754
5227
|
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
5228
|
style: {
|
|
4756
5229
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|