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.esm.js
CHANGED
|
@@ -630,8 +630,8 @@ var Imagekitimagecomp = function Imagekitimagecomp(props) {
|
|
|
630
630
|
}));
|
|
631
631
|
};
|
|
632
632
|
|
|
633
|
-
function ownKeys$
|
|
634
|
-
function _objectSpread$
|
|
633
|
+
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; }
|
|
634
|
+
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(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; }
|
|
635
635
|
var Login = function Login(props) {
|
|
636
636
|
var _css;
|
|
637
637
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -707,7 +707,7 @@ var Login = function Login(props) {
|
|
|
707
707
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
708
708
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
709
709
|
});
|
|
710
|
-
setsectionproperties(_objectSpread$
|
|
710
|
+
setsectionproperties(_objectSpread$2v({}, secpropobj));
|
|
711
711
|
}
|
|
712
712
|
}, [StatePagePropertiesContext]);
|
|
713
713
|
useEffect(function () {
|
|
@@ -874,9 +874,9 @@ var Login = function Login(props) {
|
|
|
874
874
|
className: "".concat(loginstyles2.form_control),
|
|
875
875
|
value: payloadobj.email,
|
|
876
876
|
onChange: function onChange(event) {
|
|
877
|
-
var temppayloadobj = _objectSpread$
|
|
877
|
+
var temppayloadobj = _objectSpread$2v({}, payloadobj);
|
|
878
878
|
temppayloadobj.email = event.target.value;
|
|
879
|
-
setpayloadobj(_objectSpread$
|
|
879
|
+
setpayloadobj(_objectSpread$2v({}, temppayloadobj));
|
|
880
880
|
},
|
|
881
881
|
style: {
|
|
882
882
|
background: sectionproperties.input_bgcolor
|
|
@@ -898,9 +898,9 @@ var Login = function Login(props) {
|
|
|
898
898
|
textplaceholder: "",
|
|
899
899
|
value: payloadobj.password,
|
|
900
900
|
onChange: function onChange(event) {
|
|
901
|
-
var temppayloadobj = _objectSpread$
|
|
901
|
+
var temppayloadobj = _objectSpread$2v({}, payloadobj);
|
|
902
902
|
temppayloadobj.password = event.target.value;
|
|
903
|
-
setpayloadobj(_objectSpread$
|
|
903
|
+
setpayloadobj(_objectSpread$2v({}, temppayloadobj));
|
|
904
904
|
},
|
|
905
905
|
style: {
|
|
906
906
|
background: sectionproperties.input_bgcolor
|
|
@@ -1077,9 +1077,9 @@ var Login = function Login(props) {
|
|
|
1077
1077
|
className: "".concat(loginstyles2.form_control),
|
|
1078
1078
|
value: forgotpasswordpayload.email,
|
|
1079
1079
|
onChange: function onChange(event) {
|
|
1080
|
-
var temppayloadobj = _objectSpread$
|
|
1080
|
+
var temppayloadobj = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1081
1081
|
temppayloadobj.email = event.target.value;
|
|
1082
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1082
|
+
setforgotpasswordpayload(_objectSpread$2v({}, temppayloadobj));
|
|
1083
1083
|
},
|
|
1084
1084
|
disabled: forgetpasswordstage == 'verify' ? true : false,
|
|
1085
1085
|
style: {
|
|
@@ -1094,9 +1094,9 @@ var Login = function Login(props) {
|
|
|
1094
1094
|
className: "".concat(loginstyles2.form_control),
|
|
1095
1095
|
value: forgotpasswordpayload.code,
|
|
1096
1096
|
onChange: function onChange(event) {
|
|
1097
|
-
var temppayloadobj = _objectSpread$
|
|
1097
|
+
var temppayloadobj = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1098
1098
|
temppayloadobj.code = event.target.value;
|
|
1099
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1099
|
+
setforgotpasswordpayload(_objectSpread$2v({}, temppayloadobj));
|
|
1100
1100
|
},
|
|
1101
1101
|
style: {
|
|
1102
1102
|
background: sectionproperties.input_bgcolor
|
|
@@ -1110,9 +1110,9 @@ var Login = function Login(props) {
|
|
|
1110
1110
|
className: "".concat(loginstyles2.form_control),
|
|
1111
1111
|
value: forgotpasswordpayload.newpassword,
|
|
1112
1112
|
onChange: function onChange(event) {
|
|
1113
|
-
var temppayloadobj = _objectSpread$
|
|
1113
|
+
var temppayloadobj = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1114
1114
|
temppayloadobj.newpassword = event.target.value;
|
|
1115
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1115
|
+
setforgotpasswordpayload(_objectSpread$2v({}, temppayloadobj));
|
|
1116
1116
|
},
|
|
1117
1117
|
style: {
|
|
1118
1118
|
background: sectionproperties.input_bgcolor
|
|
@@ -1126,9 +1126,9 @@ var Login = function Login(props) {
|
|
|
1126
1126
|
className: "".concat(loginstyles2.form_control),
|
|
1127
1127
|
value: forgotpasswordpayload.confirmnewpassword,
|
|
1128
1128
|
onChange: function onChange(event) {
|
|
1129
|
-
var temppayloadobj = _objectSpread$
|
|
1129
|
+
var temppayloadobj = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1130
1130
|
temppayloadobj.confirmnewpassword = event.target.value;
|
|
1131
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1131
|
+
setforgotpasswordpayload(_objectSpread$2v({}, temppayloadobj));
|
|
1132
1132
|
},
|
|
1133
1133
|
style: {
|
|
1134
1134
|
background: sectionproperties.input_bgcolor
|
|
@@ -1140,7 +1140,7 @@ var Login = function Login(props) {
|
|
|
1140
1140
|
onClick: function onClick() {
|
|
1141
1141
|
if (forgotpasswordpayload.email.length != 0) {
|
|
1142
1142
|
var runfunc = false;
|
|
1143
|
-
var tempforgotpasswordpayload = _objectSpread$
|
|
1143
|
+
var tempforgotpasswordpayload = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1144
1144
|
tempforgotpasswordpayload.functype = forgetpasswordstage;
|
|
1145
1145
|
if (forgetpasswordstage == 'verify') {
|
|
1146
1146
|
if (tempforgotpasswordpayload.newpassword.length != 0 && tempforgotpasswordpayload.code.length != 0) {
|
|
@@ -1191,11 +1191,11 @@ var css_248z$J = "@media screen and (max-width: 800px) {\n .signup-module_rig
|
|
|
1191
1191
|
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"};
|
|
1192
1192
|
styleInject(css_248z$J);
|
|
1193
1193
|
|
|
1194
|
-
function ownKeys$
|
|
1195
|
-
function _objectSpread$
|
|
1194
|
+
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; }
|
|
1195
|
+
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(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; }
|
|
1196
1196
|
var selectcustomStyles = {
|
|
1197
1197
|
option: function option(provided, state) {
|
|
1198
|
-
return _objectSpread$
|
|
1198
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1199
1199
|
borderBottom: '1px solid #e6e6e6',
|
|
1200
1200
|
backgroundColor: state.isSelected ? '' : '',
|
|
1201
1201
|
padding: 5,
|
|
@@ -1224,7 +1224,7 @@ var selectcustomStyles = {
|
|
|
1224
1224
|
};
|
|
1225
1225
|
var selectcustomStylesTranslated = {
|
|
1226
1226
|
option: function option(provided, state) {
|
|
1227
|
-
return _objectSpread$
|
|
1227
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1228
1228
|
borderBottom: '1px solid #e6e6e6',
|
|
1229
1229
|
backgroundColor: state.isSelected ? '' : '',
|
|
1230
1230
|
padding: 5,
|
|
@@ -1253,14 +1253,14 @@ var selectcustomStylesTranslated = {
|
|
|
1253
1253
|
};
|
|
1254
1254
|
},
|
|
1255
1255
|
placeholder: function placeholder(provided, state) {
|
|
1256
|
-
return _objectSpread$
|
|
1256
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1257
1257
|
textAlign: 'right'
|
|
1258
1258
|
});
|
|
1259
1259
|
}
|
|
1260
1260
|
};
|
|
1261
1261
|
var defaultstyles = {
|
|
1262
1262
|
option: function option(provided, state) {
|
|
1263
|
-
return _objectSpread$
|
|
1263
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1264
1264
|
borderBottom: '1px solid #e6e6e6',
|
|
1265
1265
|
backgroundColor: state.isSelected ? '' : '',
|
|
1266
1266
|
padding: 5,
|
|
@@ -1288,7 +1288,7 @@ var defaultstyles = {
|
|
|
1288
1288
|
}), _ref;
|
|
1289
1289
|
},
|
|
1290
1290
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1291
|
-
return _objectSpread$
|
|
1291
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1292
1292
|
'&:hover': {
|
|
1293
1293
|
// color: '#eac435',
|
|
1294
1294
|
}
|
|
@@ -1297,7 +1297,7 @@ var defaultstyles = {
|
|
|
1297
1297
|
};
|
|
1298
1298
|
var defaultstylestranslated = {
|
|
1299
1299
|
option: function option(provided, state) {
|
|
1300
|
-
return _objectSpread$
|
|
1300
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1301
1301
|
borderBottom: '1px solid #e6e6e6',
|
|
1302
1302
|
backgroundColor: state.isSelected ? '' : '',
|
|
1303
1303
|
padding: 5,
|
|
@@ -1328,21 +1328,21 @@ var defaultstylestranslated = {
|
|
|
1328
1328
|
};
|
|
1329
1329
|
},
|
|
1330
1330
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1331
|
-
return _objectSpread$
|
|
1331
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1332
1332
|
'&:hover': {
|
|
1333
1333
|
// color: '#eac435',
|
|
1334
1334
|
}
|
|
1335
1335
|
});
|
|
1336
1336
|
},
|
|
1337
1337
|
placeholder: function placeholder(provided, state) {
|
|
1338
|
-
return _objectSpread$
|
|
1338
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1339
1339
|
textAlign: 'right'
|
|
1340
1340
|
});
|
|
1341
1341
|
}
|
|
1342
1342
|
};
|
|
1343
1343
|
var defaultstylesnone = {
|
|
1344
1344
|
option: function option(provided, state) {
|
|
1345
|
-
return _objectSpread$
|
|
1345
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1346
1346
|
borderBottom: '1px solid #e6e6e6',
|
|
1347
1347
|
backgroundColor: state.isSelected ? '' : '',
|
|
1348
1348
|
padding: 5,
|
|
@@ -1370,7 +1370,7 @@ var defaultstylesnone = {
|
|
|
1370
1370
|
};
|
|
1371
1371
|
},
|
|
1372
1372
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1373
|
-
return _objectSpread$
|
|
1373
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1374
1374
|
'&:hover': {
|
|
1375
1375
|
// color: '#eac435',
|
|
1376
1376
|
}
|
|
@@ -1963,8 +1963,8 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
1963
1963
|
}, 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))))));
|
|
1964
1964
|
};
|
|
1965
1965
|
|
|
1966
|
-
function ownKeys$
|
|
1967
|
-
function _objectSpread$
|
|
1966
|
+
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; }
|
|
1967
|
+
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(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; }
|
|
1968
1968
|
var ProductExtraFields = function ProductExtraFields(props) {
|
|
1969
1969
|
var _fetchProductInfoQuer, _css, _fetchProductInfoQuer2;
|
|
1970
1970
|
props.actions.lang;
|
|
@@ -2019,9 +2019,9 @@ var ProductExtraFields = function ProductExtraFields(props) {
|
|
|
2019
2019
|
});
|
|
2020
2020
|
}
|
|
2021
2021
|
setproductextravaluesarray(_toConsumableArray(tempproductextravaluesarray));
|
|
2022
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2022
|
+
var tempaddtocardpayloadobj = _objectSpread$2t({}, addtocardpayloadobj);
|
|
2023
2023
|
tempaddtocardpayloadobj.extrafields = tempproductextravaluesarray;
|
|
2024
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2024
|
+
setaddtocardpayloadobj(_objectSpread$2t({}, tempaddtocardpayloadobj));
|
|
2025
2025
|
};
|
|
2026
2026
|
var formstyles = {
|
|
2027
2027
|
input_label_name: css({
|
|
@@ -2236,8 +2236,8 @@ var DescriptionContent = function DescriptionContent(props) {
|
|
|
2236
2236
|
})))));
|
|
2237
2237
|
};
|
|
2238
2238
|
|
|
2239
|
-
function ownKeys$
|
|
2240
|
-
function _objectSpread$
|
|
2239
|
+
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; }
|
|
2240
|
+
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(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; }
|
|
2241
2241
|
var Product_itemtype = function Product_itemtype(props) {
|
|
2242
2242
|
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;
|
|
2243
2243
|
var lang = props.actions.lang;
|
|
@@ -2797,11 +2797,11 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2797
2797
|
}, sectionproperties.quantitybtneditable == 'No' && /*#__PURE__*/React.createElement("span", {
|
|
2798
2798
|
className: "".concat(productinfo_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
2799
2799
|
onClick: function onClick() {
|
|
2800
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2800
|
+
var tempaddtocardpayloadobj = _objectSpread$2s({}, addtocardpayloadobj);
|
|
2801
2801
|
if (tempaddtocardpayloadobj.quantity > 0) {
|
|
2802
2802
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity - 1;
|
|
2803
2803
|
}
|
|
2804
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2804
|
+
setaddtocardpayloadobj(_objectSpread$2s({}, tempaddtocardpayloadobj));
|
|
2805
2805
|
}
|
|
2806
2806
|
}, /*#__PURE__*/React.createElement("i", {
|
|
2807
2807
|
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-down' : 'h-100 allcentered',
|
|
@@ -2815,9 +2815,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2815
2815
|
}, addtocardpayloadobj.quantity), sectionproperties.quantitybtneditable == 'No' && /*#__PURE__*/React.createElement("span", {
|
|
2816
2816
|
className: "".concat(productinfo_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
2817
2817
|
onClick: function onClick() {
|
|
2818
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2818
|
+
var tempaddtocardpayloadobj = _objectSpread$2s({}, addtocardpayloadobj);
|
|
2819
2819
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + 1;
|
|
2820
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2820
|
+
setaddtocardpayloadobj(_objectSpread$2s({}, tempaddtocardpayloadobj));
|
|
2821
2821
|
}
|
|
2822
2822
|
}, /*#__PURE__*/React.createElement("i", {
|
|
2823
2823
|
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-up' : 'h-100 allcentered'
|
|
@@ -2842,13 +2842,13 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2842
2842
|
value: addtocardpayloadobj.quantity,
|
|
2843
2843
|
onChange: function onChange(event) {
|
|
2844
2844
|
if (event.target.value == NaN || event.target.value == undefined || event.target.value == null || event.target.value == '') {
|
|
2845
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2845
|
+
var tempaddtocardpayloadobj = _objectSpread$2s({}, addtocardpayloadobj);
|
|
2846
2846
|
tempaddtocardpayloadobj.quantity = 1;
|
|
2847
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2847
|
+
setaddtocardpayloadobj(_objectSpread$2s({}, tempaddtocardpayloadobj));
|
|
2848
2848
|
} else {
|
|
2849
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2849
|
+
var tempaddtocardpayloadobj = _objectSpread$2s({}, addtocardpayloadobj);
|
|
2850
2850
|
tempaddtocardpayloadobj.quantity = parseInt(event.target.value);
|
|
2851
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2851
|
+
setaddtocardpayloadobj(_objectSpread$2s({}, tempaddtocardpayloadobj));
|
|
2852
2852
|
}
|
|
2853
2853
|
}
|
|
2854
2854
|
})), 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.createElement("button", {
|
|
@@ -3364,8 +3364,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3364
3364
|
}, ShareButtonsContainer()))))))));
|
|
3365
3365
|
};
|
|
3366
3366
|
|
|
3367
|
-
function ownKeys$
|
|
3368
|
-
function _objectSpread$
|
|
3367
|
+
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; }
|
|
3368
|
+
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(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; }
|
|
3369
3369
|
var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
3370
3370
|
var _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer17, _fetchProductInfoQuer18;
|
|
3371
3371
|
var langdetect = props.actions.langdetect;
|
|
@@ -3406,7 +3406,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3406
3406
|
slots = _useState6[0],
|
|
3407
3407
|
setslots = _useState6[1];
|
|
3408
3408
|
useEffect(function () {
|
|
3409
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3409
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3410
3410
|
item_type: 'service'
|
|
3411
3411
|
}));
|
|
3412
3412
|
}, [tabsarray]);
|
|
@@ -3418,16 +3418,16 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3418
3418
|
if (diffDays.toString() != 'NaN') {
|
|
3419
3419
|
if (date2 <= date1) {
|
|
3420
3420
|
NotificationManager.warning('', 'Please choose another date.');
|
|
3421
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3421
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3422
3422
|
quantity: 0
|
|
3423
3423
|
}));
|
|
3424
3424
|
} else {
|
|
3425
3425
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= diffDays && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= diffDays) {
|
|
3426
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3426
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3427
3427
|
quantity: diffDays
|
|
3428
3428
|
}));
|
|
3429
3429
|
} else {
|
|
3430
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3430
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3431
3431
|
quantity: 0
|
|
3432
3432
|
}));
|
|
3433
3433
|
NotificationManager.warning('', 'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
|
|
@@ -3641,7 +3641,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3641
3641
|
});
|
|
3642
3642
|
if (reservedslotArrtobetaken.length != 0) {
|
|
3643
3643
|
reservedslottobetaken = reservedslotArrtobetaken[0].slot;
|
|
3644
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3644
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3645
3645
|
time: reservedslottobetaken,
|
|
3646
3646
|
reserved_slots: reservedslotArrtobetaken,
|
|
3647
3647
|
quantity: parseInt(reservedslotArrtobetaken.length)
|
|
@@ -3700,7 +3700,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3700
3700
|
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,
|
|
3701
3701
|
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,
|
|
3702
3702
|
onChange: function onChange(event) {
|
|
3703
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3703
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3704
3704
|
from: event.target.value
|
|
3705
3705
|
}));
|
|
3706
3706
|
}
|
|
@@ -3720,7 +3720,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3720
3720
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
3721
3721
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
3722
3722
|
onChange: function onChange(event) {
|
|
3723
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3723
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3724
3724
|
to: event.target.value
|
|
3725
3725
|
}));
|
|
3726
3726
|
}
|
|
@@ -3740,7 +3740,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3740
3740
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
3741
3741
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
3742
3742
|
onChange: function onChange(event) {
|
|
3743
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3743
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3744
3744
|
date: event.target.value
|
|
3745
3745
|
}));
|
|
3746
3746
|
setcurrentmutatestate('/fetchserviceslots');
|
|
@@ -3799,7 +3799,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3799
3799
|
}, /*#__PURE__*/React.createElement("button", {
|
|
3800
3800
|
"class": TabsStyles.booknow_btn_resp + ' allcentered ',
|
|
3801
3801
|
onClick: function onClick() {
|
|
3802
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3802
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3803
3803
|
time: item.slot
|
|
3804
3804
|
}));
|
|
3805
3805
|
}
|
|
@@ -4577,8 +4577,8 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
4577
4577
|
}, StoreInfoprops()))));
|
|
4578
4578
|
};
|
|
4579
4579
|
|
|
4580
|
-
function ownKeys$
|
|
4581
|
-
function _objectSpread$
|
|
4580
|
+
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; }
|
|
4581
|
+
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(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; }
|
|
4582
4582
|
var AddReview = function AddReview(props) {
|
|
4583
4583
|
var _css;
|
|
4584
4584
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -4630,7 +4630,7 @@ var AddReview = function AddReview(props) {
|
|
|
4630
4630
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
4631
4631
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
4632
4632
|
});
|
|
4633
|
-
setsectionproperties(_objectSpread$
|
|
4633
|
+
setsectionproperties(_objectSpread$2q({}, secpropobj));
|
|
4634
4634
|
}
|
|
4635
4635
|
}, [StatePagePropertiesContext]);
|
|
4636
4636
|
useEffect(function () {
|
|
@@ -4639,7 +4639,7 @@ var AddReview = function AddReview(props) {
|
|
|
4639
4639
|
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) {
|
|
4640
4640
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
4641
4641
|
});
|
|
4642
|
-
setsectionproperties(_objectSpread$
|
|
4642
|
+
setsectionproperties(_objectSpread$2q({}, secpropobj));
|
|
4643
4643
|
}, [pageindexcontext]);
|
|
4644
4644
|
var reviewstyles = {
|
|
4645
4645
|
submitreviewbtn: css({
|
|
@@ -4765,9 +4765,9 @@ var AddReview = function AddReview(props) {
|
|
|
4765
4765
|
}),
|
|
4766
4766
|
activeColor: "#ffd700",
|
|
4767
4767
|
onChange: function onChange(event) {
|
|
4768
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
4768
|
+
var tempreviewpayloadobj = _objectSpread$2q({}, reviewpayloadobj);
|
|
4769
4769
|
tempreviewpayloadobj.reviewrate = event;
|
|
4770
|
-
setreviewpayloadobj(_objectSpread$
|
|
4770
|
+
setreviewpayloadobj(_objectSpread$2q({}, tempreviewpayloadobj));
|
|
4771
4771
|
}
|
|
4772
4772
|
})))))), /*#__PURE__*/React.createElement("div", {
|
|
4773
4773
|
"class": "col-lg-12"
|
|
@@ -4781,9 +4781,9 @@ var AddReview = function AddReview(props) {
|
|
|
4781
4781
|
"class": reviewstyles.form_control,
|
|
4782
4782
|
value: reviewpayloadobj.reviewname,
|
|
4783
4783
|
onChange: function onChange(event) {
|
|
4784
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
4784
|
+
var tempreviewpayloadobj = _objectSpread$2q({}, reviewpayloadobj);
|
|
4785
4785
|
tempreviewpayloadobj.reviewname = event.target.value;
|
|
4786
|
-
setreviewpayloadobj(_objectSpread$
|
|
4786
|
+
setreviewpayloadobj(_objectSpread$2q({}, tempreviewpayloadobj));
|
|
4787
4787
|
}
|
|
4788
4788
|
})), /*#__PURE__*/React.createElement("div", {
|
|
4789
4789
|
"class": "col-lg-12 mb-4"
|
|
@@ -4793,9 +4793,9 @@ var AddReview = function AddReview(props) {
|
|
|
4793
4793
|
"class": reviewstyles.form_control,
|
|
4794
4794
|
value: reviewpayloadobj.reviewtitle,
|
|
4795
4795
|
onChange: function onChange(event) {
|
|
4796
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
4796
|
+
var tempreviewpayloadobj = _objectSpread$2q({}, reviewpayloadobj);
|
|
4797
4797
|
tempreviewpayloadobj.reviewtitle = event.target.value;
|
|
4798
|
-
setreviewpayloadobj(_objectSpread$
|
|
4798
|
+
setreviewpayloadobj(_objectSpread$2q({}, tempreviewpayloadobj));
|
|
4799
4799
|
}
|
|
4800
4800
|
})), /*#__PURE__*/React.createElement("div", {
|
|
4801
4801
|
"class": "col-lg-12 mb-4"
|
|
@@ -4806,9 +4806,9 @@ var AddReview = function AddReview(props) {
|
|
|
4806
4806
|
"class": reviewstyles.form_control + ' form_control ',
|
|
4807
4807
|
value: reviewpayloadobj.reviewbody,
|
|
4808
4808
|
onChange: function onChange(event) {
|
|
4809
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
4809
|
+
var tempreviewpayloadobj = _objectSpread$2q({}, reviewpayloadobj);
|
|
4810
4810
|
tempreviewpayloadobj.reviewbody = event.target.value;
|
|
4811
|
-
setreviewpayloadobj(_objectSpread$
|
|
4811
|
+
setreviewpayloadobj(_objectSpread$2q({}, tempreviewpayloadobj));
|
|
4812
4812
|
},
|
|
4813
4813
|
style: {
|
|
4814
4814
|
resize: 'none',
|
|
@@ -4843,8 +4843,8 @@ var AddReview = function AddReview(props) {
|
|
|
4843
4843
|
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)));
|
|
4844
4844
|
};
|
|
4845
4845
|
|
|
4846
|
-
function ownKeys$
|
|
4847
|
-
function _objectSpread$
|
|
4846
|
+
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; }
|
|
4847
|
+
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(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; }
|
|
4848
4848
|
var ProductReviews = function ProductReviews(props) {
|
|
4849
4849
|
var _fetchProductInfoQuer, _fetchProductInfoQuer3, _fetchProductInfoQuer4;
|
|
4850
4850
|
props.actions.lang;
|
|
@@ -5078,7 +5078,7 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
5078
5078
|
size: "md",
|
|
5079
5079
|
"class": "reviewmodal"
|
|
5080
5080
|
}, /*#__PURE__*/React.createElement(Modal.Body, null, /*#__PURE__*/React.createElement(AddReview, {
|
|
5081
|
-
actions: _objectSpread$
|
|
5081
|
+
actions: _objectSpread$2p(_objectSpread$2p({}, actions), {}, {
|
|
5082
5082
|
productid: productid,
|
|
5083
5083
|
canuserreview: canuserreview,
|
|
5084
5084
|
addreviewcallback: addreviewcallback
|
|
@@ -5086,8 +5086,8 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
5086
5086
|
}))));
|
|
5087
5087
|
};
|
|
5088
5088
|
|
|
5089
|
-
function ownKeys$
|
|
5090
|
-
function _objectSpread$
|
|
5089
|
+
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; }
|
|
5090
|
+
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(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; }
|
|
5091
5091
|
var Productinfo = function Productinfo(props) {
|
|
5092
5092
|
var _css, _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
|
|
5093
5093
|
var _useState = useState({}),
|
|
@@ -5116,7 +5116,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5116
5116
|
setfetchProductInfoQueryContext = _useState4[1];
|
|
5117
5117
|
useEffect(function () {
|
|
5118
5118
|
if (fetchProductInfoQueryContextProps.isSuccess) {
|
|
5119
|
-
setProductInfoObj(_objectSpread$
|
|
5119
|
+
setProductInfoObj(_objectSpread$2o({}, fetchProductInfoQueryContextProps.data));
|
|
5120
5120
|
setfetchProductInfoQueryContext(fetchProductInfoQueryContextProps);
|
|
5121
5121
|
}
|
|
5122
5122
|
}, [props.actions, props, fetchProductInfoQueryContextProps.data, fetchProductInfoQueryContextProps.isSuccess]);
|
|
@@ -5232,7 +5232,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5232
5232
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
5233
5233
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
5234
5234
|
});
|
|
5235
|
-
setsectionproperties(_objectSpread$
|
|
5235
|
+
setsectionproperties(_objectSpread$2o({}, secpropobj));
|
|
5236
5236
|
setTabIndex(0);
|
|
5237
5237
|
settabname('descriptiontab');
|
|
5238
5238
|
if (sectionproperties.prodCatShow == 'Hide' || sectionproperties.descriptionposition != 'Bottom') {
|
|
@@ -5272,7 +5272,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5272
5272
|
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) {
|
|
5273
5273
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
5274
5274
|
});
|
|
5275
|
-
setsectionproperties(_objectSpread$
|
|
5275
|
+
setsectionproperties(_objectSpread$2o({}, secpropobj));
|
|
5276
5276
|
}, [pageindexcontext]);
|
|
5277
5277
|
useEffect(function () {
|
|
5278
5278
|
if (productidparam == undefined) {
|
|
@@ -5292,12 +5292,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
5292
5292
|
}
|
|
5293
5293
|
}, [ProductInfoObj, isloaded]);
|
|
5294
5294
|
var productidassigner = function productidassigner(productid) {
|
|
5295
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
5295
|
+
var tempFetchQueriesEngineContext = _objectSpread$2o({}, FetchQueriesEngineContext);
|
|
5296
5296
|
tempFetchQueriesEngineContext.fetchproductinfo = true;
|
|
5297
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
5298
|
-
var tempfetchproductinfoObjContext = _objectSpread$
|
|
5297
|
+
setFetchQueriesEngineContext(_objectSpread$2o({}, tempFetchQueriesEngineContext));
|
|
5298
|
+
var tempfetchproductinfoObjContext = _objectSpread$2o({}, fetchproductinfoObjContext);
|
|
5299
5299
|
tempfetchproductinfoObjContext.productid = productid;
|
|
5300
|
-
setfetchproductinfoObjContext(_objectSpread$
|
|
5300
|
+
setfetchproductinfoObjContext(_objectSpread$2o({}, tempfetchproductinfoObjContext));
|
|
5301
5301
|
};
|
|
5302
5302
|
useEffect(function () {
|
|
5303
5303
|
if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && ikimagecredcontext != undefined) {
|
|
@@ -5334,9 +5334,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
5334
5334
|
}
|
|
5335
5335
|
setproductimagesarray([].concat(tempproductimagesarray));
|
|
5336
5336
|
variantchecker();
|
|
5337
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5337
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5338
5338
|
tempaddtocardpayloadobj.productid = fetchProductInfoQueryContext.data.data.productinfo.productid;
|
|
5339
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5339
|
+
setaddtocardpayloadobj(_objectSpread$2o({}, tempaddtocardpayloadobj));
|
|
5340
5340
|
setRelatedProductsTagid(fetchProductInfoQueryContext.data.data.productinfo.maintagid);
|
|
5341
5341
|
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) {
|
|
5342
5342
|
GeneralAPIMutationContext.mutate({
|
|
@@ -5387,7 +5387,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5387
5387
|
});
|
|
5388
5388
|
variantchecker();
|
|
5389
5389
|
variantcompleting();
|
|
5390
|
-
setProductInfoObj(_objectSpread$
|
|
5390
|
+
setProductInfoObj(_objectSpread$2o({}, productarr));
|
|
5391
5391
|
};
|
|
5392
5392
|
var variantchecker = function variantchecker() {
|
|
5393
5393
|
var productarr = ProductInfoObj;
|
|
@@ -5461,16 +5461,16 @@ var Productinfo = function Productinfo(props) {
|
|
|
5461
5461
|
});
|
|
5462
5462
|
}
|
|
5463
5463
|
// queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
|
|
5464
|
-
setProductInfoObj(_objectSpread$
|
|
5464
|
+
setProductInfoObj(_objectSpread$2o({}, productarr));
|
|
5465
5465
|
setisloaded(true);
|
|
5466
5466
|
}
|
|
5467
5467
|
}
|
|
5468
5468
|
};
|
|
5469
5469
|
var variantcompleting = function variantcompleting() {
|
|
5470
5470
|
setvariantindexcompleted('');
|
|
5471
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5471
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5472
5472
|
tempaddtocardpayloadobj.variantid = '';
|
|
5473
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5473
|
+
setaddtocardpayloadobj(_objectSpread$2o({}, tempaddtocardpayloadobj));
|
|
5474
5474
|
var productarr = ProductInfoObj;
|
|
5475
5475
|
var selectedoptionsvalues = [];
|
|
5476
5476
|
productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
|
|
@@ -5503,7 +5503,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5503
5503
|
NotificationManager.warning('', 'Variant Not Found');
|
|
5504
5504
|
} else {
|
|
5505
5505
|
variantid = variantobj.variantid;
|
|
5506
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5506
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5507
5507
|
tempaddtocardpayloadobj.variantid = variantid;
|
|
5508
5508
|
var variantimageindex = 0;
|
|
5509
5509
|
productimagesarray === null || productimagesarray === void 0 || productimagesarray.forEach(function (tempimageitem, tempimageindex) {
|
|
@@ -5518,14 +5518,14 @@ var Productinfo = function Productinfo(props) {
|
|
|
5518
5518
|
}
|
|
5519
5519
|
setvariantsku(variantobj === null || variantobj === void 0 ? void 0 : variantobj.sku);
|
|
5520
5520
|
setcurrentshowingimageindex(variantimageindex);
|
|
5521
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5521
|
+
setaddtocardpayloadobj(_objectSpread$2o({}, tempaddtocardpayloadobj));
|
|
5522
5522
|
setvariantindexcompleted(ProductVariantIndex);
|
|
5523
5523
|
setvariantindex(ProductVariantIndex);
|
|
5524
5524
|
}
|
|
5525
5525
|
}
|
|
5526
5526
|
});
|
|
5527
5527
|
// queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
|
|
5528
|
-
setProductInfoObj(_objectSpread$
|
|
5528
|
+
setProductInfoObj(_objectSpread$2o({}, productarr));
|
|
5529
5529
|
};
|
|
5530
5530
|
var addtocartfunc = function addtocartfunc(forcetocheckout) {
|
|
5531
5531
|
var runfunc = false;
|
|
@@ -5544,7 +5544,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5544
5544
|
}
|
|
5545
5545
|
if (runfunc == true) {
|
|
5546
5546
|
var _fetchProductInfoQuer7, _fetchProductInfoQuer8;
|
|
5547
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5547
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5548
5548
|
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;
|
|
5549
5549
|
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;
|
|
5550
5550
|
if (forcetocheckoutvalue != undefined) {
|
|
@@ -5568,7 +5568,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5568
5568
|
};
|
|
5569
5569
|
var validateextrafields = function validateextrafields() {
|
|
5570
5570
|
var _fetchProductInfoQuer15;
|
|
5571
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5571
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5572
5572
|
var status = false;
|
|
5573
5573
|
var reason = '';
|
|
5574
5574
|
var missingitemsfound = [];
|
|
@@ -6607,7 +6607,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6607
6607
|
}))), /*#__PURE__*/React.createElement(Box, {
|
|
6608
6608
|
"class": "w-100 mt-5 mb-4"
|
|
6609
6609
|
}, tabname == 'descriptiontab' && sectionproperties.descriptionposition == 'Bottom' && /*#__PURE__*/React.createElement(DescriptionContent, {
|
|
6610
|
-
actions: _objectSpread$
|
|
6610
|
+
actions: _objectSpread$2o(_objectSpread$2o({}, actions), {}, {
|
|
6611
6611
|
productinfo_cssstyles: productinfo_cssstyles,
|
|
6612
6612
|
sectionproperties: sectionproperties
|
|
6613
6613
|
})
|
|
@@ -6655,7 +6655,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6655
6655
|
})), tabname == 'reviewstab' && /*#__PURE__*/React.createElement("div", {
|
|
6656
6656
|
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0"
|
|
6657
6657
|
}, /*#__PURE__*/React.createElement(ProductReviews, {
|
|
6658
|
-
actions: _objectSpread$
|
|
6658
|
+
actions: _objectSpread$2o(_objectSpread$2o({}, actions), {}, {
|
|
6659
6659
|
productinfo_cssstyles: productinfo_cssstyles,
|
|
6660
6660
|
sectionproperties: sectionproperties
|
|
6661
6661
|
})
|
|
@@ -6672,8 +6672,8 @@ var css_248z$I = "/* Side Nav */\n.staticroutersidenav-module_vertical_nav_menu_
|
|
|
6672
6672
|
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"};
|
|
6673
6673
|
styleInject(css_248z$I);
|
|
6674
6674
|
|
|
6675
|
-
function ownKeys$
|
|
6676
|
-
function _objectSpread$
|
|
6675
|
+
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; }
|
|
6676
|
+
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(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; }
|
|
6677
6677
|
var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
6678
6678
|
var _useState = useState(props.currentpageprops),
|
|
6679
6679
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -6709,7 +6709,7 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
|
6709
6709
|
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) {
|
|
6710
6710
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
6711
6711
|
});
|
|
6712
|
-
setsectionproperties(_objectSpread$
|
|
6712
|
+
setsectionproperties(_objectSpread$2n({}, secpropobj));
|
|
6713
6713
|
}
|
|
6714
6714
|
}, [CurrentPageId]);
|
|
6715
6715
|
var styles = {
|
|
@@ -6875,8 +6875,8 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
|
6875
6875
|
}))))));
|
|
6876
6876
|
};
|
|
6877
6877
|
|
|
6878
|
-
function ownKeys$
|
|
6879
|
-
function _objectSpread$
|
|
6878
|
+
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; }
|
|
6879
|
+
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(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; }
|
|
6880
6880
|
var Ordershistory = function Ordershistory(props) {
|
|
6881
6881
|
var _props$actions2, _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchorderhistoryQue2, _fetchorderhistoryQue3, _fetchorderhistoryQue4, _fetchorderhistoryQue5;
|
|
6882
6882
|
var lang = props.actions.lang;
|
|
@@ -6929,9 +6929,9 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
6929
6929
|
setorderindex = _useState14[1];
|
|
6930
6930
|
useEffect(function () {
|
|
6931
6931
|
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin) == true) {
|
|
6932
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
6932
|
+
var tempFetchQueriesEngineContext = _objectSpread$2m({}, FetchQueriesEngineContext);
|
|
6933
6933
|
tempFetchQueriesEngineContext.orderhistory = true;
|
|
6934
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
6934
|
+
setFetchQueriesEngineContext(_objectSpread$2m({}, tempFetchQueriesEngineContext));
|
|
6935
6935
|
}
|
|
6936
6936
|
}, []);
|
|
6937
6937
|
var _useState15 = useState(''),
|
|
@@ -6952,7 +6952,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
6952
6952
|
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) {
|
|
6953
6953
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
6954
6954
|
});
|
|
6955
|
-
setsectionproperties(_objectSpread$
|
|
6955
|
+
setsectionproperties(_objectSpread$2m({}, secpropobj));
|
|
6956
6956
|
}, [props === null || props === void 0 || (_props$actions2 = props.actions) === null || _props$actions2 === void 0 ? void 0 : _props$actions2.StatePagePropertiesContext]);
|
|
6957
6957
|
var orderhistory_cssstyles = {
|
|
6958
6958
|
variantcontainer: css({
|
|
@@ -7903,8 +7903,8 @@ var css_248z$H = ".wishlist-module_wishlist_card__sUXul .wishlist-module_image_c
|
|
|
7903
7903
|
var wishliststyles = {"wishlist_card":"wishlist-module_wishlist_card__sUXul","image_container":"wishlist-module_image_container__FuptA","floatbtn":"wishlist-module_floatbtn__PZDvQ"};
|
|
7904
7904
|
styleInject(css_248z$H);
|
|
7905
7905
|
|
|
7906
|
-
function ownKeys$
|
|
7907
|
-
function _objectSpread$
|
|
7906
|
+
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; }
|
|
7907
|
+
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(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; }
|
|
7908
7908
|
var Wishlist = function Wishlist(props) {
|
|
7909
7909
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8;
|
|
7910
7910
|
var lang = props.actions.lang;
|
|
@@ -7932,13 +7932,13 @@ var Wishlist = function Wishlist(props) {
|
|
|
7932
7932
|
StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
7933
7933
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
7934
7934
|
});
|
|
7935
|
-
setsectionproperties(_objectSpread$
|
|
7935
|
+
setsectionproperties(_objectSpread$2l({}, secpropobj));
|
|
7936
7936
|
}
|
|
7937
7937
|
}, [StatePagePropertiesContext]);
|
|
7938
7938
|
useEffect(function () {
|
|
7939
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
7939
|
+
var tempFetchQueriesEngineContext = _objectSpread$2l({}, FetchQueriesEngineContext);
|
|
7940
7940
|
tempFetchQueriesEngineContext.fetchfavoriteproducts = true;
|
|
7941
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
7941
|
+
setFetchQueriesEngineContext(_objectSpread$2l({}, tempFetchQueriesEngineContext));
|
|
7942
7942
|
}, []);
|
|
7943
7943
|
useEffect(function () {
|
|
7944
7944
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
@@ -7947,7 +7947,7 @@ var Wishlist = function Wishlist(props) {
|
|
|
7947
7947
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
7948
7948
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
7949
7949
|
});
|
|
7950
|
-
setsectionproperties(_objectSpread$
|
|
7950
|
+
setsectionproperties(_objectSpread$2l({}, secpropobj));
|
|
7951
7951
|
}
|
|
7952
7952
|
}, [StatePagePropertiesContext]);
|
|
7953
7953
|
var wishlist_cssstyles = {
|
|
@@ -8356,8 +8356,8 @@ var Wishlist = function Wishlist(props) {
|
|
|
8356
8356
|
})));
|
|
8357
8357
|
};
|
|
8358
8358
|
|
|
8359
|
-
function ownKeys$
|
|
8360
|
-
function _objectSpread$
|
|
8359
|
+
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; }
|
|
8360
|
+
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(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; }
|
|
8361
8361
|
var Viewcart = function Viewcart(props) {
|
|
8362
8362
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchcustomercartQue7, _fetchcustomercartQue8;
|
|
8363
8363
|
var lang = props.actions.lang;
|
|
@@ -8389,7 +8389,7 @@ var Viewcart = function Viewcart(props) {
|
|
|
8389
8389
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
8390
8390
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
8391
8391
|
});
|
|
8392
|
-
setsectionproperties(_objectSpread$
|
|
8392
|
+
setsectionproperties(_objectSpread$2k({}, secpropobj));
|
|
8393
8393
|
}
|
|
8394
8394
|
}, [StatePagePropertiesContext]);
|
|
8395
8395
|
useEffect(function () {
|
|
@@ -8977,8 +8977,8 @@ var css_248z$G = "/* Forms */\n.form-module_form_control__4-RGw {\n display:
|
|
|
8977
8977
|
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-"};
|
|
8978
8978
|
styleInject(css_248z$G);
|
|
8979
8979
|
|
|
8980
|
-
function ownKeys$
|
|
8981
|
-
function _objectSpread$
|
|
8980
|
+
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; }
|
|
8981
|
+
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(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; }
|
|
8982
8982
|
var Select$3 = /*#__PURE__*/React.lazy(function () {
|
|
8983
8983
|
return import('react-select');
|
|
8984
8984
|
});
|
|
@@ -9037,7 +9037,7 @@ var Checkout = function Checkout(props) {
|
|
|
9037
9037
|
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) {
|
|
9038
9038
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
9039
9039
|
});
|
|
9040
|
-
setsectionproperties(_objectSpread$
|
|
9040
|
+
setsectionproperties(_objectSpread$2j({}, secpropobj));
|
|
9041
9041
|
}, [props.actions.StatePagePropertiesContext]);
|
|
9042
9042
|
useEffect(function () {
|
|
9043
9043
|
var Canorder = false;
|
|
@@ -9057,10 +9057,10 @@ var Checkout = function Checkout(props) {
|
|
|
9057
9057
|
}
|
|
9058
9058
|
if (Canorder == true) {
|
|
9059
9059
|
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7;
|
|
9060
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
9060
|
+
var tempFetchQueriesEngineContext = _objectSpread$2j({}, FetchQueriesEngineContext);
|
|
9061
9061
|
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
9062
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
9063
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
9062
|
+
setFetchQueriesEngineContext(_objectSpread$2j({}, tempFetchQueriesEngineContext));
|
|
9063
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2j({}, FetchTabexStatesPayloadobjContext);
|
|
9064
9064
|
if (
|
|
9065
9065
|
// Aya
|
|
9066
9066
|
!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 &&
|
|
@@ -9077,7 +9077,7 @@ var Checkout = function Checkout(props) {
|
|
|
9077
9077
|
var _fetchcustomercartQue8;
|
|
9078
9078
|
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;
|
|
9079
9079
|
}
|
|
9080
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
9080
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2j({}, tempFetchTabexStatesPayloadobjContext));
|
|
9081
9081
|
} else {
|
|
9082
9082
|
// NotificationManager.warning('', lang.pleaselogintocheckout);
|
|
9083
9083
|
routingcountext(StaticPagesLinksContext.Login);
|
|
@@ -9944,10 +9944,10 @@ var Checkout = function Checkout(props) {
|
|
|
9944
9944
|
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);
|
|
9945
9945
|
}),
|
|
9946
9946
|
onChange: function onChange(option) {
|
|
9947
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
9947
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2j({}, FetchTabexStatesPayloadobjContext);
|
|
9948
9948
|
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
9949
9949
|
tempFetchTabexStatesPayloadobjContext.country_id = option.id;
|
|
9950
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
9950
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2j({}, tempFetchTabexStatesPayloadobjContext));
|
|
9951
9951
|
cartinfoupdater('countryid', option.id);
|
|
9952
9952
|
},
|
|
9953
9953
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -9992,10 +9992,10 @@ var Checkout = function Checkout(props) {
|
|
|
9992
9992
|
onChange: function onChange(option) {
|
|
9993
9993
|
var _fetchcustomercartQue60;
|
|
9994
9994
|
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) {
|
|
9995
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
9995
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2j({}, FetchTabexStatesPayloadobjContext);
|
|
9996
9996
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
9997
9997
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
9998
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
9998
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2j({}, tempFetchTabexStatesPayloadobjContext));
|
|
9999
9999
|
cartinfoupdater('stateid', option.id);
|
|
10000
10000
|
} else {
|
|
10001
10001
|
NotificationManager.warning('', 'Please Choose Country Or State');
|
|
@@ -10359,8 +10359,8 @@ var Checkout = function Checkout(props) {
|
|
|
10359
10359
|
}, Mycart())))));
|
|
10360
10360
|
};
|
|
10361
10361
|
|
|
10362
|
-
function ownKeys$
|
|
10363
|
-
function _objectSpread$
|
|
10362
|
+
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; }
|
|
10363
|
+
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(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; }
|
|
10364
10364
|
var VendorPage = function VendorPage(props) {
|
|
10365
10365
|
var _useState = useState(''),
|
|
10366
10366
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -10393,7 +10393,7 @@ var VendorPage = function VendorPage(props) {
|
|
|
10393
10393
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
10394
10394
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
10395
10395
|
});
|
|
10396
|
-
setsectionproperties(_objectSpread$
|
|
10396
|
+
setsectionproperties(_objectSpread$2i({}, secpropobj));
|
|
10397
10397
|
}
|
|
10398
10398
|
}, [StatePagePropertiesContext]);
|
|
10399
10399
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -10516,8 +10516,8 @@ var VendorPage = function VendorPage(props) {
|
|
|
10516
10516
|
})));
|
|
10517
10517
|
};
|
|
10518
10518
|
|
|
10519
|
-
function ownKeys$
|
|
10520
|
-
function _objectSpread$
|
|
10519
|
+
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; }
|
|
10520
|
+
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(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; }
|
|
10521
10521
|
var Select$2 = /*#__PURE__*/React.lazy(function () {
|
|
10522
10522
|
return import('react-select');
|
|
10523
10523
|
});
|
|
@@ -10627,46 +10627,46 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
10627
10627
|
}
|
|
10628
10628
|
}, [fetchAuthorizationQueryContext.isSuccess]);
|
|
10629
10629
|
useEffect(function () {
|
|
10630
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
10630
|
+
var tempFetchQueriesEngineContext = _objectSpread$2h({}, FetchQueriesEngineContext);
|
|
10631
10631
|
tempFetchQueriesEngineContext.institutecustomerinfosignup = true;
|
|
10632
10632
|
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
10633
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
10634
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
10633
|
+
setFetchQueriesEngineContext(_objectSpread$2h({}, tempFetchQueriesEngineContext));
|
|
10634
|
+
var tempFetchQueriesEngineContext = _objectSpread$2h({}, FetchQueriesEngineContext);
|
|
10635
10635
|
}, []);
|
|
10636
10636
|
useEffect(function () {
|
|
10637
10637
|
if (props.sectionpropertiesprops != undefined && props.sectionpropertiesprops.length != 0) {
|
|
10638
|
-
setsectionproperties(_objectSpread$
|
|
10638
|
+
setsectionproperties(_objectSpread$2h({}, props.sectionpropertiesprops));
|
|
10639
10639
|
}
|
|
10640
10640
|
}, [props.sectionpropertiesprops]);
|
|
10641
10641
|
useEffect(function () {
|
|
10642
10642
|
if (fetchinstitutecustomerinfosignupQueryContext.isSuccess) {
|
|
10643
10643
|
if (authdetailsContext.loggedin == true) {
|
|
10644
|
-
var tempcustomerinfoobj = _objectSpread$
|
|
10645
|
-
setpayloadobj(_objectSpread$
|
|
10646
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
10644
|
+
var tempcustomerinfoobj = _objectSpread$2h({}, fetchinstitutecustomerinfosignupQueryContext.data.data.customerinfo);
|
|
10645
|
+
setpayloadobj(_objectSpread$2h({}, tempcustomerinfoobj));
|
|
10646
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2h({}, FetchTabexStatesPayloadobjContext);
|
|
10647
10647
|
if (tempcustomerinfoobj.countryid != null) {
|
|
10648
10648
|
tempFetchTabexStatesPayloadobjContext.country_id = tempcustomerinfoobj.countryid;
|
|
10649
10649
|
}
|
|
10650
10650
|
if (tempcustomerinfoobj.stateid != null) {
|
|
10651
10651
|
tempFetchTabexStatesPayloadobjContext.state_id = tempcustomerinfoobj.stateid;
|
|
10652
10652
|
}
|
|
10653
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
10653
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2h({}, tempFetchTabexStatesPayloadobjContext));
|
|
10654
10654
|
setdataloaded(true);
|
|
10655
10655
|
} else {
|
|
10656
10656
|
var _fetchinstitutecustom;
|
|
10657
|
-
var tempcustomerinfoobj = _objectSpread$
|
|
10657
|
+
var tempcustomerinfoobj = _objectSpread$2h({}, payloadobj);
|
|
10658
10658
|
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)) {
|
|
10659
10659
|
tempcustomerinfoobj.instsignupformvalues = _toConsumableArray(fetchinstitutecustomerinfosignupQueryContext.data.data.instsignupformvalues);
|
|
10660
10660
|
}
|
|
10661
|
-
setpayloadobj(_objectSpread$
|
|
10661
|
+
setpayloadobj(_objectSpread$2h({}, tempcustomerinfoobj));
|
|
10662
10662
|
setdataloaded(true);
|
|
10663
10663
|
}
|
|
10664
10664
|
}
|
|
10665
10665
|
}, [fetchinstitutecustomerinfosignupQueryContext.isSuccess, fetchinstitutecustomerinfosignupQueryContext.data, authdetailsContext]);
|
|
10666
10666
|
var payloadobjchange = function payloadobjchange(key, value) {
|
|
10667
|
-
var temppayloadobj = _objectSpread$
|
|
10667
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
10668
10668
|
temppayloadobj[key] = value;
|
|
10669
|
-
setpayloadobj(_objectSpread$
|
|
10669
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
10670
10670
|
};
|
|
10671
10671
|
var validateEmailstring = function validateEmailstring(email) {
|
|
10672
10672
|
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,}))$/);
|
|
@@ -10738,7 +10738,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
10738
10738
|
};
|
|
10739
10739
|
var signupbuttonfunc = function signupbuttonfunc() {
|
|
10740
10740
|
if (verifypayload() == true) {
|
|
10741
|
-
var temppayloadobj = _objectSpread$
|
|
10741
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
10742
10742
|
if (authdetailsContext.loggedin == true) {
|
|
10743
10743
|
temppayloadobj.functype = 'edit';
|
|
10744
10744
|
} else {
|
|
@@ -10895,10 +10895,10 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
10895
10895
|
autoFormat: true,
|
|
10896
10896
|
value: payloadobj.mobile,
|
|
10897
10897
|
onChange: function onChange(event, country) {
|
|
10898
|
-
var temp = _objectSpread$
|
|
10898
|
+
var temp = _objectSpread$2h({}, payloadobj);
|
|
10899
10899
|
temp.mobile = event;
|
|
10900
10900
|
temp.countrydialcode = country.dialCode;
|
|
10901
|
-
setpayloadobj(_objectSpread$
|
|
10901
|
+
setpayloadobj(_objectSpread$2h({}, temp));
|
|
10902
10902
|
// payloadobjchange('mobile', event);
|
|
10903
10903
|
|
|
10904
10904
|
// alert(JSON.stringify(country));
|
|
@@ -10955,10 +10955,10 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
10955
10955
|
return option.id == payloadobj.countryid;
|
|
10956
10956
|
}),
|
|
10957
10957
|
onChange: function onChange(option) {
|
|
10958
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
10958
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2h({}, FetchTabexStatesPayloadobjContext);
|
|
10959
10959
|
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
10960
10960
|
tempFetchTabexStatesPayloadobjContext.country_id = option.id;
|
|
10961
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
10961
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2h({}, tempFetchTabexStatesPayloadobjContext));
|
|
10962
10962
|
payloadobjchange('countryid', option.id);
|
|
10963
10963
|
},
|
|
10964
10964
|
styles: sectionproperties.inputfieldbordertype == 'All' ? langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated : langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -11007,10 +11007,10 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11007
11007
|
return option.id == payloadobj.stateid;
|
|
11008
11008
|
}),
|
|
11009
11009
|
onChange: function onChange(option) {
|
|
11010
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
11010
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2h({}, FetchTabexStatesPayloadobjContext);
|
|
11011
11011
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
11012
11012
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
11013
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
11013
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2h({}, tempFetchTabexStatesPayloadobjContext));
|
|
11014
11014
|
payloadobjchange('stateid', option.id);
|
|
11015
11015
|
},
|
|
11016
11016
|
styles: sectionproperties.inputfieldbordertype == 'All' ? langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated : langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -11152,9 +11152,9 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11152
11152
|
value: item.customersignupvalue,
|
|
11153
11153
|
textplaceholder: "",
|
|
11154
11154
|
onChange: function onChange(event) {
|
|
11155
|
-
var temppayloadobj = _objectSpread$
|
|
11155
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
11156
11156
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
|
|
11157
|
-
setpayloadobj(_objectSpread$
|
|
11157
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
11158
11158
|
},
|
|
11159
11159
|
style: {
|
|
11160
11160
|
background: 'transparent'
|
|
@@ -11168,13 +11168,13 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11168
11168
|
className: formstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11169
11169
|
checked: item.customersignupvalue == 1 ? true : false,
|
|
11170
11170
|
onChange: function onChange() {
|
|
11171
|
-
var temppayloadobj = _objectSpread$
|
|
11171
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
11172
11172
|
if (temppayloadobj.instsignupformvalues[index].customersignupvalue == 1) {
|
|
11173
11173
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = 0;
|
|
11174
11174
|
} else {
|
|
11175
11175
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = 1;
|
|
11176
11176
|
}
|
|
11177
|
-
setpayloadobj(_objectSpread$
|
|
11177
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
11178
11178
|
}
|
|
11179
11179
|
}), /*#__PURE__*/React.createElement("svg", {
|
|
11180
11180
|
viewBox: "0 0 21 21",
|
|
@@ -11191,9 +11191,9 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11191
11191
|
value: item.customersignupvalue,
|
|
11192
11192
|
textplaceholder: "",
|
|
11193
11193
|
onChange: function onChange(event) {
|
|
11194
|
-
var temppayloadobj = _objectSpread$
|
|
11194
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
11195
11195
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
|
|
11196
|
-
setpayloadobj(_objectSpread$
|
|
11196
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
11197
11197
|
}
|
|
11198
11198
|
}, /*#__PURE__*/React.createElement("option", {
|
|
11199
11199
|
value: '',
|
|
@@ -11208,9 +11208,9 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11208
11208
|
value: item.customersignupvalue,
|
|
11209
11209
|
textplaceholder: "",
|
|
11210
11210
|
onChange: function onChange(event) {
|
|
11211
|
-
var temppayloadobj = _objectSpread$
|
|
11211
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
11212
11212
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
|
|
11213
|
-
setpayloadobj(_objectSpread$
|
|
11213
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
11214
11214
|
},
|
|
11215
11215
|
style: {
|
|
11216
11216
|
resize: 'none'
|
|
@@ -11564,7 +11564,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11564
11564
|
className: "".concat(formstyles.form_control),
|
|
11565
11565
|
value: validateemailpayload.code,
|
|
11566
11566
|
onChange: function onChange(event) {
|
|
11567
|
-
setvalidateemailpayload(_objectSpread$
|
|
11567
|
+
setvalidateemailpayload(_objectSpread$2h(_objectSpread$2h({}, validateemailpayload), {}, {
|
|
11568
11568
|
code: event.target.value
|
|
11569
11569
|
}));
|
|
11570
11570
|
},
|
|
@@ -11591,12 +11591,12 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11591
11591
|
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
11592
11592
|
if (data.data.status) {
|
|
11593
11593
|
if (data.data.functype == 'sendcode') {
|
|
11594
|
-
setvalidateemailpayload(_objectSpread$
|
|
11594
|
+
setvalidateemailpayload(_objectSpread$2h(_objectSpread$2h({}, validateemailpayload), {}, {
|
|
11595
11595
|
step: 'verifycode'
|
|
11596
11596
|
}));
|
|
11597
11597
|
}
|
|
11598
11598
|
if (data.data.functype == 'verifycode') {
|
|
11599
|
-
setvalidateemailpayload(_objectSpread$
|
|
11599
|
+
setvalidateemailpayload(_objectSpread$2h(_objectSpread$2h({}, validateemailpayload), {}, {
|
|
11600
11600
|
isvalidated: true
|
|
11601
11601
|
}));
|
|
11602
11602
|
setvalidateemailmodal(false);
|
|
@@ -11691,7 +11691,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11691
11691
|
className: "".concat(formstyles.form_control),
|
|
11692
11692
|
value: validatephonenumberpayload.code,
|
|
11693
11693
|
onChange: function onChange(event) {
|
|
11694
|
-
setvalidatephonenumberpayload(_objectSpread$
|
|
11694
|
+
setvalidatephonenumberpayload(_objectSpread$2h(_objectSpread$2h({}, validatephonenumberpayload), {}, {
|
|
11695
11695
|
code: event.target.value
|
|
11696
11696
|
}));
|
|
11697
11697
|
},
|
|
@@ -11718,12 +11718,12 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11718
11718
|
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
11719
11719
|
if (data.data.status) {
|
|
11720
11720
|
if (data.data.functype == 'sendcode') {
|
|
11721
|
-
setvalidatephonenumberpayload(_objectSpread$
|
|
11721
|
+
setvalidatephonenumberpayload(_objectSpread$2h(_objectSpread$2h({}, validatephonenumberpayload), {}, {
|
|
11722
11722
|
step: 'verifycode'
|
|
11723
11723
|
}));
|
|
11724
11724
|
}
|
|
11725
11725
|
if (data.data.functype == 'verifycode') {
|
|
11726
|
-
setvalidatephonenumberpayload(_objectSpread$
|
|
11726
|
+
setvalidatephonenumberpayload(_objectSpread$2h(_objectSpread$2h({}, validatephonenumberpayload), {}, {
|
|
11727
11727
|
isvalidated: true
|
|
11728
11728
|
}));
|
|
11729
11729
|
setvalidatephonenumbermodal(false);
|
|
@@ -11759,8 +11759,8 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11759
11759
|
}, validatephonenumberpayload.step == 'sendcode' ? lang.sendcode : lang.verifycode))))))), /*#__PURE__*/React.createElement(Modal.Footer, null)));
|
|
11760
11760
|
};
|
|
11761
11761
|
|
|
11762
|
-
function ownKeys$
|
|
11763
|
-
function _objectSpread$
|
|
11762
|
+
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; }
|
|
11763
|
+
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(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; }
|
|
11764
11764
|
var Signup = function Signup(props) {
|
|
11765
11765
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
11766
11766
|
props.actions.CurrentSrcTypeContext;
|
|
@@ -11808,7 +11808,7 @@ var Signup = function Signup(props) {
|
|
|
11808
11808
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
11809
11809
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
11810
11810
|
});
|
|
11811
|
-
setsectionproperties(_objectSpread$
|
|
11811
|
+
setsectionproperties(_objectSpread$2g({}, secpropobj));
|
|
11812
11812
|
}
|
|
11813
11813
|
}, [StatePagePropertiesContext]);
|
|
11814
11814
|
var loginstyles2 = {
|
|
@@ -11951,8 +11951,8 @@ var Signup = function Signup(props) {
|
|
|
11951
11951
|
}, SignupContent()));
|
|
11952
11952
|
};
|
|
11953
11953
|
|
|
11954
|
-
function ownKeys$
|
|
11955
|
-
function _objectSpread$
|
|
11954
|
+
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; }
|
|
11955
|
+
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(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; }
|
|
11956
11956
|
var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
11957
11957
|
var _css;
|
|
11958
11958
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -12018,7 +12018,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12018
12018
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
12019
12019
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12020
12020
|
});
|
|
12021
|
-
setsectionproperties(_objectSpread$
|
|
12021
|
+
setsectionproperties(_objectSpread$2f({}, secpropobj));
|
|
12022
12022
|
}
|
|
12023
12023
|
}, [StatePagePropertiesContext]);
|
|
12024
12024
|
var loginstyles2 = {
|
|
@@ -12119,7 +12119,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12119
12119
|
className: "".concat(loginstyles2.form_control),
|
|
12120
12120
|
value: affsignuppayload.name,
|
|
12121
12121
|
onChange: function onChange(event) {
|
|
12122
|
-
setaffsignuppayload(_objectSpread$
|
|
12122
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12123
12123
|
name: event.target.value
|
|
12124
12124
|
}));
|
|
12125
12125
|
},
|
|
@@ -12135,7 +12135,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12135
12135
|
className: "".concat(loginstyles2.form_control),
|
|
12136
12136
|
value: affsignuppayload.email,
|
|
12137
12137
|
onChange: function onChange(event) {
|
|
12138
|
-
setaffsignuppayload(_objectSpread$
|
|
12138
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12139
12139
|
email: event.target.value
|
|
12140
12140
|
}));
|
|
12141
12141
|
},
|
|
@@ -12153,10 +12153,10 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12153
12153
|
autoFormat: true,
|
|
12154
12154
|
value: affsignuppayload.phonenumber,
|
|
12155
12155
|
onChange: function onChange(event, country) {
|
|
12156
|
-
var temp = _objectSpread$
|
|
12156
|
+
var temp = _objectSpread$2f({}, affsignuppayload);
|
|
12157
12157
|
temp.phonenumber = event;
|
|
12158
12158
|
temp.countrydialcode = country.dialCode;
|
|
12159
|
-
setaffsignuppayload(_objectSpread$
|
|
12159
|
+
setaffsignuppayload(_objectSpread$2f({}, temp));
|
|
12160
12160
|
// setaffsignuppayload({ ...affsignuppayload, phonenumber: event.target.value });
|
|
12161
12161
|
},
|
|
12162
12162
|
|
|
@@ -12172,7 +12172,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12172
12172
|
className: "".concat(loginstyles2.form_control),
|
|
12173
12173
|
value: affsignuppayload.ssn,
|
|
12174
12174
|
onChange: function onChange(event) {
|
|
12175
|
-
setaffsignuppayload(_objectSpread$
|
|
12175
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12176
12176
|
ssn: event.target.value
|
|
12177
12177
|
}));
|
|
12178
12178
|
},
|
|
@@ -12188,7 +12188,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12188
12188
|
className: "".concat(loginstyles2.form_control),
|
|
12189
12189
|
value: affsignuppayload.password,
|
|
12190
12190
|
onChange: function onChange(event) {
|
|
12191
|
-
setaffsignuppayload(_objectSpread$
|
|
12191
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12192
12192
|
password: event.target.value
|
|
12193
12193
|
}));
|
|
12194
12194
|
},
|
|
@@ -12204,7 +12204,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12204
12204
|
className: "".concat(loginstyles2.form_control),
|
|
12205
12205
|
value: affsignuppayload.confirmpassword,
|
|
12206
12206
|
onChange: function onChange(event) {
|
|
12207
|
-
setaffsignuppayload(_objectSpread$
|
|
12207
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12208
12208
|
confirmpassword: event.target.value
|
|
12209
12209
|
}));
|
|
12210
12210
|
},
|
|
@@ -12257,8 +12257,8 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12257
12257
|
}), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React.createElement("span", null, langdetect == 'en' ? sectionproperties.signupbtn_contenten : sectionproperties.signupbtn_contentar)))))))));
|
|
12258
12258
|
};
|
|
12259
12259
|
|
|
12260
|
-
function ownKeys$
|
|
12261
|
-
function _objectSpread$
|
|
12260
|
+
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; }
|
|
12261
|
+
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(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; }
|
|
12262
12262
|
var AccountInformation = function AccountInformation(props) {
|
|
12263
12263
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8;
|
|
12264
12264
|
var lang = props.actions.lang;
|
|
@@ -12285,7 +12285,7 @@ var AccountInformation = function AccountInformation(props) {
|
|
|
12285
12285
|
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) {
|
|
12286
12286
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12287
12287
|
});
|
|
12288
|
-
setsectionproperties(_objectSpread$
|
|
12288
|
+
setsectionproperties(_objectSpread$2e({}, secpropobj));
|
|
12289
12289
|
}, [props.actions.StatePagePropertiesContext]);
|
|
12290
12290
|
useEffect(function () {
|
|
12291
12291
|
var cartindex = templatepropcontext.pagesnprop.findIndex(function (x) {
|
|
@@ -12447,8 +12447,8 @@ var css_248z$F = ".tabs-module_tabs__36dMY {\n position: relative;\n heigh
|
|
|
12447
12447
|
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"};
|
|
12448
12448
|
styleInject(css_248z$F);
|
|
12449
12449
|
|
|
12450
|
-
function ownKeys$
|
|
12451
|
-
function _objectSpread$
|
|
12450
|
+
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; }
|
|
12451
|
+
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(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; }
|
|
12452
12452
|
var Policies = function Policies(props) {
|
|
12453
12453
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchInstitutePolici, _fetchInstitutePolici2, _fetchInstitutePolici3;
|
|
12454
12454
|
var _useState = useState(''),
|
|
@@ -12479,7 +12479,7 @@ var Policies = function Policies(props) {
|
|
|
12479
12479
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
12480
12480
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12481
12481
|
});
|
|
12482
|
-
setsectionproperties(_objectSpread$
|
|
12482
|
+
setsectionproperties(_objectSpread$2d({}, secpropobj));
|
|
12483
12483
|
}
|
|
12484
12484
|
}, [StatePagePropertiesContext]);
|
|
12485
12485
|
useEffect(function () {
|
|
@@ -12492,9 +12492,9 @@ var Policies = function Policies(props) {
|
|
|
12492
12492
|
}
|
|
12493
12493
|
}, []);
|
|
12494
12494
|
useEffect(function () {
|
|
12495
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
12495
|
+
var tempFetchQueriesEngineContext = _objectSpread$2d({}, FetchQueriesEngineContext);
|
|
12496
12496
|
tempFetchQueriesEngineContext.fetchinstitutepolicy = true;
|
|
12497
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
12497
|
+
setFetchQueriesEngineContext(_objectSpread$2d({}, tempFetchQueriesEngineContext));
|
|
12498
12498
|
}, []);
|
|
12499
12499
|
var _useState7 = useState([]),
|
|
12500
12500
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
@@ -12724,8 +12724,8 @@ var css_248z$E = ".cart-module_cartslider_container__idend {\n transition: 0.
|
|
|
12724
12724
|
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"};
|
|
12725
12725
|
styleInject(css_248z$E);
|
|
12726
12726
|
|
|
12727
|
-
function ownKeys$
|
|
12728
|
-
function _objectSpread$
|
|
12727
|
+
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; }
|
|
12728
|
+
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(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; }
|
|
12729
12729
|
var CartSlider = function CartSlider(props) {
|
|
12730
12730
|
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12;
|
|
12731
12731
|
var lang = props.actions.lang;
|
|
@@ -12791,7 +12791,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
12791
12791
|
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) {
|
|
12792
12792
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12793
12793
|
});
|
|
12794
|
-
setsectionproperties(_objectSpread$
|
|
12794
|
+
setsectionproperties(_objectSpread$2c({}, secpropobj));
|
|
12795
12795
|
}, [CurrentPageId]);
|
|
12796
12796
|
useEffect(function () {
|
|
12797
12797
|
if (CurrentSrcTypeContext == 'workplace') {
|
|
@@ -12801,7 +12801,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
12801
12801
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
12802
12802
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12803
12803
|
});
|
|
12804
|
-
setsectionproperties(_objectSpread$
|
|
12804
|
+
setsectionproperties(_objectSpread$2c({}, secpropobj));
|
|
12805
12805
|
}
|
|
12806
12806
|
}
|
|
12807
12807
|
}, [StatePagePropertiesContext]);
|
|
@@ -13371,8 +13371,8 @@ var CartSlider = function CartSlider(props) {
|
|
|
13371
13371
|
}, langdetect == 'en' ? sectionproperties.checkoutButtonContenten : sectionproperties.checkoutButtonContentar))))))))));
|
|
13372
13372
|
};
|
|
13373
13373
|
|
|
13374
|
-
function ownKeys$
|
|
13375
|
-
function _objectSpread$
|
|
13374
|
+
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; }
|
|
13375
|
+
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(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; }
|
|
13376
13376
|
var Categoriesdropdown = function Categoriesdropdown(props) {
|
|
13377
13377
|
var _useState = useState(''),
|
|
13378
13378
|
_useState2 = _slicedToArray(_useState, 2);
|
|
@@ -13416,7 +13416,7 @@ var Categoriesdropdown = function Categoriesdropdown(props) {
|
|
|
13416
13416
|
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) {
|
|
13417
13417
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
13418
13418
|
});
|
|
13419
|
-
setsectionproperties(_objectSpread$
|
|
13419
|
+
setsectionproperties(_objectSpread$2b({}, secpropobj));
|
|
13420
13420
|
}, [CurrentPageId]);
|
|
13421
13421
|
useEffect(function () {
|
|
13422
13422
|
if (CurrentSrcTypeContext == 'workplace') {
|
|
@@ -13426,7 +13426,7 @@ var Categoriesdropdown = function Categoriesdropdown(props) {
|
|
|
13426
13426
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
13427
13427
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
13428
13428
|
});
|
|
13429
|
-
setsectionproperties(_objectSpread$
|
|
13429
|
+
setsectionproperties(_objectSpread$2b({}, secpropobj));
|
|
13430
13430
|
}
|
|
13431
13431
|
}
|
|
13432
13432
|
}, [StatePagePropertiesContext]);
|
|
@@ -13654,8 +13654,8 @@ var Categoriesdropdown = function Categoriesdropdown(props) {
|
|
|
13654
13654
|
}, CategoriesDropdown()));
|
|
13655
13655
|
};
|
|
13656
13656
|
|
|
13657
|
-
function ownKeys$
|
|
13658
|
-
function _objectSpread$
|
|
13657
|
+
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; }
|
|
13658
|
+
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(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; }
|
|
13659
13659
|
var OrderSuccess = function OrderSuccess(props) {
|
|
13660
13660
|
var _props$actions2;
|
|
13661
13661
|
props.actions.lang;
|
|
@@ -13705,7 +13705,7 @@ var OrderSuccess = function OrderSuccess(props) {
|
|
|
13705
13705
|
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) {
|
|
13706
13706
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
13707
13707
|
});
|
|
13708
|
-
setsectionproperties(_objectSpread$
|
|
13708
|
+
setsectionproperties(_objectSpread$2a({}, secpropobj));
|
|
13709
13709
|
}, [props === null || props === void 0 || (_props$actions2 = props.actions) === null || _props$actions2 === void 0 ? void 0 : _props$actions2.StatePagePropertiesContext]);
|
|
13710
13710
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
13711
13711
|
var ordersuccessstyle = {
|
|
@@ -13802,12 +13802,12 @@ var css_248z$D = ".filter-module_timeline__ROm9Q .filter-module_border_left_line
|
|
|
13802
13802
|
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"};
|
|
13803
13803
|
styleInject(css_248z$D);
|
|
13804
13804
|
|
|
13805
|
-
function ownKeys$
|
|
13806
|
-
function _objectSpread$
|
|
13805
|
+
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; }
|
|
13806
|
+
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(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; }
|
|
13807
13807
|
var Select$1 = /*#__PURE__*/React.lazy(function () {
|
|
13808
13808
|
return import('react-select');
|
|
13809
13809
|
});
|
|
13810
|
-
var Filter$
|
|
13810
|
+
var Filter$1 = function Filter(props) {
|
|
13811
13811
|
var _css;
|
|
13812
13812
|
var lang = props.actions.lang;
|
|
13813
13813
|
var langdetect = props.actions.langdetect;
|
|
@@ -13943,11 +13943,11 @@ var Filter$2 = function Filter(props) {
|
|
|
13943
13943
|
}
|
|
13944
13944
|
timeoutRef.current = setTimeout(function () {
|
|
13945
13945
|
if (raterangevalue.min != 0 || raterangevalue.max != 5) {
|
|
13946
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
13946
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
13947
13947
|
tempfetchproductsfilerobjcontext.minrate = raterangevalue.min;
|
|
13948
13948
|
tempfetchproductsfilerobjcontext.maxrate = raterangevalue.max;
|
|
13949
13949
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
13950
|
-
setProductFilterObjContext(_objectSpread$
|
|
13950
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
13951
13951
|
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
13952
13952
|
}
|
|
13953
13953
|
}, 500);
|
|
@@ -14033,33 +14033,33 @@ var Filter$2 = function Filter(props) {
|
|
|
14033
14033
|
}, [ProductFilterObjContext, fetchCategoriesQueryContext.isSuccess, fetchcollectionsQueryContext.isSuccess, instcategories, instcollections]);
|
|
14034
14034
|
useEffect(function () {
|
|
14035
14035
|
if (productfeatuesarr.length != 0) {
|
|
14036
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14036
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14037
14037
|
tempfetchproductsfilerobjcontext.prod_featruesar = productfeatuesarr;
|
|
14038
|
-
setProductFilterObjContext(_objectSpread$
|
|
14038
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14039
14039
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14040
14040
|
}
|
|
14041
14041
|
}, [productfeatuesarr]);
|
|
14042
14042
|
useEffect(function () {
|
|
14043
14043
|
if (fetchTabexStatesQueryContext.isSuccess) {
|
|
14044
14044
|
if (ProductFilterObjContext.stateid != undefined && ProductFilterObjContext.stateid != null && ProductFilterObjContext.stateid != '' && ProductFilterObjContext.stateid != 'all') {
|
|
14045
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
14045
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
14046
14046
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
14047
14047
|
tempFetchTabexStatesPayloadobjContext.state_id = ProductFilterObjContext.stateid;
|
|
14048
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
14048
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
14049
14049
|
}
|
|
14050
14050
|
}
|
|
14051
14051
|
}, [fetchTabexStatesQueryContext.isSuccess]);
|
|
14052
14052
|
var filterupdater = function filterupdater() {
|
|
14053
14053
|
setTimeout(function () {
|
|
14054
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
14054
|
+
var tempFetchQueriesEngineContext = _objectSpread$29({}, FetchQueriesEngineContext);
|
|
14055
14055
|
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
14056
14056
|
setFetchQueriesEngineContext(tempFetchQueriesEngineContext);
|
|
14057
14057
|
}, 100);
|
|
14058
14058
|
if (ProductFilterObjContext.countryid != undefined && ProductFilterObjContext.countryid != null && ProductFilterObjContext.countryid != '' && ProductFilterObjContext.countryid != 'all') {
|
|
14059
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
14059
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
14060
14060
|
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
14061
14061
|
tempFetchTabexStatesPayloadobjContext.country_id = ProductFilterObjContext.countryid;
|
|
14062
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
14062
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
14063
14063
|
}
|
|
14064
14064
|
if (instfilters.length != 0) {
|
|
14065
14065
|
var _ProductFilterObjCont3;
|
|
@@ -14121,7 +14121,7 @@ var Filter$2 = function Filter(props) {
|
|
|
14121
14121
|
}
|
|
14122
14122
|
};
|
|
14123
14123
|
var setfilterfunc = function setfilterfunc(valueid, valueindex, mainparentindex, type) {
|
|
14124
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14124
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14125
14125
|
if (type == 'clearfilters') {
|
|
14126
14126
|
tempfetchproductsfilerobjcontext.FilterOptions = [];
|
|
14127
14127
|
} else {
|
|
@@ -14145,14 +14145,14 @@ var Filter$2 = function Filter(props) {
|
|
|
14145
14145
|
tempfetchproductsfilerobjcontext.isfilter = 1;
|
|
14146
14146
|
}
|
|
14147
14147
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14148
|
-
setProductFilterObjContext(_objectSpread$
|
|
14148
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14149
14149
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14150
14150
|
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
14151
14151
|
};
|
|
14152
14152
|
|
|
14153
14153
|
var setCollectionFilterFunc = function setCollectionFilterFunc(collectionid) {
|
|
14154
14154
|
var _tempfetchproductsfil2;
|
|
14155
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14155
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14156
14156
|
var CollectionExists = false;
|
|
14157
14157
|
tempfetchproductsfilerobjcontext === null || tempfetchproductsfilerobjcontext === void 0 || (_tempfetchproductsfil2 = tempfetchproductsfilerobjcontext.collections) === null || _tempfetchproductsfil2 === void 0 || _tempfetchproductsfil2.forEach(function (filteritem, filterindex) {
|
|
14158
14158
|
if (filteritem == collectionid) {
|
|
@@ -14174,7 +14174,7 @@ var Filter$2 = function Filter(props) {
|
|
|
14174
14174
|
}
|
|
14175
14175
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14176
14176
|
tempfetchproductsfilerobjcontext.ProductFetchingType = 'Random';
|
|
14177
|
-
setProductFilterObjContext(_objectSpread$
|
|
14177
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14178
14178
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14179
14179
|
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
14180
14180
|
};
|
|
@@ -14195,11 +14195,11 @@ var Filter$2 = function Filter(props) {
|
|
|
14195
14195
|
if (state.expanded == true) {
|
|
14196
14196
|
return /*#__PURE__*/React.createElement("i", {
|
|
14197
14197
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14198
|
-
}, /*#__PURE__*/React.createElement(
|
|
14198
|
+
}, /*#__PURE__*/React.createElement(FiChevronUp, null));
|
|
14199
14199
|
} else {
|
|
14200
14200
|
return /*#__PURE__*/React.createElement("i", {
|
|
14201
14201
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14202
|
-
}, /*#__PURE__*/React.createElement(
|
|
14202
|
+
}, /*#__PURE__*/React.createElement(FiChevronDown, null));
|
|
14203
14203
|
}
|
|
14204
14204
|
}))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
|
|
14205
14205
|
className: "p-0"
|
|
@@ -14257,11 +14257,11 @@ var Filter$2 = function Filter(props) {
|
|
|
14257
14257
|
if (state.expanded == true) {
|
|
14258
14258
|
return /*#__PURE__*/React.createElement("i", {
|
|
14259
14259
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14260
|
-
}, /*#__PURE__*/React.createElement(
|
|
14260
|
+
}, /*#__PURE__*/React.createElement(FiChevronUp, null));
|
|
14261
14261
|
} else {
|
|
14262
14262
|
return /*#__PURE__*/React.createElement("i", {
|
|
14263
14263
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14264
|
-
}, /*#__PURE__*/React.createElement(
|
|
14264
|
+
}, /*#__PURE__*/React.createElement(FiChevronDown, null));
|
|
14265
14265
|
}
|
|
14266
14266
|
})), /*#__PURE__*/React.createElement("div", {
|
|
14267
14267
|
className: "col-lg-12 p-0"
|
|
@@ -14335,11 +14335,11 @@ var Filter$2 = function Filter(props) {
|
|
|
14335
14335
|
if (state.expanded == true) {
|
|
14336
14336
|
return /*#__PURE__*/React.createElement("i", {
|
|
14337
14337
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14338
|
-
}, /*#__PURE__*/React.createElement(
|
|
14338
|
+
}, /*#__PURE__*/React.createElement(FiChevronUp, null));
|
|
14339
14339
|
} else {
|
|
14340
14340
|
return /*#__PURE__*/React.createElement("i", {
|
|
14341
14341
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14342
|
-
}, /*#__PURE__*/React.createElement(
|
|
14342
|
+
}, /*#__PURE__*/React.createElement(FiChevronDown, null));
|
|
14343
14343
|
}
|
|
14344
14344
|
}))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
|
|
14345
14345
|
className: "p-0"
|
|
@@ -14378,9 +14378,7 @@ var Filter$2 = function Filter(props) {
|
|
|
14378
14378
|
setcollectionstobevisible(instcollections);
|
|
14379
14379
|
}
|
|
14380
14380
|
// style={{ cursor: 'pointer' }}
|
|
14381
|
-
}, langdetect == 'en' ? sectionproperties.showalltexten : sectionproperties.showalltextar)))))))
|
|
14382
|
-
className: "mt-3 mb-3"
|
|
14383
|
-
})));
|
|
14381
|
+
}, langdetect == 'en' ? sectionproperties.showalltexten : sectionproperties.showalltextar)))))))));
|
|
14384
14382
|
};
|
|
14385
14383
|
var DynamicFilter = function DynamicFilter() {
|
|
14386
14384
|
var _fetchProductFeatures;
|
|
@@ -14389,66 +14387,192 @@ var Filter$2 = function Filter(props) {
|
|
|
14389
14387
|
}, /*#__PURE__*/React.createElement("div", {
|
|
14390
14388
|
"class": "col-lg-12 p-0 mb-3"
|
|
14391
14389
|
}, (fetchProductFeaturesQueryContext === null || fetchProductFeaturesQueryContext === void 0 ? void 0 : fetchProductFeaturesQueryContext.isSuccess) && /*#__PURE__*/React.createElement("div", {
|
|
14392
|
-
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
14390
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3 w-100"
|
|
14393
14391
|
}, 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) {
|
|
14392
|
+
// if (item.type == 'Selectbox') {
|
|
14393
|
+
// var selectboxarr = [];
|
|
14394
|
+
// item?.featuresselectbovalue?.forEach(function (slecitem) {
|
|
14395
|
+
// var itemlabel = '';
|
|
14396
|
+
// if (langdetect == 'en') {
|
|
14397
|
+
// itemlabel = slecitem.value_en;
|
|
14398
|
+
// } else {
|
|
14399
|
+
// itemlabel = slecitem.value_ar;
|
|
14400
|
+
// }
|
|
14401
|
+
// selectboxarr.push({ label: itemlabel, value: slecitem.value_en });
|
|
14402
|
+
// });
|
|
14403
|
+
// return (
|
|
14404
|
+
// <div class="col-lg-12 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 p-0">
|
|
14405
|
+
// <label
|
|
14406
|
+
// className={' mb-3 w-100 '}
|
|
14407
|
+
// style={{
|
|
14408
|
+
// textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
14409
|
+
// color: sectionproperties.filtertitle_color,
|
|
14410
|
+
// color: sectionproperties.filtertitle_color,
|
|
14411
|
+
// fontSize: sectionproperties.filtertitle_fontsize + 'px',
|
|
14412
|
+
// fontWeight: sectionproperties.filtertitle_fontweight,
|
|
14413
|
+
// color: sectionproperties.filtertitle_color,
|
|
14414
|
+
// textTransform: 'capitalize',
|
|
14415
|
+
// }}
|
|
14416
|
+
// >
|
|
14417
|
+
// {langdetect == 'en' ? item.name_en : item.name_ar}
|
|
14418
|
+
// </label>
|
|
14419
|
+
// <div class={'col-lg-12 p-0'}>
|
|
14420
|
+
// <Select
|
|
14421
|
+
// options={selectboxarr}
|
|
14422
|
+
// styles={langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated}
|
|
14423
|
+
// placeholder={''}
|
|
14424
|
+
// onChange={(e) => {
|
|
14425
|
+
// var isattrexists = false;
|
|
14426
|
+
// var tempproductfeatuesarr = [...productfeatuesarr];
|
|
14427
|
+
// tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
|
|
14428
|
+
// if (attritem.id == item.id) {
|
|
14429
|
+
// tempproductfeatuesarr[attrindex].value = e.value;
|
|
14430
|
+
// isattrexists = true;
|
|
14431
|
+
// }
|
|
14432
|
+
// });
|
|
14433
|
+
// if (isattrexists == false) {
|
|
14434
|
+
// tempproductfeatuesarr.push({
|
|
14435
|
+
// id: item.id,
|
|
14436
|
+
// value: e.value,
|
|
14437
|
+
// });
|
|
14438
|
+
// }
|
|
14439
|
+
// setproductfeatuesarr([...tempproductfeatuesarr]);
|
|
14440
|
+
// }}
|
|
14441
|
+
// />
|
|
14442
|
+
// </div>
|
|
14443
|
+
// </div>
|
|
14444
|
+
// );
|
|
14445
|
+
// }
|
|
14394
14446
|
if (item.type == 'Selectbox') {
|
|
14395
|
-
var _item$featuresselectb
|
|
14396
|
-
|
|
14397
|
-
|
|
14398
|
-
|
|
14399
|
-
|
|
14400
|
-
|
|
14447
|
+
var _item$featuresselectb;
|
|
14448
|
+
// item?.featuresselectbovalue?.forEach(function (slecitem) {
|
|
14449
|
+
// var itemlabel = '';
|
|
14450
|
+
// var itemlabelar = '';
|
|
14451
|
+
// if (langdetect == 'en') {
|
|
14452
|
+
// itemlabel = slecitem.value_en;
|
|
14453
|
+
// } else {
|
|
14454
|
+
// itemlabel = slecitem.value_ar;
|
|
14455
|
+
// }
|
|
14456
|
+
// selectboxarr.push({ label: itemlabel, value: slecitem.value_en });
|
|
14457
|
+
// });
|
|
14458
|
+
return /*#__PURE__*/React.createElement(Accordion, {
|
|
14459
|
+
allowMultipleExpanded: true,
|
|
14460
|
+
allowZeroExpanded: true,
|
|
14461
|
+
preExpanded: [0, 1, 2, 3]
|
|
14462
|
+
}, /*#__PURE__*/React.createElement(AccordionItem, {
|
|
14463
|
+
uuid: index
|
|
14464
|
+
}, /*#__PURE__*/React.createElement(AccordionItemHeading, null, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
|
|
14465
|
+
className: filter_cssstyles.titlecontainer + ' row m-0 w-100 p-0 mb-2 pl-md-3 pr-md-3 '
|
|
14466
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
14467
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
14468
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
14469
|
+
className: langdetect == 'en' ? filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 ' : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
|
|
14470
|
+
}, langdetect == 'en' ? item.name_en : item.name_ar)), /*#__PURE__*/React.createElement("div", {
|
|
14471
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
14472
|
+
}, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
|
|
14473
|
+
if (state.expanded == true) {
|
|
14474
|
+
return /*#__PURE__*/React.createElement("i", {
|
|
14475
|
+
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14476
|
+
}, /*#__PURE__*/React.createElement(FiChevronUp, null));
|
|
14401
14477
|
} else {
|
|
14402
|
-
|
|
14478
|
+
return /*#__PURE__*/React.createElement("i", {
|
|
14479
|
+
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14480
|
+
}, /*#__PURE__*/React.createElement(FiChevronDown, null));
|
|
14403
14481
|
}
|
|
14404
|
-
|
|
14405
|
-
|
|
14406
|
-
|
|
14407
|
-
|
|
14408
|
-
}
|
|
14409
|
-
|
|
14410
|
-
|
|
14411
|
-
|
|
14412
|
-
|
|
14413
|
-
|
|
14414
|
-
|
|
14415
|
-
|
|
14416
|
-
|
|
14417
|
-
|
|
14418
|
-
|
|
14419
|
-
|
|
14420
|
-
|
|
14421
|
-
styles: langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated,
|
|
14422
|
-
placeholder: '',
|
|
14423
|
-
onChange: function onChange(e) {
|
|
14424
|
-
var isattrexists = false;
|
|
14425
|
-
var tempproductfeatuesarr = _toConsumableArray(productfeatuesarr);
|
|
14426
|
-
tempproductfeatuesarr === null || tempproductfeatuesarr === void 0 || tempproductfeatuesarr.forEach(function (attritem, attrindex) {
|
|
14427
|
-
if (attritem.id == item.id) {
|
|
14428
|
-
tempproductfeatuesarr[attrindex].value = e.value;
|
|
14429
|
-
isattrexists = true;
|
|
14430
|
-
}
|
|
14431
|
-
});
|
|
14432
|
-
if (isattrexists == false) {
|
|
14433
|
-
tempproductfeatuesarr.push({
|
|
14434
|
-
id: item.id,
|
|
14435
|
-
value: e.value
|
|
14482
|
+
}))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
|
|
14483
|
+
className: "p-0"
|
|
14484
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
14485
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
14486
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
14487
|
+
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
14488
|
+
}, item === null || item === void 0 || (_item$featuresselectb = item.featuresselectbovalue) === null || _item$featuresselectb === void 0 ? void 0 : _item$featuresselectb.map(function (slecitem, slecindex) {
|
|
14489
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
14490
|
+
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 ',
|
|
14491
|
+
onClick: function onClick(e) {
|
|
14492
|
+
var isattrexists = false;
|
|
14493
|
+
var tempproductfeatuesarr = _toConsumableArray(productfeatuesarr);
|
|
14494
|
+
tempproductfeatuesarr === null || tempproductfeatuesarr === void 0 || tempproductfeatuesarr.forEach(function (attritem, attrindex) {
|
|
14495
|
+
if (attritem.id == slecitem.id) {
|
|
14496
|
+
tempproductfeatuesarr[attrindex].value = slecitem.value_en;
|
|
14497
|
+
isattrexists = true;
|
|
14498
|
+
}
|
|
14436
14499
|
});
|
|
14500
|
+
if (isattrexists == false) {
|
|
14501
|
+
tempproductfeatuesarr.push({
|
|
14502
|
+
id: slecitem.id,
|
|
14503
|
+
value: slecitem.value_en
|
|
14504
|
+
});
|
|
14505
|
+
}
|
|
14506
|
+
setproductfeatuesarr(_toConsumableArray(tempproductfeatuesarr));
|
|
14507
|
+
|
|
14508
|
+
// setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
14437
14509
|
}
|
|
14438
|
-
|
|
14439
|
-
|
|
14440
|
-
|
|
14441
|
-
|
|
14510
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
14511
|
+
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 '
|
|
14512
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
14513
|
+
className: "h-100 d-flex align-items-center"
|
|
14514
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
14515
|
+
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
14516
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
14517
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
14518
|
+
style: {
|
|
14519
|
+
color: slecitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
14520
|
+
}
|
|
14521
|
+
}, langdetect == 'en' ? slecitem.value_en : slecitem.value_ar)));
|
|
14522
|
+
}))))))
|
|
14523
|
+
// <div class="col-lg-12 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 p-0">
|
|
14524
|
+
// <label
|
|
14525
|
+
// className={' mb-3 w-100 '}
|
|
14526
|
+
// style={{
|
|
14527
|
+
// textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
14528
|
+
// color: sectionproperties.filtertitle_color,
|
|
14529
|
+
// color: sectionproperties.filtertitle_color,
|
|
14530
|
+
// fontSize: sectionproperties.filtertitle_fontsize + 'px',
|
|
14531
|
+
// fontWeight: sectionproperties.filtertitle_fontweight,
|
|
14532
|
+
// color: sectionproperties.filtertitle_color,
|
|
14533
|
+
// textTransform: 'capitalize',
|
|
14534
|
+
// }}
|
|
14535
|
+
// >
|
|
14536
|
+
// {langdetect == 'en' ? item.name_en : item.name_ar}
|
|
14537
|
+
// </label>
|
|
14538
|
+
// <div class={'col-lg-12 p-0'}>
|
|
14539
|
+
// <Select
|
|
14540
|
+
// options={selectboxarr}
|
|
14541
|
+
// styles={langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated}
|
|
14542
|
+
// placeholder={''}
|
|
14543
|
+
// onChange={(e) => {
|
|
14544
|
+
// var isattrexists = false;
|
|
14545
|
+
// var tempproductfeatuesarr = [...productfeatuesarr];
|
|
14546
|
+
// tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
|
|
14547
|
+
// if (attritem.id == item.id) {
|
|
14548
|
+
// tempproductfeatuesarr[attrindex].value = e.value;
|
|
14549
|
+
// isattrexists = true;
|
|
14550
|
+
// }
|
|
14551
|
+
// });
|
|
14552
|
+
// if (isattrexists == false) {
|
|
14553
|
+
// tempproductfeatuesarr.push({
|
|
14554
|
+
// id: item.id,
|
|
14555
|
+
// value: e.value,
|
|
14556
|
+
// });
|
|
14557
|
+
// }
|
|
14558
|
+
// setproductfeatuesarr([...tempproductfeatuesarr]);
|
|
14559
|
+
// }}
|
|
14560
|
+
// />
|
|
14561
|
+
// </div>
|
|
14562
|
+
// </div>
|
|
14563
|
+
;
|
|
14564
|
+
}
|
|
14565
|
+
// up here
|
|
14442
14566
|
if (item.type == 'Number') {
|
|
14443
|
-
var
|
|
14567
|
+
var _ref;
|
|
14444
14568
|
return /*#__PURE__*/React.createElement("div", {
|
|
14445
14569
|
"class": "col-lg-12 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 p-0"
|
|
14446
14570
|
}, /*#__PURE__*/React.createElement("label", {
|
|
14447
14571
|
className: "".concat(filter_cssstyles.input_label_name) + ' mb-3 w-100 ',
|
|
14448
|
-
style: (
|
|
14572
|
+
style: (_ref = {
|
|
14449
14573
|
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
14450
14574
|
color: sectionproperties.filtertitle_color
|
|
14451
|
-
}, _defineProperty(
|
|
14575
|
+
}, _defineProperty(_ref, "color", sectionproperties.filtertitle_color), _defineProperty(_ref, "fontSize", sectionproperties.filtertitle_fontsize + 'px'), _defineProperty(_ref, "fontWeight", sectionproperties.filtertitle_fontweight), _defineProperty(_ref, "color", sectionproperties.filtertitle_color), _defineProperty(_ref, "textTransform", 'capitalize'), _ref)
|
|
14452
14576
|
}, langdetect == 'en' ? item.name_en : item.name_ar), /*#__PURE__*/React.createElement("div", {
|
|
14453
14577
|
"class": 'col-lg-12 p-0'
|
|
14454
14578
|
}, /*#__PURE__*/React.createElement("input", {
|
|
@@ -14475,7 +14599,7 @@ var Filter$2 = function Filter(props) {
|
|
|
14475
14599
|
})));
|
|
14476
14600
|
}
|
|
14477
14601
|
if (item.type == 'NumberRange') {
|
|
14478
|
-
var
|
|
14602
|
+
var _ref2;
|
|
14479
14603
|
var temppricevalue = {
|
|
14480
14604
|
min: 0,
|
|
14481
14605
|
max: 10000
|
|
@@ -14496,10 +14620,10 @@ var Filter$2 = function Filter(props) {
|
|
|
14496
14620
|
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-12 col-md-12 col-sm-12 mb-3 '
|
|
14497
14621
|
}, /*#__PURE__*/React.createElement("label", {
|
|
14498
14622
|
className: "".concat(filter_cssstyles.input_label_name) + ' mb-3 w-100',
|
|
14499
|
-
style: (
|
|
14623
|
+
style: (_ref2 = {
|
|
14500
14624
|
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
14501
14625
|
color: sectionproperties.filtertitle_color
|
|
14502
|
-
}, _defineProperty(
|
|
14626
|
+
}, _defineProperty(_ref2, "color", sectionproperties.filtertitle_color), _defineProperty(_ref2, "fontSize", sectionproperties.filtertitle_fontsize + 'px'), _defineProperty(_ref2, "fontWeight", sectionproperties.filtertitle_fontweight), _defineProperty(_ref2, "color", sectionproperties.filtertitle_color), _defineProperty(_ref2, "textTransform", 'capitalize'), _ref2)
|
|
14503
14627
|
}, langdetect == 'en' ? item.name_en : item.name_ar, item.type), /*#__PURE__*/React.createElement("div", {
|
|
14504
14628
|
"class": 'col-lg-12 pl-4 pr-4 mt-2 mb-2',
|
|
14505
14629
|
style: {
|
|
@@ -14538,60 +14662,70 @@ var Filter$2 = function Filter(props) {
|
|
|
14538
14662
|
}))));
|
|
14539
14663
|
};
|
|
14540
14664
|
var InstFilters = function InstFilters() {
|
|
14541
|
-
return
|
|
14542
|
-
|
|
14543
|
-
|
|
14544
|
-
|
|
14545
|
-
|
|
14546
|
-
|
|
14547
|
-
|
|
14548
|
-
|
|
14549
|
-
|
|
14550
|
-
|
|
14551
|
-
|
|
14552
|
-
|
|
14553
|
-
|
|
14554
|
-
|
|
14555
|
-
}, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
|
|
14556
|
-
if (state.expanded == true) {
|
|
14557
|
-
return /*#__PURE__*/React.createElement("i", {
|
|
14558
|
-
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14559
|
-
}, /*#__PURE__*/React.createElement(FiChevronDown, null));
|
|
14560
|
-
} else {
|
|
14561
|
-
return /*#__PURE__*/React.createElement("i", {
|
|
14562
|
-
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14563
|
-
}, /*#__PURE__*/React.createElement(FiChevronUp, null));
|
|
14564
|
-
}
|
|
14565
|
-
}))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
|
|
14566
|
-
className: "p-0"
|
|
14567
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
14568
|
-
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
14569
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
14570
|
-
className: 'col-lg-12'
|
|
14571
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
14572
|
-
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
14573
|
-
}, item.productvaluesfilter.map(function (valueitem, valueindex) {
|
|
14574
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
14575
|
-
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 ',
|
|
14576
|
-
onClick: function onClick() {
|
|
14577
|
-
setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
14578
|
-
}
|
|
14579
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
14580
|
-
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 '
|
|
14581
|
-
}, /*#__PURE__*/React.createElement("i", {
|
|
14582
|
-
className: "h-100 d-flex align-items-center"
|
|
14583
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
14584
|
-
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
14665
|
+
return (
|
|
14666
|
+
/*#__PURE__*/
|
|
14667
|
+
// <Accordion allowMultipleExpanded={true} allowZeroExpanded={true}>
|
|
14668
|
+
React.createElement(Accordion, {
|
|
14669
|
+
allowMultipleExpanded: true,
|
|
14670
|
+
allowZeroExpanded: true,
|
|
14671
|
+
preExpanded: [0, 1, 2, 3]
|
|
14672
|
+
}, instfilters.map(function (item, index) {
|
|
14673
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AccordionItem, {
|
|
14674
|
+
uuid: index
|
|
14675
|
+
}, /*#__PURE__*/React.createElement(AccordionItemHeading, null, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
|
|
14676
|
+
className: filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 mb-4 '
|
|
14677
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
14678
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
14585
14679
|
}, /*#__PURE__*/React.createElement("p", {
|
|
14586
|
-
className:
|
|
14587
|
-
|
|
14588
|
-
|
|
14680
|
+
className: langdetect == 'en' ? filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 ' : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
|
|
14681
|
+
}, langdetect == 'en' ? item.optionname : item.optionname_ar)), /*#__PURE__*/React.createElement("div", {
|
|
14682
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
14683
|
+
}, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
|
|
14684
|
+
if (state.expanded == true) {
|
|
14685
|
+
return /*#__PURE__*/React.createElement("i", {
|
|
14686
|
+
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14687
|
+
}, /*#__PURE__*/React.createElement(FiChevronUp, null));
|
|
14688
|
+
} else {
|
|
14689
|
+
return /*#__PURE__*/React.createElement("i", {
|
|
14690
|
+
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14691
|
+
}, /*#__PURE__*/React.createElement(FiChevronDown, null));
|
|
14589
14692
|
}
|
|
14590
|
-
},
|
|
14591
|
-
|
|
14592
|
-
|
|
14593
|
-
|
|
14594
|
-
|
|
14693
|
+
}))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
|
|
14694
|
+
className: "p-0"
|
|
14695
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
14696
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
14697
|
+
}, /*#__PURE__*/React.createElement("ul", {
|
|
14698
|
+
"class": "thwvsf-wrapper-ul"
|
|
14699
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
14700
|
+
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
14701
|
+
}, item.productvaluesfilter.map(function (valueitem, valueindex) {
|
|
14702
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
14703
|
+
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 ',
|
|
14704
|
+
onClick: function onClick() {
|
|
14705
|
+
setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
14706
|
+
}
|
|
14707
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
14708
|
+
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 '
|
|
14709
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
14710
|
+
className: "h-100 d-flex align-items-center"
|
|
14711
|
+
}))), item.optionname == 'Color' && /*#__PURE__*/React.createElement("div", {
|
|
14712
|
+
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
14713
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
14714
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
14715
|
+
style: {
|
|
14716
|
+
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
14717
|
+
}
|
|
14718
|
+
}, valueitem.value_identifier)), item.optionname != 'Color' && /*#__PURE__*/React.createElement("div", {
|
|
14719
|
+
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
14720
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
14721
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
14722
|
+
style: {
|
|
14723
|
+
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
14724
|
+
}
|
|
14725
|
+
}, langdetect == 'en' ? valueitem.valuename : valueitem.valuename_ar)));
|
|
14726
|
+
})))))));
|
|
14727
|
+
}))
|
|
14728
|
+
);
|
|
14595
14729
|
};
|
|
14596
14730
|
var filter_cssstyles = {
|
|
14597
14731
|
form_control: css((_css = {
|
|
@@ -14770,14 +14904,14 @@ var Filter$2 = function Filter(props) {
|
|
|
14770
14904
|
return option.id == ProductFilterObjContext.countryid;
|
|
14771
14905
|
}),
|
|
14772
14906
|
onChange: function onChange(option) {
|
|
14773
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
14907
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
14774
14908
|
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
14775
14909
|
tempFetchTabexStatesPayloadobjContext.country_id = option.id;
|
|
14776
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
14777
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14910
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
14911
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14778
14912
|
tempfetchproductsfilerobjcontext.countryid = option.id;
|
|
14779
14913
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14780
|
-
setProductFilterObjContext(_objectSpread$
|
|
14914
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14781
14915
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14782
14916
|
},
|
|
14783
14917
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -14814,14 +14948,14 @@ var Filter$2 = function Filter(props) {
|
|
|
14814
14948
|
return option.id == ProductFilterObjContext.stateid;
|
|
14815
14949
|
}),
|
|
14816
14950
|
onChange: function onChange(option) {
|
|
14817
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
14951
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
14818
14952
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
14819
14953
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
14820
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
14821
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14954
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
14955
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14822
14956
|
tempfetchproductsfilerobjcontext.stateid = option.id;
|
|
14823
14957
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14824
|
-
setProductFilterObjContext(_objectSpread$
|
|
14958
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14825
14959
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14826
14960
|
},
|
|
14827
14961
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -14858,10 +14992,10 @@ var Filter$2 = function Filter(props) {
|
|
|
14858
14992
|
return option.id == ProductFilterObjContext.cityid;
|
|
14859
14993
|
}),
|
|
14860
14994
|
onChange: function onChange(option) {
|
|
14861
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14995
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14862
14996
|
tempfetchproductsfilerobjcontext.cityid = option.id;
|
|
14863
14997
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14864
|
-
setProductFilterObjContext(_objectSpread$
|
|
14998
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14865
14999
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14866
15000
|
},
|
|
14867
15001
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -14885,11 +15019,14 @@ var Filter$2 = function Filter(props) {
|
|
|
14885
15019
|
// }
|
|
14886
15020
|
// }, []);
|
|
14887
15021
|
return /*#__PURE__*/React.createElement("div", {
|
|
14888
|
-
className
|
|
15022
|
+
// 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'}
|
|
15023
|
+
className: 'row m-0 p-0 w-100',
|
|
14889
15024
|
style: {
|
|
14890
15025
|
marginTop: sectionproperties.filtersection_mt + 'px',
|
|
14891
15026
|
minHeight: sectionproperties.filterminheight == 0 ? 'auto' : sectionproperties.filterminheight + 'vh'
|
|
14892
15027
|
}
|
|
15028
|
+
}, props.typeprops != 'vertical' && /*#__PURE__*/React.createElement("div", {
|
|
15029
|
+
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'
|
|
14893
15030
|
}, sectionproperties.filterType == 'Title & Sort By Only' && /*#__PURE__*/React.createElement("div", {
|
|
14894
15031
|
"class": "row mx-0 w-100",
|
|
14895
15032
|
style: {
|
|
@@ -14965,14 +15102,14 @@ var Filter$2 = function Filter(props) {
|
|
|
14965
15102
|
color: ischecked ? sectionproperties.activecat_color : ''
|
|
14966
15103
|
},
|
|
14967
15104
|
onClick: function onClick() {
|
|
14968
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15105
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14969
15106
|
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
14970
15107
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
14971
15108
|
} else {
|
|
14972
15109
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
|
|
14973
15110
|
}
|
|
14974
15111
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14975
|
-
setProductFilterObjContext(_objectSpread$
|
|
15112
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14976
15113
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14977
15114
|
setsortbycontext(valueitem.name);
|
|
14978
15115
|
}
|
|
@@ -15117,11 +15254,11 @@ var Filter$2 = function Filter(props) {
|
|
|
15117
15254
|
if (state.expanded == true) {
|
|
15118
15255
|
return /*#__PURE__*/React.createElement("i", {
|
|
15119
15256
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
15120
|
-
}, /*#__PURE__*/React.createElement(
|
|
15257
|
+
}, /*#__PURE__*/React.createElement(FiChevronUp, null));
|
|
15121
15258
|
} else {
|
|
15122
15259
|
return /*#__PURE__*/React.createElement("i", {
|
|
15123
15260
|
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15124
|
-
}, /*#__PURE__*/React.createElement(
|
|
15261
|
+
}, /*#__PURE__*/React.createElement(FiChevronDown, null));
|
|
15125
15262
|
}
|
|
15126
15263
|
}))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
|
|
15127
15264
|
className: "p-0"
|
|
@@ -15145,14 +15282,14 @@ var Filter$2 = function Filter(props) {
|
|
|
15145
15282
|
return /*#__PURE__*/React.createElement("div", {
|
|
15146
15283
|
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 ',
|
|
15147
15284
|
onClick: function onClick() {
|
|
15148
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15285
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15149
15286
|
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
15150
15287
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
15151
15288
|
} else {
|
|
15152
15289
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
|
|
15153
15290
|
}
|
|
15154
15291
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
15155
|
-
setProductFilterObjContext(_objectSpread$
|
|
15292
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15156
15293
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
15157
15294
|
}
|
|
15158
15295
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -15187,7 +15324,7 @@ var Filter$2 = function Filter(props) {
|
|
|
15187
15324
|
minValue: 0,
|
|
15188
15325
|
value: raterangevalue,
|
|
15189
15326
|
onChange: function onChange(value) {
|
|
15190
|
-
setraterangevalue(_objectSpread$
|
|
15327
|
+
setraterangevalue(_objectSpread$29({}, value));
|
|
15191
15328
|
}
|
|
15192
15329
|
}))))), /*#__PURE__*/React.createElement("div", {
|
|
15193
15330
|
className: "col-lg-9 col-md-9 col-sm-9 d-flex align-items-center d-md-none"
|
|
@@ -15301,11 +15438,11 @@ var Filter$2 = function Filter(props) {
|
|
|
15301
15438
|
if (state.expanded == true) {
|
|
15302
15439
|
return /*#__PURE__*/React.createElement("i", {
|
|
15303
15440
|
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15304
|
-
}, /*#__PURE__*/React.createElement(
|
|
15441
|
+
}, /*#__PURE__*/React.createElement(FiChevronUp, null));
|
|
15305
15442
|
} else {
|
|
15306
15443
|
return /*#__PURE__*/React.createElement("i", {
|
|
15307
15444
|
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15308
|
-
}, /*#__PURE__*/React.createElement(
|
|
15445
|
+
}, /*#__PURE__*/React.createElement(FiChevronDown, null));
|
|
15309
15446
|
}
|
|
15310
15447
|
}))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
|
|
15311
15448
|
className: "p-0"
|
|
@@ -15330,13 +15467,13 @@ var Filter$2 = function Filter(props) {
|
|
|
15330
15467
|
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 ',
|
|
15331
15468
|
onClick: function onClick() {
|
|
15332
15469
|
// setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
15333
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15470
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15334
15471
|
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
15335
15472
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
15336
15473
|
} else {
|
|
15337
15474
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
|
|
15338
15475
|
}
|
|
15339
|
-
setProductFilterObjContext(_objectSpread$
|
|
15476
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15340
15477
|
}
|
|
15341
15478
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
15342
15479
|
className: " ".concat(ischecked ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' mb-2 d-flex align-items-center '
|
|
@@ -15350,9 +15487,7 @@ var Filter$2 = function Filter(props) {
|
|
|
15350
15487
|
color: ischecked ? sectionproperties.activecat_color : ''
|
|
15351
15488
|
}
|
|
15352
15489
|
}, valueitem.name)));
|
|
15353
|
-
})))))))
|
|
15354
|
-
className: "mt-3 mb-3"
|
|
15355
|
-
}));
|
|
15490
|
+
}))))))));
|
|
15356
15491
|
}), sectionproperties.otherfilters == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
15357
15492
|
className: "col-lg-12"
|
|
15358
15493
|
}, /*#__PURE__*/React.createElement("hr", {
|
|
@@ -15365,570 +15500,188 @@ var Filter$2 = function Filter(props) {
|
|
|
15365
15500
|
"class": "row m-0 w-100"
|
|
15366
15501
|
}, CollectionsFilter()), sectionproperties.showdynamicfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
15367
15502
|
"class": "row m-0 w-100"
|
|
15368
|
-
}, DynamicFilter()), sectionproperties.showvariantsfilter == 'Show' && InstFilters())))))))
|
|
15369
|
-
|
|
15370
|
-
|
|
15371
|
-
|
|
15372
|
-
|
|
15373
|
-
|
|
15374
|
-
|
|
15375
|
-
|
|
15376
|
-
var langdetect = props.actions.langdetect;
|
|
15377
|
-
props.actions.productfiltercontext;
|
|
15378
|
-
props.actions.setproductfiltercontext;
|
|
15379
|
-
var ProductFilterObjContext = props.actions.ProductFilterObjContext;
|
|
15380
|
-
var setProductFilterObjContext = props.actions.setProductFilterObjContext;
|
|
15381
|
-
props.actions.authdetailsContext;
|
|
15382
|
-
var fetchproductoptionsQueryContext = props.actions.fetchproductoptionsQueryContext;
|
|
15383
|
-
var fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
|
|
15384
|
-
var routingcountext = props.actions.routingcountext;
|
|
15385
|
-
var fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
|
|
15386
|
-
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
15387
|
-
props.actions.ikimagecredcontext;
|
|
15388
|
-
var _useState = useState({
|
|
15389
|
-
min: 0,
|
|
15390
|
-
max: 10000
|
|
15391
|
-
}),
|
|
15392
|
-
_useState2 = _slicedToArray(_useState, 2);
|
|
15393
|
-
_useState2[0];
|
|
15394
|
-
_useState2[1];
|
|
15395
|
-
var _useState3 = useState([]),
|
|
15396
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
15397
|
-
productfeatuesarr = _useState4[0];
|
|
15398
|
-
_useState4[1];
|
|
15399
|
-
props.actions.fetchTabexCountriesQueryContext;
|
|
15400
|
-
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
15401
|
-
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
15402
|
-
props.actions.fetchTabexCitiesQueryContext;
|
|
15403
|
-
var fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
|
|
15404
|
-
var FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
|
|
15405
|
-
var setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
|
|
15406
|
-
props.actions.fetchProductFeaturesQueryContext;
|
|
15407
|
-
var _useState5 = useState(''),
|
|
15408
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
15409
|
-
sectionproperties = _useState6[0],
|
|
15410
|
-
setsectionproperties = _useState6[1];
|
|
15411
|
-
// const [instfilters, setinstfilters] = useState([...authdetailsContext.instinfo.instfilters]);
|
|
15412
|
-
var _useState7 = useState([]),
|
|
15413
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
15414
|
-
instfilters = _useState8[0],
|
|
15415
|
-
setinstfilters = _useState8[1];
|
|
15416
|
-
var _useState9 = useState([]),
|
|
15417
|
-
_useState10 = _slicedToArray(_useState9, 2);
|
|
15418
|
-
_useState10[0];
|
|
15419
|
-
var setcollectionstobevisible = _useState10[1];
|
|
15420
|
-
var _useState11 = useState([]),
|
|
15421
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
15422
|
-
instcollections = _useState12[0],
|
|
15423
|
-
setinstcollections = _useState12[1];
|
|
15424
|
-
var _useState13 = useState([]),
|
|
15425
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
15426
|
-
instcategories = _useState14[0],
|
|
15427
|
-
setinstcategories = _useState14[1];
|
|
15428
|
-
// const [sortby, setSortby] = useState('Sort by');
|
|
15429
|
-
var _useState15 = useState({
|
|
15430
|
-
min: 0,
|
|
15431
|
-
max: 5
|
|
15432
|
-
}),
|
|
15433
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
15434
|
-
raterangevalue = _useState16[0];
|
|
15435
|
-
_useState16[1];
|
|
15436
|
-
var timeoutRef = React.useRef(null);
|
|
15437
|
-
var _useState17 = useState(''),
|
|
15438
|
-
_useState18 = _slicedToArray(_useState17, 2);
|
|
15439
|
-
_useState18[0];
|
|
15440
|
-
_useState18[1];
|
|
15441
|
-
var _useState19 = useState([{
|
|
15442
|
-
payloadvalue: 'sortprice',
|
|
15443
|
-
name: lang.price,
|
|
15444
|
-
filterarray: [{
|
|
15445
|
-
name: lang.pricehightolow,
|
|
15446
|
-
value: 'hightolow',
|
|
15447
|
-
isfilterselected: false
|
|
15448
|
-
}, {
|
|
15449
|
-
name: lang.pricelowtohigh,
|
|
15450
|
-
value: 'lowtohigh',
|
|
15451
|
-
isfilterselected: false
|
|
15452
|
-
}]
|
|
15453
|
-
}, {
|
|
15454
|
-
payloadvalue: 'sortdates',
|
|
15455
|
-
name: lang.dates,
|
|
15456
|
-
filterarray: [{
|
|
15457
|
-
name: lang.recent,
|
|
15458
|
-
value: 'recent',
|
|
15459
|
-
isfilterselected: false
|
|
15460
|
-
}, {
|
|
15461
|
-
name: lang.oldest,
|
|
15462
|
-
value: 'old',
|
|
15463
|
-
isfilterselected: false
|
|
15464
|
-
}]
|
|
15465
|
-
}]),
|
|
15466
|
-
_useState20 = _slicedToArray(_useState19, 2);
|
|
15467
|
-
_useState20[0];
|
|
15468
|
-
_useState20[1];
|
|
15469
|
-
useEffect(function () {
|
|
15470
|
-
filterupdater();
|
|
15471
|
-
}, []);
|
|
15472
|
-
useEffect(function () {
|
|
15473
|
-
if (fetchproductoptionsQueryContext.isSuccess) {
|
|
15474
|
-
var _fetchproductoptionsQ;
|
|
15475
|
-
setinstfilters(_toConsumableArray(fetchproductoptionsQueryContext === null || fetchproductoptionsQueryContext === void 0 || (_fetchproductoptionsQ = fetchproductoptionsQueryContext.data) === null || _fetchproductoptionsQ === void 0 || (_fetchproductoptionsQ = _fetchproductoptionsQ.data) === null || _fetchproductoptionsQ === void 0 ? void 0 : _fetchproductoptionsQ.productoptions));
|
|
15476
|
-
}
|
|
15477
|
-
}, [fetchproductoptionsQueryContext.isSuccess]);
|
|
15478
|
-
useEffect(function () {
|
|
15479
|
-
if (fetchCategoriesQueryContext.isSuccess) {
|
|
15480
|
-
var _fetchCategoriesQuery;
|
|
15481
|
-
setinstcategories(_toConsumableArray(fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery === void 0 || (_fetchCategoriesQuery = _fetchCategoriesQuery.data) === null || _fetchCategoriesQuery === void 0 ? void 0 : _fetchCategoriesQuery.categories));
|
|
15482
|
-
}
|
|
15483
|
-
}, [fetchCategoriesQueryContext.isSuccess]);
|
|
15484
|
-
useEffect(function () {
|
|
15485
|
-
if (fetchcollectionsQueryContext.isSuccess) {
|
|
15486
|
-
var _fetchcollectionsQuer;
|
|
15487
|
-
setinstcollections(_toConsumableArray(fetchcollectionsQueryContext === null || fetchcollectionsQueryContext === void 0 || (_fetchcollectionsQuer = fetchcollectionsQueryContext.data) === null || _fetchcollectionsQuer === void 0 || (_fetchcollectionsQuer = _fetchcollectionsQuer.data) === null || _fetchcollectionsQuer === void 0 ? void 0 : _fetchcollectionsQuer.collections));
|
|
15488
|
-
}
|
|
15489
|
-
}, [fetchcollectionsQueryContext.isSuccess]);
|
|
15490
|
-
// useEffect(() => {
|
|
15491
|
-
// // setinstfilters([...authdetailsContext.instinfo.instfilters]);
|
|
15492
|
-
// // setinstcollections([...authdetailsContext.instinfo.instcollections]);
|
|
15493
|
-
// // setinstcategories([...authdetailsContext?.instinfo?.instcategories]);
|
|
15494
|
-
// }, [authdetailsContext]);
|
|
15495
|
-
useEffect(function () {
|
|
15496
|
-
if (props.sectionpropertiesprops != undefined && props.sectionpropertiesprops.length != 0) {
|
|
15497
|
-
setsectionproperties(props.sectionpropertiesprops);
|
|
15498
|
-
}
|
|
15499
|
-
}, [props.sectionpropertiesprops]);
|
|
15500
|
-
useEffect(function () {
|
|
15501
|
-
filterupdater();
|
|
15502
|
-
}, [ProductFilterObjContext]);
|
|
15503
|
-
React.useEffect(function () {
|
|
15504
|
-
if (timeoutRef.current !== null) {
|
|
15505
|
-
clearTimeout(timeoutRef.current);
|
|
15506
|
-
}
|
|
15507
|
-
timeoutRef.current = setTimeout(function () {
|
|
15508
|
-
if (raterangevalue.min != 0 || raterangevalue.max != 5) {
|
|
15509
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15510
|
-
tempfetchproductsfilerobjcontext.minrate = raterangevalue.min;
|
|
15511
|
-
tempfetchproductsfilerobjcontext.maxrate = raterangevalue.max;
|
|
15512
|
-
tempfetchproductsfilerobjcontext.page = 0;
|
|
15513
|
-
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15514
|
-
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
15515
|
-
}
|
|
15516
|
-
}, 500);
|
|
15517
|
-
}, [raterangevalue]);
|
|
15518
|
-
useEffect(function () {
|
|
15519
|
-
if (fetchCategoriesQueryContext.isSuccess && fetchcollectionsQueryContext.isSuccess) {
|
|
15520
|
-
if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.filterretreivetype) == 'Depend on chosen parent group') {
|
|
15521
|
-
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)) {
|
|
15522
|
-
var _parentidsfound;
|
|
15523
|
-
var collectiontobevisible = [];
|
|
15524
|
-
var parentidsfound = [];
|
|
15525
|
-
if (ProductFilterObjContext.ProductFetchingType == 'Parent Collection') {
|
|
15526
|
-
parentidsfound = ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.collections;
|
|
15527
|
-
} else if (ProductFilterObjContext.ProductFetchingType == 'Category') {
|
|
15528
|
-
instcategories === null || instcategories === void 0 || instcategories.forEach(function (catitem, catindex) {
|
|
15529
|
-
var _ProductFilterObjCont;
|
|
15530
|
-
ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont = ProductFilterObjContext.collections) === null || _ProductFilterObjCont === void 0 || _ProductFilterObjCont.forEach(function (colitem2, colindex2) {
|
|
15531
|
-
if (catitem.categoryid == colitem2) {
|
|
15532
|
-
var _catitem$parentcollet;
|
|
15533
|
-
catitem === null || catitem === void 0 || (_catitem$parentcollet = catitem.parentcolletions) === null || _catitem$parentcollet === void 0 || _catitem$parentcollet.forEach(function (parentcolitem, parentcolindex) {
|
|
15534
|
-
parentidsfound.push(parentcolitem.parentcollectionid);
|
|
15535
|
-
});
|
|
15536
|
-
}
|
|
15537
|
-
});
|
|
15538
|
-
});
|
|
15539
|
-
} else {
|
|
15540
|
-
instcategories === null || instcategories === void 0 || instcategories.forEach(function (catitem, catindex) {
|
|
15541
|
-
var _catitem$parentcollet2;
|
|
15542
|
-
catitem === null || catitem === void 0 || (_catitem$parentcollet2 = catitem.parentcolletions) === null || _catitem$parentcollet2 === void 0 || _catitem$parentcollet2.forEach(function (parentcolitem, parentcolindex) {
|
|
15543
|
-
var _parentcolitem$collec;
|
|
15544
|
-
parentcolitem === null || parentcolitem === void 0 || (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 || _parentcolitem$collec.forEach(function (colitem, colindex) {
|
|
15545
|
-
var _ProductFilterObjCont2;
|
|
15546
|
-
ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont2 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont2 === void 0 || _ProductFilterObjCont2.forEach(function (colitem2, colindex2) {
|
|
15547
|
-
if (colitem.collectionid == colitem2) {
|
|
15548
|
-
parentidsfound.push(parentcolitem.parentcollectionid);
|
|
15549
|
-
}
|
|
15550
|
-
});
|
|
15551
|
-
});
|
|
15552
|
-
});
|
|
15553
|
-
});
|
|
15554
|
-
}
|
|
15555
|
-
parentidsfound = parentidsfound.filter(function (val, id, array) {
|
|
15556
|
-
return array.indexOf(val) == id;
|
|
15557
|
-
});
|
|
15558
|
-
if (((_parentidsfound = parentidsfound) === null || _parentidsfound === void 0 ? void 0 : _parentidsfound.length) != 0) {
|
|
15559
|
-
instcategories === null || instcategories === void 0 || instcategories.forEach(function (catitem, catindex) {
|
|
15560
|
-
var _catitem$parentcollet3;
|
|
15561
|
-
catitem === null || catitem === void 0 || (_catitem$parentcollet3 = catitem.parentcolletions) === null || _catitem$parentcollet3 === void 0 || _catitem$parentcollet3.forEach(function (parentcolitem, parentcolindex) {
|
|
15562
|
-
var _parentidsfound2;
|
|
15563
|
-
(_parentidsfound2 = parentidsfound) === null || _parentidsfound2 === void 0 || _parentidsfound2.forEach(function (parentidfounditem, parentidfoundindex) {
|
|
15564
|
-
if (parentidfounditem == (parentcolitem === null || parentcolitem === void 0 ? void 0 : parentcolitem.parentcollectionid)) {
|
|
15565
|
-
var _parentcolitem$collec2;
|
|
15566
|
-
parentcolitem === null || parentcolitem === void 0 || (_parentcolitem$collec2 = parentcolitem.collections) === null || _parentcolitem$collec2 === void 0 || _parentcolitem$collec2.forEach(function (colitem, colindex) {
|
|
15567
|
-
var iscolexists = false;
|
|
15568
|
-
collectiontobevisible === null || collectiontobevisible === void 0 || collectiontobevisible.forEach(function (colitemex, colindexex) {
|
|
15569
|
-
if (colitemex.collectionid == colitem.collectionid) {
|
|
15570
|
-
iscolexists = true;
|
|
15571
|
-
}
|
|
15572
|
-
});
|
|
15573
|
-
if (iscolexists == false) {
|
|
15574
|
-
collectiontobevisible.push(colitem);
|
|
15575
|
-
}
|
|
15576
|
-
});
|
|
15577
|
-
}
|
|
15578
|
-
});
|
|
15579
|
-
});
|
|
15580
|
-
});
|
|
15581
|
-
if ((collectiontobevisible === null || collectiontobevisible === void 0 ? void 0 : collectiontobevisible.length) != 0) {
|
|
15582
|
-
setcollectionstobevisible(collectiontobevisible);
|
|
15583
|
-
} else {
|
|
15584
|
-
setcollectionstobevisible(instcollections);
|
|
15585
|
-
}
|
|
15586
|
-
} else {
|
|
15587
|
-
setcollectionstobevisible(instcollections);
|
|
15588
|
-
}
|
|
15589
|
-
} else {
|
|
15590
|
-
setcollectionstobevisible(instcollections);
|
|
15591
|
-
}
|
|
15592
|
-
} else {
|
|
15593
|
-
setcollectionstobevisible(instcollections);
|
|
15594
|
-
}
|
|
15595
|
-
}
|
|
15596
|
-
}, [ProductFilterObjContext, fetchCategoriesQueryContext.isSuccess, fetchcollectionsQueryContext.isSuccess, instcategories, instcollections]);
|
|
15597
|
-
useEffect(function () {
|
|
15598
|
-
if (productfeatuesarr.length != 0) {
|
|
15599
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15600
|
-
tempfetchproductsfilerobjcontext.prod_featruesar = productfeatuesarr;
|
|
15601
|
-
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15602
|
-
filterrouting(tempfetchproductsfilerobjcontext);
|
|
15603
|
-
}
|
|
15604
|
-
}, [productfeatuesarr]);
|
|
15605
|
-
useEffect(function () {
|
|
15606
|
-
if (fetchTabexStatesQueryContext.isSuccess) {
|
|
15607
|
-
if (ProductFilterObjContext.stateid != undefined && ProductFilterObjContext.stateid != null && ProductFilterObjContext.stateid != '' && ProductFilterObjContext.stateid != 'all') {
|
|
15608
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
15609
|
-
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
15610
|
-
tempFetchTabexStatesPayloadobjContext.state_id = ProductFilterObjContext.stateid;
|
|
15611
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
15612
|
-
}
|
|
15613
|
-
}
|
|
15614
|
-
}, [fetchTabexStatesQueryContext.isSuccess]);
|
|
15615
|
-
var filterupdater = function filterupdater() {
|
|
15616
|
-
setTimeout(function () {
|
|
15617
|
-
var tempFetchQueriesEngineContext = _objectSpread$29({}, FetchQueriesEngineContext);
|
|
15618
|
-
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
15619
|
-
setFetchQueriesEngineContext(tempFetchQueriesEngineContext);
|
|
15620
|
-
}, 100);
|
|
15621
|
-
if (ProductFilterObjContext.countryid != undefined && ProductFilterObjContext.countryid != null && ProductFilterObjContext.countryid != '' && ProductFilterObjContext.countryid != 'all') {
|
|
15622
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
15623
|
-
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
15624
|
-
tempFetchTabexStatesPayloadobjContext.country_id = ProductFilterObjContext.countryid;
|
|
15625
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
15626
|
-
}
|
|
15627
|
-
if (instfilters.length != 0) {
|
|
15628
|
-
var _ProductFilterObjCont3;
|
|
15629
|
-
var tempinstfilters = _toConsumableArray(instfilters);
|
|
15630
|
-
tempinstfilters === null || tempinstfilters === void 0 || tempinstfilters.forEach(function (instfilteritem, instfilterindex) {
|
|
15631
|
-
instfilteritem.productvaluesfilter.forEach(function (valefilteritem, valefilteritemindex) {
|
|
15632
|
-
valefilteritem.isfilterselected = false;
|
|
15633
|
-
});
|
|
15634
|
-
});
|
|
15635
|
-
ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont3 = ProductFilterObjContext.FilterOptions) === null || _ProductFilterObjCont3 === void 0 || _ProductFilterObjCont3.forEach(function (filteritem, filterindex) {
|
|
15636
|
-
tempinstfilters === null || tempinstfilters === void 0 || tempinstfilters.forEach(function (instfilteritem, instfilterindex) {
|
|
15637
|
-
var _instfilteritem$produ;
|
|
15638
|
-
instfilteritem === null || instfilteritem === void 0 || (_instfilteritem$produ = instfilteritem.productvaluesfilter) === null || _instfilteritem$produ === void 0 || _instfilteritem$produ.forEach(function (valefilteritem, valefilteritemindex) {
|
|
15639
|
-
if (filteritem.valueid == valefilteritem.valueid) {
|
|
15640
|
-
valefilteritem.isfilterselected = true;
|
|
15641
|
-
}
|
|
15642
|
-
});
|
|
15643
|
-
});
|
|
15644
|
-
});
|
|
15645
|
-
setinstfilters(_toConsumableArray(tempinstfilters));
|
|
15646
|
-
}
|
|
15647
|
-
if (instcategories.length != 0) {
|
|
15648
|
-
var _ProductFilterObjCont4;
|
|
15649
|
-
var tempInstcategories = _toConsumableArray(instcategories);
|
|
15650
|
-
tempInstcategories.forEach(function (catitem, catindex) {
|
|
15651
|
-
catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
|
|
15652
|
-
parentcolitem.collections.forEach(function (colitem, colindex) {
|
|
15653
|
-
colitem.isfilterselected = false;
|
|
15654
|
-
});
|
|
15655
|
-
});
|
|
15656
|
-
});
|
|
15657
|
-
ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont4 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont4 === void 0 || _ProductFilterObjCont4.forEach(function (filteritem, filterindex) {
|
|
15658
|
-
tempInstcategories.forEach(function (catitem, catindex) {
|
|
15659
|
-
catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
|
|
15660
|
-
parentcolitem.collections.forEach(function (colitem, colindex) {
|
|
15661
|
-
if (colitem.collectionid == filteritem) {
|
|
15662
|
-
colitem.isfilterselected = true;
|
|
15663
|
-
}
|
|
15664
|
-
});
|
|
15665
|
-
});
|
|
15666
|
-
});
|
|
15667
|
-
});
|
|
15668
|
-
setinstcategories(_toConsumableArray(tempInstcategories));
|
|
15669
|
-
}
|
|
15670
|
-
if (instcollections.length != 0) {
|
|
15671
|
-
var _ProductFilterObjCont5;
|
|
15672
|
-
var tempInstcollections = _toConsumableArray(instcollections);
|
|
15673
|
-
tempInstcollections.forEach(function (instfilteritem, valefilteritemindex) {
|
|
15674
|
-
instfilteritem.isfilterselected = false;
|
|
15675
|
-
});
|
|
15676
|
-
ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont5 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont5 === void 0 || _ProductFilterObjCont5.forEach(function (filteritem, filterindex) {
|
|
15677
|
-
tempInstcollections === null || tempInstcollections === void 0 || tempInstcollections.forEach(function (instfilteritem, instfilterindex) {
|
|
15678
|
-
if (instfilteritem.collectionid == filteritem) {
|
|
15679
|
-
instfilteritem.isfilterselected = true;
|
|
15680
|
-
}
|
|
15681
|
-
});
|
|
15682
|
-
});
|
|
15683
|
-
setinstcollections(_toConsumableArray(tempInstcollections));
|
|
15684
|
-
}
|
|
15685
|
-
};
|
|
15686
|
-
var setfilterfunc = function setfilterfunc(valueid, valueindex, mainparentindex, type) {
|
|
15687
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15688
|
-
if (type == 'clearfilters') {
|
|
15689
|
-
tempfetchproductsfilerobjcontext.FilterOptions = [];
|
|
15690
|
-
} else {
|
|
15691
|
-
var _tempfetchproductsfil;
|
|
15692
|
-
var FilterExists = false;
|
|
15693
|
-
tempfetchproductsfilerobjcontext === null || tempfetchproductsfilerobjcontext === void 0 || (_tempfetchproductsfil = tempfetchproductsfilerobjcontext.FilterOptions) === null || _tempfetchproductsfil === void 0 || _tempfetchproductsfil.forEach(function (filteritem, filterindex) {
|
|
15694
|
-
if (filteritem.valueid == valueid) {
|
|
15695
|
-
FilterExists = true;
|
|
15696
|
-
tempfetchproductsfilerobjcontext.FilterOptions.splice(filterindex, 1);
|
|
15697
|
-
}
|
|
15698
|
-
});
|
|
15699
|
-
if (!FilterExists) {
|
|
15700
|
-
tempfetchproductsfilerobjcontext.FilterOptions.push({
|
|
15701
|
-
valueid: valueid
|
|
15702
|
-
});
|
|
15703
|
-
}
|
|
15704
|
-
}
|
|
15705
|
-
if (tempfetchproductsfilerobjcontext.FilterOptions.length == 0) {
|
|
15706
|
-
tempfetchproductsfilerobjcontext.isfilter = 0;
|
|
15707
|
-
} else {
|
|
15708
|
-
tempfetchproductsfilerobjcontext.isfilter = 1;
|
|
15709
|
-
}
|
|
15710
|
-
tempfetchproductsfilerobjcontext.page = 0;
|
|
15711
|
-
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15712
|
-
filterrouting(tempfetchproductsfilerobjcontext);
|
|
15713
|
-
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
15714
|
-
};
|
|
15715
|
-
var InstFilters = function InstFilters() {
|
|
15716
|
-
return /*#__PURE__*/React.createElement(Accordion, {
|
|
15717
|
-
allowMultipleExpanded: true,
|
|
15718
|
-
allowZeroExpanded: true
|
|
15719
|
-
}, instfilters.map(function (item, index) {
|
|
15720
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AccordionItem, {
|
|
15721
|
-
uuid: index
|
|
15722
|
-
}, /*#__PURE__*/React.createElement(AccordionItemHeading, null, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
|
|
15723
|
-
className: filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '
|
|
15724
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
15725
|
-
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
15726
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
15727
|
-
className: langdetect == 'en' ? filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 ' : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
|
|
15728
|
-
}, langdetect == 'en' ? item.optionname : item.optionname_ar)), /*#__PURE__*/React.createElement("div", {
|
|
15729
|
-
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
15730
|
-
}, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
|
|
15731
|
-
if (state.expanded == true) {
|
|
15732
|
-
return /*#__PURE__*/React.createElement("i", {
|
|
15733
|
-
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
15734
|
-
}, /*#__PURE__*/React.createElement(FiChevronDown, null));
|
|
15735
|
-
} else {
|
|
15736
|
-
return /*#__PURE__*/React.createElement("i", {
|
|
15737
|
-
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
15738
|
-
}, /*#__PURE__*/React.createElement(FiChevronUp, null));
|
|
15739
|
-
}
|
|
15740
|
-
}))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
|
|
15741
|
-
className: "p-0"
|
|
15742
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
15743
|
-
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
15744
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
15745
|
-
className: 'col-lg-12'
|
|
15746
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
15747
|
-
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
15748
|
-
}, item.productvaluesfilter.map(function (valueitem, valueindex) {
|
|
15749
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
15750
|
-
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 ',
|
|
15751
|
-
onClick: function onClick() {
|
|
15752
|
-
setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
15753
|
-
}
|
|
15754
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
15755
|
-
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 '
|
|
15756
|
-
}, /*#__PURE__*/React.createElement("i", {
|
|
15757
|
-
className: "h-100 d-flex align-items-center"
|
|
15758
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
15759
|
-
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
15760
|
-
}, item.optionname == 'Color' && /*#__PURE__*/React.createElement("p", {
|
|
15761
|
-
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
15762
|
-
style: {
|
|
15763
|
-
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
15764
|
-
}
|
|
15765
|
-
}, valueitem.value_identifier), item.optionname != 'Color' && /*#__PURE__*/React.createElement("p", {
|
|
15766
|
-
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
15767
|
-
style: {
|
|
15768
|
-
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
15769
|
-
}
|
|
15770
|
-
}, langdetect == 'en' ? valueitem.valuename : valueitem.valuename_ar)));
|
|
15771
|
-
})))))), /*#__PURE__*/React.createElement("hr", {
|
|
15772
|
-
className: "mt-3 mb-3"
|
|
15773
|
-
}));
|
|
15774
|
-
}));
|
|
15775
|
-
};
|
|
15776
|
-
var filter_cssstyles = {
|
|
15777
|
-
form_control: css((_css = {
|
|
15778
|
-
position: 'relative',
|
|
15779
|
-
display: 'flex',
|
|
15780
|
-
alignItems: 'center'
|
|
15781
|
-
}, _defineProperty(_css, "display", 'block'), _defineProperty(_css, "width", '100%'), _defineProperty(_css, "padding", '0 30px'), _defineProperty(_css, "transition", '.3s'), _defineProperty(_css, "fontWeight", 500), _defineProperty(_css, "border", '1px solid #ccc'), _defineProperty(_css, "borderRadius", '5px'), _defineProperty(_css, "height", '40px'), _defineProperty(_css, "background", 'transparent'), _defineProperty(_css, "color", '#000'), _defineProperty(_css, "fontSize", '14px'), _defineProperty(_css, ':focus', {
|
|
15782
|
-
// borderColor: sectionproperties.inputfeildbordercoloronfocus,
|
|
15783
|
-
borderColor: '#eac435',
|
|
15784
|
-
boxShadow: 'none'
|
|
15785
|
-
}), _css)),
|
|
15786
|
-
collapsetitle: css({
|
|
15787
|
-
fontSize: sectionproperties.filtertitle_fontsize + 'px',
|
|
15788
|
-
fontWeight: sectionproperties.filtertitle_fontweight,
|
|
15789
|
-
textTransform: sectionproperties.filtertitle_texttransform,
|
|
15790
|
-
color: sectionproperties.filtertitle_color,
|
|
15791
|
-
':hover': {
|
|
15792
|
-
color: sectionproperties.filtertitle_coloronhover
|
|
15793
|
-
}
|
|
15794
|
-
}),
|
|
15795
|
-
titlecontainer: css({
|
|
15796
|
-
color: sectionproperties.filtertitle_color,
|
|
15797
|
-
':hover .collapsetitle': {
|
|
15798
|
-
color: sectionproperties.filtertitle_coloronhover
|
|
15799
|
-
}
|
|
15800
|
-
}),
|
|
15801
|
-
timeline_text: css({
|
|
15802
|
-
fontSize: sectionproperties.timeline_text_fontsize + 'px',
|
|
15803
|
-
fontWeight: sectionproperties.timeline_text_fontweight,
|
|
15804
|
-
textTransform: sectionproperties.timeline_text_texttransform,
|
|
15805
|
-
color: sectionproperties.timeline_text_color,
|
|
15806
|
-
transition: '.3s',
|
|
15807
|
-
':hover': {
|
|
15808
|
-
color: sectionproperties.timeline_text_coloronhover
|
|
15809
|
-
}
|
|
15810
|
-
}),
|
|
15811
|
-
btnstyles: css({
|
|
15812
|
-
color: sectionproperties.generalbtn_textColor,
|
|
15813
|
-
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
15814
|
-
textTransform: sectionproperties.generalbtn_texttransform,
|
|
15815
|
-
width: sectionproperties.generalbtn_width + 'px',
|
|
15816
|
-
height: sectionproperties.generalbtn_height + 'px',
|
|
15817
|
-
background: sectionproperties.generalbtn_bgColor,
|
|
15818
|
-
borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
|
|
15819
|
-
borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
|
|
15820
|
-
borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
|
|
15821
|
-
borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
|
|
15822
|
-
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
15823
|
-
transition: '.3s',
|
|
15824
|
-
':hover': {
|
|
15825
|
-
background: sectionproperties.generalbtn_bgColoronhover,
|
|
15826
|
-
color: sectionproperties.generalbtn_textColoronhover
|
|
15827
|
-
}
|
|
15828
|
-
}),
|
|
15829
|
-
close_menu_icon_cont: css({
|
|
15830
|
-
background: sectionproperties.closeSliderBgColor,
|
|
15831
|
-
width: sectionproperties.closeSliderWidth + 'px',
|
|
15832
|
-
height: sectionproperties.closeSliderHeight + 'px',
|
|
15833
|
-
borderRadius: sectionproperties.closeSlider_borderBottomLeftRadius + 'px',
|
|
15834
|
-
':hover': {
|
|
15835
|
-
background: sectionproperties.closeSliderBgColorHover
|
|
15836
|
-
}
|
|
15837
|
-
}),
|
|
15838
|
-
horizontalfilter_card: css({
|
|
15839
|
-
marginBottom: sectionproperties.horizontalfilter_mb + 'px',
|
|
15840
|
-
marginTop: sectionproperties.horizontalfilter_mt + 'px',
|
|
15841
|
-
background: sectionproperties.horizontalfilter_cardbg,
|
|
15842
|
-
border: sectionproperties.horizontalfilter_cardborderwidth + 'px solid ' + sectionproperties.horizontalfilter_cardbordercolor,
|
|
15843
|
-
boxShadow: sectionproperties.horizontalfilter_cardboxShadow == 'Show' ? sectionproperties.horizontalfilter_cardboxShadowcolor : 'horizontalfilter_cardboxShadow'
|
|
15844
|
-
}),
|
|
15845
|
-
btn_item: css({
|
|
15846
|
-
width: '20px',
|
|
15847
|
-
height: '20px',
|
|
15848
|
-
background: sectionproperties.filteritembtn_bgcolor,
|
|
15849
|
-
':hover': {
|
|
15850
|
-
background: sectionproperties.filteritembtn_bghover
|
|
15851
|
-
}
|
|
15852
|
-
}),
|
|
15853
|
-
btn_item_active: css({
|
|
15854
|
-
background: sectionproperties.btn_item_activebgcolor
|
|
15855
|
-
}),
|
|
15856
|
-
timelineinnercont_active: css({
|
|
15857
|
-
fontWeight: sectionproperties.activecat_fontweight,
|
|
15858
|
-
color: sectionproperties.activecat_color
|
|
15859
|
-
}),
|
|
15860
|
-
categoryName: css({
|
|
15861
|
-
color: sectionproperties.filtertitle_color,
|
|
15862
|
-
fontWeight: sectionproperties.filterCatFontWeight,
|
|
15863
|
-
fontSize: sectionproperties.filterCatFontSize + 'px'
|
|
15864
|
-
}),
|
|
15865
|
-
pCollectionName: css({
|
|
15866
|
-
color: sectionproperties.filtertitle_color,
|
|
15867
|
-
fontWeight: sectionproperties.filterPCollFontWeight,
|
|
15868
|
-
fontSize: sectionproperties.filterPCollFontSize + 'px'
|
|
15869
|
-
}),
|
|
15870
|
-
explorebtn: css({
|
|
15871
|
-
fontSize: sectionproperties.explorebtnfontsize + 'px',
|
|
15872
|
-
fontWeight: 600,
|
|
15873
|
-
color: sectionproperties.explorebtncolor,
|
|
15874
|
-
transition: '.3s',
|
|
15875
|
-
':hover': {
|
|
15876
|
-
color: sectionproperties.explorebtncoloronhover
|
|
15877
|
-
}
|
|
15878
|
-
}),
|
|
15879
|
-
showallbtn: css({
|
|
15880
|
-
color: sectionproperties.showallcolor,
|
|
15881
|
-
':hover': {
|
|
15882
|
-
transition: '.3s',
|
|
15883
|
-
cursor: 'pointer',
|
|
15884
|
-
color: sectionproperties.showallcolorhover
|
|
15885
|
-
}
|
|
15886
|
-
}),
|
|
15887
|
-
sectiontitle: css({
|
|
15888
|
-
position: 'relative',
|
|
15889
|
-
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
|
|
15890
|
-
width: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '100%' : '',
|
|
15891
|
-
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
15892
|
-
'@media (max-width: 800px)': {
|
|
15893
|
-
fontSize: sectionproperties.sectionTitleFontSizeresp + 'px'
|
|
15894
|
-
}
|
|
15895
|
-
})
|
|
15896
|
-
};
|
|
15897
|
-
var filterrouting = function filterrouting(tempfetchproductsfilerobjcontext) {
|
|
15898
|
-
var path = window.location.pathname.split('/');
|
|
15899
|
-
var currentpagepath = path[1];
|
|
15900
|
-
var pagenamepathinstaticpagelinkcont = '';
|
|
15901
|
-
for (var key in StaticPagesLinksContext) {
|
|
15902
|
-
if (StaticPagesLinksContext[key] == currentpagepath) {
|
|
15903
|
-
pagenamepathinstaticpagelinkcont = key;
|
|
15904
|
-
}
|
|
15503
|
+
}, DynamicFilter()), sectionproperties.showvariantsfilter == 'Show' && InstFilters()))))))), props.typeprops == 'vertical' && /*#__PURE__*/React.createElement("div", {
|
|
15504
|
+
className: 'col-lg-12 p-0 w-100 filter mt-md-0 d-md-none'
|
|
15505
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15506
|
+
className: "".concat(filterstyles.filterslider_container) + ' pb-md-5 ',
|
|
15507
|
+
id: "filterslider",
|
|
15508
|
+
style: {
|
|
15509
|
+
background: sectionproperties.filter_backgroundcolor,
|
|
15510
|
+
borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px'
|
|
15905
15511
|
}
|
|
15906
|
-
|
|
15907
|
-
|
|
15512
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15513
|
+
className: filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '
|
|
15514
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15515
|
+
className: "col-lg-9 col-md-9 col-sm-9 d-none align-items-center d-md-flex"
|
|
15516
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
15517
|
+
className: "m-0 p-0 font-16 font-weight-600",
|
|
15518
|
+
style: {
|
|
15519
|
+
color: sectionproperties.filter_titlecolor,
|
|
15520
|
+
fontSize: sectionproperties.filter_titlefontsize + 'px',
|
|
15521
|
+
fontWeight: sectionproperties.filter_titlefontweight,
|
|
15522
|
+
textTransform: sectionproperties.filter_titletextransform
|
|
15908
15523
|
}
|
|
15909
|
-
}
|
|
15910
|
-
|
|
15911
|
-
|
|
15912
|
-
|
|
15913
|
-
|
|
15914
|
-
|
|
15915
|
-
|
|
15916
|
-
|
|
15917
|
-
|
|
15918
|
-
|
|
15919
|
-
|
|
15920
|
-
|
|
15921
|
-
// temp = queryParameters.get('sortprice');
|
|
15922
|
-
// alert(temp);
|
|
15923
|
-
// }
|
|
15924
|
-
// }, []);
|
|
15925
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
15926
|
-
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',
|
|
15524
|
+
}, langdetect == 'en' ? 'Filter' : 'فلترة')), /*#__PURE__*/React.createElement("div", {
|
|
15525
|
+
className: "col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0"
|
|
15526
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15527
|
+
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 ',
|
|
15528
|
+
onClick: function onClick() {
|
|
15529
|
+
var element = document.getElementById('filterslider');
|
|
15530
|
+
element.classList.remove(filterstyles.filterslider_container_opened);
|
|
15531
|
+
}
|
|
15532
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
15533
|
+
className: "h-100 d-flex align-items-center justify-content-center"
|
|
15534
|
+
}, /*#__PURE__*/React.createElement(IoMdClose, {
|
|
15535
|
+
size: sectionproperties.closeSlider_fontSize,
|
|
15927
15536
|
style: {
|
|
15928
|
-
|
|
15929
|
-
|
|
15537
|
+
color: sectionproperties.closeSlider_color
|
|
15538
|
+
}
|
|
15539
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
15540
|
+
className: filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 pl-4 pr-4 '
|
|
15541
|
+
}, sectionproperties.showcountriesfilter == 'Show' && Countriesfilter(), sectionproperties.showvariantsfilter == 'Show' && InstFilters(), sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
15542
|
+
"class": "row m-0 w-100 mb-3"
|
|
15543
|
+
}, CategoriesFilter()), sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
15544
|
+
"class": "row m-0 w-100 mb-3"
|
|
15545
|
+
}, CollectionsFilter()), sectionproperties.showdynamicfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
15546
|
+
"class": "row m-0 w-100 mb-3"
|
|
15547
|
+
}, DynamicFilter())))), /*#__PURE__*/React.createElement("div", {
|
|
15548
|
+
className: "col-lg-12"
|
|
15549
|
+
}, /*#__PURE__*/React.createElement(Offcanvas, {
|
|
15550
|
+
show: props === null || props === void 0 ? void 0 : props.openFilterSlider,
|
|
15551
|
+
onHide: function onHide() {
|
|
15552
|
+
props.setopenFilterSlider(false);
|
|
15553
|
+
},
|
|
15554
|
+
placement: "end",
|
|
15555
|
+
scroll: true,
|
|
15556
|
+
style: {
|
|
15557
|
+
minWidth: '200px',
|
|
15558
|
+
background: sectionproperties.filter_backgroundcolor,
|
|
15559
|
+
borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px'
|
|
15560
|
+
},
|
|
15561
|
+
backdrop: true
|
|
15562
|
+
}, /*#__PURE__*/React.createElement(Offcanvas.Header, null, /*#__PURE__*/React.createElement(Offcanvas.Title, null, /*#__PURE__*/React.createElement("div", {
|
|
15563
|
+
className: "row m-0 w-100 mt-2"
|
|
15564
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15565
|
+
className: "col-lg-9 col-md-9 col-sm-9 d-none align-items-center d-md-flex"
|
|
15566
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
15567
|
+
className: "m-0 p-0 font-16 font-weight-600",
|
|
15568
|
+
style: {
|
|
15569
|
+
color: sectionproperties.filter_titlecolor,
|
|
15570
|
+
fontSize: sectionproperties.filter_titlefontsize + 'px',
|
|
15571
|
+
fontWeight: sectionproperties.filter_titlefontweight,
|
|
15572
|
+
textTransform: sectionproperties.filter_titletextransform
|
|
15573
|
+
}
|
|
15574
|
+
}, langdetect == 'en' ? 'Filter' : 'فلترة')), /*#__PURE__*/React.createElement("div", {
|
|
15575
|
+
className: "col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0"
|
|
15576
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15577
|
+
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 ',
|
|
15578
|
+
onClick: function onClick() {
|
|
15579
|
+
props.setopenFilterSlider(false);
|
|
15580
|
+
}
|
|
15581
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
15582
|
+
className: "h-100 d-flex align-items-center justify-content-center"
|
|
15583
|
+
}, /*#__PURE__*/React.createElement(IoMdClose, {
|
|
15584
|
+
size: sectionproperties.closeSlider_fontSize,
|
|
15585
|
+
style: {
|
|
15586
|
+
color: sectionproperties.closeSlider_color
|
|
15930
15587
|
}
|
|
15931
|
-
},
|
|
15588
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
15589
|
+
"class": "col-lg-12"
|
|
15590
|
+
}, /*#__PURE__*/React.createElement("hr", {
|
|
15591
|
+
"class": "mt-2 mb-2"
|
|
15592
|
+
}))))), /*#__PURE__*/React.createElement(Offcanvas.Body, null, /*#__PURE__*/React.createElement("div", {
|
|
15593
|
+
className: ' pb-md-5 ',
|
|
15594
|
+
style: {
|
|
15595
|
+
background: sectionproperties.filter_backgroundcolor,
|
|
15596
|
+
borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px'
|
|
15597
|
+
}
|
|
15598
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15599
|
+
className: filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '
|
|
15600
|
+
}, sectionproperties.otherfilters == 'Show' && otherfilters.map(function (item, index) {
|
|
15601
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Accordion, {
|
|
15602
|
+
allowMultipleExpanded: true,
|
|
15603
|
+
allowZeroExpanded: true,
|
|
15604
|
+
preExpanded: [0, 1, 2, 3],
|
|
15605
|
+
style: {
|
|
15606
|
+
width: '100%'
|
|
15607
|
+
}
|
|
15608
|
+
}, /*#__PURE__*/React.createElement(AccordionItem, {
|
|
15609
|
+
uuid: index
|
|
15610
|
+
}, /*#__PURE__*/React.createElement(AccordionItemHeading, null, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
|
|
15611
|
+
className: filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '
|
|
15612
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15613
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
15614
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
15615
|
+
className: langdetect == 'en' ? filter_cssstyles.collapsetitle + ' m-0 p-0 ' : filter_cssstyles.collapsetitle + ' m-0 p-0 text-right'
|
|
15616
|
+
}, item.name)), /*#__PURE__*/React.createElement("div", {
|
|
15617
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
15618
|
+
}, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
|
|
15619
|
+
if (state.expanded == true) {
|
|
15620
|
+
return /*#__PURE__*/React.createElement("i", {
|
|
15621
|
+
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15622
|
+
}, /*#__PURE__*/React.createElement(FiChevronUp, null));
|
|
15623
|
+
} else {
|
|
15624
|
+
return /*#__PURE__*/React.createElement("i", {
|
|
15625
|
+
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15626
|
+
}, /*#__PURE__*/React.createElement(FiChevronDown, null));
|
|
15627
|
+
}
|
|
15628
|
+
}))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
|
|
15629
|
+
className: "p-0"
|
|
15630
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15631
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex"
|
|
15632
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15633
|
+
className: 'col-lg-12'
|
|
15634
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15635
|
+
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
15636
|
+
}, item.filterarray.map(function (valueitem, valueindex) {
|
|
15637
|
+
var ischecked = false;
|
|
15638
|
+
if (item.payloadvalue == 'sortprice') {
|
|
15639
|
+
if (valueitem.value == ProductFilterObjContext.sortprice) {
|
|
15640
|
+
ischecked = true;
|
|
15641
|
+
}
|
|
15642
|
+
} else if (item.payloadvalue == 'sortdates') {
|
|
15643
|
+
if (valueitem.value == ProductFilterObjContext.sortdates) {
|
|
15644
|
+
ischecked = true;
|
|
15645
|
+
}
|
|
15646
|
+
}
|
|
15647
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
15648
|
+
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 ',
|
|
15649
|
+
onClick: function onClick() {
|
|
15650
|
+
// setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
15651
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15652
|
+
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
15653
|
+
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
15654
|
+
} else {
|
|
15655
|
+
tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
|
|
15656
|
+
}
|
|
15657
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15658
|
+
}
|
|
15659
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
15660
|
+
className: " ".concat(ischecked ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' mb-2 d-flex align-items-center '
|
|
15661
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
15662
|
+
className: "h-100 d-flex align-items-center"
|
|
15663
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
15664
|
+
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
15665
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
15666
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
15667
|
+
style: {
|
|
15668
|
+
color: ischecked ? sectionproperties.activecat_color : ''
|
|
15669
|
+
}
|
|
15670
|
+
}, valueitem.name)));
|
|
15671
|
+
}))))))));
|
|
15672
|
+
}), sectionproperties.otherfilters == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
15673
|
+
className: "col-lg-12"
|
|
15674
|
+
}, /*#__PURE__*/React.createElement("hr", {
|
|
15675
|
+
className: "mt-2 mb-3"
|
|
15676
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
15677
|
+
className: filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 '
|
|
15678
|
+
}, sectionproperties.showcountriesfilter == 'Show' && Countriesfilter(), sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
15679
|
+
"class": "row m-0 w-100"
|
|
15680
|
+
}, CategoriesFilter()), sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
15681
|
+
"class": "row m-0 w-100"
|
|
15682
|
+
}, CollectionsFilter()), sectionproperties.showdynamicfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
15683
|
+
"class": "row m-0 w-100"
|
|
15684
|
+
}, DynamicFilter()), sectionproperties.showvariantsfilter == 'Show' && InstFilters()))))))));
|
|
15932
15685
|
};
|
|
15933
15686
|
|
|
15934
15687
|
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; }
|
|
@@ -17506,19 +17259,21 @@ var CardsSection = function CardsSection(props) {
|
|
|
17506
17259
|
}
|
|
17507
17260
|
}, plainString(show_product_group_titles()['description_en']))), sectionproperties.showFilter == 'show' && /*#__PURE__*/React.createElement("div", {
|
|
17508
17261
|
className: sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 d-flex p-0' : sectionproperties.numofcols == '2' ? 'col-lg-2 d-flex' : 'col-lg-3 d-flex'
|
|
17509
|
-
}, /*#__PURE__*/React.createElement(Filter$
|
|
17262
|
+
}, /*#__PURE__*/React.createElement(Filter$1, {
|
|
17510
17263
|
sectionpropertiesprops: sectionproperties,
|
|
17511
17264
|
actions: actions,
|
|
17512
17265
|
openFilterSlider: openFilterSlider,
|
|
17513
17266
|
setopenFilterSlider: setopenFilterSlider,
|
|
17514
17267
|
show_product_group_titles: show_product_group_titles
|
|
17515
17268
|
})), sectionproperties.showvariantfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
17516
|
-
className: 'col-lg-
|
|
17269
|
+
className: sectionproperties.numofcols == '2' ? 'col-lg-2 d-flex' : 'col-lg-3 d-flex'
|
|
17517
17270
|
}, /*#__PURE__*/React.createElement(Filter$1, {
|
|
17518
17271
|
sectionpropertiesprops: sectionproperties,
|
|
17519
17272
|
actions: actions,
|
|
17520
17273
|
openFilterSlider: openFilterSlider,
|
|
17521
|
-
setopenFilterSlider: setopenFilterSlider
|
|
17274
|
+
setopenFilterSlider: setopenFilterSlider,
|
|
17275
|
+
show_product_group_titles: show_product_group_titles,
|
|
17276
|
+
typeprops: 'vertical'
|
|
17522
17277
|
})), fetchingtype == 'custom' && /*#__PURE__*/React.createElement(React.Fragment, null, cardsrender()), fetchingtype != 'custom' && cardsrender()));
|
|
17523
17278
|
};
|
|
17524
17279
|
|