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.cjs.js
CHANGED
|
@@ -679,8 +679,8 @@ var Imagekitimagecomp = function Imagekitimagecomp(props) {
|
|
|
679
679
|
}));
|
|
680
680
|
};
|
|
681
681
|
|
|
682
|
-
function ownKeys$
|
|
683
|
-
function _objectSpread$
|
|
682
|
+
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; }
|
|
683
|
+
function _objectSpread$2v(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2v(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2v(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
684
684
|
var Login = function Login(props) {
|
|
685
685
|
var _css;
|
|
686
686
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -756,7 +756,7 @@ var Login = function Login(props) {
|
|
|
756
756
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
757
757
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
758
758
|
});
|
|
759
|
-
setsectionproperties(_objectSpread$
|
|
759
|
+
setsectionproperties(_objectSpread$2v({}, secpropobj));
|
|
760
760
|
}
|
|
761
761
|
}, [StatePagePropertiesContext]);
|
|
762
762
|
React.useEffect(function () {
|
|
@@ -923,9 +923,9 @@ var Login = function Login(props) {
|
|
|
923
923
|
className: "".concat(loginstyles2.form_control),
|
|
924
924
|
value: payloadobj.email,
|
|
925
925
|
onChange: function onChange(event) {
|
|
926
|
-
var temppayloadobj = _objectSpread$
|
|
926
|
+
var temppayloadobj = _objectSpread$2v({}, payloadobj);
|
|
927
927
|
temppayloadobj.email = event.target.value;
|
|
928
|
-
setpayloadobj(_objectSpread$
|
|
928
|
+
setpayloadobj(_objectSpread$2v({}, temppayloadobj));
|
|
929
929
|
},
|
|
930
930
|
style: {
|
|
931
931
|
background: sectionproperties.input_bgcolor
|
|
@@ -947,9 +947,9 @@ var Login = function Login(props) {
|
|
|
947
947
|
textplaceholder: "",
|
|
948
948
|
value: payloadobj.password,
|
|
949
949
|
onChange: function onChange(event) {
|
|
950
|
-
var temppayloadobj = _objectSpread$
|
|
950
|
+
var temppayloadobj = _objectSpread$2v({}, payloadobj);
|
|
951
951
|
temppayloadobj.password = event.target.value;
|
|
952
|
-
setpayloadobj(_objectSpread$
|
|
952
|
+
setpayloadobj(_objectSpread$2v({}, temppayloadobj));
|
|
953
953
|
},
|
|
954
954
|
style: {
|
|
955
955
|
background: sectionproperties.input_bgcolor
|
|
@@ -1126,9 +1126,9 @@ var Login = function Login(props) {
|
|
|
1126
1126
|
className: "".concat(loginstyles2.form_control),
|
|
1127
1127
|
value: forgotpasswordpayload.email,
|
|
1128
1128
|
onChange: function onChange(event) {
|
|
1129
|
-
var temppayloadobj = _objectSpread$
|
|
1129
|
+
var temppayloadobj = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1130
1130
|
temppayloadobj.email = event.target.value;
|
|
1131
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1131
|
+
setforgotpasswordpayload(_objectSpread$2v({}, temppayloadobj));
|
|
1132
1132
|
},
|
|
1133
1133
|
disabled: forgetpasswordstage == 'verify' ? true : false,
|
|
1134
1134
|
style: {
|
|
@@ -1143,9 +1143,9 @@ var Login = function Login(props) {
|
|
|
1143
1143
|
className: "".concat(loginstyles2.form_control),
|
|
1144
1144
|
value: forgotpasswordpayload.code,
|
|
1145
1145
|
onChange: function onChange(event) {
|
|
1146
|
-
var temppayloadobj = _objectSpread$
|
|
1146
|
+
var temppayloadobj = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1147
1147
|
temppayloadobj.code = event.target.value;
|
|
1148
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1148
|
+
setforgotpasswordpayload(_objectSpread$2v({}, temppayloadobj));
|
|
1149
1149
|
},
|
|
1150
1150
|
style: {
|
|
1151
1151
|
background: sectionproperties.input_bgcolor
|
|
@@ -1159,9 +1159,9 @@ var Login = function Login(props) {
|
|
|
1159
1159
|
className: "".concat(loginstyles2.form_control),
|
|
1160
1160
|
value: forgotpasswordpayload.newpassword,
|
|
1161
1161
|
onChange: function onChange(event) {
|
|
1162
|
-
var temppayloadobj = _objectSpread$
|
|
1162
|
+
var temppayloadobj = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1163
1163
|
temppayloadobj.newpassword = event.target.value;
|
|
1164
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1164
|
+
setforgotpasswordpayload(_objectSpread$2v({}, temppayloadobj));
|
|
1165
1165
|
},
|
|
1166
1166
|
style: {
|
|
1167
1167
|
background: sectionproperties.input_bgcolor
|
|
@@ -1175,9 +1175,9 @@ var Login = function Login(props) {
|
|
|
1175
1175
|
className: "".concat(loginstyles2.form_control),
|
|
1176
1176
|
value: forgotpasswordpayload.confirmnewpassword,
|
|
1177
1177
|
onChange: function onChange(event) {
|
|
1178
|
-
var temppayloadobj = _objectSpread$
|
|
1178
|
+
var temppayloadobj = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1179
1179
|
temppayloadobj.confirmnewpassword = event.target.value;
|
|
1180
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1180
|
+
setforgotpasswordpayload(_objectSpread$2v({}, temppayloadobj));
|
|
1181
1181
|
},
|
|
1182
1182
|
style: {
|
|
1183
1183
|
background: sectionproperties.input_bgcolor
|
|
@@ -1189,7 +1189,7 @@ var Login = function Login(props) {
|
|
|
1189
1189
|
onClick: function onClick() {
|
|
1190
1190
|
if (forgotpasswordpayload.email.length != 0) {
|
|
1191
1191
|
var runfunc = false;
|
|
1192
|
-
var tempforgotpasswordpayload = _objectSpread$
|
|
1192
|
+
var tempforgotpasswordpayload = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1193
1193
|
tempforgotpasswordpayload.functype = forgetpasswordstage;
|
|
1194
1194
|
if (forgetpasswordstage == 'verify') {
|
|
1195
1195
|
if (tempforgotpasswordpayload.newpassword.length != 0 && tempforgotpasswordpayload.code.length != 0) {
|
|
@@ -1240,11 +1240,11 @@ var css_248z$J = "@media screen and (max-width: 800px) {\n .signup-module_rig
|
|
|
1240
1240
|
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"};
|
|
1241
1241
|
styleInject(css_248z$J);
|
|
1242
1242
|
|
|
1243
|
-
function ownKeys$
|
|
1244
|
-
function _objectSpread$
|
|
1243
|
+
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; }
|
|
1244
|
+
function _objectSpread$2u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2u(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1245
1245
|
var selectcustomStyles = {
|
|
1246
1246
|
option: function option(provided, state) {
|
|
1247
|
-
return _objectSpread$
|
|
1247
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1248
1248
|
borderBottom: '1px solid #e6e6e6',
|
|
1249
1249
|
backgroundColor: state.isSelected ? '' : '',
|
|
1250
1250
|
padding: 5,
|
|
@@ -1273,7 +1273,7 @@ var selectcustomStyles = {
|
|
|
1273
1273
|
};
|
|
1274
1274
|
var selectcustomStylesTranslated = {
|
|
1275
1275
|
option: function option(provided, state) {
|
|
1276
|
-
return _objectSpread$
|
|
1276
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1277
1277
|
borderBottom: '1px solid #e6e6e6',
|
|
1278
1278
|
backgroundColor: state.isSelected ? '' : '',
|
|
1279
1279
|
padding: 5,
|
|
@@ -1302,14 +1302,14 @@ var selectcustomStylesTranslated = {
|
|
|
1302
1302
|
};
|
|
1303
1303
|
},
|
|
1304
1304
|
placeholder: function placeholder(provided, state) {
|
|
1305
|
-
return _objectSpread$
|
|
1305
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1306
1306
|
textAlign: 'right'
|
|
1307
1307
|
});
|
|
1308
1308
|
}
|
|
1309
1309
|
};
|
|
1310
1310
|
var defaultstyles = {
|
|
1311
1311
|
option: function option(provided, state) {
|
|
1312
|
-
return _objectSpread$
|
|
1312
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1313
1313
|
borderBottom: '1px solid #e6e6e6',
|
|
1314
1314
|
backgroundColor: state.isSelected ? '' : '',
|
|
1315
1315
|
padding: 5,
|
|
@@ -1337,7 +1337,7 @@ var defaultstyles = {
|
|
|
1337
1337
|
}), _ref;
|
|
1338
1338
|
},
|
|
1339
1339
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1340
|
-
return _objectSpread$
|
|
1340
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1341
1341
|
'&:hover': {
|
|
1342
1342
|
// color: '#eac435',
|
|
1343
1343
|
}
|
|
@@ -1346,7 +1346,7 @@ var defaultstyles = {
|
|
|
1346
1346
|
};
|
|
1347
1347
|
var defaultstylestranslated = {
|
|
1348
1348
|
option: function option(provided, state) {
|
|
1349
|
-
return _objectSpread$
|
|
1349
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1350
1350
|
borderBottom: '1px solid #e6e6e6',
|
|
1351
1351
|
backgroundColor: state.isSelected ? '' : '',
|
|
1352
1352
|
padding: 5,
|
|
@@ -1377,21 +1377,21 @@ var defaultstylestranslated = {
|
|
|
1377
1377
|
};
|
|
1378
1378
|
},
|
|
1379
1379
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1380
|
-
return _objectSpread$
|
|
1380
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1381
1381
|
'&:hover': {
|
|
1382
1382
|
// color: '#eac435',
|
|
1383
1383
|
}
|
|
1384
1384
|
});
|
|
1385
1385
|
},
|
|
1386
1386
|
placeholder: function placeholder(provided, state) {
|
|
1387
|
-
return _objectSpread$
|
|
1387
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1388
1388
|
textAlign: 'right'
|
|
1389
1389
|
});
|
|
1390
1390
|
}
|
|
1391
1391
|
};
|
|
1392
1392
|
var defaultstylesnone = {
|
|
1393
1393
|
option: function option(provided, state) {
|
|
1394
|
-
return _objectSpread$
|
|
1394
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1395
1395
|
borderBottom: '1px solid #e6e6e6',
|
|
1396
1396
|
backgroundColor: state.isSelected ? '' : '',
|
|
1397
1397
|
padding: 5,
|
|
@@ -1419,7 +1419,7 @@ var defaultstylesnone = {
|
|
|
1419
1419
|
};
|
|
1420
1420
|
},
|
|
1421
1421
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1422
|
-
return _objectSpread$
|
|
1422
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1423
1423
|
'&:hover': {
|
|
1424
1424
|
// color: '#eac435',
|
|
1425
1425
|
}
|
|
@@ -2012,8 +2012,8 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
2012
2012
|
}, 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))))));
|
|
2013
2013
|
};
|
|
2014
2014
|
|
|
2015
|
-
function ownKeys$
|
|
2016
|
-
function _objectSpread$
|
|
2015
|
+
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; }
|
|
2016
|
+
function _objectSpread$2t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2t(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2017
2017
|
var ProductExtraFields = function ProductExtraFields(props) {
|
|
2018
2018
|
var _fetchProductInfoQuer, _css, _fetchProductInfoQuer2;
|
|
2019
2019
|
props.actions.lang;
|
|
@@ -2068,9 +2068,9 @@ var ProductExtraFields = function ProductExtraFields(props) {
|
|
|
2068
2068
|
});
|
|
2069
2069
|
}
|
|
2070
2070
|
setproductextravaluesarray(_toConsumableArray__default["default"](tempproductextravaluesarray));
|
|
2071
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2071
|
+
var tempaddtocardpayloadobj = _objectSpread$2t({}, addtocardpayloadobj);
|
|
2072
2072
|
tempaddtocardpayloadobj.extrafields = tempproductextravaluesarray;
|
|
2073
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2073
|
+
setaddtocardpayloadobj(_objectSpread$2t({}, tempaddtocardpayloadobj));
|
|
2074
2074
|
};
|
|
2075
2075
|
var formstyles = {
|
|
2076
2076
|
input_label_name: glamor.css({
|
|
@@ -2285,8 +2285,8 @@ var DescriptionContent = function DescriptionContent(props) {
|
|
|
2285
2285
|
})))));
|
|
2286
2286
|
};
|
|
2287
2287
|
|
|
2288
|
-
function ownKeys$
|
|
2289
|
-
function _objectSpread$
|
|
2288
|
+
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; }
|
|
2289
|
+
function _objectSpread$2s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2s(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2290
2290
|
var Product_itemtype = function Product_itemtype(props) {
|
|
2291
2291
|
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;
|
|
2292
2292
|
var lang = props.actions.lang;
|
|
@@ -2846,11 +2846,11 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2846
2846
|
}, sectionproperties.quantitybtneditable == 'No' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2847
2847
|
className: "".concat(productinfo_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
2848
2848
|
onClick: function onClick() {
|
|
2849
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2849
|
+
var tempaddtocardpayloadobj = _objectSpread$2s({}, addtocardpayloadobj);
|
|
2850
2850
|
if (tempaddtocardpayloadobj.quantity > 0) {
|
|
2851
2851
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity - 1;
|
|
2852
2852
|
}
|
|
2853
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2853
|
+
setaddtocardpayloadobj(_objectSpread$2s({}, tempaddtocardpayloadobj));
|
|
2854
2854
|
}
|
|
2855
2855
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2856
2856
|
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-down' : 'h-100 allcentered',
|
|
@@ -2864,9 +2864,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2864
2864
|
}, addtocardpayloadobj.quantity), sectionproperties.quantitybtneditable == 'No' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2865
2865
|
className: "".concat(productinfo_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
2866
2866
|
onClick: function onClick() {
|
|
2867
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2867
|
+
var tempaddtocardpayloadobj = _objectSpread$2s({}, addtocardpayloadobj);
|
|
2868
2868
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + 1;
|
|
2869
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2869
|
+
setaddtocardpayloadobj(_objectSpread$2s({}, tempaddtocardpayloadobj));
|
|
2870
2870
|
}
|
|
2871
2871
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2872
2872
|
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-up' : 'h-100 allcentered'
|
|
@@ -2891,13 +2891,13 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2891
2891
|
value: addtocardpayloadobj.quantity,
|
|
2892
2892
|
onChange: function onChange(event) {
|
|
2893
2893
|
if (event.target.value == NaN || event.target.value == undefined || event.target.value == null || event.target.value == '') {
|
|
2894
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2894
|
+
var tempaddtocardpayloadobj = _objectSpread$2s({}, addtocardpayloadobj);
|
|
2895
2895
|
tempaddtocardpayloadobj.quantity = 1;
|
|
2896
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2896
|
+
setaddtocardpayloadobj(_objectSpread$2s({}, tempaddtocardpayloadobj));
|
|
2897
2897
|
} else {
|
|
2898
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2898
|
+
var tempaddtocardpayloadobj = _objectSpread$2s({}, addtocardpayloadobj);
|
|
2899
2899
|
tempaddtocardpayloadobj.quantity = parseInt(event.target.value);
|
|
2900
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2900
|
+
setaddtocardpayloadobj(_objectSpread$2s({}, tempaddtocardpayloadobj));
|
|
2901
2901
|
}
|
|
2902
2902
|
}
|
|
2903
2903
|
})), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer27 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer27 === void 0 || (_fetchProductInfoQuer27 = _fetchProductInfoQuer27.data) === null || _fetchProductInfoQuer27 === void 0 || (_fetchProductInfoQuer27 = _fetchProductInfoQuer27.productinfo) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : _fetchProductInfoQuer27.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
@@ -3413,8 +3413,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3413
3413
|
}, ShareButtonsContainer()))))))));
|
|
3414
3414
|
};
|
|
3415
3415
|
|
|
3416
|
-
function ownKeys$
|
|
3417
|
-
function _objectSpread$
|
|
3416
|
+
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; }
|
|
3417
|
+
function _objectSpread$2r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2r(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3418
3418
|
var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
3419
3419
|
var _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer17, _fetchProductInfoQuer18;
|
|
3420
3420
|
var langdetect = props.actions.langdetect;
|
|
@@ -3455,7 +3455,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3455
3455
|
slots = _useState6[0],
|
|
3456
3456
|
setslots = _useState6[1];
|
|
3457
3457
|
React.useEffect(function () {
|
|
3458
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3458
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3459
3459
|
item_type: 'service'
|
|
3460
3460
|
}));
|
|
3461
3461
|
}, [tabsarray]);
|
|
@@ -3467,16 +3467,16 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3467
3467
|
if (diffDays.toString() != 'NaN') {
|
|
3468
3468
|
if (date2 <= date1) {
|
|
3469
3469
|
NotificationManager.warning('', 'Please choose another date.');
|
|
3470
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3470
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3471
3471
|
quantity: 0
|
|
3472
3472
|
}));
|
|
3473
3473
|
} else {
|
|
3474
3474
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= diffDays && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= diffDays) {
|
|
3475
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3475
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3476
3476
|
quantity: diffDays
|
|
3477
3477
|
}));
|
|
3478
3478
|
} else {
|
|
3479
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3479
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3480
3480
|
quantity: 0
|
|
3481
3481
|
}));
|
|
3482
3482
|
NotificationManager.warning('', 'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
|
|
@@ -3690,7 +3690,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3690
3690
|
});
|
|
3691
3691
|
if (reservedslotArrtobetaken.length != 0) {
|
|
3692
3692
|
reservedslottobetaken = reservedslotArrtobetaken[0].slot;
|
|
3693
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3693
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3694
3694
|
time: reservedslottobetaken,
|
|
3695
3695
|
reserved_slots: reservedslotArrtobetaken,
|
|
3696
3696
|
quantity: parseInt(reservedslotArrtobetaken.length)
|
|
@@ -3749,7 +3749,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3749
3749
|
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,
|
|
3750
3750
|
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,
|
|
3751
3751
|
onChange: function onChange(event) {
|
|
3752
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3752
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3753
3753
|
from: event.target.value
|
|
3754
3754
|
}));
|
|
3755
3755
|
}
|
|
@@ -3769,7 +3769,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3769
3769
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
3770
3770
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
3771
3771
|
onChange: function onChange(event) {
|
|
3772
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3772
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3773
3773
|
to: event.target.value
|
|
3774
3774
|
}));
|
|
3775
3775
|
}
|
|
@@ -3789,7 +3789,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3789
3789
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
3790
3790
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
3791
3791
|
onChange: function onChange(event) {
|
|
3792
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3792
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3793
3793
|
date: event.target.value
|
|
3794
3794
|
}));
|
|
3795
3795
|
setcurrentmutatestate('/fetchserviceslots');
|
|
@@ -3848,7 +3848,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3848
3848
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3849
3849
|
"class": TabsStyles.booknow_btn_resp + ' allcentered ',
|
|
3850
3850
|
onClick: function onClick() {
|
|
3851
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3851
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3852
3852
|
time: item.slot
|
|
3853
3853
|
}));
|
|
3854
3854
|
}
|
|
@@ -4626,8 +4626,8 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
4626
4626
|
}, StoreInfoprops()))));
|
|
4627
4627
|
};
|
|
4628
4628
|
|
|
4629
|
-
function ownKeys$
|
|
4630
|
-
function _objectSpread$
|
|
4629
|
+
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; }
|
|
4630
|
+
function _objectSpread$2q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2q(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4631
4631
|
var AddReview = function AddReview(props) {
|
|
4632
4632
|
var _css;
|
|
4633
4633
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -4679,7 +4679,7 @@ var AddReview = function AddReview(props) {
|
|
|
4679
4679
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
4680
4680
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
4681
4681
|
});
|
|
4682
|
-
setsectionproperties(_objectSpread$
|
|
4682
|
+
setsectionproperties(_objectSpread$2q({}, secpropobj));
|
|
4683
4683
|
}
|
|
4684
4684
|
}, [StatePagePropertiesContext]);
|
|
4685
4685
|
React.useEffect(function () {
|
|
@@ -4688,7 +4688,7 @@ var AddReview = function AddReview(props) {
|
|
|
4688
4688
|
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) {
|
|
4689
4689
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
4690
4690
|
});
|
|
4691
|
-
setsectionproperties(_objectSpread$
|
|
4691
|
+
setsectionproperties(_objectSpread$2q({}, secpropobj));
|
|
4692
4692
|
}, [pageindexcontext]);
|
|
4693
4693
|
var reviewstyles = {
|
|
4694
4694
|
submitreviewbtn: glamor.css({
|
|
@@ -4814,9 +4814,9 @@ var AddReview = function AddReview(props) {
|
|
|
4814
4814
|
}),
|
|
4815
4815
|
activeColor: "#ffd700",
|
|
4816
4816
|
onChange: function onChange(event) {
|
|
4817
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
4817
|
+
var tempreviewpayloadobj = _objectSpread$2q({}, reviewpayloadobj);
|
|
4818
4818
|
tempreviewpayloadobj.reviewrate = event;
|
|
4819
|
-
setreviewpayloadobj(_objectSpread$
|
|
4819
|
+
setreviewpayloadobj(_objectSpread$2q({}, tempreviewpayloadobj));
|
|
4820
4820
|
}
|
|
4821
4821
|
})))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4822
4822
|
"class": "col-lg-12"
|
|
@@ -4830,9 +4830,9 @@ var AddReview = function AddReview(props) {
|
|
|
4830
4830
|
"class": reviewstyles.form_control,
|
|
4831
4831
|
value: reviewpayloadobj.reviewname,
|
|
4832
4832
|
onChange: function onChange(event) {
|
|
4833
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
4833
|
+
var tempreviewpayloadobj = _objectSpread$2q({}, reviewpayloadobj);
|
|
4834
4834
|
tempreviewpayloadobj.reviewname = event.target.value;
|
|
4835
|
-
setreviewpayloadobj(_objectSpread$
|
|
4835
|
+
setreviewpayloadobj(_objectSpread$2q({}, tempreviewpayloadobj));
|
|
4836
4836
|
}
|
|
4837
4837
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4838
4838
|
"class": "col-lg-12 mb-4"
|
|
@@ -4842,9 +4842,9 @@ var AddReview = function AddReview(props) {
|
|
|
4842
4842
|
"class": reviewstyles.form_control,
|
|
4843
4843
|
value: reviewpayloadobj.reviewtitle,
|
|
4844
4844
|
onChange: function onChange(event) {
|
|
4845
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
4845
|
+
var tempreviewpayloadobj = _objectSpread$2q({}, reviewpayloadobj);
|
|
4846
4846
|
tempreviewpayloadobj.reviewtitle = event.target.value;
|
|
4847
|
-
setreviewpayloadobj(_objectSpread$
|
|
4847
|
+
setreviewpayloadobj(_objectSpread$2q({}, tempreviewpayloadobj));
|
|
4848
4848
|
}
|
|
4849
4849
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4850
4850
|
"class": "col-lg-12 mb-4"
|
|
@@ -4855,9 +4855,9 @@ var AddReview = function AddReview(props) {
|
|
|
4855
4855
|
"class": reviewstyles.form_control + ' form_control ',
|
|
4856
4856
|
value: reviewpayloadobj.reviewbody,
|
|
4857
4857
|
onChange: function onChange(event) {
|
|
4858
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
4858
|
+
var tempreviewpayloadobj = _objectSpread$2q({}, reviewpayloadobj);
|
|
4859
4859
|
tempreviewpayloadobj.reviewbody = event.target.value;
|
|
4860
|
-
setreviewpayloadobj(_objectSpread$
|
|
4860
|
+
setreviewpayloadobj(_objectSpread$2q({}, tempreviewpayloadobj));
|
|
4861
4861
|
},
|
|
4862
4862
|
style: {
|
|
4863
4863
|
resize: 'none',
|
|
@@ -4892,8 +4892,8 @@ var AddReview = function AddReview(props) {
|
|
|
4892
4892
|
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)));
|
|
4893
4893
|
};
|
|
4894
4894
|
|
|
4895
|
-
function ownKeys$
|
|
4896
|
-
function _objectSpread$
|
|
4895
|
+
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; }
|
|
4896
|
+
function _objectSpread$2p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2p(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4897
4897
|
var ProductReviews = function ProductReviews(props) {
|
|
4898
4898
|
var _fetchProductInfoQuer, _fetchProductInfoQuer3, _fetchProductInfoQuer4;
|
|
4899
4899
|
props.actions.lang;
|
|
@@ -5127,7 +5127,7 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
5127
5127
|
size: "md",
|
|
5128
5128
|
"class": "reviewmodal"
|
|
5129
5129
|
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement(AddReview, {
|
|
5130
|
-
actions: _objectSpread$
|
|
5130
|
+
actions: _objectSpread$2p(_objectSpread$2p({}, actions), {}, {
|
|
5131
5131
|
productid: productid,
|
|
5132
5132
|
canuserreview: canuserreview,
|
|
5133
5133
|
addreviewcallback: addreviewcallback
|
|
@@ -5135,8 +5135,8 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
5135
5135
|
}))));
|
|
5136
5136
|
};
|
|
5137
5137
|
|
|
5138
|
-
function ownKeys$
|
|
5139
|
-
function _objectSpread$
|
|
5138
|
+
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; }
|
|
5139
|
+
function _objectSpread$2o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2o(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5140
5140
|
var Productinfo = function Productinfo(props) {
|
|
5141
5141
|
var _css, _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
|
|
5142
5142
|
var _useState = React.useState({}),
|
|
@@ -5165,7 +5165,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5165
5165
|
setfetchProductInfoQueryContext = _useState4[1];
|
|
5166
5166
|
React.useEffect(function () {
|
|
5167
5167
|
if (fetchProductInfoQueryContextProps.isSuccess) {
|
|
5168
|
-
setProductInfoObj(_objectSpread$
|
|
5168
|
+
setProductInfoObj(_objectSpread$2o({}, fetchProductInfoQueryContextProps.data));
|
|
5169
5169
|
setfetchProductInfoQueryContext(fetchProductInfoQueryContextProps);
|
|
5170
5170
|
}
|
|
5171
5171
|
}, [props.actions, props, fetchProductInfoQueryContextProps.data, fetchProductInfoQueryContextProps.isSuccess]);
|
|
@@ -5281,7 +5281,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5281
5281
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
5282
5282
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
5283
5283
|
});
|
|
5284
|
-
setsectionproperties(_objectSpread$
|
|
5284
|
+
setsectionproperties(_objectSpread$2o({}, secpropobj));
|
|
5285
5285
|
setTabIndex(0);
|
|
5286
5286
|
settabname('descriptiontab');
|
|
5287
5287
|
if (sectionproperties.prodCatShow == 'Hide' || sectionproperties.descriptionposition != 'Bottom') {
|
|
@@ -5321,7 +5321,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5321
5321
|
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) {
|
|
5322
5322
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
5323
5323
|
});
|
|
5324
|
-
setsectionproperties(_objectSpread$
|
|
5324
|
+
setsectionproperties(_objectSpread$2o({}, secpropobj));
|
|
5325
5325
|
}, [pageindexcontext]);
|
|
5326
5326
|
React.useEffect(function () {
|
|
5327
5327
|
if (productidparam == undefined) {
|
|
@@ -5341,12 +5341,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
5341
5341
|
}
|
|
5342
5342
|
}, [ProductInfoObj, isloaded]);
|
|
5343
5343
|
var productidassigner = function productidassigner(productid) {
|
|
5344
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
5344
|
+
var tempFetchQueriesEngineContext = _objectSpread$2o({}, FetchQueriesEngineContext);
|
|
5345
5345
|
tempFetchQueriesEngineContext.fetchproductinfo = true;
|
|
5346
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
5347
|
-
var tempfetchproductinfoObjContext = _objectSpread$
|
|
5346
|
+
setFetchQueriesEngineContext(_objectSpread$2o({}, tempFetchQueriesEngineContext));
|
|
5347
|
+
var tempfetchproductinfoObjContext = _objectSpread$2o({}, fetchproductinfoObjContext);
|
|
5348
5348
|
tempfetchproductinfoObjContext.productid = productid;
|
|
5349
|
-
setfetchproductinfoObjContext(_objectSpread$
|
|
5349
|
+
setfetchproductinfoObjContext(_objectSpread$2o({}, tempfetchproductinfoObjContext));
|
|
5350
5350
|
};
|
|
5351
5351
|
React.useEffect(function () {
|
|
5352
5352
|
if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && ikimagecredcontext != undefined) {
|
|
@@ -5383,9 +5383,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
5383
5383
|
}
|
|
5384
5384
|
setproductimagesarray([].concat(tempproductimagesarray));
|
|
5385
5385
|
variantchecker();
|
|
5386
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5386
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5387
5387
|
tempaddtocardpayloadobj.productid = fetchProductInfoQueryContext.data.data.productinfo.productid;
|
|
5388
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5388
|
+
setaddtocardpayloadobj(_objectSpread$2o({}, tempaddtocardpayloadobj));
|
|
5389
5389
|
setRelatedProductsTagid(fetchProductInfoQueryContext.data.data.productinfo.maintagid);
|
|
5390
5390
|
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) {
|
|
5391
5391
|
GeneralAPIMutationContext.mutate({
|
|
@@ -5436,7 +5436,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5436
5436
|
});
|
|
5437
5437
|
variantchecker();
|
|
5438
5438
|
variantcompleting();
|
|
5439
|
-
setProductInfoObj(_objectSpread$
|
|
5439
|
+
setProductInfoObj(_objectSpread$2o({}, productarr));
|
|
5440
5440
|
};
|
|
5441
5441
|
var variantchecker = function variantchecker() {
|
|
5442
5442
|
var productarr = ProductInfoObj;
|
|
@@ -5510,16 +5510,16 @@ var Productinfo = function Productinfo(props) {
|
|
|
5510
5510
|
});
|
|
5511
5511
|
}
|
|
5512
5512
|
// queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
|
|
5513
|
-
setProductInfoObj(_objectSpread$
|
|
5513
|
+
setProductInfoObj(_objectSpread$2o({}, productarr));
|
|
5514
5514
|
setisloaded(true);
|
|
5515
5515
|
}
|
|
5516
5516
|
}
|
|
5517
5517
|
};
|
|
5518
5518
|
var variantcompleting = function variantcompleting() {
|
|
5519
5519
|
setvariantindexcompleted('');
|
|
5520
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5520
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5521
5521
|
tempaddtocardpayloadobj.variantid = '';
|
|
5522
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5522
|
+
setaddtocardpayloadobj(_objectSpread$2o({}, tempaddtocardpayloadobj));
|
|
5523
5523
|
var productarr = ProductInfoObj;
|
|
5524
5524
|
var selectedoptionsvalues = [];
|
|
5525
5525
|
productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
|
|
@@ -5552,7 +5552,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5552
5552
|
NotificationManager.warning('', 'Variant Not Found');
|
|
5553
5553
|
} else {
|
|
5554
5554
|
variantid = variantobj.variantid;
|
|
5555
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5555
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5556
5556
|
tempaddtocardpayloadobj.variantid = variantid;
|
|
5557
5557
|
var variantimageindex = 0;
|
|
5558
5558
|
productimagesarray === null || productimagesarray === void 0 || productimagesarray.forEach(function (tempimageitem, tempimageindex) {
|
|
@@ -5567,14 +5567,14 @@ var Productinfo = function Productinfo(props) {
|
|
|
5567
5567
|
}
|
|
5568
5568
|
setvariantsku(variantobj === null || variantobj === void 0 ? void 0 : variantobj.sku);
|
|
5569
5569
|
setcurrentshowingimageindex(variantimageindex);
|
|
5570
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5570
|
+
setaddtocardpayloadobj(_objectSpread$2o({}, tempaddtocardpayloadobj));
|
|
5571
5571
|
setvariantindexcompleted(ProductVariantIndex);
|
|
5572
5572
|
setvariantindex(ProductVariantIndex);
|
|
5573
5573
|
}
|
|
5574
5574
|
}
|
|
5575
5575
|
});
|
|
5576
5576
|
// queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
|
|
5577
|
-
setProductInfoObj(_objectSpread$
|
|
5577
|
+
setProductInfoObj(_objectSpread$2o({}, productarr));
|
|
5578
5578
|
};
|
|
5579
5579
|
var addtocartfunc = function addtocartfunc(forcetocheckout) {
|
|
5580
5580
|
var runfunc = false;
|
|
@@ -5593,7 +5593,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5593
5593
|
}
|
|
5594
5594
|
if (runfunc == true) {
|
|
5595
5595
|
var _fetchProductInfoQuer7, _fetchProductInfoQuer8;
|
|
5596
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5596
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5597
5597
|
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;
|
|
5598
5598
|
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;
|
|
5599
5599
|
if (forcetocheckoutvalue != undefined) {
|
|
@@ -5617,7 +5617,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5617
5617
|
};
|
|
5618
5618
|
var validateextrafields = function validateextrafields() {
|
|
5619
5619
|
var _fetchProductInfoQuer15;
|
|
5620
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5620
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5621
5621
|
var status = false;
|
|
5622
5622
|
var reason = '';
|
|
5623
5623
|
var missingitemsfound = [];
|
|
@@ -6656,7 +6656,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6656
6656
|
}))), /*#__PURE__*/React__default["default"].createElement(material.Box, {
|
|
6657
6657
|
"class": "w-100 mt-5 mb-4"
|
|
6658
6658
|
}, tabname == 'descriptiontab' && sectionproperties.descriptionposition == 'Bottom' && /*#__PURE__*/React__default["default"].createElement(DescriptionContent, {
|
|
6659
|
-
actions: _objectSpread$
|
|
6659
|
+
actions: _objectSpread$2o(_objectSpread$2o({}, actions), {}, {
|
|
6660
6660
|
productinfo_cssstyles: productinfo_cssstyles,
|
|
6661
6661
|
sectionproperties: sectionproperties
|
|
6662
6662
|
})
|
|
@@ -6704,7 +6704,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6704
6704
|
})), tabname == 'reviewstab' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6705
6705
|
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0"
|
|
6706
6706
|
}, /*#__PURE__*/React__default["default"].createElement(ProductReviews, {
|
|
6707
|
-
actions: _objectSpread$
|
|
6707
|
+
actions: _objectSpread$2o(_objectSpread$2o({}, actions), {}, {
|
|
6708
6708
|
productinfo_cssstyles: productinfo_cssstyles,
|
|
6709
6709
|
sectionproperties: sectionproperties
|
|
6710
6710
|
})
|
|
@@ -6721,8 +6721,8 @@ var css_248z$I = "/* Side Nav */\n.staticroutersidenav-module_vertical_nav_menu_
|
|
|
6721
6721
|
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"};
|
|
6722
6722
|
styleInject(css_248z$I);
|
|
6723
6723
|
|
|
6724
|
-
function ownKeys$
|
|
6725
|
-
function _objectSpread$
|
|
6724
|
+
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; }
|
|
6725
|
+
function _objectSpread$2n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2n(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6726
6726
|
var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
6727
6727
|
var _useState = React.useState(props.currentpageprops),
|
|
6728
6728
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
@@ -6758,7 +6758,7 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
|
6758
6758
|
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) {
|
|
6759
6759
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
6760
6760
|
});
|
|
6761
|
-
setsectionproperties(_objectSpread$
|
|
6761
|
+
setsectionproperties(_objectSpread$2n({}, secpropobj));
|
|
6762
6762
|
}
|
|
6763
6763
|
}, [CurrentPageId]);
|
|
6764
6764
|
var styles = {
|
|
@@ -6924,8 +6924,8 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
|
6924
6924
|
}))))));
|
|
6925
6925
|
};
|
|
6926
6926
|
|
|
6927
|
-
function ownKeys$
|
|
6928
|
-
function _objectSpread$
|
|
6927
|
+
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; }
|
|
6928
|
+
function _objectSpread$2m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2m(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6929
6929
|
var Ordershistory = function Ordershistory(props) {
|
|
6930
6930
|
var _props$actions2, _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchorderhistoryQue2, _fetchorderhistoryQue3, _fetchorderhistoryQue4, _fetchorderhistoryQue5;
|
|
6931
6931
|
var lang = props.actions.lang;
|
|
@@ -6978,9 +6978,9 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
6978
6978
|
setorderindex = _useState14[1];
|
|
6979
6979
|
React.useEffect(function () {
|
|
6980
6980
|
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin) == true) {
|
|
6981
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
6981
|
+
var tempFetchQueriesEngineContext = _objectSpread$2m({}, FetchQueriesEngineContext);
|
|
6982
6982
|
tempFetchQueriesEngineContext.orderhistory = true;
|
|
6983
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
6983
|
+
setFetchQueriesEngineContext(_objectSpread$2m({}, tempFetchQueriesEngineContext));
|
|
6984
6984
|
}
|
|
6985
6985
|
}, []);
|
|
6986
6986
|
var _useState15 = React.useState(''),
|
|
@@ -7001,7 +7001,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
7001
7001
|
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) {
|
|
7002
7002
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
7003
7003
|
});
|
|
7004
|
-
setsectionproperties(_objectSpread$
|
|
7004
|
+
setsectionproperties(_objectSpread$2m({}, secpropobj));
|
|
7005
7005
|
}, [props === null || props === void 0 || (_props$actions2 = props.actions) === null || _props$actions2 === void 0 ? void 0 : _props$actions2.StatePagePropertiesContext]);
|
|
7006
7006
|
var orderhistory_cssstyles = {
|
|
7007
7007
|
variantcontainer: glamor.css({
|
|
@@ -7952,8 +7952,8 @@ var css_248z$H = ".wishlist-module_wishlist_card__sUXul .wishlist-module_image_c
|
|
|
7952
7952
|
var wishliststyles = {"wishlist_card":"wishlist-module_wishlist_card__sUXul","image_container":"wishlist-module_image_container__FuptA","floatbtn":"wishlist-module_floatbtn__PZDvQ"};
|
|
7953
7953
|
styleInject(css_248z$H);
|
|
7954
7954
|
|
|
7955
|
-
function ownKeys$
|
|
7956
|
-
function _objectSpread$
|
|
7955
|
+
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; }
|
|
7956
|
+
function _objectSpread$2l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2l(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7957
7957
|
var Wishlist = function Wishlist(props) {
|
|
7958
7958
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8;
|
|
7959
7959
|
var lang = props.actions.lang;
|
|
@@ -7981,13 +7981,13 @@ var Wishlist = function Wishlist(props) {
|
|
|
7981
7981
|
StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
7982
7982
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
7983
7983
|
});
|
|
7984
|
-
setsectionproperties(_objectSpread$
|
|
7984
|
+
setsectionproperties(_objectSpread$2l({}, secpropobj));
|
|
7985
7985
|
}
|
|
7986
7986
|
}, [StatePagePropertiesContext]);
|
|
7987
7987
|
React.useEffect(function () {
|
|
7988
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
7988
|
+
var tempFetchQueriesEngineContext = _objectSpread$2l({}, FetchQueriesEngineContext);
|
|
7989
7989
|
tempFetchQueriesEngineContext.fetchfavoriteproducts = true;
|
|
7990
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
7990
|
+
setFetchQueriesEngineContext(_objectSpread$2l({}, tempFetchQueriesEngineContext));
|
|
7991
7991
|
}, []);
|
|
7992
7992
|
React.useEffect(function () {
|
|
7993
7993
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
@@ -7996,7 +7996,7 @@ var Wishlist = function Wishlist(props) {
|
|
|
7996
7996
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
7997
7997
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
7998
7998
|
});
|
|
7999
|
-
setsectionproperties(_objectSpread$
|
|
7999
|
+
setsectionproperties(_objectSpread$2l({}, secpropobj));
|
|
8000
8000
|
}
|
|
8001
8001
|
}, [StatePagePropertiesContext]);
|
|
8002
8002
|
var wishlist_cssstyles = {
|
|
@@ -8405,8 +8405,8 @@ var Wishlist = function Wishlist(props) {
|
|
|
8405
8405
|
})));
|
|
8406
8406
|
};
|
|
8407
8407
|
|
|
8408
|
-
function ownKeys$
|
|
8409
|
-
function _objectSpread$
|
|
8408
|
+
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; }
|
|
8409
|
+
function _objectSpread$2k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2k(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8410
8410
|
var Viewcart = function Viewcart(props) {
|
|
8411
8411
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchcustomercartQue7, _fetchcustomercartQue8;
|
|
8412
8412
|
var lang = props.actions.lang;
|
|
@@ -8438,7 +8438,7 @@ var Viewcart = function Viewcart(props) {
|
|
|
8438
8438
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
8439
8439
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
8440
8440
|
});
|
|
8441
|
-
setsectionproperties(_objectSpread$
|
|
8441
|
+
setsectionproperties(_objectSpread$2k({}, secpropobj));
|
|
8442
8442
|
}
|
|
8443
8443
|
}, [StatePagePropertiesContext]);
|
|
8444
8444
|
React.useEffect(function () {
|
|
@@ -9026,8 +9026,8 @@ var css_248z$G = "/* Forms */\n.form-module_form_control__4-RGw {\n display:
|
|
|
9026
9026
|
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-"};
|
|
9027
9027
|
styleInject(css_248z$G);
|
|
9028
9028
|
|
|
9029
|
-
function ownKeys$
|
|
9030
|
-
function _objectSpread$
|
|
9029
|
+
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; }
|
|
9030
|
+
function _objectSpread$2j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2j(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9031
9031
|
var Select$3 = /*#__PURE__*/React__default["default"].lazy(function () {
|
|
9032
9032
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
|
|
9033
9033
|
});
|
|
@@ -9086,7 +9086,7 @@ var Checkout = function Checkout(props) {
|
|
|
9086
9086
|
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) {
|
|
9087
9087
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
9088
9088
|
});
|
|
9089
|
-
setsectionproperties(_objectSpread$
|
|
9089
|
+
setsectionproperties(_objectSpread$2j({}, secpropobj));
|
|
9090
9090
|
}, [props.actions.StatePagePropertiesContext]);
|
|
9091
9091
|
React.useEffect(function () {
|
|
9092
9092
|
var Canorder = false;
|
|
@@ -9106,10 +9106,10 @@ var Checkout = function Checkout(props) {
|
|
|
9106
9106
|
}
|
|
9107
9107
|
if (Canorder == true) {
|
|
9108
9108
|
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7;
|
|
9109
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
9109
|
+
var tempFetchQueriesEngineContext = _objectSpread$2j({}, FetchQueriesEngineContext);
|
|
9110
9110
|
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
9111
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
9112
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
9111
|
+
setFetchQueriesEngineContext(_objectSpread$2j({}, tempFetchQueriesEngineContext));
|
|
9112
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2j({}, FetchTabexStatesPayloadobjContext);
|
|
9113
9113
|
if (
|
|
9114
9114
|
// Aya
|
|
9115
9115
|
!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 &&
|
|
@@ -9126,7 +9126,7 @@ var Checkout = function Checkout(props) {
|
|
|
9126
9126
|
var _fetchcustomercartQue8;
|
|
9127
9127
|
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;
|
|
9128
9128
|
}
|
|
9129
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
9129
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2j({}, tempFetchTabexStatesPayloadobjContext));
|
|
9130
9130
|
} else {
|
|
9131
9131
|
// NotificationManager.warning('', lang.pleaselogintocheckout);
|
|
9132
9132
|
routingcountext(StaticPagesLinksContext.Login);
|
|
@@ -9993,10 +9993,10 @@ var Checkout = function Checkout(props) {
|
|
|
9993
9993
|
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);
|
|
9994
9994
|
}),
|
|
9995
9995
|
onChange: function onChange(option) {
|
|
9996
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
9996
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2j({}, FetchTabexStatesPayloadobjContext);
|
|
9997
9997
|
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
9998
9998
|
tempFetchTabexStatesPayloadobjContext.country_id = option.id;
|
|
9999
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
9999
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2j({}, tempFetchTabexStatesPayloadobjContext));
|
|
10000
10000
|
cartinfoupdater('countryid', option.id);
|
|
10001
10001
|
},
|
|
10002
10002
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -10041,10 +10041,10 @@ var Checkout = function Checkout(props) {
|
|
|
10041
10041
|
onChange: function onChange(option) {
|
|
10042
10042
|
var _fetchcustomercartQue60;
|
|
10043
10043
|
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) {
|
|
10044
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
10044
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2j({}, FetchTabexStatesPayloadobjContext);
|
|
10045
10045
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
10046
10046
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
10047
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
10047
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2j({}, tempFetchTabexStatesPayloadobjContext));
|
|
10048
10048
|
cartinfoupdater('stateid', option.id);
|
|
10049
10049
|
} else {
|
|
10050
10050
|
NotificationManager.warning('', 'Please Choose Country Or State');
|
|
@@ -10408,8 +10408,8 @@ var Checkout = function Checkout(props) {
|
|
|
10408
10408
|
}, Mycart())))));
|
|
10409
10409
|
};
|
|
10410
10410
|
|
|
10411
|
-
function ownKeys$
|
|
10412
|
-
function _objectSpread$
|
|
10411
|
+
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; }
|
|
10412
|
+
function _objectSpread$2i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2i(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10413
10413
|
var VendorPage = function VendorPage(props) {
|
|
10414
10414
|
var _useState = React.useState(''),
|
|
10415
10415
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
@@ -10442,7 +10442,7 @@ var VendorPage = function VendorPage(props) {
|
|
|
10442
10442
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
10443
10443
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
10444
10444
|
});
|
|
10445
|
-
setsectionproperties(_objectSpread$
|
|
10445
|
+
setsectionproperties(_objectSpread$2i({}, secpropobj));
|
|
10446
10446
|
}
|
|
10447
10447
|
}, [StatePagePropertiesContext]);
|
|
10448
10448
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -10565,8 +10565,8 @@ var VendorPage = function VendorPage(props) {
|
|
|
10565
10565
|
})));
|
|
10566
10566
|
};
|
|
10567
10567
|
|
|
10568
|
-
function ownKeys$
|
|
10569
|
-
function _objectSpread$
|
|
10568
|
+
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; }
|
|
10569
|
+
function _objectSpread$2h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2h(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10570
10570
|
var Select$2 = /*#__PURE__*/React__default["default"].lazy(function () {
|
|
10571
10571
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
|
|
10572
10572
|
});
|
|
@@ -10676,46 +10676,46 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
10676
10676
|
}
|
|
10677
10677
|
}, [fetchAuthorizationQueryContext.isSuccess]);
|
|
10678
10678
|
React.useEffect(function () {
|
|
10679
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
10679
|
+
var tempFetchQueriesEngineContext = _objectSpread$2h({}, FetchQueriesEngineContext);
|
|
10680
10680
|
tempFetchQueriesEngineContext.institutecustomerinfosignup = true;
|
|
10681
10681
|
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
10682
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
10683
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
10682
|
+
setFetchQueriesEngineContext(_objectSpread$2h({}, tempFetchQueriesEngineContext));
|
|
10683
|
+
var tempFetchQueriesEngineContext = _objectSpread$2h({}, FetchQueriesEngineContext);
|
|
10684
10684
|
}, []);
|
|
10685
10685
|
React.useEffect(function () {
|
|
10686
10686
|
if (props.sectionpropertiesprops != undefined && props.sectionpropertiesprops.length != 0) {
|
|
10687
|
-
setsectionproperties(_objectSpread$
|
|
10687
|
+
setsectionproperties(_objectSpread$2h({}, props.sectionpropertiesprops));
|
|
10688
10688
|
}
|
|
10689
10689
|
}, [props.sectionpropertiesprops]);
|
|
10690
10690
|
React.useEffect(function () {
|
|
10691
10691
|
if (fetchinstitutecustomerinfosignupQueryContext.isSuccess) {
|
|
10692
10692
|
if (authdetailsContext.loggedin == true) {
|
|
10693
|
-
var tempcustomerinfoobj = _objectSpread$
|
|
10694
|
-
setpayloadobj(_objectSpread$
|
|
10695
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
10693
|
+
var tempcustomerinfoobj = _objectSpread$2h({}, fetchinstitutecustomerinfosignupQueryContext.data.data.customerinfo);
|
|
10694
|
+
setpayloadobj(_objectSpread$2h({}, tempcustomerinfoobj));
|
|
10695
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2h({}, FetchTabexStatesPayloadobjContext);
|
|
10696
10696
|
if (tempcustomerinfoobj.countryid != null) {
|
|
10697
10697
|
tempFetchTabexStatesPayloadobjContext.country_id = tempcustomerinfoobj.countryid;
|
|
10698
10698
|
}
|
|
10699
10699
|
if (tempcustomerinfoobj.stateid != null) {
|
|
10700
10700
|
tempFetchTabexStatesPayloadobjContext.state_id = tempcustomerinfoobj.stateid;
|
|
10701
10701
|
}
|
|
10702
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
10702
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2h({}, tempFetchTabexStatesPayloadobjContext));
|
|
10703
10703
|
setdataloaded(true);
|
|
10704
10704
|
} else {
|
|
10705
10705
|
var _fetchinstitutecustom;
|
|
10706
|
-
var tempcustomerinfoobj = _objectSpread$
|
|
10706
|
+
var tempcustomerinfoobj = _objectSpread$2h({}, payloadobj);
|
|
10707
10707
|
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)) {
|
|
10708
10708
|
tempcustomerinfoobj.instsignupformvalues = _toConsumableArray__default["default"](fetchinstitutecustomerinfosignupQueryContext.data.data.instsignupformvalues);
|
|
10709
10709
|
}
|
|
10710
|
-
setpayloadobj(_objectSpread$
|
|
10710
|
+
setpayloadobj(_objectSpread$2h({}, tempcustomerinfoobj));
|
|
10711
10711
|
setdataloaded(true);
|
|
10712
10712
|
}
|
|
10713
10713
|
}
|
|
10714
10714
|
}, [fetchinstitutecustomerinfosignupQueryContext.isSuccess, fetchinstitutecustomerinfosignupQueryContext.data, authdetailsContext]);
|
|
10715
10715
|
var payloadobjchange = function payloadobjchange(key, value) {
|
|
10716
|
-
var temppayloadobj = _objectSpread$
|
|
10716
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
10717
10717
|
temppayloadobj[key] = value;
|
|
10718
|
-
setpayloadobj(_objectSpread$
|
|
10718
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
10719
10719
|
};
|
|
10720
10720
|
var validateEmailstring = function validateEmailstring(email) {
|
|
10721
10721
|
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,}))$/);
|
|
@@ -10787,7 +10787,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
10787
10787
|
};
|
|
10788
10788
|
var signupbuttonfunc = function signupbuttonfunc() {
|
|
10789
10789
|
if (verifypayload() == true) {
|
|
10790
|
-
var temppayloadobj = _objectSpread$
|
|
10790
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
10791
10791
|
if (authdetailsContext.loggedin == true) {
|
|
10792
10792
|
temppayloadobj.functype = 'edit';
|
|
10793
10793
|
} else {
|
|
@@ -10944,10 +10944,10 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
10944
10944
|
autoFormat: true,
|
|
10945
10945
|
value: payloadobj.mobile,
|
|
10946
10946
|
onChange: function onChange(event, country) {
|
|
10947
|
-
var temp = _objectSpread$
|
|
10947
|
+
var temp = _objectSpread$2h({}, payloadobj);
|
|
10948
10948
|
temp.mobile = event;
|
|
10949
10949
|
temp.countrydialcode = country.dialCode;
|
|
10950
|
-
setpayloadobj(_objectSpread$
|
|
10950
|
+
setpayloadobj(_objectSpread$2h({}, temp));
|
|
10951
10951
|
// payloadobjchange('mobile', event);
|
|
10952
10952
|
|
|
10953
10953
|
// alert(JSON.stringify(country));
|
|
@@ -11004,10 +11004,10 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11004
11004
|
return option.id == payloadobj.countryid;
|
|
11005
11005
|
}),
|
|
11006
11006
|
onChange: function onChange(option) {
|
|
11007
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
11007
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2h({}, FetchTabexStatesPayloadobjContext);
|
|
11008
11008
|
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
11009
11009
|
tempFetchTabexStatesPayloadobjContext.country_id = option.id;
|
|
11010
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
11010
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2h({}, tempFetchTabexStatesPayloadobjContext));
|
|
11011
11011
|
payloadobjchange('countryid', option.id);
|
|
11012
11012
|
},
|
|
11013
11013
|
styles: sectionproperties.inputfieldbordertype == 'All' ? langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated : langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -11056,10 +11056,10 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11056
11056
|
return option.id == payloadobj.stateid;
|
|
11057
11057
|
}),
|
|
11058
11058
|
onChange: function onChange(option) {
|
|
11059
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
11059
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2h({}, FetchTabexStatesPayloadobjContext);
|
|
11060
11060
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
11061
11061
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
11062
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
11062
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2h({}, tempFetchTabexStatesPayloadobjContext));
|
|
11063
11063
|
payloadobjchange('stateid', option.id);
|
|
11064
11064
|
},
|
|
11065
11065
|
styles: sectionproperties.inputfieldbordertype == 'All' ? langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated : langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -11201,9 +11201,9 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11201
11201
|
value: item.customersignupvalue,
|
|
11202
11202
|
textplaceholder: "",
|
|
11203
11203
|
onChange: function onChange(event) {
|
|
11204
|
-
var temppayloadobj = _objectSpread$
|
|
11204
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
11205
11205
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
|
|
11206
|
-
setpayloadobj(_objectSpread$
|
|
11206
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
11207
11207
|
},
|
|
11208
11208
|
style: {
|
|
11209
11209
|
background: 'transparent'
|
|
@@ -11217,13 +11217,13 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11217
11217
|
className: formstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11218
11218
|
checked: item.customersignupvalue == 1 ? true : false,
|
|
11219
11219
|
onChange: function onChange() {
|
|
11220
|
-
var temppayloadobj = _objectSpread$
|
|
11220
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
11221
11221
|
if (temppayloadobj.instsignupformvalues[index].customersignupvalue == 1) {
|
|
11222
11222
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = 0;
|
|
11223
11223
|
} else {
|
|
11224
11224
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = 1;
|
|
11225
11225
|
}
|
|
11226
|
-
setpayloadobj(_objectSpread$
|
|
11226
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
11227
11227
|
}
|
|
11228
11228
|
}), /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
11229
11229
|
viewBox: "0 0 21 21",
|
|
@@ -11240,9 +11240,9 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11240
11240
|
value: item.customersignupvalue,
|
|
11241
11241
|
textplaceholder: "",
|
|
11242
11242
|
onChange: function onChange(event) {
|
|
11243
|
-
var temppayloadobj = _objectSpread$
|
|
11243
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
11244
11244
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
|
|
11245
|
-
setpayloadobj(_objectSpread$
|
|
11245
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
11246
11246
|
}
|
|
11247
11247
|
}, /*#__PURE__*/React__default["default"].createElement("option", {
|
|
11248
11248
|
value: '',
|
|
@@ -11257,9 +11257,9 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11257
11257
|
value: item.customersignupvalue,
|
|
11258
11258
|
textplaceholder: "",
|
|
11259
11259
|
onChange: function onChange(event) {
|
|
11260
|
-
var temppayloadobj = _objectSpread$
|
|
11260
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
11261
11261
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
|
|
11262
|
-
setpayloadobj(_objectSpread$
|
|
11262
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
11263
11263
|
},
|
|
11264
11264
|
style: {
|
|
11265
11265
|
resize: 'none'
|
|
@@ -11613,7 +11613,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11613
11613
|
className: "".concat(formstyles.form_control),
|
|
11614
11614
|
value: validateemailpayload.code,
|
|
11615
11615
|
onChange: function onChange(event) {
|
|
11616
|
-
setvalidateemailpayload(_objectSpread$
|
|
11616
|
+
setvalidateemailpayload(_objectSpread$2h(_objectSpread$2h({}, validateemailpayload), {}, {
|
|
11617
11617
|
code: event.target.value
|
|
11618
11618
|
}));
|
|
11619
11619
|
},
|
|
@@ -11640,12 +11640,12 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11640
11640
|
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
11641
11641
|
if (data.data.status) {
|
|
11642
11642
|
if (data.data.functype == 'sendcode') {
|
|
11643
|
-
setvalidateemailpayload(_objectSpread$
|
|
11643
|
+
setvalidateemailpayload(_objectSpread$2h(_objectSpread$2h({}, validateemailpayload), {}, {
|
|
11644
11644
|
step: 'verifycode'
|
|
11645
11645
|
}));
|
|
11646
11646
|
}
|
|
11647
11647
|
if (data.data.functype == 'verifycode') {
|
|
11648
|
-
setvalidateemailpayload(_objectSpread$
|
|
11648
|
+
setvalidateemailpayload(_objectSpread$2h(_objectSpread$2h({}, validateemailpayload), {}, {
|
|
11649
11649
|
isvalidated: true
|
|
11650
11650
|
}));
|
|
11651
11651
|
setvalidateemailmodal(false);
|
|
@@ -11740,7 +11740,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11740
11740
|
className: "".concat(formstyles.form_control),
|
|
11741
11741
|
value: validatephonenumberpayload.code,
|
|
11742
11742
|
onChange: function onChange(event) {
|
|
11743
|
-
setvalidatephonenumberpayload(_objectSpread$
|
|
11743
|
+
setvalidatephonenumberpayload(_objectSpread$2h(_objectSpread$2h({}, validatephonenumberpayload), {}, {
|
|
11744
11744
|
code: event.target.value
|
|
11745
11745
|
}));
|
|
11746
11746
|
},
|
|
@@ -11767,12 +11767,12 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11767
11767
|
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
11768
11768
|
if (data.data.status) {
|
|
11769
11769
|
if (data.data.functype == 'sendcode') {
|
|
11770
|
-
setvalidatephonenumberpayload(_objectSpread$
|
|
11770
|
+
setvalidatephonenumberpayload(_objectSpread$2h(_objectSpread$2h({}, validatephonenumberpayload), {}, {
|
|
11771
11771
|
step: 'verifycode'
|
|
11772
11772
|
}));
|
|
11773
11773
|
}
|
|
11774
11774
|
if (data.data.functype == 'verifycode') {
|
|
11775
|
-
setvalidatephonenumberpayload(_objectSpread$
|
|
11775
|
+
setvalidatephonenumberpayload(_objectSpread$2h(_objectSpread$2h({}, validatephonenumberpayload), {}, {
|
|
11776
11776
|
isvalidated: true
|
|
11777
11777
|
}));
|
|
11778
11778
|
setvalidatephonenumbermodal(false);
|
|
@@ -11808,8 +11808,8 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11808
11808
|
}, validatephonenumberpayload.step == 'sendcode' ? lang.sendcode : lang.verifycode))))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
|
|
11809
11809
|
};
|
|
11810
11810
|
|
|
11811
|
-
function ownKeys$
|
|
11812
|
-
function _objectSpread$
|
|
11811
|
+
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; }
|
|
11812
|
+
function _objectSpread$2g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2g(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11813
11813
|
var Signup = function Signup(props) {
|
|
11814
11814
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
11815
11815
|
props.actions.CurrentSrcTypeContext;
|
|
@@ -11857,7 +11857,7 @@ var Signup = function Signup(props) {
|
|
|
11857
11857
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
11858
11858
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
11859
11859
|
});
|
|
11860
|
-
setsectionproperties(_objectSpread$
|
|
11860
|
+
setsectionproperties(_objectSpread$2g({}, secpropobj));
|
|
11861
11861
|
}
|
|
11862
11862
|
}, [StatePagePropertiesContext]);
|
|
11863
11863
|
var loginstyles2 = {
|
|
@@ -12000,8 +12000,8 @@ var Signup = function Signup(props) {
|
|
|
12000
12000
|
}, SignupContent()));
|
|
12001
12001
|
};
|
|
12002
12002
|
|
|
12003
|
-
function ownKeys$
|
|
12004
|
-
function _objectSpread$
|
|
12003
|
+
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; }
|
|
12004
|
+
function _objectSpread$2f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2f(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12005
12005
|
var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
12006
12006
|
var _css;
|
|
12007
12007
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -12067,7 +12067,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12067
12067
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
12068
12068
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12069
12069
|
});
|
|
12070
|
-
setsectionproperties(_objectSpread$
|
|
12070
|
+
setsectionproperties(_objectSpread$2f({}, secpropobj));
|
|
12071
12071
|
}
|
|
12072
12072
|
}, [StatePagePropertiesContext]);
|
|
12073
12073
|
var loginstyles2 = {
|
|
@@ -12168,7 +12168,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12168
12168
|
className: "".concat(loginstyles2.form_control),
|
|
12169
12169
|
value: affsignuppayload.name,
|
|
12170
12170
|
onChange: function onChange(event) {
|
|
12171
|
-
setaffsignuppayload(_objectSpread$
|
|
12171
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12172
12172
|
name: event.target.value
|
|
12173
12173
|
}));
|
|
12174
12174
|
},
|
|
@@ -12184,7 +12184,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12184
12184
|
className: "".concat(loginstyles2.form_control),
|
|
12185
12185
|
value: affsignuppayload.email,
|
|
12186
12186
|
onChange: function onChange(event) {
|
|
12187
|
-
setaffsignuppayload(_objectSpread$
|
|
12187
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12188
12188
|
email: event.target.value
|
|
12189
12189
|
}));
|
|
12190
12190
|
},
|
|
@@ -12202,10 +12202,10 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12202
12202
|
autoFormat: true,
|
|
12203
12203
|
value: affsignuppayload.phonenumber,
|
|
12204
12204
|
onChange: function onChange(event, country) {
|
|
12205
|
-
var temp = _objectSpread$
|
|
12205
|
+
var temp = _objectSpread$2f({}, affsignuppayload);
|
|
12206
12206
|
temp.phonenumber = event;
|
|
12207
12207
|
temp.countrydialcode = country.dialCode;
|
|
12208
|
-
setaffsignuppayload(_objectSpread$
|
|
12208
|
+
setaffsignuppayload(_objectSpread$2f({}, temp));
|
|
12209
12209
|
// setaffsignuppayload({ ...affsignuppayload, phonenumber: event.target.value });
|
|
12210
12210
|
},
|
|
12211
12211
|
|
|
@@ -12221,7 +12221,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12221
12221
|
className: "".concat(loginstyles2.form_control),
|
|
12222
12222
|
value: affsignuppayload.ssn,
|
|
12223
12223
|
onChange: function onChange(event) {
|
|
12224
|
-
setaffsignuppayload(_objectSpread$
|
|
12224
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12225
12225
|
ssn: event.target.value
|
|
12226
12226
|
}));
|
|
12227
12227
|
},
|
|
@@ -12237,7 +12237,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12237
12237
|
className: "".concat(loginstyles2.form_control),
|
|
12238
12238
|
value: affsignuppayload.password,
|
|
12239
12239
|
onChange: function onChange(event) {
|
|
12240
|
-
setaffsignuppayload(_objectSpread$
|
|
12240
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12241
12241
|
password: event.target.value
|
|
12242
12242
|
}));
|
|
12243
12243
|
},
|
|
@@ -12253,7 +12253,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12253
12253
|
className: "".concat(loginstyles2.form_control),
|
|
12254
12254
|
value: affsignuppayload.confirmpassword,
|
|
12255
12255
|
onChange: function onChange(event) {
|
|
12256
|
-
setaffsignuppayload(_objectSpread$
|
|
12256
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12257
12257
|
confirmpassword: event.target.value
|
|
12258
12258
|
}));
|
|
12259
12259
|
},
|
|
@@ -12306,8 +12306,8 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12306
12306
|
}), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("span", null, langdetect == 'en' ? sectionproperties.signupbtn_contenten : sectionproperties.signupbtn_contentar)))))))));
|
|
12307
12307
|
};
|
|
12308
12308
|
|
|
12309
|
-
function ownKeys$
|
|
12310
|
-
function _objectSpread$
|
|
12309
|
+
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; }
|
|
12310
|
+
function _objectSpread$2e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2e(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12311
12311
|
var AccountInformation = function AccountInformation(props) {
|
|
12312
12312
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8;
|
|
12313
12313
|
var lang = props.actions.lang;
|
|
@@ -12334,7 +12334,7 @@ var AccountInformation = function AccountInformation(props) {
|
|
|
12334
12334
|
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) {
|
|
12335
12335
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12336
12336
|
});
|
|
12337
|
-
setsectionproperties(_objectSpread$
|
|
12337
|
+
setsectionproperties(_objectSpread$2e({}, secpropobj));
|
|
12338
12338
|
}, [props.actions.StatePagePropertiesContext]);
|
|
12339
12339
|
React.useEffect(function () {
|
|
12340
12340
|
var cartindex = templatepropcontext.pagesnprop.findIndex(function (x) {
|
|
@@ -12496,8 +12496,8 @@ var css_248z$F = ".tabs-module_tabs__36dMY {\n position: relative;\n heigh
|
|
|
12496
12496
|
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"};
|
|
12497
12497
|
styleInject(css_248z$F);
|
|
12498
12498
|
|
|
12499
|
-
function ownKeys$
|
|
12500
|
-
function _objectSpread$
|
|
12499
|
+
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; }
|
|
12500
|
+
function _objectSpread$2d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2d(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12501
12501
|
var Policies = function Policies(props) {
|
|
12502
12502
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchInstitutePolici, _fetchInstitutePolici2, _fetchInstitutePolici3;
|
|
12503
12503
|
var _useState = React.useState(''),
|
|
@@ -12528,7 +12528,7 @@ var Policies = function Policies(props) {
|
|
|
12528
12528
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
12529
12529
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12530
12530
|
});
|
|
12531
|
-
setsectionproperties(_objectSpread$
|
|
12531
|
+
setsectionproperties(_objectSpread$2d({}, secpropobj));
|
|
12532
12532
|
}
|
|
12533
12533
|
}, [StatePagePropertiesContext]);
|
|
12534
12534
|
React.useEffect(function () {
|
|
@@ -12541,9 +12541,9 @@ var Policies = function Policies(props) {
|
|
|
12541
12541
|
}
|
|
12542
12542
|
}, []);
|
|
12543
12543
|
React.useEffect(function () {
|
|
12544
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
12544
|
+
var tempFetchQueriesEngineContext = _objectSpread$2d({}, FetchQueriesEngineContext);
|
|
12545
12545
|
tempFetchQueriesEngineContext.fetchinstitutepolicy = true;
|
|
12546
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
12546
|
+
setFetchQueriesEngineContext(_objectSpread$2d({}, tempFetchQueriesEngineContext));
|
|
12547
12547
|
}, []);
|
|
12548
12548
|
var _useState7 = React.useState([]),
|
|
12549
12549
|
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
@@ -12773,8 +12773,8 @@ var css_248z$E = ".cart-module_cartslider_container__idend {\n transition: 0.
|
|
|
12773
12773
|
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"};
|
|
12774
12774
|
styleInject(css_248z$E);
|
|
12775
12775
|
|
|
12776
|
-
function ownKeys$
|
|
12777
|
-
function _objectSpread$
|
|
12776
|
+
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; }
|
|
12777
|
+
function _objectSpread$2c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2c(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12778
12778
|
var CartSlider = function CartSlider(props) {
|
|
12779
12779
|
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12;
|
|
12780
12780
|
var lang = props.actions.lang;
|
|
@@ -12840,7 +12840,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
12840
12840
|
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) {
|
|
12841
12841
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12842
12842
|
});
|
|
12843
|
-
setsectionproperties(_objectSpread$
|
|
12843
|
+
setsectionproperties(_objectSpread$2c({}, secpropobj));
|
|
12844
12844
|
}, [CurrentPageId]);
|
|
12845
12845
|
React.useEffect(function () {
|
|
12846
12846
|
if (CurrentSrcTypeContext == 'workplace') {
|
|
@@ -12850,7 +12850,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
12850
12850
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
12851
12851
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12852
12852
|
});
|
|
12853
|
-
setsectionproperties(_objectSpread$
|
|
12853
|
+
setsectionproperties(_objectSpread$2c({}, secpropobj));
|
|
12854
12854
|
}
|
|
12855
12855
|
}
|
|
12856
12856
|
}, [StatePagePropertiesContext]);
|
|
@@ -13420,8 +13420,8 @@ var CartSlider = function CartSlider(props) {
|
|
|
13420
13420
|
}, langdetect == 'en' ? sectionproperties.checkoutButtonContenten : sectionproperties.checkoutButtonContentar))))))))));
|
|
13421
13421
|
};
|
|
13422
13422
|
|
|
13423
|
-
function ownKeys$
|
|
13424
|
-
function _objectSpread$
|
|
13423
|
+
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; }
|
|
13424
|
+
function _objectSpread$2b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2b(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13425
13425
|
var Categoriesdropdown = function Categoriesdropdown(props) {
|
|
13426
13426
|
var _useState = React.useState(''),
|
|
13427
13427
|
_useState2 = _slicedToArray__default["default"](_useState, 2);
|
|
@@ -13465,7 +13465,7 @@ var Categoriesdropdown = function Categoriesdropdown(props) {
|
|
|
13465
13465
|
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) {
|
|
13466
13466
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
13467
13467
|
});
|
|
13468
|
-
setsectionproperties(_objectSpread$
|
|
13468
|
+
setsectionproperties(_objectSpread$2b({}, secpropobj));
|
|
13469
13469
|
}, [CurrentPageId]);
|
|
13470
13470
|
React.useEffect(function () {
|
|
13471
13471
|
if (CurrentSrcTypeContext == 'workplace') {
|
|
@@ -13475,7 +13475,7 @@ var Categoriesdropdown = function Categoriesdropdown(props) {
|
|
|
13475
13475
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
13476
13476
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
13477
13477
|
});
|
|
13478
|
-
setsectionproperties(_objectSpread$
|
|
13478
|
+
setsectionproperties(_objectSpread$2b({}, secpropobj));
|
|
13479
13479
|
}
|
|
13480
13480
|
}
|
|
13481
13481
|
}, [StatePagePropertiesContext]);
|
|
@@ -13703,8 +13703,8 @@ var Categoriesdropdown = function Categoriesdropdown(props) {
|
|
|
13703
13703
|
}, CategoriesDropdown()));
|
|
13704
13704
|
};
|
|
13705
13705
|
|
|
13706
|
-
function ownKeys$
|
|
13707
|
-
function _objectSpread$
|
|
13706
|
+
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; }
|
|
13707
|
+
function _objectSpread$2a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2a(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13708
13708
|
var OrderSuccess = function OrderSuccess(props) {
|
|
13709
13709
|
var _props$actions2;
|
|
13710
13710
|
props.actions.lang;
|
|
@@ -13754,7 +13754,7 @@ var OrderSuccess = function OrderSuccess(props) {
|
|
|
13754
13754
|
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) {
|
|
13755
13755
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
13756
13756
|
});
|
|
13757
|
-
setsectionproperties(_objectSpread$
|
|
13757
|
+
setsectionproperties(_objectSpread$2a({}, secpropobj));
|
|
13758
13758
|
}, [props === null || props === void 0 || (_props$actions2 = props.actions) === null || _props$actions2 === void 0 ? void 0 : _props$actions2.StatePagePropertiesContext]);
|
|
13759
13759
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
13760
13760
|
var ordersuccessstyle = {
|
|
@@ -13851,12 +13851,12 @@ var css_248z$D = ".filter-module_timeline__ROm9Q .filter-module_border_left_line
|
|
|
13851
13851
|
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"};
|
|
13852
13852
|
styleInject(css_248z$D);
|
|
13853
13853
|
|
|
13854
|
-
function ownKeys$
|
|
13855
|
-
function _objectSpread$
|
|
13854
|
+
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; }
|
|
13855
|
+
function _objectSpread$29(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$29(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$29(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13856
13856
|
var Select$1 = /*#__PURE__*/React__default["default"].lazy(function () {
|
|
13857
13857
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
|
|
13858
13858
|
});
|
|
13859
|
-
var Filter$
|
|
13859
|
+
var Filter$1 = function Filter(props) {
|
|
13860
13860
|
var _css;
|
|
13861
13861
|
var lang = props.actions.lang;
|
|
13862
13862
|
var langdetect = props.actions.langdetect;
|
|
@@ -13992,11 +13992,11 @@ var Filter$2 = function Filter(props) {
|
|
|
13992
13992
|
}
|
|
13993
13993
|
timeoutRef.current = setTimeout(function () {
|
|
13994
13994
|
if (raterangevalue.min != 0 || raterangevalue.max != 5) {
|
|
13995
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
13995
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
13996
13996
|
tempfetchproductsfilerobjcontext.minrate = raterangevalue.min;
|
|
13997
13997
|
tempfetchproductsfilerobjcontext.maxrate = raterangevalue.max;
|
|
13998
13998
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
13999
|
-
setProductFilterObjContext(_objectSpread$
|
|
13999
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14000
14000
|
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
14001
14001
|
}
|
|
14002
14002
|
}, 500);
|
|
@@ -14082,33 +14082,33 @@ var Filter$2 = function Filter(props) {
|
|
|
14082
14082
|
}, [ProductFilterObjContext, fetchCategoriesQueryContext.isSuccess, fetchcollectionsQueryContext.isSuccess, instcategories, instcollections]);
|
|
14083
14083
|
React.useEffect(function () {
|
|
14084
14084
|
if (productfeatuesarr.length != 0) {
|
|
14085
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14085
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14086
14086
|
tempfetchproductsfilerobjcontext.prod_featruesar = productfeatuesarr;
|
|
14087
|
-
setProductFilterObjContext(_objectSpread$
|
|
14087
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14088
14088
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14089
14089
|
}
|
|
14090
14090
|
}, [productfeatuesarr]);
|
|
14091
14091
|
React.useEffect(function () {
|
|
14092
14092
|
if (fetchTabexStatesQueryContext.isSuccess) {
|
|
14093
14093
|
if (ProductFilterObjContext.stateid != undefined && ProductFilterObjContext.stateid != null && ProductFilterObjContext.stateid != '' && ProductFilterObjContext.stateid != 'all') {
|
|
14094
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
14094
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
14095
14095
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
14096
14096
|
tempFetchTabexStatesPayloadobjContext.state_id = ProductFilterObjContext.stateid;
|
|
14097
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
14097
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
14098
14098
|
}
|
|
14099
14099
|
}
|
|
14100
14100
|
}, [fetchTabexStatesQueryContext.isSuccess]);
|
|
14101
14101
|
var filterupdater = function filterupdater() {
|
|
14102
14102
|
setTimeout(function () {
|
|
14103
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
14103
|
+
var tempFetchQueriesEngineContext = _objectSpread$29({}, FetchQueriesEngineContext);
|
|
14104
14104
|
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
14105
14105
|
setFetchQueriesEngineContext(tempFetchQueriesEngineContext);
|
|
14106
14106
|
}, 100);
|
|
14107
14107
|
if (ProductFilterObjContext.countryid != undefined && ProductFilterObjContext.countryid != null && ProductFilterObjContext.countryid != '' && ProductFilterObjContext.countryid != 'all') {
|
|
14108
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
14108
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
14109
14109
|
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
14110
14110
|
tempFetchTabexStatesPayloadobjContext.country_id = ProductFilterObjContext.countryid;
|
|
14111
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
14111
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
14112
14112
|
}
|
|
14113
14113
|
if (instfilters.length != 0) {
|
|
14114
14114
|
var _ProductFilterObjCont3;
|
|
@@ -14170,7 +14170,7 @@ var Filter$2 = function Filter(props) {
|
|
|
14170
14170
|
}
|
|
14171
14171
|
};
|
|
14172
14172
|
var setfilterfunc = function setfilterfunc(valueid, valueindex, mainparentindex, type) {
|
|
14173
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14173
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14174
14174
|
if (type == 'clearfilters') {
|
|
14175
14175
|
tempfetchproductsfilerobjcontext.FilterOptions = [];
|
|
14176
14176
|
} else {
|
|
@@ -14194,14 +14194,14 @@ var Filter$2 = function Filter(props) {
|
|
|
14194
14194
|
tempfetchproductsfilerobjcontext.isfilter = 1;
|
|
14195
14195
|
}
|
|
14196
14196
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14197
|
-
setProductFilterObjContext(_objectSpread$
|
|
14197
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14198
14198
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14199
14199
|
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
14200
14200
|
};
|
|
14201
14201
|
|
|
14202
14202
|
var setCollectionFilterFunc = function setCollectionFilterFunc(collectionid) {
|
|
14203
14203
|
var _tempfetchproductsfil2;
|
|
14204
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14204
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14205
14205
|
var CollectionExists = false;
|
|
14206
14206
|
tempfetchproductsfilerobjcontext === null || tempfetchproductsfilerobjcontext === void 0 || (_tempfetchproductsfil2 = tempfetchproductsfilerobjcontext.collections) === null || _tempfetchproductsfil2 === void 0 || _tempfetchproductsfil2.forEach(function (filteritem, filterindex) {
|
|
14207
14207
|
if (filteritem == collectionid) {
|
|
@@ -14223,7 +14223,7 @@ var Filter$2 = function Filter(props) {
|
|
|
14223
14223
|
}
|
|
14224
14224
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14225
14225
|
tempfetchproductsfilerobjcontext.ProductFetchingType = 'Random';
|
|
14226
|
-
setProductFilterObjContext(_objectSpread$
|
|
14226
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14227
14227
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14228
14228
|
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
14229
14229
|
};
|
|
@@ -14244,11 +14244,11 @@ var Filter$2 = function Filter(props) {
|
|
|
14244
14244
|
if (state.expanded == true) {
|
|
14245
14245
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14246
14246
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14247
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14247
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
14248
14248
|
} else {
|
|
14249
14249
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14250
14250
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14251
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14251
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
14252
14252
|
}
|
|
14253
14253
|
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
14254
14254
|
className: "p-0"
|
|
@@ -14306,11 +14306,11 @@ var Filter$2 = function Filter(props) {
|
|
|
14306
14306
|
if (state.expanded == true) {
|
|
14307
14307
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14308
14308
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14309
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14309
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
14310
14310
|
} else {
|
|
14311
14311
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14312
14312
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14313
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14313
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
14314
14314
|
}
|
|
14315
14315
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14316
14316
|
className: "col-lg-12 p-0"
|
|
@@ -14384,11 +14384,11 @@ var Filter$2 = function Filter(props) {
|
|
|
14384
14384
|
if (state.expanded == true) {
|
|
14385
14385
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14386
14386
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14387
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14387
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
14388
14388
|
} else {
|
|
14389
14389
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14390
14390
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14391
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14391
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
14392
14392
|
}
|
|
14393
14393
|
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
14394
14394
|
className: "p-0"
|
|
@@ -14427,9 +14427,7 @@ var Filter$2 = function Filter(props) {
|
|
|
14427
14427
|
setcollectionstobevisible(instcollections);
|
|
14428
14428
|
}
|
|
14429
14429
|
// style={{ cursor: 'pointer' }}
|
|
14430
|
-
}, langdetect == 'en' ? sectionproperties.showalltexten : sectionproperties.showalltextar)))))))
|
|
14431
|
-
className: "mt-3 mb-3"
|
|
14432
|
-
})));
|
|
14430
|
+
}, langdetect == 'en' ? sectionproperties.showalltexten : sectionproperties.showalltextar)))))))));
|
|
14433
14431
|
};
|
|
14434
14432
|
var DynamicFilter = function DynamicFilter() {
|
|
14435
14433
|
var _fetchProductFeatures;
|
|
@@ -14438,66 +14436,192 @@ var Filter$2 = function Filter(props) {
|
|
|
14438
14436
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14439
14437
|
"class": "col-lg-12 p-0 mb-3"
|
|
14440
14438
|
}, (fetchProductFeaturesQueryContext === null || fetchProductFeaturesQueryContext === void 0 ? void 0 : fetchProductFeaturesQueryContext.isSuccess) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14441
|
-
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
14439
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3 w-100"
|
|
14442
14440
|
}, 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) {
|
|
14441
|
+
// if (item.type == 'Selectbox') {
|
|
14442
|
+
// var selectboxarr = [];
|
|
14443
|
+
// item?.featuresselectbovalue?.forEach(function (slecitem) {
|
|
14444
|
+
// var itemlabel = '';
|
|
14445
|
+
// if (langdetect == 'en') {
|
|
14446
|
+
// itemlabel = slecitem.value_en;
|
|
14447
|
+
// } else {
|
|
14448
|
+
// itemlabel = slecitem.value_ar;
|
|
14449
|
+
// }
|
|
14450
|
+
// selectboxarr.push({ label: itemlabel, value: slecitem.value_en });
|
|
14451
|
+
// });
|
|
14452
|
+
// return (
|
|
14453
|
+
// <div class="col-lg-12 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 p-0">
|
|
14454
|
+
// <label
|
|
14455
|
+
// className={' mb-3 w-100 '}
|
|
14456
|
+
// style={{
|
|
14457
|
+
// textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
14458
|
+
// color: sectionproperties.filtertitle_color,
|
|
14459
|
+
// color: sectionproperties.filtertitle_color,
|
|
14460
|
+
// fontSize: sectionproperties.filtertitle_fontsize + 'px',
|
|
14461
|
+
// fontWeight: sectionproperties.filtertitle_fontweight,
|
|
14462
|
+
// color: sectionproperties.filtertitle_color,
|
|
14463
|
+
// textTransform: 'capitalize',
|
|
14464
|
+
// }}
|
|
14465
|
+
// >
|
|
14466
|
+
// {langdetect == 'en' ? item.name_en : item.name_ar}
|
|
14467
|
+
// </label>
|
|
14468
|
+
// <div class={'col-lg-12 p-0'}>
|
|
14469
|
+
// <Select
|
|
14470
|
+
// options={selectboxarr}
|
|
14471
|
+
// styles={langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated}
|
|
14472
|
+
// placeholder={''}
|
|
14473
|
+
// onChange={(e) => {
|
|
14474
|
+
// var isattrexists = false;
|
|
14475
|
+
// var tempproductfeatuesarr = [...productfeatuesarr];
|
|
14476
|
+
// tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
|
|
14477
|
+
// if (attritem.id == item.id) {
|
|
14478
|
+
// tempproductfeatuesarr[attrindex].value = e.value;
|
|
14479
|
+
// isattrexists = true;
|
|
14480
|
+
// }
|
|
14481
|
+
// });
|
|
14482
|
+
// if (isattrexists == false) {
|
|
14483
|
+
// tempproductfeatuesarr.push({
|
|
14484
|
+
// id: item.id,
|
|
14485
|
+
// value: e.value,
|
|
14486
|
+
// });
|
|
14487
|
+
// }
|
|
14488
|
+
// setproductfeatuesarr([...tempproductfeatuesarr]);
|
|
14489
|
+
// }}
|
|
14490
|
+
// />
|
|
14491
|
+
// </div>
|
|
14492
|
+
// </div>
|
|
14493
|
+
// );
|
|
14494
|
+
// }
|
|
14443
14495
|
if (item.type == 'Selectbox') {
|
|
14444
|
-
var _item$featuresselectb
|
|
14445
|
-
|
|
14446
|
-
|
|
14447
|
-
|
|
14448
|
-
|
|
14449
|
-
|
|
14496
|
+
var _item$featuresselectb;
|
|
14497
|
+
// item?.featuresselectbovalue?.forEach(function (slecitem) {
|
|
14498
|
+
// var itemlabel = '';
|
|
14499
|
+
// var itemlabelar = '';
|
|
14500
|
+
// if (langdetect == 'en') {
|
|
14501
|
+
// itemlabel = slecitem.value_en;
|
|
14502
|
+
// } else {
|
|
14503
|
+
// itemlabel = slecitem.value_ar;
|
|
14504
|
+
// }
|
|
14505
|
+
// selectboxarr.push({ label: itemlabel, value: slecitem.value_en });
|
|
14506
|
+
// });
|
|
14507
|
+
return /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
14508
|
+
allowMultipleExpanded: true,
|
|
14509
|
+
allowZeroExpanded: true,
|
|
14510
|
+
preExpanded: [0, 1, 2, 3]
|
|
14511
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, {
|
|
14512
|
+
uuid: index
|
|
14513
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14514
|
+
className: filter_cssstyles.titlecontainer + ' row m-0 w-100 p-0 mb-2 pl-md-3 pr-md-3 '
|
|
14515
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14516
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
14517
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14518
|
+
className: langdetect == 'en' ? filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 ' : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
|
|
14519
|
+
}, langdetect == 'en' ? item.name_en : item.name_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14520
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
14521
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState, null, function (state) {
|
|
14522
|
+
if (state.expanded == true) {
|
|
14523
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14524
|
+
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14525
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
14450
14526
|
} else {
|
|
14451
|
-
|
|
14527
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14528
|
+
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14529
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
14452
14530
|
}
|
|
14453
|
-
|
|
14454
|
-
|
|
14455
|
-
|
|
14456
|
-
|
|
14457
|
-
}
|
|
14458
|
-
|
|
14459
|
-
|
|
14460
|
-
|
|
14461
|
-
|
|
14462
|
-
|
|
14463
|
-
|
|
14464
|
-
|
|
14465
|
-
|
|
14466
|
-
|
|
14467
|
-
|
|
14468
|
-
|
|
14469
|
-
|
|
14470
|
-
styles: langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated,
|
|
14471
|
-
placeholder: '',
|
|
14472
|
-
onChange: function onChange(e) {
|
|
14473
|
-
var isattrexists = false;
|
|
14474
|
-
var tempproductfeatuesarr = _toConsumableArray__default["default"](productfeatuesarr);
|
|
14475
|
-
tempproductfeatuesarr === null || tempproductfeatuesarr === void 0 || tempproductfeatuesarr.forEach(function (attritem, attrindex) {
|
|
14476
|
-
if (attritem.id == item.id) {
|
|
14477
|
-
tempproductfeatuesarr[attrindex].value = e.value;
|
|
14478
|
-
isattrexists = true;
|
|
14479
|
-
}
|
|
14480
|
-
});
|
|
14481
|
-
if (isattrexists == false) {
|
|
14482
|
-
tempproductfeatuesarr.push({
|
|
14483
|
-
id: item.id,
|
|
14484
|
-
value: e.value
|
|
14531
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
14532
|
+
className: "p-0"
|
|
14533
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14534
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
14535
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14536
|
+
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
14537
|
+
}, item === null || item === void 0 || (_item$featuresselectb = item.featuresselectbovalue) === null || _item$featuresselectb === void 0 ? void 0 : _item$featuresselectb.map(function (slecitem, slecindex) {
|
|
14538
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14539
|
+
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 ',
|
|
14540
|
+
onClick: function onClick(e) {
|
|
14541
|
+
var isattrexists = false;
|
|
14542
|
+
var tempproductfeatuesarr = _toConsumableArray__default["default"](productfeatuesarr);
|
|
14543
|
+
tempproductfeatuesarr === null || tempproductfeatuesarr === void 0 || tempproductfeatuesarr.forEach(function (attritem, attrindex) {
|
|
14544
|
+
if (attritem.id == slecitem.id) {
|
|
14545
|
+
tempproductfeatuesarr[attrindex].value = slecitem.value_en;
|
|
14546
|
+
isattrexists = true;
|
|
14547
|
+
}
|
|
14485
14548
|
});
|
|
14549
|
+
if (isattrexists == false) {
|
|
14550
|
+
tempproductfeatuesarr.push({
|
|
14551
|
+
id: slecitem.id,
|
|
14552
|
+
value: slecitem.value_en
|
|
14553
|
+
});
|
|
14554
|
+
}
|
|
14555
|
+
setproductfeatuesarr(_toConsumableArray__default["default"](tempproductfeatuesarr));
|
|
14556
|
+
|
|
14557
|
+
// setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
14486
14558
|
}
|
|
14487
|
-
|
|
14488
|
-
|
|
14489
|
-
|
|
14490
|
-
|
|
14559
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14560
|
+
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 '
|
|
14561
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14562
|
+
className: "h-100 d-flex align-items-center"
|
|
14563
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14564
|
+
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
14565
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14566
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
14567
|
+
style: {
|
|
14568
|
+
color: slecitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
14569
|
+
}
|
|
14570
|
+
}, langdetect == 'en' ? slecitem.value_en : slecitem.value_ar)));
|
|
14571
|
+
}))))))
|
|
14572
|
+
// <div class="col-lg-12 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 p-0">
|
|
14573
|
+
// <label
|
|
14574
|
+
// className={' mb-3 w-100 '}
|
|
14575
|
+
// style={{
|
|
14576
|
+
// textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
14577
|
+
// color: sectionproperties.filtertitle_color,
|
|
14578
|
+
// color: sectionproperties.filtertitle_color,
|
|
14579
|
+
// fontSize: sectionproperties.filtertitle_fontsize + 'px',
|
|
14580
|
+
// fontWeight: sectionproperties.filtertitle_fontweight,
|
|
14581
|
+
// color: sectionproperties.filtertitle_color,
|
|
14582
|
+
// textTransform: 'capitalize',
|
|
14583
|
+
// }}
|
|
14584
|
+
// >
|
|
14585
|
+
// {langdetect == 'en' ? item.name_en : item.name_ar}
|
|
14586
|
+
// </label>
|
|
14587
|
+
// <div class={'col-lg-12 p-0'}>
|
|
14588
|
+
// <Select
|
|
14589
|
+
// options={selectboxarr}
|
|
14590
|
+
// styles={langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated}
|
|
14591
|
+
// placeholder={''}
|
|
14592
|
+
// onChange={(e) => {
|
|
14593
|
+
// var isattrexists = false;
|
|
14594
|
+
// var tempproductfeatuesarr = [...productfeatuesarr];
|
|
14595
|
+
// tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
|
|
14596
|
+
// if (attritem.id == item.id) {
|
|
14597
|
+
// tempproductfeatuesarr[attrindex].value = e.value;
|
|
14598
|
+
// isattrexists = true;
|
|
14599
|
+
// }
|
|
14600
|
+
// });
|
|
14601
|
+
// if (isattrexists == false) {
|
|
14602
|
+
// tempproductfeatuesarr.push({
|
|
14603
|
+
// id: item.id,
|
|
14604
|
+
// value: e.value,
|
|
14605
|
+
// });
|
|
14606
|
+
// }
|
|
14607
|
+
// setproductfeatuesarr([...tempproductfeatuesarr]);
|
|
14608
|
+
// }}
|
|
14609
|
+
// />
|
|
14610
|
+
// </div>
|
|
14611
|
+
// </div>
|
|
14612
|
+
;
|
|
14613
|
+
}
|
|
14614
|
+
// up here
|
|
14491
14615
|
if (item.type == 'Number') {
|
|
14492
|
-
var
|
|
14616
|
+
var _ref;
|
|
14493
14617
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14494
14618
|
"class": "col-lg-12 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 p-0"
|
|
14495
14619
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
14496
14620
|
className: "".concat(filter_cssstyles.input_label_name) + ' mb-3 w-100 ',
|
|
14497
|
-
style: (
|
|
14621
|
+
style: (_ref = {
|
|
14498
14622
|
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
14499
14623
|
color: sectionproperties.filtertitle_color
|
|
14500
|
-
}, _defineProperty__default["default"](
|
|
14624
|
+
}, _defineProperty__default["default"](_ref, "color", sectionproperties.filtertitle_color), _defineProperty__default["default"](_ref, "fontSize", sectionproperties.filtertitle_fontsize + 'px'), _defineProperty__default["default"](_ref, "fontWeight", sectionproperties.filtertitle_fontweight), _defineProperty__default["default"](_ref, "color", sectionproperties.filtertitle_color), _defineProperty__default["default"](_ref, "textTransform", 'capitalize'), _ref)
|
|
14501
14625
|
}, langdetect == 'en' ? item.name_en : item.name_ar), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14502
14626
|
"class": 'col-lg-12 p-0'
|
|
14503
14627
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
@@ -14524,7 +14648,7 @@ var Filter$2 = function Filter(props) {
|
|
|
14524
14648
|
})));
|
|
14525
14649
|
}
|
|
14526
14650
|
if (item.type == 'NumberRange') {
|
|
14527
|
-
var
|
|
14651
|
+
var _ref2;
|
|
14528
14652
|
var temppricevalue = {
|
|
14529
14653
|
min: 0,
|
|
14530
14654
|
max: 10000
|
|
@@ -14545,10 +14669,10 @@ var Filter$2 = function Filter(props) {
|
|
|
14545
14669
|
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-12 col-md-12 col-sm-12 mb-3 '
|
|
14546
14670
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
14547
14671
|
className: "".concat(filter_cssstyles.input_label_name) + ' mb-3 w-100',
|
|
14548
|
-
style: (
|
|
14672
|
+
style: (_ref2 = {
|
|
14549
14673
|
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
14550
14674
|
color: sectionproperties.filtertitle_color
|
|
14551
|
-
}, _defineProperty__default["default"](
|
|
14675
|
+
}, _defineProperty__default["default"](_ref2, "color", sectionproperties.filtertitle_color), _defineProperty__default["default"](_ref2, "fontSize", sectionproperties.filtertitle_fontsize + 'px'), _defineProperty__default["default"](_ref2, "fontWeight", sectionproperties.filtertitle_fontweight), _defineProperty__default["default"](_ref2, "color", sectionproperties.filtertitle_color), _defineProperty__default["default"](_ref2, "textTransform", 'capitalize'), _ref2)
|
|
14552
14676
|
}, langdetect == 'en' ? item.name_en : item.name_ar, item.type), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14553
14677
|
"class": 'col-lg-12 pl-4 pr-4 mt-2 mb-2',
|
|
14554
14678
|
style: {
|
|
@@ -14587,60 +14711,70 @@ var Filter$2 = function Filter(props) {
|
|
|
14587
14711
|
}))));
|
|
14588
14712
|
};
|
|
14589
14713
|
var InstFilters = function InstFilters() {
|
|
14590
|
-
return
|
|
14591
|
-
|
|
14592
|
-
|
|
14593
|
-
|
|
14594
|
-
|
|
14595
|
-
|
|
14596
|
-
|
|
14597
|
-
|
|
14598
|
-
|
|
14599
|
-
|
|
14600
|
-
|
|
14601
|
-
|
|
14602
|
-
|
|
14603
|
-
|
|
14604
|
-
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState, null, function (state) {
|
|
14605
|
-
if (state.expanded == true) {
|
|
14606
|
-
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14607
|
-
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14608
|
-
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
14609
|
-
} else {
|
|
14610
|
-
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14611
|
-
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14612
|
-
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
14613
|
-
}
|
|
14614
|
-
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
14615
|
-
className: "p-0"
|
|
14616
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14617
|
-
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
14618
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14619
|
-
className: 'col-lg-12'
|
|
14620
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14621
|
-
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
14622
|
-
}, item.productvaluesfilter.map(function (valueitem, valueindex) {
|
|
14623
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14624
|
-
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 ',
|
|
14625
|
-
onClick: function onClick() {
|
|
14626
|
-
setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
14627
|
-
}
|
|
14628
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14629
|
-
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 '
|
|
14630
|
-
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14631
|
-
className: "h-100 d-flex align-items-center"
|
|
14632
|
-
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14633
|
-
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
14714
|
+
return (
|
|
14715
|
+
/*#__PURE__*/
|
|
14716
|
+
// <Accordion allowMultipleExpanded={true} allowZeroExpanded={true}>
|
|
14717
|
+
React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
14718
|
+
allowMultipleExpanded: true,
|
|
14719
|
+
allowZeroExpanded: true,
|
|
14720
|
+
preExpanded: [0, 1, 2, 3]
|
|
14721
|
+
}, instfilters.map(function (item, index) {
|
|
14722
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, {
|
|
14723
|
+
uuid: index
|
|
14724
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14725
|
+
className: filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 mb-4 '
|
|
14726
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14727
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
14634
14728
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14635
|
-
className:
|
|
14636
|
-
|
|
14637
|
-
|
|
14729
|
+
className: langdetect == 'en' ? filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 ' : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
|
|
14730
|
+
}, langdetect == 'en' ? item.optionname : item.optionname_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14731
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
14732
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState, null, function (state) {
|
|
14733
|
+
if (state.expanded == true) {
|
|
14734
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14735
|
+
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14736
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
14737
|
+
} else {
|
|
14738
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14739
|
+
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14740
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
14638
14741
|
}
|
|
14639
|
-
},
|
|
14640
|
-
|
|
14641
|
-
|
|
14642
|
-
|
|
14643
|
-
|
|
14742
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
14743
|
+
className: "p-0"
|
|
14744
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14745
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
14746
|
+
}, /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
14747
|
+
"class": "thwvsf-wrapper-ul"
|
|
14748
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14749
|
+
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
14750
|
+
}, item.productvaluesfilter.map(function (valueitem, valueindex) {
|
|
14751
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14752
|
+
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 ',
|
|
14753
|
+
onClick: function onClick() {
|
|
14754
|
+
setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
14755
|
+
}
|
|
14756
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14757
|
+
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 '
|
|
14758
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14759
|
+
className: "h-100 d-flex align-items-center"
|
|
14760
|
+
}))), item.optionname == 'Color' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14761
|
+
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
14762
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14763
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
14764
|
+
style: {
|
|
14765
|
+
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
14766
|
+
}
|
|
14767
|
+
}, valueitem.value_identifier)), item.optionname != 'Color' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14768
|
+
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
14769
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14770
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
14771
|
+
style: {
|
|
14772
|
+
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
14773
|
+
}
|
|
14774
|
+
}, langdetect == 'en' ? valueitem.valuename : valueitem.valuename_ar)));
|
|
14775
|
+
})))))));
|
|
14776
|
+
}))
|
|
14777
|
+
);
|
|
14644
14778
|
};
|
|
14645
14779
|
var filter_cssstyles = {
|
|
14646
14780
|
form_control: glamor.css((_css = {
|
|
@@ -14819,14 +14953,14 @@ var Filter$2 = function Filter(props) {
|
|
|
14819
14953
|
return option.id == ProductFilterObjContext.countryid;
|
|
14820
14954
|
}),
|
|
14821
14955
|
onChange: function onChange(option) {
|
|
14822
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
14956
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
14823
14957
|
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
14824
14958
|
tempFetchTabexStatesPayloadobjContext.country_id = option.id;
|
|
14825
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
14826
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14959
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
14960
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14827
14961
|
tempfetchproductsfilerobjcontext.countryid = option.id;
|
|
14828
14962
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14829
|
-
setProductFilterObjContext(_objectSpread$
|
|
14963
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14830
14964
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14831
14965
|
},
|
|
14832
14966
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -14863,14 +14997,14 @@ var Filter$2 = function Filter(props) {
|
|
|
14863
14997
|
return option.id == ProductFilterObjContext.stateid;
|
|
14864
14998
|
}),
|
|
14865
14999
|
onChange: function onChange(option) {
|
|
14866
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
15000
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
14867
15001
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
14868
15002
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
14869
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
14870
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15003
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
15004
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14871
15005
|
tempfetchproductsfilerobjcontext.stateid = option.id;
|
|
14872
15006
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14873
|
-
setProductFilterObjContext(_objectSpread$
|
|
15007
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14874
15008
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14875
15009
|
},
|
|
14876
15010
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -14907,10 +15041,10 @@ var Filter$2 = function Filter(props) {
|
|
|
14907
15041
|
return option.id == ProductFilterObjContext.cityid;
|
|
14908
15042
|
}),
|
|
14909
15043
|
onChange: function onChange(option) {
|
|
14910
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15044
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14911
15045
|
tempfetchproductsfilerobjcontext.cityid = option.id;
|
|
14912
15046
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14913
|
-
setProductFilterObjContext(_objectSpread$
|
|
15047
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14914
15048
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14915
15049
|
},
|
|
14916
15050
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -14934,11 +15068,14 @@ var Filter$2 = function Filter(props) {
|
|
|
14934
15068
|
// }
|
|
14935
15069
|
// }, []);
|
|
14936
15070
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14937
|
-
className
|
|
15071
|
+
// 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'}
|
|
15072
|
+
className: 'row m-0 p-0 w-100',
|
|
14938
15073
|
style: {
|
|
14939
15074
|
marginTop: sectionproperties.filtersection_mt + 'px',
|
|
14940
15075
|
minHeight: sectionproperties.filterminheight == 0 ? 'auto' : sectionproperties.filterminheight + 'vh'
|
|
14941
15076
|
}
|
|
15077
|
+
}, props.typeprops != 'vertical' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15078
|
+
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'
|
|
14942
15079
|
}, sectionproperties.filterType == 'Title & Sort By Only' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14943
15080
|
"class": "row mx-0 w-100",
|
|
14944
15081
|
style: {
|
|
@@ -15014,14 +15151,14 @@ var Filter$2 = function Filter(props) {
|
|
|
15014
15151
|
color: ischecked ? sectionproperties.activecat_color : ''
|
|
15015
15152
|
},
|
|
15016
15153
|
onClick: function onClick() {
|
|
15017
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15154
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15018
15155
|
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
15019
15156
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
15020
15157
|
} else {
|
|
15021
15158
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
|
|
15022
15159
|
}
|
|
15023
15160
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
15024
|
-
setProductFilterObjContext(_objectSpread$
|
|
15161
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15025
15162
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
15026
15163
|
setsortbycontext(valueitem.name);
|
|
15027
15164
|
}
|
|
@@ -15166,11 +15303,11 @@ var Filter$2 = function Filter(props) {
|
|
|
15166
15303
|
if (state.expanded == true) {
|
|
15167
15304
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15168
15305
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
15169
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
15306
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
15170
15307
|
} else {
|
|
15171
15308
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15172
15309
|
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15173
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
15310
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
15174
15311
|
}
|
|
15175
15312
|
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
15176
15313
|
className: "p-0"
|
|
@@ -15194,14 +15331,14 @@ var Filter$2 = function Filter(props) {
|
|
|
15194
15331
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15195
15332
|
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 ',
|
|
15196
15333
|
onClick: function onClick() {
|
|
15197
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15334
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15198
15335
|
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
15199
15336
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
15200
15337
|
} else {
|
|
15201
15338
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
|
|
15202
15339
|
}
|
|
15203
15340
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
15204
|
-
setProductFilterObjContext(_objectSpread$
|
|
15341
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15205
15342
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
15206
15343
|
}
|
|
15207
15344
|
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -15236,7 +15373,7 @@ var Filter$2 = function Filter(props) {
|
|
|
15236
15373
|
minValue: 0,
|
|
15237
15374
|
value: raterangevalue,
|
|
15238
15375
|
onChange: function onChange(value) {
|
|
15239
|
-
setraterangevalue(_objectSpread$
|
|
15376
|
+
setraterangevalue(_objectSpread$29({}, value));
|
|
15240
15377
|
}
|
|
15241
15378
|
}))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15242
15379
|
className: "col-lg-9 col-md-9 col-sm-9 d-flex align-items-center d-md-none"
|
|
@@ -15350,11 +15487,11 @@ var Filter$2 = function Filter(props) {
|
|
|
15350
15487
|
if (state.expanded == true) {
|
|
15351
15488
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15352
15489
|
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15353
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
15490
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
15354
15491
|
} else {
|
|
15355
15492
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15356
15493
|
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15357
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
15494
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
15358
15495
|
}
|
|
15359
15496
|
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
15360
15497
|
className: "p-0"
|
|
@@ -15379,13 +15516,13 @@ var Filter$2 = function Filter(props) {
|
|
|
15379
15516
|
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 ',
|
|
15380
15517
|
onClick: function onClick() {
|
|
15381
15518
|
// setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
15382
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15519
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15383
15520
|
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
15384
15521
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
15385
15522
|
} else {
|
|
15386
15523
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
|
|
15387
15524
|
}
|
|
15388
|
-
setProductFilterObjContext(_objectSpread$
|
|
15525
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15389
15526
|
}
|
|
15390
15527
|
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15391
15528
|
className: " ".concat(ischecked ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' mb-2 d-flex align-items-center '
|
|
@@ -15399,9 +15536,7 @@ var Filter$2 = function Filter(props) {
|
|
|
15399
15536
|
color: ischecked ? sectionproperties.activecat_color : ''
|
|
15400
15537
|
}
|
|
15401
15538
|
}, valueitem.name)));
|
|
15402
|
-
})))))))
|
|
15403
|
-
className: "mt-3 mb-3"
|
|
15404
|
-
}));
|
|
15539
|
+
}))))))));
|
|
15405
15540
|
}), sectionproperties.otherfilters == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15406
15541
|
className: "col-lg-12"
|
|
15407
15542
|
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
@@ -15414,570 +15549,188 @@ var Filter$2 = function Filter(props) {
|
|
|
15414
15549
|
"class": "row m-0 w-100"
|
|
15415
15550
|
}, CollectionsFilter()), sectionproperties.showdynamicfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15416
15551
|
"class": "row m-0 w-100"
|
|
15417
|
-
}, DynamicFilter()), sectionproperties.showvariantsfilter == 'Show' && InstFilters())))))))
|
|
15418
|
-
|
|
15419
|
-
|
|
15420
|
-
|
|
15421
|
-
|
|
15422
|
-
|
|
15423
|
-
|
|
15424
|
-
|
|
15425
|
-
var langdetect = props.actions.langdetect;
|
|
15426
|
-
props.actions.productfiltercontext;
|
|
15427
|
-
props.actions.setproductfiltercontext;
|
|
15428
|
-
var ProductFilterObjContext = props.actions.ProductFilterObjContext;
|
|
15429
|
-
var setProductFilterObjContext = props.actions.setProductFilterObjContext;
|
|
15430
|
-
props.actions.authdetailsContext;
|
|
15431
|
-
var fetchproductoptionsQueryContext = props.actions.fetchproductoptionsQueryContext;
|
|
15432
|
-
var fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
|
|
15433
|
-
var routingcountext = props.actions.routingcountext;
|
|
15434
|
-
var fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
|
|
15435
|
-
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
15436
|
-
props.actions.ikimagecredcontext;
|
|
15437
|
-
var _useState = React.useState({
|
|
15438
|
-
min: 0,
|
|
15439
|
-
max: 10000
|
|
15440
|
-
}),
|
|
15441
|
-
_useState2 = _slicedToArray__default["default"](_useState, 2);
|
|
15442
|
-
_useState2[0];
|
|
15443
|
-
_useState2[1];
|
|
15444
|
-
var _useState3 = React.useState([]),
|
|
15445
|
-
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
15446
|
-
productfeatuesarr = _useState4[0];
|
|
15447
|
-
_useState4[1];
|
|
15448
|
-
props.actions.fetchTabexCountriesQueryContext;
|
|
15449
|
-
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
15450
|
-
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
15451
|
-
props.actions.fetchTabexCitiesQueryContext;
|
|
15452
|
-
var fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
|
|
15453
|
-
var FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
|
|
15454
|
-
var setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
|
|
15455
|
-
props.actions.fetchProductFeaturesQueryContext;
|
|
15456
|
-
var _useState5 = React.useState(''),
|
|
15457
|
-
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
15458
|
-
sectionproperties = _useState6[0],
|
|
15459
|
-
setsectionproperties = _useState6[1];
|
|
15460
|
-
// const [instfilters, setinstfilters] = useState([...authdetailsContext.instinfo.instfilters]);
|
|
15461
|
-
var _useState7 = React.useState([]),
|
|
15462
|
-
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
15463
|
-
instfilters = _useState8[0],
|
|
15464
|
-
setinstfilters = _useState8[1];
|
|
15465
|
-
var _useState9 = React.useState([]),
|
|
15466
|
-
_useState10 = _slicedToArray__default["default"](_useState9, 2);
|
|
15467
|
-
_useState10[0];
|
|
15468
|
-
var setcollectionstobevisible = _useState10[1];
|
|
15469
|
-
var _useState11 = React.useState([]),
|
|
15470
|
-
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
15471
|
-
instcollections = _useState12[0],
|
|
15472
|
-
setinstcollections = _useState12[1];
|
|
15473
|
-
var _useState13 = React.useState([]),
|
|
15474
|
-
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
15475
|
-
instcategories = _useState14[0],
|
|
15476
|
-
setinstcategories = _useState14[1];
|
|
15477
|
-
// const [sortby, setSortby] = useState('Sort by');
|
|
15478
|
-
var _useState15 = React.useState({
|
|
15479
|
-
min: 0,
|
|
15480
|
-
max: 5
|
|
15481
|
-
}),
|
|
15482
|
-
_useState16 = _slicedToArray__default["default"](_useState15, 2),
|
|
15483
|
-
raterangevalue = _useState16[0];
|
|
15484
|
-
_useState16[1];
|
|
15485
|
-
var timeoutRef = React__default["default"].useRef(null);
|
|
15486
|
-
var _useState17 = React.useState(''),
|
|
15487
|
-
_useState18 = _slicedToArray__default["default"](_useState17, 2);
|
|
15488
|
-
_useState18[0];
|
|
15489
|
-
_useState18[1];
|
|
15490
|
-
var _useState19 = React.useState([{
|
|
15491
|
-
payloadvalue: 'sortprice',
|
|
15492
|
-
name: lang.price,
|
|
15493
|
-
filterarray: [{
|
|
15494
|
-
name: lang.pricehightolow,
|
|
15495
|
-
value: 'hightolow',
|
|
15496
|
-
isfilterselected: false
|
|
15497
|
-
}, {
|
|
15498
|
-
name: lang.pricelowtohigh,
|
|
15499
|
-
value: 'lowtohigh',
|
|
15500
|
-
isfilterselected: false
|
|
15501
|
-
}]
|
|
15502
|
-
}, {
|
|
15503
|
-
payloadvalue: 'sortdates',
|
|
15504
|
-
name: lang.dates,
|
|
15505
|
-
filterarray: [{
|
|
15506
|
-
name: lang.recent,
|
|
15507
|
-
value: 'recent',
|
|
15508
|
-
isfilterselected: false
|
|
15509
|
-
}, {
|
|
15510
|
-
name: lang.oldest,
|
|
15511
|
-
value: 'old',
|
|
15512
|
-
isfilterselected: false
|
|
15513
|
-
}]
|
|
15514
|
-
}]),
|
|
15515
|
-
_useState20 = _slicedToArray__default["default"](_useState19, 2);
|
|
15516
|
-
_useState20[0];
|
|
15517
|
-
_useState20[1];
|
|
15518
|
-
React.useEffect(function () {
|
|
15519
|
-
filterupdater();
|
|
15520
|
-
}, []);
|
|
15521
|
-
React.useEffect(function () {
|
|
15522
|
-
if (fetchproductoptionsQueryContext.isSuccess) {
|
|
15523
|
-
var _fetchproductoptionsQ;
|
|
15524
|
-
setinstfilters(_toConsumableArray__default["default"](fetchproductoptionsQueryContext === null || fetchproductoptionsQueryContext === void 0 || (_fetchproductoptionsQ = fetchproductoptionsQueryContext.data) === null || _fetchproductoptionsQ === void 0 || (_fetchproductoptionsQ = _fetchproductoptionsQ.data) === null || _fetchproductoptionsQ === void 0 ? void 0 : _fetchproductoptionsQ.productoptions));
|
|
15525
|
-
}
|
|
15526
|
-
}, [fetchproductoptionsQueryContext.isSuccess]);
|
|
15527
|
-
React.useEffect(function () {
|
|
15528
|
-
if (fetchCategoriesQueryContext.isSuccess) {
|
|
15529
|
-
var _fetchCategoriesQuery;
|
|
15530
|
-
setinstcategories(_toConsumableArray__default["default"](fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery === void 0 || (_fetchCategoriesQuery = _fetchCategoriesQuery.data) === null || _fetchCategoriesQuery === void 0 ? void 0 : _fetchCategoriesQuery.categories));
|
|
15531
|
-
}
|
|
15532
|
-
}, [fetchCategoriesQueryContext.isSuccess]);
|
|
15533
|
-
React.useEffect(function () {
|
|
15534
|
-
if (fetchcollectionsQueryContext.isSuccess) {
|
|
15535
|
-
var _fetchcollectionsQuer;
|
|
15536
|
-
setinstcollections(_toConsumableArray__default["default"](fetchcollectionsQueryContext === null || fetchcollectionsQueryContext === void 0 || (_fetchcollectionsQuer = fetchcollectionsQueryContext.data) === null || _fetchcollectionsQuer === void 0 || (_fetchcollectionsQuer = _fetchcollectionsQuer.data) === null || _fetchcollectionsQuer === void 0 ? void 0 : _fetchcollectionsQuer.collections));
|
|
15537
|
-
}
|
|
15538
|
-
}, [fetchcollectionsQueryContext.isSuccess]);
|
|
15539
|
-
// useEffect(() => {
|
|
15540
|
-
// // setinstfilters([...authdetailsContext.instinfo.instfilters]);
|
|
15541
|
-
// // setinstcollections([...authdetailsContext.instinfo.instcollections]);
|
|
15542
|
-
// // setinstcategories([...authdetailsContext?.instinfo?.instcategories]);
|
|
15543
|
-
// }, [authdetailsContext]);
|
|
15544
|
-
React.useEffect(function () {
|
|
15545
|
-
if (props.sectionpropertiesprops != undefined && props.sectionpropertiesprops.length != 0) {
|
|
15546
|
-
setsectionproperties(props.sectionpropertiesprops);
|
|
15547
|
-
}
|
|
15548
|
-
}, [props.sectionpropertiesprops]);
|
|
15549
|
-
React.useEffect(function () {
|
|
15550
|
-
filterupdater();
|
|
15551
|
-
}, [ProductFilterObjContext]);
|
|
15552
|
-
React__default["default"].useEffect(function () {
|
|
15553
|
-
if (timeoutRef.current !== null) {
|
|
15554
|
-
clearTimeout(timeoutRef.current);
|
|
15555
|
-
}
|
|
15556
|
-
timeoutRef.current = setTimeout(function () {
|
|
15557
|
-
if (raterangevalue.min != 0 || raterangevalue.max != 5) {
|
|
15558
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15559
|
-
tempfetchproductsfilerobjcontext.minrate = raterangevalue.min;
|
|
15560
|
-
tempfetchproductsfilerobjcontext.maxrate = raterangevalue.max;
|
|
15561
|
-
tempfetchproductsfilerobjcontext.page = 0;
|
|
15562
|
-
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15563
|
-
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
15564
|
-
}
|
|
15565
|
-
}, 500);
|
|
15566
|
-
}, [raterangevalue]);
|
|
15567
|
-
React.useEffect(function () {
|
|
15568
|
-
if (fetchCategoriesQueryContext.isSuccess && fetchcollectionsQueryContext.isSuccess) {
|
|
15569
|
-
if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.filterretreivetype) == 'Depend on chosen parent group') {
|
|
15570
|
-
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)) {
|
|
15571
|
-
var _parentidsfound;
|
|
15572
|
-
var collectiontobevisible = [];
|
|
15573
|
-
var parentidsfound = [];
|
|
15574
|
-
if (ProductFilterObjContext.ProductFetchingType == 'Parent Collection') {
|
|
15575
|
-
parentidsfound = ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.collections;
|
|
15576
|
-
} else if (ProductFilterObjContext.ProductFetchingType == 'Category') {
|
|
15577
|
-
instcategories === null || instcategories === void 0 || instcategories.forEach(function (catitem, catindex) {
|
|
15578
|
-
var _ProductFilterObjCont;
|
|
15579
|
-
ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont = ProductFilterObjContext.collections) === null || _ProductFilterObjCont === void 0 || _ProductFilterObjCont.forEach(function (colitem2, colindex2) {
|
|
15580
|
-
if (catitem.categoryid == colitem2) {
|
|
15581
|
-
var _catitem$parentcollet;
|
|
15582
|
-
catitem === null || catitem === void 0 || (_catitem$parentcollet = catitem.parentcolletions) === null || _catitem$parentcollet === void 0 || _catitem$parentcollet.forEach(function (parentcolitem, parentcolindex) {
|
|
15583
|
-
parentidsfound.push(parentcolitem.parentcollectionid);
|
|
15584
|
-
});
|
|
15585
|
-
}
|
|
15586
|
-
});
|
|
15587
|
-
});
|
|
15588
|
-
} else {
|
|
15589
|
-
instcategories === null || instcategories === void 0 || instcategories.forEach(function (catitem, catindex) {
|
|
15590
|
-
var _catitem$parentcollet2;
|
|
15591
|
-
catitem === null || catitem === void 0 || (_catitem$parentcollet2 = catitem.parentcolletions) === null || _catitem$parentcollet2 === void 0 || _catitem$parentcollet2.forEach(function (parentcolitem, parentcolindex) {
|
|
15592
|
-
var _parentcolitem$collec;
|
|
15593
|
-
parentcolitem === null || parentcolitem === void 0 || (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 || _parentcolitem$collec.forEach(function (colitem, colindex) {
|
|
15594
|
-
var _ProductFilterObjCont2;
|
|
15595
|
-
ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont2 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont2 === void 0 || _ProductFilterObjCont2.forEach(function (colitem2, colindex2) {
|
|
15596
|
-
if (colitem.collectionid == colitem2) {
|
|
15597
|
-
parentidsfound.push(parentcolitem.parentcollectionid);
|
|
15598
|
-
}
|
|
15599
|
-
});
|
|
15600
|
-
});
|
|
15601
|
-
});
|
|
15602
|
-
});
|
|
15603
|
-
}
|
|
15604
|
-
parentidsfound = parentidsfound.filter(function (val, id, array) {
|
|
15605
|
-
return array.indexOf(val) == id;
|
|
15606
|
-
});
|
|
15607
|
-
if (((_parentidsfound = parentidsfound) === null || _parentidsfound === void 0 ? void 0 : _parentidsfound.length) != 0) {
|
|
15608
|
-
instcategories === null || instcategories === void 0 || instcategories.forEach(function (catitem, catindex) {
|
|
15609
|
-
var _catitem$parentcollet3;
|
|
15610
|
-
catitem === null || catitem === void 0 || (_catitem$parentcollet3 = catitem.parentcolletions) === null || _catitem$parentcollet3 === void 0 || _catitem$parentcollet3.forEach(function (parentcolitem, parentcolindex) {
|
|
15611
|
-
var _parentidsfound2;
|
|
15612
|
-
(_parentidsfound2 = parentidsfound) === null || _parentidsfound2 === void 0 || _parentidsfound2.forEach(function (parentidfounditem, parentidfoundindex) {
|
|
15613
|
-
if (parentidfounditem == (parentcolitem === null || parentcolitem === void 0 ? void 0 : parentcolitem.parentcollectionid)) {
|
|
15614
|
-
var _parentcolitem$collec2;
|
|
15615
|
-
parentcolitem === null || parentcolitem === void 0 || (_parentcolitem$collec2 = parentcolitem.collections) === null || _parentcolitem$collec2 === void 0 || _parentcolitem$collec2.forEach(function (colitem, colindex) {
|
|
15616
|
-
var iscolexists = false;
|
|
15617
|
-
collectiontobevisible === null || collectiontobevisible === void 0 || collectiontobevisible.forEach(function (colitemex, colindexex) {
|
|
15618
|
-
if (colitemex.collectionid == colitem.collectionid) {
|
|
15619
|
-
iscolexists = true;
|
|
15620
|
-
}
|
|
15621
|
-
});
|
|
15622
|
-
if (iscolexists == false) {
|
|
15623
|
-
collectiontobevisible.push(colitem);
|
|
15624
|
-
}
|
|
15625
|
-
});
|
|
15626
|
-
}
|
|
15627
|
-
});
|
|
15628
|
-
});
|
|
15629
|
-
});
|
|
15630
|
-
if ((collectiontobevisible === null || collectiontobevisible === void 0 ? void 0 : collectiontobevisible.length) != 0) {
|
|
15631
|
-
setcollectionstobevisible(collectiontobevisible);
|
|
15632
|
-
} else {
|
|
15633
|
-
setcollectionstobevisible(instcollections);
|
|
15634
|
-
}
|
|
15635
|
-
} else {
|
|
15636
|
-
setcollectionstobevisible(instcollections);
|
|
15637
|
-
}
|
|
15638
|
-
} else {
|
|
15639
|
-
setcollectionstobevisible(instcollections);
|
|
15640
|
-
}
|
|
15641
|
-
} else {
|
|
15642
|
-
setcollectionstobevisible(instcollections);
|
|
15643
|
-
}
|
|
15644
|
-
}
|
|
15645
|
-
}, [ProductFilterObjContext, fetchCategoriesQueryContext.isSuccess, fetchcollectionsQueryContext.isSuccess, instcategories, instcollections]);
|
|
15646
|
-
React.useEffect(function () {
|
|
15647
|
-
if (productfeatuesarr.length != 0) {
|
|
15648
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15649
|
-
tempfetchproductsfilerobjcontext.prod_featruesar = productfeatuesarr;
|
|
15650
|
-
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15651
|
-
filterrouting(tempfetchproductsfilerobjcontext);
|
|
15652
|
-
}
|
|
15653
|
-
}, [productfeatuesarr]);
|
|
15654
|
-
React.useEffect(function () {
|
|
15655
|
-
if (fetchTabexStatesQueryContext.isSuccess) {
|
|
15656
|
-
if (ProductFilterObjContext.stateid != undefined && ProductFilterObjContext.stateid != null && ProductFilterObjContext.stateid != '' && ProductFilterObjContext.stateid != 'all') {
|
|
15657
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
15658
|
-
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
15659
|
-
tempFetchTabexStatesPayloadobjContext.state_id = ProductFilterObjContext.stateid;
|
|
15660
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
15661
|
-
}
|
|
15662
|
-
}
|
|
15663
|
-
}, [fetchTabexStatesQueryContext.isSuccess]);
|
|
15664
|
-
var filterupdater = function filterupdater() {
|
|
15665
|
-
setTimeout(function () {
|
|
15666
|
-
var tempFetchQueriesEngineContext = _objectSpread$29({}, FetchQueriesEngineContext);
|
|
15667
|
-
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
15668
|
-
setFetchQueriesEngineContext(tempFetchQueriesEngineContext);
|
|
15669
|
-
}, 100);
|
|
15670
|
-
if (ProductFilterObjContext.countryid != undefined && ProductFilterObjContext.countryid != null && ProductFilterObjContext.countryid != '' && ProductFilterObjContext.countryid != 'all') {
|
|
15671
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
15672
|
-
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
15673
|
-
tempFetchTabexStatesPayloadobjContext.country_id = ProductFilterObjContext.countryid;
|
|
15674
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
15675
|
-
}
|
|
15676
|
-
if (instfilters.length != 0) {
|
|
15677
|
-
var _ProductFilterObjCont3;
|
|
15678
|
-
var tempinstfilters = _toConsumableArray__default["default"](instfilters);
|
|
15679
|
-
tempinstfilters === null || tempinstfilters === void 0 || tempinstfilters.forEach(function (instfilteritem, instfilterindex) {
|
|
15680
|
-
instfilteritem.productvaluesfilter.forEach(function (valefilteritem, valefilteritemindex) {
|
|
15681
|
-
valefilteritem.isfilterselected = false;
|
|
15682
|
-
});
|
|
15683
|
-
});
|
|
15684
|
-
ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont3 = ProductFilterObjContext.FilterOptions) === null || _ProductFilterObjCont3 === void 0 || _ProductFilterObjCont3.forEach(function (filteritem, filterindex) {
|
|
15685
|
-
tempinstfilters === null || tempinstfilters === void 0 || tempinstfilters.forEach(function (instfilteritem, instfilterindex) {
|
|
15686
|
-
var _instfilteritem$produ;
|
|
15687
|
-
instfilteritem === null || instfilteritem === void 0 || (_instfilteritem$produ = instfilteritem.productvaluesfilter) === null || _instfilteritem$produ === void 0 || _instfilteritem$produ.forEach(function (valefilteritem, valefilteritemindex) {
|
|
15688
|
-
if (filteritem.valueid == valefilteritem.valueid) {
|
|
15689
|
-
valefilteritem.isfilterselected = true;
|
|
15690
|
-
}
|
|
15691
|
-
});
|
|
15692
|
-
});
|
|
15693
|
-
});
|
|
15694
|
-
setinstfilters(_toConsumableArray__default["default"](tempinstfilters));
|
|
15695
|
-
}
|
|
15696
|
-
if (instcategories.length != 0) {
|
|
15697
|
-
var _ProductFilterObjCont4;
|
|
15698
|
-
var tempInstcategories = _toConsumableArray__default["default"](instcategories);
|
|
15699
|
-
tempInstcategories.forEach(function (catitem, catindex) {
|
|
15700
|
-
catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
|
|
15701
|
-
parentcolitem.collections.forEach(function (colitem, colindex) {
|
|
15702
|
-
colitem.isfilterselected = false;
|
|
15703
|
-
});
|
|
15704
|
-
});
|
|
15705
|
-
});
|
|
15706
|
-
ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont4 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont4 === void 0 || _ProductFilterObjCont4.forEach(function (filteritem, filterindex) {
|
|
15707
|
-
tempInstcategories.forEach(function (catitem, catindex) {
|
|
15708
|
-
catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
|
|
15709
|
-
parentcolitem.collections.forEach(function (colitem, colindex) {
|
|
15710
|
-
if (colitem.collectionid == filteritem) {
|
|
15711
|
-
colitem.isfilterselected = true;
|
|
15712
|
-
}
|
|
15713
|
-
});
|
|
15714
|
-
});
|
|
15715
|
-
});
|
|
15716
|
-
});
|
|
15717
|
-
setinstcategories(_toConsumableArray__default["default"](tempInstcategories));
|
|
15718
|
-
}
|
|
15719
|
-
if (instcollections.length != 0) {
|
|
15720
|
-
var _ProductFilterObjCont5;
|
|
15721
|
-
var tempInstcollections = _toConsumableArray__default["default"](instcollections);
|
|
15722
|
-
tempInstcollections.forEach(function (instfilteritem, valefilteritemindex) {
|
|
15723
|
-
instfilteritem.isfilterselected = false;
|
|
15724
|
-
});
|
|
15725
|
-
ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont5 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont5 === void 0 || _ProductFilterObjCont5.forEach(function (filteritem, filterindex) {
|
|
15726
|
-
tempInstcollections === null || tempInstcollections === void 0 || tempInstcollections.forEach(function (instfilteritem, instfilterindex) {
|
|
15727
|
-
if (instfilteritem.collectionid == filteritem) {
|
|
15728
|
-
instfilteritem.isfilterselected = true;
|
|
15729
|
-
}
|
|
15730
|
-
});
|
|
15731
|
-
});
|
|
15732
|
-
setinstcollections(_toConsumableArray__default["default"](tempInstcollections));
|
|
15733
|
-
}
|
|
15734
|
-
};
|
|
15735
|
-
var setfilterfunc = function setfilterfunc(valueid, valueindex, mainparentindex, type) {
|
|
15736
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15737
|
-
if (type == 'clearfilters') {
|
|
15738
|
-
tempfetchproductsfilerobjcontext.FilterOptions = [];
|
|
15739
|
-
} else {
|
|
15740
|
-
var _tempfetchproductsfil;
|
|
15741
|
-
var FilterExists = false;
|
|
15742
|
-
tempfetchproductsfilerobjcontext === null || tempfetchproductsfilerobjcontext === void 0 || (_tempfetchproductsfil = tempfetchproductsfilerobjcontext.FilterOptions) === null || _tempfetchproductsfil === void 0 || _tempfetchproductsfil.forEach(function (filteritem, filterindex) {
|
|
15743
|
-
if (filteritem.valueid == valueid) {
|
|
15744
|
-
FilterExists = true;
|
|
15745
|
-
tempfetchproductsfilerobjcontext.FilterOptions.splice(filterindex, 1);
|
|
15746
|
-
}
|
|
15747
|
-
});
|
|
15748
|
-
if (!FilterExists) {
|
|
15749
|
-
tempfetchproductsfilerobjcontext.FilterOptions.push({
|
|
15750
|
-
valueid: valueid
|
|
15751
|
-
});
|
|
15752
|
-
}
|
|
15753
|
-
}
|
|
15754
|
-
if (tempfetchproductsfilerobjcontext.FilterOptions.length == 0) {
|
|
15755
|
-
tempfetchproductsfilerobjcontext.isfilter = 0;
|
|
15756
|
-
} else {
|
|
15757
|
-
tempfetchproductsfilerobjcontext.isfilter = 1;
|
|
15758
|
-
}
|
|
15759
|
-
tempfetchproductsfilerobjcontext.page = 0;
|
|
15760
|
-
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15761
|
-
filterrouting(tempfetchproductsfilerobjcontext);
|
|
15762
|
-
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
15763
|
-
};
|
|
15764
|
-
var InstFilters = function InstFilters() {
|
|
15765
|
-
return /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
15766
|
-
allowMultipleExpanded: true,
|
|
15767
|
-
allowZeroExpanded: true
|
|
15768
|
-
}, instfilters.map(function (item, index) {
|
|
15769
|
-
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, {
|
|
15770
|
-
uuid: index
|
|
15771
|
-
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15772
|
-
className: filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '
|
|
15773
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15774
|
-
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
15775
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15776
|
-
className: langdetect == 'en' ? filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 ' : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
|
|
15777
|
-
}, langdetect == 'en' ? item.optionname : item.optionname_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15778
|
-
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
15779
|
-
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState, null, function (state) {
|
|
15780
|
-
if (state.expanded == true) {
|
|
15781
|
-
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15782
|
-
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
15783
|
-
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
15784
|
-
} else {
|
|
15785
|
-
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15786
|
-
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
15787
|
-
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
15788
|
-
}
|
|
15789
|
-
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
15790
|
-
className: "p-0"
|
|
15791
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15792
|
-
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
15793
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15794
|
-
className: 'col-lg-12'
|
|
15795
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15796
|
-
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
15797
|
-
}, item.productvaluesfilter.map(function (valueitem, valueindex) {
|
|
15798
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15799
|
-
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 ',
|
|
15800
|
-
onClick: function onClick() {
|
|
15801
|
-
setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
15802
|
-
}
|
|
15803
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15804
|
-
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 '
|
|
15805
|
-
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15806
|
-
className: "h-100 d-flex align-items-center"
|
|
15807
|
-
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15808
|
-
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
15809
|
-
}, item.optionname == 'Color' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15810
|
-
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
15811
|
-
style: {
|
|
15812
|
-
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
15813
|
-
}
|
|
15814
|
-
}, valueitem.value_identifier), item.optionname != 'Color' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15815
|
-
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
15816
|
-
style: {
|
|
15817
|
-
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
15818
|
-
}
|
|
15819
|
-
}, langdetect == 'en' ? valueitem.valuename : valueitem.valuename_ar)));
|
|
15820
|
-
})))))), /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
15821
|
-
className: "mt-3 mb-3"
|
|
15822
|
-
}));
|
|
15823
|
-
}));
|
|
15824
|
-
};
|
|
15825
|
-
var filter_cssstyles = {
|
|
15826
|
-
form_control: glamor.css((_css = {
|
|
15827
|
-
position: 'relative',
|
|
15828
|
-
display: 'flex',
|
|
15829
|
-
alignItems: 'center'
|
|
15830
|
-
}, _defineProperty__default["default"](_css, "display", 'block'), _defineProperty__default["default"](_css, "width", '100%'), _defineProperty__default["default"](_css, "padding", '0 30px'), _defineProperty__default["default"](_css, "transition", '.3s'), _defineProperty__default["default"](_css, "fontWeight", 500), _defineProperty__default["default"](_css, "border", '1px solid #ccc'), _defineProperty__default["default"](_css, "borderRadius", '5px'), _defineProperty__default["default"](_css, "height", '40px'), _defineProperty__default["default"](_css, "background", 'transparent'), _defineProperty__default["default"](_css, "color", '#000'), _defineProperty__default["default"](_css, "fontSize", '14px'), _defineProperty__default["default"](_css, ':focus', {
|
|
15831
|
-
// borderColor: sectionproperties.inputfeildbordercoloronfocus,
|
|
15832
|
-
borderColor: '#eac435',
|
|
15833
|
-
boxShadow: 'none'
|
|
15834
|
-
}), _css)),
|
|
15835
|
-
collapsetitle: glamor.css({
|
|
15836
|
-
fontSize: sectionproperties.filtertitle_fontsize + 'px',
|
|
15837
|
-
fontWeight: sectionproperties.filtertitle_fontweight,
|
|
15838
|
-
textTransform: sectionproperties.filtertitle_texttransform,
|
|
15839
|
-
color: sectionproperties.filtertitle_color,
|
|
15840
|
-
':hover': {
|
|
15841
|
-
color: sectionproperties.filtertitle_coloronhover
|
|
15842
|
-
}
|
|
15843
|
-
}),
|
|
15844
|
-
titlecontainer: glamor.css({
|
|
15845
|
-
color: sectionproperties.filtertitle_color,
|
|
15846
|
-
':hover .collapsetitle': {
|
|
15847
|
-
color: sectionproperties.filtertitle_coloronhover
|
|
15848
|
-
}
|
|
15849
|
-
}),
|
|
15850
|
-
timeline_text: glamor.css({
|
|
15851
|
-
fontSize: sectionproperties.timeline_text_fontsize + 'px',
|
|
15852
|
-
fontWeight: sectionproperties.timeline_text_fontweight,
|
|
15853
|
-
textTransform: sectionproperties.timeline_text_texttransform,
|
|
15854
|
-
color: sectionproperties.timeline_text_color,
|
|
15855
|
-
transition: '.3s',
|
|
15856
|
-
':hover': {
|
|
15857
|
-
color: sectionproperties.timeline_text_coloronhover
|
|
15858
|
-
}
|
|
15859
|
-
}),
|
|
15860
|
-
btnstyles: glamor.css({
|
|
15861
|
-
color: sectionproperties.generalbtn_textColor,
|
|
15862
|
-
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
15863
|
-
textTransform: sectionproperties.generalbtn_texttransform,
|
|
15864
|
-
width: sectionproperties.generalbtn_width + 'px',
|
|
15865
|
-
height: sectionproperties.generalbtn_height + 'px',
|
|
15866
|
-
background: sectionproperties.generalbtn_bgColor,
|
|
15867
|
-
borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
|
|
15868
|
-
borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
|
|
15869
|
-
borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
|
|
15870
|
-
borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
|
|
15871
|
-
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
15872
|
-
transition: '.3s',
|
|
15873
|
-
':hover': {
|
|
15874
|
-
background: sectionproperties.generalbtn_bgColoronhover,
|
|
15875
|
-
color: sectionproperties.generalbtn_textColoronhover
|
|
15876
|
-
}
|
|
15877
|
-
}),
|
|
15878
|
-
close_menu_icon_cont: glamor.css({
|
|
15879
|
-
background: sectionproperties.closeSliderBgColor,
|
|
15880
|
-
width: sectionproperties.closeSliderWidth + 'px',
|
|
15881
|
-
height: sectionproperties.closeSliderHeight + 'px',
|
|
15882
|
-
borderRadius: sectionproperties.closeSlider_borderBottomLeftRadius + 'px',
|
|
15883
|
-
':hover': {
|
|
15884
|
-
background: sectionproperties.closeSliderBgColorHover
|
|
15885
|
-
}
|
|
15886
|
-
}),
|
|
15887
|
-
horizontalfilter_card: glamor.css({
|
|
15888
|
-
marginBottom: sectionproperties.horizontalfilter_mb + 'px',
|
|
15889
|
-
marginTop: sectionproperties.horizontalfilter_mt + 'px',
|
|
15890
|
-
background: sectionproperties.horizontalfilter_cardbg,
|
|
15891
|
-
border: sectionproperties.horizontalfilter_cardborderwidth + 'px solid ' + sectionproperties.horizontalfilter_cardbordercolor,
|
|
15892
|
-
boxShadow: sectionproperties.horizontalfilter_cardboxShadow == 'Show' ? sectionproperties.horizontalfilter_cardboxShadowcolor : 'horizontalfilter_cardboxShadow'
|
|
15893
|
-
}),
|
|
15894
|
-
btn_item: glamor.css({
|
|
15895
|
-
width: '20px',
|
|
15896
|
-
height: '20px',
|
|
15897
|
-
background: sectionproperties.filteritembtn_bgcolor,
|
|
15898
|
-
':hover': {
|
|
15899
|
-
background: sectionproperties.filteritembtn_bghover
|
|
15900
|
-
}
|
|
15901
|
-
}),
|
|
15902
|
-
btn_item_active: glamor.css({
|
|
15903
|
-
background: sectionproperties.btn_item_activebgcolor
|
|
15904
|
-
}),
|
|
15905
|
-
timelineinnercont_active: glamor.css({
|
|
15906
|
-
fontWeight: sectionproperties.activecat_fontweight,
|
|
15907
|
-
color: sectionproperties.activecat_color
|
|
15908
|
-
}),
|
|
15909
|
-
categoryName: glamor.css({
|
|
15910
|
-
color: sectionproperties.filtertitle_color,
|
|
15911
|
-
fontWeight: sectionproperties.filterCatFontWeight,
|
|
15912
|
-
fontSize: sectionproperties.filterCatFontSize + 'px'
|
|
15913
|
-
}),
|
|
15914
|
-
pCollectionName: glamor.css({
|
|
15915
|
-
color: sectionproperties.filtertitle_color,
|
|
15916
|
-
fontWeight: sectionproperties.filterPCollFontWeight,
|
|
15917
|
-
fontSize: sectionproperties.filterPCollFontSize + 'px'
|
|
15918
|
-
}),
|
|
15919
|
-
explorebtn: glamor.css({
|
|
15920
|
-
fontSize: sectionproperties.explorebtnfontsize + 'px',
|
|
15921
|
-
fontWeight: 600,
|
|
15922
|
-
color: sectionproperties.explorebtncolor,
|
|
15923
|
-
transition: '.3s',
|
|
15924
|
-
':hover': {
|
|
15925
|
-
color: sectionproperties.explorebtncoloronhover
|
|
15926
|
-
}
|
|
15927
|
-
}),
|
|
15928
|
-
showallbtn: glamor.css({
|
|
15929
|
-
color: sectionproperties.showallcolor,
|
|
15930
|
-
':hover': {
|
|
15931
|
-
transition: '.3s',
|
|
15932
|
-
cursor: 'pointer',
|
|
15933
|
-
color: sectionproperties.showallcolorhover
|
|
15934
|
-
}
|
|
15935
|
-
}),
|
|
15936
|
-
sectiontitle: glamor.css({
|
|
15937
|
-
position: 'relative',
|
|
15938
|
-
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
|
|
15939
|
-
width: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '100%' : '',
|
|
15940
|
-
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
15941
|
-
'@media (max-width: 800px)': {
|
|
15942
|
-
fontSize: sectionproperties.sectionTitleFontSizeresp + 'px'
|
|
15943
|
-
}
|
|
15944
|
-
})
|
|
15945
|
-
};
|
|
15946
|
-
var filterrouting = function filterrouting(tempfetchproductsfilerobjcontext) {
|
|
15947
|
-
var path = window.location.pathname.split('/');
|
|
15948
|
-
var currentpagepath = path[1];
|
|
15949
|
-
var pagenamepathinstaticpagelinkcont = '';
|
|
15950
|
-
for (var key in StaticPagesLinksContext) {
|
|
15951
|
-
if (StaticPagesLinksContext[key] == currentpagepath) {
|
|
15952
|
-
pagenamepathinstaticpagelinkcont = key;
|
|
15953
|
-
}
|
|
15552
|
+
}, DynamicFilter()), sectionproperties.showvariantsfilter == 'Show' && InstFilters()))))))), props.typeprops == 'vertical' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15553
|
+
className: 'col-lg-12 p-0 w-100 filter mt-md-0 d-md-none'
|
|
15554
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15555
|
+
className: "".concat(filterstyles.filterslider_container) + ' pb-md-5 ',
|
|
15556
|
+
id: "filterslider",
|
|
15557
|
+
style: {
|
|
15558
|
+
background: sectionproperties.filter_backgroundcolor,
|
|
15559
|
+
borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px'
|
|
15954
15560
|
}
|
|
15955
|
-
|
|
15956
|
-
|
|
15561
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15562
|
+
className: filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '
|
|
15563
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15564
|
+
className: "col-lg-9 col-md-9 col-sm-9 d-none align-items-center d-md-flex"
|
|
15565
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15566
|
+
className: "m-0 p-0 font-16 font-weight-600",
|
|
15567
|
+
style: {
|
|
15568
|
+
color: sectionproperties.filter_titlecolor,
|
|
15569
|
+
fontSize: sectionproperties.filter_titlefontsize + 'px',
|
|
15570
|
+
fontWeight: sectionproperties.filter_titlefontweight,
|
|
15571
|
+
textTransform: sectionproperties.filter_titletextransform
|
|
15957
15572
|
}
|
|
15958
|
-
}
|
|
15959
|
-
|
|
15960
|
-
|
|
15961
|
-
|
|
15962
|
-
|
|
15963
|
-
|
|
15964
|
-
|
|
15965
|
-
|
|
15966
|
-
|
|
15967
|
-
|
|
15968
|
-
|
|
15969
|
-
|
|
15970
|
-
// temp = queryParameters.get('sortprice');
|
|
15971
|
-
// alert(temp);
|
|
15972
|
-
// }
|
|
15973
|
-
// }, []);
|
|
15974
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15975
|
-
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',
|
|
15573
|
+
}, langdetect == 'en' ? 'Filter' : 'فلترة')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15574
|
+
className: "col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0"
|
|
15575
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15576
|
+
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 ',
|
|
15577
|
+
onClick: function onClick() {
|
|
15578
|
+
var element = document.getElementById('filterslider');
|
|
15579
|
+
element.classList.remove(filterstyles.filterslider_container_opened);
|
|
15580
|
+
}
|
|
15581
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15582
|
+
className: "h-100 d-flex align-items-center justify-content-center"
|
|
15583
|
+
}, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, {
|
|
15584
|
+
size: sectionproperties.closeSlider_fontSize,
|
|
15976
15585
|
style: {
|
|
15977
|
-
|
|
15978
|
-
|
|
15586
|
+
color: sectionproperties.closeSlider_color
|
|
15587
|
+
}
|
|
15588
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15589
|
+
className: filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 pl-4 pr-4 '
|
|
15590
|
+
}, sectionproperties.showcountriesfilter == 'Show' && Countriesfilter(), sectionproperties.showvariantsfilter == 'Show' && InstFilters(), sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15591
|
+
"class": "row m-0 w-100 mb-3"
|
|
15592
|
+
}, CategoriesFilter()), sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15593
|
+
"class": "row m-0 w-100 mb-3"
|
|
15594
|
+
}, CollectionsFilter()), sectionproperties.showdynamicfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15595
|
+
"class": "row m-0 w-100 mb-3"
|
|
15596
|
+
}, DynamicFilter())))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15597
|
+
className: "col-lg-12"
|
|
15598
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas, {
|
|
15599
|
+
show: props === null || props === void 0 ? void 0 : props.openFilterSlider,
|
|
15600
|
+
onHide: function onHide() {
|
|
15601
|
+
props.setopenFilterSlider(false);
|
|
15602
|
+
},
|
|
15603
|
+
placement: "end",
|
|
15604
|
+
scroll: true,
|
|
15605
|
+
style: {
|
|
15606
|
+
minWidth: '200px',
|
|
15607
|
+
background: sectionproperties.filter_backgroundcolor,
|
|
15608
|
+
borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px'
|
|
15609
|
+
},
|
|
15610
|
+
backdrop: true
|
|
15611
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Header, null, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Title, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15612
|
+
className: "row m-0 w-100 mt-2"
|
|
15613
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15614
|
+
className: "col-lg-9 col-md-9 col-sm-9 d-none align-items-center d-md-flex"
|
|
15615
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15616
|
+
className: "m-0 p-0 font-16 font-weight-600",
|
|
15617
|
+
style: {
|
|
15618
|
+
color: sectionproperties.filter_titlecolor,
|
|
15619
|
+
fontSize: sectionproperties.filter_titlefontsize + 'px',
|
|
15620
|
+
fontWeight: sectionproperties.filter_titlefontweight,
|
|
15621
|
+
textTransform: sectionproperties.filter_titletextransform
|
|
15622
|
+
}
|
|
15623
|
+
}, langdetect == 'en' ? 'Filter' : 'فلترة')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15624
|
+
className: "col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0"
|
|
15625
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15626
|
+
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 ',
|
|
15627
|
+
onClick: function onClick() {
|
|
15628
|
+
props.setopenFilterSlider(false);
|
|
15629
|
+
}
|
|
15630
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15631
|
+
className: "h-100 d-flex align-items-center justify-content-center"
|
|
15632
|
+
}, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, {
|
|
15633
|
+
size: sectionproperties.closeSlider_fontSize,
|
|
15634
|
+
style: {
|
|
15635
|
+
color: sectionproperties.closeSlider_color
|
|
15979
15636
|
}
|
|
15980
|
-
},
|
|
15637
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15638
|
+
"class": "col-lg-12"
|
|
15639
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
15640
|
+
"class": "mt-2 mb-2"
|
|
15641
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15642
|
+
className: ' pb-md-5 ',
|
|
15643
|
+
style: {
|
|
15644
|
+
background: sectionproperties.filter_backgroundcolor,
|
|
15645
|
+
borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px'
|
|
15646
|
+
}
|
|
15647
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15648
|
+
className: filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '
|
|
15649
|
+
}, sectionproperties.otherfilters == 'Show' && otherfilters.map(function (item, index) {
|
|
15650
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
15651
|
+
allowMultipleExpanded: true,
|
|
15652
|
+
allowZeroExpanded: true,
|
|
15653
|
+
preExpanded: [0, 1, 2, 3],
|
|
15654
|
+
style: {
|
|
15655
|
+
width: '100%'
|
|
15656
|
+
}
|
|
15657
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, {
|
|
15658
|
+
uuid: index
|
|
15659
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15660
|
+
className: filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '
|
|
15661
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15662
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
15663
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15664
|
+
className: langdetect == 'en' ? filter_cssstyles.collapsetitle + ' m-0 p-0 ' : filter_cssstyles.collapsetitle + ' m-0 p-0 text-right'
|
|
15665
|
+
}, item.name)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15666
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
15667
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState, null, function (state) {
|
|
15668
|
+
if (state.expanded == true) {
|
|
15669
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15670
|
+
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15671
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
15672
|
+
} else {
|
|
15673
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15674
|
+
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15675
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
15676
|
+
}
|
|
15677
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
15678
|
+
className: "p-0"
|
|
15679
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15680
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex"
|
|
15681
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15682
|
+
className: 'col-lg-12'
|
|
15683
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15684
|
+
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
15685
|
+
}, item.filterarray.map(function (valueitem, valueindex) {
|
|
15686
|
+
var ischecked = false;
|
|
15687
|
+
if (item.payloadvalue == 'sortprice') {
|
|
15688
|
+
if (valueitem.value == ProductFilterObjContext.sortprice) {
|
|
15689
|
+
ischecked = true;
|
|
15690
|
+
}
|
|
15691
|
+
} else if (item.payloadvalue == 'sortdates') {
|
|
15692
|
+
if (valueitem.value == ProductFilterObjContext.sortdates) {
|
|
15693
|
+
ischecked = true;
|
|
15694
|
+
}
|
|
15695
|
+
}
|
|
15696
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15697
|
+
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 ',
|
|
15698
|
+
onClick: function onClick() {
|
|
15699
|
+
// setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
15700
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15701
|
+
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
15702
|
+
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
15703
|
+
} else {
|
|
15704
|
+
tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
|
|
15705
|
+
}
|
|
15706
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15707
|
+
}
|
|
15708
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15709
|
+
className: " ".concat(ischecked ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' mb-2 d-flex align-items-center '
|
|
15710
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15711
|
+
className: "h-100 d-flex align-items-center"
|
|
15712
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15713
|
+
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
15714
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15715
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
15716
|
+
style: {
|
|
15717
|
+
color: ischecked ? sectionproperties.activecat_color : ''
|
|
15718
|
+
}
|
|
15719
|
+
}, valueitem.name)));
|
|
15720
|
+
}))))))));
|
|
15721
|
+
}), sectionproperties.otherfilters == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15722
|
+
className: "col-lg-12"
|
|
15723
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
15724
|
+
className: "mt-2 mb-3"
|
|
15725
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15726
|
+
className: filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 '
|
|
15727
|
+
}, sectionproperties.showcountriesfilter == 'Show' && Countriesfilter(), sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15728
|
+
"class": "row m-0 w-100"
|
|
15729
|
+
}, CategoriesFilter()), sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15730
|
+
"class": "row m-0 w-100"
|
|
15731
|
+
}, CollectionsFilter()), sectionproperties.showdynamicfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15732
|
+
"class": "row m-0 w-100"
|
|
15733
|
+
}, DynamicFilter()), sectionproperties.showvariantsfilter == 'Show' && InstFilters()))))))));
|
|
15981
15734
|
};
|
|
15982
15735
|
|
|
15983
15736
|
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; }
|
|
@@ -17555,19 +17308,21 @@ var CardsSection = function CardsSection(props) {
|
|
|
17555
17308
|
}
|
|
17556
17309
|
}, plainString(show_product_group_titles()['description_en']))), sectionproperties.showFilter == 'show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17557
17310
|
className: sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 d-flex p-0' : sectionproperties.numofcols == '2' ? 'col-lg-2 d-flex' : 'col-lg-3 d-flex'
|
|
17558
|
-
}, /*#__PURE__*/React__default["default"].createElement(Filter$
|
|
17311
|
+
}, /*#__PURE__*/React__default["default"].createElement(Filter$1, {
|
|
17559
17312
|
sectionpropertiesprops: sectionproperties,
|
|
17560
17313
|
actions: actions,
|
|
17561
17314
|
openFilterSlider: openFilterSlider,
|
|
17562
17315
|
setopenFilterSlider: setopenFilterSlider,
|
|
17563
17316
|
show_product_group_titles: show_product_group_titles
|
|
17564
17317
|
})), sectionproperties.showvariantfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17565
|
-
className: 'col-lg-
|
|
17318
|
+
className: sectionproperties.numofcols == '2' ? 'col-lg-2 d-flex' : 'col-lg-3 d-flex'
|
|
17566
17319
|
}, /*#__PURE__*/React__default["default"].createElement(Filter$1, {
|
|
17567
17320
|
sectionpropertiesprops: sectionproperties,
|
|
17568
17321
|
actions: actions,
|
|
17569
17322
|
openFilterSlider: openFilterSlider,
|
|
17570
|
-
setopenFilterSlider: setopenFilterSlider
|
|
17323
|
+
setopenFilterSlider: setopenFilterSlider,
|
|
17324
|
+
show_product_group_titles: show_product_group_titles,
|
|
17325
|
+
typeprops: 'vertical'
|
|
17571
17326
|
})), fetchingtype == 'custom' && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, cardsrender()), fetchingtype != 'custom' && cardsrender()));
|
|
17572
17327
|
};
|
|
17573
17328
|
|