tabexseriescomponents 0.0.447 → 0.0.449
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 +1170 -1084
- package/dist/index.esm.js +1170 -1084
- package/dist/index.umd.js +1173 -1085
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -60,10 +60,8 @@ var HiOutlineChevronRight = require('@react-icons/all-files/hi/HiOutlineChevronR
|
|
|
60
60
|
var HiOutlineChevronLeft = require('@react-icons/all-files/hi/HiOutlineChevronLeft');
|
|
61
61
|
var GoGlobe = require('@react-icons/all-files/go/GoGlobe');
|
|
62
62
|
var VscGlobe = require('@react-icons/all-files/vsc/VscGlobe');
|
|
63
|
-
var HiOutlineTrash = require('@react-icons/all-files/hi/HiOutlineTrash');
|
|
64
|
-
var BiSad = require('@react-icons/all-files/bi/BiSad');
|
|
65
|
-
var FiCalendar = require('@react-icons/all-files/fi/FiCalendar');
|
|
66
63
|
var Dropdown = require('react-bootstrap/Dropdown');
|
|
64
|
+
var FiCalendar = require('@react-icons/all-files/fi/FiCalendar');
|
|
67
65
|
var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
|
|
68
66
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
69
67
|
var HiUser = require('@react-icons/all-files/hi/HiUser');
|
|
@@ -679,8 +677,8 @@ var Imagekitimagecomp = function Imagekitimagecomp(props) {
|
|
|
679
677
|
}));
|
|
680
678
|
};
|
|
681
679
|
|
|
682
|
-
function ownKeys$
|
|
683
|
-
function _objectSpread$
|
|
680
|
+
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; }
|
|
681
|
+
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
682
|
var Login = function Login(props) {
|
|
685
683
|
var _css;
|
|
686
684
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -756,7 +754,7 @@ var Login = function Login(props) {
|
|
|
756
754
|
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
755
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
758
756
|
});
|
|
759
|
-
setsectionproperties(_objectSpread$
|
|
757
|
+
setsectionproperties(_objectSpread$2v({}, secpropobj));
|
|
760
758
|
}
|
|
761
759
|
}, [StatePagePropertiesContext]);
|
|
762
760
|
React.useEffect(function () {
|
|
@@ -923,9 +921,9 @@ var Login = function Login(props) {
|
|
|
923
921
|
className: "".concat(loginstyles2.form_control),
|
|
924
922
|
value: payloadobj.email,
|
|
925
923
|
onChange: function onChange(event) {
|
|
926
|
-
var temppayloadobj = _objectSpread$
|
|
924
|
+
var temppayloadobj = _objectSpread$2v({}, payloadobj);
|
|
927
925
|
temppayloadobj.email = event.target.value;
|
|
928
|
-
setpayloadobj(_objectSpread$
|
|
926
|
+
setpayloadobj(_objectSpread$2v({}, temppayloadobj));
|
|
929
927
|
},
|
|
930
928
|
style: {
|
|
931
929
|
background: sectionproperties.input_bgcolor
|
|
@@ -947,9 +945,9 @@ var Login = function Login(props) {
|
|
|
947
945
|
textplaceholder: "",
|
|
948
946
|
value: payloadobj.password,
|
|
949
947
|
onChange: function onChange(event) {
|
|
950
|
-
var temppayloadobj = _objectSpread$
|
|
948
|
+
var temppayloadobj = _objectSpread$2v({}, payloadobj);
|
|
951
949
|
temppayloadobj.password = event.target.value;
|
|
952
|
-
setpayloadobj(_objectSpread$
|
|
950
|
+
setpayloadobj(_objectSpread$2v({}, temppayloadobj));
|
|
953
951
|
},
|
|
954
952
|
style: {
|
|
955
953
|
background: sectionproperties.input_bgcolor
|
|
@@ -1126,9 +1124,9 @@ var Login = function Login(props) {
|
|
|
1126
1124
|
className: "".concat(loginstyles2.form_control),
|
|
1127
1125
|
value: forgotpasswordpayload.email,
|
|
1128
1126
|
onChange: function onChange(event) {
|
|
1129
|
-
var temppayloadobj = _objectSpread$
|
|
1127
|
+
var temppayloadobj = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1130
1128
|
temppayloadobj.email = event.target.value;
|
|
1131
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1129
|
+
setforgotpasswordpayload(_objectSpread$2v({}, temppayloadobj));
|
|
1132
1130
|
},
|
|
1133
1131
|
disabled: forgetpasswordstage == 'verify' ? true : false,
|
|
1134
1132
|
style: {
|
|
@@ -1143,9 +1141,9 @@ var Login = function Login(props) {
|
|
|
1143
1141
|
className: "".concat(loginstyles2.form_control),
|
|
1144
1142
|
value: forgotpasswordpayload.code,
|
|
1145
1143
|
onChange: function onChange(event) {
|
|
1146
|
-
var temppayloadobj = _objectSpread$
|
|
1144
|
+
var temppayloadobj = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1147
1145
|
temppayloadobj.code = event.target.value;
|
|
1148
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1146
|
+
setforgotpasswordpayload(_objectSpread$2v({}, temppayloadobj));
|
|
1149
1147
|
},
|
|
1150
1148
|
style: {
|
|
1151
1149
|
background: sectionproperties.input_bgcolor
|
|
@@ -1159,9 +1157,9 @@ var Login = function Login(props) {
|
|
|
1159
1157
|
className: "".concat(loginstyles2.form_control),
|
|
1160
1158
|
value: forgotpasswordpayload.newpassword,
|
|
1161
1159
|
onChange: function onChange(event) {
|
|
1162
|
-
var temppayloadobj = _objectSpread$
|
|
1160
|
+
var temppayloadobj = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1163
1161
|
temppayloadobj.newpassword = event.target.value;
|
|
1164
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1162
|
+
setforgotpasswordpayload(_objectSpread$2v({}, temppayloadobj));
|
|
1165
1163
|
},
|
|
1166
1164
|
style: {
|
|
1167
1165
|
background: sectionproperties.input_bgcolor
|
|
@@ -1175,9 +1173,9 @@ var Login = function Login(props) {
|
|
|
1175
1173
|
className: "".concat(loginstyles2.form_control),
|
|
1176
1174
|
value: forgotpasswordpayload.confirmnewpassword,
|
|
1177
1175
|
onChange: function onChange(event) {
|
|
1178
|
-
var temppayloadobj = _objectSpread$
|
|
1176
|
+
var temppayloadobj = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1179
1177
|
temppayloadobj.confirmnewpassword = event.target.value;
|
|
1180
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1178
|
+
setforgotpasswordpayload(_objectSpread$2v({}, temppayloadobj));
|
|
1181
1179
|
},
|
|
1182
1180
|
style: {
|
|
1183
1181
|
background: sectionproperties.input_bgcolor
|
|
@@ -1189,7 +1187,7 @@ var Login = function Login(props) {
|
|
|
1189
1187
|
onClick: function onClick() {
|
|
1190
1188
|
if (forgotpasswordpayload.email.length != 0) {
|
|
1191
1189
|
var runfunc = false;
|
|
1192
|
-
var tempforgotpasswordpayload = _objectSpread$
|
|
1190
|
+
var tempforgotpasswordpayload = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1193
1191
|
tempforgotpasswordpayload.functype = forgetpasswordstage;
|
|
1194
1192
|
if (forgetpasswordstage == 'verify') {
|
|
1195
1193
|
if (tempforgotpasswordpayload.newpassword.length != 0 && tempforgotpasswordpayload.code.length != 0) {
|
|
@@ -1240,11 +1238,11 @@ var css_248z$J = "@media screen and (max-width: 800px) {\n .signup-module_rig
|
|
|
1240
1238
|
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
1239
|
styleInject(css_248z$J);
|
|
1242
1240
|
|
|
1243
|
-
function ownKeys$
|
|
1244
|
-
function _objectSpread$
|
|
1241
|
+
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; }
|
|
1242
|
+
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
1243
|
var selectcustomStyles = {
|
|
1246
1244
|
option: function option(provided, state) {
|
|
1247
|
-
return _objectSpread$
|
|
1245
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1248
1246
|
borderBottom: '1px solid #e6e6e6',
|
|
1249
1247
|
backgroundColor: state.isSelected ? '' : '',
|
|
1250
1248
|
padding: 5,
|
|
@@ -1273,7 +1271,7 @@ var selectcustomStyles = {
|
|
|
1273
1271
|
};
|
|
1274
1272
|
var selectcustomStylesTranslated = {
|
|
1275
1273
|
option: function option(provided, state) {
|
|
1276
|
-
return _objectSpread$
|
|
1274
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1277
1275
|
borderBottom: '1px solid #e6e6e6',
|
|
1278
1276
|
backgroundColor: state.isSelected ? '' : '',
|
|
1279
1277
|
padding: 5,
|
|
@@ -1302,14 +1300,14 @@ var selectcustomStylesTranslated = {
|
|
|
1302
1300
|
};
|
|
1303
1301
|
},
|
|
1304
1302
|
placeholder: function placeholder(provided, state) {
|
|
1305
|
-
return _objectSpread$
|
|
1303
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1306
1304
|
textAlign: 'right'
|
|
1307
1305
|
});
|
|
1308
1306
|
}
|
|
1309
1307
|
};
|
|
1310
1308
|
var defaultstyles = {
|
|
1311
1309
|
option: function option(provided, state) {
|
|
1312
|
-
return _objectSpread$
|
|
1310
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1313
1311
|
borderBottom: '1px solid #e6e6e6',
|
|
1314
1312
|
backgroundColor: state.isSelected ? '' : '',
|
|
1315
1313
|
padding: 5,
|
|
@@ -1337,7 +1335,7 @@ var defaultstyles = {
|
|
|
1337
1335
|
}), _ref;
|
|
1338
1336
|
},
|
|
1339
1337
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1340
|
-
return _objectSpread$
|
|
1338
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1341
1339
|
'&:hover': {
|
|
1342
1340
|
// color: '#eac435',
|
|
1343
1341
|
}
|
|
@@ -1346,7 +1344,7 @@ var defaultstyles = {
|
|
|
1346
1344
|
};
|
|
1347
1345
|
var defaultstylestranslated = {
|
|
1348
1346
|
option: function option(provided, state) {
|
|
1349
|
-
return _objectSpread$
|
|
1347
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1350
1348
|
borderBottom: '1px solid #e6e6e6',
|
|
1351
1349
|
backgroundColor: state.isSelected ? '' : '',
|
|
1352
1350
|
padding: 5,
|
|
@@ -1377,21 +1375,21 @@ var defaultstylestranslated = {
|
|
|
1377
1375
|
};
|
|
1378
1376
|
},
|
|
1379
1377
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1380
|
-
return _objectSpread$
|
|
1378
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1381
1379
|
'&:hover': {
|
|
1382
1380
|
// color: '#eac435',
|
|
1383
1381
|
}
|
|
1384
1382
|
});
|
|
1385
1383
|
},
|
|
1386
1384
|
placeholder: function placeholder(provided, state) {
|
|
1387
|
-
return _objectSpread$
|
|
1385
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1388
1386
|
textAlign: 'right'
|
|
1389
1387
|
});
|
|
1390
1388
|
}
|
|
1391
1389
|
};
|
|
1392
1390
|
var defaultstylesnone = {
|
|
1393
1391
|
option: function option(provided, state) {
|
|
1394
|
-
return _objectSpread$
|
|
1392
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1395
1393
|
borderBottom: '1px solid #e6e6e6',
|
|
1396
1394
|
backgroundColor: state.isSelected ? '' : '',
|
|
1397
1395
|
padding: 5,
|
|
@@ -1419,7 +1417,7 @@ var defaultstylesnone = {
|
|
|
1419
1417
|
};
|
|
1420
1418
|
},
|
|
1421
1419
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1422
|
-
return _objectSpread$
|
|
1420
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1423
1421
|
'&:hover': {
|
|
1424
1422
|
// color: '#eac435',
|
|
1425
1423
|
}
|
|
@@ -2012,8 +2010,8 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
2012
2010
|
}, 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
2011
|
};
|
|
2014
2012
|
|
|
2015
|
-
function ownKeys$
|
|
2016
|
-
function _objectSpread$
|
|
2013
|
+
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; }
|
|
2014
|
+
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
2015
|
var ProductExtraFields = function ProductExtraFields(props) {
|
|
2018
2016
|
var _fetchProductInfoQuer, _css, _fetchProductInfoQuer2;
|
|
2019
2017
|
props.actions.lang;
|
|
@@ -2068,9 +2066,9 @@ var ProductExtraFields = function ProductExtraFields(props) {
|
|
|
2068
2066
|
});
|
|
2069
2067
|
}
|
|
2070
2068
|
setproductextravaluesarray(_toConsumableArray__default["default"](tempproductextravaluesarray));
|
|
2071
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2069
|
+
var tempaddtocardpayloadobj = _objectSpread$2t({}, addtocardpayloadobj);
|
|
2072
2070
|
tempaddtocardpayloadobj.extrafields = tempproductextravaluesarray;
|
|
2073
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2071
|
+
setaddtocardpayloadobj(_objectSpread$2t({}, tempaddtocardpayloadobj));
|
|
2074
2072
|
};
|
|
2075
2073
|
var formstyles = {
|
|
2076
2074
|
input_label_name: glamor.css({
|
|
@@ -2285,8 +2283,8 @@ var DescriptionContent = function DescriptionContent(props) {
|
|
|
2285
2283
|
})))));
|
|
2286
2284
|
};
|
|
2287
2285
|
|
|
2288
|
-
function ownKeys$
|
|
2289
|
-
function _objectSpread$
|
|
2286
|
+
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; }
|
|
2287
|
+
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
2288
|
var Product_itemtype = function Product_itemtype(props) {
|
|
2291
2289
|
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
2290
|
var lang = props.actions.lang;
|
|
@@ -2846,11 +2844,11 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2846
2844
|
}, sectionproperties.quantitybtneditable == 'No' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2847
2845
|
className: "".concat(productinfo_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
2848
2846
|
onClick: function onClick() {
|
|
2849
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2847
|
+
var tempaddtocardpayloadobj = _objectSpread$2s({}, addtocardpayloadobj);
|
|
2850
2848
|
if (tempaddtocardpayloadobj.quantity > 0) {
|
|
2851
2849
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity - 1;
|
|
2852
2850
|
}
|
|
2853
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2851
|
+
setaddtocardpayloadobj(_objectSpread$2s({}, tempaddtocardpayloadobj));
|
|
2854
2852
|
}
|
|
2855
2853
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2856
2854
|
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-down' : 'h-100 allcentered',
|
|
@@ -2864,9 +2862,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2864
2862
|
}, addtocardpayloadobj.quantity), sectionproperties.quantitybtneditable == 'No' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2865
2863
|
className: "".concat(productinfo_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
2866
2864
|
onClick: function onClick() {
|
|
2867
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2865
|
+
var tempaddtocardpayloadobj = _objectSpread$2s({}, addtocardpayloadobj);
|
|
2868
2866
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + 1;
|
|
2869
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2867
|
+
setaddtocardpayloadobj(_objectSpread$2s({}, tempaddtocardpayloadobj));
|
|
2870
2868
|
}
|
|
2871
2869
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2872
2870
|
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-up' : 'h-100 allcentered'
|
|
@@ -2891,13 +2889,13 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2891
2889
|
value: addtocardpayloadobj.quantity,
|
|
2892
2890
|
onChange: function onChange(event) {
|
|
2893
2891
|
if (event.target.value == NaN || event.target.value == undefined || event.target.value == null || event.target.value == '') {
|
|
2894
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2892
|
+
var tempaddtocardpayloadobj = _objectSpread$2s({}, addtocardpayloadobj);
|
|
2895
2893
|
tempaddtocardpayloadobj.quantity = 1;
|
|
2896
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2894
|
+
setaddtocardpayloadobj(_objectSpread$2s({}, tempaddtocardpayloadobj));
|
|
2897
2895
|
} else {
|
|
2898
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2896
|
+
var tempaddtocardpayloadobj = _objectSpread$2s({}, addtocardpayloadobj);
|
|
2899
2897
|
tempaddtocardpayloadobj.quantity = parseInt(event.target.value);
|
|
2900
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2898
|
+
setaddtocardpayloadobj(_objectSpread$2s({}, tempaddtocardpayloadobj));
|
|
2901
2899
|
}
|
|
2902
2900
|
}
|
|
2903
2901
|
})), 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 +3411,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3413
3411
|
}, ShareButtonsContainer()))))))));
|
|
3414
3412
|
};
|
|
3415
3413
|
|
|
3416
|
-
function ownKeys$
|
|
3417
|
-
function _objectSpread$
|
|
3414
|
+
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; }
|
|
3415
|
+
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
3416
|
var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
3419
3417
|
var _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer17, _fetchProductInfoQuer18;
|
|
3420
3418
|
var langdetect = props.actions.langdetect;
|
|
@@ -3455,7 +3453,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3455
3453
|
slots = _useState6[0],
|
|
3456
3454
|
setslots = _useState6[1];
|
|
3457
3455
|
React.useEffect(function () {
|
|
3458
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3456
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3459
3457
|
item_type: 'service'
|
|
3460
3458
|
}));
|
|
3461
3459
|
}, [tabsarray]);
|
|
@@ -3467,16 +3465,16 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3467
3465
|
if (diffDays.toString() != 'NaN') {
|
|
3468
3466
|
if (date2 <= date1) {
|
|
3469
3467
|
NotificationManager.warning('', 'Please choose another date.');
|
|
3470
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3468
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3471
3469
|
quantity: 0
|
|
3472
3470
|
}));
|
|
3473
3471
|
} else {
|
|
3474
3472
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= diffDays && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= diffDays) {
|
|
3475
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3473
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3476
3474
|
quantity: diffDays
|
|
3477
3475
|
}));
|
|
3478
3476
|
} else {
|
|
3479
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3477
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3480
3478
|
quantity: 0
|
|
3481
3479
|
}));
|
|
3482
3480
|
NotificationManager.warning('', 'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
|
|
@@ -3690,7 +3688,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3690
3688
|
});
|
|
3691
3689
|
if (reservedslotArrtobetaken.length != 0) {
|
|
3692
3690
|
reservedslottobetaken = reservedslotArrtobetaken[0].slot;
|
|
3693
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3691
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3694
3692
|
time: reservedslottobetaken,
|
|
3695
3693
|
reserved_slots: reservedslotArrtobetaken,
|
|
3696
3694
|
quantity: parseInt(reservedslotArrtobetaken.length)
|
|
@@ -3749,7 +3747,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3749
3747
|
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
3748
|
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
3749
|
onChange: function onChange(event) {
|
|
3752
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3750
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3753
3751
|
from: event.target.value
|
|
3754
3752
|
}));
|
|
3755
3753
|
}
|
|
@@ -3769,7 +3767,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3769
3767
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
3770
3768
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
3771
3769
|
onChange: function onChange(event) {
|
|
3772
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3770
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3773
3771
|
to: event.target.value
|
|
3774
3772
|
}));
|
|
3775
3773
|
}
|
|
@@ -3789,7 +3787,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3789
3787
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
3790
3788
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
3791
3789
|
onChange: function onChange(event) {
|
|
3792
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3790
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3793
3791
|
date: event.target.value
|
|
3794
3792
|
}));
|
|
3795
3793
|
setcurrentmutatestate('/fetchserviceslots');
|
|
@@ -3848,7 +3846,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3848
3846
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3849
3847
|
"class": TabsStyles.booknow_btn_resp + ' allcentered ',
|
|
3850
3848
|
onClick: function onClick() {
|
|
3851
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3849
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3852
3850
|
time: item.slot
|
|
3853
3851
|
}));
|
|
3854
3852
|
}
|
|
@@ -4626,8 +4624,8 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
4626
4624
|
}, StoreInfoprops()))));
|
|
4627
4625
|
};
|
|
4628
4626
|
|
|
4629
|
-
function ownKeys$
|
|
4630
|
-
function _objectSpread$
|
|
4627
|
+
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; }
|
|
4628
|
+
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
4629
|
var AddReview = function AddReview(props) {
|
|
4632
4630
|
var _css;
|
|
4633
4631
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -4679,7 +4677,7 @@ var AddReview = function AddReview(props) {
|
|
|
4679
4677
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
4680
4678
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
4681
4679
|
});
|
|
4682
|
-
setsectionproperties(_objectSpread$
|
|
4680
|
+
setsectionproperties(_objectSpread$2q({}, secpropobj));
|
|
4683
4681
|
}
|
|
4684
4682
|
}, [StatePagePropertiesContext]);
|
|
4685
4683
|
React.useEffect(function () {
|
|
@@ -4688,7 +4686,7 @@ var AddReview = function AddReview(props) {
|
|
|
4688
4686
|
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
4687
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
4690
4688
|
});
|
|
4691
|
-
setsectionproperties(_objectSpread$
|
|
4689
|
+
setsectionproperties(_objectSpread$2q({}, secpropobj));
|
|
4692
4690
|
}, [pageindexcontext]);
|
|
4693
4691
|
var reviewstyles = {
|
|
4694
4692
|
submitreviewbtn: glamor.css({
|
|
@@ -4814,9 +4812,9 @@ var AddReview = function AddReview(props) {
|
|
|
4814
4812
|
}),
|
|
4815
4813
|
activeColor: "#ffd700",
|
|
4816
4814
|
onChange: function onChange(event) {
|
|
4817
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
4815
|
+
var tempreviewpayloadobj = _objectSpread$2q({}, reviewpayloadobj);
|
|
4818
4816
|
tempreviewpayloadobj.reviewrate = event;
|
|
4819
|
-
setreviewpayloadobj(_objectSpread$
|
|
4817
|
+
setreviewpayloadobj(_objectSpread$2q({}, tempreviewpayloadobj));
|
|
4820
4818
|
}
|
|
4821
4819
|
})))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4822
4820
|
"class": "col-lg-12"
|
|
@@ -4830,9 +4828,9 @@ var AddReview = function AddReview(props) {
|
|
|
4830
4828
|
"class": reviewstyles.form_control,
|
|
4831
4829
|
value: reviewpayloadobj.reviewname,
|
|
4832
4830
|
onChange: function onChange(event) {
|
|
4833
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
4831
|
+
var tempreviewpayloadobj = _objectSpread$2q({}, reviewpayloadobj);
|
|
4834
4832
|
tempreviewpayloadobj.reviewname = event.target.value;
|
|
4835
|
-
setreviewpayloadobj(_objectSpread$
|
|
4833
|
+
setreviewpayloadobj(_objectSpread$2q({}, tempreviewpayloadobj));
|
|
4836
4834
|
}
|
|
4837
4835
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4838
4836
|
"class": "col-lg-12 mb-4"
|
|
@@ -4842,9 +4840,9 @@ var AddReview = function AddReview(props) {
|
|
|
4842
4840
|
"class": reviewstyles.form_control,
|
|
4843
4841
|
value: reviewpayloadobj.reviewtitle,
|
|
4844
4842
|
onChange: function onChange(event) {
|
|
4845
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
4843
|
+
var tempreviewpayloadobj = _objectSpread$2q({}, reviewpayloadobj);
|
|
4846
4844
|
tempreviewpayloadobj.reviewtitle = event.target.value;
|
|
4847
|
-
setreviewpayloadobj(_objectSpread$
|
|
4845
|
+
setreviewpayloadobj(_objectSpread$2q({}, tempreviewpayloadobj));
|
|
4848
4846
|
}
|
|
4849
4847
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4850
4848
|
"class": "col-lg-12 mb-4"
|
|
@@ -4855,9 +4853,9 @@ var AddReview = function AddReview(props) {
|
|
|
4855
4853
|
"class": reviewstyles.form_control + ' form_control ',
|
|
4856
4854
|
value: reviewpayloadobj.reviewbody,
|
|
4857
4855
|
onChange: function onChange(event) {
|
|
4858
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
4856
|
+
var tempreviewpayloadobj = _objectSpread$2q({}, reviewpayloadobj);
|
|
4859
4857
|
tempreviewpayloadobj.reviewbody = event.target.value;
|
|
4860
|
-
setreviewpayloadobj(_objectSpread$
|
|
4858
|
+
setreviewpayloadobj(_objectSpread$2q({}, tempreviewpayloadobj));
|
|
4861
4859
|
},
|
|
4862
4860
|
style: {
|
|
4863
4861
|
resize: 'none',
|
|
@@ -4892,8 +4890,8 @@ var AddReview = function AddReview(props) {
|
|
|
4892
4890
|
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)));
|
|
4893
4891
|
};
|
|
4894
4892
|
|
|
4895
|
-
function ownKeys$
|
|
4896
|
-
function _objectSpread$
|
|
4893
|
+
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; }
|
|
4894
|
+
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
4895
|
var ProductReviews = function ProductReviews(props) {
|
|
4898
4896
|
var _fetchProductInfoQuer, _fetchProductInfoQuer3, _fetchProductInfoQuer4;
|
|
4899
4897
|
props.actions.lang;
|
|
@@ -5127,7 +5125,7 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
5127
5125
|
size: "md",
|
|
5128
5126
|
"class": "reviewmodal"
|
|
5129
5127
|
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement(AddReview, {
|
|
5130
|
-
actions: _objectSpread$
|
|
5128
|
+
actions: _objectSpread$2p(_objectSpread$2p({}, actions), {}, {
|
|
5131
5129
|
productid: productid,
|
|
5132
5130
|
canuserreview: canuserreview,
|
|
5133
5131
|
addreviewcallback: addreviewcallback
|
|
@@ -5135,8 +5133,8 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
5135
5133
|
}))));
|
|
5136
5134
|
};
|
|
5137
5135
|
|
|
5138
|
-
function ownKeys$
|
|
5139
|
-
function _objectSpread$
|
|
5136
|
+
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; }
|
|
5137
|
+
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
5138
|
var Productinfo = function Productinfo(props) {
|
|
5141
5139
|
var _css, _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
|
|
5142
5140
|
var _useState = React.useState({}),
|
|
@@ -5165,7 +5163,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5165
5163
|
setfetchProductInfoQueryContext = _useState4[1];
|
|
5166
5164
|
React.useEffect(function () {
|
|
5167
5165
|
if (fetchProductInfoQueryContextProps.isSuccess) {
|
|
5168
|
-
setProductInfoObj(_objectSpread$
|
|
5166
|
+
setProductInfoObj(_objectSpread$2o({}, fetchProductInfoQueryContextProps.data));
|
|
5169
5167
|
setfetchProductInfoQueryContext(fetchProductInfoQueryContextProps);
|
|
5170
5168
|
}
|
|
5171
5169
|
}, [props.actions, props, fetchProductInfoQueryContextProps.data, fetchProductInfoQueryContextProps.isSuccess]);
|
|
@@ -5281,7 +5279,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5281
5279
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
5282
5280
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
5283
5281
|
});
|
|
5284
|
-
setsectionproperties(_objectSpread$
|
|
5282
|
+
setsectionproperties(_objectSpread$2o({}, secpropobj));
|
|
5285
5283
|
setTabIndex(0);
|
|
5286
5284
|
settabname('descriptiontab');
|
|
5287
5285
|
if (sectionproperties.prodCatShow == 'Hide' || sectionproperties.descriptionposition != 'Bottom') {
|
|
@@ -5321,7 +5319,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5321
5319
|
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
5320
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
5323
5321
|
});
|
|
5324
|
-
setsectionproperties(_objectSpread$
|
|
5322
|
+
setsectionproperties(_objectSpread$2o({}, secpropobj));
|
|
5325
5323
|
}, [pageindexcontext]);
|
|
5326
5324
|
React.useEffect(function () {
|
|
5327
5325
|
if (productidparam == undefined) {
|
|
@@ -5341,12 +5339,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
5341
5339
|
}
|
|
5342
5340
|
}, [ProductInfoObj, isloaded]);
|
|
5343
5341
|
var productidassigner = function productidassigner(productid) {
|
|
5344
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
5342
|
+
var tempFetchQueriesEngineContext = _objectSpread$2o({}, FetchQueriesEngineContext);
|
|
5345
5343
|
tempFetchQueriesEngineContext.fetchproductinfo = true;
|
|
5346
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
5347
|
-
var tempfetchproductinfoObjContext = _objectSpread$
|
|
5344
|
+
setFetchQueriesEngineContext(_objectSpread$2o({}, tempFetchQueriesEngineContext));
|
|
5345
|
+
var tempfetchproductinfoObjContext = _objectSpread$2o({}, fetchproductinfoObjContext);
|
|
5348
5346
|
tempfetchproductinfoObjContext.productid = productid;
|
|
5349
|
-
setfetchproductinfoObjContext(_objectSpread$
|
|
5347
|
+
setfetchproductinfoObjContext(_objectSpread$2o({}, tempfetchproductinfoObjContext));
|
|
5350
5348
|
};
|
|
5351
5349
|
React.useEffect(function () {
|
|
5352
5350
|
if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && ikimagecredcontext != undefined) {
|
|
@@ -5383,9 +5381,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
5383
5381
|
}
|
|
5384
5382
|
setproductimagesarray([].concat(tempproductimagesarray));
|
|
5385
5383
|
variantchecker();
|
|
5386
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5384
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5387
5385
|
tempaddtocardpayloadobj.productid = fetchProductInfoQueryContext.data.data.productinfo.productid;
|
|
5388
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5386
|
+
setaddtocardpayloadobj(_objectSpread$2o({}, tempaddtocardpayloadobj));
|
|
5389
5387
|
setRelatedProductsTagid(fetchProductInfoQueryContext.data.data.productinfo.maintagid);
|
|
5390
5388
|
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
5389
|
GeneralAPIMutationContext.mutate({
|
|
@@ -5436,7 +5434,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5436
5434
|
});
|
|
5437
5435
|
variantchecker();
|
|
5438
5436
|
variantcompleting();
|
|
5439
|
-
setProductInfoObj(_objectSpread$
|
|
5437
|
+
setProductInfoObj(_objectSpread$2o({}, productarr));
|
|
5440
5438
|
};
|
|
5441
5439
|
var variantchecker = function variantchecker() {
|
|
5442
5440
|
var productarr = ProductInfoObj;
|
|
@@ -5510,16 +5508,16 @@ var Productinfo = function Productinfo(props) {
|
|
|
5510
5508
|
});
|
|
5511
5509
|
}
|
|
5512
5510
|
// queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
|
|
5513
|
-
setProductInfoObj(_objectSpread$
|
|
5511
|
+
setProductInfoObj(_objectSpread$2o({}, productarr));
|
|
5514
5512
|
setisloaded(true);
|
|
5515
5513
|
}
|
|
5516
5514
|
}
|
|
5517
5515
|
};
|
|
5518
5516
|
var variantcompleting = function variantcompleting() {
|
|
5519
5517
|
setvariantindexcompleted('');
|
|
5520
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5518
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5521
5519
|
tempaddtocardpayloadobj.variantid = '';
|
|
5522
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5520
|
+
setaddtocardpayloadobj(_objectSpread$2o({}, tempaddtocardpayloadobj));
|
|
5523
5521
|
var productarr = ProductInfoObj;
|
|
5524
5522
|
var selectedoptionsvalues = [];
|
|
5525
5523
|
productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
|
|
@@ -5552,7 +5550,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5552
5550
|
NotificationManager.warning('', 'Variant Not Found');
|
|
5553
5551
|
} else {
|
|
5554
5552
|
variantid = variantobj.variantid;
|
|
5555
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5553
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5556
5554
|
tempaddtocardpayloadobj.variantid = variantid;
|
|
5557
5555
|
var variantimageindex = 0;
|
|
5558
5556
|
productimagesarray === null || productimagesarray === void 0 || productimagesarray.forEach(function (tempimageitem, tempimageindex) {
|
|
@@ -5567,14 +5565,14 @@ var Productinfo = function Productinfo(props) {
|
|
|
5567
5565
|
}
|
|
5568
5566
|
setvariantsku(variantobj === null || variantobj === void 0 ? void 0 : variantobj.sku);
|
|
5569
5567
|
setcurrentshowingimageindex(variantimageindex);
|
|
5570
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5568
|
+
setaddtocardpayloadobj(_objectSpread$2o({}, tempaddtocardpayloadobj));
|
|
5571
5569
|
setvariantindexcompleted(ProductVariantIndex);
|
|
5572
5570
|
setvariantindex(ProductVariantIndex);
|
|
5573
5571
|
}
|
|
5574
5572
|
}
|
|
5575
5573
|
});
|
|
5576
5574
|
// queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
|
|
5577
|
-
setProductInfoObj(_objectSpread$
|
|
5575
|
+
setProductInfoObj(_objectSpread$2o({}, productarr));
|
|
5578
5576
|
};
|
|
5579
5577
|
var addtocartfunc = function addtocartfunc(forcetocheckout) {
|
|
5580
5578
|
var runfunc = false;
|
|
@@ -5593,7 +5591,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5593
5591
|
}
|
|
5594
5592
|
if (runfunc == true) {
|
|
5595
5593
|
var _fetchProductInfoQuer7, _fetchProductInfoQuer8;
|
|
5596
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5594
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5597
5595
|
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
5596
|
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
5597
|
if (forcetocheckoutvalue != undefined) {
|
|
@@ -5617,7 +5615,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5617
5615
|
};
|
|
5618
5616
|
var validateextrafields = function validateextrafields() {
|
|
5619
5617
|
var _fetchProductInfoQuer15;
|
|
5620
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5618
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5621
5619
|
var status = false;
|
|
5622
5620
|
var reason = '';
|
|
5623
5621
|
var missingitemsfound = [];
|
|
@@ -6656,7 +6654,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6656
6654
|
}))), /*#__PURE__*/React__default["default"].createElement(material.Box, {
|
|
6657
6655
|
"class": "w-100 mt-5 mb-4"
|
|
6658
6656
|
}, tabname == 'descriptiontab' && sectionproperties.descriptionposition == 'Bottom' && /*#__PURE__*/React__default["default"].createElement(DescriptionContent, {
|
|
6659
|
-
actions: _objectSpread$
|
|
6657
|
+
actions: _objectSpread$2o(_objectSpread$2o({}, actions), {}, {
|
|
6660
6658
|
productinfo_cssstyles: productinfo_cssstyles,
|
|
6661
6659
|
sectionproperties: sectionproperties
|
|
6662
6660
|
})
|
|
@@ -6704,7 +6702,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6704
6702
|
})), tabname == 'reviewstab' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6705
6703
|
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0"
|
|
6706
6704
|
}, /*#__PURE__*/React__default["default"].createElement(ProductReviews, {
|
|
6707
|
-
actions: _objectSpread$
|
|
6705
|
+
actions: _objectSpread$2o(_objectSpread$2o({}, actions), {}, {
|
|
6708
6706
|
productinfo_cssstyles: productinfo_cssstyles,
|
|
6709
6707
|
sectionproperties: sectionproperties
|
|
6710
6708
|
})
|
|
@@ -6721,8 +6719,8 @@ var css_248z$I = "/* Side Nav */\n.staticroutersidenav-module_vertical_nav_menu_
|
|
|
6721
6719
|
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
6720
|
styleInject(css_248z$I);
|
|
6723
6721
|
|
|
6724
|
-
function ownKeys$
|
|
6725
|
-
function _objectSpread$
|
|
6722
|
+
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; }
|
|
6723
|
+
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
6724
|
var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
6727
6725
|
var _useState = React.useState(props.currentpageprops),
|
|
6728
6726
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
@@ -6758,7 +6756,7 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
|
6758
6756
|
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
6757
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
6760
6758
|
});
|
|
6761
|
-
setsectionproperties(_objectSpread$
|
|
6759
|
+
setsectionproperties(_objectSpread$2n({}, secpropobj));
|
|
6762
6760
|
}
|
|
6763
6761
|
}, [CurrentPageId]);
|
|
6764
6762
|
var styles = {
|
|
@@ -6924,8 +6922,8 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
|
6924
6922
|
}))))));
|
|
6925
6923
|
};
|
|
6926
6924
|
|
|
6927
|
-
function ownKeys$
|
|
6928
|
-
function _objectSpread$
|
|
6925
|
+
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; }
|
|
6926
|
+
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
6927
|
var Ordershistory = function Ordershistory(props) {
|
|
6930
6928
|
var _props$actions2, _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchorderhistoryQue2, _fetchorderhistoryQue3, _fetchorderhistoryQue4, _fetchorderhistoryQue5;
|
|
6931
6929
|
var lang = props.actions.lang;
|
|
@@ -6978,9 +6976,9 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
6978
6976
|
setorderindex = _useState14[1];
|
|
6979
6977
|
React.useEffect(function () {
|
|
6980
6978
|
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin) == true) {
|
|
6981
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
6979
|
+
var tempFetchQueriesEngineContext = _objectSpread$2m({}, FetchQueriesEngineContext);
|
|
6982
6980
|
tempFetchQueriesEngineContext.orderhistory = true;
|
|
6983
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
6981
|
+
setFetchQueriesEngineContext(_objectSpread$2m({}, tempFetchQueriesEngineContext));
|
|
6984
6982
|
}
|
|
6985
6983
|
}, []);
|
|
6986
6984
|
var _useState15 = React.useState(''),
|
|
@@ -7001,7 +6999,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
7001
6999
|
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
7000
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
7003
7001
|
});
|
|
7004
|
-
setsectionproperties(_objectSpread$
|
|
7002
|
+
setsectionproperties(_objectSpread$2m({}, secpropobj));
|
|
7005
7003
|
}, [props === null || props === void 0 || (_props$actions2 = props.actions) === null || _props$actions2 === void 0 ? void 0 : _props$actions2.StatePagePropertiesContext]);
|
|
7006
7004
|
var orderhistory_cssstyles = {
|
|
7007
7005
|
variantcontainer: glamor.css({
|
|
@@ -7948,22 +7946,24 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
7948
7946
|
}, langdetect == 'en' ? sectionproperties.cod_text_en : sectionproperties.cod_text_ar))))))))))))));
|
|
7949
7947
|
};
|
|
7950
7948
|
|
|
7951
|
-
var css_248z$H = ".wishlist-module_wishlist_card__sUXul .wishlist-module_image_container__FuptA {\n height: 300px
|
|
7949
|
+
var css_248z$H = ".wishlist-module_wishlist_card__sUXul .wishlist-module_image_container__FuptA {\n /* height: 300px; */\n border-radius: 10px;\n background-size: cover !important;\n background-repeat: no-repeat;\n background-position: center;\n background-color: #e6e6e6;\n width: 100% !important;\n /* box-shadow: 0 0 10px #e6e6e6; */\n}\n.wishlist-module_floatbtn__PZDvQ {\n position: absolute;\n top: 10px;\n right: 10px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: 0.3s;\n /* opacity: 0; */\n}\n.wishlist-module_wishlist_card__sUXul:hover .wishlist-module_floatbtn__PZDvQ {\n opacity: 1;\n}\n@media screen and (max-width: 800px) {\n .wishlist-module_floatbtn__PZDvQ {\n opacity: 1 !important;\n }\n}\n";
|
|
7952
7950
|
var wishliststyles = {"wishlist_card":"wishlist-module_wishlist_card__sUXul","image_container":"wishlist-module_image_container__FuptA","floatbtn":"wishlist-module_floatbtn__PZDvQ"};
|
|
7953
7951
|
styleInject(css_248z$H);
|
|
7954
7952
|
|
|
7955
|
-
function ownKeys$
|
|
7956
|
-
function _objectSpread$
|
|
7953
|
+
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; }
|
|
7954
|
+
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
7955
|
var Wishlist = function Wishlist(props) {
|
|
7958
7956
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8;
|
|
7959
|
-
|
|
7957
|
+
props.actions.lang;
|
|
7960
7958
|
var langdetect = props.actions.langdetect;
|
|
7959
|
+
var routingcountext = props.actions.routingcountext;
|
|
7961
7960
|
var fetchFavoriteProductsQueryContext = props.actions.fetchFavoriteProductsQueryContext;
|
|
7962
7961
|
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
7963
7962
|
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
7964
7963
|
var addtofavoritescontext = props.actions.addtofavoritescontext;
|
|
7965
7964
|
var setShowProductInfoModalContext = props.actions.setShowProductInfoModalContext;
|
|
7966
7965
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
7966
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
7967
7967
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
7968
7968
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
7969
7969
|
var actions = props.actions;
|
|
@@ -7975,19 +7975,20 @@ var Wishlist = function Wishlist(props) {
|
|
|
7975
7975
|
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
7976
7976
|
bgimagesarray = _useState4[0],
|
|
7977
7977
|
setbgimagesarray = _useState4[1];
|
|
7978
|
+
var authdetailsContext = props.actions.authdetailsContext;
|
|
7978
7979
|
React.useEffect(function () {
|
|
7979
7980
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
7980
7981
|
var secpropobj = {};
|
|
7981
7982
|
StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
7982
7983
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
7983
7984
|
});
|
|
7984
|
-
setsectionproperties(_objectSpread$
|
|
7985
|
+
setsectionproperties(_objectSpread$2l({}, secpropobj));
|
|
7985
7986
|
}
|
|
7986
7987
|
}, [StatePagePropertiesContext]);
|
|
7987
7988
|
React.useEffect(function () {
|
|
7988
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
7989
|
+
var tempFetchQueriesEngineContext = _objectSpread$2l({}, FetchQueriesEngineContext);
|
|
7989
7990
|
tempFetchQueriesEngineContext.fetchfavoriteproducts = true;
|
|
7990
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
7991
|
+
setFetchQueriesEngineContext(_objectSpread$2l({}, tempFetchQueriesEngineContext));
|
|
7991
7992
|
}, []);
|
|
7992
7993
|
React.useEffect(function () {
|
|
7993
7994
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
@@ -7996,7 +7997,7 @@ var Wishlist = function Wishlist(props) {
|
|
|
7996
7997
|
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
7998
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
7998
7999
|
});
|
|
7999
|
-
setsectionproperties(_objectSpread$
|
|
8000
|
+
setsectionproperties(_objectSpread$2l({}, secpropobj));
|
|
8000
8001
|
}
|
|
8001
8002
|
}, [StatePagePropertiesContext]);
|
|
8002
8003
|
var wishlist_cssstyles = {
|
|
@@ -8027,22 +8028,23 @@ var Wishlist = function Wishlist(props) {
|
|
|
8027
8028
|
cart_btn: glamor.css({
|
|
8028
8029
|
width: sectionproperties.cartBtnWidth + 'px',
|
|
8029
8030
|
height: sectionproperties.cartBtnHeight + 'px',
|
|
8030
|
-
background: sectionproperties.
|
|
8031
|
+
background: sectionproperties.cartBtnbgColor,
|
|
8031
8032
|
borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
|
|
8032
8033
|
color: sectionproperties.cartBtnTextcolor,
|
|
8033
8034
|
textTransform: sectionproperties.cartBtnTexttransform,
|
|
8034
8035
|
fontWeight: sectionproperties.cartBtnTextfontweight,
|
|
8035
8036
|
border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
|
|
8037
|
+
fontSize: sectionproperties.cartBtnTextfontsize + 'px',
|
|
8036
8038
|
transition: '.3s',
|
|
8037
8039
|
':hover': {
|
|
8038
|
-
background: sectionproperties.
|
|
8040
|
+
background: sectionproperties.cartBtnbgColoronhover,
|
|
8039
8041
|
color: sectionproperties.cartBtnTextcoloronhover,
|
|
8040
8042
|
borderColor: sectionproperties.cartBtnTextcoloronhover
|
|
8041
8043
|
}
|
|
8042
8044
|
}),
|
|
8043
8045
|
trash_btn: glamor.css({
|
|
8044
|
-
width: sectionproperties.trashbtn_Width + 'px',
|
|
8045
|
-
height: sectionproperties.trashbtn_Height + 'px',
|
|
8046
|
+
width: sectionproperties.trashbtn_Width == 0 ? 'auto' : sectionproperties.trashbtn_Width + 'px',
|
|
8047
|
+
height: sectionproperties.trashbtn_Height == 0 ? 'auto' : sectionproperties.trashbtn_Height + 'px',
|
|
8046
8048
|
background: sectionproperties.trashbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.trashbtn_bgColor,
|
|
8047
8049
|
color: sectionproperties.trashbtn_Textcolor,
|
|
8048
8050
|
borderRadius: sectionproperties.trashbtn_borderBottomLeftRadius + 'px',
|
|
@@ -8054,20 +8056,13 @@ var Wishlist = function Wishlist(props) {
|
|
|
8054
8056
|
}
|
|
8055
8057
|
}),
|
|
8056
8058
|
imagecont: glamor.css({
|
|
8057
|
-
width: '
|
|
8058
|
-
height: '
|
|
8059
|
-
border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
|
|
8059
|
+
width: '100px',
|
|
8060
|
+
height: '90px',
|
|
8060
8061
|
backgroundColor: sectionproperties.prodimage_bgcolor,
|
|
8061
|
-
|
|
8062
|
-
borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
|
|
8063
|
-
borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
|
|
8064
|
-
borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
|
|
8062
|
+
borderRadius: sectionproperties.productimageborderradius + 'px',
|
|
8065
8063
|
display: 'flex',
|
|
8066
8064
|
alignItems: 'center',
|
|
8067
8065
|
justifyContent: 'center',
|
|
8068
|
-
backgroundRepeat: 'no-repeat',
|
|
8069
|
-
backgroundSize: 'cover',
|
|
8070
|
-
backgroundPosition: 'center',
|
|
8071
8066
|
position: 'relative'
|
|
8072
8067
|
}),
|
|
8073
8068
|
containerstyle: glamor.css({
|
|
@@ -8077,6 +8072,26 @@ var Wishlist = function Wishlist(props) {
|
|
|
8077
8072
|
'@media (max-width: 800px)': {
|
|
8078
8073
|
marginTop: sectionproperties.marginTopResp + 'px'
|
|
8079
8074
|
}
|
|
8075
|
+
}),
|
|
8076
|
+
btnstyles: glamor.css({
|
|
8077
|
+
width: sectionproperties.generalbtn_width + '%',
|
|
8078
|
+
height: sectionproperties.generalbtn_height + 'px',
|
|
8079
|
+
borderRadius: sectionproperties.generalbtnborderradius + 'px',
|
|
8080
|
+
background: sectionproperties.generalbtn_bgColor,
|
|
8081
|
+
color: sectionproperties.generalbtn_textColor,
|
|
8082
|
+
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
8083
|
+
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
8084
|
+
':hover': {
|
|
8085
|
+
transition: '.3s',
|
|
8086
|
+
color: sectionproperties.generalbtn_textColoronhover,
|
|
8087
|
+
backgroundColor: sectionproperties.generalbtn_bgColoronhover
|
|
8088
|
+
},
|
|
8089
|
+
'@media (max-width: 800px)': {
|
|
8090
|
+
width: '80%'
|
|
8091
|
+
},
|
|
8092
|
+
prodimage: glamor.css({
|
|
8093
|
+
height: sectionproperties.prodimage_height
|
|
8094
|
+
})
|
|
8080
8095
|
})
|
|
8081
8096
|
};
|
|
8082
8097
|
React.useEffect(function () {
|
|
@@ -8091,7 +8106,9 @@ var Wishlist = function Wishlist(props) {
|
|
|
8091
8106
|
}, [sectionproperties]);
|
|
8092
8107
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8093
8108
|
className: wishlist_cssstyles.containerstyle + ' row ml-0 mr-0 w-100 ',
|
|
8094
|
-
style: {
|
|
8109
|
+
style: {
|
|
8110
|
+
minHeight: '60vh'
|
|
8111
|
+
}
|
|
8095
8112
|
}, sectionproperties.showbgimage == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8096
8113
|
className: "col-lg-12 p-0 d-flex justify-content-center",
|
|
8097
8114
|
style: {
|
|
@@ -8127,10 +8144,7 @@ var Wishlist = function Wishlist(props) {
|
|
|
8127
8144
|
margin: 0,
|
|
8128
8145
|
padding: 0,
|
|
8129
8146
|
background: sectionproperties.image_bgcolor,
|
|
8130
|
-
|
|
8131
|
-
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
8132
|
-
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
8133
|
-
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
8147
|
+
borderRadius: sectionproperties.imageborderradius + 'px',
|
|
8134
8148
|
zIndex: -1,
|
|
8135
8149
|
objectFit: sectionproperties.bgcovercontain
|
|
8136
8150
|
}
|
|
@@ -8146,45 +8160,19 @@ var Wishlist = function Wishlist(props) {
|
|
|
8146
8160
|
padding: 0,
|
|
8147
8161
|
objectFit: sectionproperties.bgcovercontainresponsive,
|
|
8148
8162
|
background: sectionproperties.image_bgcolor,
|
|
8149
|
-
|
|
8150
|
-
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
8151
|
-
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
8152
|
-
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
8163
|
+
borderRadius: sectionproperties.imageborderradius + 'px',
|
|
8153
8164
|
zIndex: -1
|
|
8154
8165
|
}
|
|
8155
|
-
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8156
|
-
className: ' col-lg-12 p-0 w-100 d-flex align-items-center justify-content-center ',
|
|
8157
|
-
style: {
|
|
8158
|
-
position: 'absolute',
|
|
8159
|
-
top: 0,
|
|
8160
|
-
right: 0,
|
|
8161
|
-
bottom: 0,
|
|
8162
|
-
left: 0
|
|
8163
|
-
}
|
|
8164
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8165
|
-
className: ' m-0 p-0 ',
|
|
8166
|
-
style: {
|
|
8167
|
-
fontSize: sectionproperties.imagetextfontsize + 'px',
|
|
8168
|
-
color: sectionproperties.imagetextcolor,
|
|
8169
|
-
textTransform: sectionproperties.imagetexttextTransform,
|
|
8170
|
-
fontWeight: sectionproperties.imagetextfontWeight
|
|
8171
|
-
}
|
|
8172
|
-
}, lang.mywishlist)))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8166
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8173
8167
|
className: "col-lg-12 p-0"
|
|
8174
8168
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8175
8169
|
className: 'row ml-0 mr-0 d-flex justify-content-center w-100 pl-lg-4 pr-lg-4 pl-md-3 pr-md-3 pl-sm-2 pr-sm-2',
|
|
8176
8170
|
style: {
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
paddingRight: sectionproperties.paddingRight + 'px',
|
|
8171
|
+
paddingLeft: sectionproperties.cardpaddinghorizontal + 'px',
|
|
8172
|
+
paddingRight: sectionproperties.cardpaddinghorizontal + 'px',
|
|
8180
8173
|
paddingTop: sectionproperties.paddingTop + 'px',
|
|
8181
8174
|
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
8182
|
-
|
|
8183
|
-
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
8184
|
-
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
8185
|
-
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
8186
|
-
borderColor: sectionproperties.sectioncardbordercolor,
|
|
8187
|
-
border: sectionproperties.sectioncardborderwidth + 'px solid'
|
|
8175
|
+
borderTop: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor
|
|
8188
8176
|
}
|
|
8189
8177
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8190
8178
|
className: 'col-lg-12 p-0'
|
|
@@ -8194,42 +8182,137 @@ var Wishlist = function Wishlist(props) {
|
|
|
8194
8182
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8195
8183
|
className: 'col-lg-12 p-0'
|
|
8196
8184
|
}, fetchFavoriteProductsQueryContext.isFetching && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8197
|
-
className: "w-100
|
|
8185
|
+
className: "row m-0 w-100 align-items-center justify-content-center",
|
|
8186
|
+
style: {
|
|
8187
|
+
height: '50vh',
|
|
8188
|
+
padding: '20px'
|
|
8189
|
+
}
|
|
8190
|
+
}, sectionproperties.showbgimage == 'Hide' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8191
|
+
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-start p-0",
|
|
8192
|
+
style: {
|
|
8193
|
+
marginTop: sectionproperties.sectionTitleMarginTop + 'px',
|
|
8194
|
+
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px'
|
|
8195
|
+
}
|
|
8196
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8197
|
+
"class": "m-0 p-0 mt-5 mt-sm-2",
|
|
8198
|
+
style: {
|
|
8199
|
+
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
8200
|
+
color: sectionproperties.sectionTitleColor,
|
|
8201
|
+
fontWeight: sectionproperties.sectionTitleFontWeight
|
|
8202
|
+
}
|
|
8203
|
+
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8204
|
+
"class": "col-lg-12 p-0 d-flex d-md-none"
|
|
8205
|
+
}, /*#__PURE__*/React__default["default"].createElement("table", {
|
|
8206
|
+
className: 'table'
|
|
8207
|
+
}, /*#__PURE__*/React__default["default"].createElement("thead", {
|
|
8208
|
+
className: ""
|
|
8209
|
+
}, /*#__PURE__*/React__default["default"].createElement("th", {
|
|
8210
|
+
className: 'mw-150 mw-md-300'
|
|
8211
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8212
|
+
"class": "my-1 is-loading"
|
|
8213
|
+
})), /*#__PURE__*/React__default["default"].createElement("th", {
|
|
8214
|
+
className: "text-center",
|
|
8215
|
+
style: {
|
|
8216
|
+
minWidth: '100px'
|
|
8217
|
+
}
|
|
8218
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8219
|
+
"class": "my-1 is-loading"
|
|
8220
|
+
})), /*#__PURE__*/React__default["default"].createElement("th", {
|
|
8221
|
+
className: "text-center"
|
|
8222
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8223
|
+
"class": "my-1 is-loading"
|
|
8224
|
+
}))), /*#__PURE__*/React__default["default"].createElement("tbody", null, _toConsumableArray__default["default"](Array(3)).map(function (item, index) {
|
|
8225
|
+
return /*#__PURE__*/React__default["default"].createElement("tr", {
|
|
8226
|
+
className: ""
|
|
8227
|
+
}, /*#__PURE__*/React__default["default"].createElement("td", {
|
|
8228
|
+
className: "mw-150 mw-md-300"
|
|
8229
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8230
|
+
"class": "my-1 is-loading"
|
|
8231
|
+
})), /*#__PURE__*/React__default["default"].createElement("td", {
|
|
8232
|
+
className: "text-center",
|
|
8233
|
+
style: {
|
|
8234
|
+
minWidth: '100px'
|
|
8235
|
+
}
|
|
8236
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8237
|
+
"class": "my-1 is-loading"
|
|
8238
|
+
})), /*#__PURE__*/React__default["default"].createElement("td", {
|
|
8239
|
+
className: "text-center",
|
|
8240
|
+
style: {
|
|
8241
|
+
minWidth: '100px'
|
|
8242
|
+
}
|
|
8243
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8244
|
+
"class": "my-1 is-loading"
|
|
8245
|
+
})));
|
|
8246
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8247
|
+
"class": "col-lg-12 p-0 d-none d-md-flex"
|
|
8248
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8249
|
+
className: "row m-0 w-100 align-items-center justify-content-center",
|
|
8198
8250
|
style: {
|
|
8199
8251
|
height: '50vh'
|
|
8200
8252
|
}
|
|
8201
|
-
},
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8253
|
+
}, _toConsumableArray__default["default"](Array(3)).map(function (item, index) {
|
|
8254
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8255
|
+
"class": "col-lg-12 p-0"
|
|
8256
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8257
|
+
"class": "row m-0 w-100"
|
|
8258
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8259
|
+
className: ' col-3 p-0 '
|
|
8260
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8261
|
+
className: "".concat(wishlist_cssstyles.imagecont) + ' w-100 p-0 is-loading image '
|
|
8262
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8263
|
+
className: "col-9 pt-2"
|
|
8264
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8265
|
+
"class": "row m-0 w-100 d-flex"
|
|
8266
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8267
|
+
"class": "col-10 p-0 mb-1"
|
|
8268
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8269
|
+
className: ' m-0 p-0 is-loading mb-auto '
|
|
8270
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8271
|
+
"class": "col-lg-12 p-0"
|
|
8272
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8273
|
+
"class": ' m-0 p-0 is-loading '
|
|
8274
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8275
|
+
"class": "col-lg-12 allcentered p-0 mt-4"
|
|
8276
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
8277
|
+
className: ' w-100 is-loading ',
|
|
8278
|
+
style: {
|
|
8279
|
+
height: sectionproperties.cartBtnHeight + 'px'
|
|
8280
|
+
}
|
|
8281
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8282
|
+
"class": "col-lg-12 p-0 my-3",
|
|
8283
|
+
style: {
|
|
8284
|
+
background: '#eee',
|
|
8285
|
+
height: 1,
|
|
8286
|
+
width: '100%'
|
|
8287
|
+
}
|
|
8288
|
+
})));
|
|
8289
|
+
})))), !fetchFavoriteProductsQueryContext.isFetching && fetchFavoriteProductsQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8290
|
+
className: "row m-0 w-100 "
|
|
8208
8291
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8209
8292
|
className: 'col-lg-12 d-flex w-100 p-0'
|
|
8210
|
-
}, sectionproperties.pagedesign == 'Design 1 (Cards)' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8293
|
+
}, sectionproperties.pagedesign == 'Design 1 (Cards)' && fetchFavoriteProductsQueryContext.data.data.products.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8211
8294
|
className: 'row m-0 d-flex justify-content-center w-100',
|
|
8212
8295
|
style: {
|
|
8213
8296
|
background: sectionproperties.reservation_bgcolor,
|
|
8214
|
-
border: sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor,
|
|
8215
8297
|
borderRadius: sectionproperties.reservation_borderradius + 'px',
|
|
8216
8298
|
padding: '20px',
|
|
8217
8299
|
minHeight: '70vh'
|
|
8218
8300
|
}
|
|
8219
8301
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8220
|
-
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0",
|
|
8221
|
-
style: {
|
|
8222
|
-
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px'
|
|
8223
|
-
}
|
|
8224
|
-
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
8302
|
+
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 mb-3",
|
|
8225
8303
|
style: {
|
|
8226
8304
|
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
8227
8305
|
color: sectionproperties.sectionTitleColor,
|
|
8228
8306
|
fontWeight: sectionproperties.sectionTitleFontWeight
|
|
8229
8307
|
}
|
|
8230
|
-
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar
|
|
8231
|
-
className: "
|
|
8232
|
-
|
|
8308
|
+
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8309
|
+
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0",
|
|
8310
|
+
style: {
|
|
8311
|
+
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
|
|
8312
|
+
color: sectionproperties.badge_color,
|
|
8313
|
+
fontSize: sectionproperties.badge_fontsize + 'px'
|
|
8314
|
+
}
|
|
8315
|
+
}, fetchFavoriteProductsQueryContext.data.data.products.length, " Item(s)"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8233
8316
|
className: ' col-lg-12 co-md-12 p-0 '
|
|
8234
8317
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8235
8318
|
className: "row m-0 w-100"
|
|
@@ -8237,116 +8320,163 @@ var Wishlist = function Wishlist(props) {
|
|
|
8237
8320
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8238
8321
|
className: "col-lg-3 col-md-6 col-sm-12 mb-5"
|
|
8239
8322
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8240
|
-
className: "".concat(wishliststyles.wishlist_card) + ' row m-0 w-100 '
|
|
8323
|
+
className: "".concat(wishliststyles.wishlist_card) + ' row m-0 w-100 ',
|
|
8324
|
+
onClick: function onClick() {
|
|
8325
|
+
setShowProductInfoModalContext(true);
|
|
8326
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
8327
|
+
}
|
|
8241
8328
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8242
8329
|
className: "col-lg-12 d-flex align-items-center justify-content-center p-0"
|
|
8243
8330
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8244
|
-
className: "".concat(wishliststyles.image_container)
|
|
8331
|
+
className: "".concat(wishliststyles.image_container).concat(wishlist_cssstyles.prodimage)
|
|
8245
8332
|
// style={{ backgroundImage: `url(${serverbaselink + item.productmainimage})` }}
|
|
8246
8333
|
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
8247
8334
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
8248
8335
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
8249
|
-
path: item.productmainimage,
|
|
8336
|
+
path: '/tr:w-' + sectionproperties.prodimage__width + ',h-' + sectionproperties.prodimage__height + '/' + item.productmainimage,
|
|
8250
8337
|
style: {
|
|
8251
8338
|
width: '100%',
|
|
8252
8339
|
height: '100%',
|
|
8253
|
-
objectFit: '
|
|
8340
|
+
objectFit: 'contain'
|
|
8254
8341
|
},
|
|
8255
8342
|
loading: "lazy"
|
|
8256
8343
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
8257
8344
|
className: "".concat(wishliststyles.floatbtn, " ").concat(wishlist_cssstyles.trash_btn),
|
|
8258
|
-
onClick: function onClick() {
|
|
8345
|
+
onClick: function onClick(e) {
|
|
8346
|
+
e.stopPropagation();
|
|
8259
8347
|
addtofavoritescontext(item.productid);
|
|
8260
8348
|
}
|
|
8261
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
8349
|
+
}, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, {
|
|
8262
8350
|
size: sectionproperties.trashbtn_Textfontsize
|
|
8263
8351
|
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8264
8352
|
className: "col-lg-12 d-flex align-items-center justify-content-center mt-3 mb-3"
|
|
8265
8353
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8266
8354
|
className: "".concat(wishlist_cssstyles.productNameStyles) + ' wordbreak text-center m-0 p-0 d-flex align-items-center justify-content-center '
|
|
8267
|
-
}, langdetect == 'en' ? item.name_en : item.name_ar)),
|
|
8355
|
+
}, langdetect == 'en' ? item.name_en : item.name_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8356
|
+
className: "col-lg-12 d-flex align-items-center justify-content-center mt-3 mb-3 flex-row"
|
|
8357
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8358
|
+
"class": wishlist_cssstyles.productPricestyles + ' m-0 p-0 '
|
|
8359
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'ar' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar : ''), item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8360
|
+
"class": wishlist_cssstyles.productsalePricestyles + ' m-0 p-0 linethrough mt-2 '
|
|
8361
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.defaultprice, ' ', langdetect == 'ar' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar : '')), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8268
8362
|
className: "col-lg-12 d-flex align-items-center justify-content-center p-0 "
|
|
8269
8363
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
8270
8364
|
className: " ".concat(wishlist_cssstyles.cart_btn),
|
|
8271
|
-
onClick: function onClick() {
|
|
8272
|
-
setShowProductInfoModalContext(true);
|
|
8273
|
-
setProductIdProdutInfoModalContext(item.productid);
|
|
8274
|
-
},
|
|
8275
8365
|
style: {
|
|
8276
|
-
fontSize: sectionproperties.cartBtnTextfontsize + 'px'
|
|
8366
|
+
fontSize: sectionproperties.cartBtnTextfontsize + 'px',
|
|
8367
|
+
width: sectionproperties.cartBtnWidth + '%'
|
|
8277
8368
|
}
|
|
8278
8369
|
}, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic))));
|
|
8279
|
-
})), fetchFavoriteProductsQueryContext.data.data.products.length
|
|
8280
|
-
className: "row m-0 w-100 d-flex align-items-center justify-content-center h-100",
|
|
8281
|
-
style: {
|
|
8282
|
-
height: '50vh'
|
|
8283
|
-
}
|
|
8284
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8285
|
-
className: ' col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100 pt-5 pb-5 '
|
|
8286
|
-
}, /*#__PURE__*/React__default["default"].createElement(BiSad.BiSad, {
|
|
8287
|
-
size: sectionproperties.noprod_iconfontSize,
|
|
8288
|
-
color: sectionproperties.noprod_iconcolor
|
|
8289
|
-
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8290
|
-
"class": "m-0 p-0 mt-2",
|
|
8291
|
-
style: {
|
|
8292
|
-
fontWeight: sectionproperties.noprod_fontWeight,
|
|
8293
|
-
color: sectionproperties.noprod_color,
|
|
8294
|
-
fontSize: sectionproperties.noprod_fontSize + 'px'
|
|
8295
|
-
}
|
|
8296
|
-
}, langdetect == 'en' ? sectionproperties.nocards_content_en : sectionproperties.nocards_content_ar))))), sectionproperties.pagedesign == 'Design 2 (Table)' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8370
|
+
})))), sectionproperties.pagedesign == 'Design 2 (Table)' && fetchFavoriteProductsQueryContext.data.data.products.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8297
8371
|
className: ' row m-0 w-100 p-sm-3 ',
|
|
8298
8372
|
style: {
|
|
8299
|
-
background: sectionproperties.reservation_bgcolor,
|
|
8300
|
-
border: sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor,
|
|
8301
|
-
borderRadius: sectionproperties.reservation_borderradius + 'px',
|
|
8302
8373
|
padding: '20px',
|
|
8303
8374
|
minHeight: '70vh'
|
|
8304
8375
|
}
|
|
8305
8376
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8306
|
-
className: '
|
|
8307
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
8308
|
-
className:
|
|
8309
|
-
}, /*#__PURE__*/React__default["default"].createElement("thead", {
|
|
8310
|
-
className: "",
|
|
8377
|
+
className: ' row m-0 w-100 d-block '
|
|
8378
|
+
}, sectionproperties.showbgimage == 'Hide' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8379
|
+
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-start p-0",
|
|
8311
8380
|
style: {
|
|
8312
|
-
|
|
8381
|
+
marginTop: sectionproperties.sectionTitleMarginTop + 'px',
|
|
8382
|
+
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px'
|
|
8313
8383
|
}
|
|
8314
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
8315
|
-
|
|
8316
|
-
}, langdetect == 'en' ? sectionproperties.productnametitle_en : sectionproperties.productnametitle_ar), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("th", {
|
|
8317
|
-
className: "text-center font-weight-500 font-14 text-light",
|
|
8384
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8385
|
+
"class": "m-0 p-0 mt-5 mt-sm-2",
|
|
8318
8386
|
style: {
|
|
8319
|
-
|
|
8387
|
+
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
8388
|
+
color: sectionproperties.sectionTitleColor,
|
|
8389
|
+
fontWeight: sectionproperties.sectionTitleFontWeight
|
|
8390
|
+
}
|
|
8391
|
+
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8392
|
+
className: ' col-lg-12 table_responsive p-0 d-block d-md-none '
|
|
8393
|
+
}, /*#__PURE__*/React__default["default"].createElement("table", {
|
|
8394
|
+
className: 'table'
|
|
8395
|
+
}, /*#__PURE__*/React__default["default"].createElement("thead", {
|
|
8396
|
+
className: ""
|
|
8397
|
+
}, /*#__PURE__*/React__default["default"].createElement("th", {
|
|
8398
|
+
className: langdetect == 'en' ? 'text-left font-weight-500 font-14 mw-150 mw-md-300' : 'text-right font-weight-500 font-14 mw-150 mw-md-300',
|
|
8399
|
+
style: {
|
|
8400
|
+
color: sectionproperties.sectionTitleColor,
|
|
8401
|
+
borderBottomColor: sectionproperties.sectioncardbordercolor
|
|
8402
|
+
}
|
|
8403
|
+
}, langdetect == 'en' ? sectionproperties.productnametitle_en : sectionproperties.productnametitle_ar), sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("th", {
|
|
8404
|
+
className: "text-center font-weight-500 font-14",
|
|
8405
|
+
style: {
|
|
8406
|
+
minWidth: '100px',
|
|
8407
|
+
color: sectionproperties.sectionTitleColor,
|
|
8408
|
+
borderBottomColor: sectionproperties.sectioncardbordercolor
|
|
8409
|
+
}
|
|
8410
|
+
}, langdetect == 'en' ? 'Unit Price' : 'السعر'), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("th", {
|
|
8411
|
+
className: "text-center font-weight-500 font-14",
|
|
8412
|
+
style: {
|
|
8413
|
+
minWidth: '100px',
|
|
8414
|
+
color: sectionproperties.sectionTitleColor,
|
|
8415
|
+
borderBottomColor: sectionproperties.sectioncardbordercolor
|
|
8320
8416
|
}
|
|
8321
|
-
}
|
|
8322
|
-
className: "text-center font-weight-500 font-14
|
|
8323
|
-
|
|
8417
|
+
}), /*#__PURE__*/React__default["default"].createElement("th", {
|
|
8418
|
+
className: "text-center font-weight-500 font-14",
|
|
8419
|
+
style: {
|
|
8420
|
+
color: sectionproperties.sectionTitleColor,
|
|
8421
|
+
borderBottomColor: sectionproperties.sectioncardbordercolor
|
|
8422
|
+
}
|
|
8423
|
+
})), /*#__PURE__*/React__default["default"].createElement("tbody", null, fetchFavoriteProductsQueryContext.data.data.products.map(function (item, index) {
|
|
8324
8424
|
return /*#__PURE__*/React__default["default"].createElement("tr", {
|
|
8325
8425
|
className: "border-none"
|
|
8326
8426
|
}, /*#__PURE__*/React__default["default"].createElement("td", {
|
|
8327
|
-
className: "mw-150 mw-md-300"
|
|
8427
|
+
className: "mw-150 mw-md-300",
|
|
8428
|
+
style: {
|
|
8429
|
+
borderBottomColor: sectionproperties.sectioncardbordercolor
|
|
8430
|
+
}
|
|
8328
8431
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8329
8432
|
className: "row m-0 w-100 d-flex"
|
|
8330
8433
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8331
8434
|
className: "".concat(wishlist_cssstyles.imagecont)
|
|
8332
|
-
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
8435
|
+
}, item.productmainimage != '' && /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
8333
8436
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
8334
8437
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
8335
8438
|
path: item.productmainimage,
|
|
8336
8439
|
style: {
|
|
8337
8440
|
width: '100%',
|
|
8338
8441
|
height: '100%',
|
|
8339
|
-
objectFit: '
|
|
8442
|
+
objectFit: 'contain'
|
|
8340
8443
|
},
|
|
8341
8444
|
loading: "lazy"
|
|
8342
|
-
})
|
|
8343
|
-
|
|
8445
|
+
}), item.productmainimage == '' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8446
|
+
style: {
|
|
8447
|
+
width: '100%',
|
|
8448
|
+
height: '100%',
|
|
8449
|
+
background: '#eee',
|
|
8450
|
+
borderRadius: 10
|
|
8451
|
+
}
|
|
8452
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
8453
|
+
"class": "h-100 allcentered text-light"
|
|
8454
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiLayers.FiLayers, {
|
|
8455
|
+
size: 26
|
|
8456
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8457
|
+
className: "col-lg-9 col-md-9 col-sm-8 pt-2"
|
|
8344
8458
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8345
|
-
className: "".concat(wishlist_cssstyles.productNameStyles) + ' m-0 p-0 wordbreak wordbreak3
|
|
8346
|
-
|
|
8459
|
+
className: "".concat(wishlist_cssstyles.productNameStyles) + ' m-0 p-0 wordbreak wordbreak3 mb-auto ',
|
|
8460
|
+
style: {
|
|
8461
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
8462
|
+
}
|
|
8463
|
+
}, item.name_en)))), sectionproperties.prodPriceShow = /*#__PURE__*/React__default["default"].createElement("td", {
|
|
8347
8464
|
className: "text-center",
|
|
8348
8465
|
style: {
|
|
8349
|
-
minWidth: '100px'
|
|
8466
|
+
minWidth: '100px',
|
|
8467
|
+
borderBottomColor: sectionproperties.sectioncardbordercolor
|
|
8468
|
+
}
|
|
8469
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8470
|
+
"class": "row m-0 w-100 allcentered flex-column"
|
|
8471
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8472
|
+
"class": wishlist_cssstyles.productPricestyles + ' m-0 p-0 '
|
|
8473
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'ar' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar : ''), item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8474
|
+
"class": wishlist_cssstyles.productsalePricestyles + ' m-0 p-0 linethrough mt-2 '
|
|
8475
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.defaultprice, ' ', langdetect == 'ar' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar : ''))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("td", {
|
|
8476
|
+
className: "text-center",
|
|
8477
|
+
style: {
|
|
8478
|
+
minWidth: '100px',
|
|
8479
|
+
borderBottomColor: sectionproperties.sectioncardbordercolor
|
|
8350
8480
|
}
|
|
8351
8481
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
8352
8482
|
className: "".concat(wishlist_cssstyles.cart_btn),
|
|
@@ -8354,29 +8484,11 @@ var Wishlist = function Wishlist(props) {
|
|
|
8354
8484
|
setShowProductInfoModalContext(true);
|
|
8355
8485
|
setProductIdProdutInfoModalContext(item.productid);
|
|
8356
8486
|
}
|
|
8357
|
-
},
|
|
8358
|
-
className: "",
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
8363
|
-
}), sectionproperties.carticonstyle == 'Shopping bag 3' && /*#__PURE__*/React__default["default"].createElement(BsBag.BsBag, {
|
|
8364
|
-
className: "",
|
|
8365
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
8366
|
-
}), sectionproperties.carticonstyle == 'Shopping bag 4' && /*#__PURE__*/React__default["default"].createElement(IoBagHandleOutline.IoBagHandleOutline, {
|
|
8367
|
-
className: "",
|
|
8368
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
8369
|
-
}), sectionproperties.carticonstyle == 'Shopping cart 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingCart.FiShoppingCart, {
|
|
8370
|
-
className: "",
|
|
8371
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
8372
|
-
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
8373
|
-
className: "",
|
|
8374
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
8375
|
-
}), sectionproperties.carticonstyle == 'Calendar 1' && /*#__PURE__*/React__default["default"].createElement(FiCalendar.FiCalendar, {
|
|
8376
|
-
className: "",
|
|
8377
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
8378
|
-
}))), /*#__PURE__*/React__default["default"].createElement("td", {
|
|
8379
|
-
className: "text-center"
|
|
8487
|
+
}, langdetect == 'en' ? item.productactionbuttontext_en : item.productactionbuttontext_ar)), /*#__PURE__*/React__default["default"].createElement("td", {
|
|
8488
|
+
className: "text-center",
|
|
8489
|
+
style: {
|
|
8490
|
+
borderBottomColor: sectionproperties.sectioncardbordercolor
|
|
8491
|
+
}
|
|
8380
8492
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
8381
8493
|
className: " ".concat(wishlist_cssstyles.trash_btn) + ' d-flex align-items-center justify-content-center text-uppercase font-weight-500 m-auto ',
|
|
8382
8494
|
onClick: function onClick() {
|
|
@@ -8385,28 +8497,127 @@ var Wishlist = function Wishlist(props) {
|
|
|
8385
8497
|
style: {
|
|
8386
8498
|
fontSize: sectionproperties.trashbtn_Textfontsize + 'px'
|
|
8387
8499
|
}
|
|
8388
|
-
},
|
|
8389
|
-
|
|
8390
|
-
|
|
8500
|
+
}, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, {
|
|
8501
|
+
size: sectionproperties.trashbtn_Textfontsize
|
|
8502
|
+
}))));
|
|
8503
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8504
|
+
className: ' col-lg-12 p-0 d-none d-md-flex align-items-center justify-content-start '
|
|
8391
8505
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8392
|
-
className: '
|
|
8393
|
-
},
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
|
|
8506
|
+
className: ' row m-0 w-100 d-flex align-items-center justify-content-start '
|
|
8507
|
+
}, fetchFavoriteProductsQueryContext.data.data.products.map(function (item, index) {
|
|
8508
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8509
|
+
"class": "col-lg-12 p-0"
|
|
8510
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8511
|
+
"class": "row m-0 w-100"
|
|
8512
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8513
|
+
className: ' col-3 p-0 '
|
|
8514
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8515
|
+
className: "".concat(wishlist_cssstyles.imagecont) + ' w-100 p-0 '
|
|
8516
|
+
}, item.productmainimage != '' && /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
8517
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
8518
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
8519
|
+
path: item.productmainimage,
|
|
8520
|
+
style: {
|
|
8521
|
+
width: '100%',
|
|
8522
|
+
height: '100%',
|
|
8523
|
+
objectFit: 'contain'
|
|
8524
|
+
},
|
|
8525
|
+
loading: "lazy"
|
|
8526
|
+
}), item.productmainimage == '' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8527
|
+
style: {
|
|
8528
|
+
width: '100%',
|
|
8529
|
+
height: '100%',
|
|
8530
|
+
background: '#eee',
|
|
8531
|
+
borderRadius: 10
|
|
8532
|
+
}
|
|
8533
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
8534
|
+
"class": "h-100 allcentered text-light"
|
|
8535
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiLayers.FiLayers, {
|
|
8536
|
+
size: 26
|
|
8537
|
+
}))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8538
|
+
className: "col-9 pt-2"
|
|
8539
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8540
|
+
"class": "row m-0 w-100 d-flex"
|
|
8541
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8542
|
+
"class": "col-10 p-0 d-flex align-items-center justify-content-start"
|
|
8543
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8544
|
+
className: "".concat(wishlist_cssstyles.productNameStyles) + ' m-0 p-0 wordbreak wordbreak3 mb-auto ',
|
|
8545
|
+
style: {
|
|
8546
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
8547
|
+
}
|
|
8548
|
+
}, item.name_en)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8549
|
+
"class": "col-2 p-0 d-flex align-items-center justify-content-end"
|
|
8550
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
8551
|
+
className: " ".concat(wishlist_cssstyles.trash_btnresp) + ' allcentered ',
|
|
8552
|
+
onClick: function onClick() {
|
|
8553
|
+
addtofavoritescontext(item.productid);
|
|
8554
|
+
}
|
|
8555
|
+
}, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, {
|
|
8556
|
+
size: sectionproperties.trashbtn_Textfontsize
|
|
8557
|
+
}))), sectionproperties.prodPriceShow = /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8558
|
+
"class": "col-lg-12 p-0 d-flex align-items-center justify-content-start"
|
|
8559
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8560
|
+
"class": wishlist_cssstyles.productPricestyles + ' m-0 p-0 '
|
|
8561
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'ar' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar : ''), item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8562
|
+
"class": wishlist_cssstyles.productsalePricestyles + ' m-0 p-0 linethrough mx-2 mt-auto '
|
|
8563
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.defaultprice, ' ', langdetect == 'ar' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar : '')))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8564
|
+
"class": "col-lg-12 allcentered p-0 mt-4"
|
|
8565
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
8566
|
+
className: "".concat(wishlist_cssstyles.cart_btn) + ' w-100 ',
|
|
8567
|
+
onClick: function onClick() {
|
|
8568
|
+
setShowProductInfoModalContext(true);
|
|
8569
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
8570
|
+
}
|
|
8571
|
+
}, langdetect == 'en' ? item.productactionbuttontext_en : item.productactionbuttontext_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8572
|
+
"class": "col-lg-12 p-0 my-3",
|
|
8573
|
+
style: {
|
|
8574
|
+
background: '#eee',
|
|
8575
|
+
height: 1,
|
|
8576
|
+
width: '100%'
|
|
8577
|
+
}
|
|
8578
|
+
})));
|
|
8579
|
+
}))))), fetchFavoriteProductsQueryContext.data.data.products.length == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8580
|
+
className: "row m-0 w-100 d-flex justify-content-center pb-5",
|
|
8581
|
+
style: {
|
|
8582
|
+
maxHeight: '60vh',
|
|
8583
|
+
padding: '20px'
|
|
8584
|
+
}
|
|
8585
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8586
|
+
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-start p-0",
|
|
8587
|
+
style: {
|
|
8588
|
+
marginTop: sectionproperties.sectionTitleMarginTop + 'px',
|
|
8589
|
+
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px'
|
|
8590
|
+
}
|
|
8591
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8592
|
+
"class": "m-0 p-0 mt-5 mt-sm-2",
|
|
8593
|
+
style: {
|
|
8594
|
+
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
8595
|
+
color: sectionproperties.sectionTitleColor,
|
|
8596
|
+
fontWeight: sectionproperties.sectionTitleFontWeight
|
|
8597
|
+
}
|
|
8598
|
+
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8599
|
+
className: ' col-lg-12 d-flex align-items-center justify-content-start text-light px-0 mb-3 '
|
|
8600
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8601
|
+
"class": sectionproperties.noprod_iconfontSize == 0 ? 'm-0 p-0' : 'm-0 p-0 mt-2',
|
|
8398
8602
|
style: {
|
|
8399
8603
|
fontWeight: sectionproperties.noprod_fontWeight,
|
|
8400
8604
|
color: sectionproperties.noprod_color,
|
|
8401
8605
|
fontSize: sectionproperties.noprod_fontSize + 'px'
|
|
8402
8606
|
}
|
|
8403
|
-
}, langdetect == 'en' ? sectionproperties.nocards_content_en : sectionproperties.nocards_content_ar))
|
|
8607
|
+
}, langdetect == 'en' ? sectionproperties.nocards_content_en : sectionproperties.nocards_content_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8608
|
+
className: ' col-lg-12 d-flex align-items-center justify-content-start text-light px-0 mb-5 '
|
|
8609
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
8610
|
+
"class": "".concat(wishlist_cssstyles.btnstyles),
|
|
8611
|
+
onClick: function onClick() {
|
|
8612
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
8613
|
+
}
|
|
8614
|
+
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar))))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8404
8615
|
className: "col-lg-12 d-flex align-items-center justify-content-center p-0 "
|
|
8405
8616
|
})));
|
|
8406
8617
|
};
|
|
8407
8618
|
|
|
8408
|
-
function ownKeys$
|
|
8409
|
-
function _objectSpread$
|
|
8619
|
+
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; }
|
|
8620
|
+
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
8621
|
var Viewcart = function Viewcart(props) {
|
|
8411
8622
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchcustomercartQue7, _fetchcustomercartQue8;
|
|
8412
8623
|
var lang = props.actions.lang;
|
|
@@ -8438,7 +8649,7 @@ var Viewcart = function Viewcart(props) {
|
|
|
8438
8649
|
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
8650
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
8440
8651
|
});
|
|
8441
|
-
setsectionproperties(_objectSpread$
|
|
8652
|
+
setsectionproperties(_objectSpread$2k({}, secpropobj));
|
|
8442
8653
|
}
|
|
8443
8654
|
}, [StatePagePropertiesContext]);
|
|
8444
8655
|
React.useEffect(function () {
|
|
@@ -9026,8 +9237,8 @@ var css_248z$G = "/* Forms */\n.form-module_form_control__4-RGw {\n display:
|
|
|
9026
9237
|
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
9238
|
styleInject(css_248z$G);
|
|
9028
9239
|
|
|
9029
|
-
function ownKeys$
|
|
9030
|
-
function _objectSpread$
|
|
9240
|
+
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; }
|
|
9241
|
+
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
9242
|
var Select$3 = /*#__PURE__*/React__default["default"].lazy(function () {
|
|
9032
9243
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
|
|
9033
9244
|
});
|
|
@@ -9086,7 +9297,7 @@ var Checkout = function Checkout(props) {
|
|
|
9086
9297
|
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
9298
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
9088
9299
|
});
|
|
9089
|
-
setsectionproperties(_objectSpread$
|
|
9300
|
+
setsectionproperties(_objectSpread$2j({}, secpropobj));
|
|
9090
9301
|
}, [props.actions.StatePagePropertiesContext]);
|
|
9091
9302
|
React.useEffect(function () {
|
|
9092
9303
|
var Canorder = false;
|
|
@@ -9106,10 +9317,10 @@ var Checkout = function Checkout(props) {
|
|
|
9106
9317
|
}
|
|
9107
9318
|
if (Canorder == true) {
|
|
9108
9319
|
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7;
|
|
9109
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
9320
|
+
var tempFetchQueriesEngineContext = _objectSpread$2j({}, FetchQueriesEngineContext);
|
|
9110
9321
|
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
9111
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
9112
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
9322
|
+
setFetchQueriesEngineContext(_objectSpread$2j({}, tempFetchQueriesEngineContext));
|
|
9323
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2j({}, FetchTabexStatesPayloadobjContext);
|
|
9113
9324
|
if (
|
|
9114
9325
|
// Aya
|
|
9115
9326
|
!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 +9337,7 @@ var Checkout = function Checkout(props) {
|
|
|
9126
9337
|
var _fetchcustomercartQue8;
|
|
9127
9338
|
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
9339
|
}
|
|
9129
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
9340
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2j({}, tempFetchTabexStatesPayloadobjContext));
|
|
9130
9341
|
} else {
|
|
9131
9342
|
// NotificationManager.warning('', lang.pleaselogintocheckout);
|
|
9132
9343
|
routingcountext(StaticPagesLinksContext.Login);
|
|
@@ -9993,10 +10204,10 @@ var Checkout = function Checkout(props) {
|
|
|
9993
10204
|
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
10205
|
}),
|
|
9995
10206
|
onChange: function onChange(option) {
|
|
9996
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
10207
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2j({}, FetchTabexStatesPayloadobjContext);
|
|
9997
10208
|
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
9998
10209
|
tempFetchTabexStatesPayloadobjContext.country_id = option.id;
|
|
9999
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
10210
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2j({}, tempFetchTabexStatesPayloadobjContext));
|
|
10000
10211
|
cartinfoupdater('countryid', option.id);
|
|
10001
10212
|
},
|
|
10002
10213
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -10041,10 +10252,10 @@ var Checkout = function Checkout(props) {
|
|
|
10041
10252
|
onChange: function onChange(option) {
|
|
10042
10253
|
var _fetchcustomercartQue60;
|
|
10043
10254
|
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$
|
|
10255
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2j({}, FetchTabexStatesPayloadobjContext);
|
|
10045
10256
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
10046
10257
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
10047
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
10258
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2j({}, tempFetchTabexStatesPayloadobjContext));
|
|
10048
10259
|
cartinfoupdater('stateid', option.id);
|
|
10049
10260
|
} else {
|
|
10050
10261
|
NotificationManager.warning('', 'Please Choose Country Or State');
|
|
@@ -10408,8 +10619,8 @@ var Checkout = function Checkout(props) {
|
|
|
10408
10619
|
}, Mycart())))));
|
|
10409
10620
|
};
|
|
10410
10621
|
|
|
10411
|
-
function ownKeys$
|
|
10412
|
-
function _objectSpread$
|
|
10622
|
+
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; }
|
|
10623
|
+
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
10624
|
var VendorPage = function VendorPage(props) {
|
|
10414
10625
|
var _useState = React.useState(''),
|
|
10415
10626
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
@@ -10442,7 +10653,7 @@ var VendorPage = function VendorPage(props) {
|
|
|
10442
10653
|
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
10654
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
10444
10655
|
});
|
|
10445
|
-
setsectionproperties(_objectSpread$
|
|
10656
|
+
setsectionproperties(_objectSpread$2i({}, secpropobj));
|
|
10446
10657
|
}
|
|
10447
10658
|
}, [StatePagePropertiesContext]);
|
|
10448
10659
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -10565,8 +10776,8 @@ var VendorPage = function VendorPage(props) {
|
|
|
10565
10776
|
})));
|
|
10566
10777
|
};
|
|
10567
10778
|
|
|
10568
|
-
function ownKeys$
|
|
10569
|
-
function _objectSpread$
|
|
10779
|
+
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; }
|
|
10780
|
+
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
10781
|
var Select$2 = /*#__PURE__*/React__default["default"].lazy(function () {
|
|
10571
10782
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
|
|
10572
10783
|
});
|
|
@@ -10676,46 +10887,46 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
10676
10887
|
}
|
|
10677
10888
|
}, [fetchAuthorizationQueryContext.isSuccess]);
|
|
10678
10889
|
React.useEffect(function () {
|
|
10679
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
10890
|
+
var tempFetchQueriesEngineContext = _objectSpread$2h({}, FetchQueriesEngineContext);
|
|
10680
10891
|
tempFetchQueriesEngineContext.institutecustomerinfosignup = true;
|
|
10681
10892
|
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
10682
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
10683
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
10893
|
+
setFetchQueriesEngineContext(_objectSpread$2h({}, tempFetchQueriesEngineContext));
|
|
10894
|
+
var tempFetchQueriesEngineContext = _objectSpread$2h({}, FetchQueriesEngineContext);
|
|
10684
10895
|
}, []);
|
|
10685
10896
|
React.useEffect(function () {
|
|
10686
10897
|
if (props.sectionpropertiesprops != undefined && props.sectionpropertiesprops.length != 0) {
|
|
10687
|
-
setsectionproperties(_objectSpread$
|
|
10898
|
+
setsectionproperties(_objectSpread$2h({}, props.sectionpropertiesprops));
|
|
10688
10899
|
}
|
|
10689
10900
|
}, [props.sectionpropertiesprops]);
|
|
10690
10901
|
React.useEffect(function () {
|
|
10691
10902
|
if (fetchinstitutecustomerinfosignupQueryContext.isSuccess) {
|
|
10692
10903
|
if (authdetailsContext.loggedin == true) {
|
|
10693
|
-
var tempcustomerinfoobj = _objectSpread$
|
|
10694
|
-
setpayloadobj(_objectSpread$
|
|
10695
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
10904
|
+
var tempcustomerinfoobj = _objectSpread$2h({}, fetchinstitutecustomerinfosignupQueryContext.data.data.customerinfo);
|
|
10905
|
+
setpayloadobj(_objectSpread$2h({}, tempcustomerinfoobj));
|
|
10906
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2h({}, FetchTabexStatesPayloadobjContext);
|
|
10696
10907
|
if (tempcustomerinfoobj.countryid != null) {
|
|
10697
10908
|
tempFetchTabexStatesPayloadobjContext.country_id = tempcustomerinfoobj.countryid;
|
|
10698
10909
|
}
|
|
10699
10910
|
if (tempcustomerinfoobj.stateid != null) {
|
|
10700
10911
|
tempFetchTabexStatesPayloadobjContext.state_id = tempcustomerinfoobj.stateid;
|
|
10701
10912
|
}
|
|
10702
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
10913
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2h({}, tempFetchTabexStatesPayloadobjContext));
|
|
10703
10914
|
setdataloaded(true);
|
|
10704
10915
|
} else {
|
|
10705
10916
|
var _fetchinstitutecustom;
|
|
10706
|
-
var tempcustomerinfoobj = _objectSpread$
|
|
10917
|
+
var tempcustomerinfoobj = _objectSpread$2h({}, payloadobj);
|
|
10707
10918
|
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
10919
|
tempcustomerinfoobj.instsignupformvalues = _toConsumableArray__default["default"](fetchinstitutecustomerinfosignupQueryContext.data.data.instsignupformvalues);
|
|
10709
10920
|
}
|
|
10710
|
-
setpayloadobj(_objectSpread$
|
|
10921
|
+
setpayloadobj(_objectSpread$2h({}, tempcustomerinfoobj));
|
|
10711
10922
|
setdataloaded(true);
|
|
10712
10923
|
}
|
|
10713
10924
|
}
|
|
10714
10925
|
}, [fetchinstitutecustomerinfosignupQueryContext.isSuccess, fetchinstitutecustomerinfosignupQueryContext.data, authdetailsContext]);
|
|
10715
10926
|
var payloadobjchange = function payloadobjchange(key, value) {
|
|
10716
|
-
var temppayloadobj = _objectSpread$
|
|
10927
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
10717
10928
|
temppayloadobj[key] = value;
|
|
10718
|
-
setpayloadobj(_objectSpread$
|
|
10929
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
10719
10930
|
};
|
|
10720
10931
|
var validateEmailstring = function validateEmailstring(email) {
|
|
10721
10932
|
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 +10998,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
10787
10998
|
};
|
|
10788
10999
|
var signupbuttonfunc = function signupbuttonfunc() {
|
|
10789
11000
|
if (verifypayload() == true) {
|
|
10790
|
-
var temppayloadobj = _objectSpread$
|
|
11001
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
10791
11002
|
if (authdetailsContext.loggedin == true) {
|
|
10792
11003
|
temppayloadobj.functype = 'edit';
|
|
10793
11004
|
} else {
|
|
@@ -10944,10 +11155,10 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
10944
11155
|
autoFormat: true,
|
|
10945
11156
|
value: payloadobj.mobile,
|
|
10946
11157
|
onChange: function onChange(event, country) {
|
|
10947
|
-
var temp = _objectSpread$
|
|
11158
|
+
var temp = _objectSpread$2h({}, payloadobj);
|
|
10948
11159
|
temp.mobile = event;
|
|
10949
11160
|
temp.countrydialcode = country.dialCode;
|
|
10950
|
-
setpayloadobj(_objectSpread$
|
|
11161
|
+
setpayloadobj(_objectSpread$2h({}, temp));
|
|
10951
11162
|
// payloadobjchange('mobile', event);
|
|
10952
11163
|
|
|
10953
11164
|
// alert(JSON.stringify(country));
|
|
@@ -11004,10 +11215,10 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11004
11215
|
return option.id == payloadobj.countryid;
|
|
11005
11216
|
}),
|
|
11006
11217
|
onChange: function onChange(option) {
|
|
11007
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
11218
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2h({}, FetchTabexStatesPayloadobjContext);
|
|
11008
11219
|
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
11009
11220
|
tempFetchTabexStatesPayloadobjContext.country_id = option.id;
|
|
11010
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
11221
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2h({}, tempFetchTabexStatesPayloadobjContext));
|
|
11011
11222
|
payloadobjchange('countryid', option.id);
|
|
11012
11223
|
},
|
|
11013
11224
|
styles: sectionproperties.inputfieldbordertype == 'All' ? langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated : langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -11056,10 +11267,10 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11056
11267
|
return option.id == payloadobj.stateid;
|
|
11057
11268
|
}),
|
|
11058
11269
|
onChange: function onChange(option) {
|
|
11059
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
11270
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2h({}, FetchTabexStatesPayloadobjContext);
|
|
11060
11271
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
11061
11272
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
11062
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
11273
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2h({}, tempFetchTabexStatesPayloadobjContext));
|
|
11063
11274
|
payloadobjchange('stateid', option.id);
|
|
11064
11275
|
},
|
|
11065
11276
|
styles: sectionproperties.inputfieldbordertype == 'All' ? langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated : langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -11201,9 +11412,9 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11201
11412
|
value: item.customersignupvalue,
|
|
11202
11413
|
textplaceholder: "",
|
|
11203
11414
|
onChange: function onChange(event) {
|
|
11204
|
-
var temppayloadobj = _objectSpread$
|
|
11415
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
11205
11416
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
|
|
11206
|
-
setpayloadobj(_objectSpread$
|
|
11417
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
11207
11418
|
},
|
|
11208
11419
|
style: {
|
|
11209
11420
|
background: 'transparent'
|
|
@@ -11217,13 +11428,13 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11217
11428
|
className: formstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11218
11429
|
checked: item.customersignupvalue == 1 ? true : false,
|
|
11219
11430
|
onChange: function onChange() {
|
|
11220
|
-
var temppayloadobj = _objectSpread$
|
|
11431
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
11221
11432
|
if (temppayloadobj.instsignupformvalues[index].customersignupvalue == 1) {
|
|
11222
11433
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = 0;
|
|
11223
11434
|
} else {
|
|
11224
11435
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = 1;
|
|
11225
11436
|
}
|
|
11226
|
-
setpayloadobj(_objectSpread$
|
|
11437
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
11227
11438
|
}
|
|
11228
11439
|
}), /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
11229
11440
|
viewBox: "0 0 21 21",
|
|
@@ -11240,9 +11451,9 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11240
11451
|
value: item.customersignupvalue,
|
|
11241
11452
|
textplaceholder: "",
|
|
11242
11453
|
onChange: function onChange(event) {
|
|
11243
|
-
var temppayloadobj = _objectSpread$
|
|
11454
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
11244
11455
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
|
|
11245
|
-
setpayloadobj(_objectSpread$
|
|
11456
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
11246
11457
|
}
|
|
11247
11458
|
}, /*#__PURE__*/React__default["default"].createElement("option", {
|
|
11248
11459
|
value: '',
|
|
@@ -11257,9 +11468,9 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11257
11468
|
value: item.customersignupvalue,
|
|
11258
11469
|
textplaceholder: "",
|
|
11259
11470
|
onChange: function onChange(event) {
|
|
11260
|
-
var temppayloadobj = _objectSpread$
|
|
11471
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
11261
11472
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
|
|
11262
|
-
setpayloadobj(_objectSpread$
|
|
11473
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
11263
11474
|
},
|
|
11264
11475
|
style: {
|
|
11265
11476
|
resize: 'none'
|
|
@@ -11613,7 +11824,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11613
11824
|
className: "".concat(formstyles.form_control),
|
|
11614
11825
|
value: validateemailpayload.code,
|
|
11615
11826
|
onChange: function onChange(event) {
|
|
11616
|
-
setvalidateemailpayload(_objectSpread$
|
|
11827
|
+
setvalidateemailpayload(_objectSpread$2h(_objectSpread$2h({}, validateemailpayload), {}, {
|
|
11617
11828
|
code: event.target.value
|
|
11618
11829
|
}));
|
|
11619
11830
|
},
|
|
@@ -11640,12 +11851,12 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11640
11851
|
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
11641
11852
|
if (data.data.status) {
|
|
11642
11853
|
if (data.data.functype == 'sendcode') {
|
|
11643
|
-
setvalidateemailpayload(_objectSpread$
|
|
11854
|
+
setvalidateemailpayload(_objectSpread$2h(_objectSpread$2h({}, validateemailpayload), {}, {
|
|
11644
11855
|
step: 'verifycode'
|
|
11645
11856
|
}));
|
|
11646
11857
|
}
|
|
11647
11858
|
if (data.data.functype == 'verifycode') {
|
|
11648
|
-
setvalidateemailpayload(_objectSpread$
|
|
11859
|
+
setvalidateemailpayload(_objectSpread$2h(_objectSpread$2h({}, validateemailpayload), {}, {
|
|
11649
11860
|
isvalidated: true
|
|
11650
11861
|
}));
|
|
11651
11862
|
setvalidateemailmodal(false);
|
|
@@ -11740,7 +11951,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11740
11951
|
className: "".concat(formstyles.form_control),
|
|
11741
11952
|
value: validatephonenumberpayload.code,
|
|
11742
11953
|
onChange: function onChange(event) {
|
|
11743
|
-
setvalidatephonenumberpayload(_objectSpread$
|
|
11954
|
+
setvalidatephonenumberpayload(_objectSpread$2h(_objectSpread$2h({}, validatephonenumberpayload), {}, {
|
|
11744
11955
|
code: event.target.value
|
|
11745
11956
|
}));
|
|
11746
11957
|
},
|
|
@@ -11767,12 +11978,12 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11767
11978
|
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
11768
11979
|
if (data.data.status) {
|
|
11769
11980
|
if (data.data.functype == 'sendcode') {
|
|
11770
|
-
setvalidatephonenumberpayload(_objectSpread$
|
|
11981
|
+
setvalidatephonenumberpayload(_objectSpread$2h(_objectSpread$2h({}, validatephonenumberpayload), {}, {
|
|
11771
11982
|
step: 'verifycode'
|
|
11772
11983
|
}));
|
|
11773
11984
|
}
|
|
11774
11985
|
if (data.data.functype == 'verifycode') {
|
|
11775
|
-
setvalidatephonenumberpayload(_objectSpread$
|
|
11986
|
+
setvalidatephonenumberpayload(_objectSpread$2h(_objectSpread$2h({}, validatephonenumberpayload), {}, {
|
|
11776
11987
|
isvalidated: true
|
|
11777
11988
|
}));
|
|
11778
11989
|
setvalidatephonenumbermodal(false);
|
|
@@ -11808,8 +12019,8 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11808
12019
|
}, validatephonenumberpayload.step == 'sendcode' ? lang.sendcode : lang.verifycode))))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
|
|
11809
12020
|
};
|
|
11810
12021
|
|
|
11811
|
-
function ownKeys$
|
|
11812
|
-
function _objectSpread$
|
|
12022
|
+
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; }
|
|
12023
|
+
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
12024
|
var Signup = function Signup(props) {
|
|
11814
12025
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
11815
12026
|
props.actions.CurrentSrcTypeContext;
|
|
@@ -11857,7 +12068,7 @@ var Signup = function Signup(props) {
|
|
|
11857
12068
|
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
12069
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
11859
12070
|
});
|
|
11860
|
-
setsectionproperties(_objectSpread$
|
|
12071
|
+
setsectionproperties(_objectSpread$2g({}, secpropobj));
|
|
11861
12072
|
}
|
|
11862
12073
|
}, [StatePagePropertiesContext]);
|
|
11863
12074
|
var loginstyles2 = {
|
|
@@ -12000,8 +12211,8 @@ var Signup = function Signup(props) {
|
|
|
12000
12211
|
}, SignupContent()));
|
|
12001
12212
|
};
|
|
12002
12213
|
|
|
12003
|
-
function ownKeys$
|
|
12004
|
-
function _objectSpread$
|
|
12214
|
+
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; }
|
|
12215
|
+
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
12216
|
var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
12006
12217
|
var _css;
|
|
12007
12218
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -12067,7 +12278,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12067
12278
|
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
12279
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12069
12280
|
});
|
|
12070
|
-
setsectionproperties(_objectSpread$
|
|
12281
|
+
setsectionproperties(_objectSpread$2f({}, secpropobj));
|
|
12071
12282
|
}
|
|
12072
12283
|
}, [StatePagePropertiesContext]);
|
|
12073
12284
|
var loginstyles2 = {
|
|
@@ -12168,7 +12379,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12168
12379
|
className: "".concat(loginstyles2.form_control),
|
|
12169
12380
|
value: affsignuppayload.name,
|
|
12170
12381
|
onChange: function onChange(event) {
|
|
12171
|
-
setaffsignuppayload(_objectSpread$
|
|
12382
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12172
12383
|
name: event.target.value
|
|
12173
12384
|
}));
|
|
12174
12385
|
},
|
|
@@ -12184,7 +12395,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12184
12395
|
className: "".concat(loginstyles2.form_control),
|
|
12185
12396
|
value: affsignuppayload.email,
|
|
12186
12397
|
onChange: function onChange(event) {
|
|
12187
|
-
setaffsignuppayload(_objectSpread$
|
|
12398
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12188
12399
|
email: event.target.value
|
|
12189
12400
|
}));
|
|
12190
12401
|
},
|
|
@@ -12202,10 +12413,10 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12202
12413
|
autoFormat: true,
|
|
12203
12414
|
value: affsignuppayload.phonenumber,
|
|
12204
12415
|
onChange: function onChange(event, country) {
|
|
12205
|
-
var temp = _objectSpread$
|
|
12416
|
+
var temp = _objectSpread$2f({}, affsignuppayload);
|
|
12206
12417
|
temp.phonenumber = event;
|
|
12207
12418
|
temp.countrydialcode = country.dialCode;
|
|
12208
|
-
setaffsignuppayload(_objectSpread$
|
|
12419
|
+
setaffsignuppayload(_objectSpread$2f({}, temp));
|
|
12209
12420
|
// setaffsignuppayload({ ...affsignuppayload, phonenumber: event.target.value });
|
|
12210
12421
|
},
|
|
12211
12422
|
|
|
@@ -12221,7 +12432,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12221
12432
|
className: "".concat(loginstyles2.form_control),
|
|
12222
12433
|
value: affsignuppayload.ssn,
|
|
12223
12434
|
onChange: function onChange(event) {
|
|
12224
|
-
setaffsignuppayload(_objectSpread$
|
|
12435
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12225
12436
|
ssn: event.target.value
|
|
12226
12437
|
}));
|
|
12227
12438
|
},
|
|
@@ -12237,7 +12448,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12237
12448
|
className: "".concat(loginstyles2.form_control),
|
|
12238
12449
|
value: affsignuppayload.password,
|
|
12239
12450
|
onChange: function onChange(event) {
|
|
12240
|
-
setaffsignuppayload(_objectSpread$
|
|
12451
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12241
12452
|
password: event.target.value
|
|
12242
12453
|
}));
|
|
12243
12454
|
},
|
|
@@ -12253,7 +12464,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12253
12464
|
className: "".concat(loginstyles2.form_control),
|
|
12254
12465
|
value: affsignuppayload.confirmpassword,
|
|
12255
12466
|
onChange: function onChange(event) {
|
|
12256
|
-
setaffsignuppayload(_objectSpread$
|
|
12467
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12257
12468
|
confirmpassword: event.target.value
|
|
12258
12469
|
}));
|
|
12259
12470
|
},
|
|
@@ -12306,8 +12517,8 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12306
12517
|
}), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("span", null, langdetect == 'en' ? sectionproperties.signupbtn_contenten : sectionproperties.signupbtn_contentar)))))))));
|
|
12307
12518
|
};
|
|
12308
12519
|
|
|
12309
|
-
function ownKeys$
|
|
12310
|
-
function _objectSpread$
|
|
12520
|
+
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; }
|
|
12521
|
+
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
12522
|
var AccountInformation = function AccountInformation(props) {
|
|
12312
12523
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8;
|
|
12313
12524
|
var lang = props.actions.lang;
|
|
@@ -12334,7 +12545,7 @@ var AccountInformation = function AccountInformation(props) {
|
|
|
12334
12545
|
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
12546
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12336
12547
|
});
|
|
12337
|
-
setsectionproperties(_objectSpread$
|
|
12548
|
+
setsectionproperties(_objectSpread$2e({}, secpropobj));
|
|
12338
12549
|
}, [props.actions.StatePagePropertiesContext]);
|
|
12339
12550
|
React.useEffect(function () {
|
|
12340
12551
|
var cartindex = templatepropcontext.pagesnprop.findIndex(function (x) {
|
|
@@ -12496,8 +12707,8 @@ var css_248z$F = ".tabs-module_tabs__36dMY {\n position: relative;\n heigh
|
|
|
12496
12707
|
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
12708
|
styleInject(css_248z$F);
|
|
12498
12709
|
|
|
12499
|
-
function ownKeys$
|
|
12500
|
-
function _objectSpread$
|
|
12710
|
+
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; }
|
|
12711
|
+
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
12712
|
var Policies = function Policies(props) {
|
|
12502
12713
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchInstitutePolici, _fetchInstitutePolici2, _fetchInstitutePolici3;
|
|
12503
12714
|
var _useState = React.useState(''),
|
|
@@ -12528,7 +12739,7 @@ var Policies = function Policies(props) {
|
|
|
12528
12739
|
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
12740
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12530
12741
|
});
|
|
12531
|
-
setsectionproperties(_objectSpread$
|
|
12742
|
+
setsectionproperties(_objectSpread$2d({}, secpropobj));
|
|
12532
12743
|
}
|
|
12533
12744
|
}, [StatePagePropertiesContext]);
|
|
12534
12745
|
React.useEffect(function () {
|
|
@@ -12541,9 +12752,9 @@ var Policies = function Policies(props) {
|
|
|
12541
12752
|
}
|
|
12542
12753
|
}, []);
|
|
12543
12754
|
React.useEffect(function () {
|
|
12544
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
12755
|
+
var tempFetchQueriesEngineContext = _objectSpread$2d({}, FetchQueriesEngineContext);
|
|
12545
12756
|
tempFetchQueriesEngineContext.fetchinstitutepolicy = true;
|
|
12546
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
12757
|
+
setFetchQueriesEngineContext(_objectSpread$2d({}, tempFetchQueriesEngineContext));
|
|
12547
12758
|
}, []);
|
|
12548
12759
|
var _useState7 = React.useState([]),
|
|
12549
12760
|
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
@@ -12773,8 +12984,8 @@ var css_248z$E = ".cart-module_cartslider_container__idend {\n transition: 0.
|
|
|
12773
12984
|
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
12985
|
styleInject(css_248z$E);
|
|
12775
12986
|
|
|
12776
|
-
function ownKeys$
|
|
12777
|
-
function _objectSpread$
|
|
12987
|
+
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; }
|
|
12988
|
+
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
12989
|
var CartSlider = function CartSlider(props) {
|
|
12779
12990
|
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12;
|
|
12780
12991
|
var lang = props.actions.lang;
|
|
@@ -12840,7 +13051,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
12840
13051
|
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
13052
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12842
13053
|
});
|
|
12843
|
-
setsectionproperties(_objectSpread$
|
|
13054
|
+
setsectionproperties(_objectSpread$2c({}, secpropobj));
|
|
12844
13055
|
}, [CurrentPageId]);
|
|
12845
13056
|
React.useEffect(function () {
|
|
12846
13057
|
if (CurrentSrcTypeContext == 'workplace') {
|
|
@@ -12850,7 +13061,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
12850
13061
|
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
13062
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12852
13063
|
});
|
|
12853
|
-
setsectionproperties(_objectSpread$
|
|
13064
|
+
setsectionproperties(_objectSpread$2c({}, secpropobj));
|
|
12854
13065
|
}
|
|
12855
13066
|
}
|
|
12856
13067
|
}, [StatePagePropertiesContext]);
|
|
@@ -13420,8 +13631,8 @@ var CartSlider = function CartSlider(props) {
|
|
|
13420
13631
|
}, langdetect == 'en' ? sectionproperties.checkoutButtonContenten : sectionproperties.checkoutButtonContentar))))))))));
|
|
13421
13632
|
};
|
|
13422
13633
|
|
|
13423
|
-
function ownKeys$
|
|
13424
|
-
function _objectSpread$
|
|
13634
|
+
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; }
|
|
13635
|
+
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
13636
|
var Categoriesdropdown = function Categoriesdropdown(props) {
|
|
13426
13637
|
var _useState = React.useState(''),
|
|
13427
13638
|
_useState2 = _slicedToArray__default["default"](_useState, 2);
|
|
@@ -13465,7 +13676,7 @@ var Categoriesdropdown = function Categoriesdropdown(props) {
|
|
|
13465
13676
|
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
13677
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
13467
13678
|
});
|
|
13468
|
-
setsectionproperties(_objectSpread$
|
|
13679
|
+
setsectionproperties(_objectSpread$2b({}, secpropobj));
|
|
13469
13680
|
}, [CurrentPageId]);
|
|
13470
13681
|
React.useEffect(function () {
|
|
13471
13682
|
if (CurrentSrcTypeContext == 'workplace') {
|
|
@@ -13475,7 +13686,7 @@ var Categoriesdropdown = function Categoriesdropdown(props) {
|
|
|
13475
13686
|
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
13687
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
13477
13688
|
});
|
|
13478
|
-
setsectionproperties(_objectSpread$
|
|
13689
|
+
setsectionproperties(_objectSpread$2b({}, secpropobj));
|
|
13479
13690
|
}
|
|
13480
13691
|
}
|
|
13481
13692
|
}, [StatePagePropertiesContext]);
|
|
@@ -13703,8 +13914,8 @@ var Categoriesdropdown = function Categoriesdropdown(props) {
|
|
|
13703
13914
|
}, CategoriesDropdown()));
|
|
13704
13915
|
};
|
|
13705
13916
|
|
|
13706
|
-
function ownKeys$
|
|
13707
|
-
function _objectSpread$
|
|
13917
|
+
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; }
|
|
13918
|
+
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
13919
|
var OrderSuccess = function OrderSuccess(props) {
|
|
13709
13920
|
var _props$actions2;
|
|
13710
13921
|
props.actions.lang;
|
|
@@ -13754,7 +13965,7 @@ var OrderSuccess = function OrderSuccess(props) {
|
|
|
13754
13965
|
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
13966
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
13756
13967
|
});
|
|
13757
|
-
setsectionproperties(_objectSpread$
|
|
13968
|
+
setsectionproperties(_objectSpread$2a({}, secpropobj));
|
|
13758
13969
|
}, [props === null || props === void 0 || (_props$actions2 = props.actions) === null || _props$actions2 === void 0 ? void 0 : _props$actions2.StatePagePropertiesContext]);
|
|
13759
13970
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
13760
13971
|
var ordersuccessstyle = {
|
|
@@ -13851,12 +14062,12 @@ var css_248z$D = ".filter-module_timeline__ROm9Q .filter-module_border_left_line
|
|
|
13851
14062
|
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
14063
|
styleInject(css_248z$D);
|
|
13853
14064
|
|
|
13854
|
-
function ownKeys$
|
|
13855
|
-
function _objectSpread$
|
|
14065
|
+
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; }
|
|
14066
|
+
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
14067
|
var Select$1 = /*#__PURE__*/React__default["default"].lazy(function () {
|
|
13857
14068
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
|
|
13858
14069
|
});
|
|
13859
|
-
var Filter$
|
|
14070
|
+
var Filter$1 = function Filter(props) {
|
|
13860
14071
|
var _css;
|
|
13861
14072
|
var lang = props.actions.lang;
|
|
13862
14073
|
var langdetect = props.actions.langdetect;
|
|
@@ -13992,11 +14203,11 @@ var Filter$2 = function Filter(props) {
|
|
|
13992
14203
|
}
|
|
13993
14204
|
timeoutRef.current = setTimeout(function () {
|
|
13994
14205
|
if (raterangevalue.min != 0 || raterangevalue.max != 5) {
|
|
13995
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14206
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
13996
14207
|
tempfetchproductsfilerobjcontext.minrate = raterangevalue.min;
|
|
13997
14208
|
tempfetchproductsfilerobjcontext.maxrate = raterangevalue.max;
|
|
13998
14209
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
13999
|
-
setProductFilterObjContext(_objectSpread$
|
|
14210
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14000
14211
|
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
14001
14212
|
}
|
|
14002
14213
|
}, 500);
|
|
@@ -14082,33 +14293,33 @@ var Filter$2 = function Filter(props) {
|
|
|
14082
14293
|
}, [ProductFilterObjContext, fetchCategoriesQueryContext.isSuccess, fetchcollectionsQueryContext.isSuccess, instcategories, instcollections]);
|
|
14083
14294
|
React.useEffect(function () {
|
|
14084
14295
|
if (productfeatuesarr.length != 0) {
|
|
14085
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14296
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14086
14297
|
tempfetchproductsfilerobjcontext.prod_featruesar = productfeatuesarr;
|
|
14087
|
-
setProductFilterObjContext(_objectSpread$
|
|
14298
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14088
14299
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14089
14300
|
}
|
|
14090
14301
|
}, [productfeatuesarr]);
|
|
14091
14302
|
React.useEffect(function () {
|
|
14092
14303
|
if (fetchTabexStatesQueryContext.isSuccess) {
|
|
14093
14304
|
if (ProductFilterObjContext.stateid != undefined && ProductFilterObjContext.stateid != null && ProductFilterObjContext.stateid != '' && ProductFilterObjContext.stateid != 'all') {
|
|
14094
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
14305
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
14095
14306
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
14096
14307
|
tempFetchTabexStatesPayloadobjContext.state_id = ProductFilterObjContext.stateid;
|
|
14097
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
14308
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
14098
14309
|
}
|
|
14099
14310
|
}
|
|
14100
14311
|
}, [fetchTabexStatesQueryContext.isSuccess]);
|
|
14101
14312
|
var filterupdater = function filterupdater() {
|
|
14102
14313
|
setTimeout(function () {
|
|
14103
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
14314
|
+
var tempFetchQueriesEngineContext = _objectSpread$29({}, FetchQueriesEngineContext);
|
|
14104
14315
|
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
14105
14316
|
setFetchQueriesEngineContext(tempFetchQueriesEngineContext);
|
|
14106
14317
|
}, 100);
|
|
14107
14318
|
if (ProductFilterObjContext.countryid != undefined && ProductFilterObjContext.countryid != null && ProductFilterObjContext.countryid != '' && ProductFilterObjContext.countryid != 'all') {
|
|
14108
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
14319
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
14109
14320
|
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
14110
14321
|
tempFetchTabexStatesPayloadobjContext.country_id = ProductFilterObjContext.countryid;
|
|
14111
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
14322
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
14112
14323
|
}
|
|
14113
14324
|
if (instfilters.length != 0) {
|
|
14114
14325
|
var _ProductFilterObjCont3;
|
|
@@ -14170,7 +14381,7 @@ var Filter$2 = function Filter(props) {
|
|
|
14170
14381
|
}
|
|
14171
14382
|
};
|
|
14172
14383
|
var setfilterfunc = function setfilterfunc(valueid, valueindex, mainparentindex, type) {
|
|
14173
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14384
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14174
14385
|
if (type == 'clearfilters') {
|
|
14175
14386
|
tempfetchproductsfilerobjcontext.FilterOptions = [];
|
|
14176
14387
|
} else {
|
|
@@ -14194,14 +14405,14 @@ var Filter$2 = function Filter(props) {
|
|
|
14194
14405
|
tempfetchproductsfilerobjcontext.isfilter = 1;
|
|
14195
14406
|
}
|
|
14196
14407
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14197
|
-
setProductFilterObjContext(_objectSpread$
|
|
14408
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14198
14409
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14199
14410
|
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
14200
14411
|
};
|
|
14201
14412
|
|
|
14202
14413
|
var setCollectionFilterFunc = function setCollectionFilterFunc(collectionid) {
|
|
14203
14414
|
var _tempfetchproductsfil2;
|
|
14204
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14415
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14205
14416
|
var CollectionExists = false;
|
|
14206
14417
|
tempfetchproductsfilerobjcontext === null || tempfetchproductsfilerobjcontext === void 0 || (_tempfetchproductsfil2 = tempfetchproductsfilerobjcontext.collections) === null || _tempfetchproductsfil2 === void 0 || _tempfetchproductsfil2.forEach(function (filteritem, filterindex) {
|
|
14207
14418
|
if (filteritem == collectionid) {
|
|
@@ -14223,7 +14434,7 @@ var Filter$2 = function Filter(props) {
|
|
|
14223
14434
|
}
|
|
14224
14435
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14225
14436
|
tempfetchproductsfilerobjcontext.ProductFetchingType = 'Random';
|
|
14226
|
-
setProductFilterObjContext(_objectSpread$
|
|
14437
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14227
14438
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14228
14439
|
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
14229
14440
|
};
|
|
@@ -14244,11 +14455,11 @@ var Filter$2 = function Filter(props) {
|
|
|
14244
14455
|
if (state.expanded == true) {
|
|
14245
14456
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14246
14457
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14247
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14458
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
14248
14459
|
} else {
|
|
14249
14460
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14250
14461
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14251
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14462
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
14252
14463
|
}
|
|
14253
14464
|
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
14254
14465
|
className: "p-0"
|
|
@@ -14306,11 +14517,11 @@ var Filter$2 = function Filter(props) {
|
|
|
14306
14517
|
if (state.expanded == true) {
|
|
14307
14518
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14308
14519
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14309
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14520
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
14310
14521
|
} else {
|
|
14311
14522
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14312
14523
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14313
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14524
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
14314
14525
|
}
|
|
14315
14526
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14316
14527
|
className: "col-lg-12 p-0"
|
|
@@ -14384,11 +14595,11 @@ var Filter$2 = function Filter(props) {
|
|
|
14384
14595
|
if (state.expanded == true) {
|
|
14385
14596
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14386
14597
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14387
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14598
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
14388
14599
|
} else {
|
|
14389
14600
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14390
14601
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14391
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14602
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
14392
14603
|
}
|
|
14393
14604
|
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
14394
14605
|
className: "p-0"
|
|
@@ -14427,9 +14638,7 @@ var Filter$2 = function Filter(props) {
|
|
|
14427
14638
|
setcollectionstobevisible(instcollections);
|
|
14428
14639
|
}
|
|
14429
14640
|
// style={{ cursor: 'pointer' }}
|
|
14430
|
-
}, langdetect == 'en' ? sectionproperties.showalltexten : sectionproperties.showalltextar)))))))
|
|
14431
|
-
className: "mt-3 mb-3"
|
|
14432
|
-
})));
|
|
14641
|
+
}, langdetect == 'en' ? sectionproperties.showalltexten : sectionproperties.showalltextar)))))))));
|
|
14433
14642
|
};
|
|
14434
14643
|
var DynamicFilter = function DynamicFilter() {
|
|
14435
14644
|
var _fetchProductFeatures;
|
|
@@ -14438,66 +14647,192 @@ var Filter$2 = function Filter(props) {
|
|
|
14438
14647
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14439
14648
|
"class": "col-lg-12 p-0 mb-3"
|
|
14440
14649
|
}, (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"
|
|
14650
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3 w-100"
|
|
14442
14651
|
}, 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) {
|
|
14652
|
+
// if (item.type == 'Selectbox') {
|
|
14653
|
+
// var selectboxarr = [];
|
|
14654
|
+
// item?.featuresselectbovalue?.forEach(function (slecitem) {
|
|
14655
|
+
// var itemlabel = '';
|
|
14656
|
+
// if (langdetect == 'en') {
|
|
14657
|
+
// itemlabel = slecitem.value_en;
|
|
14658
|
+
// } else {
|
|
14659
|
+
// itemlabel = slecitem.value_ar;
|
|
14660
|
+
// }
|
|
14661
|
+
// selectboxarr.push({ label: itemlabel, value: slecitem.value_en });
|
|
14662
|
+
// });
|
|
14663
|
+
// return (
|
|
14664
|
+
// <div class="col-lg-12 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 p-0">
|
|
14665
|
+
// <label
|
|
14666
|
+
// className={' mb-3 w-100 '}
|
|
14667
|
+
// style={{
|
|
14668
|
+
// textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
14669
|
+
// color: sectionproperties.filtertitle_color,
|
|
14670
|
+
// color: sectionproperties.filtertitle_color,
|
|
14671
|
+
// fontSize: sectionproperties.filtertitle_fontsize + 'px',
|
|
14672
|
+
// fontWeight: sectionproperties.filtertitle_fontweight,
|
|
14673
|
+
// color: sectionproperties.filtertitle_color,
|
|
14674
|
+
// textTransform: 'capitalize',
|
|
14675
|
+
// }}
|
|
14676
|
+
// >
|
|
14677
|
+
// {langdetect == 'en' ? item.name_en : item.name_ar}
|
|
14678
|
+
// </label>
|
|
14679
|
+
// <div class={'col-lg-12 p-0'}>
|
|
14680
|
+
// <Select
|
|
14681
|
+
// options={selectboxarr}
|
|
14682
|
+
// styles={langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated}
|
|
14683
|
+
// placeholder={''}
|
|
14684
|
+
// onChange={(e) => {
|
|
14685
|
+
// var isattrexists = false;
|
|
14686
|
+
// var tempproductfeatuesarr = [...productfeatuesarr];
|
|
14687
|
+
// tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
|
|
14688
|
+
// if (attritem.id == item.id) {
|
|
14689
|
+
// tempproductfeatuesarr[attrindex].value = e.value;
|
|
14690
|
+
// isattrexists = true;
|
|
14691
|
+
// }
|
|
14692
|
+
// });
|
|
14693
|
+
// if (isattrexists == false) {
|
|
14694
|
+
// tempproductfeatuesarr.push({
|
|
14695
|
+
// id: item.id,
|
|
14696
|
+
// value: e.value,
|
|
14697
|
+
// });
|
|
14698
|
+
// }
|
|
14699
|
+
// setproductfeatuesarr([...tempproductfeatuesarr]);
|
|
14700
|
+
// }}
|
|
14701
|
+
// />
|
|
14702
|
+
// </div>
|
|
14703
|
+
// </div>
|
|
14704
|
+
// );
|
|
14705
|
+
// }
|
|
14443
14706
|
if (item.type == 'Selectbox') {
|
|
14444
|
-
var _item$featuresselectb
|
|
14445
|
-
|
|
14446
|
-
|
|
14447
|
-
|
|
14448
|
-
|
|
14449
|
-
|
|
14707
|
+
var _item$featuresselectb;
|
|
14708
|
+
// item?.featuresselectbovalue?.forEach(function (slecitem) {
|
|
14709
|
+
// var itemlabel = '';
|
|
14710
|
+
// var itemlabelar = '';
|
|
14711
|
+
// if (langdetect == 'en') {
|
|
14712
|
+
// itemlabel = slecitem.value_en;
|
|
14713
|
+
// } else {
|
|
14714
|
+
// itemlabel = slecitem.value_ar;
|
|
14715
|
+
// }
|
|
14716
|
+
// selectboxarr.push({ label: itemlabel, value: slecitem.value_en });
|
|
14717
|
+
// });
|
|
14718
|
+
return /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
14719
|
+
allowMultipleExpanded: true,
|
|
14720
|
+
allowZeroExpanded: true,
|
|
14721
|
+
preExpanded: [0, 1, 2, 3]
|
|
14722
|
+
}, /*#__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 w-100 p-0 mb-2 pl-md-3 pr-md-3 '
|
|
14726
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14727
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
14728
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
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.name_en : item.name_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));
|
|
14450
14737
|
} else {
|
|
14451
|
-
|
|
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));
|
|
14452
14741
|
}
|
|
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
|
|
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("div", {
|
|
14747
|
+
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
14748
|
+
}, item === null || item === void 0 || (_item$featuresselectb = item.featuresselectbovalue) === null || _item$featuresselectb === void 0 ? void 0 : _item$featuresselectb.map(function (slecitem, slecindex) {
|
|
14749
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14750
|
+
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 ',
|
|
14751
|
+
onClick: function onClick(e) {
|
|
14752
|
+
var isattrexists = false;
|
|
14753
|
+
var tempproductfeatuesarr = _toConsumableArray__default["default"](productfeatuesarr);
|
|
14754
|
+
tempproductfeatuesarr === null || tempproductfeatuesarr === void 0 || tempproductfeatuesarr.forEach(function (attritem, attrindex) {
|
|
14755
|
+
if (attritem.id == slecitem.id) {
|
|
14756
|
+
tempproductfeatuesarr[attrindex].value = slecitem.value_en;
|
|
14757
|
+
isattrexists = true;
|
|
14758
|
+
}
|
|
14485
14759
|
});
|
|
14760
|
+
if (isattrexists == false) {
|
|
14761
|
+
tempproductfeatuesarr.push({
|
|
14762
|
+
id: slecitem.id,
|
|
14763
|
+
value: slecitem.value_en
|
|
14764
|
+
});
|
|
14765
|
+
}
|
|
14766
|
+
setproductfeatuesarr(_toConsumableArray__default["default"](tempproductfeatuesarr));
|
|
14767
|
+
|
|
14768
|
+
// setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
14486
14769
|
}
|
|
14487
|
-
|
|
14488
|
-
|
|
14489
|
-
|
|
14490
|
-
|
|
14770
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14771
|
+
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 '
|
|
14772
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14773
|
+
className: "h-100 d-flex align-items-center"
|
|
14774
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14775
|
+
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
14776
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14777
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
14778
|
+
style: {
|
|
14779
|
+
color: slecitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
14780
|
+
}
|
|
14781
|
+
}, langdetect == 'en' ? slecitem.value_en : slecitem.value_ar)));
|
|
14782
|
+
}))))))
|
|
14783
|
+
// <div class="col-lg-12 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 p-0">
|
|
14784
|
+
// <label
|
|
14785
|
+
// className={' mb-3 w-100 '}
|
|
14786
|
+
// style={{
|
|
14787
|
+
// textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
14788
|
+
// color: sectionproperties.filtertitle_color,
|
|
14789
|
+
// color: sectionproperties.filtertitle_color,
|
|
14790
|
+
// fontSize: sectionproperties.filtertitle_fontsize + 'px',
|
|
14791
|
+
// fontWeight: sectionproperties.filtertitle_fontweight,
|
|
14792
|
+
// color: sectionproperties.filtertitle_color,
|
|
14793
|
+
// textTransform: 'capitalize',
|
|
14794
|
+
// }}
|
|
14795
|
+
// >
|
|
14796
|
+
// {langdetect == 'en' ? item.name_en : item.name_ar}
|
|
14797
|
+
// </label>
|
|
14798
|
+
// <div class={'col-lg-12 p-0'}>
|
|
14799
|
+
// <Select
|
|
14800
|
+
// options={selectboxarr}
|
|
14801
|
+
// styles={langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated}
|
|
14802
|
+
// placeholder={''}
|
|
14803
|
+
// onChange={(e) => {
|
|
14804
|
+
// var isattrexists = false;
|
|
14805
|
+
// var tempproductfeatuesarr = [...productfeatuesarr];
|
|
14806
|
+
// tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
|
|
14807
|
+
// if (attritem.id == item.id) {
|
|
14808
|
+
// tempproductfeatuesarr[attrindex].value = e.value;
|
|
14809
|
+
// isattrexists = true;
|
|
14810
|
+
// }
|
|
14811
|
+
// });
|
|
14812
|
+
// if (isattrexists == false) {
|
|
14813
|
+
// tempproductfeatuesarr.push({
|
|
14814
|
+
// id: item.id,
|
|
14815
|
+
// value: e.value,
|
|
14816
|
+
// });
|
|
14817
|
+
// }
|
|
14818
|
+
// setproductfeatuesarr([...tempproductfeatuesarr]);
|
|
14819
|
+
// }}
|
|
14820
|
+
// />
|
|
14821
|
+
// </div>
|
|
14822
|
+
// </div>
|
|
14823
|
+
;
|
|
14824
|
+
}
|
|
14825
|
+
// up here
|
|
14491
14826
|
if (item.type == 'Number') {
|
|
14492
|
-
var
|
|
14827
|
+
var _ref;
|
|
14493
14828
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14494
14829
|
"class": "col-lg-12 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 p-0"
|
|
14495
14830
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
14496
14831
|
className: "".concat(filter_cssstyles.input_label_name) + ' mb-3 w-100 ',
|
|
14497
|
-
style: (
|
|
14832
|
+
style: (_ref = {
|
|
14498
14833
|
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
14499
14834
|
color: sectionproperties.filtertitle_color
|
|
14500
|
-
}, _defineProperty__default["default"](
|
|
14835
|
+
}, _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
14836
|
}, langdetect == 'en' ? item.name_en : item.name_ar), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14502
14837
|
"class": 'col-lg-12 p-0'
|
|
14503
14838
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
@@ -14524,7 +14859,7 @@ var Filter$2 = function Filter(props) {
|
|
|
14524
14859
|
})));
|
|
14525
14860
|
}
|
|
14526
14861
|
if (item.type == 'NumberRange') {
|
|
14527
|
-
var
|
|
14862
|
+
var _ref2;
|
|
14528
14863
|
var temppricevalue = {
|
|
14529
14864
|
min: 0,
|
|
14530
14865
|
max: 10000
|
|
@@ -14545,10 +14880,10 @@ var Filter$2 = function Filter(props) {
|
|
|
14545
14880
|
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-12 col-md-12 col-sm-12 mb-3 '
|
|
14546
14881
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
14547
14882
|
className: "".concat(filter_cssstyles.input_label_name) + ' mb-3 w-100',
|
|
14548
|
-
style: (
|
|
14883
|
+
style: (_ref2 = {
|
|
14549
14884
|
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
14550
14885
|
color: sectionproperties.filtertitle_color
|
|
14551
|
-
}, _defineProperty__default["default"](
|
|
14886
|
+
}, _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
14887
|
}, langdetect == 'en' ? item.name_en : item.name_ar, item.type), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14553
14888
|
"class": 'col-lg-12 pl-4 pr-4 mt-2 mb-2',
|
|
14554
14889
|
style: {
|
|
@@ -14587,60 +14922,70 @@ var Filter$2 = function Filter(props) {
|
|
|
14587
14922
|
}))));
|
|
14588
14923
|
};
|
|
14589
14924
|
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'
|
|
14925
|
+
return (
|
|
14926
|
+
/*#__PURE__*/
|
|
14927
|
+
// <Accordion allowMultipleExpanded={true} allowZeroExpanded={true}>
|
|
14928
|
+
React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
14929
|
+
allowMultipleExpanded: true,
|
|
14930
|
+
allowZeroExpanded: true,
|
|
14931
|
+
preExpanded: [0, 1, 2, 3]
|
|
14932
|
+
}, instfilters.map(function (item, index) {
|
|
14933
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, {
|
|
14934
|
+
uuid: index
|
|
14935
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14936
|
+
className: filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 mb-4 '
|
|
14937
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14938
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
14634
14939
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14635
|
-
className:
|
|
14636
|
-
|
|
14637
|
-
|
|
14940
|
+
className: langdetect == 'en' ? filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 ' : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
|
|
14941
|
+
}, langdetect == 'en' ? item.optionname : item.optionname_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14942
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
14943
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState, null, function (state) {
|
|
14944
|
+
if (state.expanded == true) {
|
|
14945
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14946
|
+
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14947
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
14948
|
+
} else {
|
|
14949
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14950
|
+
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14951
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
14638
14952
|
}
|
|
14639
|
-
},
|
|
14640
|
-
|
|
14641
|
-
|
|
14642
|
-
|
|
14643
|
-
|
|
14953
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
14954
|
+
className: "p-0"
|
|
14955
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14956
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
14957
|
+
}, /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
14958
|
+
"class": "thwvsf-wrapper-ul"
|
|
14959
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14960
|
+
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
14961
|
+
}, item.productvaluesfilter.map(function (valueitem, valueindex) {
|
|
14962
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14963
|
+
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 ',
|
|
14964
|
+
onClick: function onClick() {
|
|
14965
|
+
setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
14966
|
+
}
|
|
14967
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14968
|
+
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 '
|
|
14969
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
14970
|
+
className: "h-100 d-flex align-items-center"
|
|
14971
|
+
}))), item.optionname == 'Color' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14972
|
+
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
14973
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14974
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
14975
|
+
style: {
|
|
14976
|
+
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
14977
|
+
}
|
|
14978
|
+
}, valueitem.value_identifier)), item.optionname != 'Color' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14979
|
+
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
14980
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14981
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
14982
|
+
style: {
|
|
14983
|
+
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
14984
|
+
}
|
|
14985
|
+
}, langdetect == 'en' ? valueitem.valuename : valueitem.valuename_ar)));
|
|
14986
|
+
})))))));
|
|
14987
|
+
}))
|
|
14988
|
+
);
|
|
14644
14989
|
};
|
|
14645
14990
|
var filter_cssstyles = {
|
|
14646
14991
|
form_control: glamor.css((_css = {
|
|
@@ -14819,14 +15164,14 @@ var Filter$2 = function Filter(props) {
|
|
|
14819
15164
|
return option.id == ProductFilterObjContext.countryid;
|
|
14820
15165
|
}),
|
|
14821
15166
|
onChange: function onChange(option) {
|
|
14822
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
15167
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
14823
15168
|
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
14824
15169
|
tempFetchTabexStatesPayloadobjContext.country_id = option.id;
|
|
14825
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
14826
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15170
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
15171
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14827
15172
|
tempfetchproductsfilerobjcontext.countryid = option.id;
|
|
14828
15173
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14829
|
-
setProductFilterObjContext(_objectSpread$
|
|
15174
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14830
15175
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14831
15176
|
},
|
|
14832
15177
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -14863,14 +15208,14 @@ var Filter$2 = function Filter(props) {
|
|
|
14863
15208
|
return option.id == ProductFilterObjContext.stateid;
|
|
14864
15209
|
}),
|
|
14865
15210
|
onChange: function onChange(option) {
|
|
14866
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
15211
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
14867
15212
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
14868
15213
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
14869
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
14870
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15214
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
15215
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14871
15216
|
tempfetchproductsfilerobjcontext.stateid = option.id;
|
|
14872
15217
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14873
|
-
setProductFilterObjContext(_objectSpread$
|
|
15218
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14874
15219
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14875
15220
|
},
|
|
14876
15221
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -14907,10 +15252,10 @@ var Filter$2 = function Filter(props) {
|
|
|
14907
15252
|
return option.id == ProductFilterObjContext.cityid;
|
|
14908
15253
|
}),
|
|
14909
15254
|
onChange: function onChange(option) {
|
|
14910
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15255
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14911
15256
|
tempfetchproductsfilerobjcontext.cityid = option.id;
|
|
14912
15257
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14913
|
-
setProductFilterObjContext(_objectSpread$
|
|
15258
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14914
15259
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14915
15260
|
},
|
|
14916
15261
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -14934,11 +15279,14 @@ var Filter$2 = function Filter(props) {
|
|
|
14934
15279
|
// }
|
|
14935
15280
|
// }, []);
|
|
14936
15281
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14937
|
-
className
|
|
15282
|
+
// 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'}
|
|
15283
|
+
className: 'row m-0 p-0 w-100',
|
|
14938
15284
|
style: {
|
|
14939
15285
|
marginTop: sectionproperties.filtersection_mt + 'px',
|
|
14940
15286
|
minHeight: sectionproperties.filterminheight == 0 ? 'auto' : sectionproperties.filterminheight + 'vh'
|
|
14941
15287
|
}
|
|
15288
|
+
}, props.typeprops != 'vertical' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15289
|
+
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
15290
|
}, sectionproperties.filterType == 'Title & Sort By Only' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14943
15291
|
"class": "row mx-0 w-100",
|
|
14944
15292
|
style: {
|
|
@@ -15014,14 +15362,14 @@ var Filter$2 = function Filter(props) {
|
|
|
15014
15362
|
color: ischecked ? sectionproperties.activecat_color : ''
|
|
15015
15363
|
},
|
|
15016
15364
|
onClick: function onClick() {
|
|
15017
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15365
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15018
15366
|
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
15019
15367
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
15020
15368
|
} else {
|
|
15021
15369
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
|
|
15022
15370
|
}
|
|
15023
15371
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
15024
|
-
setProductFilterObjContext(_objectSpread$
|
|
15372
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15025
15373
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
15026
15374
|
setsortbycontext(valueitem.name);
|
|
15027
15375
|
}
|
|
@@ -15166,11 +15514,11 @@ var Filter$2 = function Filter(props) {
|
|
|
15166
15514
|
if (state.expanded == true) {
|
|
15167
15515
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15168
15516
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
15169
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
15517
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
15170
15518
|
} else {
|
|
15171
15519
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15172
15520
|
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15173
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
15521
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
15174
15522
|
}
|
|
15175
15523
|
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
15176
15524
|
className: "p-0"
|
|
@@ -15194,14 +15542,14 @@ var Filter$2 = function Filter(props) {
|
|
|
15194
15542
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15195
15543
|
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
15544
|
onClick: function onClick() {
|
|
15197
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15545
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15198
15546
|
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
15199
15547
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
15200
15548
|
} else {
|
|
15201
15549
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
|
|
15202
15550
|
}
|
|
15203
15551
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
15204
|
-
setProductFilterObjContext(_objectSpread$
|
|
15552
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15205
15553
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
15206
15554
|
}
|
|
15207
15555
|
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -15236,7 +15584,7 @@ var Filter$2 = function Filter(props) {
|
|
|
15236
15584
|
minValue: 0,
|
|
15237
15585
|
value: raterangevalue,
|
|
15238
15586
|
onChange: function onChange(value) {
|
|
15239
|
-
setraterangevalue(_objectSpread$
|
|
15587
|
+
setraterangevalue(_objectSpread$29({}, value));
|
|
15240
15588
|
}
|
|
15241
15589
|
}))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15242
15590
|
className: "col-lg-9 col-md-9 col-sm-9 d-flex align-items-center d-md-none"
|
|
@@ -15350,11 +15698,11 @@ var Filter$2 = function Filter(props) {
|
|
|
15350
15698
|
if (state.expanded == true) {
|
|
15351
15699
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15352
15700
|
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15353
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
15701
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
15354
15702
|
} else {
|
|
15355
15703
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15356
15704
|
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15357
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
15705
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
15358
15706
|
}
|
|
15359
15707
|
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
15360
15708
|
className: "p-0"
|
|
@@ -15379,13 +15727,13 @@ var Filter$2 = function Filter(props) {
|
|
|
15379
15727
|
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
15728
|
onClick: function onClick() {
|
|
15381
15729
|
// setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
15382
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15730
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15383
15731
|
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
15384
15732
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
15385
15733
|
} else {
|
|
15386
15734
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
|
|
15387
15735
|
}
|
|
15388
|
-
setProductFilterObjContext(_objectSpread$
|
|
15736
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15389
15737
|
}
|
|
15390
15738
|
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15391
15739
|
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 +15747,7 @@ var Filter$2 = function Filter(props) {
|
|
|
15399
15747
|
color: ischecked ? sectionproperties.activecat_color : ''
|
|
15400
15748
|
}
|
|
15401
15749
|
}, valueitem.name)));
|
|
15402
|
-
})))))))
|
|
15403
|
-
className: "mt-3 mb-3"
|
|
15404
|
-
}));
|
|
15750
|
+
}))))))));
|
|
15405
15751
|
}), sectionproperties.otherfilters == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15406
15752
|
className: "col-lg-12"
|
|
15407
15753
|
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
@@ -15414,570 +15760,188 @@ var Filter$2 = function Filter(props) {
|
|
|
15414
15760
|
"class": "row m-0 w-100"
|
|
15415
15761
|
}, CollectionsFilter()), sectionproperties.showdynamicfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15416
15762
|
"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));
|
|
15763
|
+
}, DynamicFilter()), sectionproperties.showvariantsfilter == 'Show' && InstFilters()))))))), props.typeprops == 'vertical' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15764
|
+
className: 'col-lg-12 p-0 w-100 filter mt-md-0 d-md-none'
|
|
15765
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15766
|
+
className: "".concat(filterstyles.filterslider_container) + ' pb-md-5 ',
|
|
15767
|
+
id: "filterslider",
|
|
15768
|
+
style: {
|
|
15769
|
+
background: sectionproperties.filter_backgroundcolor,
|
|
15770
|
+
borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px'
|
|
15531
15771
|
}
|
|
15532
|
-
}, [
|
|
15533
|
-
|
|
15534
|
-
|
|
15535
|
-
|
|
15536
|
-
|
|
15772
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15773
|
+
className: filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '
|
|
15774
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15775
|
+
className: "col-lg-9 col-md-9 col-sm-9 d-none align-items-center d-md-flex"
|
|
15776
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15777
|
+
className: "m-0 p-0 font-16 font-weight-600",
|
|
15778
|
+
style: {
|
|
15779
|
+
color: sectionproperties.filter_titlecolor,
|
|
15780
|
+
fontSize: sectionproperties.filter_titlefontsize + 'px',
|
|
15781
|
+
fontWeight: sectionproperties.filter_titlefontweight,
|
|
15782
|
+
textTransform: sectionproperties.filter_titletextransform
|
|
15537
15783
|
}
|
|
15538
|
-
}, [
|
|
15539
|
-
|
|
15540
|
-
|
|
15541
|
-
|
|
15542
|
-
|
|
15543
|
-
|
|
15544
|
-
|
|
15545
|
-
if (props.sectionpropertiesprops != undefined && props.sectionpropertiesprops.length != 0) {
|
|
15546
|
-
setsectionproperties(props.sectionpropertiesprops);
|
|
15784
|
+
}, langdetect == 'en' ? 'Filter' : 'فلترة')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15785
|
+
className: "col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0"
|
|
15786
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15787
|
+
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 ',
|
|
15788
|
+
onClick: function onClick() {
|
|
15789
|
+
var element = document.getElementById('filterslider');
|
|
15790
|
+
element.classList.remove(filterstyles.filterslider_container_opened);
|
|
15547
15791
|
}
|
|
15548
|
-
}, [
|
|
15549
|
-
|
|
15550
|
-
|
|
15551
|
-
|
|
15552
|
-
|
|
15553
|
-
|
|
15554
|
-
clearTimeout(timeoutRef.current);
|
|
15792
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15793
|
+
className: "h-100 d-flex align-items-center justify-content-center"
|
|
15794
|
+
}, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, {
|
|
15795
|
+
size: sectionproperties.closeSlider_fontSize,
|
|
15796
|
+
style: {
|
|
15797
|
+
color: sectionproperties.closeSlider_color
|
|
15555
15798
|
}
|
|
15556
|
-
|
|
15557
|
-
|
|
15558
|
-
|
|
15559
|
-
|
|
15560
|
-
|
|
15561
|
-
|
|
15562
|
-
|
|
15563
|
-
|
|
15564
|
-
|
|
15565
|
-
|
|
15566
|
-
}, [
|
|
15567
|
-
|
|
15568
|
-
|
|
15569
|
-
|
|
15570
|
-
|
|
15571
|
-
|
|
15572
|
-
|
|
15573
|
-
|
|
15574
|
-
|
|
15575
|
-
|
|
15576
|
-
|
|
15577
|
-
|
|
15578
|
-
|
|
15579
|
-
|
|
15580
|
-
|
|
15581
|
-
|
|
15582
|
-
|
|
15583
|
-
|
|
15584
|
-
|
|
15585
|
-
|
|
15586
|
-
|
|
15587
|
-
|
|
15588
|
-
|
|
15589
|
-
|
|
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
|
-
}
|
|
15799
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15800
|
+
className: filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 pl-4 pr-4 '
|
|
15801
|
+
}, sectionproperties.showcountriesfilter == 'Show' && Countriesfilter(), sectionproperties.showvariantsfilter == 'Show' && InstFilters(), sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15802
|
+
"class": "row m-0 w-100 mb-3"
|
|
15803
|
+
}, CategoriesFilter()), sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15804
|
+
"class": "row m-0 w-100 mb-3"
|
|
15805
|
+
}, CollectionsFilter()), sectionproperties.showdynamicfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15806
|
+
"class": "row m-0 w-100 mb-3"
|
|
15807
|
+
}, DynamicFilter())))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15808
|
+
className: "col-lg-12"
|
|
15809
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas, {
|
|
15810
|
+
show: props === null || props === void 0 ? void 0 : props.openFilterSlider,
|
|
15811
|
+
onHide: function onHide() {
|
|
15812
|
+
props.setopenFilterSlider(false);
|
|
15813
|
+
},
|
|
15814
|
+
placement: "end",
|
|
15815
|
+
scroll: true,
|
|
15816
|
+
style: {
|
|
15817
|
+
minWidth: '200px',
|
|
15818
|
+
background: sectionproperties.filter_backgroundcolor,
|
|
15819
|
+
borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px'
|
|
15820
|
+
},
|
|
15821
|
+
backdrop: true
|
|
15822
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Header, null, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Title, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15823
|
+
className: "row m-0 w-100 mt-2"
|
|
15824
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15825
|
+
className: "col-lg-9 col-md-9 col-sm-9 d-none align-items-center d-md-flex"
|
|
15826
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15827
|
+
className: "m-0 p-0 font-16 font-weight-600",
|
|
15828
|
+
style: {
|
|
15829
|
+
color: sectionproperties.filter_titlecolor,
|
|
15830
|
+
fontSize: sectionproperties.filter_titlefontsize + 'px',
|
|
15831
|
+
fontWeight: sectionproperties.filter_titlefontweight,
|
|
15832
|
+
textTransform: sectionproperties.filter_titletextransform
|
|
15954
15833
|
}
|
|
15955
|
-
|
|
15956
|
-
|
|
15834
|
+
}, langdetect == 'en' ? 'Filter' : 'فلترة')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15835
|
+
className: "col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0"
|
|
15836
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15837
|
+
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 ',
|
|
15838
|
+
onClick: function onClick() {
|
|
15839
|
+
props.setopenFilterSlider(false);
|
|
15957
15840
|
}
|
|
15958
|
-
}
|
|
15959
|
-
|
|
15960
|
-
|
|
15961
|
-
|
|
15962
|
-
_useState22[1];
|
|
15963
|
-
// const queryParameters = new URLSearchParams(window.location.search);
|
|
15964
|
-
// useEffect(() => {
|
|
15965
|
-
// // setsortbycontext('Sort By');
|
|
15966
|
-
// if (queryParameters.get('sortprice') == undefined) {
|
|
15967
|
-
// setsortbycontext('Sort By');
|
|
15968
|
-
// } else {
|
|
15969
|
-
// var temp = { ...sortbycontext };
|
|
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',
|
|
15841
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15842
|
+
className: "h-100 d-flex align-items-center justify-content-center"
|
|
15843
|
+
}, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, {
|
|
15844
|
+
size: sectionproperties.closeSlider_fontSize,
|
|
15976
15845
|
style: {
|
|
15977
|
-
|
|
15978
|
-
|
|
15846
|
+
color: sectionproperties.closeSlider_color
|
|
15847
|
+
}
|
|
15848
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15849
|
+
"class": "col-lg-12"
|
|
15850
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
15851
|
+
"class": "mt-2 mb-2"
|
|
15852
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15853
|
+
className: ' pb-md-5 ',
|
|
15854
|
+
style: {
|
|
15855
|
+
background: sectionproperties.filter_backgroundcolor,
|
|
15856
|
+
borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px'
|
|
15979
15857
|
}
|
|
15980
|
-
},
|
|
15858
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15859
|
+
className: filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '
|
|
15860
|
+
}, sectionproperties.otherfilters == 'Show' && otherfilters.map(function (item, index) {
|
|
15861
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
15862
|
+
allowMultipleExpanded: true,
|
|
15863
|
+
allowZeroExpanded: true,
|
|
15864
|
+
preExpanded: [0, 1, 2, 3],
|
|
15865
|
+
style: {
|
|
15866
|
+
width: '100%'
|
|
15867
|
+
}
|
|
15868
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, {
|
|
15869
|
+
uuid: index
|
|
15870
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15871
|
+
className: filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '
|
|
15872
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15873
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
15874
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15875
|
+
className: langdetect == 'en' ? filter_cssstyles.collapsetitle + ' m-0 p-0 ' : filter_cssstyles.collapsetitle + ' m-0 p-0 text-right'
|
|
15876
|
+
}, item.name)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15877
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
15878
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState, null, function (state) {
|
|
15879
|
+
if (state.expanded == true) {
|
|
15880
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15881
|
+
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15882
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, null));
|
|
15883
|
+
} else {
|
|
15884
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15885
|
+
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15886
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, null));
|
|
15887
|
+
}
|
|
15888
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
15889
|
+
className: "p-0"
|
|
15890
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15891
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex"
|
|
15892
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15893
|
+
className: 'col-lg-12'
|
|
15894
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15895
|
+
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
15896
|
+
}, item.filterarray.map(function (valueitem, valueindex) {
|
|
15897
|
+
var ischecked = false;
|
|
15898
|
+
if (item.payloadvalue == 'sortprice') {
|
|
15899
|
+
if (valueitem.value == ProductFilterObjContext.sortprice) {
|
|
15900
|
+
ischecked = true;
|
|
15901
|
+
}
|
|
15902
|
+
} else if (item.payloadvalue == 'sortdates') {
|
|
15903
|
+
if (valueitem.value == ProductFilterObjContext.sortdates) {
|
|
15904
|
+
ischecked = true;
|
|
15905
|
+
}
|
|
15906
|
+
}
|
|
15907
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15908
|
+
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 ',
|
|
15909
|
+
onClick: function onClick() {
|
|
15910
|
+
// setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
15911
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15912
|
+
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
15913
|
+
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
15914
|
+
} else {
|
|
15915
|
+
tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
|
|
15916
|
+
}
|
|
15917
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15918
|
+
}
|
|
15919
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15920
|
+
className: " ".concat(ischecked ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' mb-2 d-flex align-items-center '
|
|
15921
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15922
|
+
className: "h-100 d-flex align-items-center"
|
|
15923
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15924
|
+
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
15925
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15926
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
15927
|
+
style: {
|
|
15928
|
+
color: ischecked ? sectionproperties.activecat_color : ''
|
|
15929
|
+
}
|
|
15930
|
+
}, valueitem.name)));
|
|
15931
|
+
}))))))));
|
|
15932
|
+
}), sectionproperties.otherfilters == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15933
|
+
className: "col-lg-12"
|
|
15934
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
15935
|
+
className: "mt-2 mb-3"
|
|
15936
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15937
|
+
className: filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 '
|
|
15938
|
+
}, sectionproperties.showcountriesfilter == 'Show' && Countriesfilter(), sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15939
|
+
"class": "row m-0 w-100"
|
|
15940
|
+
}, CategoriesFilter()), sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15941
|
+
"class": "row m-0 w-100"
|
|
15942
|
+
}, CollectionsFilter()), sectionproperties.showdynamicfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15943
|
+
"class": "row m-0 w-100"
|
|
15944
|
+
}, DynamicFilter()), sectionproperties.showvariantsfilter == 'Show' && InstFilters()))))))));
|
|
15981
15945
|
};
|
|
15982
15946
|
|
|
15983
15947
|
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 +17519,21 @@ var CardsSection = function CardsSection(props) {
|
|
|
17555
17519
|
}
|
|
17556
17520
|
}, plainString(show_product_group_titles()['description_en']))), sectionproperties.showFilter == 'show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17557
17521
|
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$
|
|
17522
|
+
}, /*#__PURE__*/React__default["default"].createElement(Filter$1, {
|
|
17559
17523
|
sectionpropertiesprops: sectionproperties,
|
|
17560
17524
|
actions: actions,
|
|
17561
17525
|
openFilterSlider: openFilterSlider,
|
|
17562
17526
|
setopenFilterSlider: setopenFilterSlider,
|
|
17563
17527
|
show_product_group_titles: show_product_group_titles
|
|
17564
17528
|
})), sectionproperties.showvariantfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17565
|
-
className: 'col-lg-
|
|
17529
|
+
className: sectionproperties.numofcols == '2' ? 'col-lg-2 d-flex' : 'col-lg-3 d-flex'
|
|
17566
17530
|
}, /*#__PURE__*/React__default["default"].createElement(Filter$1, {
|
|
17567
17531
|
sectionpropertiesprops: sectionproperties,
|
|
17568
17532
|
actions: actions,
|
|
17569
17533
|
openFilterSlider: openFilterSlider,
|
|
17570
|
-
setopenFilterSlider: setopenFilterSlider
|
|
17534
|
+
setopenFilterSlider: setopenFilterSlider,
|
|
17535
|
+
show_product_group_titles: show_product_group_titles,
|
|
17536
|
+
typeprops: 'vertical'
|
|
17571
17537
|
})), fetchingtype == 'custom' && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, cardsrender()), fetchingtype != 'custom' && cardsrender()));
|
|
17572
17538
|
};
|
|
17573
17539
|
|
|
@@ -17638,7 +17604,7 @@ var InnerGroups = function InnerGroups(props) {
|
|
|
17638
17604
|
function ownKeys$25(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; }
|
|
17639
17605
|
function _objectSpread$25(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$25(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$25(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17640
17606
|
var PrivacyPolicy = function PrivacyPolicy(props) {
|
|
17641
|
-
var _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4;
|
|
17607
|
+
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4;
|
|
17642
17608
|
var _useState = React.useState(''),
|
|
17643
17609
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
17644
17610
|
sectionproperties = _useState2[0],
|
|
@@ -17654,12 +17620,13 @@ var PrivacyPolicy = function PrivacyPolicy(props) {
|
|
|
17654
17620
|
props.actions.lang;
|
|
17655
17621
|
var langdetect = props.actions.langdetect;
|
|
17656
17622
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
17657
|
-
props.actions.ikimagecredcontext;
|
|
17623
|
+
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
17658
17624
|
props.actions;
|
|
17659
17625
|
var _useState5 = React.useState(''),
|
|
17660
17626
|
_useState6 = _slicedToArray__default["default"](_useState5, 2);
|
|
17661
17627
|
_useState6[0];
|
|
17662
17628
|
var setCurrentPageId = _useState6[1];
|
|
17629
|
+
var routingcountext = props.actions.routingcountext;
|
|
17663
17630
|
React.useEffect(function () {
|
|
17664
17631
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
17665
17632
|
var _StatePagePropertiesC;
|
|
@@ -17685,9 +17652,9 @@ var PrivacyPolicy = function PrivacyPolicy(props) {
|
|
|
17685
17652
|
setFetchQueriesEngineContext(_objectSpread$25({}, tempFetchQueriesEngineContext));
|
|
17686
17653
|
}, []);
|
|
17687
17654
|
var _useState7 = React.useState([]),
|
|
17688
|
-
_useState8 = _slicedToArray__default["default"](_useState7, 2)
|
|
17689
|
-
_useState8[0]
|
|
17690
|
-
|
|
17655
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
17656
|
+
bgimagesarray = _useState8[0],
|
|
17657
|
+
setbgimagesarray = _useState8[1];
|
|
17691
17658
|
React.useEffect(function () {
|
|
17692
17659
|
if (sectionproperties.length != 0) {
|
|
17693
17660
|
if (sectionproperties.arrayofobjectimagesonly != null) {
|
|
@@ -17710,11 +17677,12 @@ var PrivacyPolicy = function PrivacyPolicy(props) {
|
|
|
17710
17677
|
};
|
|
17711
17678
|
var policies_cssstyles = {
|
|
17712
17679
|
containerstyle: glamor.css({
|
|
17713
|
-
|
|
17714
|
-
|
|
17715
|
-
|
|
17716
|
-
|
|
17717
|
-
|
|
17680
|
+
paddingTop: sectionproperties.paddingTop + 'px',
|
|
17681
|
+
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
17682
|
+
backgroundColor: sectionproperties.backgroundColor,
|
|
17683
|
+
'@media (max-width: 800px)': {
|
|
17684
|
+
paddingTop: sectionproperties.paddingtopresponsive + 'px'
|
|
17685
|
+
}
|
|
17718
17686
|
}),
|
|
17719
17687
|
sectiontitle: glamor.css({
|
|
17720
17688
|
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
@@ -17736,7 +17704,65 @@ var PrivacyPolicy = function PrivacyPolicy(props) {
|
|
|
17736
17704
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17737
17705
|
className: ' col-lg-12 p-0 '
|
|
17738
17706
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17739
|
-
className: policies_cssstyles.containerstyle + ' row ml-0 mr-0 w-100
|
|
17707
|
+
className: policies_cssstyles.containerstyle + ' row ml-0 mr-0 w-100 '
|
|
17708
|
+
}, sectionproperties.image_height != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17709
|
+
className: "col-lg-12 p-0 d-flex justify-content-center",
|
|
17710
|
+
style: {
|
|
17711
|
+
cursor: ((_bgimagesarray$ = bgimagesarray[0]) === null || _bgimagesarray$ === void 0 ? void 0 : _bgimagesarray$.IsClickable) == 'Yes' ? 'pointer' : 'default'
|
|
17712
|
+
},
|
|
17713
|
+
onClick: function onClick() {
|
|
17714
|
+
var _bgimagesarray$2;
|
|
17715
|
+
if (((_bgimagesarray$2 = bgimagesarray[0]) === null || _bgimagesarray$2 === void 0 ? void 0 : _bgimagesarray$2.IsClickable) == 'Yes') {
|
|
17716
|
+
var _bgimagesarray$3, _bgimagesarray$4;
|
|
17717
|
+
if ((_bgimagesarray$3 = bgimagesarray[0]) !== null && _bgimagesarray$3 !== void 0 && _bgimagesarray$3.clickable_page_route && ((_bgimagesarray$4 = bgimagesarray[0]) === null || _bgimagesarray$4 === void 0 ? void 0 : _bgimagesarray$4.clickable_page_route.length) != 0) {
|
|
17718
|
+
routingcountext(bgimagesarray[0].clickable_page_route, false, '');
|
|
17719
|
+
} else {
|
|
17720
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
17721
|
+
}
|
|
17722
|
+
}
|
|
17723
|
+
}
|
|
17724
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17725
|
+
"class": sectionproperties.bgcovercontainresponsive == 'Contain' ? 'h-sm-auto mb-sm-4' : '',
|
|
17726
|
+
style: {
|
|
17727
|
+
width: sectionproperties.image_width + 'vw',
|
|
17728
|
+
height: 'auto',
|
|
17729
|
+
marginBottom: sectionproperties.image_mb + 'px',
|
|
17730
|
+
position: 'relative'
|
|
17731
|
+
}
|
|
17732
|
+
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
17733
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
17734
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
17735
|
+
path: bgimagesarray.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + ((_bgimagesarray$5 = bgimagesarray[0]) === null || _bgimagesarray$5 === void 0 ? void 0 : _bgimagesarray$5.bgsection_image) : '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + ((_bgimagesarray$6 = bgimagesarray[0]) === null || _bgimagesarray$6 === void 0 ? void 0 : _bgimagesarray$6.bgsection_image_ar) : '',
|
|
17736
|
+
"class": "d-flex d-sm-none",
|
|
17737
|
+
style: {
|
|
17738
|
+
height: '100%',
|
|
17739
|
+
width: '100%',
|
|
17740
|
+
margin: 0,
|
|
17741
|
+
padding: 0,
|
|
17742
|
+
borderRadius: sectionproperties.imageborderradius + 'px',
|
|
17743
|
+
zIndex: -1,
|
|
17744
|
+
objectFit: 'contain'
|
|
17745
|
+
}
|
|
17746
|
+
}), /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
17747
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
17748
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
17749
|
+
path: bgimagesarray.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w_resp + ',h-' + sectionproperties.imagetr_h_resp + '/' + ((_bgimagesarray$7 = bgimagesarray[0]) === null || _bgimagesarray$7 === void 0 ? void 0 : _bgimagesarray$7.bgsection_imageresponsive) : '/tr:w-' + sectionproperties.imagetr_w_resp + ',h-' + sectionproperties.imagetr_h_resp + '/' + ((_bgimagesarray$8 = bgimagesarray[0]) === null || _bgimagesarray$8 === void 0 ? void 0 : _bgimagesarray$8.bgsection_imageresponsive_ar) : '',
|
|
17750
|
+
"class": "d-none d-sm-flex",
|
|
17751
|
+
style: {
|
|
17752
|
+
height: '100%',
|
|
17753
|
+
width: '100%',
|
|
17754
|
+
margin: 0,
|
|
17755
|
+
padding: 0,
|
|
17756
|
+
objectFit: sectionproperties.bgcovercontainresponsive,
|
|
17757
|
+
borderRadius: sectionproperties.imageborderradius + 'px',
|
|
17758
|
+
zIndex: -1
|
|
17759
|
+
}
|
|
17760
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17761
|
+
"class": "row m-0 w-100 pl-md-4 pr-md-4",
|
|
17762
|
+
style: {
|
|
17763
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
|
|
17764
|
+
paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px'
|
|
17765
|
+
}
|
|
17740
17766
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17741
17767
|
"class": ' col-lg-12 p-0 text-start '
|
|
17742
17768
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
@@ -17755,13 +17781,13 @@ var PrivacyPolicy = function PrivacyPolicy(props) {
|
|
|
17755
17781
|
style: {
|
|
17756
17782
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
17757
17783
|
}
|
|
17758
|
-
})))));
|
|
17784
|
+
}))))));
|
|
17759
17785
|
};
|
|
17760
17786
|
|
|
17761
17787
|
function ownKeys$24(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; }
|
|
17762
17788
|
function _objectSpread$24(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$24(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$24(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17763
17789
|
var RefundPolicy = function RefundPolicy(props) {
|
|
17764
|
-
var _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4;
|
|
17790
|
+
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4;
|
|
17765
17791
|
var _useState = React.useState(''),
|
|
17766
17792
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
17767
17793
|
sectionproperties = _useState2[0],
|
|
@@ -17777,12 +17803,13 @@ var RefundPolicy = function RefundPolicy(props) {
|
|
|
17777
17803
|
props.actions.lang;
|
|
17778
17804
|
var langdetect = props.actions.langdetect;
|
|
17779
17805
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
17780
|
-
props.actions.ikimagecredcontext;
|
|
17806
|
+
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
17781
17807
|
props.actions;
|
|
17782
17808
|
var _useState5 = React.useState(''),
|
|
17783
17809
|
_useState6 = _slicedToArray__default["default"](_useState5, 2);
|
|
17784
17810
|
_useState6[0];
|
|
17785
17811
|
var setCurrentPageId = _useState6[1];
|
|
17812
|
+
var routingcountext = props.actions.routingcountext;
|
|
17786
17813
|
React.useEffect(function () {
|
|
17787
17814
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
17788
17815
|
var _StatePagePropertiesC;
|
|
@@ -17808,9 +17835,9 @@ var RefundPolicy = function RefundPolicy(props) {
|
|
|
17808
17835
|
setFetchQueriesEngineContext(_objectSpread$24({}, tempFetchQueriesEngineContext));
|
|
17809
17836
|
}, []);
|
|
17810
17837
|
var _useState7 = React.useState([]),
|
|
17811
|
-
_useState8 = _slicedToArray__default["default"](_useState7, 2)
|
|
17812
|
-
_useState8[0]
|
|
17813
|
-
|
|
17838
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
17839
|
+
bgimagesarray = _useState8[0],
|
|
17840
|
+
setbgimagesarray = _useState8[1];
|
|
17814
17841
|
React.useEffect(function () {
|
|
17815
17842
|
if (sectionproperties.length != 0) {
|
|
17816
17843
|
if (sectionproperties.arrayofobjectimagesonly != null) {
|
|
@@ -17833,11 +17860,12 @@ var RefundPolicy = function RefundPolicy(props) {
|
|
|
17833
17860
|
};
|
|
17834
17861
|
var policies_cssstyles = {
|
|
17835
17862
|
containerstyle: glamor.css({
|
|
17836
|
-
|
|
17837
|
-
|
|
17838
|
-
|
|
17839
|
-
|
|
17840
|
-
|
|
17863
|
+
paddingTop: sectionproperties.paddingTop + 'px',
|
|
17864
|
+
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
17865
|
+
backgroundColor: sectionproperties.backgroundColor,
|
|
17866
|
+
'@media (max-width: 800px)': {
|
|
17867
|
+
paddingTop: sectionproperties.paddingtopresponsive + 'px'
|
|
17868
|
+
}
|
|
17841
17869
|
}),
|
|
17842
17870
|
sectiontitle: glamor.css({
|
|
17843
17871
|
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
@@ -17859,7 +17887,65 @@ var RefundPolicy = function RefundPolicy(props) {
|
|
|
17859
17887
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17860
17888
|
className: ' col-lg-12 p-0 '
|
|
17861
17889
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17862
|
-
className: policies_cssstyles.containerstyle + ' row ml-0 mr-0 w-100
|
|
17890
|
+
className: policies_cssstyles.containerstyle + ' row ml-0 mr-0 w-100 '
|
|
17891
|
+
}, sectionproperties.image_height != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17892
|
+
className: "col-lg-12 p-0 d-flex justify-content-center",
|
|
17893
|
+
style: {
|
|
17894
|
+
cursor: ((_bgimagesarray$ = bgimagesarray[0]) === null || _bgimagesarray$ === void 0 ? void 0 : _bgimagesarray$.IsClickable) == 'Yes' ? 'pointer' : 'default'
|
|
17895
|
+
},
|
|
17896
|
+
onClick: function onClick() {
|
|
17897
|
+
var _bgimagesarray$2;
|
|
17898
|
+
if (((_bgimagesarray$2 = bgimagesarray[0]) === null || _bgimagesarray$2 === void 0 ? void 0 : _bgimagesarray$2.IsClickable) == 'Yes') {
|
|
17899
|
+
var _bgimagesarray$3, _bgimagesarray$4;
|
|
17900
|
+
if ((_bgimagesarray$3 = bgimagesarray[0]) !== null && _bgimagesarray$3 !== void 0 && _bgimagesarray$3.clickable_page_route && ((_bgimagesarray$4 = bgimagesarray[0]) === null || _bgimagesarray$4 === void 0 ? void 0 : _bgimagesarray$4.clickable_page_route.length) != 0) {
|
|
17901
|
+
routingcountext(bgimagesarray[0].clickable_page_route, false, '');
|
|
17902
|
+
} else {
|
|
17903
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
17904
|
+
}
|
|
17905
|
+
}
|
|
17906
|
+
}
|
|
17907
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17908
|
+
"class": sectionproperties.bgcovercontainresponsive == 'Contain' ? 'h-sm-auto mb-sm-4' : '',
|
|
17909
|
+
style: {
|
|
17910
|
+
width: sectionproperties.image_width + 'vw',
|
|
17911
|
+
height: 'auto',
|
|
17912
|
+
marginBottom: sectionproperties.image_mb + 'px',
|
|
17913
|
+
position: 'relative'
|
|
17914
|
+
}
|
|
17915
|
+
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
17916
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
17917
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
17918
|
+
path: bgimagesarray.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + ((_bgimagesarray$5 = bgimagesarray[0]) === null || _bgimagesarray$5 === void 0 ? void 0 : _bgimagesarray$5.bgsection_image) : '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + ((_bgimagesarray$6 = bgimagesarray[0]) === null || _bgimagesarray$6 === void 0 ? void 0 : _bgimagesarray$6.bgsection_image_ar) : '',
|
|
17919
|
+
"class": "d-flex d-sm-none",
|
|
17920
|
+
style: {
|
|
17921
|
+
height: '100%',
|
|
17922
|
+
width: '100%',
|
|
17923
|
+
margin: 0,
|
|
17924
|
+
padding: 0,
|
|
17925
|
+
borderRadius: sectionproperties.imageborderradius + 'px',
|
|
17926
|
+
zIndex: -1,
|
|
17927
|
+
objectFit: 'contain'
|
|
17928
|
+
}
|
|
17929
|
+
}), /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
17930
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
17931
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
17932
|
+
path: bgimagesarray.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w_resp + ',h-' + sectionproperties.imagetr_h_resp + '/' + ((_bgimagesarray$7 = bgimagesarray[0]) === null || _bgimagesarray$7 === void 0 ? void 0 : _bgimagesarray$7.bgsection_imageresponsive) : '/tr:w-' + sectionproperties.imagetr_w_resp + ',h-' + sectionproperties.imagetr_h_resp + '/' + ((_bgimagesarray$8 = bgimagesarray[0]) === null || _bgimagesarray$8 === void 0 ? void 0 : _bgimagesarray$8.bgsection_imageresponsive_ar) : '',
|
|
17933
|
+
"class": "d-none d-sm-flex",
|
|
17934
|
+
style: {
|
|
17935
|
+
height: '100%',
|
|
17936
|
+
width: '100%',
|
|
17937
|
+
margin: 0,
|
|
17938
|
+
padding: 0,
|
|
17939
|
+
objectFit: sectionproperties.bgcovercontainresponsive,
|
|
17940
|
+
borderRadius: sectionproperties.imageborderradius + 'px',
|
|
17941
|
+
zIndex: -1
|
|
17942
|
+
}
|
|
17943
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17944
|
+
"class": "row m-0 w-100 pl-md-4 pr-md-4",
|
|
17945
|
+
style: {
|
|
17946
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
|
|
17947
|
+
paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px'
|
|
17948
|
+
}
|
|
17863
17949
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17864
17950
|
"class": ' col-lg-12 p-0 text-start '
|
|
17865
17951
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
@@ -17878,7 +17964,7 @@ var RefundPolicy = function RefundPolicy(props) {
|
|
|
17878
17964
|
style: {
|
|
17879
17965
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
17880
17966
|
}
|
|
17881
|
-
})))));
|
|
17967
|
+
}))))));
|
|
17882
17968
|
};
|
|
17883
17969
|
|
|
17884
17970
|
function ownKeys$23(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; }
|