tabexseriescomponents 0.0.447 → 0.0.448
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 +658 -903
- package/dist/index.esm.js +658 -903
- package/dist/index.umd.js +658 -903
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -505,8 +505,8 @@
|
|
|
505
505
|
}));
|
|
506
506
|
};
|
|
507
507
|
|
|
508
|
-
function ownKeys$
|
|
509
|
-
function _objectSpread$
|
|
508
|
+
function ownKeys$2v(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
509
|
+
function _objectSpread$2v(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2v(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2v(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
510
510
|
var Login = function Login(props) {
|
|
511
511
|
var _css;
|
|
512
512
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -582,7 +582,7 @@
|
|
|
582
582
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
583
583
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
584
584
|
});
|
|
585
|
-
setsectionproperties(_objectSpread$
|
|
585
|
+
setsectionproperties(_objectSpread$2v({}, secpropobj));
|
|
586
586
|
}
|
|
587
587
|
}, [StatePagePropertiesContext]);
|
|
588
588
|
React.useEffect(function () {
|
|
@@ -749,9 +749,9 @@
|
|
|
749
749
|
className: "".concat(loginstyles2.form_control),
|
|
750
750
|
value: payloadobj.email,
|
|
751
751
|
onChange: function onChange(event) {
|
|
752
|
-
var temppayloadobj = _objectSpread$
|
|
752
|
+
var temppayloadobj = _objectSpread$2v({}, payloadobj);
|
|
753
753
|
temppayloadobj.email = event.target.value;
|
|
754
|
-
setpayloadobj(_objectSpread$
|
|
754
|
+
setpayloadobj(_objectSpread$2v({}, temppayloadobj));
|
|
755
755
|
},
|
|
756
756
|
style: {
|
|
757
757
|
background: sectionproperties.input_bgcolor
|
|
@@ -773,9 +773,9 @@
|
|
|
773
773
|
textplaceholder: "",
|
|
774
774
|
value: payloadobj.password,
|
|
775
775
|
onChange: function onChange(event) {
|
|
776
|
-
var temppayloadobj = _objectSpread$
|
|
776
|
+
var temppayloadobj = _objectSpread$2v({}, payloadobj);
|
|
777
777
|
temppayloadobj.password = event.target.value;
|
|
778
|
-
setpayloadobj(_objectSpread$
|
|
778
|
+
setpayloadobj(_objectSpread$2v({}, temppayloadobj));
|
|
779
779
|
},
|
|
780
780
|
style: {
|
|
781
781
|
background: sectionproperties.input_bgcolor
|
|
@@ -952,9 +952,9 @@
|
|
|
952
952
|
className: "".concat(loginstyles2.form_control),
|
|
953
953
|
value: forgotpasswordpayload.email,
|
|
954
954
|
onChange: function onChange(event) {
|
|
955
|
-
var temppayloadobj = _objectSpread$
|
|
955
|
+
var temppayloadobj = _objectSpread$2v({}, forgotpasswordpayload);
|
|
956
956
|
temppayloadobj.email = event.target.value;
|
|
957
|
-
setforgotpasswordpayload(_objectSpread$
|
|
957
|
+
setforgotpasswordpayload(_objectSpread$2v({}, temppayloadobj));
|
|
958
958
|
},
|
|
959
959
|
disabled: forgetpasswordstage == 'verify' ? true : false,
|
|
960
960
|
style: {
|
|
@@ -969,9 +969,9 @@
|
|
|
969
969
|
className: "".concat(loginstyles2.form_control),
|
|
970
970
|
value: forgotpasswordpayload.code,
|
|
971
971
|
onChange: function onChange(event) {
|
|
972
|
-
var temppayloadobj = _objectSpread$
|
|
972
|
+
var temppayloadobj = _objectSpread$2v({}, forgotpasswordpayload);
|
|
973
973
|
temppayloadobj.code = event.target.value;
|
|
974
|
-
setforgotpasswordpayload(_objectSpread$
|
|
974
|
+
setforgotpasswordpayload(_objectSpread$2v({}, temppayloadobj));
|
|
975
975
|
},
|
|
976
976
|
style: {
|
|
977
977
|
background: sectionproperties.input_bgcolor
|
|
@@ -985,9 +985,9 @@
|
|
|
985
985
|
className: "".concat(loginstyles2.form_control),
|
|
986
986
|
value: forgotpasswordpayload.newpassword,
|
|
987
987
|
onChange: function onChange(event) {
|
|
988
|
-
var temppayloadobj = _objectSpread$
|
|
988
|
+
var temppayloadobj = _objectSpread$2v({}, forgotpasswordpayload);
|
|
989
989
|
temppayloadobj.newpassword = event.target.value;
|
|
990
|
-
setforgotpasswordpayload(_objectSpread$
|
|
990
|
+
setforgotpasswordpayload(_objectSpread$2v({}, temppayloadobj));
|
|
991
991
|
},
|
|
992
992
|
style: {
|
|
993
993
|
background: sectionproperties.input_bgcolor
|
|
@@ -1001,9 +1001,9 @@
|
|
|
1001
1001
|
className: "".concat(loginstyles2.form_control),
|
|
1002
1002
|
value: forgotpasswordpayload.confirmnewpassword,
|
|
1003
1003
|
onChange: function onChange(event) {
|
|
1004
|
-
var temppayloadobj = _objectSpread$
|
|
1004
|
+
var temppayloadobj = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1005
1005
|
temppayloadobj.confirmnewpassword = event.target.value;
|
|
1006
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1006
|
+
setforgotpasswordpayload(_objectSpread$2v({}, temppayloadobj));
|
|
1007
1007
|
},
|
|
1008
1008
|
style: {
|
|
1009
1009
|
background: sectionproperties.input_bgcolor
|
|
@@ -1015,7 +1015,7 @@
|
|
|
1015
1015
|
onClick: function onClick() {
|
|
1016
1016
|
if (forgotpasswordpayload.email.length != 0) {
|
|
1017
1017
|
var runfunc = false;
|
|
1018
|
-
var tempforgotpasswordpayload = _objectSpread$
|
|
1018
|
+
var tempforgotpasswordpayload = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1019
1019
|
tempforgotpasswordpayload.functype = forgetpasswordstage;
|
|
1020
1020
|
if (forgetpasswordstage == 'verify') {
|
|
1021
1021
|
if (tempforgotpasswordpayload.newpassword.length != 0 && tempforgotpasswordpayload.code.length != 0) {
|
|
@@ -1066,11 +1066,11 @@
|
|
|
1066
1066
|
var loginstyles = {"rightContainer":"signup-module_rightContainer__yEcoL","rightContainerTrans":"signup-module_rightContainerTrans__fkdBH","rightContainerText":"signup-module_rightContainerText__-pvN-","form_control":"signup-module_form_control__7s76W","anim-shadow":"signup-module_anim-shadow__CsxhG","login_input_icon":"signup-module_login_input_icon__RDTS0","form_control_border_none":"signup-module_form_control_border_none__HjUMS","disabled":"signup-module_disabled__h55ao","leftcontainer":"signup-module_leftcontainer__bqfnN","form_controltextarea":"signup-module_form_controltextarea__-LGz6","checkbox":"signup-module_checkbox__8ejBx","checkbox_label":"signup-module_checkbox_label__d84Q2","checkbox_sub":"signup-module_checkbox_sub__WQLUX","checkboxtranslated":"signup-module_checkboxtranslated__4xHR-","showpassword_input_icon":"signup-module_showpassword_input_icon__cVHRS","showpassword_input_icontrans":"signup-module_showpassword_input_icontrans__vmV5q"};
|
|
1067
1067
|
styleInject(css_248z$J);
|
|
1068
1068
|
|
|
1069
|
-
function ownKeys$
|
|
1070
|
-
function _objectSpread$
|
|
1069
|
+
function ownKeys$2u(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1070
|
+
function _objectSpread$2u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2u(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1071
1071
|
var selectcustomStyles = {
|
|
1072
1072
|
option: function option(provided, state) {
|
|
1073
|
-
return _objectSpread$
|
|
1073
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1074
1074
|
borderBottom: '1px solid #e6e6e6',
|
|
1075
1075
|
backgroundColor: state.isSelected ? '' : '',
|
|
1076
1076
|
padding: 5,
|
|
@@ -1099,7 +1099,7 @@
|
|
|
1099
1099
|
};
|
|
1100
1100
|
var selectcustomStylesTranslated = {
|
|
1101
1101
|
option: function option(provided, state) {
|
|
1102
|
-
return _objectSpread$
|
|
1102
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1103
1103
|
borderBottom: '1px solid #e6e6e6',
|
|
1104
1104
|
backgroundColor: state.isSelected ? '' : '',
|
|
1105
1105
|
padding: 5,
|
|
@@ -1128,14 +1128,14 @@
|
|
|
1128
1128
|
};
|
|
1129
1129
|
},
|
|
1130
1130
|
placeholder: function placeholder(provided, state) {
|
|
1131
|
-
return _objectSpread$
|
|
1131
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1132
1132
|
textAlign: 'right'
|
|
1133
1133
|
});
|
|
1134
1134
|
}
|
|
1135
1135
|
};
|
|
1136
1136
|
var defaultstyles = {
|
|
1137
1137
|
option: function option(provided, state) {
|
|
1138
|
-
return _objectSpread$
|
|
1138
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1139
1139
|
borderBottom: '1px solid #e6e6e6',
|
|
1140
1140
|
backgroundColor: state.isSelected ? '' : '',
|
|
1141
1141
|
padding: 5,
|
|
@@ -1163,7 +1163,7 @@
|
|
|
1163
1163
|
}), _ref;
|
|
1164
1164
|
},
|
|
1165
1165
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1166
|
-
return _objectSpread$
|
|
1166
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1167
1167
|
'&:hover': {
|
|
1168
1168
|
// color: '#eac435',
|
|
1169
1169
|
}
|
|
@@ -1172,7 +1172,7 @@
|
|
|
1172
1172
|
};
|
|
1173
1173
|
var defaultstylestranslated = {
|
|
1174
1174
|
option: function option(provided, state) {
|
|
1175
|
-
return _objectSpread$
|
|
1175
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1176
1176
|
borderBottom: '1px solid #e6e6e6',
|
|
1177
1177
|
backgroundColor: state.isSelected ? '' : '',
|
|
1178
1178
|
padding: 5,
|
|
@@ -1203,21 +1203,21 @@
|
|
|
1203
1203
|
};
|
|
1204
1204
|
},
|
|
1205
1205
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1206
|
-
return _objectSpread$
|
|
1206
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1207
1207
|
'&:hover': {
|
|
1208
1208
|
// color: '#eac435',
|
|
1209
1209
|
}
|
|
1210
1210
|
});
|
|
1211
1211
|
},
|
|
1212
1212
|
placeholder: function placeholder(provided, state) {
|
|
1213
|
-
return _objectSpread$
|
|
1213
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1214
1214
|
textAlign: 'right'
|
|
1215
1215
|
});
|
|
1216
1216
|
}
|
|
1217
1217
|
};
|
|
1218
1218
|
var defaultstylesnone = {
|
|
1219
1219
|
option: function option(provided, state) {
|
|
1220
|
-
return _objectSpread$
|
|
1220
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1221
1221
|
borderBottom: '1px solid #e6e6e6',
|
|
1222
1222
|
backgroundColor: state.isSelected ? '' : '',
|
|
1223
1223
|
padding: 5,
|
|
@@ -1245,7 +1245,7 @@
|
|
|
1245
1245
|
};
|
|
1246
1246
|
},
|
|
1247
1247
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1248
|
-
return _objectSpread$
|
|
1248
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1249
1249
|
'&:hover': {
|
|
1250
1250
|
// color: '#eac435',
|
|
1251
1251
|
}
|
|
@@ -1838,8 +1838,8 @@
|
|
|
1838
1838
|
}, 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))))));
|
|
1839
1839
|
};
|
|
1840
1840
|
|
|
1841
|
-
function ownKeys$
|
|
1842
|
-
function _objectSpread$
|
|
1841
|
+
function ownKeys$2t(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1842
|
+
function _objectSpread$2t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2t(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1843
1843
|
var ProductExtraFields = function ProductExtraFields(props) {
|
|
1844
1844
|
var _fetchProductInfoQuer, _css, _fetchProductInfoQuer2;
|
|
1845
1845
|
props.actions.lang;
|
|
@@ -1894,9 +1894,9 @@
|
|
|
1894
1894
|
});
|
|
1895
1895
|
}
|
|
1896
1896
|
setproductextravaluesarray(_toConsumableArray__default["default"](tempproductextravaluesarray));
|
|
1897
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
1897
|
+
var tempaddtocardpayloadobj = _objectSpread$2t({}, addtocardpayloadobj);
|
|
1898
1898
|
tempaddtocardpayloadobj.extrafields = tempproductextravaluesarray;
|
|
1899
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1899
|
+
setaddtocardpayloadobj(_objectSpread$2t({}, tempaddtocardpayloadobj));
|
|
1900
1900
|
};
|
|
1901
1901
|
var formstyles = {
|
|
1902
1902
|
input_label_name: glamor.css({
|
|
@@ -2111,8 +2111,8 @@
|
|
|
2111
2111
|
})))));
|
|
2112
2112
|
};
|
|
2113
2113
|
|
|
2114
|
-
function ownKeys$
|
|
2115
|
-
function _objectSpread$
|
|
2114
|
+
function ownKeys$2s(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2115
|
+
function _objectSpread$2s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2s(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2116
2116
|
var Product_itemtype = function Product_itemtype(props) {
|
|
2117
2117
|
var _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, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42;
|
|
2118
2118
|
var lang = props.actions.lang;
|
|
@@ -2672,11 +2672,11 @@
|
|
|
2672
2672
|
}, sectionproperties.quantitybtneditable == 'No' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2673
2673
|
className: "".concat(productinfo_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
2674
2674
|
onClick: function onClick() {
|
|
2675
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2675
|
+
var tempaddtocardpayloadobj = _objectSpread$2s({}, addtocardpayloadobj);
|
|
2676
2676
|
if (tempaddtocardpayloadobj.quantity > 0) {
|
|
2677
2677
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity - 1;
|
|
2678
2678
|
}
|
|
2679
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2679
|
+
setaddtocardpayloadobj(_objectSpread$2s({}, tempaddtocardpayloadobj));
|
|
2680
2680
|
}
|
|
2681
2681
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2682
2682
|
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-down' : 'h-100 allcentered',
|
|
@@ -2690,9 +2690,9 @@
|
|
|
2690
2690
|
}, addtocardpayloadobj.quantity), sectionproperties.quantitybtneditable == 'No' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2691
2691
|
className: "".concat(productinfo_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
2692
2692
|
onClick: function onClick() {
|
|
2693
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2693
|
+
var tempaddtocardpayloadobj = _objectSpread$2s({}, addtocardpayloadobj);
|
|
2694
2694
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + 1;
|
|
2695
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2695
|
+
setaddtocardpayloadobj(_objectSpread$2s({}, tempaddtocardpayloadobj));
|
|
2696
2696
|
}
|
|
2697
2697
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2698
2698
|
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-up' : 'h-100 allcentered'
|
|
@@ -2717,13 +2717,13 @@
|
|
|
2717
2717
|
value: addtocardpayloadobj.quantity,
|
|
2718
2718
|
onChange: function onChange(event) {
|
|
2719
2719
|
if (event.target.value == NaN || event.target.value == undefined || event.target.value == null || event.target.value == '') {
|
|
2720
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2720
|
+
var tempaddtocardpayloadobj = _objectSpread$2s({}, addtocardpayloadobj);
|
|
2721
2721
|
tempaddtocardpayloadobj.quantity = 1;
|
|
2722
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2722
|
+
setaddtocardpayloadobj(_objectSpread$2s({}, tempaddtocardpayloadobj));
|
|
2723
2723
|
} else {
|
|
2724
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2724
|
+
var tempaddtocardpayloadobj = _objectSpread$2s({}, addtocardpayloadobj);
|
|
2725
2725
|
tempaddtocardpayloadobj.quantity = parseInt(event.target.value);
|
|
2726
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2726
|
+
setaddtocardpayloadobj(_objectSpread$2s({}, tempaddtocardpayloadobj));
|
|
2727
2727
|
}
|
|
2728
2728
|
}
|
|
2729
2729
|
})), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer27 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer27 === void 0 || (_fetchProductInfoQuer27 = _fetchProductInfoQuer27.data) === null || _fetchProductInfoQuer27 === void 0 || (_fetchProductInfoQuer27 = _fetchProductInfoQuer27.productinfo) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : _fetchProductInfoQuer27.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
@@ -3239,8 +3239,8 @@
|
|
|
3239
3239
|
}, ShareButtonsContainer()))))))));
|
|
3240
3240
|
};
|
|
3241
3241
|
|
|
3242
|
-
function ownKeys$
|
|
3243
|
-
function _objectSpread$
|
|
3242
|
+
function ownKeys$2r(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3243
|
+
function _objectSpread$2r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2r(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3244
3244
|
var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
3245
3245
|
var _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer17, _fetchProductInfoQuer18;
|
|
3246
3246
|
var langdetect = props.actions.langdetect;
|
|
@@ -3281,7 +3281,7 @@
|
|
|
3281
3281
|
slots = _useState6[0],
|
|
3282
3282
|
setslots = _useState6[1];
|
|
3283
3283
|
React.useEffect(function () {
|
|
3284
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3284
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3285
3285
|
item_type: 'service'
|
|
3286
3286
|
}));
|
|
3287
3287
|
}, [tabsarray]);
|
|
@@ -3293,16 +3293,16 @@
|
|
|
3293
3293
|
if (diffDays.toString() != 'NaN') {
|
|
3294
3294
|
if (date2 <= date1) {
|
|
3295
3295
|
NotificationManager.warning('', 'Please choose another date.');
|
|
3296
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3296
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3297
3297
|
quantity: 0
|
|
3298
3298
|
}));
|
|
3299
3299
|
} else {
|
|
3300
3300
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= diffDays && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= diffDays) {
|
|
3301
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3301
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3302
3302
|
quantity: diffDays
|
|
3303
3303
|
}));
|
|
3304
3304
|
} else {
|
|
3305
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3305
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3306
3306
|
quantity: 0
|
|
3307
3307
|
}));
|
|
3308
3308
|
NotificationManager.warning('', 'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
|
|
@@ -3516,7 +3516,7 @@
|
|
|
3516
3516
|
});
|
|
3517
3517
|
if (reservedslotArrtobetaken.length != 0) {
|
|
3518
3518
|
reservedslottobetaken = reservedslotArrtobetaken[0].slot;
|
|
3519
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3519
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3520
3520
|
time: reservedslottobetaken,
|
|
3521
3521
|
reserved_slots: reservedslotArrtobetaken,
|
|
3522
3522
|
quantity: parseInt(reservedslotArrtobetaken.length)
|
|
@@ -3575,7 +3575,7 @@
|
|
|
3575
3575
|
min: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.serviceinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.reservationstarts,
|
|
3576
3576
|
max: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.serviceinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.reservationends,
|
|
3577
3577
|
onChange: function onChange(event) {
|
|
3578
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3578
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3579
3579
|
from: event.target.value
|
|
3580
3580
|
}));
|
|
3581
3581
|
}
|
|
@@ -3595,7 +3595,7 @@
|
|
|
3595
3595
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
3596
3596
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
3597
3597
|
onChange: function onChange(event) {
|
|
3598
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3598
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3599
3599
|
to: event.target.value
|
|
3600
3600
|
}));
|
|
3601
3601
|
}
|
|
@@ -3615,7 +3615,7 @@
|
|
|
3615
3615
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
3616
3616
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
3617
3617
|
onChange: function onChange(event) {
|
|
3618
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3618
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3619
3619
|
date: event.target.value
|
|
3620
3620
|
}));
|
|
3621
3621
|
setcurrentmutatestate('/fetchserviceslots');
|
|
@@ -3674,7 +3674,7 @@
|
|
|
3674
3674
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3675
3675
|
"class": TabsStyles.booknow_btn_resp + ' allcentered ',
|
|
3676
3676
|
onClick: function onClick() {
|
|
3677
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3677
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3678
3678
|
time: item.slot
|
|
3679
3679
|
}));
|
|
3680
3680
|
}
|
|
@@ -4452,8 +4452,8 @@
|
|
|
4452
4452
|
}, StoreInfoprops()))));
|
|
4453
4453
|
};
|
|
4454
4454
|
|
|
4455
|
-
function ownKeys$
|
|
4456
|
-
function _objectSpread$
|
|
4455
|
+
function ownKeys$2q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4456
|
+
function _objectSpread$2q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2q(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4457
4457
|
var AddReview = function AddReview(props) {
|
|
4458
4458
|
var _css;
|
|
4459
4459
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -4505,7 +4505,7 @@
|
|
|
4505
4505
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
4506
4506
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
4507
4507
|
});
|
|
4508
|
-
setsectionproperties(_objectSpread$
|
|
4508
|
+
setsectionproperties(_objectSpread$2q({}, secpropobj));
|
|
4509
4509
|
}
|
|
4510
4510
|
}, [StatePagePropertiesContext]);
|
|
4511
4511
|
React.useEffect(function () {
|
|
@@ -4514,7 +4514,7 @@
|
|
|
4514
4514
|
templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop[pageindexcontext]) === null || _templatepropcontext$ === void 0 || (_templatepropcontext$ = _templatepropcontext$.pageproperties) === null || _templatepropcontext$ === void 0 || _templatepropcontext$.forEach(function (arrayItem, arrayindex) {
|
|
4515
4515
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
4516
4516
|
});
|
|
4517
|
-
setsectionproperties(_objectSpread$
|
|
4517
|
+
setsectionproperties(_objectSpread$2q({}, secpropobj));
|
|
4518
4518
|
}, [pageindexcontext]);
|
|
4519
4519
|
var reviewstyles = {
|
|
4520
4520
|
submitreviewbtn: glamor.css({
|
|
@@ -4640,9 +4640,9 @@
|
|
|
4640
4640
|
}),
|
|
4641
4641
|
activeColor: "#ffd700",
|
|
4642
4642
|
onChange: function onChange(event) {
|
|
4643
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
4643
|
+
var tempreviewpayloadobj = _objectSpread$2q({}, reviewpayloadobj);
|
|
4644
4644
|
tempreviewpayloadobj.reviewrate = event;
|
|
4645
|
-
setreviewpayloadobj(_objectSpread$
|
|
4645
|
+
setreviewpayloadobj(_objectSpread$2q({}, tempreviewpayloadobj));
|
|
4646
4646
|
}
|
|
4647
4647
|
})))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4648
4648
|
"class": "col-lg-12"
|
|
@@ -4656,9 +4656,9 @@
|
|
|
4656
4656
|
"class": reviewstyles.form_control,
|
|
4657
4657
|
value: reviewpayloadobj.reviewname,
|
|
4658
4658
|
onChange: function onChange(event) {
|
|
4659
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
4659
|
+
var tempreviewpayloadobj = _objectSpread$2q({}, reviewpayloadobj);
|
|
4660
4660
|
tempreviewpayloadobj.reviewname = event.target.value;
|
|
4661
|
-
setreviewpayloadobj(_objectSpread$
|
|
4661
|
+
setreviewpayloadobj(_objectSpread$2q({}, tempreviewpayloadobj));
|
|
4662
4662
|
}
|
|
4663
4663
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4664
4664
|
"class": "col-lg-12 mb-4"
|
|
@@ -4668,9 +4668,9 @@
|
|
|
4668
4668
|
"class": reviewstyles.form_control,
|
|
4669
4669
|
value: reviewpayloadobj.reviewtitle,
|
|
4670
4670
|
onChange: function onChange(event) {
|
|
4671
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
4671
|
+
var tempreviewpayloadobj = _objectSpread$2q({}, reviewpayloadobj);
|
|
4672
4672
|
tempreviewpayloadobj.reviewtitle = event.target.value;
|
|
4673
|
-
setreviewpayloadobj(_objectSpread$
|
|
4673
|
+
setreviewpayloadobj(_objectSpread$2q({}, tempreviewpayloadobj));
|
|
4674
4674
|
}
|
|
4675
4675
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4676
4676
|
"class": "col-lg-12 mb-4"
|
|
@@ -4681,9 +4681,9 @@
|
|
|
4681
4681
|
"class": reviewstyles.form_control + ' form_control ',
|
|
4682
4682
|
value: reviewpayloadobj.reviewbody,
|
|
4683
4683
|
onChange: function onChange(event) {
|
|
4684
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
4684
|
+
var tempreviewpayloadobj = _objectSpread$2q({}, reviewpayloadobj);
|
|
4685
4685
|
tempreviewpayloadobj.reviewbody = event.target.value;
|
|
4686
|
-
setreviewpayloadobj(_objectSpread$
|
|
4686
|
+
setreviewpayloadobj(_objectSpread$2q({}, tempreviewpayloadobj));
|
|
4687
4687
|
},
|
|
4688
4688
|
style: {
|
|
4689
4689
|
resize: 'none',
|
|
@@ -4718,8 +4718,8 @@
|
|
|
4718
4718
|
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)));
|
|
4719
4719
|
};
|
|
4720
4720
|
|
|
4721
|
-
function ownKeys$
|
|
4722
|
-
function _objectSpread$
|
|
4721
|
+
function ownKeys$2p(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4722
|
+
function _objectSpread$2p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2p(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4723
4723
|
var ProductReviews = function ProductReviews(props) {
|
|
4724
4724
|
var _fetchProductInfoQuer, _fetchProductInfoQuer3, _fetchProductInfoQuer4;
|
|
4725
4725
|
props.actions.lang;
|
|
@@ -4953,7 +4953,7 @@
|
|
|
4953
4953
|
size: "md",
|
|
4954
4954
|
"class": "reviewmodal"
|
|
4955
4955
|
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement(AddReview, {
|
|
4956
|
-
actions: _objectSpread$
|
|
4956
|
+
actions: _objectSpread$2p(_objectSpread$2p({}, actions), {}, {
|
|
4957
4957
|
productid: productid,
|
|
4958
4958
|
canuserreview: canuserreview,
|
|
4959
4959
|
addreviewcallback: addreviewcallback
|
|
@@ -4961,8 +4961,8 @@
|
|
|
4961
4961
|
}))));
|
|
4962
4962
|
};
|
|
4963
4963
|
|
|
4964
|
-
function ownKeys$
|
|
4965
|
-
function _objectSpread$
|
|
4964
|
+
function ownKeys$2o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4965
|
+
function _objectSpread$2o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2o(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4966
4966
|
var Productinfo = function Productinfo(props) {
|
|
4967
4967
|
var _css, _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
|
|
4968
4968
|
var _useState = React.useState({}),
|
|
@@ -4991,7 +4991,7 @@
|
|
|
4991
4991
|
setfetchProductInfoQueryContext = _useState4[1];
|
|
4992
4992
|
React.useEffect(function () {
|
|
4993
4993
|
if (fetchProductInfoQueryContextProps.isSuccess) {
|
|
4994
|
-
setProductInfoObj(_objectSpread$
|
|
4994
|
+
setProductInfoObj(_objectSpread$2o({}, fetchProductInfoQueryContextProps.data));
|
|
4995
4995
|
setfetchProductInfoQueryContext(fetchProductInfoQueryContextProps);
|
|
4996
4996
|
}
|
|
4997
4997
|
}, [props.actions, props, fetchProductInfoQueryContextProps.data, fetchProductInfoQueryContextProps.isSuccess]);
|
|
@@ -5107,7 +5107,7 @@
|
|
|
5107
5107
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
5108
5108
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
5109
5109
|
});
|
|
5110
|
-
setsectionproperties(_objectSpread$
|
|
5110
|
+
setsectionproperties(_objectSpread$2o({}, secpropobj));
|
|
5111
5111
|
setTabIndex(0);
|
|
5112
5112
|
settabname('descriptiontab');
|
|
5113
5113
|
if (sectionproperties.prodCatShow == 'Hide' || sectionproperties.descriptionposition != 'Bottom') {
|
|
@@ -5147,7 +5147,7 @@
|
|
|
5147
5147
|
templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop[pageindexcontext]) === null || _templatepropcontext$ === void 0 || (_templatepropcontext$ = _templatepropcontext$.pageproperties) === null || _templatepropcontext$ === void 0 || _templatepropcontext$.forEach(function (arrayItem, arrayindex) {
|
|
5148
5148
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
5149
5149
|
});
|
|
5150
|
-
setsectionproperties(_objectSpread$
|
|
5150
|
+
setsectionproperties(_objectSpread$2o({}, secpropobj));
|
|
5151
5151
|
}, [pageindexcontext]);
|
|
5152
5152
|
React.useEffect(function () {
|
|
5153
5153
|
if (productidparam == undefined) {
|
|
@@ -5167,12 +5167,12 @@
|
|
|
5167
5167
|
}
|
|
5168
5168
|
}, [ProductInfoObj, isloaded]);
|
|
5169
5169
|
var productidassigner = function productidassigner(productid) {
|
|
5170
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
5170
|
+
var tempFetchQueriesEngineContext = _objectSpread$2o({}, FetchQueriesEngineContext);
|
|
5171
5171
|
tempFetchQueriesEngineContext.fetchproductinfo = true;
|
|
5172
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
5173
|
-
var tempfetchproductinfoObjContext = _objectSpread$
|
|
5172
|
+
setFetchQueriesEngineContext(_objectSpread$2o({}, tempFetchQueriesEngineContext));
|
|
5173
|
+
var tempfetchproductinfoObjContext = _objectSpread$2o({}, fetchproductinfoObjContext);
|
|
5174
5174
|
tempfetchproductinfoObjContext.productid = productid;
|
|
5175
|
-
setfetchproductinfoObjContext(_objectSpread$
|
|
5175
|
+
setfetchproductinfoObjContext(_objectSpread$2o({}, tempfetchproductinfoObjContext));
|
|
5176
5176
|
};
|
|
5177
5177
|
React.useEffect(function () {
|
|
5178
5178
|
if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && ikimagecredcontext != undefined) {
|
|
@@ -5209,9 +5209,9 @@
|
|
|
5209
5209
|
}
|
|
5210
5210
|
setproductimagesarray([].concat(tempproductimagesarray));
|
|
5211
5211
|
variantchecker();
|
|
5212
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5212
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5213
5213
|
tempaddtocardpayloadobj.productid = fetchProductInfoQueryContext.data.data.productinfo.productid;
|
|
5214
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5214
|
+
setaddtocardpayloadobj(_objectSpread$2o({}, tempaddtocardpayloadobj));
|
|
5215
5215
|
setRelatedProductsTagid(fetchProductInfoQueryContext.data.data.productinfo.maintagid);
|
|
5216
5216
|
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.maintagid) != null && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.maintagid) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.length) != 0) {
|
|
5217
5217
|
GeneralAPIMutationContext.mutate({
|
|
@@ -5262,7 +5262,7 @@
|
|
|
5262
5262
|
});
|
|
5263
5263
|
variantchecker();
|
|
5264
5264
|
variantcompleting();
|
|
5265
|
-
setProductInfoObj(_objectSpread$
|
|
5265
|
+
setProductInfoObj(_objectSpread$2o({}, productarr));
|
|
5266
5266
|
};
|
|
5267
5267
|
var variantchecker = function variantchecker() {
|
|
5268
5268
|
var productarr = ProductInfoObj;
|
|
@@ -5336,16 +5336,16 @@
|
|
|
5336
5336
|
});
|
|
5337
5337
|
}
|
|
5338
5338
|
// queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
|
|
5339
|
-
setProductInfoObj(_objectSpread$
|
|
5339
|
+
setProductInfoObj(_objectSpread$2o({}, productarr));
|
|
5340
5340
|
setisloaded(true);
|
|
5341
5341
|
}
|
|
5342
5342
|
}
|
|
5343
5343
|
};
|
|
5344
5344
|
var variantcompleting = function variantcompleting() {
|
|
5345
5345
|
setvariantindexcompleted('');
|
|
5346
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5346
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5347
5347
|
tempaddtocardpayloadobj.variantid = '';
|
|
5348
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5348
|
+
setaddtocardpayloadobj(_objectSpread$2o({}, tempaddtocardpayloadobj));
|
|
5349
5349
|
var productarr = ProductInfoObj;
|
|
5350
5350
|
var selectedoptionsvalues = [];
|
|
5351
5351
|
productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
|
|
@@ -5378,7 +5378,7 @@
|
|
|
5378
5378
|
NotificationManager.warning('', 'Variant Not Found');
|
|
5379
5379
|
} else {
|
|
5380
5380
|
variantid = variantobj.variantid;
|
|
5381
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5381
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5382
5382
|
tempaddtocardpayloadobj.variantid = variantid;
|
|
5383
5383
|
var variantimageindex = 0;
|
|
5384
5384
|
productimagesarray === null || productimagesarray === void 0 || productimagesarray.forEach(function (tempimageitem, tempimageindex) {
|
|
@@ -5393,14 +5393,14 @@
|
|
|
5393
5393
|
}
|
|
5394
5394
|
setvariantsku(variantobj === null || variantobj === void 0 ? void 0 : variantobj.sku);
|
|
5395
5395
|
setcurrentshowingimageindex(variantimageindex);
|
|
5396
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5396
|
+
setaddtocardpayloadobj(_objectSpread$2o({}, tempaddtocardpayloadobj));
|
|
5397
5397
|
setvariantindexcompleted(ProductVariantIndex);
|
|
5398
5398
|
setvariantindex(ProductVariantIndex);
|
|
5399
5399
|
}
|
|
5400
5400
|
}
|
|
5401
5401
|
});
|
|
5402
5402
|
// queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
|
|
5403
|
-
setProductInfoObj(_objectSpread$
|
|
5403
|
+
setProductInfoObj(_objectSpread$2o({}, productarr));
|
|
5404
5404
|
};
|
|
5405
5405
|
var addtocartfunc = function addtocartfunc(forcetocheckout) {
|
|
5406
5406
|
var runfunc = false;
|
|
@@ -5419,7 +5419,7 @@
|
|
|
5419
5419
|
}
|
|
5420
5420
|
if (runfunc == true) {
|
|
5421
5421
|
var _fetchProductInfoQuer7, _fetchProductInfoQuer8;
|
|
5422
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5422
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5423
5423
|
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.isproductforcedtocheckout;
|
|
5424
5424
|
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.vendorproviderid;
|
|
5425
5425
|
if (forcetocheckoutvalue != undefined) {
|
|
@@ -5443,7 +5443,7 @@
|
|
|
5443
5443
|
};
|
|
5444
5444
|
var validateextrafields = function validateextrafields() {
|
|
5445
5445
|
var _fetchProductInfoQuer15;
|
|
5446
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5446
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5447
5447
|
var status = false;
|
|
5448
5448
|
var reason = '';
|
|
5449
5449
|
var missingitemsfound = [];
|
|
@@ -6482,7 +6482,7 @@
|
|
|
6482
6482
|
}))), /*#__PURE__*/React__default["default"].createElement(material.Box, {
|
|
6483
6483
|
"class": "w-100 mt-5 mb-4"
|
|
6484
6484
|
}, tabname == 'descriptiontab' && sectionproperties.descriptionposition == 'Bottom' && /*#__PURE__*/React__default["default"].createElement(DescriptionContent, {
|
|
6485
|
-
actions: _objectSpread$
|
|
6485
|
+
actions: _objectSpread$2o(_objectSpread$2o({}, actions), {}, {
|
|
6486
6486
|
productinfo_cssstyles: productinfo_cssstyles,
|
|
6487
6487
|
sectionproperties: sectionproperties
|
|
6488
6488
|
})
|
|
@@ -6530,7 +6530,7 @@
|
|
|
6530
6530
|
})), tabname == 'reviewstab' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6531
6531
|
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0"
|
|
6532
6532
|
}, /*#__PURE__*/React__default["default"].createElement(ProductReviews, {
|
|
6533
|
-
actions: _objectSpread$
|
|
6533
|
+
actions: _objectSpread$2o(_objectSpread$2o({}, actions), {}, {
|
|
6534
6534
|
productinfo_cssstyles: productinfo_cssstyles,
|
|
6535
6535
|
sectionproperties: sectionproperties
|
|
6536
6536
|
})
|
|
@@ -6547,8 +6547,8 @@
|
|
|
6547
6547
|
var staticroutersidenav = {"vertical_nav_menu":"staticroutersidenav-module_vertical_nav_menu__p0mIj","sidebar_item":"staticroutersidenav-module_sidebar_item__3F9Q1","sidenav_page_name":"staticroutersidenav-module_sidenav_page_name__46AJV","sidenav_icon_cont":"staticroutersidenav-module_sidenav_icon_cont__O8YSe","metismenu_icon":"staticroutersidenav-module_metismenu_icon__EcRZ1","sidenav_active":"staticroutersidenav-module_sidenav_active__IjRo0","horizontal_nav_menu":"staticroutersidenav-module_horizontal_nav_menu__6V32S","sidebar_itemlastchild":"staticroutersidenav-module_sidebar_itemlastchild__9O187"};
|
|
6548
6548
|
styleInject(css_248z$I);
|
|
6549
6549
|
|
|
6550
|
-
function ownKeys$
|
|
6551
|
-
function _objectSpread$
|
|
6550
|
+
function ownKeys$2n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6551
|
+
function _objectSpread$2n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2n(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6552
6552
|
var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
6553
6553
|
var _useState = React.useState(props.currentpageprops),
|
|
6554
6554
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
@@ -6584,7 +6584,7 @@
|
|
|
6584
6584
|
templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop[CurrentPageId]) === null || _templatepropcontext$ === void 0 || (_templatepropcontext$ = _templatepropcontext$.pageproperties) === null || _templatepropcontext$ === void 0 || _templatepropcontext$.forEach(function (arrayItem, arrayindex) {
|
|
6585
6585
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
6586
6586
|
});
|
|
6587
|
-
setsectionproperties(_objectSpread$
|
|
6587
|
+
setsectionproperties(_objectSpread$2n({}, secpropobj));
|
|
6588
6588
|
}
|
|
6589
6589
|
}, [CurrentPageId]);
|
|
6590
6590
|
var styles = {
|
|
@@ -6750,8 +6750,8 @@
|
|
|
6750
6750
|
}))))));
|
|
6751
6751
|
};
|
|
6752
6752
|
|
|
6753
|
-
function ownKeys$
|
|
6754
|
-
function _objectSpread$
|
|
6753
|
+
function ownKeys$2m(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6754
|
+
function _objectSpread$2m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2m(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6755
6755
|
var Ordershistory = function Ordershistory(props) {
|
|
6756
6756
|
var _props$actions2, _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchorderhistoryQue2, _fetchorderhistoryQue3, _fetchorderhistoryQue4, _fetchorderhistoryQue5;
|
|
6757
6757
|
var lang = props.actions.lang;
|
|
@@ -6804,9 +6804,9 @@
|
|
|
6804
6804
|
setorderindex = _useState14[1];
|
|
6805
6805
|
React.useEffect(function () {
|
|
6806
6806
|
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin) == true) {
|
|
6807
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
6807
|
+
var tempFetchQueriesEngineContext = _objectSpread$2m({}, FetchQueriesEngineContext);
|
|
6808
6808
|
tempFetchQueriesEngineContext.orderhistory = true;
|
|
6809
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
6809
|
+
setFetchQueriesEngineContext(_objectSpread$2m({}, tempFetchQueriesEngineContext));
|
|
6810
6810
|
}
|
|
6811
6811
|
}, []);
|
|
6812
6812
|
var _useState15 = React.useState(''),
|
|
@@ -6827,7 +6827,7 @@
|
|
|
6827
6827
|
props === null || props === void 0 || (_props$actions = props.actions) === null || _props$actions === void 0 || (_props$actions = _props$actions.StatePagePropertiesContext) === null || _props$actions === void 0 || (_props$actions = _props$actions.pageobj) === null || _props$actions === void 0 || (_props$actions = _props$actions.pageproperties) === null || _props$actions === void 0 || _props$actions.forEach(function (arrayItem, arrayindex) {
|
|
6828
6828
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
6829
6829
|
});
|
|
6830
|
-
setsectionproperties(_objectSpread$
|
|
6830
|
+
setsectionproperties(_objectSpread$2m({}, secpropobj));
|
|
6831
6831
|
}, [props === null || props === void 0 || (_props$actions2 = props.actions) === null || _props$actions2 === void 0 ? void 0 : _props$actions2.StatePagePropertiesContext]);
|
|
6832
6832
|
var orderhistory_cssstyles = {
|
|
6833
6833
|
variantcontainer: glamor.css({
|
|
@@ -7778,8 +7778,8 @@
|
|
|
7778
7778
|
var wishliststyles = {"wishlist_card":"wishlist-module_wishlist_card__sUXul","image_container":"wishlist-module_image_container__FuptA","floatbtn":"wishlist-module_floatbtn__PZDvQ"};
|
|
7779
7779
|
styleInject(css_248z$H);
|
|
7780
7780
|
|
|
7781
|
-
function ownKeys$
|
|
7782
|
-
function _objectSpread$
|
|
7781
|
+
function ownKeys$2l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7782
|
+
function _objectSpread$2l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2l(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7783
7783
|
var Wishlist = function Wishlist(props) {
|
|
7784
7784
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8;
|
|
7785
7785
|
var lang = props.actions.lang;
|
|
@@ -7807,13 +7807,13 @@
|
|
|
7807
7807
|
StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
7808
7808
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
7809
7809
|
});
|
|
7810
|
-
setsectionproperties(_objectSpread$
|
|
7810
|
+
setsectionproperties(_objectSpread$2l({}, secpropobj));
|
|
7811
7811
|
}
|
|
7812
7812
|
}, [StatePagePropertiesContext]);
|
|
7813
7813
|
React.useEffect(function () {
|
|
7814
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
7814
|
+
var tempFetchQueriesEngineContext = _objectSpread$2l({}, FetchQueriesEngineContext);
|
|
7815
7815
|
tempFetchQueriesEngineContext.fetchfavoriteproducts = true;
|
|
7816
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
7816
|
+
setFetchQueriesEngineContext(_objectSpread$2l({}, tempFetchQueriesEngineContext));
|
|
7817
7817
|
}, []);
|
|
7818
7818
|
React.useEffect(function () {
|
|
7819
7819
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
@@ -7822,7 +7822,7 @@
|
|
|
7822
7822
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
7823
7823
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
7824
7824
|
});
|
|
7825
|
-
setsectionproperties(_objectSpread$
|
|
7825
|
+
setsectionproperties(_objectSpread$2l({}, secpropobj));
|
|
7826
7826
|
}
|
|
7827
7827
|
}, [StatePagePropertiesContext]);
|
|
7828
7828
|
var wishlist_cssstyles = {
|
|
@@ -8231,8 +8231,8 @@
|
|
|
8231
8231
|
})));
|
|
8232
8232
|
};
|
|
8233
8233
|
|
|
8234
|
-
function ownKeys$
|
|
8235
|
-
function _objectSpread$
|
|
8234
|
+
function ownKeys$2k(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8235
|
+
function _objectSpread$2k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2k(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8236
8236
|
var Viewcart = function Viewcart(props) {
|
|
8237
8237
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchcustomercartQue7, _fetchcustomercartQue8;
|
|
8238
8238
|
var lang = props.actions.lang;
|
|
@@ -8264,7 +8264,7 @@
|
|
|
8264
8264
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
8265
8265
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
8266
8266
|
});
|
|
8267
|
-
setsectionproperties(_objectSpread$
|
|
8267
|
+
setsectionproperties(_objectSpread$2k({}, secpropobj));
|
|
8268
8268
|
}
|
|
8269
8269
|
}, [StatePagePropertiesContext]);
|
|
8270
8270
|
React.useEffect(function () {
|
|
@@ -8852,8 +8852,8 @@
|
|
|
8852
8852
|
var formstyles = {"form_control":"form-module_form_control__4-RGw","textarea":"form-module_textarea__zG0ed","form_control_border_none":"form-module_form_control_border_none__TJvdZ","disabled":"form-module_disabled__AtvSI","input_label_name":"form-module_input_label_name__416wN","input_label_name-bolder":"form-module_input_label_name-bolder__UQn0a","input_icon":"form-module_input_icon__X-CzC","radiobtn_label":"form-module_radiobtn_label__-4Hoi","text-grey":"form-module_text-grey__JdZMY","radiobtn_label_translated":"form-module_radiobtn_label_translated__WN5Jj","checkbox":"form-module_checkbox__XPkWy","checkbox_label":"form-module_checkbox_label__VvcKs","checkbox_sub":"form-module_checkbox_sub__QWYil","checkboxtranslated":"form-module_checkboxtranslated__zvEV-"};
|
|
8853
8853
|
styleInject(css_248z$G);
|
|
8854
8854
|
|
|
8855
|
-
function ownKeys$
|
|
8856
|
-
function _objectSpread$
|
|
8855
|
+
function ownKeys$2j(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8856
|
+
function _objectSpread$2j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2j(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8857
8857
|
var Select$3 = /*#__PURE__*/React__default["default"].lazy(function () {
|
|
8858
8858
|
return import('react-select');
|
|
8859
8859
|
});
|
|
@@ -8912,7 +8912,7 @@
|
|
|
8912
8912
|
props === null || props === void 0 || (_props$actions = props.actions) === null || _props$actions === void 0 || (_props$actions = _props$actions.StatePagePropertiesContext) === null || _props$actions === void 0 || (_props$actions = _props$actions.pageobj) === null || _props$actions === void 0 || (_props$actions = _props$actions.pageproperties) === null || _props$actions === void 0 || _props$actions.forEach(function (arrayItem, arrayindex) {
|
|
8913
8913
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
8914
8914
|
});
|
|
8915
|
-
setsectionproperties(_objectSpread$
|
|
8915
|
+
setsectionproperties(_objectSpread$2j({}, secpropobj));
|
|
8916
8916
|
}, [props.actions.StatePagePropertiesContext]);
|
|
8917
8917
|
React.useEffect(function () {
|
|
8918
8918
|
var Canorder = false;
|
|
@@ -8932,10 +8932,10 @@
|
|
|
8932
8932
|
}
|
|
8933
8933
|
if (Canorder == true) {
|
|
8934
8934
|
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7;
|
|
8935
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
8935
|
+
var tempFetchQueriesEngineContext = _objectSpread$2j({}, FetchQueriesEngineContext);
|
|
8936
8936
|
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
8937
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
8938
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
8937
|
+
setFetchQueriesEngineContext(_objectSpread$2j({}, tempFetchQueriesEngineContext));
|
|
8938
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2j({}, FetchTabexStatesPayloadobjContext);
|
|
8939
8939
|
if (
|
|
8940
8940
|
// Aya
|
|
8941
8941
|
!fetchcustomercartQueryContext.isFetching && fetchcustomercartQueryContext.isSuccess && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 || (_fetchcustomercartQue = _fetchcustomercartQue.data) === null || _fetchcustomercartQue === void 0 ? void 0 : _fetchcustomercartQue.customercart) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.customercart.countryid) != null &&
|
|
@@ -8952,7 +8952,7 @@
|
|
|
8952
8952
|
var _fetchcustomercartQue8;
|
|
8953
8953
|
tempFetchTabexStatesPayloadobjContext.state_id = fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue8 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue8 === void 0 || (_fetchcustomercartQue8 = _fetchcustomercartQue8.data) === null || _fetchcustomercartQue8 === void 0 ? void 0 : _fetchcustomercartQue8.customercart.stateid;
|
|
8954
8954
|
}
|
|
8955
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
8955
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2j({}, tempFetchTabexStatesPayloadobjContext));
|
|
8956
8956
|
} else {
|
|
8957
8957
|
// NotificationManager.warning('', lang.pleaselogintocheckout);
|
|
8958
8958
|
routingcountext(StaticPagesLinksContext.Login);
|
|
@@ -9819,10 +9819,10 @@
|
|
|
9819
9819
|
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue58 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue58 === void 0 || (_fetchcustomercartQue58 = _fetchcustomercartQue58.data) === null || _fetchcustomercartQue58 === void 0 ? void 0 : _fetchcustomercartQue58.customercart.countryid);
|
|
9820
9820
|
}),
|
|
9821
9821
|
onChange: function onChange(option) {
|
|
9822
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
9822
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2j({}, FetchTabexStatesPayloadobjContext);
|
|
9823
9823
|
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
9824
9824
|
tempFetchTabexStatesPayloadobjContext.country_id = option.id;
|
|
9825
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
9825
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2j({}, tempFetchTabexStatesPayloadobjContext));
|
|
9826
9826
|
cartinfoupdater('countryid', option.id);
|
|
9827
9827
|
},
|
|
9828
9828
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -9867,10 +9867,10 @@
|
|
|
9867
9867
|
onChange: function onChange(option) {
|
|
9868
9868
|
var _fetchcustomercartQue60;
|
|
9869
9869
|
if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue60 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue60 === void 0 || (_fetchcustomercartQue60 = _fetchcustomercartQue60.data) === null || _fetchcustomercartQue60 === void 0 ? void 0 : _fetchcustomercartQue60.customercart.countryid.length) != 0) {
|
|
9870
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
9870
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2j({}, FetchTabexStatesPayloadobjContext);
|
|
9871
9871
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
9872
9872
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
9873
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
9873
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2j({}, tempFetchTabexStatesPayloadobjContext));
|
|
9874
9874
|
cartinfoupdater('stateid', option.id);
|
|
9875
9875
|
} else {
|
|
9876
9876
|
NotificationManager.warning('', 'Please Choose Country Or State');
|
|
@@ -10234,8 +10234,8 @@
|
|
|
10234
10234
|
}, Mycart())))));
|
|
10235
10235
|
};
|
|
10236
10236
|
|
|
10237
|
-
function ownKeys$
|
|
10238
|
-
function _objectSpread$
|
|
10237
|
+
function ownKeys$2i(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10238
|
+
function _objectSpread$2i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2i(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10239
10239
|
var VendorPage = function VendorPage(props) {
|
|
10240
10240
|
var _useState = React.useState(''),
|
|
10241
10241
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
@@ -10268,7 +10268,7 @@
|
|
|
10268
10268
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
10269
10269
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
10270
10270
|
});
|
|
10271
|
-
setsectionproperties(_objectSpread$
|
|
10271
|
+
setsectionproperties(_objectSpread$2i({}, secpropobj));
|
|
10272
10272
|
}
|
|
10273
10273
|
}, [StatePagePropertiesContext]);
|
|
10274
10274
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -10391,8 +10391,8 @@
|
|
|
10391
10391
|
})));
|
|
10392
10392
|
};
|
|
10393
10393
|
|
|
10394
|
-
function ownKeys$
|
|
10395
|
-
function _objectSpread$
|
|
10394
|
+
function ownKeys$2h(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10395
|
+
function _objectSpread$2h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2h(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10396
10396
|
var Select$2 = /*#__PURE__*/React__default["default"].lazy(function () {
|
|
10397
10397
|
return import('react-select');
|
|
10398
10398
|
});
|
|
@@ -10502,46 +10502,46 @@
|
|
|
10502
10502
|
}
|
|
10503
10503
|
}, [fetchAuthorizationQueryContext.isSuccess]);
|
|
10504
10504
|
React.useEffect(function () {
|
|
10505
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
10505
|
+
var tempFetchQueriesEngineContext = _objectSpread$2h({}, FetchQueriesEngineContext);
|
|
10506
10506
|
tempFetchQueriesEngineContext.institutecustomerinfosignup = true;
|
|
10507
10507
|
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
10508
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
10509
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
10508
|
+
setFetchQueriesEngineContext(_objectSpread$2h({}, tempFetchQueriesEngineContext));
|
|
10509
|
+
var tempFetchQueriesEngineContext = _objectSpread$2h({}, FetchQueriesEngineContext);
|
|
10510
10510
|
}, []);
|
|
10511
10511
|
React.useEffect(function () {
|
|
10512
10512
|
if (props.sectionpropertiesprops != undefined && props.sectionpropertiesprops.length != 0) {
|
|
10513
|
-
setsectionproperties(_objectSpread$
|
|
10513
|
+
setsectionproperties(_objectSpread$2h({}, props.sectionpropertiesprops));
|
|
10514
10514
|
}
|
|
10515
10515
|
}, [props.sectionpropertiesprops]);
|
|
10516
10516
|
React.useEffect(function () {
|
|
10517
10517
|
if (fetchinstitutecustomerinfosignupQueryContext.isSuccess) {
|
|
10518
10518
|
if (authdetailsContext.loggedin == true) {
|
|
10519
|
-
var tempcustomerinfoobj = _objectSpread$
|
|
10520
|
-
setpayloadobj(_objectSpread$
|
|
10521
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
10519
|
+
var tempcustomerinfoobj = _objectSpread$2h({}, fetchinstitutecustomerinfosignupQueryContext.data.data.customerinfo);
|
|
10520
|
+
setpayloadobj(_objectSpread$2h({}, tempcustomerinfoobj));
|
|
10521
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2h({}, FetchTabexStatesPayloadobjContext);
|
|
10522
10522
|
if (tempcustomerinfoobj.countryid != null) {
|
|
10523
10523
|
tempFetchTabexStatesPayloadobjContext.country_id = tempcustomerinfoobj.countryid;
|
|
10524
10524
|
}
|
|
10525
10525
|
if (tempcustomerinfoobj.stateid != null) {
|
|
10526
10526
|
tempFetchTabexStatesPayloadobjContext.state_id = tempcustomerinfoobj.stateid;
|
|
10527
10527
|
}
|
|
10528
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
10528
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2h({}, tempFetchTabexStatesPayloadobjContext));
|
|
10529
10529
|
setdataloaded(true);
|
|
10530
10530
|
} else {
|
|
10531
10531
|
var _fetchinstitutecustom;
|
|
10532
|
-
var tempcustomerinfoobj = _objectSpread$
|
|
10532
|
+
var tempcustomerinfoobj = _objectSpread$2h({}, payloadobj);
|
|
10533
10533
|
if (Array.isArray(fetchinstitutecustomerinfosignupQueryContext === null || fetchinstitutecustomerinfosignupQueryContext === void 0 || (_fetchinstitutecustom = fetchinstitutecustomerinfosignupQueryContext.data) === null || _fetchinstitutecustom === void 0 || (_fetchinstitutecustom = _fetchinstitutecustom.data) === null || _fetchinstitutecustom === void 0 ? void 0 : _fetchinstitutecustom.instsignupformvalues)) {
|
|
10534
10534
|
tempcustomerinfoobj.instsignupformvalues = _toConsumableArray__default["default"](fetchinstitutecustomerinfosignupQueryContext.data.data.instsignupformvalues);
|
|
10535
10535
|
}
|
|
10536
|
-
setpayloadobj(_objectSpread$
|
|
10536
|
+
setpayloadobj(_objectSpread$2h({}, tempcustomerinfoobj));
|
|
10537
10537
|
setdataloaded(true);
|
|
10538
10538
|
}
|
|
10539
10539
|
}
|
|
10540
10540
|
}, [fetchinstitutecustomerinfosignupQueryContext.isSuccess, fetchinstitutecustomerinfosignupQueryContext.data, authdetailsContext]);
|
|
10541
10541
|
var payloadobjchange = function payloadobjchange(key, value) {
|
|
10542
|
-
var temppayloadobj = _objectSpread$
|
|
10542
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
10543
10543
|
temppayloadobj[key] = value;
|
|
10544
|
-
setpayloadobj(_objectSpread$
|
|
10544
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
10545
10545
|
};
|
|
10546
10546
|
var validateEmailstring = function validateEmailstring(email) {
|
|
10547
10547
|
return String(email).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);
|
|
@@ -10613,7 +10613,7 @@
|
|
|
10613
10613
|
};
|
|
10614
10614
|
var signupbuttonfunc = function signupbuttonfunc() {
|
|
10615
10615
|
if (verifypayload() == true) {
|
|
10616
|
-
var temppayloadobj = _objectSpread$
|
|
10616
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
10617
10617
|
if (authdetailsContext.loggedin == true) {
|
|
10618
10618
|
temppayloadobj.functype = 'edit';
|
|
10619
10619
|
} else {
|
|
@@ -10770,10 +10770,10 @@
|
|
|
10770
10770
|
autoFormat: true,
|
|
10771
10771
|
value: payloadobj.mobile,
|
|
10772
10772
|
onChange: function onChange(event, country) {
|
|
10773
|
-
var temp = _objectSpread$
|
|
10773
|
+
var temp = _objectSpread$2h({}, payloadobj);
|
|
10774
10774
|
temp.mobile = event;
|
|
10775
10775
|
temp.countrydialcode = country.dialCode;
|
|
10776
|
-
setpayloadobj(_objectSpread$
|
|
10776
|
+
setpayloadobj(_objectSpread$2h({}, temp));
|
|
10777
10777
|
// payloadobjchange('mobile', event);
|
|
10778
10778
|
|
|
10779
10779
|
// alert(JSON.stringify(country));
|
|
@@ -10830,10 +10830,10 @@
|
|
|
10830
10830
|
return option.id == payloadobj.countryid;
|
|
10831
10831
|
}),
|
|
10832
10832
|
onChange: function onChange(option) {
|
|
10833
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
10833
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2h({}, FetchTabexStatesPayloadobjContext);
|
|
10834
10834
|
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
10835
10835
|
tempFetchTabexStatesPayloadobjContext.country_id = option.id;
|
|
10836
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
10836
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2h({}, tempFetchTabexStatesPayloadobjContext));
|
|
10837
10837
|
payloadobjchange('countryid', option.id);
|
|
10838
10838
|
},
|
|
10839
10839
|
styles: sectionproperties.inputfieldbordertype == 'All' ? langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated : langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -10882,10 +10882,10 @@
|
|
|
10882
10882
|
return option.id == payloadobj.stateid;
|
|
10883
10883
|
}),
|
|
10884
10884
|
onChange: function onChange(option) {
|
|
10885
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
10885
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2h({}, FetchTabexStatesPayloadobjContext);
|
|
10886
10886
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
10887
10887
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
10888
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
10888
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2h({}, tempFetchTabexStatesPayloadobjContext));
|
|
10889
10889
|
payloadobjchange('stateid', option.id);
|
|
10890
10890
|
},
|
|
10891
10891
|
styles: sectionproperties.inputfieldbordertype == 'All' ? langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated : langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -11027,9 +11027,9 @@
|
|
|
11027
11027
|
value: item.customersignupvalue,
|
|
11028
11028
|
textplaceholder: "",
|
|
11029
11029
|
onChange: function onChange(event) {
|
|
11030
|
-
var temppayloadobj = _objectSpread$
|
|
11030
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
11031
11031
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
|
|
11032
|
-
setpayloadobj(_objectSpread$
|
|
11032
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
11033
11033
|
},
|
|
11034
11034
|
style: {
|
|
11035
11035
|
background: 'transparent'
|
|
@@ -11043,13 +11043,13 @@
|
|
|
11043
11043
|
className: formstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11044
11044
|
checked: item.customersignupvalue == 1 ? true : false,
|
|
11045
11045
|
onChange: function onChange() {
|
|
11046
|
-
var temppayloadobj = _objectSpread$
|
|
11046
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
11047
11047
|
if (temppayloadobj.instsignupformvalues[index].customersignupvalue == 1) {
|
|
11048
11048
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = 0;
|
|
11049
11049
|
} else {
|
|
11050
11050
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = 1;
|
|
11051
11051
|
}
|
|
11052
|
-
setpayloadobj(_objectSpread$
|
|
11052
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
11053
11053
|
}
|
|
11054
11054
|
}), /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
11055
11055
|
viewBox: "0 0 21 21",
|
|
@@ -11066,9 +11066,9 @@
|
|
|
11066
11066
|
value: item.customersignupvalue,
|
|
11067
11067
|
textplaceholder: "",
|
|
11068
11068
|
onChange: function onChange(event) {
|
|
11069
|
-
var temppayloadobj = _objectSpread$
|
|
11069
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
11070
11070
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
|
|
11071
|
-
setpayloadobj(_objectSpread$
|
|
11071
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
11072
11072
|
}
|
|
11073
11073
|
}, /*#__PURE__*/React__default["default"].createElement("option", {
|
|
11074
11074
|
value: '',
|
|
@@ -11083,9 +11083,9 @@
|
|
|
11083
11083
|
value: item.customersignupvalue,
|
|
11084
11084
|
textplaceholder: "",
|
|
11085
11085
|
onChange: function onChange(event) {
|
|
11086
|
-
var temppayloadobj = _objectSpread$
|
|
11086
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
11087
11087
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
|
|
11088
|
-
setpayloadobj(_objectSpread$
|
|
11088
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
11089
11089
|
},
|
|
11090
11090
|
style: {
|
|
11091
11091
|
resize: 'none'
|
|
@@ -11439,7 +11439,7 @@
|
|
|
11439
11439
|
className: "".concat(formstyles.form_control),
|
|
11440
11440
|
value: validateemailpayload.code,
|
|
11441
11441
|
onChange: function onChange(event) {
|
|
11442
|
-
setvalidateemailpayload(_objectSpread$
|
|
11442
|
+
setvalidateemailpayload(_objectSpread$2h(_objectSpread$2h({}, validateemailpayload), {}, {
|
|
11443
11443
|
code: event.target.value
|
|
11444
11444
|
}));
|
|
11445
11445
|
},
|
|
@@ -11466,12 +11466,12 @@
|
|
|
11466
11466
|
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
11467
11467
|
if (data.data.status) {
|
|
11468
11468
|
if (data.data.functype == 'sendcode') {
|
|
11469
|
-
setvalidateemailpayload(_objectSpread$
|
|
11469
|
+
setvalidateemailpayload(_objectSpread$2h(_objectSpread$2h({}, validateemailpayload), {}, {
|
|
11470
11470
|
step: 'verifycode'
|
|
11471
11471
|
}));
|
|
11472
11472
|
}
|
|
11473
11473
|
if (data.data.functype == 'verifycode') {
|
|
11474
|
-
setvalidateemailpayload(_objectSpread$
|
|
11474
|
+
setvalidateemailpayload(_objectSpread$2h(_objectSpread$2h({}, validateemailpayload), {}, {
|
|
11475
11475
|
isvalidated: true
|
|
11476
11476
|
}));
|
|
11477
11477
|
setvalidateemailmodal(false);
|
|
@@ -11566,7 +11566,7 @@
|
|
|
11566
11566
|
className: "".concat(formstyles.form_control),
|
|
11567
11567
|
value: validatephonenumberpayload.code,
|
|
11568
11568
|
onChange: function onChange(event) {
|
|
11569
|
-
setvalidatephonenumberpayload(_objectSpread$
|
|
11569
|
+
setvalidatephonenumberpayload(_objectSpread$2h(_objectSpread$2h({}, validatephonenumberpayload), {}, {
|
|
11570
11570
|
code: event.target.value
|
|
11571
11571
|
}));
|
|
11572
11572
|
},
|
|
@@ -11593,12 +11593,12 @@
|
|
|
11593
11593
|
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
11594
11594
|
if (data.data.status) {
|
|
11595
11595
|
if (data.data.functype == 'sendcode') {
|
|
11596
|
-
setvalidatephonenumberpayload(_objectSpread$
|
|
11596
|
+
setvalidatephonenumberpayload(_objectSpread$2h(_objectSpread$2h({}, validatephonenumberpayload), {}, {
|
|
11597
11597
|
step: 'verifycode'
|
|
11598
11598
|
}));
|
|
11599
11599
|
}
|
|
11600
11600
|
if (data.data.functype == 'verifycode') {
|
|
11601
|
-
setvalidatephonenumberpayload(_objectSpread$
|
|
11601
|
+
setvalidatephonenumberpayload(_objectSpread$2h(_objectSpread$2h({}, validatephonenumberpayload), {}, {
|
|
11602
11602
|
isvalidated: true
|
|
11603
11603
|
}));
|
|
11604
11604
|
setvalidatephonenumbermodal(false);
|
|
@@ -11634,8 +11634,8 @@
|
|
|
11634
11634
|
}, validatephonenumberpayload.step == 'sendcode' ? lang.sendcode : lang.verifycode))))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
|
|
11635
11635
|
};
|
|
11636
11636
|
|
|
11637
|
-
function ownKeys$
|
|
11638
|
-
function _objectSpread$
|
|
11637
|
+
function ownKeys$2g(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11638
|
+
function _objectSpread$2g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2g(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11639
11639
|
var Signup = function Signup(props) {
|
|
11640
11640
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
11641
11641
|
props.actions.CurrentSrcTypeContext;
|
|
@@ -11683,7 +11683,7 @@
|
|
|
11683
11683
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
11684
11684
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
11685
11685
|
});
|
|
11686
|
-
setsectionproperties(_objectSpread$
|
|
11686
|
+
setsectionproperties(_objectSpread$2g({}, secpropobj));
|
|
11687
11687
|
}
|
|
11688
11688
|
}, [StatePagePropertiesContext]);
|
|
11689
11689
|
var loginstyles2 = {
|
|
@@ -11826,8 +11826,8 @@
|
|
|
11826
11826
|
}, SignupContent()));
|
|
11827
11827
|
};
|
|
11828
11828
|
|
|
11829
|
-
function ownKeys$
|
|
11830
|
-
function _objectSpread$
|
|
11829
|
+
function ownKeys$2f(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11830
|
+
function _objectSpread$2f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2f(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11831
11831
|
var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
11832
11832
|
var _css;
|
|
11833
11833
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -11893,7 +11893,7 @@
|
|
|
11893
11893
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
11894
11894
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
11895
11895
|
});
|
|
11896
|
-
setsectionproperties(_objectSpread$
|
|
11896
|
+
setsectionproperties(_objectSpread$2f({}, secpropobj));
|
|
11897
11897
|
}
|
|
11898
11898
|
}, [StatePagePropertiesContext]);
|
|
11899
11899
|
var loginstyles2 = {
|
|
@@ -11994,7 +11994,7 @@
|
|
|
11994
11994
|
className: "".concat(loginstyles2.form_control),
|
|
11995
11995
|
value: affsignuppayload.name,
|
|
11996
11996
|
onChange: function onChange(event) {
|
|
11997
|
-
setaffsignuppayload(_objectSpread$
|
|
11997
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
11998
11998
|
name: event.target.value
|
|
11999
11999
|
}));
|
|
12000
12000
|
},
|
|
@@ -12010,7 +12010,7 @@
|
|
|
12010
12010
|
className: "".concat(loginstyles2.form_control),
|
|
12011
12011
|
value: affsignuppayload.email,
|
|
12012
12012
|
onChange: function onChange(event) {
|
|
12013
|
-
setaffsignuppayload(_objectSpread$
|
|
12013
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12014
12014
|
email: event.target.value
|
|
12015
12015
|
}));
|
|
12016
12016
|
},
|
|
@@ -12028,10 +12028,10 @@
|
|
|
12028
12028
|
autoFormat: true,
|
|
12029
12029
|
value: affsignuppayload.phonenumber,
|
|
12030
12030
|
onChange: function onChange(event, country) {
|
|
12031
|
-
var temp = _objectSpread$
|
|
12031
|
+
var temp = _objectSpread$2f({}, affsignuppayload);
|
|
12032
12032
|
temp.phonenumber = event;
|
|
12033
12033
|
temp.countrydialcode = country.dialCode;
|
|
12034
|
-
setaffsignuppayload(_objectSpread$
|
|
12034
|
+
setaffsignuppayload(_objectSpread$2f({}, temp));
|
|
12035
12035
|
// setaffsignuppayload({ ...affsignuppayload, phonenumber: event.target.value });
|
|
12036
12036
|
},
|
|
12037
12037
|
|
|
@@ -12047,7 +12047,7 @@
|
|
|
12047
12047
|
className: "".concat(loginstyles2.form_control),
|
|
12048
12048
|
value: affsignuppayload.ssn,
|
|
12049
12049
|
onChange: function onChange(event) {
|
|
12050
|
-
setaffsignuppayload(_objectSpread$
|
|
12050
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12051
12051
|
ssn: event.target.value
|
|
12052
12052
|
}));
|
|
12053
12053
|
},
|
|
@@ -12063,7 +12063,7 @@
|
|
|
12063
12063
|
className: "".concat(loginstyles2.form_control),
|
|
12064
12064
|
value: affsignuppayload.password,
|
|
12065
12065
|
onChange: function onChange(event) {
|
|
12066
|
-
setaffsignuppayload(_objectSpread$
|
|
12066
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12067
12067
|
password: event.target.value
|
|
12068
12068
|
}));
|
|
12069
12069
|
},
|
|
@@ -12079,7 +12079,7 @@
|
|
|
12079
12079
|
className: "".concat(loginstyles2.form_control),
|
|
12080
12080
|
value: affsignuppayload.confirmpassword,
|
|
12081
12081
|
onChange: function onChange(event) {
|
|
12082
|
-
setaffsignuppayload(_objectSpread$
|
|
12082
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12083
12083
|
confirmpassword: event.target.value
|
|
12084
12084
|
}));
|
|
12085
12085
|
},
|
|
@@ -12132,8 +12132,8 @@
|
|
|
12132
12132
|
}), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("span", null, langdetect == 'en' ? sectionproperties.signupbtn_contenten : sectionproperties.signupbtn_contentar)))))))));
|
|
12133
12133
|
};
|
|
12134
12134
|
|
|
12135
|
-
function ownKeys$
|
|
12136
|
-
function _objectSpread$
|
|
12135
|
+
function ownKeys$2e(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12136
|
+
function _objectSpread$2e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2e(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12137
12137
|
var AccountInformation = function AccountInformation(props) {
|
|
12138
12138
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8;
|
|
12139
12139
|
var lang = props.actions.lang;
|
|
@@ -12160,7 +12160,7 @@
|
|
|
12160
12160
|
props === null || props === void 0 || (_props$actions = props.actions) === null || _props$actions === void 0 || (_props$actions = _props$actions.StatePagePropertiesContext) === null || _props$actions === void 0 || (_props$actions = _props$actions.pageobj) === null || _props$actions === void 0 || (_props$actions = _props$actions.pageproperties) === null || _props$actions === void 0 || _props$actions.forEach(function (arrayItem, arrayindex) {
|
|
12161
12161
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12162
12162
|
});
|
|
12163
|
-
setsectionproperties(_objectSpread$
|
|
12163
|
+
setsectionproperties(_objectSpread$2e({}, secpropobj));
|
|
12164
12164
|
}, [props.actions.StatePagePropertiesContext]);
|
|
12165
12165
|
React.useEffect(function () {
|
|
12166
12166
|
var cartindex = templatepropcontext.pagesnprop.findIndex(function (x) {
|
|
@@ -12322,8 +12322,8 @@
|
|
|
12322
12322
|
var tabstyles = {"tabs":"tabs-module_tabs__36dMY","tabsul":"tabs-module_tabsul__wNZqy","tabsli":"tabs-module_tabsli__-uR10","active":"tabs-module_active__6wLfI","tabsliheaderresp":"tabs-module_tabsliheaderresp__TPNhh","accordionContainer":"tabs-module_accordionContainer__-MSW5","policiestabs":"tabs-module_policiestabs__nopXD"};
|
|
12323
12323
|
styleInject(css_248z$F);
|
|
12324
12324
|
|
|
12325
|
-
function ownKeys$
|
|
12326
|
-
function _objectSpread$
|
|
12325
|
+
function ownKeys$2d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12326
|
+
function _objectSpread$2d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2d(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12327
12327
|
var Policies = function Policies(props) {
|
|
12328
12328
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchInstitutePolici, _fetchInstitutePolici2, _fetchInstitutePolici3;
|
|
12329
12329
|
var _useState = React.useState(''),
|
|
@@ -12354,7 +12354,7 @@
|
|
|
12354
12354
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
12355
12355
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12356
12356
|
});
|
|
12357
|
-
setsectionproperties(_objectSpread$
|
|
12357
|
+
setsectionproperties(_objectSpread$2d({}, secpropobj));
|
|
12358
12358
|
}
|
|
12359
12359
|
}, [StatePagePropertiesContext]);
|
|
12360
12360
|
React.useEffect(function () {
|
|
@@ -12367,9 +12367,9 @@
|
|
|
12367
12367
|
}
|
|
12368
12368
|
}, []);
|
|
12369
12369
|
React.useEffect(function () {
|
|
12370
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
12370
|
+
var tempFetchQueriesEngineContext = _objectSpread$2d({}, FetchQueriesEngineContext);
|
|
12371
12371
|
tempFetchQueriesEngineContext.fetchinstitutepolicy = true;
|
|
12372
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
12372
|
+
setFetchQueriesEngineContext(_objectSpread$2d({}, tempFetchQueriesEngineContext));
|
|
12373
12373
|
}, []);
|
|
12374
12374
|
var _useState7 = React.useState([]),
|
|
12375
12375
|
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
@@ -12599,8 +12599,8 @@
|
|
|
12599
12599
|
var cartstyles = {"cartslider_container":"cart-module_cartslider_container__idend","close_menu_icon_cont":"cart-module_close_menu_icon_cont__uh-pE","cart_slider_imagecont":"cart-module_cart_slider_imagecont__tnHMt","checkout_cart_slider_imagecont":"cart-module_checkout_cart_slider_imagecont__UX2ct","checkout_quantity_cont":"cart-module_checkout_quantity_cont__Rr3RO","btn_circle":"cart-module_btn_circle__p-BDZ","cart_progress_card":"cart-module_cart_progress_card__jEFwg","cart_progress_card_active":"cart-module_cart_progress_card_active__gQzWT","trash_btn":"cart-module_trash_btn__bHQxy","btn_apply":"cart-module_btn_apply__phbo8","checkout_card_card":"cart-module_checkout_card_card__4zUo9"};
|
|
12600
12600
|
styleInject(css_248z$E);
|
|
12601
12601
|
|
|
12602
|
-
function ownKeys$
|
|
12603
|
-
function _objectSpread$
|
|
12602
|
+
function ownKeys$2c(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12603
|
+
function _objectSpread$2c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2c(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12604
12604
|
var CartSlider = function CartSlider(props) {
|
|
12605
12605
|
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12;
|
|
12606
12606
|
var lang = props.actions.lang;
|
|
@@ -12666,7 +12666,7 @@
|
|
|
12666
12666
|
templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop[CurrentPageId]) === null || _templatepropcontext$ === void 0 || (_templatepropcontext$ = _templatepropcontext$.pageproperties) === null || _templatepropcontext$ === void 0 || _templatepropcontext$.forEach(function (arrayItem, arrayindex) {
|
|
12667
12667
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12668
12668
|
});
|
|
12669
|
-
setsectionproperties(_objectSpread$
|
|
12669
|
+
setsectionproperties(_objectSpread$2c({}, secpropobj));
|
|
12670
12670
|
}, [CurrentPageId]);
|
|
12671
12671
|
React.useEffect(function () {
|
|
12672
12672
|
if (CurrentSrcTypeContext == 'workplace') {
|
|
@@ -12676,7 +12676,7 @@
|
|
|
12676
12676
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
12677
12677
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12678
12678
|
});
|
|
12679
|
-
setsectionproperties(_objectSpread$
|
|
12679
|
+
setsectionproperties(_objectSpread$2c({}, secpropobj));
|
|
12680
12680
|
}
|
|
12681
12681
|
}
|
|
12682
12682
|
}, [StatePagePropertiesContext]);
|
|
@@ -13246,8 +13246,8 @@
|
|
|
13246
13246
|
}, langdetect == 'en' ? sectionproperties.checkoutButtonContenten : sectionproperties.checkoutButtonContentar))))))))));
|
|
13247
13247
|
};
|
|
13248
13248
|
|
|
13249
|
-
function ownKeys$
|
|
13250
|
-
function _objectSpread$
|
|
13249
|
+
function ownKeys$2b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13250
|
+
function _objectSpread$2b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2b(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13251
13251
|
var Categoriesdropdown = function Categoriesdropdown(props) {
|
|
13252
13252
|
var _useState = React.useState(''),
|
|
13253
13253
|
_useState2 = _slicedToArray__default["default"](_useState, 2);
|
|
@@ -13291,7 +13291,7 @@
|
|
|
13291
13291
|
templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop[CurrentPageId]) === null || _templatepropcontext$ === void 0 || (_templatepropcontext$ = _templatepropcontext$.pageproperties) === null || _templatepropcontext$ === void 0 || _templatepropcontext$.forEach(function (arrayItem, arrayindex) {
|
|
13292
13292
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
13293
13293
|
});
|
|
13294
|
-
setsectionproperties(_objectSpread$
|
|
13294
|
+
setsectionproperties(_objectSpread$2b({}, secpropobj));
|
|
13295
13295
|
}, [CurrentPageId]);
|
|
13296
13296
|
React.useEffect(function () {
|
|
13297
13297
|
if (CurrentSrcTypeContext == 'workplace') {
|
|
@@ -13301,7 +13301,7 @@
|
|
|
13301
13301
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
13302
13302
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
13303
13303
|
});
|
|
13304
|
-
setsectionproperties(_objectSpread$
|
|
13304
|
+
setsectionproperties(_objectSpread$2b({}, secpropobj));
|
|
13305
13305
|
}
|
|
13306
13306
|
}
|
|
13307
13307
|
}, [StatePagePropertiesContext]);
|
|
@@ -13529,8 +13529,8 @@
|
|
|
13529
13529
|
}, CategoriesDropdown()));
|
|
13530
13530
|
};
|
|
13531
13531
|
|
|
13532
|
-
function ownKeys$
|
|
13533
|
-
function _objectSpread$
|
|
13532
|
+
function ownKeys$2a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13533
|
+
function _objectSpread$2a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2a(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13534
13534
|
var OrderSuccess = function OrderSuccess(props) {
|
|
13535
13535
|
var _props$actions2;
|
|
13536
13536
|
props.actions.lang;
|
|
@@ -13580,7 +13580,7 @@
|
|
|
13580
13580
|
props === null || props === void 0 || (_props$actions = props.actions) === null || _props$actions === void 0 || (_props$actions = _props$actions.StatePagePropertiesContext) === null || _props$actions === void 0 || (_props$actions = _props$actions.pageobj) === null || _props$actions === void 0 || (_props$actions = _props$actions.pageproperties) === null || _props$actions === void 0 || _props$actions.forEach(function (arrayItem, arrayindex) {
|
|
13581
13581
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
13582
13582
|
});
|
|
13583
|
-
setsectionproperties(_objectSpread$
|
|
13583
|
+
setsectionproperties(_objectSpread$2a({}, secpropobj));
|
|
13584
13584
|
}, [props === null || props === void 0 || (_props$actions2 = props.actions) === null || _props$actions2 === void 0 ? void 0 : _props$actions2.StatePagePropertiesContext]);
|
|
13585
13585
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
13586
13586
|
var ordersuccessstyle = {
|
|
@@ -13677,12 +13677,12 @@
|
|
|
13677
13677
|
var filterstyles = {"timeline":"filter-module_timeline__ROm9Q","border_left_line":"filter-module_border_left_line__IkxXK","btn_item":"filter-module_btn_item__GoKTf","timelineinnercont_active":"filter-module_timelineinnercont_active__2sLI7","timeline_text":"filter-module_timeline_text__NgaGy","timelineinnercont":"filter-module_timelineinnercont__Zme9K","timelinetrans":"filter-module_timelinetrans__KzVCg","filterslider_container":"filter-module_filterslider_container__I-7sG","filterslider_container_opened":"filter-module_filterslider_container_opened__2eZes","outercontainer":"filter-module_outercontainer__kmY9b","innercontainer":"filter-module_innercontainer__VKukp","card":"filter-module_card__7yDs0"};
|
|
13678
13678
|
styleInject(css_248z$D);
|
|
13679
13679
|
|
|
13680
|
-
function ownKeys$
|
|
13681
|
-
function _objectSpread$
|
|
13680
|
+
function ownKeys$29(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13681
|
+
function _objectSpread$29(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$29(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$29(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13682
13682
|
var Select$1 = /*#__PURE__*/React__default["default"].lazy(function () {
|
|
13683
13683
|
return import('react-select');
|
|
13684
13684
|
});
|
|
13685
|
-
var Filter$
|
|
13685
|
+
var Filter$1 = function Filter(props) {
|
|
13686
13686
|
var _css;
|
|
13687
13687
|
var lang = props.actions.lang;
|
|
13688
13688
|
var langdetect = props.actions.langdetect;
|
|
@@ -13818,11 +13818,11 @@
|
|
|
13818
13818
|
}
|
|
13819
13819
|
timeoutRef.current = setTimeout(function () {
|
|
13820
13820
|
if (raterangevalue.min != 0 || raterangevalue.max != 5) {
|
|
13821
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
13821
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
13822
13822
|
tempfetchproductsfilerobjcontext.minrate = raterangevalue.min;
|
|
13823
13823
|
tempfetchproductsfilerobjcontext.maxrate = raterangevalue.max;
|
|
13824
13824
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
13825
|
-
setProductFilterObjContext(_objectSpread$
|
|
13825
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
13826
13826
|
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
13827
13827
|
}
|
|
13828
13828
|
}, 500);
|
|
@@ -13908,33 +13908,33 @@
|
|
|
13908
13908
|
}, [ProductFilterObjContext, fetchCategoriesQueryContext.isSuccess, fetchcollectionsQueryContext.isSuccess, instcategories, instcollections]);
|
|
13909
13909
|
React.useEffect(function () {
|
|
13910
13910
|
if (productfeatuesarr.length != 0) {
|
|
13911
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
13911
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
13912
13912
|
tempfetchproductsfilerobjcontext.prod_featruesar = productfeatuesarr;
|
|
13913
|
-
setProductFilterObjContext(_objectSpread$
|
|
13913
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
13914
13914
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
13915
13915
|
}
|
|
13916
13916
|
}, [productfeatuesarr]);
|
|
13917
13917
|
React.useEffect(function () {
|
|
13918
13918
|
if (fetchTabexStatesQueryContext.isSuccess) {
|
|
13919
13919
|
if (ProductFilterObjContext.stateid != undefined && ProductFilterObjContext.stateid != null && ProductFilterObjContext.stateid != '' && ProductFilterObjContext.stateid != 'all') {
|
|
13920
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
13920
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
13921
13921
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
13922
13922
|
tempFetchTabexStatesPayloadobjContext.state_id = ProductFilterObjContext.stateid;
|
|
13923
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
13923
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
13924
13924
|
}
|
|
13925
13925
|
}
|
|
13926
13926
|
}, [fetchTabexStatesQueryContext.isSuccess]);
|
|
13927
13927
|
var filterupdater = function filterupdater() {
|
|
13928
13928
|
setTimeout(function () {
|
|
13929
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
13929
|
+
var tempFetchQueriesEngineContext = _objectSpread$29({}, FetchQueriesEngineContext);
|
|
13930
13930
|
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
13931
13931
|
setFetchQueriesEngineContext(tempFetchQueriesEngineContext);
|
|
13932
13932
|
}, 100);
|
|
13933
13933
|
if (ProductFilterObjContext.countryid != undefined && ProductFilterObjContext.countryid != null && ProductFilterObjContext.countryid != '' && ProductFilterObjContext.countryid != 'all') {
|
|
13934
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
13934
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
13935
13935
|
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
13936
13936
|
tempFetchTabexStatesPayloadobjContext.country_id = ProductFilterObjContext.countryid;
|
|
13937
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
13937
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
13938
13938
|
}
|
|
13939
13939
|
if (instfilters.length != 0) {
|
|
13940
13940
|
var _ProductFilterObjCont3;
|
|
@@ -13996,7 +13996,7 @@
|
|
|
13996
13996
|
}
|
|
13997
13997
|
};
|
|
13998
13998
|
var setfilterfunc = function setfilterfunc(valueid, valueindex, mainparentindex, type) {
|
|
13999
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
13999
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14000
14000
|
if (type == 'clearfilters') {
|
|
14001
14001
|
tempfetchproductsfilerobjcontext.FilterOptions = [];
|
|
14002
14002
|
} else {
|
|
@@ -14020,14 +14020,14 @@
|
|
|
14020
14020
|
tempfetchproductsfilerobjcontext.isfilter = 1;
|
|
14021
14021
|
}
|
|
14022
14022
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14023
|
-
setProductFilterObjContext(_objectSpread$
|
|
14023
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14024
14024
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14025
14025
|
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
14026
14026
|
};
|
|
14027
14027
|
|
|
14028
14028
|
var setCollectionFilterFunc = function setCollectionFilterFunc(collectionid) {
|
|
14029
14029
|
var _tempfetchproductsfil2;
|
|
14030
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14030
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14031
14031
|
var CollectionExists = false;
|
|
14032
14032
|
tempfetchproductsfilerobjcontext === null || tempfetchproductsfilerobjcontext === void 0 || (_tempfetchproductsfil2 = tempfetchproductsfilerobjcontext.collections) === null || _tempfetchproductsfil2 === void 0 || _tempfetchproductsfil2.forEach(function (filteritem, filterindex) {
|
|
14033
14033
|
if (filteritem == collectionid) {
|
|
@@ -14049,7 +14049,7 @@
|
|
|
14049
14049
|
}
|
|
14050
14050
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14051
14051
|
tempfetchproductsfilerobjcontext.ProductFetchingType = 'Random';
|
|
14052
|
-
setProductFilterObjContext(_objectSpread$
|
|
14052
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14053
14053
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14054
14054
|
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
14055
14055
|
};
|
|
@@ -14070,11 +14070,11 @@
|
|
|
14070
14070
|
if (state.expanded == true) {
|
|
14071
14071
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14072
14072
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14073
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14073
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
14074
14074
|
} else {
|
|
14075
14075
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14076
14076
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14077
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14077
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
14078
14078
|
}
|
|
14079
14079
|
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
14080
14080
|
className: "p-0"
|
|
@@ -14132,11 +14132,11 @@
|
|
|
14132
14132
|
if (state.expanded == true) {
|
|
14133
14133
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14134
14134
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14135
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14135
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
14136
14136
|
} else {
|
|
14137
14137
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14138
14138
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14139
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14139
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
14140
14140
|
}
|
|
14141
14141
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14142
14142
|
className: "col-lg-12 p-0"
|
|
@@ -14210,11 +14210,11 @@
|
|
|
14210
14210
|
if (state.expanded == true) {
|
|
14211
14211
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14212
14212
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14213
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14213
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
14214
14214
|
} else {
|
|
14215
14215
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14216
14216
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14217
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14217
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
14218
14218
|
}
|
|
14219
14219
|
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
14220
14220
|
className: "p-0"
|
|
@@ -14253,9 +14253,7 @@
|
|
|
14253
14253
|
setcollectionstobevisible(instcollections);
|
|
14254
14254
|
}
|
|
14255
14255
|
// style={{ cursor: 'pointer' }}
|
|
14256
|
-
}, langdetect == 'en' ? sectionproperties.showalltexten : sectionproperties.showalltextar)))))))
|
|
14257
|
-
className: "mt-3 mb-3"
|
|
14258
|
-
})));
|
|
14256
|
+
}, langdetect == 'en' ? sectionproperties.showalltexten : sectionproperties.showalltextar)))))))));
|
|
14259
14257
|
};
|
|
14260
14258
|
var DynamicFilter = function DynamicFilter() {
|
|
14261
14259
|
var _fetchProductFeatures;
|
|
@@ -14264,66 +14262,192 @@
|
|
|
14264
14262
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14265
14263
|
"class": "col-lg-12 p-0 mb-3"
|
|
14266
14264
|
}, (fetchProductFeaturesQueryContext === null || fetchProductFeaturesQueryContext === void 0 ? void 0 : fetchProductFeaturesQueryContext.isSuccess) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14267
|
-
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
14265
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3 w-100"
|
|
14268
14266
|
}, fetchProductFeaturesQueryContext === null || fetchProductFeaturesQueryContext === void 0 || (_fetchProductFeatures = fetchProductFeaturesQueryContext.data) === null || _fetchProductFeatures === void 0 || (_fetchProductFeatures = _fetchProductFeatures.data) === null || _fetchProductFeatures === void 0 || (_fetchProductFeatures = _fetchProductFeatures.productfeatues) === null || _fetchProductFeatures === void 0 ? void 0 : _fetchProductFeatures.map(function (item, index) {
|
|
14267
|
+
// if (item.type == 'Selectbox') {
|
|
14268
|
+
// var selectboxarr = [];
|
|
14269
|
+
// item?.featuresselectbovalue?.forEach(function (slecitem) {
|
|
14270
|
+
// var itemlabel = '';
|
|
14271
|
+
// if (langdetect == 'en') {
|
|
14272
|
+
// itemlabel = slecitem.value_en;
|
|
14273
|
+
// } else {
|
|
14274
|
+
// itemlabel = slecitem.value_ar;
|
|
14275
|
+
// }
|
|
14276
|
+
// selectboxarr.push({ label: itemlabel, value: slecitem.value_en });
|
|
14277
|
+
// });
|
|
14278
|
+
// return (
|
|
14279
|
+
// <div class="col-lg-12 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 p-0">
|
|
14280
|
+
// <label
|
|
14281
|
+
// className={' mb-3 w-100 '}
|
|
14282
|
+
// style={{
|
|
14283
|
+
// textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
14284
|
+
// color: sectionproperties.filtertitle_color,
|
|
14285
|
+
// color: sectionproperties.filtertitle_color,
|
|
14286
|
+
// fontSize: sectionproperties.filtertitle_fontsize + 'px',
|
|
14287
|
+
// fontWeight: sectionproperties.filtertitle_fontweight,
|
|
14288
|
+
// color: sectionproperties.filtertitle_color,
|
|
14289
|
+
// textTransform: 'capitalize',
|
|
14290
|
+
// }}
|
|
14291
|
+
// >
|
|
14292
|
+
// {langdetect == 'en' ? item.name_en : item.name_ar}
|
|
14293
|
+
// </label>
|
|
14294
|
+
// <div class={'col-lg-12 p-0'}>
|
|
14295
|
+
// <Select
|
|
14296
|
+
// options={selectboxarr}
|
|
14297
|
+
// styles={langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated}
|
|
14298
|
+
// placeholder={''}
|
|
14299
|
+
// onChange={(e) => {
|
|
14300
|
+
// var isattrexists = false;
|
|
14301
|
+
// var tempproductfeatuesarr = [...productfeatuesarr];
|
|
14302
|
+
// tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
|
|
14303
|
+
// if (attritem.id == item.id) {
|
|
14304
|
+
// tempproductfeatuesarr[attrindex].value = e.value;
|
|
14305
|
+
// isattrexists = true;
|
|
14306
|
+
// }
|
|
14307
|
+
// });
|
|
14308
|
+
// if (isattrexists == false) {
|
|
14309
|
+
// tempproductfeatuesarr.push({
|
|
14310
|
+
// id: item.id,
|
|
14311
|
+
// value: e.value,
|
|
14312
|
+
// });
|
|
14313
|
+
// }
|
|
14314
|
+
// setproductfeatuesarr([...tempproductfeatuesarr]);
|
|
14315
|
+
// }}
|
|
14316
|
+
// />
|
|
14317
|
+
// </div>
|
|
14318
|
+
// </div>
|
|
14319
|
+
// );
|
|
14320
|
+
// }
|
|
14269
14321
|
if (item.type == 'Selectbox') {
|
|
14270
|
-
var _item$featuresselectb
|
|
14271
|
-
|
|
14272
|
-
|
|
14273
|
-
|
|
14274
|
-
|
|
14275
|
-
|
|
14322
|
+
var _item$featuresselectb;
|
|
14323
|
+
// item?.featuresselectbovalue?.forEach(function (slecitem) {
|
|
14324
|
+
// var itemlabel = '';
|
|
14325
|
+
// var itemlabelar = '';
|
|
14326
|
+
// if (langdetect == 'en') {
|
|
14327
|
+
// itemlabel = slecitem.value_en;
|
|
14328
|
+
// } else {
|
|
14329
|
+
// itemlabel = slecitem.value_ar;
|
|
14330
|
+
// }
|
|
14331
|
+
// selectboxarr.push({ label: itemlabel, value: slecitem.value_en });
|
|
14332
|
+
// });
|
|
14333
|
+
return /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
14334
|
+
allowMultipleExpanded: true,
|
|
14335
|
+
allowZeroExpanded: true,
|
|
14336
|
+
preExpanded: [0, 1, 2, 3]
|
|
14337
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, {
|
|
14338
|
+
uuid: index
|
|
14339
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14340
|
+
className: filter_cssstyles.titlecontainer + ' row m-0 w-100 p-0 mb-2 pl-md-3 pr-md-3 '
|
|
14341
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14342
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
14343
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14344
|
+
className: langdetect == 'en' ? filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 ' : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
|
|
14345
|
+
}, langdetect == 'en' ? item.name_en : item.name_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14346
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
14347
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState, null, function (state) {
|
|
14348
|
+
if (state.expanded == true) {
|
|
14349
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14350
|
+
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14351
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
14276
14352
|
} else {
|
|
14277
|
-
|
|
14353
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14354
|
+
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14355
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
14278
14356
|
}
|
|
14279
|
-
|
|
14280
|
-
|
|
14281
|
-
|
|
14282
|
-
|
|
14283
|
-
}
|
|
14284
|
-
|
|
14285
|
-
|
|
14286
|
-
|
|
14287
|
-
|
|
14288
|
-
|
|
14289
|
-
|
|
14290
|
-
|
|
14291
|
-
|
|
14292
|
-
|
|
14293
|
-
|
|
14294
|
-
|
|
14295
|
-
|
|
14296
|
-
styles: langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated,
|
|
14297
|
-
placeholder: '',
|
|
14298
|
-
onChange: function onChange(e) {
|
|
14299
|
-
var isattrexists = false;
|
|
14300
|
-
var tempproductfeatuesarr = _toConsumableArray__default["default"](productfeatuesarr);
|
|
14301
|
-
tempproductfeatuesarr === null || tempproductfeatuesarr === void 0 || tempproductfeatuesarr.forEach(function (attritem, attrindex) {
|
|
14302
|
-
if (attritem.id == item.id) {
|
|
14303
|
-
tempproductfeatuesarr[attrindex].value = e.value;
|
|
14304
|
-
isattrexists = true;
|
|
14305
|
-
}
|
|
14306
|
-
});
|
|
14307
|
-
if (isattrexists == false) {
|
|
14308
|
-
tempproductfeatuesarr.push({
|
|
14309
|
-
id: item.id,
|
|
14310
|
-
value: e.value
|
|
14357
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
14358
|
+
className: "p-0"
|
|
14359
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14360
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
14361
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14362
|
+
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
14363
|
+
}, item === null || item === void 0 || (_item$featuresselectb = item.featuresselectbovalue) === null || _item$featuresselectb === void 0 ? void 0 : _item$featuresselectb.map(function (slecitem, slecindex) {
|
|
14364
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14365
|
+
className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(slecitem.isfilterselected ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n \n ") + ' d-flex align-items-start pb-3 ',
|
|
14366
|
+
onClick: function onClick(e) {
|
|
14367
|
+
var isattrexists = false;
|
|
14368
|
+
var tempproductfeatuesarr = _toConsumableArray__default["default"](productfeatuesarr);
|
|
14369
|
+
tempproductfeatuesarr === null || tempproductfeatuesarr === void 0 || tempproductfeatuesarr.forEach(function (attritem, attrindex) {
|
|
14370
|
+
if (attritem.id == slecitem.id) {
|
|
14371
|
+
tempproductfeatuesarr[attrindex].value = slecitem.value_en;
|
|
14372
|
+
isattrexists = true;
|
|
14373
|
+
}
|
|
14311
14374
|
});
|
|
14375
|
+
if (isattrexists == false) {
|
|
14376
|
+
tempproductfeatuesarr.push({
|
|
14377
|
+
id: slecitem.id,
|
|
14378
|
+
value: slecitem.value_en
|
|
14379
|
+
});
|
|
14380
|
+
}
|
|
14381
|
+
setproductfeatuesarr(_toConsumableArray__default["default"](tempproductfeatuesarr));
|
|
14382
|
+
|
|
14383
|
+
// setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
14312
14384
|
}
|
|
14313
|
-
|
|
14314
|
-
|
|
14315
|
-
|
|
14316
|
-
|
|
14385
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14386
|
+
className: " ".concat(slecitem.isfilterselected ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' mb-2 d-flex align-items-center '
|
|
14387
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14388
|
+
className: "h-100 d-flex align-items-center"
|
|
14389
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14390
|
+
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
14391
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14392
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
14393
|
+
style: {
|
|
14394
|
+
color: slecitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
14395
|
+
}
|
|
14396
|
+
}, langdetect == 'en' ? slecitem.value_en : slecitem.value_ar)));
|
|
14397
|
+
}))))))
|
|
14398
|
+
// <div class="col-lg-12 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 p-0">
|
|
14399
|
+
// <label
|
|
14400
|
+
// className={' mb-3 w-100 '}
|
|
14401
|
+
// style={{
|
|
14402
|
+
// textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
14403
|
+
// color: sectionproperties.filtertitle_color,
|
|
14404
|
+
// color: sectionproperties.filtertitle_color,
|
|
14405
|
+
// fontSize: sectionproperties.filtertitle_fontsize + 'px',
|
|
14406
|
+
// fontWeight: sectionproperties.filtertitle_fontweight,
|
|
14407
|
+
// color: sectionproperties.filtertitle_color,
|
|
14408
|
+
// textTransform: 'capitalize',
|
|
14409
|
+
// }}
|
|
14410
|
+
// >
|
|
14411
|
+
// {langdetect == 'en' ? item.name_en : item.name_ar}
|
|
14412
|
+
// </label>
|
|
14413
|
+
// <div class={'col-lg-12 p-0'}>
|
|
14414
|
+
// <Select
|
|
14415
|
+
// options={selectboxarr}
|
|
14416
|
+
// styles={langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated}
|
|
14417
|
+
// placeholder={''}
|
|
14418
|
+
// onChange={(e) => {
|
|
14419
|
+
// var isattrexists = false;
|
|
14420
|
+
// var tempproductfeatuesarr = [...productfeatuesarr];
|
|
14421
|
+
// tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
|
|
14422
|
+
// if (attritem.id == item.id) {
|
|
14423
|
+
// tempproductfeatuesarr[attrindex].value = e.value;
|
|
14424
|
+
// isattrexists = true;
|
|
14425
|
+
// }
|
|
14426
|
+
// });
|
|
14427
|
+
// if (isattrexists == false) {
|
|
14428
|
+
// tempproductfeatuesarr.push({
|
|
14429
|
+
// id: item.id,
|
|
14430
|
+
// value: e.value,
|
|
14431
|
+
// });
|
|
14432
|
+
// }
|
|
14433
|
+
// setproductfeatuesarr([...tempproductfeatuesarr]);
|
|
14434
|
+
// }}
|
|
14435
|
+
// />
|
|
14436
|
+
// </div>
|
|
14437
|
+
// </div>
|
|
14438
|
+
;
|
|
14439
|
+
}
|
|
14440
|
+
// up here
|
|
14317
14441
|
if (item.type == 'Number') {
|
|
14318
|
-
var
|
|
14442
|
+
var _ref;
|
|
14319
14443
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14320
14444
|
"class": "col-lg-12 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 p-0"
|
|
14321
14445
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
14322
14446
|
className: "".concat(filter_cssstyles.input_label_name) + ' mb-3 w-100 ',
|
|
14323
|
-
style: (
|
|
14447
|
+
style: (_ref = {
|
|
14324
14448
|
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
14325
14449
|
color: sectionproperties.filtertitle_color
|
|
14326
|
-
}, _defineProperty__default["default"](
|
|
14450
|
+
}, _defineProperty__default["default"](_ref, "color", sectionproperties.filtertitle_color), _defineProperty__default["default"](_ref, "fontSize", sectionproperties.filtertitle_fontsize + 'px'), _defineProperty__default["default"](_ref, "fontWeight", sectionproperties.filtertitle_fontweight), _defineProperty__default["default"](_ref, "color", sectionproperties.filtertitle_color), _defineProperty__default["default"](_ref, "textTransform", 'capitalize'), _ref)
|
|
14327
14451
|
}, langdetect == 'en' ? item.name_en : item.name_ar), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14328
14452
|
"class": 'col-lg-12 p-0'
|
|
14329
14453
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
@@ -14350,7 +14474,7 @@
|
|
|
14350
14474
|
})));
|
|
14351
14475
|
}
|
|
14352
14476
|
if (item.type == 'NumberRange') {
|
|
14353
|
-
var
|
|
14477
|
+
var _ref2;
|
|
14354
14478
|
var temppricevalue = {
|
|
14355
14479
|
min: 0,
|
|
14356
14480
|
max: 10000
|
|
@@ -14371,10 +14495,10 @@
|
|
|
14371
14495
|
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-12 col-md-12 col-sm-12 mb-3 '
|
|
14372
14496
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
14373
14497
|
className: "".concat(filter_cssstyles.input_label_name) + ' mb-3 w-100',
|
|
14374
|
-
style: (
|
|
14498
|
+
style: (_ref2 = {
|
|
14375
14499
|
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
14376
14500
|
color: sectionproperties.filtertitle_color
|
|
14377
|
-
}, _defineProperty__default["default"](
|
|
14501
|
+
}, _defineProperty__default["default"](_ref2, "color", sectionproperties.filtertitle_color), _defineProperty__default["default"](_ref2, "fontSize", sectionproperties.filtertitle_fontsize + 'px'), _defineProperty__default["default"](_ref2, "fontWeight", sectionproperties.filtertitle_fontweight), _defineProperty__default["default"](_ref2, "color", sectionproperties.filtertitle_color), _defineProperty__default["default"](_ref2, "textTransform", 'capitalize'), _ref2)
|
|
14378
14502
|
}, langdetect == 'en' ? item.name_en : item.name_ar, item.type), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14379
14503
|
"class": 'col-lg-12 pl-4 pr-4 mt-2 mb-2',
|
|
14380
14504
|
style: {
|
|
@@ -14413,60 +14537,70 @@
|
|
|
14413
14537
|
}))));
|
|
14414
14538
|
};
|
|
14415
14539
|
var InstFilters = function InstFilters() {
|
|
14416
|
-
return
|
|
14417
|
-
|
|
14418
|
-
|
|
14419
|
-
|
|
14420
|
-
|
|
14421
|
-
|
|
14422
|
-
|
|
14423
|
-
|
|
14424
|
-
|
|
14425
|
-
|
|
14426
|
-
|
|
14427
|
-
|
|
14428
|
-
|
|
14429
|
-
|
|
14430
|
-
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState, null, function (state) {
|
|
14431
|
-
if (state.expanded == true) {
|
|
14432
|
-
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14433
|
-
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14434
|
-
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
14435
|
-
} else {
|
|
14436
|
-
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14437
|
-
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14438
|
-
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
14439
|
-
}
|
|
14440
|
-
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
14441
|
-
className: "p-0"
|
|
14442
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14443
|
-
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
14444
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14445
|
-
className: 'col-lg-12'
|
|
14446
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14447
|
-
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
14448
|
-
}, item.productvaluesfilter.map(function (valueitem, valueindex) {
|
|
14449
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14450
|
-
className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(valueitem.isfilterselected ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n \n ") + ' d-flex align-items-start pb-3 ',
|
|
14451
|
-
onClick: function onClick() {
|
|
14452
|
-
setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
14453
|
-
}
|
|
14454
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14455
|
-
className: " ".concat(valueitem.isfilterselected ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' mb-2 d-flex align-items-center '
|
|
14456
|
-
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14457
|
-
className: "h-100 d-flex align-items-center"
|
|
14458
|
-
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14459
|
-
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
14540
|
+
return (
|
|
14541
|
+
/*#__PURE__*/
|
|
14542
|
+
// <Accordion allowMultipleExpanded={true} allowZeroExpanded={true}>
|
|
14543
|
+
React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
14544
|
+
allowMultipleExpanded: true,
|
|
14545
|
+
allowZeroExpanded: true,
|
|
14546
|
+
preExpanded: [0, 1, 2, 3]
|
|
14547
|
+
}, instfilters.map(function (item, index) {
|
|
14548
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, {
|
|
14549
|
+
uuid: index
|
|
14550
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14551
|
+
className: filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 mb-4 '
|
|
14552
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14553
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
14460
14554
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14461
|
-
className:
|
|
14462
|
-
|
|
14463
|
-
|
|
14555
|
+
className: langdetect == 'en' ? filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 ' : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
|
|
14556
|
+
}, langdetect == 'en' ? item.optionname : item.optionname_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14557
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
14558
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState, null, function (state) {
|
|
14559
|
+
if (state.expanded == true) {
|
|
14560
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14561
|
+
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14562
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
14563
|
+
} else {
|
|
14564
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14565
|
+
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14566
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
14464
14567
|
}
|
|
14465
|
-
},
|
|
14466
|
-
|
|
14467
|
-
|
|
14468
|
-
|
|
14469
|
-
|
|
14568
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
14569
|
+
className: "p-0"
|
|
14570
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14571
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
14572
|
+
}, /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
14573
|
+
"class": "thwvsf-wrapper-ul"
|
|
14574
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14575
|
+
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
14576
|
+
}, item.productvaluesfilter.map(function (valueitem, valueindex) {
|
|
14577
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14578
|
+
className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(valueitem.isfilterselected ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n \n ") + ' d-flex align-items-start pb-3 ',
|
|
14579
|
+
onClick: function onClick() {
|
|
14580
|
+
setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
14581
|
+
}
|
|
14582
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14583
|
+
className: " ".concat(valueitem.isfilterselected ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' mb-2 d-flex align-items-center '
|
|
14584
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14585
|
+
className: "h-100 d-flex align-items-center"
|
|
14586
|
+
}))), item.optionname == 'Color' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14587
|
+
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
14588
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14589
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
14590
|
+
style: {
|
|
14591
|
+
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
14592
|
+
}
|
|
14593
|
+
}, valueitem.value_identifier)), item.optionname != 'Color' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14594
|
+
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
14595
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14596
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
14597
|
+
style: {
|
|
14598
|
+
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
14599
|
+
}
|
|
14600
|
+
}, langdetect == 'en' ? valueitem.valuename : valueitem.valuename_ar)));
|
|
14601
|
+
})))))));
|
|
14602
|
+
}))
|
|
14603
|
+
);
|
|
14470
14604
|
};
|
|
14471
14605
|
var filter_cssstyles = {
|
|
14472
14606
|
form_control: glamor.css((_css = {
|
|
@@ -14645,14 +14779,14 @@
|
|
|
14645
14779
|
return option.id == ProductFilterObjContext.countryid;
|
|
14646
14780
|
}),
|
|
14647
14781
|
onChange: function onChange(option) {
|
|
14648
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
14782
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
14649
14783
|
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
14650
14784
|
tempFetchTabexStatesPayloadobjContext.country_id = option.id;
|
|
14651
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
14652
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14785
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
14786
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14653
14787
|
tempfetchproductsfilerobjcontext.countryid = option.id;
|
|
14654
14788
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14655
|
-
setProductFilterObjContext(_objectSpread$
|
|
14789
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14656
14790
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14657
14791
|
},
|
|
14658
14792
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -14689,14 +14823,14 @@
|
|
|
14689
14823
|
return option.id == ProductFilterObjContext.stateid;
|
|
14690
14824
|
}),
|
|
14691
14825
|
onChange: function onChange(option) {
|
|
14692
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
14826
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
14693
14827
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
14694
14828
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
14695
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
14696
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14829
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
14830
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14697
14831
|
tempfetchproductsfilerobjcontext.stateid = option.id;
|
|
14698
14832
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14699
|
-
setProductFilterObjContext(_objectSpread$
|
|
14833
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14700
14834
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14701
14835
|
},
|
|
14702
14836
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -14733,10 +14867,10 @@
|
|
|
14733
14867
|
return option.id == ProductFilterObjContext.cityid;
|
|
14734
14868
|
}),
|
|
14735
14869
|
onChange: function onChange(option) {
|
|
14736
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14870
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14737
14871
|
tempfetchproductsfilerobjcontext.cityid = option.id;
|
|
14738
14872
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14739
|
-
setProductFilterObjContext(_objectSpread$
|
|
14873
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14740
14874
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14741
14875
|
},
|
|
14742
14876
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -14760,11 +14894,14 @@
|
|
|
14760
14894
|
// }
|
|
14761
14895
|
// }, []);
|
|
14762
14896
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14763
|
-
className
|
|
14897
|
+
// className={sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 p-0 w-100 filter mt-md-0 ' : 'col-lg-12 p-0 w-100 filter mt-md-0 d-md-none'}
|
|
14898
|
+
className: 'row m-0 p-0 w-100',
|
|
14764
14899
|
style: {
|
|
14765
14900
|
marginTop: sectionproperties.filtersection_mt + 'px',
|
|
14766
14901
|
minHeight: sectionproperties.filterminheight == 0 ? 'auto' : sectionproperties.filterminheight + 'vh'
|
|
14767
14902
|
}
|
|
14903
|
+
}, props.typeprops != 'vertical' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14904
|
+
className: sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 p-0 w-100 filter mt-md-0 ' : 'col-lg-12 p-0 w-100 filter mt-md-0 d-md-none'
|
|
14768
14905
|
}, sectionproperties.filterType == 'Title & Sort By Only' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14769
14906
|
"class": "row mx-0 w-100",
|
|
14770
14907
|
style: {
|
|
@@ -14840,14 +14977,14 @@
|
|
|
14840
14977
|
color: ischecked ? sectionproperties.activecat_color : ''
|
|
14841
14978
|
},
|
|
14842
14979
|
onClick: function onClick() {
|
|
14843
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14980
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14844
14981
|
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
14845
14982
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
14846
14983
|
} else {
|
|
14847
14984
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
|
|
14848
14985
|
}
|
|
14849
14986
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14850
|
-
setProductFilterObjContext(_objectSpread$
|
|
14987
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14851
14988
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14852
14989
|
setsortbycontext(valueitem.name);
|
|
14853
14990
|
}
|
|
@@ -14992,11 +15129,11 @@
|
|
|
14992
15129
|
if (state.expanded == true) {
|
|
14993
15130
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14994
15131
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14995
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
15132
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
14996
15133
|
} else {
|
|
14997
15134
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14998
15135
|
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
14999
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
15136
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
15000
15137
|
}
|
|
15001
15138
|
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
15002
15139
|
className: "p-0"
|
|
@@ -15020,14 +15157,14 @@
|
|
|
15020
15157
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15021
15158
|
className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(ischecked ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n \n ") + ' d-flex align-items-start pb-3 ',
|
|
15022
15159
|
onClick: function onClick() {
|
|
15023
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15160
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15024
15161
|
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
15025
15162
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
15026
15163
|
} else {
|
|
15027
15164
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
|
|
15028
15165
|
}
|
|
15029
15166
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
15030
|
-
setProductFilterObjContext(_objectSpread$
|
|
15167
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15031
15168
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
15032
15169
|
}
|
|
15033
15170
|
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -15062,7 +15199,7 @@
|
|
|
15062
15199
|
minValue: 0,
|
|
15063
15200
|
value: raterangevalue,
|
|
15064
15201
|
onChange: function onChange(value) {
|
|
15065
|
-
setraterangevalue(_objectSpread$
|
|
15202
|
+
setraterangevalue(_objectSpread$29({}, value));
|
|
15066
15203
|
}
|
|
15067
15204
|
}))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15068
15205
|
className: "col-lg-9 col-md-9 col-sm-9 d-flex align-items-center d-md-none"
|
|
@@ -15176,11 +15313,11 @@
|
|
|
15176
15313
|
if (state.expanded == true) {
|
|
15177
15314
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15178
15315
|
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15179
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
15316
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
15180
15317
|
} else {
|
|
15181
15318
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15182
15319
|
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15183
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
15320
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
15184
15321
|
}
|
|
15185
15322
|
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
15186
15323
|
className: "p-0"
|
|
@@ -15205,13 +15342,13 @@
|
|
|
15205
15342
|
className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(ischecked ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n \n ") + ' d-flex align-items-start pb-3 ',
|
|
15206
15343
|
onClick: function onClick() {
|
|
15207
15344
|
// setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
15208
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15345
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15209
15346
|
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
15210
15347
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
15211
15348
|
} else {
|
|
15212
15349
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
|
|
15213
15350
|
}
|
|
15214
|
-
setProductFilterObjContext(_objectSpread$
|
|
15351
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15215
15352
|
}
|
|
15216
15353
|
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15217
15354
|
className: " ".concat(ischecked ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' mb-2 d-flex align-items-center '
|
|
@@ -15225,9 +15362,7 @@
|
|
|
15225
15362
|
color: ischecked ? sectionproperties.activecat_color : ''
|
|
15226
15363
|
}
|
|
15227
15364
|
}, valueitem.name)));
|
|
15228
|
-
})))))))
|
|
15229
|
-
className: "mt-3 mb-3"
|
|
15230
|
-
}));
|
|
15365
|
+
}))))))));
|
|
15231
15366
|
}), sectionproperties.otherfilters == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15232
15367
|
className: "col-lg-12"
|
|
15233
15368
|
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
@@ -15240,570 +15375,188 @@
|
|
|
15240
15375
|
"class": "row m-0 w-100"
|
|
15241
15376
|
}, CollectionsFilter()), sectionproperties.showdynamicfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15242
15377
|
"class": "row m-0 w-100"
|
|
15243
|
-
}, DynamicFilter()), sectionproperties.showvariantsfilter == 'Show' && InstFilters())))))))
|
|
15244
|
-
|
|
15245
|
-
|
|
15246
|
-
|
|
15247
|
-
|
|
15248
|
-
|
|
15249
|
-
|
|
15250
|
-
|
|
15251
|
-
var langdetect = props.actions.langdetect;
|
|
15252
|
-
props.actions.productfiltercontext;
|
|
15253
|
-
props.actions.setproductfiltercontext;
|
|
15254
|
-
var ProductFilterObjContext = props.actions.ProductFilterObjContext;
|
|
15255
|
-
var setProductFilterObjContext = props.actions.setProductFilterObjContext;
|
|
15256
|
-
props.actions.authdetailsContext;
|
|
15257
|
-
var fetchproductoptionsQueryContext = props.actions.fetchproductoptionsQueryContext;
|
|
15258
|
-
var fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
|
|
15259
|
-
var routingcountext = props.actions.routingcountext;
|
|
15260
|
-
var fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
|
|
15261
|
-
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
15262
|
-
props.actions.ikimagecredcontext;
|
|
15263
|
-
var _useState = React.useState({
|
|
15264
|
-
min: 0,
|
|
15265
|
-
max: 10000
|
|
15266
|
-
}),
|
|
15267
|
-
_useState2 = _slicedToArray__default["default"](_useState, 2);
|
|
15268
|
-
_useState2[0];
|
|
15269
|
-
_useState2[1];
|
|
15270
|
-
var _useState3 = React.useState([]),
|
|
15271
|
-
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
15272
|
-
productfeatuesarr = _useState4[0];
|
|
15273
|
-
_useState4[1];
|
|
15274
|
-
props.actions.fetchTabexCountriesQueryContext;
|
|
15275
|
-
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
15276
|
-
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
15277
|
-
props.actions.fetchTabexCitiesQueryContext;
|
|
15278
|
-
var fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
|
|
15279
|
-
var FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
|
|
15280
|
-
var setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
|
|
15281
|
-
props.actions.fetchProductFeaturesQueryContext;
|
|
15282
|
-
var _useState5 = React.useState(''),
|
|
15283
|
-
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
15284
|
-
sectionproperties = _useState6[0],
|
|
15285
|
-
setsectionproperties = _useState6[1];
|
|
15286
|
-
// const [instfilters, setinstfilters] = useState([...authdetailsContext.instinfo.instfilters]);
|
|
15287
|
-
var _useState7 = React.useState([]),
|
|
15288
|
-
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
15289
|
-
instfilters = _useState8[0],
|
|
15290
|
-
setinstfilters = _useState8[1];
|
|
15291
|
-
var _useState9 = React.useState([]),
|
|
15292
|
-
_useState10 = _slicedToArray__default["default"](_useState9, 2);
|
|
15293
|
-
_useState10[0];
|
|
15294
|
-
var setcollectionstobevisible = _useState10[1];
|
|
15295
|
-
var _useState11 = React.useState([]),
|
|
15296
|
-
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
15297
|
-
instcollections = _useState12[0],
|
|
15298
|
-
setinstcollections = _useState12[1];
|
|
15299
|
-
var _useState13 = React.useState([]),
|
|
15300
|
-
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
15301
|
-
instcategories = _useState14[0],
|
|
15302
|
-
setinstcategories = _useState14[1];
|
|
15303
|
-
// const [sortby, setSortby] = useState('Sort by');
|
|
15304
|
-
var _useState15 = React.useState({
|
|
15305
|
-
min: 0,
|
|
15306
|
-
max: 5
|
|
15307
|
-
}),
|
|
15308
|
-
_useState16 = _slicedToArray__default["default"](_useState15, 2),
|
|
15309
|
-
raterangevalue = _useState16[0];
|
|
15310
|
-
_useState16[1];
|
|
15311
|
-
var timeoutRef = React__default["default"].useRef(null);
|
|
15312
|
-
var _useState17 = React.useState(''),
|
|
15313
|
-
_useState18 = _slicedToArray__default["default"](_useState17, 2);
|
|
15314
|
-
_useState18[0];
|
|
15315
|
-
_useState18[1];
|
|
15316
|
-
var _useState19 = React.useState([{
|
|
15317
|
-
payloadvalue: 'sortprice',
|
|
15318
|
-
name: lang.price,
|
|
15319
|
-
filterarray: [{
|
|
15320
|
-
name: lang.pricehightolow,
|
|
15321
|
-
value: 'hightolow',
|
|
15322
|
-
isfilterselected: false
|
|
15323
|
-
}, {
|
|
15324
|
-
name: lang.pricelowtohigh,
|
|
15325
|
-
value: 'lowtohigh',
|
|
15326
|
-
isfilterselected: false
|
|
15327
|
-
}]
|
|
15328
|
-
}, {
|
|
15329
|
-
payloadvalue: 'sortdates',
|
|
15330
|
-
name: lang.dates,
|
|
15331
|
-
filterarray: [{
|
|
15332
|
-
name: lang.recent,
|
|
15333
|
-
value: 'recent',
|
|
15334
|
-
isfilterselected: false
|
|
15335
|
-
}, {
|
|
15336
|
-
name: lang.oldest,
|
|
15337
|
-
value: 'old',
|
|
15338
|
-
isfilterselected: false
|
|
15339
|
-
}]
|
|
15340
|
-
}]),
|
|
15341
|
-
_useState20 = _slicedToArray__default["default"](_useState19, 2);
|
|
15342
|
-
_useState20[0];
|
|
15343
|
-
_useState20[1];
|
|
15344
|
-
React.useEffect(function () {
|
|
15345
|
-
filterupdater();
|
|
15346
|
-
}, []);
|
|
15347
|
-
React.useEffect(function () {
|
|
15348
|
-
if (fetchproductoptionsQueryContext.isSuccess) {
|
|
15349
|
-
var _fetchproductoptionsQ;
|
|
15350
|
-
setinstfilters(_toConsumableArray__default["default"](fetchproductoptionsQueryContext === null || fetchproductoptionsQueryContext === void 0 || (_fetchproductoptionsQ = fetchproductoptionsQueryContext.data) === null || _fetchproductoptionsQ === void 0 || (_fetchproductoptionsQ = _fetchproductoptionsQ.data) === null || _fetchproductoptionsQ === void 0 ? void 0 : _fetchproductoptionsQ.productoptions));
|
|
15351
|
-
}
|
|
15352
|
-
}, [fetchproductoptionsQueryContext.isSuccess]);
|
|
15353
|
-
React.useEffect(function () {
|
|
15354
|
-
if (fetchCategoriesQueryContext.isSuccess) {
|
|
15355
|
-
var _fetchCategoriesQuery;
|
|
15356
|
-
setinstcategories(_toConsumableArray__default["default"](fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery === void 0 || (_fetchCategoriesQuery = _fetchCategoriesQuery.data) === null || _fetchCategoriesQuery === void 0 ? void 0 : _fetchCategoriesQuery.categories));
|
|
15357
|
-
}
|
|
15358
|
-
}, [fetchCategoriesQueryContext.isSuccess]);
|
|
15359
|
-
React.useEffect(function () {
|
|
15360
|
-
if (fetchcollectionsQueryContext.isSuccess) {
|
|
15361
|
-
var _fetchcollectionsQuer;
|
|
15362
|
-
setinstcollections(_toConsumableArray__default["default"](fetchcollectionsQueryContext === null || fetchcollectionsQueryContext === void 0 || (_fetchcollectionsQuer = fetchcollectionsQueryContext.data) === null || _fetchcollectionsQuer === void 0 || (_fetchcollectionsQuer = _fetchcollectionsQuer.data) === null || _fetchcollectionsQuer === void 0 ? void 0 : _fetchcollectionsQuer.collections));
|
|
15363
|
-
}
|
|
15364
|
-
}, [fetchcollectionsQueryContext.isSuccess]);
|
|
15365
|
-
// useEffect(() => {
|
|
15366
|
-
// // setinstfilters([...authdetailsContext.instinfo.instfilters]);
|
|
15367
|
-
// // setinstcollections([...authdetailsContext.instinfo.instcollections]);
|
|
15368
|
-
// // setinstcategories([...authdetailsContext?.instinfo?.instcategories]);
|
|
15369
|
-
// }, [authdetailsContext]);
|
|
15370
|
-
React.useEffect(function () {
|
|
15371
|
-
if (props.sectionpropertiesprops != undefined && props.sectionpropertiesprops.length != 0) {
|
|
15372
|
-
setsectionproperties(props.sectionpropertiesprops);
|
|
15373
|
-
}
|
|
15374
|
-
}, [props.sectionpropertiesprops]);
|
|
15375
|
-
React.useEffect(function () {
|
|
15376
|
-
filterupdater();
|
|
15377
|
-
}, [ProductFilterObjContext]);
|
|
15378
|
-
React__default["default"].useEffect(function () {
|
|
15379
|
-
if (timeoutRef.current !== null) {
|
|
15380
|
-
clearTimeout(timeoutRef.current);
|
|
15381
|
-
}
|
|
15382
|
-
timeoutRef.current = setTimeout(function () {
|
|
15383
|
-
if (raterangevalue.min != 0 || raterangevalue.max != 5) {
|
|
15384
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15385
|
-
tempfetchproductsfilerobjcontext.minrate = raterangevalue.min;
|
|
15386
|
-
tempfetchproductsfilerobjcontext.maxrate = raterangevalue.max;
|
|
15387
|
-
tempfetchproductsfilerobjcontext.page = 0;
|
|
15388
|
-
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15389
|
-
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
15390
|
-
}
|
|
15391
|
-
}, 500);
|
|
15392
|
-
}, [raterangevalue]);
|
|
15393
|
-
React.useEffect(function () {
|
|
15394
|
-
if (fetchCategoriesQueryContext.isSuccess && fetchcollectionsQueryContext.isSuccess) {
|
|
15395
|
-
if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.filterretreivetype) == 'Depend on chosen parent group') {
|
|
15396
|
-
if ((ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.collections) != undefined && (ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.collections) != null && Array.isArray(ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.collections)) {
|
|
15397
|
-
var _parentidsfound;
|
|
15398
|
-
var collectiontobevisible = [];
|
|
15399
|
-
var parentidsfound = [];
|
|
15400
|
-
if (ProductFilterObjContext.ProductFetchingType == 'Parent Collection') {
|
|
15401
|
-
parentidsfound = ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.collections;
|
|
15402
|
-
} else if (ProductFilterObjContext.ProductFetchingType == 'Category') {
|
|
15403
|
-
instcategories === null || instcategories === void 0 || instcategories.forEach(function (catitem, catindex) {
|
|
15404
|
-
var _ProductFilterObjCont;
|
|
15405
|
-
ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont = ProductFilterObjContext.collections) === null || _ProductFilterObjCont === void 0 || _ProductFilterObjCont.forEach(function (colitem2, colindex2) {
|
|
15406
|
-
if (catitem.categoryid == colitem2) {
|
|
15407
|
-
var _catitem$parentcollet;
|
|
15408
|
-
catitem === null || catitem === void 0 || (_catitem$parentcollet = catitem.parentcolletions) === null || _catitem$parentcollet === void 0 || _catitem$parentcollet.forEach(function (parentcolitem, parentcolindex) {
|
|
15409
|
-
parentidsfound.push(parentcolitem.parentcollectionid);
|
|
15410
|
-
});
|
|
15411
|
-
}
|
|
15412
|
-
});
|
|
15413
|
-
});
|
|
15414
|
-
} else {
|
|
15415
|
-
instcategories === null || instcategories === void 0 || instcategories.forEach(function (catitem, catindex) {
|
|
15416
|
-
var _catitem$parentcollet2;
|
|
15417
|
-
catitem === null || catitem === void 0 || (_catitem$parentcollet2 = catitem.parentcolletions) === null || _catitem$parentcollet2 === void 0 || _catitem$parentcollet2.forEach(function (parentcolitem, parentcolindex) {
|
|
15418
|
-
var _parentcolitem$collec;
|
|
15419
|
-
parentcolitem === null || parentcolitem === void 0 || (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 || _parentcolitem$collec.forEach(function (colitem, colindex) {
|
|
15420
|
-
var _ProductFilterObjCont2;
|
|
15421
|
-
ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont2 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont2 === void 0 || _ProductFilterObjCont2.forEach(function (colitem2, colindex2) {
|
|
15422
|
-
if (colitem.collectionid == colitem2) {
|
|
15423
|
-
parentidsfound.push(parentcolitem.parentcollectionid);
|
|
15424
|
-
}
|
|
15425
|
-
});
|
|
15426
|
-
});
|
|
15427
|
-
});
|
|
15428
|
-
});
|
|
15429
|
-
}
|
|
15430
|
-
parentidsfound = parentidsfound.filter(function (val, id, array) {
|
|
15431
|
-
return array.indexOf(val) == id;
|
|
15432
|
-
});
|
|
15433
|
-
if (((_parentidsfound = parentidsfound) === null || _parentidsfound === void 0 ? void 0 : _parentidsfound.length) != 0) {
|
|
15434
|
-
instcategories === null || instcategories === void 0 || instcategories.forEach(function (catitem, catindex) {
|
|
15435
|
-
var _catitem$parentcollet3;
|
|
15436
|
-
catitem === null || catitem === void 0 || (_catitem$parentcollet3 = catitem.parentcolletions) === null || _catitem$parentcollet3 === void 0 || _catitem$parentcollet3.forEach(function (parentcolitem, parentcolindex) {
|
|
15437
|
-
var _parentidsfound2;
|
|
15438
|
-
(_parentidsfound2 = parentidsfound) === null || _parentidsfound2 === void 0 || _parentidsfound2.forEach(function (parentidfounditem, parentidfoundindex) {
|
|
15439
|
-
if (parentidfounditem == (parentcolitem === null || parentcolitem === void 0 ? void 0 : parentcolitem.parentcollectionid)) {
|
|
15440
|
-
var _parentcolitem$collec2;
|
|
15441
|
-
parentcolitem === null || parentcolitem === void 0 || (_parentcolitem$collec2 = parentcolitem.collections) === null || _parentcolitem$collec2 === void 0 || _parentcolitem$collec2.forEach(function (colitem, colindex) {
|
|
15442
|
-
var iscolexists = false;
|
|
15443
|
-
collectiontobevisible === null || collectiontobevisible === void 0 || collectiontobevisible.forEach(function (colitemex, colindexex) {
|
|
15444
|
-
if (colitemex.collectionid == colitem.collectionid) {
|
|
15445
|
-
iscolexists = true;
|
|
15446
|
-
}
|
|
15447
|
-
});
|
|
15448
|
-
if (iscolexists == false) {
|
|
15449
|
-
collectiontobevisible.push(colitem);
|
|
15450
|
-
}
|
|
15451
|
-
});
|
|
15452
|
-
}
|
|
15453
|
-
});
|
|
15454
|
-
});
|
|
15455
|
-
});
|
|
15456
|
-
if ((collectiontobevisible === null || collectiontobevisible === void 0 ? void 0 : collectiontobevisible.length) != 0) {
|
|
15457
|
-
setcollectionstobevisible(collectiontobevisible);
|
|
15458
|
-
} else {
|
|
15459
|
-
setcollectionstobevisible(instcollections);
|
|
15460
|
-
}
|
|
15461
|
-
} else {
|
|
15462
|
-
setcollectionstobevisible(instcollections);
|
|
15463
|
-
}
|
|
15464
|
-
} else {
|
|
15465
|
-
setcollectionstobevisible(instcollections);
|
|
15466
|
-
}
|
|
15467
|
-
} else {
|
|
15468
|
-
setcollectionstobevisible(instcollections);
|
|
15469
|
-
}
|
|
15470
|
-
}
|
|
15471
|
-
}, [ProductFilterObjContext, fetchCategoriesQueryContext.isSuccess, fetchcollectionsQueryContext.isSuccess, instcategories, instcollections]);
|
|
15472
|
-
React.useEffect(function () {
|
|
15473
|
-
if (productfeatuesarr.length != 0) {
|
|
15474
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15475
|
-
tempfetchproductsfilerobjcontext.prod_featruesar = productfeatuesarr;
|
|
15476
|
-
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15477
|
-
filterrouting(tempfetchproductsfilerobjcontext);
|
|
15478
|
-
}
|
|
15479
|
-
}, [productfeatuesarr]);
|
|
15480
|
-
React.useEffect(function () {
|
|
15481
|
-
if (fetchTabexStatesQueryContext.isSuccess) {
|
|
15482
|
-
if (ProductFilterObjContext.stateid != undefined && ProductFilterObjContext.stateid != null && ProductFilterObjContext.stateid != '' && ProductFilterObjContext.stateid != 'all') {
|
|
15483
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
15484
|
-
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
15485
|
-
tempFetchTabexStatesPayloadobjContext.state_id = ProductFilterObjContext.stateid;
|
|
15486
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
15487
|
-
}
|
|
15488
|
-
}
|
|
15489
|
-
}, [fetchTabexStatesQueryContext.isSuccess]);
|
|
15490
|
-
var filterupdater = function filterupdater() {
|
|
15491
|
-
setTimeout(function () {
|
|
15492
|
-
var tempFetchQueriesEngineContext = _objectSpread$29({}, FetchQueriesEngineContext);
|
|
15493
|
-
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
15494
|
-
setFetchQueriesEngineContext(tempFetchQueriesEngineContext);
|
|
15495
|
-
}, 100);
|
|
15496
|
-
if (ProductFilterObjContext.countryid != undefined && ProductFilterObjContext.countryid != null && ProductFilterObjContext.countryid != '' && ProductFilterObjContext.countryid != 'all') {
|
|
15497
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
15498
|
-
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
15499
|
-
tempFetchTabexStatesPayloadobjContext.country_id = ProductFilterObjContext.countryid;
|
|
15500
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
15501
|
-
}
|
|
15502
|
-
if (instfilters.length != 0) {
|
|
15503
|
-
var _ProductFilterObjCont3;
|
|
15504
|
-
var tempinstfilters = _toConsumableArray__default["default"](instfilters);
|
|
15505
|
-
tempinstfilters === null || tempinstfilters === void 0 || tempinstfilters.forEach(function (instfilteritem, instfilterindex) {
|
|
15506
|
-
instfilteritem.productvaluesfilter.forEach(function (valefilteritem, valefilteritemindex) {
|
|
15507
|
-
valefilteritem.isfilterselected = false;
|
|
15508
|
-
});
|
|
15509
|
-
});
|
|
15510
|
-
ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont3 = ProductFilterObjContext.FilterOptions) === null || _ProductFilterObjCont3 === void 0 || _ProductFilterObjCont3.forEach(function (filteritem, filterindex) {
|
|
15511
|
-
tempinstfilters === null || tempinstfilters === void 0 || tempinstfilters.forEach(function (instfilteritem, instfilterindex) {
|
|
15512
|
-
var _instfilteritem$produ;
|
|
15513
|
-
instfilteritem === null || instfilteritem === void 0 || (_instfilteritem$produ = instfilteritem.productvaluesfilter) === null || _instfilteritem$produ === void 0 || _instfilteritem$produ.forEach(function (valefilteritem, valefilteritemindex) {
|
|
15514
|
-
if (filteritem.valueid == valefilteritem.valueid) {
|
|
15515
|
-
valefilteritem.isfilterselected = true;
|
|
15516
|
-
}
|
|
15517
|
-
});
|
|
15518
|
-
});
|
|
15519
|
-
});
|
|
15520
|
-
setinstfilters(_toConsumableArray__default["default"](tempinstfilters));
|
|
15521
|
-
}
|
|
15522
|
-
if (instcategories.length != 0) {
|
|
15523
|
-
var _ProductFilterObjCont4;
|
|
15524
|
-
var tempInstcategories = _toConsumableArray__default["default"](instcategories);
|
|
15525
|
-
tempInstcategories.forEach(function (catitem, catindex) {
|
|
15526
|
-
catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
|
|
15527
|
-
parentcolitem.collections.forEach(function (colitem, colindex) {
|
|
15528
|
-
colitem.isfilterselected = false;
|
|
15529
|
-
});
|
|
15530
|
-
});
|
|
15531
|
-
});
|
|
15532
|
-
ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont4 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont4 === void 0 || _ProductFilterObjCont4.forEach(function (filteritem, filterindex) {
|
|
15533
|
-
tempInstcategories.forEach(function (catitem, catindex) {
|
|
15534
|
-
catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
|
|
15535
|
-
parentcolitem.collections.forEach(function (colitem, colindex) {
|
|
15536
|
-
if (colitem.collectionid == filteritem) {
|
|
15537
|
-
colitem.isfilterselected = true;
|
|
15538
|
-
}
|
|
15539
|
-
});
|
|
15540
|
-
});
|
|
15541
|
-
});
|
|
15542
|
-
});
|
|
15543
|
-
setinstcategories(_toConsumableArray__default["default"](tempInstcategories));
|
|
15544
|
-
}
|
|
15545
|
-
if (instcollections.length != 0) {
|
|
15546
|
-
var _ProductFilterObjCont5;
|
|
15547
|
-
var tempInstcollections = _toConsumableArray__default["default"](instcollections);
|
|
15548
|
-
tempInstcollections.forEach(function (instfilteritem, valefilteritemindex) {
|
|
15549
|
-
instfilteritem.isfilterselected = false;
|
|
15550
|
-
});
|
|
15551
|
-
ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont5 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont5 === void 0 || _ProductFilterObjCont5.forEach(function (filteritem, filterindex) {
|
|
15552
|
-
tempInstcollections === null || tempInstcollections === void 0 || tempInstcollections.forEach(function (instfilteritem, instfilterindex) {
|
|
15553
|
-
if (instfilteritem.collectionid == filteritem) {
|
|
15554
|
-
instfilteritem.isfilterselected = true;
|
|
15555
|
-
}
|
|
15556
|
-
});
|
|
15557
|
-
});
|
|
15558
|
-
setinstcollections(_toConsumableArray__default["default"](tempInstcollections));
|
|
15559
|
-
}
|
|
15560
|
-
};
|
|
15561
|
-
var setfilterfunc = function setfilterfunc(valueid, valueindex, mainparentindex, type) {
|
|
15562
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15563
|
-
if (type == 'clearfilters') {
|
|
15564
|
-
tempfetchproductsfilerobjcontext.FilterOptions = [];
|
|
15565
|
-
} else {
|
|
15566
|
-
var _tempfetchproductsfil;
|
|
15567
|
-
var FilterExists = false;
|
|
15568
|
-
tempfetchproductsfilerobjcontext === null || tempfetchproductsfilerobjcontext === void 0 || (_tempfetchproductsfil = tempfetchproductsfilerobjcontext.FilterOptions) === null || _tempfetchproductsfil === void 0 || _tempfetchproductsfil.forEach(function (filteritem, filterindex) {
|
|
15569
|
-
if (filteritem.valueid == valueid) {
|
|
15570
|
-
FilterExists = true;
|
|
15571
|
-
tempfetchproductsfilerobjcontext.FilterOptions.splice(filterindex, 1);
|
|
15572
|
-
}
|
|
15573
|
-
});
|
|
15574
|
-
if (!FilterExists) {
|
|
15575
|
-
tempfetchproductsfilerobjcontext.FilterOptions.push({
|
|
15576
|
-
valueid: valueid
|
|
15577
|
-
});
|
|
15578
|
-
}
|
|
15579
|
-
}
|
|
15580
|
-
if (tempfetchproductsfilerobjcontext.FilterOptions.length == 0) {
|
|
15581
|
-
tempfetchproductsfilerobjcontext.isfilter = 0;
|
|
15582
|
-
} else {
|
|
15583
|
-
tempfetchproductsfilerobjcontext.isfilter = 1;
|
|
15584
|
-
}
|
|
15585
|
-
tempfetchproductsfilerobjcontext.page = 0;
|
|
15586
|
-
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15587
|
-
filterrouting(tempfetchproductsfilerobjcontext);
|
|
15588
|
-
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
15589
|
-
};
|
|
15590
|
-
var InstFilters = function InstFilters() {
|
|
15591
|
-
return /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
15592
|
-
allowMultipleExpanded: true,
|
|
15593
|
-
allowZeroExpanded: true
|
|
15594
|
-
}, instfilters.map(function (item, index) {
|
|
15595
|
-
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, {
|
|
15596
|
-
uuid: index
|
|
15597
|
-
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15598
|
-
className: filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '
|
|
15599
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15600
|
-
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
15601
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15602
|
-
className: langdetect == 'en' ? filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 ' : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
|
|
15603
|
-
}, langdetect == 'en' ? item.optionname : item.optionname_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15604
|
-
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
15605
|
-
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState, null, function (state) {
|
|
15606
|
-
if (state.expanded == true) {
|
|
15607
|
-
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15608
|
-
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
15609
|
-
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
15610
|
-
} else {
|
|
15611
|
-
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15612
|
-
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
15613
|
-
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
15614
|
-
}
|
|
15615
|
-
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
15616
|
-
className: "p-0"
|
|
15617
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15618
|
-
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
15619
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15620
|
-
className: 'col-lg-12'
|
|
15621
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15622
|
-
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
15623
|
-
}, item.productvaluesfilter.map(function (valueitem, valueindex) {
|
|
15624
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15625
|
-
className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(valueitem.isfilterselected ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n \n ") + ' d-flex align-items-start pb-3 ',
|
|
15626
|
-
onClick: function onClick() {
|
|
15627
|
-
setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
15628
|
-
}
|
|
15629
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15630
|
-
className: " ".concat(valueitem.isfilterselected ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' mb-2 d-flex align-items-center '
|
|
15631
|
-
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15632
|
-
className: "h-100 d-flex align-items-center"
|
|
15633
|
-
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15634
|
-
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
15635
|
-
}, item.optionname == 'Color' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15636
|
-
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
15637
|
-
style: {
|
|
15638
|
-
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
15639
|
-
}
|
|
15640
|
-
}, valueitem.value_identifier), item.optionname != 'Color' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15641
|
-
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
15642
|
-
style: {
|
|
15643
|
-
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
15644
|
-
}
|
|
15645
|
-
}, langdetect == 'en' ? valueitem.valuename : valueitem.valuename_ar)));
|
|
15646
|
-
})))))), /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
15647
|
-
className: "mt-3 mb-3"
|
|
15648
|
-
}));
|
|
15649
|
-
}));
|
|
15650
|
-
};
|
|
15651
|
-
var filter_cssstyles = {
|
|
15652
|
-
form_control: glamor.css((_css = {
|
|
15653
|
-
position: 'relative',
|
|
15654
|
-
display: 'flex',
|
|
15655
|
-
alignItems: 'center'
|
|
15656
|
-
}, _defineProperty__default["default"](_css, "display", 'block'), _defineProperty__default["default"](_css, "width", '100%'), _defineProperty__default["default"](_css, "padding", '0 30px'), _defineProperty__default["default"](_css, "transition", '.3s'), _defineProperty__default["default"](_css, "fontWeight", 500), _defineProperty__default["default"](_css, "border", '1px solid #ccc'), _defineProperty__default["default"](_css, "borderRadius", '5px'), _defineProperty__default["default"](_css, "height", '40px'), _defineProperty__default["default"](_css, "background", 'transparent'), _defineProperty__default["default"](_css, "color", '#000'), _defineProperty__default["default"](_css, "fontSize", '14px'), _defineProperty__default["default"](_css, ':focus', {
|
|
15657
|
-
// borderColor: sectionproperties.inputfeildbordercoloronfocus,
|
|
15658
|
-
borderColor: '#eac435',
|
|
15659
|
-
boxShadow: 'none'
|
|
15660
|
-
}), _css)),
|
|
15661
|
-
collapsetitle: glamor.css({
|
|
15662
|
-
fontSize: sectionproperties.filtertitle_fontsize + 'px',
|
|
15663
|
-
fontWeight: sectionproperties.filtertitle_fontweight,
|
|
15664
|
-
textTransform: sectionproperties.filtertitle_texttransform,
|
|
15665
|
-
color: sectionproperties.filtertitle_color,
|
|
15666
|
-
':hover': {
|
|
15667
|
-
color: sectionproperties.filtertitle_coloronhover
|
|
15668
|
-
}
|
|
15669
|
-
}),
|
|
15670
|
-
titlecontainer: glamor.css({
|
|
15671
|
-
color: sectionproperties.filtertitle_color,
|
|
15672
|
-
':hover .collapsetitle': {
|
|
15673
|
-
color: sectionproperties.filtertitle_coloronhover
|
|
15674
|
-
}
|
|
15675
|
-
}),
|
|
15676
|
-
timeline_text: glamor.css({
|
|
15677
|
-
fontSize: sectionproperties.timeline_text_fontsize + 'px',
|
|
15678
|
-
fontWeight: sectionproperties.timeline_text_fontweight,
|
|
15679
|
-
textTransform: sectionproperties.timeline_text_texttransform,
|
|
15680
|
-
color: sectionproperties.timeline_text_color,
|
|
15681
|
-
transition: '.3s',
|
|
15682
|
-
':hover': {
|
|
15683
|
-
color: sectionproperties.timeline_text_coloronhover
|
|
15684
|
-
}
|
|
15685
|
-
}),
|
|
15686
|
-
btnstyles: glamor.css({
|
|
15687
|
-
color: sectionproperties.generalbtn_textColor,
|
|
15688
|
-
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
15689
|
-
textTransform: sectionproperties.generalbtn_texttransform,
|
|
15690
|
-
width: sectionproperties.generalbtn_width + 'px',
|
|
15691
|
-
height: sectionproperties.generalbtn_height + 'px',
|
|
15692
|
-
background: sectionproperties.generalbtn_bgColor,
|
|
15693
|
-
borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
|
|
15694
|
-
borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
|
|
15695
|
-
borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
|
|
15696
|
-
borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
|
|
15697
|
-
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
15698
|
-
transition: '.3s',
|
|
15699
|
-
':hover': {
|
|
15700
|
-
background: sectionproperties.generalbtn_bgColoronhover,
|
|
15701
|
-
color: sectionproperties.generalbtn_textColoronhover
|
|
15702
|
-
}
|
|
15703
|
-
}),
|
|
15704
|
-
close_menu_icon_cont: glamor.css({
|
|
15705
|
-
background: sectionproperties.closeSliderBgColor,
|
|
15706
|
-
width: sectionproperties.closeSliderWidth + 'px',
|
|
15707
|
-
height: sectionproperties.closeSliderHeight + 'px',
|
|
15708
|
-
borderRadius: sectionproperties.closeSlider_borderBottomLeftRadius + 'px',
|
|
15709
|
-
':hover': {
|
|
15710
|
-
background: sectionproperties.closeSliderBgColorHover
|
|
15711
|
-
}
|
|
15712
|
-
}),
|
|
15713
|
-
horizontalfilter_card: glamor.css({
|
|
15714
|
-
marginBottom: sectionproperties.horizontalfilter_mb + 'px',
|
|
15715
|
-
marginTop: sectionproperties.horizontalfilter_mt + 'px',
|
|
15716
|
-
background: sectionproperties.horizontalfilter_cardbg,
|
|
15717
|
-
border: sectionproperties.horizontalfilter_cardborderwidth + 'px solid ' + sectionproperties.horizontalfilter_cardbordercolor,
|
|
15718
|
-
boxShadow: sectionproperties.horizontalfilter_cardboxShadow == 'Show' ? sectionproperties.horizontalfilter_cardboxShadowcolor : 'horizontalfilter_cardboxShadow'
|
|
15719
|
-
}),
|
|
15720
|
-
btn_item: glamor.css({
|
|
15721
|
-
width: '20px',
|
|
15722
|
-
height: '20px',
|
|
15723
|
-
background: sectionproperties.filteritembtn_bgcolor,
|
|
15724
|
-
':hover': {
|
|
15725
|
-
background: sectionproperties.filteritembtn_bghover
|
|
15726
|
-
}
|
|
15727
|
-
}),
|
|
15728
|
-
btn_item_active: glamor.css({
|
|
15729
|
-
background: sectionproperties.btn_item_activebgcolor
|
|
15730
|
-
}),
|
|
15731
|
-
timelineinnercont_active: glamor.css({
|
|
15732
|
-
fontWeight: sectionproperties.activecat_fontweight,
|
|
15733
|
-
color: sectionproperties.activecat_color
|
|
15734
|
-
}),
|
|
15735
|
-
categoryName: glamor.css({
|
|
15736
|
-
color: sectionproperties.filtertitle_color,
|
|
15737
|
-
fontWeight: sectionproperties.filterCatFontWeight,
|
|
15738
|
-
fontSize: sectionproperties.filterCatFontSize + 'px'
|
|
15739
|
-
}),
|
|
15740
|
-
pCollectionName: glamor.css({
|
|
15741
|
-
color: sectionproperties.filtertitle_color,
|
|
15742
|
-
fontWeight: sectionproperties.filterPCollFontWeight,
|
|
15743
|
-
fontSize: sectionproperties.filterPCollFontSize + 'px'
|
|
15744
|
-
}),
|
|
15745
|
-
explorebtn: glamor.css({
|
|
15746
|
-
fontSize: sectionproperties.explorebtnfontsize + 'px',
|
|
15747
|
-
fontWeight: 600,
|
|
15748
|
-
color: sectionproperties.explorebtncolor,
|
|
15749
|
-
transition: '.3s',
|
|
15750
|
-
':hover': {
|
|
15751
|
-
color: sectionproperties.explorebtncoloronhover
|
|
15752
|
-
}
|
|
15753
|
-
}),
|
|
15754
|
-
showallbtn: glamor.css({
|
|
15755
|
-
color: sectionproperties.showallcolor,
|
|
15756
|
-
':hover': {
|
|
15757
|
-
transition: '.3s',
|
|
15758
|
-
cursor: 'pointer',
|
|
15759
|
-
color: sectionproperties.showallcolorhover
|
|
15760
|
-
}
|
|
15761
|
-
}),
|
|
15762
|
-
sectiontitle: glamor.css({
|
|
15763
|
-
position: 'relative',
|
|
15764
|
-
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
|
|
15765
|
-
width: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '100%' : '',
|
|
15766
|
-
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
15767
|
-
'@media (max-width: 800px)': {
|
|
15768
|
-
fontSize: sectionproperties.sectionTitleFontSizeresp + 'px'
|
|
15769
|
-
}
|
|
15770
|
-
})
|
|
15771
|
-
};
|
|
15772
|
-
var filterrouting = function filterrouting(tempfetchproductsfilerobjcontext) {
|
|
15773
|
-
var path = window.location.pathname.split('/');
|
|
15774
|
-
var currentpagepath = path[1];
|
|
15775
|
-
var pagenamepathinstaticpagelinkcont = '';
|
|
15776
|
-
for (var key in StaticPagesLinksContext) {
|
|
15777
|
-
if (StaticPagesLinksContext[key] == currentpagepath) {
|
|
15778
|
-
pagenamepathinstaticpagelinkcont = key;
|
|
15779
|
-
}
|
|
15378
|
+
}, DynamicFilter()), sectionproperties.showvariantsfilter == 'Show' && InstFilters()))))))), props.typeprops == 'vertical' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15379
|
+
className: 'col-lg-12 p-0 w-100 filter mt-md-0 d-md-none'
|
|
15380
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15381
|
+
className: "".concat(filterstyles.filterslider_container) + ' pb-md-5 ',
|
|
15382
|
+
id: "filterslider",
|
|
15383
|
+
style: {
|
|
15384
|
+
background: sectionproperties.filter_backgroundcolor,
|
|
15385
|
+
borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px'
|
|
15780
15386
|
}
|
|
15781
|
-
|
|
15782
|
-
|
|
15387
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15388
|
+
className: filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '
|
|
15389
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15390
|
+
className: "col-lg-9 col-md-9 col-sm-9 d-none align-items-center d-md-flex"
|
|
15391
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15392
|
+
className: "m-0 p-0 font-16 font-weight-600",
|
|
15393
|
+
style: {
|
|
15394
|
+
color: sectionproperties.filter_titlecolor,
|
|
15395
|
+
fontSize: sectionproperties.filter_titlefontsize + 'px',
|
|
15396
|
+
fontWeight: sectionproperties.filter_titlefontweight,
|
|
15397
|
+
textTransform: sectionproperties.filter_titletextransform
|
|
15783
15398
|
}
|
|
15784
|
-
}
|
|
15785
|
-
|
|
15786
|
-
|
|
15787
|
-
|
|
15788
|
-
|
|
15789
|
-
|
|
15790
|
-
|
|
15791
|
-
|
|
15792
|
-
|
|
15793
|
-
|
|
15794
|
-
|
|
15795
|
-
|
|
15796
|
-
// temp = queryParameters.get('sortprice');
|
|
15797
|
-
// alert(temp);
|
|
15798
|
-
// }
|
|
15799
|
-
// }, []);
|
|
15800
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15801
|
-
className: sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 p-0 w-100 filter mt-md-0 ' : 'col-lg-12 p-0 w-100 filter mt-md-0 d-md-none',
|
|
15399
|
+
}, langdetect == 'en' ? 'Filter' : 'فلترة')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15400
|
+
className: "col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0"
|
|
15401
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15402
|
+
className: "".concat(filterstyles.close_menu_icon_cont, " ").concat(filter_cssstyles.close_menu_icon_cont) + ' d-none d-md-flex align-items-center justify-content-center ',
|
|
15403
|
+
onClick: function onClick() {
|
|
15404
|
+
var element = document.getElementById('filterslider');
|
|
15405
|
+
element.classList.remove(filterstyles.filterslider_container_opened);
|
|
15406
|
+
}
|
|
15407
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15408
|
+
className: "h-100 d-flex align-items-center justify-content-center"
|
|
15409
|
+
}, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, {
|
|
15410
|
+
size: sectionproperties.closeSlider_fontSize,
|
|
15802
15411
|
style: {
|
|
15803
|
-
|
|
15804
|
-
|
|
15412
|
+
color: sectionproperties.closeSlider_color
|
|
15413
|
+
}
|
|
15414
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15415
|
+
className: filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 pl-4 pr-4 '
|
|
15416
|
+
}, sectionproperties.showcountriesfilter == 'Show' && Countriesfilter(), sectionproperties.showvariantsfilter == 'Show' && InstFilters(), sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15417
|
+
"class": "row m-0 w-100 mb-3"
|
|
15418
|
+
}, CategoriesFilter()), sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15419
|
+
"class": "row m-0 w-100 mb-3"
|
|
15420
|
+
}, CollectionsFilter()), sectionproperties.showdynamicfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15421
|
+
"class": "row m-0 w-100 mb-3"
|
|
15422
|
+
}, DynamicFilter())))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15423
|
+
className: "col-lg-12"
|
|
15424
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas, {
|
|
15425
|
+
show: props === null || props === void 0 ? void 0 : props.openFilterSlider,
|
|
15426
|
+
onHide: function onHide() {
|
|
15427
|
+
props.setopenFilterSlider(false);
|
|
15428
|
+
},
|
|
15429
|
+
placement: "end",
|
|
15430
|
+
scroll: true,
|
|
15431
|
+
style: {
|
|
15432
|
+
minWidth: '200px',
|
|
15433
|
+
background: sectionproperties.filter_backgroundcolor,
|
|
15434
|
+
borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px'
|
|
15435
|
+
},
|
|
15436
|
+
backdrop: true
|
|
15437
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Header, null, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Title, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15438
|
+
className: "row m-0 w-100 mt-2"
|
|
15439
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15440
|
+
className: "col-lg-9 col-md-9 col-sm-9 d-none align-items-center d-md-flex"
|
|
15441
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15442
|
+
className: "m-0 p-0 font-16 font-weight-600",
|
|
15443
|
+
style: {
|
|
15444
|
+
color: sectionproperties.filter_titlecolor,
|
|
15445
|
+
fontSize: sectionproperties.filter_titlefontsize + 'px',
|
|
15446
|
+
fontWeight: sectionproperties.filter_titlefontweight,
|
|
15447
|
+
textTransform: sectionproperties.filter_titletextransform
|
|
15448
|
+
}
|
|
15449
|
+
}, langdetect == 'en' ? 'Filter' : 'فلترة')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15450
|
+
className: "col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0"
|
|
15451
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15452
|
+
className: "".concat(filterstyles.close_menu_icon_cont, " ").concat(filter_cssstyles.close_menu_icon_cont) + ' d-none d-md-flex align-items-center justify-content-center ',
|
|
15453
|
+
onClick: function onClick() {
|
|
15454
|
+
props.setopenFilterSlider(false);
|
|
15455
|
+
}
|
|
15456
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15457
|
+
className: "h-100 d-flex align-items-center justify-content-center"
|
|
15458
|
+
}, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, {
|
|
15459
|
+
size: sectionproperties.closeSlider_fontSize,
|
|
15460
|
+
style: {
|
|
15461
|
+
color: sectionproperties.closeSlider_color
|
|
15805
15462
|
}
|
|
15806
|
-
},
|
|
15463
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15464
|
+
"class": "col-lg-12"
|
|
15465
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
15466
|
+
"class": "mt-2 mb-2"
|
|
15467
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15468
|
+
className: ' pb-md-5 ',
|
|
15469
|
+
style: {
|
|
15470
|
+
background: sectionproperties.filter_backgroundcolor,
|
|
15471
|
+
borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px'
|
|
15472
|
+
}
|
|
15473
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15474
|
+
className: filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '
|
|
15475
|
+
}, sectionproperties.otherfilters == 'Show' && otherfilters.map(function (item, index) {
|
|
15476
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
15477
|
+
allowMultipleExpanded: true,
|
|
15478
|
+
allowZeroExpanded: true,
|
|
15479
|
+
preExpanded: [0, 1, 2, 3],
|
|
15480
|
+
style: {
|
|
15481
|
+
width: '100%'
|
|
15482
|
+
}
|
|
15483
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, {
|
|
15484
|
+
uuid: index
|
|
15485
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15486
|
+
className: filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '
|
|
15487
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15488
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
15489
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15490
|
+
className: langdetect == 'en' ? filter_cssstyles.collapsetitle + ' m-0 p-0 ' : filter_cssstyles.collapsetitle + ' m-0 p-0 text-right'
|
|
15491
|
+
}, item.name)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15492
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
15493
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState, null, function (state) {
|
|
15494
|
+
if (state.expanded == true) {
|
|
15495
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15496
|
+
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15497
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
15498
|
+
} else {
|
|
15499
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15500
|
+
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15501
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
15502
|
+
}
|
|
15503
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
15504
|
+
className: "p-0"
|
|
15505
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15506
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex"
|
|
15507
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15508
|
+
className: 'col-lg-12'
|
|
15509
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15510
|
+
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
15511
|
+
}, item.filterarray.map(function (valueitem, valueindex) {
|
|
15512
|
+
var ischecked = false;
|
|
15513
|
+
if (item.payloadvalue == 'sortprice') {
|
|
15514
|
+
if (valueitem.value == ProductFilterObjContext.sortprice) {
|
|
15515
|
+
ischecked = true;
|
|
15516
|
+
}
|
|
15517
|
+
} else if (item.payloadvalue == 'sortdates') {
|
|
15518
|
+
if (valueitem.value == ProductFilterObjContext.sortdates) {
|
|
15519
|
+
ischecked = true;
|
|
15520
|
+
}
|
|
15521
|
+
}
|
|
15522
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15523
|
+
className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(ischecked ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n \n ") + ' d-flex align-items-start pb-3 ',
|
|
15524
|
+
onClick: function onClick() {
|
|
15525
|
+
// setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
15526
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15527
|
+
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
15528
|
+
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
15529
|
+
} else {
|
|
15530
|
+
tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
|
|
15531
|
+
}
|
|
15532
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15533
|
+
}
|
|
15534
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15535
|
+
className: " ".concat(ischecked ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' mb-2 d-flex align-items-center '
|
|
15536
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15537
|
+
className: "h-100 d-flex align-items-center"
|
|
15538
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15539
|
+
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
15540
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15541
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
15542
|
+
style: {
|
|
15543
|
+
color: ischecked ? sectionproperties.activecat_color : ''
|
|
15544
|
+
}
|
|
15545
|
+
}, valueitem.name)));
|
|
15546
|
+
}))))))));
|
|
15547
|
+
}), sectionproperties.otherfilters == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15548
|
+
className: "col-lg-12"
|
|
15549
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
15550
|
+
className: "mt-2 mb-3"
|
|
15551
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15552
|
+
className: filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 '
|
|
15553
|
+
}, sectionproperties.showcountriesfilter == 'Show' && Countriesfilter(), sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15554
|
+
"class": "row m-0 w-100"
|
|
15555
|
+
}, CategoriesFilter()), sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15556
|
+
"class": "row m-0 w-100"
|
|
15557
|
+
}, CollectionsFilter()), sectionproperties.showdynamicfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15558
|
+
"class": "row m-0 w-100"
|
|
15559
|
+
}, DynamicFilter()), sectionproperties.showvariantsfilter == 'Show' && InstFilters()))))))));
|
|
15807
15560
|
};
|
|
15808
15561
|
|
|
15809
15562
|
function ownKeys$28(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -17381,19 +17134,21 @@
|
|
|
17381
17134
|
}
|
|
17382
17135
|
}, plainString(show_product_group_titles()['description_en']))), sectionproperties.showFilter == 'show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17383
17136
|
className: sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 d-flex p-0' : sectionproperties.numofcols == '2' ? 'col-lg-2 d-flex' : 'col-lg-3 d-flex'
|
|
17384
|
-
}, /*#__PURE__*/React__default["default"].createElement(Filter$
|
|
17137
|
+
}, /*#__PURE__*/React__default["default"].createElement(Filter$1, {
|
|
17385
17138
|
sectionpropertiesprops: sectionproperties,
|
|
17386
17139
|
actions: actions,
|
|
17387
17140
|
openFilterSlider: openFilterSlider,
|
|
17388
17141
|
setopenFilterSlider: setopenFilterSlider,
|
|
17389
17142
|
show_product_group_titles: show_product_group_titles
|
|
17390
17143
|
})), sectionproperties.showvariantfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17391
|
-
className: 'col-lg-
|
|
17144
|
+
className: sectionproperties.numofcols == '2' ? 'col-lg-2 d-flex' : 'col-lg-3 d-flex'
|
|
17392
17145
|
}, /*#__PURE__*/React__default["default"].createElement(Filter$1, {
|
|
17393
17146
|
sectionpropertiesprops: sectionproperties,
|
|
17394
17147
|
actions: actions,
|
|
17395
17148
|
openFilterSlider: openFilterSlider,
|
|
17396
|
-
setopenFilterSlider: setopenFilterSlider
|
|
17149
|
+
setopenFilterSlider: setopenFilterSlider,
|
|
17150
|
+
show_product_group_titles: show_product_group_titles,
|
|
17151
|
+
typeprops: 'vertical'
|
|
17397
17152
|
})), fetchingtype == 'custom' && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, cardsrender()), fetchingtype != 'custom' && cardsrender()));
|
|
17398
17153
|
};
|
|
17399
17154
|
|