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.esm.js
CHANGED
|
@@ -41,7 +41,7 @@ import { AiOutlineClockCircle } from '@react-icons/all-files/ai/AiOutlineClockCi
|
|
|
41
41
|
import { AiOutlinePlus } from '@react-icons/all-files/ai/AiOutlinePlus';
|
|
42
42
|
import { AiOutlineCheck } from '@react-icons/all-files/ai/AiOutlineCheck';
|
|
43
43
|
import { ScrollMenu } from 'react-horizontal-scrolling-menu';
|
|
44
|
-
import '@mui/material';
|
|
44
|
+
import { Box, Tabs, Tab } from '@mui/material';
|
|
45
45
|
import { HiOutlinePhone } from '@react-icons/all-files/hi/HiOutlinePhone';
|
|
46
46
|
import { AiOutlineMail } from '@react-icons/all-files/ai/AiOutlineMail';
|
|
47
47
|
import { FaShippingFast } from '@react-icons/all-files/fa/FaShippingFast';
|
|
@@ -558,8 +558,8 @@ var FacebookLoginButton = function FacebookLoginButton(props) {
|
|
|
558
558
|
}));
|
|
559
559
|
};
|
|
560
560
|
|
|
561
|
-
function ownKeys$
|
|
562
|
-
function _objectSpread$
|
|
561
|
+
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; }
|
|
562
|
+
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(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; }
|
|
563
563
|
var Login = function Login(props) {
|
|
564
564
|
var _css;
|
|
565
565
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -632,7 +632,7 @@ var Login = function Login(props) {
|
|
|
632
632
|
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) {
|
|
633
633
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
634
634
|
});
|
|
635
|
-
setsectionproperties(_objectSpread$
|
|
635
|
+
setsectionproperties(_objectSpread$2b({}, secpropobj));
|
|
636
636
|
}
|
|
637
637
|
}, [StatePagePropertiesContext]);
|
|
638
638
|
useEffect(function () {
|
|
@@ -791,9 +791,9 @@ var Login = function Login(props) {
|
|
|
791
791
|
className: "".concat(loginstyles2.form_control),
|
|
792
792
|
value: payloadobj.email,
|
|
793
793
|
onChange: function onChange(event) {
|
|
794
|
-
var temppayloadobj = _objectSpread$
|
|
794
|
+
var temppayloadobj = _objectSpread$2b({}, payloadobj);
|
|
795
795
|
temppayloadobj.email = event.target.value;
|
|
796
|
-
setpayloadobj(_objectSpread$
|
|
796
|
+
setpayloadobj(_objectSpread$2b({}, temppayloadobj));
|
|
797
797
|
},
|
|
798
798
|
style: {
|
|
799
799
|
background: 'transparent'
|
|
@@ -815,9 +815,9 @@ var Login = function Login(props) {
|
|
|
815
815
|
textplaceholder: "",
|
|
816
816
|
value: payloadobj.password,
|
|
817
817
|
onChange: function onChange(event) {
|
|
818
|
-
var temppayloadobj = _objectSpread$
|
|
818
|
+
var temppayloadobj = _objectSpread$2b({}, payloadobj);
|
|
819
819
|
temppayloadobj.password = event.target.value;
|
|
820
|
-
setpayloadobj(_objectSpread$
|
|
820
|
+
setpayloadobj(_objectSpread$2b({}, temppayloadobj));
|
|
821
821
|
},
|
|
822
822
|
style: {
|
|
823
823
|
background: 'transparent'
|
|
@@ -949,9 +949,9 @@ var Login = function Login(props) {
|
|
|
949
949
|
className: "".concat(loginstyles2.form_control),
|
|
950
950
|
value: forgotpasswordpayload.email,
|
|
951
951
|
onChange: function onChange(event) {
|
|
952
|
-
var temppayloadobj = _objectSpread$
|
|
952
|
+
var temppayloadobj = _objectSpread$2b({}, forgotpasswordpayload);
|
|
953
953
|
temppayloadobj.email = event.target.value;
|
|
954
|
-
setforgotpasswordpayload(_objectSpread$
|
|
954
|
+
setforgotpasswordpayload(_objectSpread$2b({}, temppayloadobj));
|
|
955
955
|
},
|
|
956
956
|
disabled: forgetpasswordstage == 'verify' ? true : false,
|
|
957
957
|
style: {
|
|
@@ -966,9 +966,9 @@ var Login = function Login(props) {
|
|
|
966
966
|
className: "".concat(loginstyles2.form_control),
|
|
967
967
|
value: forgotpasswordpayload.code,
|
|
968
968
|
onChange: function onChange(event) {
|
|
969
|
-
var temppayloadobj = _objectSpread$
|
|
969
|
+
var temppayloadobj = _objectSpread$2b({}, forgotpasswordpayload);
|
|
970
970
|
temppayloadobj.code = event.target.value;
|
|
971
|
-
setforgotpasswordpayload(_objectSpread$
|
|
971
|
+
setforgotpasswordpayload(_objectSpread$2b({}, temppayloadobj));
|
|
972
972
|
},
|
|
973
973
|
style: {
|
|
974
974
|
background: 'transparent'
|
|
@@ -982,9 +982,9 @@ var Login = function Login(props) {
|
|
|
982
982
|
className: "".concat(loginstyles2.form_control),
|
|
983
983
|
value: forgotpasswordpayload.newpassword,
|
|
984
984
|
onChange: function onChange(event) {
|
|
985
|
-
var temppayloadobj = _objectSpread$
|
|
985
|
+
var temppayloadobj = _objectSpread$2b({}, forgotpasswordpayload);
|
|
986
986
|
temppayloadobj.newpassword = event.target.value;
|
|
987
|
-
setforgotpasswordpayload(_objectSpread$
|
|
987
|
+
setforgotpasswordpayload(_objectSpread$2b({}, temppayloadobj));
|
|
988
988
|
},
|
|
989
989
|
style: {
|
|
990
990
|
background: 'transparent'
|
|
@@ -998,9 +998,9 @@ var Login = function Login(props) {
|
|
|
998
998
|
className: "".concat(loginstyles2.form_control),
|
|
999
999
|
value: forgotpasswordpayload.confirmnewpassword,
|
|
1000
1000
|
onChange: function onChange(event) {
|
|
1001
|
-
var temppayloadobj = _objectSpread$
|
|
1001
|
+
var temppayloadobj = _objectSpread$2b({}, forgotpasswordpayload);
|
|
1002
1002
|
temppayloadobj.confirmnewpassword = event.target.value;
|
|
1003
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1003
|
+
setforgotpasswordpayload(_objectSpread$2b({}, temppayloadobj));
|
|
1004
1004
|
},
|
|
1005
1005
|
style: {
|
|
1006
1006
|
background: 'transparent'
|
|
@@ -1012,7 +1012,7 @@ var Login = function Login(props) {
|
|
|
1012
1012
|
onClick: function onClick() {
|
|
1013
1013
|
if (forgotpasswordpayload.email.length != 0) {
|
|
1014
1014
|
var runfunc = false;
|
|
1015
|
-
var tempforgotpasswordpayload = _objectSpread$
|
|
1015
|
+
var tempforgotpasswordpayload = _objectSpread$2b({}, forgotpasswordpayload);
|
|
1016
1016
|
tempforgotpasswordpayload.functype = forgetpasswordstage;
|
|
1017
1017
|
if (forgetpasswordstage == 'verify') {
|
|
1018
1018
|
if (tempforgotpasswordpayload.newpassword.length != 0 && tempforgotpasswordpayload.code.length != 0) {
|
|
@@ -1079,11 +1079,11 @@ var css_248z$J = "@media screen and (max-width: 800px) {\n .signup-module_rig
|
|
|
1079
1079
|
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-"};
|
|
1080
1080
|
styleInject(css_248z$J);
|
|
1081
1081
|
|
|
1082
|
-
function ownKeys$
|
|
1083
|
-
function _objectSpread$
|
|
1082
|
+
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; }
|
|
1083
|
+
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(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; }
|
|
1084
1084
|
var defaultstyles = {
|
|
1085
1085
|
option: function option(provided, state) {
|
|
1086
|
-
return _objectSpread$
|
|
1086
|
+
return _objectSpread$2a(_objectSpread$2a({}, provided), {}, {
|
|
1087
1087
|
borderBottom: '1px solid #e6e6e6',
|
|
1088
1088
|
backgroundColor: state.isSelected ? '' : '',
|
|
1089
1089
|
padding: 5,
|
|
@@ -1111,7 +1111,7 @@ var defaultstyles = {
|
|
|
1111
1111
|
};
|
|
1112
1112
|
},
|
|
1113
1113
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1114
|
-
return _objectSpread$
|
|
1114
|
+
return _objectSpread$2a(_objectSpread$2a({}, provided), {}, {
|
|
1115
1115
|
'&:hover': {
|
|
1116
1116
|
// color: '#eac435',
|
|
1117
1117
|
}
|
|
@@ -1120,7 +1120,7 @@ var defaultstyles = {
|
|
|
1120
1120
|
};
|
|
1121
1121
|
var defaultstylestranslated = {
|
|
1122
1122
|
option: function option(provided, state) {
|
|
1123
|
-
return _objectSpread$
|
|
1123
|
+
return _objectSpread$2a(_objectSpread$2a({}, provided), {}, {
|
|
1124
1124
|
borderBottom: '1px solid #e6e6e6',
|
|
1125
1125
|
backgroundColor: state.isSelected ? '' : '',
|
|
1126
1126
|
padding: 5,
|
|
@@ -1151,21 +1151,21 @@ var defaultstylestranslated = {
|
|
|
1151
1151
|
};
|
|
1152
1152
|
},
|
|
1153
1153
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1154
|
-
return _objectSpread$
|
|
1154
|
+
return _objectSpread$2a(_objectSpread$2a({}, provided), {}, {
|
|
1155
1155
|
'&:hover': {
|
|
1156
1156
|
// color: '#eac435',
|
|
1157
1157
|
}
|
|
1158
1158
|
});
|
|
1159
1159
|
},
|
|
1160
1160
|
placeholder: function placeholder(provided, state) {
|
|
1161
|
-
return _objectSpread$
|
|
1161
|
+
return _objectSpread$2a(_objectSpread$2a({}, provided), {}, {
|
|
1162
1162
|
textAlign: 'right'
|
|
1163
1163
|
});
|
|
1164
1164
|
}
|
|
1165
1165
|
};
|
|
1166
1166
|
var defaultstylesnone = {
|
|
1167
1167
|
option: function option(provided, state) {
|
|
1168
|
-
return _objectSpread$
|
|
1168
|
+
return _objectSpread$2a(_objectSpread$2a({}, provided), {}, {
|
|
1169
1169
|
borderBottom: '1px solid #e6e6e6',
|
|
1170
1170
|
backgroundColor: state.isSelected ? '' : '',
|
|
1171
1171
|
padding: 5,
|
|
@@ -1193,7 +1193,7 @@ var defaultstylesnone = {
|
|
|
1193
1193
|
};
|
|
1194
1194
|
},
|
|
1195
1195
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1196
|
-
return _objectSpread$
|
|
1196
|
+
return _objectSpread$2a(_objectSpread$2a({}, provided), {}, {
|
|
1197
1197
|
'&:hover': {
|
|
1198
1198
|
// color: '#eac435',
|
|
1199
1199
|
}
|
|
@@ -1553,8 +1553,8 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
1553
1553
|
}, 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))))));
|
|
1554
1554
|
};
|
|
1555
1555
|
|
|
1556
|
-
function ownKeys$
|
|
1557
|
-
function _objectSpread$
|
|
1556
|
+
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; }
|
|
1557
|
+
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(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; }
|
|
1558
1558
|
var ProductExtraFields = function ProductExtraFields(props) {
|
|
1559
1559
|
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _css, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7;
|
|
1560
1560
|
props.actions.lang;
|
|
@@ -1609,9 +1609,9 @@ var ProductExtraFields = function ProductExtraFields(props) {
|
|
|
1609
1609
|
});
|
|
1610
1610
|
}
|
|
1611
1611
|
setproductextravaluesarray(_toConsumableArray(tempproductextravaluesarray));
|
|
1612
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
1612
|
+
var tempaddtocardpayloadobj = _objectSpread$29({}, addtocardpayloadobj);
|
|
1613
1613
|
tempaddtocardpayloadobj.extrafields = tempproductextravaluesarray;
|
|
1614
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1614
|
+
setaddtocardpayloadobj(_objectSpread$29({}, tempaddtocardpayloadobj));
|
|
1615
1615
|
};
|
|
1616
1616
|
var formstyles = {
|
|
1617
1617
|
input_label_name: css({
|
|
@@ -1716,8 +1716,8 @@ var ProductExtraFields = function ProductExtraFields(props) {
|
|
|
1716
1716
|
}))));
|
|
1717
1717
|
};
|
|
1718
1718
|
|
|
1719
|
-
function ownKeys$
|
|
1720
|
-
function _objectSpread$
|
|
1719
|
+
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; }
|
|
1720
|
+
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(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; }
|
|
1721
1721
|
var Product_itemtype = function Product_itemtype(props) {
|
|
1722
1722
|
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;
|
|
1723
1723
|
var lang = props.actions.lang;
|
|
@@ -2079,11 +2079,11 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2079
2079
|
}, /*#__PURE__*/React.createElement("span", {
|
|
2080
2080
|
className: "".concat(productinfo_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
2081
2081
|
onClick: function onClick() {
|
|
2082
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2082
|
+
var tempaddtocardpayloadobj = _objectSpread$28({}, addtocardpayloadobj);
|
|
2083
2083
|
if (tempaddtocardpayloadobj.quantity > 0) {
|
|
2084
2084
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity - 1;
|
|
2085
2085
|
}
|
|
2086
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2086
|
+
setaddtocardpayloadobj(_objectSpread$28({}, tempaddtocardpayloadobj));
|
|
2087
2087
|
}
|
|
2088
2088
|
}, /*#__PURE__*/React.createElement("i", {
|
|
2089
2089
|
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-down' : 'h-100 allcentered',
|
|
@@ -2097,9 +2097,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2097
2097
|
}, addtocardpayloadobj.quantity), /*#__PURE__*/React.createElement("span", {
|
|
2098
2098
|
className: "".concat(productinfo_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
2099
2099
|
onClick: function onClick() {
|
|
2100
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2100
|
+
var tempaddtocardpayloadobj = _objectSpread$28({}, addtocardpayloadobj);
|
|
2101
2101
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + 1;
|
|
2102
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2102
|
+
setaddtocardpayloadobj(_objectSpread$28({}, tempaddtocardpayloadobj));
|
|
2103
2103
|
}
|
|
2104
2104
|
}, /*#__PURE__*/React.createElement("i", {
|
|
2105
2105
|
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-up' : 'h-100 allcentered'
|
|
@@ -2379,8 +2379,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2379
2379
|
}, StoreInfoprops())))));
|
|
2380
2380
|
};
|
|
2381
2381
|
|
|
2382
|
-
function ownKeys$
|
|
2383
|
-
function _objectSpread$
|
|
2382
|
+
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; }
|
|
2383
|
+
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(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; }
|
|
2384
2384
|
var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
2385
2385
|
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;
|
|
2386
2386
|
var langdetect = props.actions.langdetect;
|
|
@@ -2421,7 +2421,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2421
2421
|
slots = _useState6[0],
|
|
2422
2422
|
setslots = _useState6[1];
|
|
2423
2423
|
useEffect(function () {
|
|
2424
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2424
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2425
2425
|
item_type: 'service'
|
|
2426
2426
|
}));
|
|
2427
2427
|
}, [tabsarray]);
|
|
@@ -2433,16 +2433,16 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2433
2433
|
if (diffDays.toString() != 'NaN') {
|
|
2434
2434
|
if (date2 <= date1) {
|
|
2435
2435
|
NotificationManager.warning('', 'Please choose another date.');
|
|
2436
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2436
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2437
2437
|
quantity: 0
|
|
2438
2438
|
}));
|
|
2439
2439
|
} else {
|
|
2440
2440
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= diffDays && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= diffDays) {
|
|
2441
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2441
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2442
2442
|
quantity: diffDays
|
|
2443
2443
|
}));
|
|
2444
2444
|
} else {
|
|
2445
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2445
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2446
2446
|
quantity: 0
|
|
2447
2447
|
}));
|
|
2448
2448
|
NotificationManager.warning('', 'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
|
|
@@ -2578,7 +2578,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2578
2578
|
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,
|
|
2579
2579
|
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,
|
|
2580
2580
|
onChange: function onChange(event) {
|
|
2581
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2581
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2582
2582
|
from: event.target.value
|
|
2583
2583
|
}));
|
|
2584
2584
|
}
|
|
@@ -2598,7 +2598,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2598
2598
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
2599
2599
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
2600
2600
|
onChange: function onChange(event) {
|
|
2601
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2601
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2602
2602
|
to: event.target.value
|
|
2603
2603
|
}));
|
|
2604
2604
|
}
|
|
@@ -2618,7 +2618,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2618
2618
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
2619
2619
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
2620
2620
|
onChange: function onChange(event) {
|
|
2621
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2621
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2622
2622
|
date: event.target.value
|
|
2623
2623
|
}));
|
|
2624
2624
|
setcurrentmutatestate('/fetchserviceslots');
|
|
@@ -2669,7 +2669,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2669
2669
|
color: ischoosed ? sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? sectionproperties.generalbtn_textColoronhover : sectionproperties.generalbtn_textColor : ''
|
|
2670
2670
|
},
|
|
2671
2671
|
onClick: function onClick() {
|
|
2672
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2672
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2673
2673
|
time: item.slot
|
|
2674
2674
|
}));
|
|
2675
2675
|
}
|
|
@@ -2678,7 +2678,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2678
2678
|
}, /*#__PURE__*/React.createElement("button", {
|
|
2679
2679
|
"class": TabsStyles.booknow_btn_resp + ' allcentered ',
|
|
2680
2680
|
onClick: function onClick() {
|
|
2681
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2681
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2682
2682
|
time: item.slot
|
|
2683
2683
|
}));
|
|
2684
2684
|
}
|
|
@@ -2720,7 +2720,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2720
2720
|
"class": ischoosed == true ? TabsStyles.timeSlotContainer_active + ' allcentered cursor-pointer px-1 ' : TabsStyles.timeSlotContainer + ' allcentered cursor-pointer px-1 ',
|
|
2721
2721
|
style: {},
|
|
2722
2722
|
onClick: function onClick() {
|
|
2723
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2723
|
+
setaddtocardpayloadobj(_objectSpread$27(_objectSpread$27({}, addtocardpayloadobj), {}, {
|
|
2724
2724
|
time: item.slot
|
|
2725
2725
|
}));
|
|
2726
2726
|
}
|
|
@@ -3373,8 +3373,8 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
3373
3373
|
}, StoreInfoprops()))));
|
|
3374
3374
|
};
|
|
3375
3375
|
|
|
3376
|
-
function ownKeys$
|
|
3377
|
-
function _objectSpread$
|
|
3376
|
+
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; }
|
|
3377
|
+
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(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; }
|
|
3378
3378
|
var AddReview = function AddReview(props) {
|
|
3379
3379
|
var _css;
|
|
3380
3380
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -3428,7 +3428,7 @@ var AddReview = function AddReview(props) {
|
|
|
3428
3428
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
3429
3429
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
3430
3430
|
});
|
|
3431
|
-
setsectionproperties(_objectSpread$
|
|
3431
|
+
setsectionproperties(_objectSpread$26({}, secpropobj));
|
|
3432
3432
|
}
|
|
3433
3433
|
}, [StatePagePropertiesContext]);
|
|
3434
3434
|
useEffect(function () {
|
|
@@ -3437,7 +3437,7 @@ var AddReview = function AddReview(props) {
|
|
|
3437
3437
|
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) {
|
|
3438
3438
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
3439
3439
|
});
|
|
3440
|
-
setsectionproperties(_objectSpread$
|
|
3440
|
+
setsectionproperties(_objectSpread$26({}, secpropobj));
|
|
3441
3441
|
}, [pageindexcontext]);
|
|
3442
3442
|
var reviewstyles = {
|
|
3443
3443
|
submitreviewbtn: css({
|
|
@@ -3563,9 +3563,9 @@ var AddReview = function AddReview(props) {
|
|
|
3563
3563
|
}),
|
|
3564
3564
|
activeColor: "#ffd700",
|
|
3565
3565
|
onChange: function onChange(event) {
|
|
3566
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
3566
|
+
var tempreviewpayloadobj = _objectSpread$26({}, reviewpayloadobj);
|
|
3567
3567
|
tempreviewpayloadobj.reviewrate = event;
|
|
3568
|
-
setreviewpayloadobj(_objectSpread$
|
|
3568
|
+
setreviewpayloadobj(_objectSpread$26({}, tempreviewpayloadobj));
|
|
3569
3569
|
}
|
|
3570
3570
|
})))))), /*#__PURE__*/React.createElement("div", {
|
|
3571
3571
|
"class": "col-lg-12"
|
|
@@ -3579,9 +3579,9 @@ var AddReview = function AddReview(props) {
|
|
|
3579
3579
|
"class": reviewstyles.form_control,
|
|
3580
3580
|
value: reviewpayloadobj.reviewname,
|
|
3581
3581
|
onChange: function onChange(event) {
|
|
3582
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
3582
|
+
var tempreviewpayloadobj = _objectSpread$26({}, reviewpayloadobj);
|
|
3583
3583
|
tempreviewpayloadobj.reviewname = event.target.value;
|
|
3584
|
-
setreviewpayloadobj(_objectSpread$
|
|
3584
|
+
setreviewpayloadobj(_objectSpread$26({}, tempreviewpayloadobj));
|
|
3585
3585
|
}
|
|
3586
3586
|
})), /*#__PURE__*/React.createElement("div", {
|
|
3587
3587
|
"class": "col-lg-12 mb-4"
|
|
@@ -3591,9 +3591,9 @@ var AddReview = function AddReview(props) {
|
|
|
3591
3591
|
"class": reviewstyles.form_control,
|
|
3592
3592
|
value: reviewpayloadobj.reviewtitle,
|
|
3593
3593
|
onChange: function onChange(event) {
|
|
3594
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
3594
|
+
var tempreviewpayloadobj = _objectSpread$26({}, reviewpayloadobj);
|
|
3595
3595
|
tempreviewpayloadobj.reviewtitle = event.target.value;
|
|
3596
|
-
setreviewpayloadobj(_objectSpread$
|
|
3596
|
+
setreviewpayloadobj(_objectSpread$26({}, tempreviewpayloadobj));
|
|
3597
3597
|
}
|
|
3598
3598
|
})), /*#__PURE__*/React.createElement("div", {
|
|
3599
3599
|
"class": "col-lg-12 mb-4"
|
|
@@ -3604,9 +3604,9 @@ var AddReview = function AddReview(props) {
|
|
|
3604
3604
|
"class": reviewstyles.form_control + ' form_control ',
|
|
3605
3605
|
value: reviewpayloadobj.reviewbody,
|
|
3606
3606
|
onChange: function onChange(event) {
|
|
3607
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
3607
|
+
var tempreviewpayloadobj = _objectSpread$26({}, reviewpayloadobj);
|
|
3608
3608
|
tempreviewpayloadobj.reviewbody = event.target.value;
|
|
3609
|
-
setreviewpayloadobj(_objectSpread$
|
|
3609
|
+
setreviewpayloadobj(_objectSpread$26({}, tempreviewpayloadobj));
|
|
3610
3610
|
},
|
|
3611
3611
|
style: {
|
|
3612
3612
|
resize: 'none',
|
|
@@ -3641,10 +3641,253 @@ var AddReview = function AddReview(props) {
|
|
|
3641
3641
|
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)));
|
|
3642
3642
|
};
|
|
3643
3643
|
|
|
3644
|
+
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; }
|
|
3645
|
+
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(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; }
|
|
3646
|
+
var ProductReviews = function ProductReviews(props) {
|
|
3647
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12;
|
|
3648
|
+
props.actions.lang;
|
|
3649
|
+
var langdetect = props.actions.langdetect;
|
|
3650
|
+
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
3651
|
+
var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
3652
|
+
props.actions.NotificationManager;
|
|
3653
|
+
var sectionproperties = props.actions.sectionproperties;
|
|
3654
|
+
var actions = props.actions;
|
|
3655
|
+
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;
|
|
3656
|
+
var productinfo_cssstyles = props.actions.productinfo_cssstyles;
|
|
3657
|
+
var _useState = useState(false),
|
|
3658
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
3659
|
+
canuserreview = _useState2[0],
|
|
3660
|
+
setcanuserreview = _useState2[1];
|
|
3661
|
+
var _useState3 = useState(false),
|
|
3662
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
3663
|
+
openreviewmodal = _useState4[0],
|
|
3664
|
+
setopenreviewmodal = _useState4[1];
|
|
3665
|
+
var _useState5 = useState('all'),
|
|
3666
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
3667
|
+
filterproductreviews = _useState6[0],
|
|
3668
|
+
setfilterproductreviews = _useState6[1];
|
|
3669
|
+
var _useState7 = useState([]),
|
|
3670
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
3671
|
+
productreviews = _useState8[0],
|
|
3672
|
+
setproductreviews = _useState8[1];
|
|
3673
|
+
useEffect(function () {
|
|
3674
|
+
if (fetchProductInfoQueryContext.isSuccess) {
|
|
3675
|
+
getreviewsassignermutationfunc();
|
|
3676
|
+
}
|
|
3677
|
+
}, [filterproductreviews]);
|
|
3678
|
+
var getreviewsassignermutationfunc = function getreviewsassignermutationfunc() {
|
|
3679
|
+
var _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6;
|
|
3680
|
+
GeneralAPIMutationContext.mutate({
|
|
3681
|
+
endpointurl: '/fetchproductreviews',
|
|
3682
|
+
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,
|
|
3683
|
+
filterproductreviews: filterproductreviews,
|
|
3684
|
+
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
3685
|
+
if (data.data.status) {
|
|
3686
|
+
setproductreviews(data.data.productreviews);
|
|
3687
|
+
setcanuserreview(data.data.canuserAddReview);
|
|
3688
|
+
}
|
|
3689
|
+
}
|
|
3690
|
+
});
|
|
3691
|
+
};
|
|
3692
|
+
var addreviewcallback = function addreviewcallback() {
|
|
3693
|
+
setopenreviewmodal(false);
|
|
3694
|
+
getreviewsassignermutationfunc();
|
|
3695
|
+
fetchProductInfoQueryContext.refetch();
|
|
3696
|
+
};
|
|
3697
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
3698
|
+
className: 'row w-100 ml-0 mr-0',
|
|
3699
|
+
style: {
|
|
3700
|
+
marginTop: sectionproperties.marginTop + 'px'
|
|
3701
|
+
}
|
|
3702
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
3703
|
+
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0 plr-1025-0"
|
|
3704
|
+
}, GeneralAPIMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
|
|
3705
|
+
"class": "col-lg-12 allcentered",
|
|
3706
|
+
style: {
|
|
3707
|
+
height: '20vh'
|
|
3708
|
+
}
|
|
3709
|
+
}, /*#__PURE__*/React.createElement(Messaging, {
|
|
3710
|
+
color: "#ccc",
|
|
3711
|
+
width: "10px",
|
|
3712
|
+
height: "10px",
|
|
3713
|
+
duration: "1s"
|
|
3714
|
+
})), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
|
|
3715
|
+
"class": "row m-0 w-100"
|
|
3716
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
3717
|
+
"class": "col-lg-3"
|
|
3718
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
3719
|
+
"class": "row m-0 w-100 allcentered"
|
|
3720
|
+
}, canuserreview && /*#__PURE__*/React.createElement("div", {
|
|
3721
|
+
"class": "col-lg-12 allcentered mb-3 p-0"
|
|
3722
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
3723
|
+
"class": "".concat(productinfo_cssstyles.reviewbutton) + ' ',
|
|
3724
|
+
onClick: function onClick() {
|
|
3725
|
+
setopenreviewmodal(true);
|
|
3726
|
+
}
|
|
3727
|
+
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)), /*#__PURE__*/React.createElement("div", {
|
|
3728
|
+
"class": "col-lg-12 p-0 mb-3"
|
|
3729
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
3730
|
+
"class": "row m-0 w-100 py-3 px-2",
|
|
3731
|
+
style: {
|
|
3732
|
+
borderRadius: 10,
|
|
3733
|
+
background: '#eee'
|
|
3734
|
+
}
|
|
3735
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
3736
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
3737
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
3738
|
+
"class": "m-0 font-weight-600 text-uppercase",
|
|
3739
|
+
style: {
|
|
3740
|
+
fontSize: '17px'
|
|
3741
|
+
}
|
|
3742
|
+
}, langdetect == 'en' ? 'Overall Ratings' : 'جميع التقييمات')), /*#__PURE__*/React.createElement("div", {
|
|
3743
|
+
"class": "col-lg-12 pl-3 pr-3"
|
|
3744
|
+
}, /*#__PURE__*/React.createElement("hr", null)), /*#__PURE__*/React.createElement("div", {
|
|
3745
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
3746
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
3747
|
+
"class": "m-0 p-0 font-weight-600",
|
|
3748
|
+
style: {
|
|
3749
|
+
fontSize: '20px'
|
|
3750
|
+
}
|
|
3751
|
+
}, 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.createElement("div", {
|
|
3752
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
3753
|
+
}, /*#__PURE__*/React.createElement(ReactStars, {
|
|
3754
|
+
count: 5,
|
|
3755
|
+
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,
|
|
3756
|
+
edit: false,
|
|
3757
|
+
size: 18,
|
|
3758
|
+
emptyIcon: /*#__PURE__*/React.createElement("i", {
|
|
3759
|
+
className: "far fa-star",
|
|
3760
|
+
style: {
|
|
3761
|
+
color: '#bfbfbf'
|
|
3762
|
+
}
|
|
3763
|
+
}),
|
|
3764
|
+
halfIcon: /*#__PURE__*/React.createElement("i", {
|
|
3765
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
3766
|
+
}),
|
|
3767
|
+
filledIcon: /*#__PURE__*/React.createElement("i", {
|
|
3768
|
+
className: "fa fa-star",
|
|
3769
|
+
style: {
|
|
3770
|
+
color: '#FAB400'
|
|
3771
|
+
}
|
|
3772
|
+
}),
|
|
3773
|
+
activeColor: "#ffd700"
|
|
3774
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
3775
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mb-3"
|
|
3776
|
+
}, /*#__PURE__*/React.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.createElement("div", {
|
|
3783
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
3784
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
3785
|
+
"class": "m-0 font-weight-600 text-uppercase",
|
|
3786
|
+
style: {
|
|
3787
|
+
fontSize: '17px'
|
|
3788
|
+
}
|
|
3789
|
+
}, langdetect == 'en' ? 'Filter' : 'فلترة')), /*#__PURE__*/React.createElement("div", {
|
|
3790
|
+
"class": "col-lg-12 pl-3 pr-3"
|
|
3791
|
+
}, /*#__PURE__*/React.createElement("hr", null)), /*#__PURE__*/React.createElement("div", {
|
|
3792
|
+
"class": "col-lg-12 d-flex justify-content-center"
|
|
3793
|
+
}, /*#__PURE__*/React.createElement(ReactStars, {
|
|
3794
|
+
count: 5,
|
|
3795
|
+
value: filterproductreviews
|
|
3796
|
+
// edit={false}
|
|
3797
|
+
,
|
|
3798
|
+
size: 18,
|
|
3799
|
+
emptyIcon: /*#__PURE__*/React.createElement("i", {
|
|
3800
|
+
className: "far fa-star",
|
|
3801
|
+
style: {
|
|
3802
|
+
color: '#bfbfbf'
|
|
3803
|
+
}
|
|
3804
|
+
}),
|
|
3805
|
+
halfIcon: /*#__PURE__*/React.createElement("i", {
|
|
3806
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
3807
|
+
}),
|
|
3808
|
+
filledIcon: /*#__PURE__*/React.createElement("i", {
|
|
3809
|
+
className: "fa fa-star",
|
|
3810
|
+
style: {
|
|
3811
|
+
color: '#FAB400'
|
|
3812
|
+
}
|
|
3813
|
+
}),
|
|
3814
|
+
activeColor: "#ffd700",
|
|
3815
|
+
onChange: function onChange(event) {
|
|
3816
|
+
setfilterproductreviews(event);
|
|
3817
|
+
}
|
|
3818
|
+
})))))), /*#__PURE__*/React.createElement("div", {
|
|
3819
|
+
"class": "col-lg-9"
|
|
3820
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
3821
|
+
"class": "row m-0 w-100"
|
|
3822
|
+
}, productreviews === null || productreviews === void 0 ? void 0 : productreviews.map(function (reviewitem, reviewindex) {
|
|
3823
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
3824
|
+
"class": "col-lg-12 flex-column"
|
|
3825
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
3826
|
+
"class": "row m-0 w-100"
|
|
3827
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
3828
|
+
"class": "col-lg-12 d-flex justify-content-start p-0 mb-2"
|
|
3829
|
+
}, /*#__PURE__*/React.createElement(ReactStars, {
|
|
3830
|
+
count: 5,
|
|
3831
|
+
value: reviewitem.review_rating,
|
|
3832
|
+
edit: false,
|
|
3833
|
+
size: 18,
|
|
3834
|
+
emptyIcon: /*#__PURE__*/React.createElement("i", {
|
|
3835
|
+
className: "far fa-star",
|
|
3836
|
+
style: {
|
|
3837
|
+
color: '#bfbfbf'
|
|
3838
|
+
}
|
|
3839
|
+
}),
|
|
3840
|
+
halfIcon: /*#__PURE__*/React.createElement("i", {
|
|
3841
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
3842
|
+
}),
|
|
3843
|
+
filledIcon: /*#__PURE__*/React.createElement("i", {
|
|
3844
|
+
className: "fa fa-star",
|
|
3845
|
+
style: {
|
|
3846
|
+
color: '#FAB400'
|
|
3847
|
+
}
|
|
3848
|
+
}),
|
|
3849
|
+
activeColor: "#ffd700"
|
|
3850
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
3851
|
+
"class": "col-lg-12 p-0 mb-2 d-flex justify-content-start "
|
|
3852
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
3853
|
+
"class": "m-0 p-0 font-weight-600",
|
|
3854
|
+
style: {
|
|
3855
|
+
fontSize: '17px'
|
|
3856
|
+
}
|
|
3857
|
+
}, reviewitem.reviewtitle)), /*#__PURE__*/React.createElement("div", {
|
|
3858
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mb-2"
|
|
3859
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
3860
|
+
"class": "m-0 p-0 font-weight-500"
|
|
3861
|
+
}, reviewitem.reviewbody)), /*#__PURE__*/React.createElement("div", {
|
|
3862
|
+
"class": "col-lg-6 d-flex align-items-center justify-content-start p-0"
|
|
3863
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
3864
|
+
"class": "m-0 p-0 font-weight-600"
|
|
3865
|
+
}, langdetect == 'en' ? 'By' : 'عن طريق', ": ", reviewitem.review_name)), /*#__PURE__*/React.createElement("div", {
|
|
3866
|
+
"class": "col-lg-6 d-flex align-items-center justify-content-end justify-content-md-start p-0 font-weight-500 text-light"
|
|
3867
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
3868
|
+
"class": "fa fa-clock text-light ml-2 mr-2"
|
|
3869
|
+
}), " ", reviewitem.timestamp)), /*#__PURE__*/React.createElement("hr", null));
|
|
3870
|
+
}))))), /*#__PURE__*/React.createElement(Modal, {
|
|
3871
|
+
show: openreviewmodal,
|
|
3872
|
+
onHide: function onHide() {
|
|
3873
|
+
return setopenreviewmodal(false);
|
|
3874
|
+
},
|
|
3875
|
+
centered: true,
|
|
3876
|
+
size: "md",
|
|
3877
|
+
"class": "reviewmodal"
|
|
3878
|
+
}, /*#__PURE__*/React.createElement(Modal.Body, null, /*#__PURE__*/React.createElement(AddReview, {
|
|
3879
|
+
actions: _objectSpread$25(_objectSpread$25({}, actions), {}, {
|
|
3880
|
+
productid: productid,
|
|
3881
|
+
canuserreview: canuserreview,
|
|
3882
|
+
addreviewcallback: addreviewcallback
|
|
3883
|
+
})
|
|
3884
|
+
}))));
|
|
3885
|
+
};
|
|
3886
|
+
|
|
3644
3887
|
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; }
|
|
3645
3888
|
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(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; }
|
|
3646
3889
|
var Productinfo = function Productinfo(props) {
|
|
3647
|
-
var _css, _ref, _ref2;
|
|
3890
|
+
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;
|
|
3648
3891
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
3649
3892
|
var lang = props.actions.lang;
|
|
3650
3893
|
var langdetect = props.actions.langdetect;
|
|
@@ -3666,7 +3909,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3666
3909
|
var setpageindexcontext = props.actions.setpageindexcontext;
|
|
3667
3910
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
3668
3911
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
3669
|
-
props.actions;
|
|
3912
|
+
var actions = props.actions;
|
|
3670
3913
|
var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
3671
3914
|
var setCurrentPageIdContext = props.actions.setCurrentPageIdContext;
|
|
3672
3915
|
var NotificationManager = props.actions.NotificationManager;
|
|
@@ -3731,21 +3974,24 @@ var Productinfo = function Productinfo(props) {
|
|
|
3731
3974
|
isloaded = _useState24[0],
|
|
3732
3975
|
setisloaded = _useState24[1];
|
|
3733
3976
|
var _useState25 = useState(false),
|
|
3734
|
-
_useState26 = _slicedToArray(_useState25, 2)
|
|
3735
|
-
_useState26[0]
|
|
3736
|
-
_useState26[1];
|
|
3977
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
|
3978
|
+
showMore = _useState26[0],
|
|
3979
|
+
setShowMore = _useState26[1];
|
|
3737
3980
|
var _useState27 = useState(0),
|
|
3738
3981
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
3739
3982
|
currentshowingimageindex = _useState28[0],
|
|
3740
3983
|
setcurrentshowingimageindex = _useState28[1];
|
|
3741
3984
|
var _useState29 = useState(0),
|
|
3742
|
-
_useState30 = _slicedToArray(_useState29, 2)
|
|
3743
|
-
_useState30[0]
|
|
3744
|
-
_useState30[1];
|
|
3985
|
+
_useState30 = _slicedToArray(_useState29, 2),
|
|
3986
|
+
tabIndex = _useState30[0],
|
|
3987
|
+
setTabIndex = _useState30[1];
|
|
3745
3988
|
var _useState31 = useState('descriptiontab'),
|
|
3746
|
-
_useState32 = _slicedToArray(_useState31, 2)
|
|
3747
|
-
_useState32[0]
|
|
3748
|
-
_useState32[1];
|
|
3989
|
+
_useState32 = _slicedToArray(_useState31, 2),
|
|
3990
|
+
tabname = _useState32[0],
|
|
3991
|
+
settabname = _useState32[1];
|
|
3992
|
+
var handleTabChange = function handleTabChange(event, newTabIndex) {
|
|
3993
|
+
setTabIndex(newTabIndex);
|
|
3994
|
+
};
|
|
3749
3995
|
useEffect(function () {
|
|
3750
3996
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
3751
3997
|
var secpropobj = {};
|
|
@@ -4703,7 +4949,234 @@ var Productinfo = function Productinfo(props) {
|
|
|
4703
4949
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
4704
4950
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0
|
|
4705
4951
|
}
|
|
4706
|
-
}
|
|
4952
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
4953
|
+
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
|
|
4954
|
+
style: {
|
|
4955
|
+
paddingLeft: sectionproperties.tabspaddinghorizontal + 'px',
|
|
4956
|
+
paddingRight: sectionproperties.tabspaddinghorizontal + 'px',
|
|
4957
|
+
marginBottom: sectionproperties.tabsmb + 'px',
|
|
4958
|
+
paddingTop: sectionproperties.tabsPt + 'px',
|
|
4959
|
+
paddingBottom: sectionproperties.tabsPb + 'px'
|
|
4960
|
+
}
|
|
4961
|
+
}, sectionproperties.tabsfullwidth == 'Full Width' && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Tabs, {
|
|
4962
|
+
value: tabIndex,
|
|
4963
|
+
onChange: handleTabChange,
|
|
4964
|
+
scrollButtons: "auto",
|
|
4965
|
+
TabIndicatorProps: {
|
|
4966
|
+
style: {
|
|
4967
|
+
background: sectionproperties.activetabbordercolor
|
|
4968
|
+
// right: sectionproperties.showfirstpolicy == 'Hide' ? 0 : sectionproperties.showsecondpolicy == 'Hide' ? 0 : '',
|
|
4969
|
+
// margin: sectionproperties.showfirstpolicy == 'Hide' ? 'auto' : sectionproperties.showsecondpolicy == 'Hide' ? 'auto' : '',
|
|
4970
|
+
}
|
|
4971
|
+
},
|
|
4972
|
+
|
|
4973
|
+
sx: {
|
|
4974
|
+
'& button': {
|
|
4975
|
+
color: sectionproperties.tabtextcolor,
|
|
4976
|
+
fontWeight: sectionproperties.tabtextfontweight,
|
|
4977
|
+
background: sectionproperties.tabcontainerbgcolor,
|
|
4978
|
+
textTransform: sectionproperties.tabtexttexttransform,
|
|
4979
|
+
borderRadius: sectionproperties.tabcontainerborderradius + 'px',
|
|
4980
|
+
fontFamily: 'Poppins',
|
|
4981
|
+
transition: '.3s',
|
|
4982
|
+
fontSize: sectionproperties.tabtextfontsize + 'px'
|
|
4983
|
+
},
|
|
4984
|
+
'& button:hover': {
|
|
4985
|
+
color: sectionproperties.tabscoloronhover,
|
|
4986
|
+
fontFamily: 'Poppins',
|
|
4987
|
+
transition: '.3s'
|
|
4988
|
+
},
|
|
4989
|
+
'& button.Mui-selected': {
|
|
4990
|
+
color: sectionproperties.tabtextactivecolor,
|
|
4991
|
+
background: sectionproperties.activetabbgcolor,
|
|
4992
|
+
fontFamily: 'Poppins',
|
|
4993
|
+
transition: '.3s'
|
|
4994
|
+
}
|
|
4995
|
+
},
|
|
4996
|
+
variant: 'fullWidth'
|
|
4997
|
+
// tabsfullwidth
|
|
4998
|
+
}, sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React.createElement(Tab, {
|
|
4999
|
+
label: langdetect == 'en' ? sectionproperties.tabsdescEn : sectionproperties.tabsdescAr,
|
|
5000
|
+
onClick: function onClick() {
|
|
5001
|
+
settabname('descriptiontab');
|
|
5002
|
+
}
|
|
5003
|
+
}), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showfirstpolicy == 'Show' && /*#__PURE__*/React.createElement(Tab, {
|
|
5004
|
+
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,
|
|
5005
|
+
onClick: function onClick() {
|
|
5006
|
+
settabname('shippingpolicytab');
|
|
5007
|
+
}
|
|
5008
|
+
}), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showsecondpolicy == 'Show' && /*#__PURE__*/React.createElement(Tab, {
|
|
5009
|
+
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,
|
|
5010
|
+
onClick: function onClick() {
|
|
5011
|
+
settabname('refundpolicytab');
|
|
5012
|
+
}
|
|
5013
|
+
}), (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.createElement(Tab, {
|
|
5014
|
+
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
5015
|
+
onClick: function onClick() {
|
|
5016
|
+
settabname('reviewstab');
|
|
5017
|
+
}
|
|
5018
|
+
}))), sectionproperties.tabsfullwidth != 'Full Width' && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Tabs, {
|
|
5019
|
+
value: tabIndex,
|
|
5020
|
+
onChange: handleTabChange,
|
|
5021
|
+
scrollButtons: "auto",
|
|
5022
|
+
TabIndicatorProps: {
|
|
5023
|
+
style: {
|
|
5024
|
+
background: sectionproperties.activetabbordercolor
|
|
5025
|
+
// right: sectionproperties.showfirstpolicy == 'Hide' ? 0 : sectionproperties.showsecondpolicy == 'Hide' ? 0 : '',
|
|
5026
|
+
// margin: sectionproperties.showfirstpolicy == 'Hide' ? 'auto' : sectionproperties.showsecondpolicy == 'Hide' ? 'auto' : '',
|
|
5027
|
+
}
|
|
5028
|
+
},
|
|
5029
|
+
|
|
5030
|
+
sx: {
|
|
5031
|
+
'& button': {
|
|
5032
|
+
color: sectionproperties.tabtextcolor,
|
|
5033
|
+
fontWeight: sectionproperties.tabtextfontweight,
|
|
5034
|
+
background: sectionproperties.tabcontainerbgcolor,
|
|
5035
|
+
textTransform: sectionproperties.tabtexttexttransform,
|
|
5036
|
+
borderRadius: sectionproperties.tabcontainerborderradius + 'px',
|
|
5037
|
+
fontFamily: 'Poppins',
|
|
5038
|
+
transition: '.3s',
|
|
5039
|
+
fontSize: sectionproperties.tabtextfontsize + 'px'
|
|
5040
|
+
},
|
|
5041
|
+
'& button:hover': {
|
|
5042
|
+
color: sectionproperties.tabscoloronhover,
|
|
5043
|
+
fontFamily: 'Poppins',
|
|
5044
|
+
transition: '.3s'
|
|
5045
|
+
},
|
|
5046
|
+
'& button.Mui-selected': {
|
|
5047
|
+
color: sectionproperties.tabtextactivecolor,
|
|
5048
|
+
background: sectionproperties.activetabbgcolor,
|
|
5049
|
+
fontFamily: 'Poppins',
|
|
5050
|
+
transition: '.3s'
|
|
5051
|
+
}
|
|
5052
|
+
}
|
|
5053
|
+
}, sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React.createElement(Tab, {
|
|
5054
|
+
label: langdetect == 'en' ? sectionproperties.tabsdescEn : sectionproperties.tabsdescAr,
|
|
5055
|
+
onClick: function onClick() {
|
|
5056
|
+
settabname('descriptiontab');
|
|
5057
|
+
}
|
|
5058
|
+
}), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showfirstpolicy == 'Show' && /*#__PURE__*/React.createElement(Tab, {
|
|
5059
|
+
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,
|
|
5060
|
+
onClick: function onClick() {
|
|
5061
|
+
settabname('shippingpolicytab');
|
|
5062
|
+
}
|
|
5063
|
+
}), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showsecondpolicy == 'Show' && /*#__PURE__*/React.createElement(Tab, {
|
|
5064
|
+
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,
|
|
5065
|
+
onClick: function onClick() {
|
|
5066
|
+
settabname('refundpolicytab');
|
|
5067
|
+
}
|
|
5068
|
+
}), (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.createElement(Tab, {
|
|
5069
|
+
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
5070
|
+
onClick: function onClick() {
|
|
5071
|
+
settabname('reviewstab');
|
|
5072
|
+
}
|
|
5073
|
+
}))), /*#__PURE__*/React.createElement(Box, {
|
|
5074
|
+
"class": "w-100 mt-5 mb-4"
|
|
5075
|
+
}, tabname == 'descriptiontab' && /*#__PURE__*/React.createElement("div", {
|
|
5076
|
+
"class": "col-lg-12 pl-5 pr-5 p-md-0 w-100"
|
|
5077
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
5078
|
+
"class": "row m-0 w-100"
|
|
5079
|
+
}, 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.createElement("div", {
|
|
5080
|
+
className: "col-lg-12 p-0 mb-4 d-flex justify-content-center"
|
|
5081
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
5082
|
+
className: "row m-0 w-100 d-flex"
|
|
5083
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
5084
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start"
|
|
5085
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
5086
|
+
className: 'text-black text-capitalize m-0 p-0 wordbreak',
|
|
5087
|
+
style: {
|
|
5088
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
5089
|
+
},
|
|
5090
|
+
dangerouslySetInnerHTML: {
|
|
5091
|
+
__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)
|
|
5092
|
+
}
|
|
5093
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
5094
|
+
"class": "col-lg-12 allcentered"
|
|
5095
|
+
}, (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.createElement("p", {
|
|
5096
|
+
"class": "m-0 p-0 cursor-pointer text-grey font-weight-600",
|
|
5097
|
+
onClick: function onClick() {
|
|
5098
|
+
return setShowMore(!showMore);
|
|
5099
|
+
}
|
|
5100
|
+
}, 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.createElement("div", {
|
|
5101
|
+
className: "col-lg-12 p-0 mb-4 d-flex justify-content-center"
|
|
5102
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
5103
|
+
className: "row m-0 w-100 d-flex"
|
|
5104
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
5105
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start flex-column"
|
|
5106
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
5107
|
+
className: 'text-black text-capitalize m-0 p-0 wordbreak',
|
|
5108
|
+
style: {
|
|
5109
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
5110
|
+
},
|
|
5111
|
+
dangerouslySetInnerHTML: {
|
|
5112
|
+
__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)
|
|
5113
|
+
}
|
|
5114
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
5115
|
+
"class": "col-lg-12 allcentered"
|
|
5116
|
+
}, (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.createElement("p", {
|
|
5117
|
+
"class": "m-0 p-0 cursor-pointer text-grey font-weight-600 text-right",
|
|
5118
|
+
onClick: function onClick() {
|
|
5119
|
+
return setShowMore(!showMore);
|
|
5120
|
+
}
|
|
5121
|
+
}, 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.createElement("div", {
|
|
5122
|
+
"class": "col-lg-12 p-0"
|
|
5123
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
5124
|
+
"class": "row m-0 w-100 allcentered pl-md-3 pr-md-3",
|
|
5125
|
+
style: {
|
|
5126
|
+
paddingLeft: sectionproperties.galleryPaddingHorizontal + 'px',
|
|
5127
|
+
paddingRight: sectionproperties.galleryPaddingHorizontal + 'px'
|
|
5128
|
+
}
|
|
5129
|
+
}, 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) {
|
|
5130
|
+
if (index <= 6) {
|
|
5131
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
5132
|
+
"class": ' col-md-4 col-sm-12 mb-3 col-lg-' + sectionproperties.galleryNoOfCols,
|
|
5133
|
+
style: {
|
|
5134
|
+
height: sectionproperties.galleryHeight + 'px'
|
|
5135
|
+
}
|
|
5136
|
+
}, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
5137
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
5138
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
5139
|
+
path: '/tr:w-' + sectionproperties.galleryWidthDimension + ',h-' + sectionproperties.galleryHeightDimension + '/' + item.path,
|
|
5140
|
+
style: {
|
|
5141
|
+
width: '100%',
|
|
5142
|
+
height: '100%',
|
|
5143
|
+
objectFit: 'contain'
|
|
5144
|
+
},
|
|
5145
|
+
loading: "lazy"
|
|
5146
|
+
}));
|
|
5147
|
+
}
|
|
5148
|
+
}))))), tabname == 'shippingpolicytab' && /*#__PURE__*/React.createElement("div", {
|
|
5149
|
+
"class": "col-lg-12 pl-5 pr-5 p-md-0 w-100"
|
|
5150
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
5151
|
+
className: ' m-0 p-0 wordbreak ',
|
|
5152
|
+
style: {
|
|
5153
|
+
lineClamp: 10,
|
|
5154
|
+
WebkitLineClamp: 10,
|
|
5155
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
5156
|
+
},
|
|
5157
|
+
dangerouslySetInnerHTML: {
|
|
5158
|
+
__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
|
|
5159
|
+
}
|
|
5160
|
+
})), tabname == 'refundpolicytab' && /*#__PURE__*/React.createElement("div", {
|
|
5161
|
+
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0"
|
|
5162
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
5163
|
+
className: ' m-0 p-0 wordbreak ',
|
|
5164
|
+
style: {
|
|
5165
|
+
lineClamp: 10,
|
|
5166
|
+
WebkitLineClamp: 10,
|
|
5167
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
5168
|
+
},
|
|
5169
|
+
dangerouslySetInnerHTML: {
|
|
5170
|
+
__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
|
|
5171
|
+
}
|
|
5172
|
+
})), tabname == 'reviewstab' && /*#__PURE__*/React.createElement("div", {
|
|
5173
|
+
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0"
|
|
5174
|
+
}, /*#__PURE__*/React.createElement(ProductReviews, {
|
|
5175
|
+
actions: _objectSpread$24(_objectSpread$24({}, actions), {}, {
|
|
5176
|
+
productinfo_cssstyles: productinfo_cssstyles,
|
|
5177
|
+
sectionproperties: sectionproperties
|
|
5178
|
+
})
|
|
5179
|
+
}))))), /*#__PURE__*/React.createElement("div", {
|
|
4707
5180
|
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 ',
|
|
4708
5181
|
style: {
|
|
4709
5182
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|